         Edinburgh IMP77 Compiler - Version 8.4
    1 %integerfnspec jim(%integer a,b)
		.Ltext0:
				.section	.rodata
				.align 32
		.LC0:
				.byte	5
				.string	"fred\n"
				.zero	249
				.globl	FRED
		FRED:
		.LFB189:
    2 %externalroutine fred %alias "s#go"
				pushl	%ebp
				movl	%esp, %ebp
				pushl	%edi
				pushl	%esi
				pushl	%ebx
				subl	$540, %esp
				call	__x86.get_pc_thunk.bx
				addl	$_GLOBAL_OFFSET_TABLE_, %ebx
				movl	%gs:20, %eax
				movl	%eax, -28(%ebp)
				xorl	%eax, %eax
		.LBB7:
    3 %integer x
    4 printstring("fred
				leal	-284(%ebp), %eax
				leal	.LC0@GOTOFF(%ebx), %edx
				movl	$64, %ecx
				movl	%eax, %edi
				movl	%edx, %esi
				rep movsl
				leal	-540(%ebp), %eax
				leal	-284(%ebp), %edx
				movl	$64, %ecx
				movl	%eax, %edi
				movl	%edx, %esi
				rep movsl
				leal	-284(%ebp), %eax
				leal	-540(%ebp), %edx
				movl	$64, %ecx
				movl	%eax, %edi
				movl	%edx, %esi
				rep movsl
		.LBE7:
		.LBB8:
		.LBB9:
				subl	$256, %esp
				movl	%esp, %eax
				movl	%eax, %edi
				leal	-284(%ebp), %eax
				movl	$64, %edx
				movl	%eax, %esi
				movl	%edx, %ecx
				rep movsl
				call	_imp_printstring@PLT
				addl	$256, %esp
		.LBE9:
		.LBE8:
    5 ")
    6 x=jim(4,5)
				subl	$8, %esp
				pushl	$5
				pushl	$4
				call	JIM
				addl	$16, %esp
				movl	%eax, -544(%ebp)
    7 write(x,5); newline
				subl	$8, %esp
				pushl	$5
				pushl	-544(%ebp)
				call	_imp_writeint@PLT
				addl	$16, %esp
		.LBB10:
		.LBB11:
				call	_imp_newline@PLT
		.LBE11:
		.LBE10:
    8
    9 %end
				nop
				movl	-28(%ebp), %eax
				xorl	%gs:20, %eax
				je	.L3
				call	__stack_chk_fail_local
		.L3:
				leal	-12(%ebp), %esp
				popl	%ebx
				popl	%esi
				popl	%edi
				popl	%ebp
				ret
		.LFE189:
		JIM:
		.LFB190:
   10 %integerfn jim(%integer a,b)
				pushl	%ebp
				movl	%esp, %ebp
				call	__x86.get_pc_thunk.ax
				addl	$_GLOBAL_OFFSET_TABLE_, %eax
   11
   12 %if a<b %then %result=1
				movl	8(%ebp), %eax
				cmpl	12(%ebp), %eax
				jge	.L9
				movl	$1, %eax
				jmp	.L7
		.L9:
				nop
		.L6:
   13 %result=0
				movl	$0, %eax
		.L7:
   14 %end
				popl	%ebp
				ret
		.LFE190:
				.section	.text.__x86.get_pc_thunk.ax,"axG",@progbits,__x86.get_pc_thunk.ax,comdat
				.globl	__x86.get_pc_thunk.ax
				.hidden	__x86.get_pc_thunk.ax
		__x86.get_pc_thunk.ax:
		.LFB191:
				movl	(%esp), %eax
				ret
		.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:
		.LFB192:
				movl	(%esp), %ebx
				ret
		.LFE192:
		.Letext0:
   15 %endoffile
   13 Statements compiled
