	.file	"76700693.c"
	.intel_syntax noprefix
	.text
	.globl	nanosec
	.type	nanosec, @function
nanosec:
.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, rdi
	mov	rcx, rsi
	mov	rdx, rcx
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	mov	rax, QWORD PTR -16[rbp]
	imul	rdx, rax, 1000000
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	imul	rax, rax, 1000
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	nanosec, .-nanosec
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage %s infile outfile trials\n"
.LC1:
	.string	"./reverse %s %s"
.LC2:
	.string	"the_stack_data/76700693.c"
.LC3:
	.string	"res==0"
	.align 8
.LC4:
	.string	"Average time of execution (2 file reverse):  %10dns\n"
.LC5:
	.string	"./reverse2 %s"
	.align 8
.LC6:
	.string	"Average time of execution (reverse inplace): %10dns\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, 120
	.cfi_offset 3, -24
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -116[rbp], 4
	jne	.L4
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -104[rbp], eax
	nop
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 16
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -34[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -80[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], 0
	je	.L6
	jmp	.L16
.L4:
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 32
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L6:
	mov	DWORD PTR -112[rbp], 0
	jmp	.L7
.L8:
	lea	rax, -34[rbp]
	mov	rdi, rax
	call	system@PLT
	add	DWORD PTR -112[rbp], 1
.L7:
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, DWORD PTR -104[rbp]
	jl	.L8
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], 0
	je	.L9
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 39
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L9:
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rdx
	mov	rsi, rax
	call	nanosec
	mov	rbx, rax
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rdx
	mov	rsi, rax
	call	nanosec
	mov	rdx, rax
	mov	rax, rbx
	sub	rax, rdx
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR -104[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -96[rbp]
	cqo
	idiv	rbx
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	lea	rax, -34[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -80[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], 0
	je	.L10
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 50
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L10:
	mov	DWORD PTR -108[rbp], 0
	jmp	.L11
.L12:
	lea	rax, -34[rbp]
	mov	rdi, rax
	call	system@PLT
	add	DWORD PTR -108[rbp], 1
.L11:
	mov	eax, DWORD PTR -108[rbp]
	cmp	eax, DWORD PTR -104[rbp]
	jl	.L12
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], 0
	je	.L13
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 57
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L13:
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rdx
	mov	rsi, rax
	call	nanosec
	mov	rbx, rax
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rdx
	mov	rsi, rax
	call	nanosec
	mov	rdx, rax
	mov	rax, rbx
	sub	rax, rdx
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR -104[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -96[rbp]
	cqo
	idiv	rcx
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"76700693.c"
	.text
	.align	2
	.global	nanosec
	.syntax unified
	.arm
	.fpu softvfp
	.type	nanosec, %function
nanosec:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	sub	r3, fp, #12
	stm	r3, {r0, r1}
	ldr	r1, [fp, #-12]
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	nanosec, .-nanosec
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage %s infile outfile trials\012\000"
	.align	2
.LC1:
	.ascii	"./reverse %s %s\000"
	.align	2
.LC2:
	.ascii	"the_stack_data/76700693.c\000"
	.align	2
.LC3:
	.ascii	"res==0\000"
	.global	__aeabi_idiv
	.align	2
.LC4:
	.ascii	"Average time of execution (2 file reverse):  %10dns"
	.ascii	"\012\000"
	.align	2
.LC5:
	.ascii	"./reverse2 %s\000"
	.align	2
.LC6:
	.ascii	"Average time of execution (reverse inplace): %10dns"
	.ascii	"\012\000"
	.align	2
.LC7:
	.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, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-72]
	cmp	r3, #4
	bne	.L4
	ldr	r3, [fp, #-76]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-60]
	nop
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-76]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r0, fp, #28
	ldr	r1, .L17+4
	bl	sprintf
	sub	r3, fp, #44
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L6
	b	.L16
.L4:
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L17+8
	bl	printf
	mov	r0, #1
	bl	exit
.L16:
	ldr	r3, .L17+12
	mov	r2, #32
	ldr	r1, .L17+16
	ldr	r0, .L17+20
	bl	__assert_fail
.L6:
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L7
.L8:
	sub	r3, fp, #28
	mov	r0, r3
	bl	system
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L7:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L8
	sub	r3, fp, #36
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L17+12
	mov	r2, #39
	ldr	r1, .L17+16
	ldr	r0, .L17+20
	bl	__assert_fail
.L9:
	sub	r3, fp, #36
	ldm	r3, {r0, r1}
	bl	nanosec
	mov	r4, r0
	sub	r3, fp, #44
	ldm	r3, {r0, r1}
	bl	nanosec
	mov	r3, r0
	sub	r3, r4, r3
	str	r3, [fp, #-52]
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-52]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r1, [fp, #-52]
	ldr	r0, .L17+24
	bl	printf
	ldr	r3, [fp, #-76]
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #28
	ldr	r1, .L17+28
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #44
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L17+12
	mov	r2, #50
	ldr	r1, .L17+16
	ldr	r0, .L17+20
	bl	__assert_fail
.L10:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L11
.L12:
	sub	r3, fp, #28
	mov	r0, r3
	bl	system
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L11:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L12
	sub	r3, fp, #36
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L17+12
	mov	r2, #57
	ldr	r1, .L17+16
	ldr	r0, .L17+20
	bl	__assert_fail
.L13:
	sub	r3, fp, #36
	ldm	r3, {r0, r1}
	bl	nanosec
	mov	r4, r0
	sub	r3, fp, #44
	ldm	r3, {r0, r1}
	bl	nanosec
	mov	r3, r0
	sub	r3, r4, r3
	str	r3, [fp, #-52]
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-52]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r1, [fp, #-52]
	ldr	r0, .L17+32
	bl	printf
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC7
	.word	.LC1
	.word	.LC0
	.word	__PRETTY_FUNCTION__.5788
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5788, %object
	.size	__PRETTY_FUNCTION__.5788, 5
__PRETTY_FUNCTION__.5788:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
