	.file	"842250.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"1. Factorial"
.LC1:
	.string	"2. Fibonacci"
.LC2:
	.string	"3. Sum of Digits"
.LC3:
	.string	"4. Exponentiation"
.LC4:
	.string	"5. GCD"
.LC5:
	.string	"6. LCM"
.LC6:
	.string	"7. Tower of Hanoi"
.LC7:
	.string	"8. Reverse String"
.LC8:
	.string	"0. Exit"
.LC9:
	.string	"%d"
	.text
	.globl	print_menu
	.type	print_menu, @function
print_menu:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edi, 62
	call	putchar@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	print_menu, .-print_menu
	.globl	factorial_recursive
	.type	factorial_recursive, @function
factorial_recursive:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 1
	jg	.L5
	mov	eax, 1
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	mov	edi, eax
	call	factorial_recursive
	imul	eax, DWORD PTR -4[rbp]
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	factorial_recursive, .-factorial_recursive
	.globl	factorial_iterative
	.type	factorial_iterative, @function
factorial_iterative:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 1
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	sub	DWORD PTR -20[rbp], 1
.L8:
	cmp	DWORD PTR -20[rbp], 1
	jg	.L9
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	factorial_iterative, .-factorial_iterative
	.globl	fibonacci_recursive
	.type	fibonacci_recursive, @function
fibonacci_recursive:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	jg	.L12
	mov	eax, 0
	jmp	.L13
.L12:
	cmp	DWORD PTR -20[rbp], 1
	jne	.L14
	mov	eax, 1
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	edi, eax
	call	fibonacci_recursive
	mov	ebx, eax
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 2
	mov	edi, eax
	call	fibonacci_recursive
	add	eax, ebx
.L13:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	fibonacci_recursive, .-fibonacci_recursive
	.globl	fibonacci_iterative
	.type	fibonacci_iterative, @function
fibonacci_iterative:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -8[rbp], 1
	mov	DWORD PTR -4[rbp], 0
	cmp	DWORD PTR -20[rbp], 0
	jne	.L16
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L17
.L16:
	cmp	DWORD PTR -20[rbp], 1
	jne	.L18
	mov	eax, DWORD PTR -8[rbp]
	jmp	.L17
.L18:
	mov	DWORD PTR -16[rbp], 2
	jmp	.L19
.L20:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -8[rbp], eax
	add	DWORD PTR -16[rbp], 1
.L19:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jle	.L20
	mov	eax, DWORD PTR -12[rbp]
.L17:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	fibonacci_iterative, .-fibonacci_iterative
	.globl	sumOfDigits_recursive
	.type	sumOfDigits_recursive, @function
sumOfDigits_recursive:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	jg	.L22
	mov	eax, 0
	jmp	.L23
