         Edinburgh IMP77 Compiler - Version 8.4
    1 %systemstring(127)%fnspec rtos(%real r,%integer n,m)
		.Ltext0:
		_imp_REXP:
		.LFB60:
				pushl	%ebp
				movl	%esp, %ebp
				pushl	%ebx
				subl	$20, %esp
				call	__x86.get_pc_thunk.ax
				addl	$_GLOBAL_OFFSET_TABLE_, %eax
				movl	8(%ebp), %edx
				movl	%edx, -16(%ebp)
				movl	12(%ebp), %edx
				movl	%edx, -12(%ebp)
				movl	16(%ebp), %edx
				movl	%edx, -24(%ebp)
				movl	20(%ebp), %edx
				movl	%edx, -20(%ebp)
				fldl	-24(%ebp)
				fldl	.LC0@GOTOFF(%eax)
				fucomip	%st(1), %st
				fstp	%st(0)
				jp	.L2
				fldl	-24(%ebp)
				fldl	.LC0@GOTOFF(%eax)
				fucomip	%st(1), %st
				fstp	%st(0)
				jne	.L2
				fldl	-16(%ebp)
				fmull	-16(%ebp)
				jmp	.L5
		.L2:
				pushl	-20(%ebp)
				pushl	-24(%ebp)
				pushl	-12(%ebp)
				pushl	-16(%ebp)
				movl	%eax, %ebx
				call	pow@PLT
				addl	$16, %esp
		.L5:
				movl	-4(%ebp), %ebx
				leave
				ret
		.LFE60:
				.section	.rodata
		.LC1:
				.string	"\n\nArguments:\n\n"
		.LC2:
				.string	"X = <UNASSIGNED REAL>\n"
		.LC3:
				.string	"X = %LE\n"
		.LC4:
				.string	"N = %d\n"
		.LC5:
				.string	"\nLocal Variables:\n\n"
		.LC6:
				.string	"Y"
		.LC7:
				.string	"%s = <UNASSIGNED REAL>\n"
		.LC8:
				.string	"%s = %LE\n"
		.LC9:
				.string	"ROUND"
		.LC10:
				.string	"COUNT"
		.LC11:
				.string	"%s = <UNASSIGNED INTEGER>\n"
		.LC12:
				.string	"%s = %lld\n"
		.LC13:
				.string	"SIGN"
		.LC14:
				.string	"RESULT = \"%.*s\"\n"
		RTOF_backtrace.6169:
		.LFB192:
    2
    3 %systemstring(127)%fn rtof(%real x, %integer n)
				pushl	%ebp
				movl	%esp, %ebp
				pushl	%edi
				pushl	%esi
				pushl	%ebx
				subl	$1900, %esp
				call	__x86.get_pc_thunk.bx
				addl	$_GLOBAL_OFFSET_TABLE_, %ebx
				flds	12(%ebp)
				movl	16(%ebp), %edx
				movl	8(%ebp), %eax
				movl	%eax, -1900(%ebp)
				movl	%gs:20, %eax
				movl	%eax, -28(%ebp)
				xorl	%eax, %eax
				leal	8(%ebp), %eax
				movl	%eax, -32(%ebp)
				fstps	-304(%ebp)
				movl	%edx, -308(%ebp)
				leal	-324(%ebp), %eax
				addl	$280, %eax
				leal	-324(%ebp), %edx
				movb	$-71, (%eax)
				movl	%edx, 1(%eax)
				movb	$-23, 5(%eax)
				leal	RTOF_backtrace.6169@GOTOFF(%ebx), %ecx
				leal	10(%eax), %edx
				subl	%edx, %ecx
				movl	%ecx, %edx
				movl	%edx, 6(%eax)
		.L26:
				leal	.LC15@GOTOFF(%ebx), %eax
				movl	%eax, -1876(%ebp)
				leal	-324(%ebp), %eax
				addl	$280, %eax
				movl	%eax, -1872(%ebp)
				leal	.L26@GOTOFF(%ebx), %eax
				movl	%eax, -1868(%ebp)
				movl	_imp_current_frame@GOT(%ebx), %eax
				movl	(%eax), %eax
				movl	%eax, -1864(%ebp)
				movl	_imp_current_frame@GOT(%ebx), %eax
				leal	-1876(%ebp), %edx
				movl	%edx, (%eax)
    4   %real y,round
				flds	.LC16@GOTOFF(%ebx)
				fstps	-312(%ebp)
				flds	.LC16@GOTOFF(%ebx)
				fstps	-316(%ebp)
    5   %integer count=-99,sign=0
				movl	$-16843010, %eax
				movl	%eax, -320(%ebp)
				movl	$-99, %eax
				movl	%eax, -320(%ebp)
				movl	$-16843010, %eax
				movl	%eax, -324(%ebp)
				movl	$0, %eax
				movl	%eax, -324(%ebp)
		.LBB6:
    6   %string(127) result=""
				movb	$0, -580(%ebp)
				movl	$0, -579(%ebp)
				leal	-575(%ebp), %edx
				movl	$0, %eax
				movb	%al, (%edx)
				addl	$1, %edx
				movw	%ax, (%edx)
				addl	$2, %edx
				movl	$62, %ecx
				movl	%edx, %edi
				rep stosl
				leal	-1860(%ebp), %eax
				leal	-580(%ebp), %edx
				movl	$64, %ecx
				movl	%eax, %edi
				movl	%edx, %esi
				rep movsl
		.LBE6:
				leal	-1604(%ebp), %eax
				leal	-1860(%ebp), %edx
				movl	$64, %ecx
				movl	%eax, %edi
				movl	%edx, %esi
				rep movsl
				subl	$4, %esp
				pushl	$127
				leal	-1604(%ebp), %eax
				pushl	%eax
				leal	-324(%ebp), %eax
				addl	$24, %eax
				pushl	%eax
				call	_imp_strcpy@PLT
				addl	$16, %esp
    7   !
    8   %if x # 0 %start
				flds	-304(%ebp)
				fldz
				fucomip	%st(1), %st
				jp	.L56
				fldz
				fucomip	%st(1), %st
				fstp	%st(0)
				je	.L50
				jmp	.L27
		.L56:
				fstp	%st(0)
		.L27:
				nop
				jmp	.L45
		.L55:
    9     x = -x %and sign = 1 %if x < 0
				fldz
				flds	-304(%ebp)
				fucomip	%st(1), %st
				fstp	%st(0)
				jnb	.L51
				flds	-304(%ebp)
				fchs
				fstps	-304(%ebp)
				movl	$1, %eax
				movl	%eax, -324(%ebp)
				jmp	.L32
		.L51:
				nop
		.L32:
   10    !Adjust X so that 1.0 <= rounded(X) < 10.0
   11     count = 0;  round = 0.5\{^}n
				movl	$0, %eax
				movl	%eax, -320(%ebp)
				movl	-308(%ebp), %eax
				movl	%eax, -1908(%ebp)
				fildl	-1908(%ebp)
				leal	-8(%esp), %esp
				fstpl	(%esp)
				fldl	.LC18@GOTOFF(%ebx)
				leal	-8(%esp), %esp
				fstpl	(%esp)
				call	_imp_REXP
				addl	$16, %esp
				fstps	-1904(%ebp)
				flds	-1904(%ebp)
				fstps	-316(%ebp)
   12     y = 1.0-round
				flds	-316(%ebp)
				fld1
				fsubp	%st, %st(1)
				fstps	-312(%ebp)
   13     %if x < y %start;  !ie rounded(X) < 1.0
				flds	-312(%ebp)
				flds	-304(%ebp)
				fucomip	%st(1), %st
				fstp	%st(0)
				jnb	.L52
		.L33:
				nop
		.L35:
   14       count = count-1 %and x = x*10.0 %until x >= y
				movl	-320(%ebp), %eax
				subl	$1, %eax
				movl	%eax, -320(%ebp)
				flds	-304(%ebp)
				flds	.LC20@GOTOFF(%ebx)
				fmulp	%st, %st(1)
				fstps	-304(%ebp)
				flds	-312(%ebp)
				flds	-304(%ebp)
				fucomip	%st(1), %st
				fstp	%st(0)
				jnb	.L53
				jmp	.L33
		.L53:
				nop
		.L38:
   15     %finish %else %start
				jmp	.L43
		.L52:
   16       y = 10.0-round
				flds	-316(%ebp)
				flds	.LC20@GOTOFF(%ebx)
				fsubp	%st, %st(1)
				fstps	-312(%ebp)
		.L40:
   17       %while x >= y %cycle;  !ie rounded(X) > 10.0
				flds	-304(%ebp)
				flds	-312(%ebp)
				fucomip	%st(1), %st
				fstp	%st(0)
				ja	.L54
				nop
		.L43:
   18         count = count+1;  x = x/10.0
				movl	-320(%ebp), %eax
				addl	$1, %eax
				movl	%eax, -320(%ebp)
				flds	-304(%ebp)
				flds	.LC20@GOTOFF(%ebx)
				fdivrp	%st, %st(1)
				fstps	-304(%ebp)
   19       %repeat
				jmp	.L40
		.L39:
		.L54:
   20     %finish
   21     x = -x %if sign # 0
				movl	-324(%ebp), %eax
				testl	%eax, %eax
				je	.L55
				flds	-304(%ebp)
				fchs
				fstps	-304(%ebp)
				jmp	.L45
		.L29:
		.L50:
				nop
		.L45:
   22   %finish
   23   result = rtos(x,1,n)
				flds	-304(%ebp)
				movl	-308(%ebp), %edx
				leal	-1348(%ebp), %eax
				pushl	%edx
				pushl	$1
				leal	-4(%esp), %esp
				fstps	(%esp)
				pushl	%eax
				call	RTOS@PLT
				addl	$12, %esp
				subl	$4, %esp
				pushl	$127
				leal	-1348(%ebp), %eax
				pushl	%eax
				leal	-324(%ebp), %eax
				addl	$24, %eax
				pushl	%eax
				call	_imp_strcpy@PLT
				addl	$16, %esp
   24   result = result."@".itos(count,0)
				movl	-320(%ebp), %eax
				movl	%eax, -1884(%ebp)
				movl	$0, -1880(%ebp)
		.LBB7:
		.LBB8:
				leal	-836(%ebp), %eax
				subl	$4, %esp
				pushl	-1880(%ebp)
				pushl	-1884(%ebp)
				pushl	%eax
				call	_imp_itos@PLT
				addl	$12, %esp
		.LBE8:
		.LBE7:
				leal	-1092(%ebp), %eax
				leal	-300(%ebp), %edx
				movl	$64, %ecx
				movl	%eax, %edi
				movl	%edx, %esi
				rep movsl
				subl	$8, %esp
				leal	-836(%ebp), %eax
				pushl	%eax
				leal	.LC21@GOTOFF(%ebx), %eax
				pushl	%eax
				leal	-1092(%ebp), %eax
				pushl	%eax
				leal	.LC22@GOTOFF(%ebx), %eax
				pushl	%eax
				pushl	$127
				leal	-324(%ebp), %eax
				addl	$24, %eax
				pushl	%eax
				call	_imp_strassign@PLT
				addl	$32, %esp
		.LBB9:
   25   %result = result
				movl	-1864(%ebp), %edx
				movl	_imp_current_frame@GOT(%ebx), %eax
				movl	%edx, (%eax)
				leal	-580(%ebp), %eax
				leal	-300(%ebp), %edx
				movl	$64, %ecx
				movl	%eax, %edi
				movl	%edx, %esi
				rep movsl
				movl	-1900(%ebp), %eax
				movl	%eax, %edx
				leal	-580(%ebp), %eax
				movl	$256, %ecx
				movl	(%eax), %ebx
				movl	%ebx, (%edx)
				movl	-4(%eax,%ecx), %ebx
				movl	%ebx, -4(%edx,%ecx)
				leal	4(%edx), %ebx
				andl	$-4, %ebx
				subl	%ebx, %edx
				subl	%edx, %eax
				addl	%edx, %ecx
				andl	$-4, %ecx
				shrl	$2, %ecx
				movl	%ecx, %edx
				movl	%ebx, %edi
				movl	%eax, %esi
				movl	%edx, %ecx
				rep movsl
				movl	$0, %eax
		.LBE9:
				cmpl	$1, %eax
				nop
				movl	-1900(%ebp), %eax
				movl	-28(%ebp), %esi
				xorl	%gs:20, %esi
				je	.L49
				call	__stack_chk_fail_local
		.L49:
				leal	-12(%ebp), %esp
				popl	%ebx
				popl	%esi
				popl	%edi
				popl	%ebp
				ret	$4
		.LFE191:
				.section	.rodata
				.align 8
		.LC0:
				.long	0
				.long	1073741824
				.align 4
		.LC16:
				.long	2143289344
				.align 8
		.LC18:
				.long	0
				.long	1071644672
				.align 4
		.LC20:
				.long	1092616192
				.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:
		.LFB193:
				movl	(%esp), %eax
				ret
		.LFE193:
				.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:
		.LFB194:
				movl	(%esp), %ebx
				ret
		.LFE194:
		.Letext0:
   26 %end;  !flrtos
				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	.LC1@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
				flds	20(%esi)
				flds	20(%esi)
				fucomip	%st(1), %st
				fstp	%st(0)
				jnp	.L8
				subl	$12, %esp
				leal	.LC2@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
				jmp	.L9
		.L8:
				flds	20(%esi)
				leal	-12(%esp), %esp
				fstpt	(%esp)
				leal	.LC3@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
		.L9:
				movl	16(%esi), %eax
				subl	$8, %esp
				pushl	%eax
				leal	.LC4@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
				subl	$12, %esp
				leal	.LC5@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
				flds	12(%esi)
				flds	12(%esi)
				fucomip	%st(1), %st
				fstp	%st(0)
				jp	.L10
				leal	12(%esi), %eax
				movzbl	(%eax), %eax
				cmpb	$-128, %al
				je	.L11
				leal	12(%esi), %eax
				movzbl	(%eax), %eax
				cmpb	$-2, %al
				jne	.L12
		.L11:
				leal	12(%esi), %eax
				leal	1(%eax), %edx
				leal	12(%esi), %eax
				subl	$4, %esp
				pushl	$3
				pushl	%edx
				pushl	%eax
				call	memcmp@PLT
				addl	$16, %esp
				testl	%eax, %eax
				jne	.L12
		.L10:
				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	.L13
		.L12:
				flds	12(%esi)
				leal	-8(%esp), %esp
				fstpl	(%esp)
				leal	.LC6@GOTOFF(%ebx), %eax
				pushl	%eax
				leal	.LC8@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
		.L13:
				flds	8(%esi)
				flds	8(%esi)
				fucomip	%st(1), %st
				fstp	%st(0)
				jp	.L14
				leal	8(%esi), %eax
				movzbl	(%eax), %eax
				cmpb	$-128, %al
				je	.L15
				leal	8(%esi), %eax
				movzbl	(%eax), %eax
				cmpb	$-2, %al
				jne	.L16
		.L15:
				leal	8(%esi), %eax
				leal	1(%eax), %edx
				leal	8(%esi), %eax
				subl	$4, %esp
				pushl	$3
				pushl	%edx
				pushl	%eax
				call	memcmp@PLT
				addl	$16, %esp
				testl	%eax, %eax
				jne	.L16
		.L14:
				subl	$8, %esp
				leal	.LC9@GOTOFF(%ebx), %eax
				pushl	%eax
				leal	.LC7@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
				jmp	.L17
		.L16:
				flds	8(%esi)
				leal	-8(%esp), %esp
				fstpl	(%esp)
				leal	.LC9@GOTOFF(%ebx), %eax
				pushl	%eax
				leal	.LC8@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
		.L17:
				leal	4(%esi), %eax
				movzbl	(%eax), %eax
				cmpb	$-128, %al
				je	.L18
				leal	4(%esi), %eax
				movzbl	(%eax), %eax
				cmpb	$-2, %al
				jne	.L19
		.L18:
				leal	4(%esi), %eax
				leal	1(%eax), %edx
				leal	4(%esi), %eax
				subl	$4, %esp
				pushl	$3
				pushl	%edx
				pushl	%eax
				call	memcmp@PLT
				addl	$16, %esp
				testl	%eax, %eax
				jne	.L19
				subl	$8, %esp
				leal	.LC10@GOTOFF(%ebx), %eax
				pushl	%eax
				leal	.LC11@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
				jmp	.L20
		.L19:
				movl	4(%esi), %eax
				cltd
				pushl	%edx
				pushl	%eax
				leal	.LC10@GOTOFF(%ebx), %eax
				pushl	%eax
				leal	.LC12@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
		.L20:
				movl	%esi, %eax
				movzbl	(%eax), %eax
				cmpb	$-128, %al
				je	.L21
				movl	%esi, %eax
				movzbl	(%eax), %eax
				cmpb	$-2, %al
				jne	.L22
		.L21:
				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	.L22
				subl	$8, %esp
				leal	.LC13@GOTOFF(%ebx), %eax
				pushl	%eax
				leal	.LC11@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
				jmp	.L23
		.L22:
				movl	(%esi), %eax
				cltd
				pushl	%edx
				pushl	%eax
				leal	.LC13@GOTOFF(%ebx), %eax
				pushl	%eax
				leal	.LC12@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
		.L23:
				leal	25(%esi), %edx
				movzbl	24(%esi), %eax
				movzbl	%al, %eax
				subl	$4, %esp
				pushl	%edx
				pushl	%eax
				leal	.LC14@GOTOFF(%ebx), %eax
				pushl	%eax
				call	_imp_diagf@PLT
				addl	$16, %esp
				nop
				movl	-12(%ebp), %eax
				xorl	%gs:20, %eax
				je	.L24
				call	__stack_chk_fail_local
		.L24:
				leal	-8(%ebp), %esp
				popl	%ebx
				popl	%esi
				popl	%ebp
				ret
		.LFE192:
				.section	.rodata
		.LC15:
				.string	"RTOF"
		.LC21:
				.string	"@"
		.LC22:
				.string	"%S%s%S"
				.globl	RTOF
		RTOF:
		.LFB191:
   27
   28 %endoffile
   26 Statements compiled
