	.file	"85805.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/dev/fibonacci"
	.align 8
.LC1:
	.string	"Failed to open character device"
.LC2:
	.string	"%d,%llu\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -52[rbp], eax
	movabs	rax, 2334956331019232628
	movabs	rdx, 29113321804886647
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -48[rbp], 1000
	mov	esi, 2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	jns	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	DWORD PTR -60[rbp], 0
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -60[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -40[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	add	QWORD PTR -40[rbp], rax
	add	DWORD PTR -56[rbp], 1
.L4:
	cmp	DWORD PTR -56[rbp], 999
	jle	.L5
	mov	rax, QWORD PTR -40[rbp]
	shr	rax, 3
	movabs	rdx, 2361183241434822607
	mul	rdx
	shr	rdx, 4
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -60[rbp], 1
.L3:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L6
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"85805.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/dev/fibonacci\000"
	.align	2
.LC2:
	.ascii	"Failed to open character device\000"
	.global	__aeabi_uldivmod
	.align	2
.LC3:
	.ascii	"%d,%llu\012\000"
	.align	2
.LC0:
	.ascii	"testing writing\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #64
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-56]
	ldr	r3, .L9+4
	sub	ip, fp, #32
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #1000
	str	r3, [fp, #-52]
	mov	r1, #2
	ldr	r0, .L9+8
	bl	open
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L9+12
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L3
.L6:
	mov	r2, #0
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-48]
	bl	lseek
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L4
.L5:
	ldr	r2, [fp, #-56]
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	write
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	adds	r4, r0, r2
	adc	r5, r1, r3
	str	r4, [fp, #-44]
	str	r5, [fp, #-40]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L4:
	ldr	r3, [fp, #-60]
	cmp	r3, #1000
	blt	.L5
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	mov	r2, #1000
	mov	r3, #0
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-64]
	ldr	r0, .L9+16
	bl	printf
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L3:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	blt	.L6
	ldr	r0, [fp, #-48]
	bl	close
	mov	r3, #0
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
