	.file	"182953173.c"
	.intel_syntax noprefix
	.text
	.globl	f
	.bss
	.align 32
	.type	f, @object
	.size	f, 156
f:
	.zero	156
	.globl	r
	.align 32
	.type	r, @object
	.size	r, 156
r:
	.zero	156
	.text
	.globl	fib
	.type	fib, @function
fib:
.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	eax, edi
	mov	WORD PTR -20[rbp], ax
	cmp	WORD PTR -20[rbp], 0
	jne	.L2
	mov	eax, DWORD PTR f[rip]
	jmp	.L3
.L2:
	movsx	eax, WORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, f[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L4
	movsx	eax, WORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, f[rip]
	mov	eax, DWORD PTR [rdx+rax]
	jmp	.L3
.L4:
	movzx	eax, WORD PTR -20[rbp]
	sub	eax, 1
	cwde
	mov	edi, eax
	call	fib
	mov	ebx, eax
	movzx	eax, WORD PTR -20[rbp]
	sub	eax, 2
	cwde
	mov	edi, eax
	call	fib
	mov	edx, eax
	movsx	eax, WORD PTR -20[rbp]
	lea	ecx, [rbx+rdx]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, f[rip]
	mov	DWORD PTR [rdx+rax], ecx
	movsx	eax, WORD PTR -20[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, r[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	movsx	eax, WORD PTR -20[rbp]
	sub	eax, 2
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, r[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	edx, [rcx+rax]
	movsx	eax, WORD PTR -20[rbp]
	lea	ecx, 2[rdx]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, r[rip]
	mov	DWORD PTR [rdx+rax], ecx
	movsx	eax, WORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, f[rip]
	mov	eax, DWORD PTR [rdx+rax]
.L3:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fib, .-fib
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld"
.LC2:
	.string	"fib(%ld) = %ld calls = %ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 156
	mov	esi, 0
	lea	rdi, f[rip]
	call	memset@PLT
	mov	edx, 156
	mov	esi, 0
	lea	rdi, r[rip]
	call	memset@PLT
	mov	DWORD PTR f[rip+4], 1
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L6
.L7:
	lea	rax, -10[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, WORD PTR -10[rbp]
	cwde
	mov	edi, eax
	call	fib
	mov	ecx, eax
	movzx	eax, WORD PTR -10[rbp]
	cwde
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, r[rip]
	mov	edx, DWORD PTR [rdx+rax]
	movzx	eax, WORD PTR -10[rbp]
	cwde
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	movzx	eax, WORD PTR -12[rbp]
	mov	edx, eax
	sub	edx, 1
	mov	WORD PTR -12[rbp], dx
	test	ax, ax
	jne	.L7
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"182953173.c"
	.text
	.comm	f,156,4
	.comm	r,156,4
	.align	2
	.global	fib
	.syntax unified
	.arm
	.fpu softvfp
	.type	fib, %function
fib:
	@ 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
	mov	r3, r0
	strh	r3, [fp, #-14]	@ movhi
	ldrsh	r3, [fp, #-14]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L5
	ldr	r3, [r3]
	b	.L3
.L2:
	ldrsh	r3, [fp, #-14]
	ldr	r2, .L5
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L4
	ldrsh	r3, [fp, #-14]
	ldr	r2, .L5
	ldr	r3, [r2, r3, lsl #2]
	b	.L3
.L4:
	ldrh	r3, [fp, #-14]
	sub	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r0, r3
	bl	fib
	mov	r4, r0
	ldrh	r3, [fp, #-14]
	sub	r3, r3, #2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r0, r3
	bl	fib
	mov	r2, r0
	ldrsh	r3, [fp, #-14]
	add	r2, r4, r2
	ldr	r1, .L5
	str	r2, [r1, r3, lsl #2]
	ldrsh	r3, [fp, #-14]
	sub	r3, r3, #1
	ldr	r2, .L5+4
	ldr	r2, [r2, r3, lsl #2]
	ldrsh	r3, [fp, #-14]
	sub	r3, r3, #2
	ldr	r1, .L5+4
	ldr	r3, [r1, r3, lsl #2]
	add	r2, r2, r3
	ldrsh	r3, [fp, #-14]
	add	r2, r2, #2
	ldr	r1, .L5+4
	str	r2, [r1, r3, lsl #2]
	ldrsh	r3, [fp, #-14]
	ldr	r2, .L5
	ldr	r3, [r2, r3, lsl #2]
.L3:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L6:
	.align	2
.L5:
	.word	f
	.word	r
	.size	fib, .-fib
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%ld\000"
	.align	2
.LC2:
	.ascii	"fib(%ld) = %ld calls = %ld\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r2, #156
	mov	r1, #0
	ldr	r0, .L12+4
	bl	memset
	mov	r2, #156
	mov	r1, #0
	ldr	r0, .L12+8
	bl	memset
	ldr	r3, .L12+4
	mov	r2, #1
	str	r2, [r3, #4]
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L12+12
	bl	__isoc99_scanf
	b	.L8
.L9:
	sub	r3, fp, #18
	mov	r1, r3
	ldr	r0, .L12+16
	bl	__isoc99_scanf
	ldrsh	r3, [fp, #-18]
	mov	r5, r3
	ldrsh	r3, [fp, #-18]
	mov	r2, r3
	ldr	r3, .L12+8
	ldr	r4, [r3, r2, lsl #2]
	ldrsh	r3, [fp, #-18]
	mov	r0, r3
	bl	fib
	mov	r3, r0
	mov	r2, r4
	mov	r1, r5
	ldr	r0, .L12+20
	bl	printf
.L8:
	ldrsh	r3, [fp, #-20]
	lsl	r2, r3, #16
	lsr	r2, r2, #16
	sub	r2, r2, #1
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	lsl	r2, r2, #16
	asr	r2, r2, #16
	strh	r2, [fp, #-20]	@ movhi
	cmp	r3, #0
	bne	.L9
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	f
	.word	r
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
