         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
		.Ltext0:
				.section	.rodata
		.LC1:
				.string	"test-in/label.imp"
				.align 4
		.LC2:
				.string	"->BERT(%d) out of bounds at %s line %d"
				.align 32
		.LC0:
				.byte	17
				.string	"test-in/label.imp"
				.zero	237
				.globl	main
		main:
		.LFB189:
				leal	4(%esp), %ecx
				andl	$-16, %esp
				pushl	-4(%ecx)
				pushl	%ebp
				movl	%esp, %ebp
				pushl	%edi
				pushl	%esi
				pushl	%ebx
				pushl	%ecx
				subl	$568, %esp
				call	__x86.get_pc_thunk.bx
				addl	$_GLOBAL_OFFSET_TABLE_, %ebx
				movl	%ecx, %eax
				movl	4(%eax), %edx
				movl	%edx, -572(%ebp)
				movl	%gs:20, %esi
				movl	%esi, -28(%ebp)
				xorl	%esi, %esi
				subl	$8, %esp
				pushl	-572(%ebp)
				pushl	(%eax)
				call	_imp_initialise@PLT
				addl	$16, %esp
		.LBB8:
    2   %label fred
    3   %begin
    4     %name jim  ;! here as a comparison of what is being output by the translator
    5     %switch bert(0:1)
    6     -> fred
				nop
		.L2:
    7     bert(0):
    8     %stop
    9     fred:
   10     ->bert(0)
				movl	$10, -560(%ebp)
				leal	.LC1@GOTOFF(%ebx), %eax
				movl	%eax, -556(%ebp)
				movl	$0, -552(%ebp)
				nop
		.L4:
   11     bert(1):
   12   %end
				cmpl	$0, -552(%ebp)
				js	.L7
				jmp	.L16
		.L3:
				movl	$0, -548(%ebp)
		.LBB9:
		.LBB10:
				subl	$12, %esp
				pushl	-548(%ebp)
				call	exit@PLT
		.L5:
		.LBE10:
		.LBE9:
				nop
		.L6:
		.LBE8:
				cmpl	$1, -552(%ebp)
				jle	.L8
		.L7:
				movl	_imp_current_line@GOT(%ebx), %eax
				movl	(%eax), %eax
				testl	%eax, %eax
				je	.L9
				movl	_imp_current_line@GOT(%ebx), %eax
				movl	(%eax), %eax
				movl	%eax, -576(%ebp)
				jmp	.L10
		.L9:
				movl	$12, -576(%ebp)
		.L10:
				movl	_imp_current_file@GOT(%ebx), %eax
				movl	(%eax), %eax
				testl	%eax, %eax
				je	.L11
				movl	_imp_current_file@GOT(%ebx), %eax
				movl	(%eax), %edx
				leal	-284(%ebp), %eax
				subl	$8, %esp
				pushl	%edx
				pushl	%eax
				call	_imp_c2istr@PLT
				addl	$12, %esp
				jmp	.L12
		.L11:
		.LBB11:
				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
		.LBE11:
				leal	-284(%ebp), %eax
				leal	-540(%ebp), %edx
				movl	$64, %ecx
				movl	%eax, %edi
				movl	%edx, %esi
				rep movsl
		.L12:
				pushl	-560(%ebp)
				pushl	-556(%ebp)
				pushl	-552(%ebp)
				leal	.LC2@GOTOFF(%ebx), %eax
				pushl	%eax
				pushl	-552(%ebp)
				pushl	$3
				pushl	$6
				pushl	-576(%ebp)
				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	_signal_eventf@PLT
				addl	$288, %esp
		.L8:
				movl	-552(%ebp), %eax
				movl	BERT.6025@GOTOFF(%ebx,%eax,4), %eax
				nop
				jmp	*%eax
		.LBE14:
		.LFE189:
				.section	.data.rel.local,"aw",@progbits
				.align 4
		BERT.6025:
				.long	.L3
				.long	.L5
				.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:
		.LFB190:
				movl	(%esp), %ebx
				ret
		.LFE190:
		.Letext0:
?JIM unused
   13   ->fred
				nop
		.L14:
				movl	$0, -544(%ebp)
		.LBB12:
		.LBB13:
				subl	$12, %esp
				pushl	-544(%ebp)
				call	exit@PLT
		.L16:
		.LBE13:
		.LBE12:
		.LBB14:
   14   fred:
   15 %endofprogram
   11 Statements compiled
