         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
		.Ltext0:
				.align	2
		DOHANOI.7693:
		.LFB186:
		.LVL22:
				sub	sp, sp, #1344
				stp	x29, x30, [sp]
				add	x29, sp, 0
				stp	x19, x20, [sp, 16]
				str	x21, [sp, 32]
				adrp	x2, :got:__stack_chk_guard
				ldr	x2, [x2, #:got_lo12:__stack_chk_guard]
				ldr	x3, [x2]
				str	x3, [x29, 1336]
				mov	x3,0
    2   %routine do hanoi(%integer n, f, t, u)
		.LVL0:
				sub	sp, sp, #3424
				stp	x29, x30, [sp]
				add	x29, sp, 0
				stp	x19, x20, [sp, 16]
				stp	x21, x22, [sp, 32]
				stp	x23, x24, [sp, 48]
				str	x25, [sp, 64]
				mov	w21, w0
				mov	w24, w1
				mov	w23, w2
				mov	w25, w3
				adrp	x0, :got:__stack_chk_guard
		.LVL1:
				ldr	x0, [x0, #:got_lo12:__stack_chk_guard]
				ldr	x1, [x0]
				str	x1, [x29, 3416]
				mov	x1,0
		.LVL2:
				bl	_imp_initialise
		.LVL23:
				mov	w3, 3
				mov	w2, 2
				mov	w1, 1
				mov	w0, 4
				bl	DOHANOI.7693
		.LVL24:
		.LBB47:
		.LBB48:
    3     do hanoi(n - 1, f, u, t) %if n >= 2
				cmp	w21, 1
				bgt	.L6
		.LVL3:
		.L2:
		.LBB34:
		.LBB35:
		.LBB36:
		.LBB37:
		.LBB38:
		.LBB39:
		.LBB40:
		.LBB41:
				add	x8, x29, 3160
				mov	w1, 0
				mov	w0, w24
				bl	_imp_itos
		.LVL4:
		.LBE41:
		.LBE40:
		.LBE39:
    4     print string("Move disk from ".itos(f,0)." to ".itos(t,0).to string(nl))
				mov	w3, w2
		.LVL17:
				mov	w2, w25
		.LVL18:
				mov	w1, w24
				sub	w0, w21, #1
				bl	DOHANOI.7693
		.LVL19:
				b	.L2
		.L7:
    5     do hanoi(n - 1, u, t, f) %if n >= 2
				cmp	w21, 1
				bgt	.L7
		.L3:
		.L1:
    6   %end
				add	x19, x29, 1112
				mov	x8, x19
				add	x1, x29, 1624
				add	x0, x29, 1368
				bl	_imp_join
		.LVL5:
		.LBE38:
				add	x20, x29, 856
				mov	x8, x20
				add	x1, x29, 1880
				mov	x0, x19
				bl	_imp_join
		.LVL6:
		.LBE37:
		.LBB42:
		.LBB43:
		.LBB44:
				add	x8, x29, 2904
				mov	w1, 0
				mov	w0, w23
				bl	_imp_itos
		.LVL7:
		.LBE44:
		.LBE43:
		.LBE42:
				add	x19, x29, 600
				mov	x8, x19
				add	x1, x29, 2136
				mov	x0, x20
				bl	_imp_join
		.LVL8:
		.LBE36:
				add	x20, x29, 2648
				mov	x8, x20
				add	x1, x29, 2392
				mov	x0, x19
				bl	_imp_join
		.LVL9:
				mov	x22, 256
				mov	x2, x22
				add	x1, x29, 344
				mov	x0, x20
				bl	memcpy
		.LVL10:
		.LBE35:
		.LBE34:
		.LBB45:
		.LBB46:
				add	x19, x29, 80
				mov	x2, x22
				mov	x1, x20
				mov	x0, x19
				bl	memcpy
		.LVL11:
				mov	x0, x19
				bl	_imp_printstring
		.LVL12:
		.LBE46:
		.LBE45:
				mov	w3, w24
				mov	w2, w23
				mov	w1, w25
				sub	w0, w21, #1
				bl	DOHANOI.7693
		.LVL20:
				b	.L1
		.L8:
				bl	__stack_chk_fail
		.LVL21:
		.LFE186:
				.align	2
				.global	main
		main:
		.LFB185:
    7   do hanoi(4, 1, 2, 3)
				adrp	x0, :got:__stack_chk_guard
				ldr	x0, [x0, #:got_lo12:__stack_chk_guard]
				ldr	x1, [x29, 3416]
				ldr	x0, [x0]
				eor	x0, x1, x0
				cbnz	x0, .L8
				ldp	x19, x20, [sp, 16]
				ldp	x21, x22, [sp, 32]
		.LVL13:
				ldp	x23, x24, [sp, 48]
		.LVL14:
				ldr	x25, [sp, 64]
		.LVL15:
				ldp	x29, x30, [sp]
				add	sp, sp, 3424
				ret
		.LVL16:
		.L6:
    8   print string("Towers of Hanoi puzzle completed!".to string(nl))
    9 %end %of %program
    9 Statements compiled
				add	x20, x29, 1080
				mov	x8, x20
				add	x1, x29, 824
				add	x0, x29, 568
				bl	_imp_join
		.LVL25:
				mov	x21, 256
				mov	x2, x21
				add	x1, x29, 312
				mov	x0, x20
				bl	memcpy
		.LVL26:
		.LBE48:
		.LBE47:
		.LBB49:
		.LBB50:
				add	x19, x29, 48
				mov	x2, x21
				mov	x1, x20
				mov	x0, x19
				bl	memcpy
		.LVL27:
				mov	x0, x19
				bl	_imp_printstring
		.LVL28:
		.LBE50:
		.LBE49:
		.LBB51:
		.LBB52:
				mov	w0, 0
				bl	exit
		.LVL29:
		.LBE52:
		.LBE51:
		.LFE185:
		.Letext0:
