	.file	"46900.c"
	.intel_syntax noprefix
	.text
	.globl	fib_recursive
	.type	fib_recursive, @function
fib_recursive:
.LFB0:
	.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
	jne	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	cmp	DWORD PTR -20[rbp], 1
	jne	.L4
	mov	eax, 1
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	edi, eax
	call	fib_recursive
	mov	ebx, eax
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 2
	mov	edi, eax
	call	fib_recursive
	add	eax, ebx
.L3:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fib_recursive, .-fib_recursive
	.globl	dummy
	.type	dummy, @function
dummy:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dummy, .-dummy
	.globl	i
	.data
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.long	2
	.section	.rodata
	.align 8
.LC0:
	.string	"Which fibonacci do you want to calculate? "
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"%dth fibonacci number (calculated using recursion): %d\n"
	.align 8
.LC3:
	.string	"Calculating the first 25 fibonacci numbers."
.LC5:
	.string	"fib[%d] = %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -144[rbp]
	mov	edi, eax
	call	fib_recursive
	mov	DWORD PTR -140[rbp], eax
	lea	rax, -140[rbp]
	mov	QWORD PTR -128[rbp], rax
	lea	rax, -128[rbp]
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -144[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR -112[rbp], 0
	mov	DWORD PTR -108[rbp], 1
	jmp	.L8
.L9:
	mov	eax, DWORD PTR i[rip]
	sub	eax, 1
	cdqe
	mov	ecx, DWORD PTR -112[rbp+rax*4]
	mov	eax, DWORD PTR i[rip]
	sub	eax, 2
	cdqe
	mov	edx, DWORD PTR -112[rbp+rax*4]
	mov	eax, DWORD PTR i[rip]
	add	edx, ecx
	cdqe
	mov	DWORD PTR -112[rbp+rax*4], edx
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L8:
	mov	eax, DWORD PTR i[rip]
	cmp	eax, 24
	jle	.L9
	movss	xmm0, DWORD PTR .LC4[rip]
	movss	DWORD PTR -132[rbp], xmm0
	movss	xmm0, DWORD PTR -132[rbp]
	cvttss2si	eax, xmm0
	mov	DWORD PTR -136[rbp], eax
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	mov	edx, DWORD PTR -112[rbp+rax*4]
	mov	eax, DWORD PTR -136[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -136[rbp], 1
.L10:
	cmp	DWORD PTR -136[rbp], 24
	jle	.L11
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC4:
	.long	1050253722
	.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	"46900.c"
	.text
	.align	2
	.global	fib_recursive
	.syntax unified
	.arm
	.fpu softvfp
	.type	fib_recursive, %function
fib_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
	bne	.L2
	mov	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L4
	mov	r3, #1
	b	.L3
.L4:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	mov	r0, r3
	bl	fib_recursive
	mov	r4, r0
	ldr	r3, [fp, #-16]
	sub	r3, r3, #2
	mov	r0, r3
	bl	fib_recursive
	mov	r3, r0
	add	r3, r4, r3
.L3:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	fib_recursive, .-fib_recursive
	.align	2
	.global	dummy
	.syntax unified
	.arm
	.fpu softvfp
	.type	dummy, %function
dummy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	dummy, .-dummy
	.global	i
	.data
	.align	2
	.type	i, %object
	.size	i, 4
i:
	.word	2
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Which fibonacci do you want to calculate? \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"%dth fibonacci number (calculated using recursion):"
	.ascii	" %d\012\000"
	.align	2
.LC3:
	.ascii	"Calculating the first 25 fibonacci numbers.\000"
	.global	__aeabi_f2iz
	.align	2
.LC4:
	.ascii	"fib[%d] = %d\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L14+4
	bl	printf
	sub	r3, fp, #132
	mov	r1, r3
	ldr	r0, .L14+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-132]
	mov	r0, r3
	bl	fib_recursive
	mov	r3, r0
	str	r3, [fp, #-128]
	sub	r3, fp, #128
	str	r3, [fp, #-124]
	sub	r3, fp, #124
	str	r3, [fp, #-116]
	ldr	r1, [fp, #-132]
	ldr	r3, [fp, #-116]
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L14+12
	bl	printf
	ldr	r0, .L14+16
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #1
	str	r3, [fp, #-104]
	b	.L8
.L9:
	ldr	r3, .L14+20
	ldr	r3, [r3]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r1, [r3, #-104]
	ldr	r3, .L14+20
	ldr	r3, [r3]
	sub	r3, r3, #2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-104]
	ldr	r3, .L14+20
	ldr	r3, [r3]
	add	r2, r1, r2
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-104]
	ldr	r3, .L14+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L14+20
	str	r3, [r2]
.L8:
	ldr	r3, .L14+20
	ldr	r3, [r3]
	cmp	r3, #24
	ble	.L9
	ldr	r3, .L14+24
	str	r3, [fp, #-112]	@ float
	ldr	r0, [fp, #-112]	@ float
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [fp, #-120]
	b	.L10
.L11:
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-104]
	mov	r2, r3
	ldr	r1, [fp, #-120]
	ldr	r0, .L14+28
	bl	printf
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L10:
	ldr	r3, [fp, #-120]
	cmp	r3, #24
	ble	.L11
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	i
	.word	1050253722
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
