	.file	"844252.c"
	.intel_syntax noprefix
	.text
	.globl	dirlen
	.bss
	.align 4
	.type	dirlen, @object
	.size	dirlen, 4
dirlen:
	.zero	4
	.text
	.globl	compare
	.type	compare, @function
compare:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L4
	mov	eax, -1
	jmp	.L3
.L4:
	mov	eax, DWORD PTR dirlen[rip]
	cdqe
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR dirlen[rip]
	cdqe
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jne	.L5
	mov	eax, 0
	jmp	.L3
.L5:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jge	.L6
	mov	eax, -1
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jle	.L7
	mov	eax, 1
	jmp	.L3
.L7:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare, .-compare
	.section	.rodata
.LC0:
	.string	"--help"
	.align 8
.LC1:
	.string	"Usage: %s <directory> <number of files>\n"
	.align 8
.LC2:
	.string	"Creates <number of files> 1-byte random files in <directory> in random order and deletes them in ascending order. Times those operations."
	.align 8
.LC3:
	.string	"maximum number of files is 999999"
.LC4:
	.string	"%d"
.LC5:
	.string	"file create error"
.LC6:
	.string	"x"
	.align 8
.LC8:
	.string	"time taken to create files: %.03f\n"
.LC9:
	.string	"error deleting file"
	.align 8
