	.file	"773959.c"
	.intel_syntax noprefix
	.text
	.globl	n
	.section	.rodata
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.quad	4
	.globl	a
	.bss
	.align 8
	.type	a, @object
	.size	a, 8
a:
	.zero	8
	.globl	m
	.align 8
	.type	m, @object
	.size	m, 8
m:
	.zero	8
	.globl	q
	.align 8
	.type	q, @object
	.size	q, 8
q:
	.zero	8
	.globl	r
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.globl	count
	.align 8
	.type	count, @object
	.size	count, 8
count:
	.zero	8
	.globl	res
	.align 8
	.type	res, @object
	.size	res, 8
res:
	.zero	8
	.text
	.globl	Factorial
	.type	Factorial, @function
Factorial:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	mov	QWORD PTR res[rip], 1
	jmp	.L4
.L2:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, 1
	mov	rdi, rax
	call	Factorial
	mov	rax, QWORD PTR res[rip]
	imul	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR res[rip], rax
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Factorial, .-Factorial
	.globl	FibRec
	.type	FibRec, @function
FibRec:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 1
	jg	.L6
	mov	QWORD PTR res[rip], 1
	jmp	.L8
.L6:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, 1
	mov	rdi, rax
	call	FibRec
	mov	rax, QWORD PTR res[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, 2
	mov	rdi, rax
	call	FibRec
	mov	rax, QWORD PTR res[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	QWORD PTR res[rip], rax
.L8:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	FibRec, .-FibRec
	.section	.rodata
.LC0:
	.string	" %lld"
	.text
	.globl	MoveDisc
	.type	MoveDisc, @function
MoveDisc:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR count[rip]
	add	rax, 1
	mov	QWORD PTR count[rip], rax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	MoveDisc, .-MoveDisc
	.globl	MoveTower
	.type	MoveTower, @function
MoveTower:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	cmp	QWORD PTR -32[rbp], 1
	jne	.L11
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	MoveDisc
	jmp	.L13
.L11:
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, -1[rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	MoveTower
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	MoveDisc
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, -1[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	MoveTower
.L13:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	MoveTower, .-MoveTower
	.globl	Hanoi
	.type	Hanoi, @function
Hanoi:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR count[rip], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 2
	mov	edi, 1
	call	MoveTower
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR count[rip]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	Hanoi, .-Hanoi
	.globl	main
	.type	main, @function
main:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR a[rip], 16807
	mov	QWORD PTR m[rip], 127
	mov	rax, QWORD PTR m[rip]
	sal	rax, 8
	add	rax, 255
	mov	QWORD PTR m[rip], rax
	mov	rax, QWORD PTR m[rip]
	sal	rax, 8
	add	rax, 255
	mov	QWORD PTR m[rip], rax
	mov	rax, QWORD PTR m[rip]
	sal	rax, 8
	add	rax, 255
	mov	QWORD PTR m[rip], rax
	mov	rax, QWORD PTR m[rip]
	mov	rcx, QWORD PTR a[rip]
	cqo
	idiv	rcx
	mov	QWORD PTR q[rip], rax
	mov	rax, QWORD PTR m[rip]
	mov	rcx, QWORD PTR a[rip]
	cqo
	idiv	rcx
	mov	rax, rdx
	mov	QWORD PTR r[rip], rax
	mov	edi, 7
	call	Factorial
	mov	rax, QWORD PTR res[rip]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	edi, 11
	call	FibRec
	mov	rax, QWORD PTR res[rip]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	edi, 3
	call	Hanoi
	mov	edi, 10
	call	putchar@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"773959.c"
	.text
	.global	n
	.section	.rodata
	.align	3
	.type	n, %object
	.size	n, 8
n:
	.word	4
	.word	0
	.comm	a,8,8
	.comm	m,8,8
	.comm	q,8,8
	.comm	r,8,8
	.comm	count,8,8
	.comm	res,8,8
	.text
	.align	2
	.global	Factorial
	.syntax unified
	.arm
	.fpu softvfp
	.type	Factorial, %function
Factorial:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L2
	ldr	r1, .L5
	mov	r2, #1
	mov	r3, #0
	stm	r1, {r2-r3}
	b	.L4
.L2:
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	subs	r4, r2, #1
	sbc	r5, r3, #0
	mov	r0, r4
	mov	r1, r5
	bl	Factorial
	ldr	r3, .L5
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-20]
	mul	r0, r3, r1
	ldr	r1, [fp, #-16]
	mul	r1, r2, r1
	add	ip, r0, r1
	ldr	lr, [fp, #-20]
	umull	r0, r1, lr, r2
	add	r3, ip, r1
	mov	r1, r3
	ldr	r3, .L5
	stm	r3, {r0-r1}
.L4:
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L6:
	.align	2
.L5:
	.word	res
	.size	Factorial, .-Factorial
	.align	2
	.global	FibRec
	.syntax unified
	.arm
	.fpu softvfp
	.type	FibRec, %function
FibRec:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #24
	str	r0, [fp, #-52]
	str	r1, [fp, #-48]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	cmp	r2, #2
	sbcs	r3, r3, #0
	bge	.L8
	ldr	r1, .L11
	mov	r2, #1
	mov	r3, #0
	stm	r1, {r2-r3}
	b	.L10
.L8:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	subs	r8, r2, #1
	sbc	r9, r3, #0
	mov	r0, r8
	mov	r1, r9
	bl	FibRec
	ldr	r3, .L11
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	subs	r6, r2, #2
	sbc	r7, r3, #0
	mov	r0, r6
	mov	r1, r7
	bl	FibRec
	ldr	r3, .L11
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	ldr	r3, .L11
	stm	r3, {r4-r5}
.L10:
	nop
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L12:
	.align	2
.L11:
	.word	res
	.size	FibRec, .-FibRec
	.section	.rodata
	.align	2
.LC0:
	.ascii	" %lld\000"
	.text
	.align	2
	.global	MoveDisc
	.syntax unified
	.arm
	.fpu softvfp
	.type	MoveDisc, %function
MoveDisc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L14
	bl	printf
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r0, .L14
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r3, .L14+4
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	ldr	r3, .L14+4
	stm	r3, {r4-r5}
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	count
	.size	MoveDisc, .-MoveDisc
	.align	2
	.global	MoveTower
	.syntax unified
	.arm
	.fpu softvfp
	.type	MoveTower, %function
MoveTower:
	@ args = 16, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #32
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #1
	bne	.L17
	ldmib	fp, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	MoveDisc
	b	.L19
.L17:
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	subs	r6, r2, #1
	sbc	r7, r3, #0
	str	r6, [sp, #8]
	str	r7, [sp, #12]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldmib	fp, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	MoveTower
	ldmib	fp, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	MoveDisc
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	subs	r4, r2, #1
	sbc	r5, r3, #0
	str	r4, [sp, #8]
	str	r5, [sp, #12]
	ldmib	fp, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	MoveTower
.L19:
	nop
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
	.size	MoveTower, .-MoveTower
	.align	2
	.global	Hanoi
	.syntax unified
	.arm
	.fpu softvfp
	.type	Hanoi, %function
Hanoi:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	ldr	r1, .L21
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	mov	r2, #3
	mov	r3, #0
	stm	sp, {r2-r3}
	mov	r2, #2
	mov	r3, #0
	mov	r0, #1
	mov	r1, #0
	bl	MoveTower
	mov	r0, #10
	bl	putchar
	ldr	r3, .L21
	ldmia	r3, {r2-r3}
	ldr	r0, .L21+4
	bl	printf
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	count
	.word	.LC0
	.size	Hanoi, .-Hanoi
	.global	__aeabi_ldivmod
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	ldr	r1, .L24
	ldr	r2, .L24+4
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r1, .L24+8
	mov	r2, #127
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, .L24+8
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #8
	orr	r3, r3, r0, lsr #24
	lsl	r2, r0, #8
	adds	r8, r2, #255
	adc	r9, r3, #0
	ldr	r3, .L24+8
	stm	r3, {r8-r9}
	ldr	r3, .L24+8
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #8
	orr	r3, r3, r0, lsr #24
	lsl	r2, r0, #8
	adds	r6, r2, #255
	adc	r7, r3, #0
	ldr	r3, .L24+8
	stm	r3, {r6-r7}
	ldr	r3, .L24+8
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #8
	orr	r3, r3, r0, lsr #24
	lsl	r2, r0, #8
	adds	r4, r2, #255
	adc	r5, r3, #0
	ldr	r3, .L24+8
	stm	r3, {r4-r5}
	ldr	r3, .L24+8
	ldmia	r3, {r0-r1}
	ldr	r3, .L24
	ldmia	r3, {r2-r3}
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L24+12
	stm	r1, {r2-r3}
	ldr	r3, .L24+8
	ldmia	r3, {r0-r1}
	ldr	r3, .L24
	ldmia	r3, {r2-r3}
	bl	__aeabi_ldivmod
	ldr	r1, .L24+16
	stm	r1, {r2-r3}
	mov	r0, #7
	mov	r1, #0
	bl	Factorial
	ldr	r3, .L24+20
	ldmia	r3, {r2-r3}
	ldr	r0, .L24+24
	bl	printf
	mov	r0, #10
	bl	putchar
	mov	r0, #10
	bl	putchar
	mov	r0, #11
	mov	r1, #0
	bl	FibRec
	ldr	r3, .L24+20
	ldmia	r3, {r2-r3}
	ldr	r0, .L24+24
	bl	printf
	mov	r0, #10
	bl	putchar
	mov	r0, #10
	bl	putchar
	mov	r0, #3
	mov	r1, #0
	bl	Hanoi
	mov	r0, #10
	bl	putchar
	nop
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L25:
	.align	2
.L24:
	.word	a
	.word	16807
	.word	m
	.word	q
	.word	r
	.word	res
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
