	.file	"215767730.c"
	.intel_syntax noprefix
	.text
	.type	diff_in_ns, @function
diff_in_ns:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, rsi
	mov	r8, rdi
	mov	rsi, r8
	mov	rdi, r9
	mov	rdi, rax
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -48[rbp], rdx
	mov	QWORD PTR -40[rbp], rcx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	sub	rax, rdx
	test	rax, rax
	jns	.L2
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	sub	rax, rdx
	sub	rax, 1
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	sub	rax, rdx
	add	rax, 1000000000
	mov	QWORD PTR -8[rbp], rax
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	sub	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	sub	rax, rdx
	mov	QWORD PTR -8[rbp], rax
.L3:
	mov	rax, QWORD PTR -16[rbp]
	imul	rdx, rax, 1000000000
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	diff_in_ns, .-diff_in_ns
	.type	debug_read, @function
debug_read:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rcx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 768
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	debug_read, .-debug_read
	.section	.rodata
.LC0:
	.string	"w"
	.align 8
.LC1:
	.string	"./performance_clock_gettime.csv"
.LC2:
	.string	"/dev/fibonacci_dev"
.LC3:
	.string	"fd = %d\n"
	.align 8
.LC4:
	.string	"Failed to open character device"
	.align 8
.LC5:
	.string	"Writing to /dev/fibonacci_dev, returned the sequence %lld\n"
.LC6:
	.string	"%d, %f\n"
	.align 8