.LC10:
	.string	"time taken to delete files: %.03f\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	r15
	push	r14
	push	r12
	push	rbx
	sub	rsp, 192
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	r12, rax
	cmp	DWORD PTR -164[rbp], 2
	jle	.L9
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
.L9:
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -136[rbp], eax
	cmp	DWORD PTR -136[rbp], 999999
	jle	.L11
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	lea	rbx, 9[rax]
	mov	rax, rbx
	sub	rax, 1
	mov	QWORD PTR -120[rbp], rax
	mov	QWORD PTR -192[rbp], rbx
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -208[rbp], rbx
	mov	QWORD PTR -200[rbp], 0
	mov	eax, 16
	sub	rax, 1
	add	rax, rbx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L12:
	cmp	rsp, rdx
	je	.L13
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L12
.L13:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L14
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L14:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR dirlen[rip], eax
	mov	rax, QWORD PTR -112[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 47
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 120
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -104[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -224[rbp], rdx
	mov	QWORD PTR -216[rbp], 0
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L15:
	cmp	rsp, rdx
	je	.L16
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L15
.L16:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L17
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L17:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -96[rbp], rax
	mov	DWORD PTR -140[rbp], 0
	lea	rax, -80[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	DWORD PTR -144[rbp], 0
	jmp	.L18
.L22:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -144[rbp]
	add	eax, edx
	mov	edi, eax
	call	srand@PLT
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1125901033
	shr	rdx, 32
	sar	edx, 18
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -128[rbp], edx
	mov	edx, DWORD PTR -128[rbp]
	imul	edx, edx, 999999
	sub	eax, edx
	mov	DWORD PTR -128[rbp], eax
	mov	edx, DWORD PTR -128[rbp]
	lea	rax, -47[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR dirlen[rip]
	add	eax, 2
	mov	rdx, QWORD PTR -112[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 0
	lea	rdx, -47[rbp]
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, 384
	mov	esi, 194
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], -1
	jne	.L19
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 17
	je	.L28
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, 1
	lea	rsi, .LC6[rip]
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -124[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rdi, rbx
	call	malloc@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	rcx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, rbx
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -140[rbp]
	movsx	rdx, edx
	mov	rcx, QWORD PTR -88[rbp]
	mov	QWORD PTR [rax+rdx*8], rcx
	add	DWORD PTR -140[rbp], 1
	jmp	.L21
.L28:
	nop
.L21:
	add	DWORD PTR -144[rbp], 1
.L18:
	mov	eax, DWORD PTR -140[rbp]
	cmp	eax, DWORD PTR -136[rbp]
	jl	.L22
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -64[rbp]
	imul	rdx, rax, 1000000
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -80[rbp]
	imul	rcx, rax, 1000000
	mov	rax, QWORD PTR -72[rbp]
	add	rcx, rax
	mov	rax, rdx
	sub	rax, rcx
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	movsd	xmm0, QWORD PTR .LC7[rip]
	mulsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -132[rbp], xmm0
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -132[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC8[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rax, -80[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	eax, DWORD PTR -140[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -96[rbp]
	lea	rcx, compare[rip]
	mov	edx, 8
	mov	rdi, rax
	call	qsort@PLT
	mov	DWORD PTR -148[rbp], 0
	jmp	.L23
.L25:
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -148[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rdi, rax
	call	remove@PLT
	cmp	eax, -1
	jne	.L24
	lea	rdi, .LC9[rip]
	call	perror@PLT
.L24:
	add	DWORD PTR -148[rbp], 1
.L23:
	mov	eax, DWORD PTR -148[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jl	.L25
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -64[rbp]
	imul	rdx, rax, 1000000
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -80[rbp]
	imul	rcx, rax, 1000000
	mov	rax, QWORD PTR -72[rbp]
	add	rcx, rax
	mov	rax, rdx
	sub	rax, rcx
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	movsd	xmm0, QWORD PTR .LC7[rip]
	mulsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -132[rbp], xmm0
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -132[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rsp, r12
	mov	eax, 0
	mov	rbx, QWORD PTR -40[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC7:
	.long	-1598689907
	.long	1051772663
	.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	"844252.c"
	.text
	.comm	dirlen,4,4
	.align	2
	.global	compare
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare, %function
compare:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L2
	mov	r3, #1
	b	.L3
.L2:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L4
	mvn	r3, #0
	b	.L3
.L4:
	ldr	r3, .L8
	ldr	r3, [r3]
	add	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-12]
	ldr	r3, .L8
	ldr	r3, [r3]
	add	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L5
	mov	r3, #0
	b	.L3
.L5:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L6
	mvn	r3, #0
	b	.L3
.L6:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L7
	mov	r3, #1
	b	.L3
.L7:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	dirlen
	.size	compare, .-compare
	.section	.rodata
	.align	2
.LC0:
	.ascii	"--help\000"
	.align	2
.LC1:
	.ascii	"Usage: %s <directory> <number of files>\012\000"
	.align	2
.LC2:
	.ascii	"Creates <number of files> 1-byte random files in <d"
	.ascii	"irectory> in random order and deletes them in ascen"
	.ascii	"ding order. Times those operations.\000"
	.align	2
.LC3:
	.ascii	"maximum number of files is 999999\000"
	.align	2
.LC4:
	.ascii	"/\000"
	.align	2
.LC5:
	.ascii	"x\000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.align	2
.LC7:
	.ascii	"file create error\000"
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_d2f
	.global	__aeabi_f2d
	.align	2
.LC8:
	.ascii	"time taken to create files: %.03f\012\000"
	.align	2
.LC9:
	.ascii	"error deleting file\000"
	.align	2
.LC10:
	.ascii	"time taken to delete files: %.03f\012\000"
	.align	2
.LC11:
	.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, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #88
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r5, r3
	ldr	r3, [fp, #-96]
	cmp	r3, #2
	ble	.L11
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	ldr	r1, .L25+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
.L11:
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L25+8
	bl	printf
	ldr	r0, .L25+12
	bl	puts
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, [fp, #-100]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	ldr	r2, .L25+16
	cmp	r3, r2
	blt	.L13
	ldr	r0, .L25+20
	bl	puts
	mov	r0, #1
	bl	exit
.L13:
	ldr	r3, [fp, #-100]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r4, r3, #9
	mov	r3, r4
	sub	r3, r3, #1
	str	r3, [fp, #-72]
	mov	r0, r4
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r0, r4
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	add	r3, r4, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-100]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L25+24
	str	r2, [r3]
	ldr	r3, [fp, #-68]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-100]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-68]
	bl	strcat
	ldr	r0, [fp, #-68]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-68]
	add	r3, r3, r2
	ldr	r2, .L25+28
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r0, [fp, #-68]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-68]
	add	r3, r3, r2
	ldr	r2, .L25+32
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	ip, [fp, #-76]
	sub	r3, ip, #1
	str	r3, [fp, #-64]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-80]
	sub	r3, fp, #40
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L14
.L18:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-84]
	add	r3, r2, r3
	mov	r0, r3
	bl	srand
	bl	rand
	mov	r1, r0
	ldr	r3, .L25+36
	smull	r2, r3, r1, r3
	asr	r2, r3, #18
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #9
	add	r3, r3, r2
	lsl	r2, r3, #6
	sub	r2, r2, r3
	sub	r3, r1, r2
	str	r3, [fp, #-52]
	sub	r3, fp, #24
	ldr	r2, [fp, #-52]
	ldr	r1, .L25+40
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L25+24
	ldr	r3, [r3]
	add	r3, r3, #2
	ldr	r2, [fp, #-68]
	mov	r1, #0
	strb	r1, [r2, r3]
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-68]
	bl	strcat
	mov	r2, #384
	mov	r1, #194
	ldr	r0, [fp, #-68]
	bl	open
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L15
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #17
	beq	.L24
	ldr	r0, .L25+44
	bl	perror
	mov	r0, #1
	bl	exit
.L15:
	mov	r2, #1
	ldr	r1, .L25+32
	ldr	r0, [fp, #-48]
	bl	write
	ldr	r0, [fp, #-48]
	bl	close
	mov	r0, r4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-44]
	mov	r2, r4
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-44]
	bl	memcpy
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-80]
	ldr	r1, [fp, #-44]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
	b	.L17
.L24:
	nop
.L17:
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L14:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L18
	sub	r3, fp, #32
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r1, [fp, #-32]
	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, #-28]
	add	r0, r2, r3
	ldr	r1, [fp, #-40]
	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, #-36]
	add	r3, r2, r3
	sub	r3, r0, r3
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L25+48
	ldr	r3, .L25+52
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-56]	@ float
	ldr	r0, [fp, #-56]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L25+56
	bl	printf
	sub	r3, fp, #40
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r1, [fp, #-80]
	ldr	r3, .L25+60
	mov	r2, #4
	ldr	r0, [fp, #-60]
	bl	qsort
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L19
.L21:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-88]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	bl	remove
	mov	r3, r0
	cmn	r3, #1
	bne	.L20
	ldr	r0, .L25+64
	bl	perror
.L20:
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L19:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	blt	.L21
	sub	r3, fp, #32
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r1, [fp, #-32]
	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, #-28]
	add	r0, r2, r3
	ldr	r1, [fp, #-40]
	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, #-36]
	add	r3, r2, r3
	sub	r3, r0, r3
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L25+48
	ldr	r3, .L25+52
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-56]	@ float
	ldr	r0, [fp, #-56]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L25+68
	bl	printf
	mov	sp, r5
	mov	r3, #0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1000000
	.word	.LC3
	.word	dirlen
	.word	.LC4
	.word	.LC5
	.word	1125901033
	.word	.LC6
	.word	.LC7
	.word	-1598689907
	.word	1051772663
	.word	.LC8
	.word	compare
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