.L22:
	mov	edx, DWORD PTR -20[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ebx, eax
	mov	eax, ebx
	sal	eax, 2
	add	eax, ebx
	add	eax, eax
	mov	ebx, edx
	sub	ebx, eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	edi, eax
	call	sumOfDigits_recursive
	add	eax, ebx
.L23:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	sumOfDigits_recursive, .-sumOfDigits_recursive
	.globl	sumOfDigits_iterative
	.type	sumOfDigits_iterative, @function
sumOfDigits_iterative:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L25
.L26:
	mov	ecx, DWORD PTR -20[rbp]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	add	DWORD PTR -4[rbp], edx
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -20[rbp], eax
.L25:
	cmp	DWORD PTR -20[rbp], 0
	jg	.L26
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sumOfDigits_iterative, .-sumOfDigits_iterative
	.globl	exponent_recursive
	.type	exponent_recursive, @function
exponent_recursive:
.LFB7:
	.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	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -8[rbp], 0
	jg	.L29
	mov	eax, 1
	jmp	.L30
.L29:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	exponent_recursive
	imul	eax, DWORD PTR -4[rbp]
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	exponent_recursive, .-exponent_recursive
	.globl	exponent_iterative
	.type	exponent_iterative, @function
exponent_iterative:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -4[rbp], 1
	jmp	.L32
.L33:
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	sub	DWORD PTR -24[rbp], 1
.L32:
	cmp	DWORD PTR -24[rbp], 0
	jg	.L33
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	exponent_iterative, .-exponent_iterative
	.globl	gcd_recursive
	.type	gcd_recursive, @function
gcd_recursive:
.LFB9:
	.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	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -8[rbp], 0
	jne	.L36
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L37
.L36:
	mov	eax, DWORD PTR -4[rbp]
	cdq
	idiv	DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	gcd_recursive
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	gcd_recursive, .-gcd_recursive
	.globl	gcd_iterative
	.type	gcd_iterative, @function
gcd_iterative:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	jmp	.L39
.L40:
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -24[rbp]
	mov	DWORD PTR -24[rbp], edx
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -20[rbp], eax
.L39:
	cmp	DWORD PTR -24[rbp], 0
	jne	.L40
	mov	eax, DWORD PTR -20[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	gcd_iterative, .-gcd_iterative
	.globl	_lcm
	.type	_lcm, @function
_lcm:
.LFB11:
	.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	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	eax, DWORD PTR -4[rbp]
	cdq
	idiv	DWORD PTR -12[rbp]
	mov	eax, edx
	test	eax, eax
	jne	.L43
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L44
.L43:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	lea	ecx, [rdx+rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	mov	edi, ecx
	call	_lcm
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	_lcm, .-_lcm
	.globl	lcm_recursive
	.type	lcm_recursive, @function
lcm_recursive:
.LFB12:
	.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	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -4[rbp], 0
	je	.L46
	cmp	DWORD PTR -8[rbp], 0
	jne	.L47
.L46:
	mov	eax, 0
	jmp	.L48
.L47:
	mov	edx, DWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	_lcm
.L48:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	lcm_recursive, .-lcm_recursive
	.globl	lcm_iterative
	.type	lcm_iterative, @function
lcm_iterative:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	cmp	DWORD PTR -20[rbp], 0
	je	.L50
	cmp	DWORD PTR -24[rbp], 0
	jne	.L51
.L50:
	mov	eax, 0
	jmp	.L52
.L51:
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L53
.L54:
	mov	eax, DWORD PTR -20[rbp]
	add	DWORD PTR -4[rbp], eax
.L53:
	mov	eax, DWORD PTR -4[rbp]
	cdq
	idiv	DWORD PTR -24[rbp]
	mov	eax, edx
	test	eax, eax
	jne	.L54
	mov	eax, DWORD PTR -4[rbp]
.L52:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	lcm_iterative, .-lcm_iterative
	.section	.rodata
.LC10:
	.string	"Move disk from %c to %c\n"
	.text
	.globl	towerOfHanoi_recursive
	.type	towerOfHanoi_recursive, @function
towerOfHanoi_recursive:
.LFB14:
	.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	DWORD PTR -4[rbp], edi
	mov	eax, ecx
	mov	ecx, esi
	mov	BYTE PTR -8[rbp], cl
	mov	BYTE PTR -12[rbp], dl
	mov	BYTE PTR -16[rbp], al
	cmp	DWORD PTR -4[rbp], 1
	jg	.L56
	movsx	edx, BYTE PTR -16[rbp]
	movsx	eax, BYTE PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L55
.L56:
	movsx	ecx, BYTE PTR -12[rbp]
	movsx	edx, BYTE PTR -16[rbp]
	movsx	eax, BYTE PTR -8[rbp]
	mov	esi, DWORD PTR -4[rbp]
	lea	edi, -1[rsi]
	mov	esi, eax
	call	towerOfHanoi_recursive
	movsx	edx, BYTE PTR -16[rbp]
	movsx	eax, BYTE PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	movsx	ecx, BYTE PTR -16[rbp]
	movsx	edx, BYTE PTR -8[rbp]
	movsx	eax, BYTE PTR -12[rbp]
	mov	esi, DWORD PTR -4[rbp]
	lea	edi, -1[rsi]
	mov	esi, eax
	call	towerOfHanoi_recursive
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	towerOfHanoi_recursive, .-towerOfHanoi_recursive
	.globl	reverseString_recursive
	.type	reverseString_recursive, @function
reverseString_recursive:
.LFB15:
	.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	DWORD PTR -12[rbp], esi
	cmp	DWORD PTR -12[rbp], 1
	jle	.L61
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	xor	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rsi, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rsi
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	xor	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, -2[rax]
	add	QWORD PTR -8[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	reverseString_recursive
	jmp	.L58
.L61:
	nop
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	reverseString_recursive, .-reverseString_recursive
	.globl	reverseString_iterative
	.type	reverseString_iterative, @function
reverseString_iterative:
.LFB16:
	.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 -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L63
.L66:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jge	.L67
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rsi
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rsi
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rsi
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -8[rbp], 1
.L63:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L66
	jmp	.L68
.L67:
	nop
.L68:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	reverseString_iterative, .-reverseString_iterative
	.section	.rodata
.LC11:
	.string	"1. Iterative\n2. Recursive\n>"
	.align 8
.LC12:
	.string	"Enter number to find factorial of: "
.LC13:
	.string	"%d\n"
.LC14:
	.string	"Enter which term you want: "
.LC15:
	.string	"Enter number: "
.LC16:
	.string	"Sum of Digits = %d\n"
.LC17:
	.string	"Enter base: "
.LC18:
	.string	"Enter power: "
.LC19:
	.string	"Enter num1: "
.LC20:
	.string	"Enter num2: "
.LC21:
	.string	"Enter number of disks: "
.LC22:
	.string	"Enter string: "
.LC23:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, 1
	jne	.L70
	mov	eax, 0
	call	print_menu
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, 8
	ja	.L83
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L73[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L73[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L73:
	.long	.L83-.L73
	.long	.L80-.L73
	.long	.L79-.L73
	.long	.L78-.L73
	.long	.L77-.L73
	.long	.L76-.L73
	.long	.L75-.L73
	.long	.L74-.L73
	.long	.L72-.L73
	.text
.L80:
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	factorial_iterative
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L83
.L79:
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	fibonacci_iterative
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L83
.L78:
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	sumOfDigits_iterative
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L83
.L77:
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	exponent_iterative
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L83
.L76:
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	gcd_iterative
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L83
.L75:
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	lcm_iterative
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L83
.L74:
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	ecx, 67
	mov	edx, 66
	mov	esi, 65
	mov	edi, eax
	call	towerOfHanoi_recursive
	jmp	.L83
.L72:
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -36[rbp], 0
	jmp	.L81
.L82:
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
	mov	DWORD PTR -36[rbp], eax
.L81:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	test	al, al
	jne	.L82
	mov	edx, DWORD PTR -36[rbp]
	lea	rax, -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	reverseString_iterative
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	puts@PLT
	jmp	.L83
.L70:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, 2
	jne	.L99
	nop
.L84:
	mov	eax, 0
	call	print_menu
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, 8
	ja	.L84
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L87[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L87[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L87:
	.long	.L84-.L87
	.long	.L94-.L87
	.long	.L93-.L87
	.long	.L92-.L87
	.long	.L91-.L87
	.long	.L90-.L87
	.long	.L89-.L87
	.long	.L88-.L87
	.long	.L86-.L87
	.text
.L94:
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	factorial_recursive
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L83
.L93:
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	fibonacci_recursive
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L83
.L92:
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	sumOfDigits_recursive
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L83
.L91:
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	exponent_recursive
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L83
.L90:
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	gcd_recursive
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L83
.L89:
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	lcm_recursive
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L83
.L88:
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	ecx, 67
	mov	edx, 66
	mov	esi, 65
	mov	edi, eax
	call	towerOfHanoi_recursive
	jmp	.L83
.L86:
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -36[rbp], 0
	jmp	.L95
.L96:
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
	mov	DWORD PTR -36[rbp], eax
.L95:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	test	al, al
	jne	.L96
	mov	edx, DWORD PTR -36[rbp]
	lea	rax, -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	reverseString_recursive
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	puts@PLT
	jmp	.L83
.L99:
	nop
.L83:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L98
	call	__stack_chk_fail@PLT
.L98:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.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	"842250.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"1. Factorial\000"
	.align	2
.LC1:
	.ascii	"2. Fibonacci\000"
	.align	2
.LC2:
	.ascii	"3. Sum of Digits\000"
	.align	2
.LC3:
	.ascii	"4. Exponentiation\000"
	.align	2
.LC4:
	.ascii	"5. GCD\000"
	.align	2
.LC5:
	.ascii	"6. LCM\000"
	.align	2
.LC6:
	.ascii	"7. Tower of Hanoi\000"
	.align	2
.LC7:
	.ascii	"8. Reverse String\000"
	.align	2
.LC8:
	.ascii	"0. Exit\000"
	.align	2
.LC9:
	.ascii	"%d\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	print_menu
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_menu, %function
print_menu:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L4+4
	bl	puts
	ldr	r0, .L4+8
	bl	puts
	ldr	r0, .L4+12
	bl	puts
	ldr	r0, .L4+16
	bl	puts
	ldr	r0, .L4+20
	bl	puts
	ldr	r0, .L4+24
	bl	puts
	ldr	r0, .L4+28
	bl	puts
	ldr	r0, .L4+32
	bl	puts
	ldr	r0, .L4+36
	bl	puts
	mov	r0, #62
	bl	putchar
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L4+40
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	print_menu, .-print_menu
	.align	2
	.global	factorial_recursive
	.syntax unified
	.arm
	.fpu softvfp
	.type	factorial_recursive, %function
factorial_recursive:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bgt	.L7
	mov	r3, #1
	b	.L8
.L7:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	mov	r0, r3
	bl	factorial_recursive
	mov	r2, r0
	ldr	r3, [fp, #-8]
	mul	r3, r2, r3
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	factorial_recursive, .-factorial_recursive
	.align	2
	.global	factorial_iterative
	.syntax unified
	.arm
	.fpu softvfp
	.type	factorial_iterative, %function
factorial_iterative:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L10
.L11:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L10:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bgt	.L11
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	factorial_iterative, .-factorial_iterative
	.align	2
	.global	fibonacci_recursive
	.syntax unified
	.arm
	.fpu softvfp
	.type	fibonacci_recursive, %function
fibonacci_recursive:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L14
	mov	r3, #0
	b	.L15
.L14:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L16
	mov	r3, #1
	b	.L15
.L16:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	mov	r0, r3
	bl	fibonacci_recursive
	mov	r4, r0
	ldr	r3, [fp, #-16]
	sub	r3, r3, #2
	mov	r0, r3
	bl	fibonacci_recursive
	mov	r3, r0
	add	r3, r4, r3
.L15:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	fibonacci_recursive, .-fibonacci_recursive
	.align	2
	.global	fibonacci_iterative
	.syntax unified
	.arm
	.fpu softvfp
	.type	fibonacci_iterative, %function
fibonacci_iterative:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-8]
	b	.L19
.L18:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L20
	ldr	r3, [fp, #-12]
	b	.L19
.L20:
	mov	r3, #2
	str	r3, [fp, #-20]
	b	.L21
.L22:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L21:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L22
	ldr	r3, [fp, #-16]
.L19:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	fibonacci_iterative, .-fibonacci_iterative
	.align	2
	.global	sumOfDigits_recursive
	.syntax unified
	.arm
	.fpu softvfp
	.type	sumOfDigits_recursive, %function
sumOfDigits_recursive:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L24
	mov	r3, #0
	b	.L25
.L24:
	ldr	r2, [fp, #-16]
	ldr	r3, .L26
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r4, r1, r3
	mov	r3, r4
	lsl	r3, r3, #2
	add	r3, r3, r4
	lsl	r3, r3, #1
	sub	r4, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r2, .L26
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	mov	r0, r3
	bl	sumOfDigits_recursive
	mov	r3, r0
	add	r3, r4, r3
.L25:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L27:
	.align	2
.L26:
	.word	1717986919
	.size	sumOfDigits_recursive, .-sumOfDigits_recursive
	.align	2
	.global	sumOfDigits_iterative
	.syntax unified
	.arm
	.fpu softvfp
	.type	sumOfDigits_iterative, %function
sumOfDigits_iterative:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L29
.L30:
	ldr	r1, [fp, #-16]
	ldr	r3, .L32
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, .L32
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-16]
.L29:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L30
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L33:
	.align	2
.L32:
	.word	1717986919
	.size	sumOfDigits_iterative, .-sumOfDigits_iterative
	.align	2
	.global	exponent_recursive
	.syntax unified
	.arm
	.fpu softvfp
	.type	exponent_recursive, %function
exponent_recursive:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L35
	mov	r3, #1
	b	.L36
.L35:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	exponent_recursive
	mov	r2, r0
	ldr	r3, [fp, #-8]
	mul	r3, r2, r3
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	exponent_recursive, .-exponent_recursive
	.align	2
	.global	exponent_iterative
	.syntax unified
	.arm
	.fpu softvfp
	.type	exponent_iterative, %function
exponent_iterative:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L38
.L39:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
.L38:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bgt	.L39
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	exponent_iterative, .-exponent_iterative
	.global	__aeabi_idivmod
	.align	2
	.global	gcd_recursive
	.syntax unified
	.arm
	.fpu softvfp
	.type	gcd_recursive, %function
gcd_recursive:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L42
	ldr	r3, [fp, #-8]
	b	.L43
.L42:
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	gcd_recursive
	mov	r3, r0
.L43:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	gcd_recursive, .-gcd_recursive
	.align	2
	.global	gcd_iterative
	.syntax unified
	.arm
	.fpu softvfp
	.type	gcd_iterative, %function
gcd_iterative:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	b	.L45
.L46:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
.L45:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L46
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	gcd_iterative, .-gcd_iterative
	.align	2
	.global	_lcm
	.syntax unified
	.arm
	.fpu softvfp
	.type	_lcm, %function
_lcm:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L49
	ldr	r3, [fp, #-8]
	b	.L50
.L49:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	_lcm
	mov	r3, r0
.L50:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_lcm, .-_lcm
	.align	2
	.global	lcm_recursive
	.syntax unified
	.arm
	.fpu softvfp
	.type	lcm_recursive, %function
lcm_recursive:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L52
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L53
.L52:
	mov	r3, #0
	b	.L54
.L53:
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	_lcm
	mov	r3, r0
.L54:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	lcm_recursive, .-lcm_recursive
	.align	2
	.global	lcm_iterative
	.syntax unified
	.arm
	.fpu softvfp
	.type	lcm_iterative, %function
lcm_iterative:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L56
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L57
.L56:
	mov	r3, #0
	b	.L58
.L57:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L59
.L60:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
.L59:
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L60
	ldr	r3, [fp, #-8]
.L58:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	lcm_iterative, .-lcm_iterative
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Move disk from %c to %c\012\000"
	.text
	.align	2
	.global	towerOfHanoi_recursive
	.syntax unified
	.arm
	.fpu softvfp
	.type	towerOfHanoi_recursive, %function
towerOfHanoi_recursive:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r0, r1
	mov	r1, r2
	mov	r2, r3
	mov	r3, r0
	strb	r3, [fp, #-9]
	mov	r3, r1
	strb	r3, [fp, #-10]
	mov	r3, r2
	strb	r3, [fp, #-11]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bgt	.L62
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	ldrb	r2, [fp, #-11]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L64
	bl	printf
	b	.L61
.L62:
	ldr	r3, [fp, #-8]
	sub	r0, r3, #1
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	ldrb	r2, [fp, #-11]	@ zero_extendqisi2
	ldrb	r1, [fp, #-9]	@ zero_extendqisi2
	bl	towerOfHanoi_recursive
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	ldrb	r2, [fp, #-11]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L64
	bl	printf
	ldr	r3, [fp, #-8]
	sub	r0, r3, #1
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	ldrb	r1, [fp, #-10]	@ zero_extendqisi2
	bl	towerOfHanoi_recursive
.L61:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L65:
	.align	2
.L64:
	.word	.LC11
	.size	towerOfHanoi_recursive, .-towerOfHanoi_recursive
	.align	2
	.global	reverseString_recursive
	.syntax unified
	.arm
	.fpu softvfp
	.type	reverseString_recursive, %function
reverseString_recursive:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	ble	.L69
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, r2
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r0, [fp, #-8]
	add	r3, r0, r3
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, r2
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	reverseString_recursive
	b	.L66
.L69:
	nop
.L66:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	reverseString_recursive, .-reverseString_recursive
	.align	2
	.global	reverseString_iterative
	.syntax unified
	.arm
	.fpu softvfp
	.type	reverseString_iterative, %function
reverseString_iterative:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L71
.L74:
	ldr	r3, [fp, #-20]
	sub	r2, r3, #1
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L75
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	ldr	r0, [fp, #-16]
	add	r3, r0, r3
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	add	r3, r0, r3
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	ldr	r0, [fp, #-16]
	add	r3, r0, r3
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L71:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L74
	b	.L76
.L75:
	nop
.L76:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	reverseString_iterative, .-reverseString_iterative
	.section	.rodata
	.align	2
.LC12:
	.ascii	"1. Iterative\0122. Recursive\012>\000"
	.align	2
.LC13:
	.ascii	"Enter number to find factorial of: \000"
	.align	2
.LC14:
	.ascii	"%d\012\000"
	.align	2
.LC15:
	.ascii	"Enter which term you want: \000"
	.align	2
.LC16:
	.ascii	"Enter number: \000"
	.align	2
.LC17:
	.ascii	"Sum of Digits = %d\012\000"
	.align	2
.LC18:
	.ascii	"Enter base: \000"
	.align	2
.LC19:
	.ascii	"Enter power: \000"
	.align	2
.LC20:
	.ascii	"Enter num1: \000"
	.align	2
.LC21:
	.ascii	"Enter num2: \000"
	.align	2
.LC22:
	.ascii	"Enter number of disks: \000"
	.align	2
.LC23:
	.ascii	"Enter string: \000"
	.align	2
.LC24:
	.ascii	"%s\000"
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L108
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L108+4
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L108+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	bne	.L78
	bl	print_menu
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L91
.L81:
	.word	.L88
	.word	.L87
	.word	.L86
	.word	.L85
	.word	.L84
	.word	.L83
	.word	.L82
	.word	.L80
.L88:
	ldr	r0, .L108+12
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L108+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	factorial_iterative
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L108+16
	bl	printf
	b	.L91
.L87:
	ldr	r0, .L108+20
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L108+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	fibonacci_iterative
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L108+16
	bl	printf
	b	.L91
.L86:
	ldr	r0, .L108+24
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L108+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	sumOfDigits_iterative
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L108+28
	bl	printf
	b	.L91
.L85:
	ldr	r0, .L108+32
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L108+8
	bl	__isoc99_scanf
	ldr	r0, .L108+36
	bl	printf
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L108+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	mov	r1, r2
	mov	r0, r3
	bl	exponent_iterative
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L108+16
	bl	printf
	b	.L91
.L84:
	ldr	r0, .L108+40
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L108+8
	bl	__isoc99_scanf
	ldr	r0, .L108+44
	bl	printf
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L108+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	mov	r1, r2
	mov	r0, r3
	bl	gcd_iterative
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L108+16
	bl	printf
	b	.L91
.L83:
	ldr	r0, .L108+40
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L108+8
	bl	__isoc99_scanf
	ldr	r0, .L108+44
	bl	printf
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L108+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	mov	r1, r2
	mov	r0, r3
	bl	lcm_iterative
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L108+16
	bl	printf
	b	.L91
.L82:
	ldr	r0, .L108+48
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L108+8
	bl	__isoc99_scanf
	ldr	r0, [fp, #-36]
	mov	r3, #67
	mov	r2, #66
	mov	r1, #65
	bl	towerOfHanoi_recursive
	b	.L91
.L80:
	ldr	r0, .L108+52
	bl	printf
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L108+56
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L89
.L90:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L89:
	ldr	r3, [fp, #-32]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-24]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L90
	ldr	r2, [fp, #-32]
	sub	r3, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	reverseString_iterative
	sub	r3, fp, #28
	mov	r0, r3
	bl	puts
	b	.L91
.L78:
	ldr	r3, [fp, #-36]
	cmp	r3, #2
	bne	.L107
	nop
.L92:
	bl	print_menu
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L92
.L95:
	.word	.L102
	.word	.L101
	.word	.L100
	.word	.L99
	.word	.L98
	.word	.L97
	.word	.L96
	.word	.L94
.L102:
	ldr	r0, .L108+12
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L108+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	factorial_recursive
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L108+16
	bl	printf
	b	.L91
.L101:
	ldr	r0, .L108+20
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L108+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	fibonacci_recursive
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L108+16
	bl	printf
	b	.L91
.L100:
	ldr	r0, .L108+24
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L108+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	sumOfDigits_recursive
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L108+28
	bl	printf
	b	.L91
.L99:
	ldr	r0, .L108+32
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L108+8
	bl	__isoc99_scanf
	ldr	r0, .L108+36
	bl	printf
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L108+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	mov	r1, r2
	mov	r0, r3
	bl	exponent_recursive
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L108+16
	bl	printf
	b	.L91
.L98:
	ldr	r0, .L108+40
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L108+8
	bl	__isoc99_scanf
	ldr	r0, .L108+44
	bl	printf
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L108+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	mov	r1, r2
	mov	r0, r3
	bl	gcd_recursive
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L108+16
	bl	printf
	b	.L91
.L97:
	ldr	r0, .L108+40
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L108+8
	bl	__isoc99_scanf
	ldr	r0, .L108+44
	bl	printf
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L108+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	mov	r1, r2
	mov	r0, r3
	bl	lcm_recursive
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L108+16
	bl	printf
	b	.L91
.L96:
	ldr	r0, .L108+48
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L108+8
	bl	__isoc99_scanf
	ldr	r0, [fp, #-36]
	mov	r3, #67
	mov	r2, #66
	mov	r1, #65
	bl	towerOfHanoi_recursive
	b	.L91
.L94:
	ldr	r0, .L108+52
	bl	printf
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L108+56
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L103
.L104:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L103:
	ldr	r3, [fp, #-32]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-24]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L104
	ldr	r2, [fp, #-32]
	sub	r3, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	reverseString_recursive
	sub	r3, fp, #28
	mov	r0, r3
	bl	puts
	b	.L91
.L107:
	nop
.L91:
	mov	r3, #0
	ldr	r2, .L108
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L106
	bl	__stack_chk_fail
.L106:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L109:
	.align	2
.L108:
	.word	.LC25
	.word	.LC12
	.word	.LC9
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