.LC7:
	.string	"Reading from /dev/fibonacci_dev at offset %d, returned the sequence %s.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 896
	mov	DWORD PTR -884[rbp], edi
	mov	QWORD PTR -896[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -784[rbp], 0
	mov	QWORD PTR -776[rbp], 0
	lea	rdx, -768[rbp]
	mov	eax, 0
	mov	ecx, 94
	mov	rdi, rdx
	rep stosq
	movabs	rax, 2334956331019232628
	movabs	rdx, 29113321804886647
	mov	QWORD PTR -800[rbp], rax
	mov	QWORD PTR -792[rbp], rdx
	mov	DWORD PTR -876[rbp], 3000
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -856[rbp], rax
	cmp	DWORD PTR -884[rbp], 2
	jne	.L8
	mov	rax, QWORD PTR -896[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -876[rbp], eax
.L8:
	mov	esi, 2
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -860[rbp], eax
	cmp	DWORD PTR -860[rbp], 0
	jns	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -860[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	DWORD PTR -872[rbp], 0
	jmp	.L10
.L11:
	lea	rax, -800[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -800[rbp]
	mov	eax, DWORD PTR -860[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -840[rbp], rax
	mov	rax, QWORD PTR -840[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -872[rbp], 1
.L10:
	mov	eax, DWORD PTR -872[rbp]
	cmp	eax, DWORD PTR -876[rbp]
	jle	.L11
	mov	DWORD PTR -868[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -868[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -860[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	lea	rax, -832[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	lea	rdx, -784[rbp]
	mov	eax, DWORD PTR -860[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	debug_read
	lea	rax, -816[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	mov	rax, QWORD PTR -816[rbp]
	mov	rdx, QWORD PTR -808[rbp]
	mov	rdi, QWORD PTR -832[rbp]
	mov	rsi, QWORD PTR -824[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	call	diff_in_ns
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	QWORD PTR -848[rbp], xmm0
	mov	rcx, QWORD PTR -848[rbp]
	mov	edx, DWORD PTR -868[rbp]
	mov	rax, QWORD PTR -856[rbp]
	movq	xmm0, rcx
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	lea	rdx, -784[rbp]
	mov	eax, DWORD PTR -868[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -868[rbp], 1
.L12:
	mov	eax, DWORD PTR -868[rbp]
	cmp	eax, DWORD PTR -876[rbp]
	jle	.L13
	mov	rax, QWORD PTR -856[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -876[rbp]
	mov	DWORD PTR -864[rbp], eax
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -864[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -860[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	lea	rcx, -784[rbp]
	mov	eax, DWORD PTR -860[rbp]
	mov	edx, 768
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rdx, -784[rbp]
	mov	eax, DWORD PTR -864[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -864[rbp], 1
.L14:
	cmp	DWORD PTR -864[rbp], 0
	jns	.L15
	mov	eax, DWORD PTR -860[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"215767730.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	diff_in_ns, %function
diff_in_ns:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	sub	ip, fp, #20
	stm	ip, {r0, r1}
	sub	r1, fp, #28
	stm	r1, {r2, r3}
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	cmp	r3, #0
	bge	.L2
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	sub	r2, r2, r3
	ldr	r3, .L5
	add	r3, r2, r3
	str	r3, [fp, #-8]
	b	.L3
.L2:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-12]
	ldr	r2, .L5
	mul	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L6:
	.align	2
.L5:
	.word	1000000000
	.size	diff_in_ns, .-diff_in_ns
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	debug_read, %function
debug_read:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	mov	r2, #768
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	read
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	debug_read, .-debug_read
	.section	.rodata
	.align	2
.LC1:
	.ascii	"w\000"
	.align	2
.LC2:
	.ascii	"./performance_clock_gettime.csv\000"
	.align	2
.LC3:
	.ascii	"/dev/fibonacci_dev\000"
	.align	2
.LC4:
	.ascii	"fd = %d\012\000"
	.align	2
.LC5:
	.ascii	"Failed to open character device\000"
	.align	2
.LC6:
	.ascii	"Writing to /dev/fibonacci_dev, returned the sequenc"
	.ascii	"e %lld\012\000"
	.global	__aeabi_i2d
	.align	2
.LC7:
	.ascii	"%d, %f\012\000"
	.align	2
.LC8:
	.ascii	"Reading from /dev/fibonacci_dev at offset %d, retur"
	.ascii	"ned the sequence %s.\012\000"
	.align	2
.LC0:
	.ascii	"testing writing\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 856
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #864
	str	r0, [fp, #-856]
	str	r1, [fp, #-860]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-776]
	sub	r3, fp, #772
	mov	r2, #764
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L20+4
	sub	ip, fp, #792
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L20+8
	str	r3, [fp, #-852]
	ldr	r1, .L20+12
	ldr	r0, .L20+16
	bl	fopen
	str	r0, [fp, #-836]
	ldr	r3, [fp, #-856]
	cmp	r3, #2
	bne	.L10
	ldr	r3, [fp, #-860]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-852]
.L10:
	mov	r1, #2
	ldr	r0, .L20+20
	bl	open
	str	r0, [fp, #-832]
	ldr	r3, [fp, #-832]
	cmp	r3, #0
	bge	.L11
	ldr	r3, .L20+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-832]
	ldr	r1, .L20+28
	mov	r0, r3
	bl	fprintf
	ldr	r0, .L20+32
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	mov	r3, #0
	str	r3, [fp, #-848]
	b	.L12
.L13:
	sub	r3, fp, #792
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #792
	mov	r1, r3
	ldr	r0, [fp, #-832]
	bl	write
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-820]
	str	r3, [fp, #-816]
	sub	r3, fp, #820
	ldmia	r3, {r2-r3}
	ldr	r0, .L20+36
	bl	printf
	ldr	r3, [fp, #-848]
	add	r3, r3, #1
	str	r3, [fp, #-848]
.L12:
	ldr	r2, [fp, #-848]
	ldr	r3, [fp, #-852]
	cmp	r2, r3
	ble	.L13
	mov	r3, #0
	str	r3, [fp, #-844]
	b	.L14
.L15:
	mov	r2, #0
	ldr	r1, [fp, #-844]
	ldr	r0, [fp, #-832]
	bl	lseek
	sub	r3, fp, #808
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	sub	r3, fp, #776
	mov	r1, r3
	ldr	r0, [fp, #-832]
	bl	debug_read
	sub	r3, fp, #800
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	sub	r3, fp, #800
	ldm	r3, {r2, r3}
	sub	r1, fp, #808
	ldm	r1, {r0, r1}
	bl	diff_in_ns
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-828]
	str	r3, [fp, #-824]
	sub	r3, fp, #828
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r2, [fp, #-844]
	ldr	r1, .L20+40
	ldr	r0, [fp, #-836]
	bl	fprintf
	sub	r3, fp, #776
	mov	r2, r3
	ldr	r1, [fp, #-844]
	ldr	r0, .L20+44
	bl	printf
	ldr	r3, [fp, #-844]
	add	r3, r3, #1
	str	r3, [fp, #-844]
.L14:
	ldr	r2, [fp, #-844]
	ldr	r3, [fp, #-852]
	cmp	r2, r3
	ble	.L15
	ldr	r0, [fp, #-836]
	bl	fclose
	ldr	r3, [fp, #-852]
	str	r3, [fp, #-840]
	b	.L16
.L17:
	mov	r2, #0
	ldr	r1, [fp, #-840]
	ldr	r0, [fp, #-832]
	bl	lseek
	sub	r3, fp, #776
	mov	r2, #768
	mov	r1, r3
	ldr	r0, [fp, #-832]
	bl	read
	sub	r3, fp, #776
	mov	r2, r3
	ldr	r1, [fp, #-840]
	ldr	r0, .L20+44
	bl	printf
	ldr	r3, [fp, #-840]
	sub	r3, r3, #1
	str	r3, [fp, #-840]
.L16:
	ldr	r3, [fp, #-840]
	cmp	r3, #0
	bge	.L17
	ldr	r0, [fp, #-832]
	bl	close
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC9
	.word	.LC0
	.word	3000
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
