         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
		.Ltext0:
				.section	.rodata
		.LC0:
				.string	"\n\nArguments:\n\n"
		.LC1:
				.string	"ARGC = %d\n"
		.LC2:
				.string	"ARGV @[%p]\n"
		.LC3:
				.string	"  ARGV(%d) = \"%s\"\n"
		.LC4:
				.string	"  ARGV(%d) = NULL\n"
		.LC5:
				.string	"\nLocal Variables:\n\n"
		.LC6:
				.string	"LEN"
		.LC7:
				.string	"%s = <UNASSIGNED INTEGER>\n"
		.LC8:
				.string	"%s = %lld\n"
		main_backtrace.6165:
		.LFB192:
				leal	4(%esp), %ecx
				andl	$-16, %esp
				pushl	-4(%ecx)
				pushl	%ebp
				movl	%esp, %ebp
				pushl	%ebx
				pushl	%ecx
				subl	$64, %esp
				call	__x86.get_pc_thunk.bx
				addl	$_GLOBAL_OFFSET_TABLE_, %ebx
				movl	%ecx, %eax
				movl	(%eax), %edx
				movl	4(%eax), %eax
				movl	%gs:20, %ecx
				movl	%ecx, -12(%ebp)
				xorl	%ecx, %ecx
				leal	8(%ebp), %ecx
				movl	%ecx, -16(%ebp)
				movl	%edx, -32(%ebp)
				movl	%eax, -36(%ebp)
				leal	-40(%ebp), %eax
				addl	$12, %eax
				leal	-40(%ebp), %edx
				movb	$-71, (%eax)
				movl	%edx, 1(%eax)
				movb	$-23, 5(%eax)
				leal	main_backtrace.6165@GOTOFF(%ebx), %ecx
				leal	10(%eax), %edx
				subl	%edx, %ecx
				movl	%ecx, %edx
				movl	%edx, 6(%eax)
		.L11:
				leal	.LC9@GOTOFF(%ebx), %eax
				movl	%eax, -56(%ebp)
				leal	-40(%ebp), %eax
				addl	$12, %eax
				movl	%eax, -52(%ebp)
				leal	.L11@GOTOFF(%ebx), %eax
				movl	%eax, -48(%ebp)
				movl	_imp_current_frame@GOT(%ebx), %eax
				movl	(%eax), %eax
				movl	%eax, -44(%ebp)
				movl	_imp_current_frame@GOT(%ebx), %eax
				leal	-56(%ebp), %edx
				movl	%edx, (%eax)
				movl	-32(%ebp), %eax
				movl	-36(%ebp), %edx
				subl	$8, %esp
				pushl	%edx
				pushl	%eax
				call	_imp_initialise@PLT
				addl	$16, %esp
    2   %integer len
				movl	$-16843010, %eax
				movl	%eax, -40(%ebp)
    3   len = 11
				movl	$11, %eax
				movl	%eax, -40(%ebp)
    4   ! Write() below outputs the wrong value.  Not sure if the problem is with length or write.
    5   %if len < -128 %start
				movl	-40(%ebp), %eax
				cmpl	$-128, %eax
				jge	.L26
				nop
		.L13:
    6     printstring("len < -128");
				subl	$8, %esp
				leal	.LC10@GOTOFF(%ebx), %eax
				pushl	%eax
				leal	.LC11@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_printf@PLT
				addl	$16, %esp
    7   %finish %else %if len < 0 %start
				jmp	.L14
		.L26:
				movl	-40(%ebp), %eax
				testl	%eax, %eax
				jns	.L27
				nop
		.L16:
    8     printstring("len >= -128 and < 0");
				subl	$8, %esp
				leal	.LC12@GOTOFF(%ebx), %eax
				pushl	%eax
				leal	.LC11@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_printf@PLT
				addl	$16, %esp
    9   %finish %else %if len < 128 %start
				jmp	.L14
		.L27:
				movl	-40(%ebp), %eax
				cmpl	$127, %eax
				jg	.L28
				nop
		.L18:
   10     printstring("len >= 0 and < 128");
				subl	$8, %esp
				leal	.LC13@GOTOFF(%ebx), %eax
				pushl	%eax
				leal	.LC11@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_printf@PLT
				addl	$16, %esp
   11   %finish %else %if len < 256 %start
				jmp	.L14
		.L28:
				movl	-40(%ebp), %eax
				cmpl	$255, %eax
				jg	.L29
				nop
		.L20:
   12     printstring("len >= 128 and < 256");
				subl	$8, %esp
				leal	.LC14@GOTOFF(%ebx), %eax
				pushl	%eax
				leal	.LC11@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_printf@PLT
				addl	$16, %esp
   13   %finish %else %start
				jmp	.L14
		.L29:
   14     printstring("len >= 256");
				subl	$8, %esp
				leal	.LC15@GOTOFF(%ebx), %eax
				pushl	%eax
				leal	.LC11@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_printf@PLT
				addl	$16, %esp
		.L14:
		.LBB11:
		.LBB12:
				call	_imp_newline@PLT
		.LBE12:
		.LBE11:
   15   %finish
   16   newline
   17   write(len,0)
				movl	-40(%ebp), %eax
				subl	$8, %esp
				pushl	$0
				pushl	%eax
				call	_imp_writeint@PLT
				addl	$16, %esp
		.LBB13:
		.LBB14:
				call	_imp_newline@PLT
				movl	$0, -60(%ebp)
		.LBE14:
		.LBE13:
		.LBB15:
		.LBB16:
				subl	$12, %esp
				pushl	-60(%ebp)
				call	exit@PLT
		.LBE16:
		.LBE15:
		.LFE191:
				.section	.text.__x86.get_pc_thunk.bx,"axG",@progbits,__x86.get_pc_thunk.bx,comdat
				.globl	__x86.get_pc_thunk.bx
				.hidden	__x86.get_pc_thunk.bx
		__x86.get_pc_thunk.bx:
		.LFB193:
				movl	(%esp), %ebx
				ret
		.LFE193:
		.Letext0:
   18   newline
   19 %endofprogram
				pushl	%ebp
				movl	%esp, %ebp
				pushl	%esi
				pushl	%ebx
				subl	$32, %esp
				call	__x86.get_pc_thunk.bx
				addl	$_GLOBAL_OFFSET_TABLE_, %ebx
				movl	%ecx, %esi
				movl	%ecx, -28(%ebp)
				movl	%gs:20, %eax
				movl	%eax, -12(%ebp)
				xorl	%eax, %eax
				subl	$12, %esp
				leal	.LC0@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
				movl	8(%esi), %eax
				subl	$8, %esp
				pushl	%eax
				leal	.LC1@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
				movl	4(%esi), %eax
				subl	$8, %esp
				pushl	%eax
				leal	.LC2@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
		.LBB10:
				movl	$0, -16(%ebp)
				jmp	.L2
		.L3:
				movl	-16(%ebp), %eax
				leal	0(,%eax,4), %edx
				movl	4(%esi), %eax
				addl	%edx, %eax
				movl	(%eax), %eax
				subl	$4, %esp
				pushl	%eax
				pushl	-16(%ebp)
				leal	.LC3@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
				addl	$1, -16(%ebp)
		.L2:
				movl	8(%esi), %eax
				cmpl	%eax, -16(%ebp)
				jl	.L3
		.LBE10:
				movl	8(%esi), %eax
				leal	0(,%eax,4), %edx
				movl	4(%esi), %eax
				addl	%edx, %eax
				movl	(%eax), %eax
				testl	%eax, %eax
				jne	.L4
				movl	8(%esi), %eax
				subl	$8, %esp
				pushl	%eax
				leal	.LC4@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
				jmp	.L5
		.L4:
				movl	8(%esi), %eax
				leal	0(,%eax,4), %edx
				movl	4(%esi), %eax
				addl	%edx, %eax
				movl	(%eax), %edx
				movl	8(%esi), %eax
				subl	$4, %esp
				pushl	%edx
				pushl	%eax
				leal	.LC3@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
		.L5:
				subl	$12, %esp
				leal	.LC5@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
				movl	%esi, %eax
				movzbl	(%eax), %eax
				cmpb	$-128, %al
				je	.L6
				movl	%esi, %eax
				movzbl	(%eax), %eax
				cmpb	$-2, %al
				jne	.L7
		.L6:
				movl	%esi, %eax
				addl	$1, %eax
				movl	%esi, %edx
				subl	$4, %esp
				pushl	$3
				pushl	%eax
				pushl	%edx
				call	memcmp@PLT
				addl	$16, %esp
				testl	%eax, %eax
				jne	.L7
				subl	$8, %esp
				leal	.LC6@GOTOFF(%ebx), %eax
				pushl	%eax
				leal	.LC7@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
				jmp	.L8
		.L7:
				movl	(%esi), %eax
				cltd
				pushl	%edx
				pushl	%eax
				leal	.LC6@GOTOFF(%ebx), %eax
				pushl	%eax
				leal	.LC8@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
		.L8:
				nop
				movl	-12(%ebp), %eax
				xorl	%gs:20, %eax
				je	.L9
				call	__stack_chk_fail_local
		.L9:
				leal	-8(%ebp), %esp
				popl	%ebx
				popl	%esi
				popl	%ebp
				ret
		.LFE192:
				.section	.rodata
		.LC9:
				.string	"main"
		.LC10:
				.string	"len < -128"
		.LC11:
				.string	"%s"
		.LC12:
				.string	"len >= -128 and < 0"
		.LC13:
				.string	"len >= 0 and < 128"
		.LC14:
				.string	"len >= 128 and < 256"
		.LC15:
				.string	"len >= 256"
				.globl	main
		main:
		.LFB191:
   18 Statements compiled
