	.file	"613203.c"
	.intel_syntax noprefix
	.text
	.globl	elapse
	.type	elapse, @function
elapse:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	sub	rdx, rax
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rdx
	movsd	xmm0, QWORD PTR .LC0[rip]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	sub	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	elapse, .-elapse
	.section	.rodata
.LC1:
	.string	"/dev/fibonacci"
	.align 8
.LC2:
	.string	"Failed to open character device"
.LC3:
	.string	"%lld %ld %lld\n"
	.text
	.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
	push	rbx
	sub	rsp, 344
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -336[rbp], 1000
	mov	esi, 2
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -332[rbp], eax
	cmp	DWORD PTR -332[rbp], 0
	jns	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	DWORD PTR -340[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -340[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -332[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	lea	rax, -320[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	lea	rcx, -288[rbp]
	mov	eax, DWORD PTR -332[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rax, -304[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	lea	rcx, -288[rbp]
	mov	eax, DWORD PTR -332[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -328[rbp], rax
	lea	rdx, -304[rbp]
	lea	rax, -320[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	elapse
	sub	rax, QWORD PTR -328[rbp]
	mov	rbx, rax
	lea	rdx, -304[rbp]
	lea	rax, -320[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	elapse
	mov	rsi, rax
	mov	rax, QWORD PTR -328[rbp]
	mov	rcx, rbx
	mov	rdx, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -340[rbp], 1
.L5:
	mov	eax, DWORD PTR -340[rbp]
	cmp	eax, DWORD PTR -336[rbp]
	jl	.L6
	mov	eax, DWORD PTR -332[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.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	"613203.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_d2lz
	.align	2
	.global	elapse
	.syntax unified
	.arm
	.fpu softvfp
	.type	elapse, %function
elapse:
	@ 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
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L3
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	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
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L4:
	.align	2
.L3:
	.word	1104006501
	.size	elapse, .-elapse
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/fibonacci\000"
	.align	2
.LC1:
	.ascii	"Failed to open character device\000"
	.align	2
.LC2:
	.ascii	"%lld %ld %lld\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 = 296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #312
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #1000
	str	r3, [fp, #-308]
	mov	r1, #2
	ldr	r0, .L11+4
	bl	open
	str	r0, [fp, #-304]
	ldr	r3, [fp, #-304]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L11+8
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	mov	r3, #0
	str	r3, [fp, #-312]
	b	.L7
.L8:
	mov	r2, #0
	ldr	r1, [fp, #-312]
	ldr	r0, [fp, #-304]
	bl	lseek
	sub	r3, fp, #296
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	sub	r3, fp, #280
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-304]
	bl	read
	sub	r3, fp, #288
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	sub	r3, fp, #280
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-304]
	bl	write
	str	r0, [fp, #-300]
	sub	r2, fp, #288
	sub	r3, fp, #296
	mov	r1, r2
	mov	r0, r3
	bl	elapse
	mov	r6, r0
	mov	r7, r1
	sub	r2, fp, #288
	sub	r3, fp, #296
	mov	r1, r2
	mov	r0, r3
	bl	elapse
	ldr	r3, [fp, #-300]
	mov	r2, r3
	asr	r3, r2, #31
	subs	r4, r0, r2
	sbc	r5, r1, r3
	str	r4, [sp, #8]
	str	r5, [sp, #12]
	ldr	r3, [fp, #-300]
	str	r3, [sp]
	mov	r2, r6
	mov	r3, r7
	ldr	r0, .L11+12
	bl	printf
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
.L7:
	ldr	r2, [fp, #-312]
	ldr	r3, [fp, #-308]
	cmp	r2, r3
	blt	.L8
	ldr	r0, [fp, #-304]
	bl	close
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC3
	.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
