	.file	"218891967.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/dev/fibonacci"
	.align 8
.LC1:
	.string	"Failed to open character device"
	.align 8
.LC2:
	.string	"# Writing to /dev/fibonacci, returned the sequence %lld\n"
.LC4:
	.string	"%d %lld %lld %lld\n"
	.align 8
.LC5:
	.string	"Reading from /dev/fibonacci at offset %d, returned the sequence %lld.\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
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 2334956331019232628
	movabs	rdx, 29113321804886647
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -112[rbp], 100
	mov	esi, 2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], 0
	jns	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	DWORD PTR -124[rbp], 0
	jmp	.L3
.L4:
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -108[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -124[rbp], 1
.L3:
	mov	eax, DWORD PTR -124[rbp]
	cmp	eax, DWORD PTR -112[rbp]
	jle	.L4
	mov	DWORD PTR -120[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -120[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -108[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	lea	rax, -80[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -108[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -96[rbp], rax
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	mov	rax, QWORD PTR -64[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	movsd	xmm0, QWORD PTR .LC3[rip]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -56[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	addsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	mov	rax, QWORD PTR -80[rbp]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, rax
	movsd	xmm1, QWORD PTR .LC3[rip]
	mulsd	xmm2, xmm1
	mov	rax, QWORD PTR -72[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	addsd	xmm1, xmm2
	subsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	sub	rax, QWORD PTR -96[rbp]
	mov	rsi, rax
	mov	rcx, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR -120[rbp]
	mov	r8, rsi
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR -120[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -120[rbp], 1
.L5:
	mov	eax, DWORD PTR -120[rbp]
	cmp	eax, DWORD PTR -112[rbp]
	jle	.L6
	mov	eax, DWORD PTR -112[rbp]
	mov	DWORD PTR -116[rbp], eax
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -116[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -108[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	lea	rcx, -33[rbp]
	mov	eax, DWORD PTR -108[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	rdx, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -116[rbp], 1
.L7:
	cmp	DWORD PTR -116[rbp], 0
	jns	.L8
	mov	eax, DWORD PTR -108[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1104006501
	.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	"218891967.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/dev/fibonacci\000"
	.align	2
.LC2:
	.ascii	"Failed to open character device\000"
	.align	2
.LC3:
	.ascii	"# Writing to /dev/fibonacci, returned the sequence "
	.ascii	"%lld\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_d2lz
	.global	__aeabi_l2d
	.global	__aeabi_dsub
	.align	2
.LC4:
	.ascii	"%d %lld %lld %lld\012\000"
	.align	2
.LC5:
	.ascii	"Reading from /dev/fibonacci at offset %d, returned "
	.ascii	"the sequence %lld.\012\000"
	.align	2
.LC0:
	.ascii	"testing writing\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #104
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ldr	r3, .L11+4
	sub	ip, fp, #48
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #100
	str	r3, [fp, #-100]
	mov	r1, #2
	ldr	r0, .L11+8
	bl	open
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L11+12
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L3
.L4:
	sub	r3, fp, #48
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, [fp, #-96]
	bl	write
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	ldr	r0, .L11+16
	bl	printf
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L3:
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	ble	.L4
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L5
.L6:
	mov	r2, #0
	ldr	r1, [fp, #-108]
	ldr	r0, [fp, #-96]
	bl	lseek
	sub	r3, fp, #68
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	sub	r3, fp, #48
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-96]
	bl	write
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	sub	r3, fp, #60
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	ldr	r3, [fp, #-60]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L11+20
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2lz
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_l2d
	mov	r6, r0
	mov	r7, r1
	ldr	r3, [fp, #-68]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L11+20
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r8, r2
	mov	r9, r3
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2lz
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	subs	r4, r0, r2
	sbc	r5, r1, r3
	str	r4, [sp, #8]
	str	r5, [sp, #12]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-108]
	ldr	r0, .L11+24
	bl	printf
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-108]
	ldr	r0, .L11+28
	bl	printf
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L5:
	ldr	r2, [fp, #-108]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	ble	.L6
	ldr	r3, [fp, #-100]
	str	r3, [fp, #-104]
	b	.L7
.L8:
	mov	r2, #0
	ldr	r1, [fp, #-104]
	ldr	r0, [fp, #-96]
	bl	lseek
	sub	r3, fp, #52
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-96]
	bl	read
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-104]
	ldr	r0, .L11+28
	bl	printf
	ldr	r3, [fp, #-104]
	sub	r3, r3, #1
	str	r3, [fp, #-104]
.L7:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bge	.L8
	ldr	r0, [fp, #-96]
	bl	close
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	1104006501
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
