	.file	"341386.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"INVALID INPUT, MUST BE >= 0"
.LC1:
	.string	"w"
.LC2:
	.string	"part2_fib.dat"
.LC3:
	.string	"%lu\n"
	.text
	.globl	fib
	.type	fib, @function
fib:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2096
	mov	QWORD PTR -2088[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2068[rbp], eax
	cmp	DWORD PTR -2068[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L2:
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -2056[rbp], rax
	cmp	DWORD PTR -2068[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR -2056[rbp]
	mov	rsi, rax
	mov	edi, 48
	call	fputc@PLT
.L3:
	cmp	DWORD PTR -2068[rbp], 1
	jne	.L4
	mov	rax, QWORD PTR -2056[rbp]
	mov	rsi, rax
	mov	edi, 49
	call	fputc@PLT
	jmp	.L5
.L4:
	mov	QWORD PTR -2048[rbp], 0
	mov	QWORD PTR -2040[rbp], 1
	mov	DWORD PTR -2072[rbp], 2
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -2072[rbp]
	sub	eax, 1
	cdqe
	mov	rdx, QWORD PTR -2048[rbp+rax*8]
	mov	eax, DWORD PTR -2072[rbp]
	sub	eax, 2
	cdqe
	mov	rax, QWORD PTR -2048[rbp+rax*8]
	add	rdx, rax
	mov	eax, DWORD PTR -2072[rbp]
	cdqe
	mov	QWORD PTR -2048[rbp+rax*8], rdx
	mov	eax, DWORD PTR -2072[rbp]
	cdqe
	mov	rax, QWORD PTR -2048[rbp+rax*8]
	mov	QWORD PTR -2064[rbp], rax
	add	DWORD PTR -2072[rbp], 1
.L6:
	mov	eax, DWORD PTR -2072[rbp]
	cmp	eax, DWORD PTR -2068[rbp]
	jle	.L7
	mov	rdx, QWORD PTR -2064[rbp]
	mov	rax, QWORD PTR -2056[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L5:
	mov	rax, QWORD PTR -2056[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	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
.LFE6:
	.size	fib, .-fib
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fib
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.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	"341386.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"INVALID INPUT, MUST BE >= 0\000"
	.align	2
.LC1:
	.ascii	"w\000"
	.align	2
.LC2:
	.ascii	"part2_fib.dat\000"
	.align	2
.LC3:
	.ascii	"%llu\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fib
	.syntax unified
	.arm
	.fpu softvfp
	.type	fib, %function
fib:
	@ args = 0, pretend = 0, frame = 2080
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #2080
	str	r0, [fp, #-2088]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-2088]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-2076]
	ldr	r3, [fp, #-2076]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L10+4
	bl	puts
.L2:
	ldr	r1, .L10+8
	ldr	r0, .L10+12
	bl	fopen
	str	r0, [fp, #-2072]
	ldr	r3, [fp, #-2076]
	cmp	r3, #0
	bne	.L3
	ldr	r1, [fp, #-2072]
	mov	r0, #48
	bl	fputc
.L3:
	ldr	r3, [fp, #-2076]
	cmp	r3, #1
	bne	.L4
	ldr	r1, [fp, #-2072]
	mov	r0, #49
	bl	fputc
	b	.L5
.L4:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-2060]
	str	r3, [fp, #-2056]
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-2052]
	str	r3, [fp, #-2048]
	mov	r3, #2
	str	r3, [fp, #-2080]
	b	.L6
.L7:
	ldr	r3, [fp, #-2080]
	sub	r3, r3, #1
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #2048
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-2080]
	sub	r3, r3, #2
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #2048
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	ldr	r3, [fp, #-2080]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #2048
	stm	r3, {r4-r5}
	ldr	r3, [fp, #-2080]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #2048
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-2068]
	str	r3, [fp, #-2064]
	ldr	r3, [fp, #-2080]
	add	r3, r3, #1
	str	r3, [fp, #-2080]
.L6:
	ldr	r2, [fp, #-2080]
	ldr	r3, [fp, #-2076]
	cmp	r2, r3
	ble	.L7
	ldr	r2, [fp, #-2068]
	ldr	r3, [fp, #-2064]
	ldr	r1, .L10+16
	ldr	r0, [fp, #-2072]
	bl	fprintf
.L5:
	ldr	r0, [fp, #-2072]
	bl	fclose
	mov	r3, #1
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	fib, .-fib
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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	r0, [fp, #-12]
	bl	fib
	mov	r0, #0
	bl	exit
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
