	.file	"225142552.c"
	.intel_syntax noprefix
	.text
	.globl	addr
	.bss
	.align 8
	.type	addr, @object
	.size	addr, 8
addr:
	.zero	8
	.globl	start
	.align 16
	.type	start, @object
	.size	start, 16
start:
	.zero	16
	.globl	end
	.align 16
	.type	end, @object
	.size	end, 16
end:
	.zero	16
	.text
	.globl	parseArgs
	.type	parseArgs, @function
parseArgs:
.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	QWORD PTR -120[rbp], rdi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -128[rbp]
	mov	DWORD PTR [rax], edx
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L2
	call	__stack_chk_fail@PLT
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	parseArgs, .-parseArgs
	.section	.rodata
.LC1:
	.string	"Usage: ./bench.out <num_iter>"
.LC2:
	.string	"home1/06333/aroraish/bbThemis"
.LC3:
	.string	"opendir failed\n"
.LC4:
	.string	"%s: Returned value = %d.\n"
	.align 8
.LC5:
	.string	"\nLatency of opendir: %6.2lf us\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	r13
	push	r12
	push	rbx
	sub	rsp, 344
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -372[rbp], edi
	mov	QWORD PTR -384[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	DWORD PTR -352[rbp], 2
	pxor	xmm0, xmm0
	movss	DWORD PTR -348[rbp], xmm0
	mov	DWORD PTR -344[rbp], 4096
	cmp	DWORD PTR -372[rbp], 1
	jg	.L4
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L4:
	lea	rdx, -364[rbp]
	mov	rax, QWORD PTR -384[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parseArgs
	mov	eax, DWORD PTR -364[rbp]
	mov	edx, eax
	sub	rdx, 1
	mov	QWORD PTR -336[rbp], rdx
	mov	edx, eax
	mov	r14, rdx
	mov	r15d, 0
	mov	edx, eax
	mov	r12, rdx
	mov	r13d, 0
	mov	eax, eax
	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
.L5:
	cmp	rsp, rdx
	je	.L6
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L5
.L6:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L7
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L7:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -328[rbp], rax
	mov	esi, 0
	lea	rdi, start[rip]
	call	gettimeofday@PLT
	mov	DWORD PTR -356[rbp], 0
	jmp	.L8
.L10:
	lea	rdi, .LC2[rip]
	call	opendir@PLT
	mov	rdx, QWORD PTR -328[rbp]
	mov	ecx, DWORD PTR -356[rbp]
	movsx	rcx, ecx
	mov	QWORD PTR [rdx+rcx*8], rax
	mov	rax, QWORD PTR -328[rbp]
	mov	edx, DWORD PTR -356[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	test	rax, rax
	jne	.L9
	lea	rdi, .LC3[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	lea	rsi, __func__.0[rip]
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L9:
	add	DWORD PTR -356[rbp], 1
.L8:
	mov	edx, DWORD PTR -356[rbp]
	mov	eax, DWORD PTR -364[rbp]
	cmp	edx, eax
	jb	.L10
	mov	esi, 0
	lea	rdi, end[rip]
	call	gettimeofday@PLT
	mov	rax, QWORD PTR end[rip]
	mov	rdx, QWORD PTR start[rip]
	sub	rax, rdx
	imul	edx, eax, 1000000
	mov	rax, QWORD PTR end[rip+8]
	mov	ecx, eax
	mov	rax, QWORD PTR start[rip+8]
	mov	esi, eax
	mov	eax, ecx
	sub	eax, esi
	add	eax, edx
	mov	DWORD PTR -340[rbp], eax
	mov	esi, DWORD PTR -364[rbp]
	mov	eax, DWORD PTR -340[rbp]
	mov	edx, 0
	div	esi
	mov	eax, eax
	test	rax, rax
	js	.L11
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	movq	rax, xmm1
	jmp	.L12
.L11:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
	movq	rax, xmm0
.L12:
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	mov	DWORD PTR -360[rbp], 0
	jmp	.L13
.L14:
	mov	rax, QWORD PTR -328[rbp]
	mov	edx, DWORD PTR -360[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rdi, rax
	call	closedir@PLT
	add	DWORD PTR -360[rbp], 1
.L13:
	mov	edx, DWORD PTR -360[rbp]
	mov	eax, DWORD PTR -364[rbp]
	cmp	edx, eax
	jb	.L14
	mov	eax, 0
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.type	__func__.0, @object
	.size	__func__.0, 5
__func__.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	"225142552.c"
	.text
	.comm	addr,4,4
	.comm	start,8,4
	.comm	end,8,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parseArgs
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseArgs, %function
parseArgs:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-112]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #108
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-116]
	str	r2, [r3]
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	parseArgs, .-parseArgs
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Usage: ./bench.out <num_iter>\000"
	.align	2
.LC2:
	.ascii	"home1/06333/aroraish/bbThemis\000"
	.align	2
.LC3:
	.ascii	"opendir failed\012\000"
	.align	2
.LC4:
	.ascii	"%s: Returned value = %d.\012\000"
	.global	__aeabi_uidiv
	.global	__aeabi_ui2d
	.align	2
.LC5:
	.ascii	"\012Latency of opendir: %6.2lf us\012\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 = 304
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #308
	str	r0, [fp, #-312]
	str	r1, [fp, #-316]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	mov	r3, #2
	str	r3, [fp, #-296]
	mov	r3, #0
	str	r3, [fp, #-292]	@ float
	mov	r3, #4096
	str	r3, [fp, #-288]
	ldr	r3, [fp, #-312]
	cmp	r3, #1
	bgt	.L6
	ldr	r0, .L14+4
	bl	perror
	mvn	r0, #0
	bl	exit
.L6:
	sub	r3, fp, #308
	mov	r1, r3
	ldr	r0, [fp, #-316]
	bl	parseArgs
	ldr	ip, [fp, #-308]
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-284]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	lsl	r3, ip, #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, #-280]
	mov	r1, #0
	ldr	r0, .L14+8
	bl	gettimeofday
	mov	r3, #0
	str	r3, [fp, #-300]
	b	.L7
.L9:
	ldr	r0, .L14+12
	bl	opendir
	mov	r1, r0
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-300]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-300]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L14+16
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L14+20
	ldr	r0, .L14+24
	bl	printf
	mvn	r0, #0
	bl	exit
.L8:
	ldr	r3, [fp, #-300]
	add	r3, r3, #1
	str	r3, [fp, #-300]
.L7:
	ldr	r2, [fp, #-300]
	ldr	r3, [fp, #-308]
	cmp	r2, r3
	bcc	.L9
	mov	r1, #0
	ldr	r0, .L14+28
	bl	gettimeofday
	ldr	r3, .L14+28
	ldr	r2, [r3]
	ldr	r3, .L14+8
	ldr	r3, [r3]
	sub	r1, r2, r3
	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	r1, r3
	ldr	r3, .L14+28
	ldr	r2, [r3, #4]
	ldr	r3, .L14+8
	ldr	r3, [r3, #4]
	sub	r3, r2, r3
	add	r3, r1, r3
	str	r3, [fp, #-276]
	ldr	r3, [fp, #-308]
	mov	r1, r3
	ldr	r0, [fp, #-276]
	bl	__aeabi_uidiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L14+32
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-304]
	b	.L10
.L11:
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-304]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	bl	closedir
	ldr	r3, [fp, #-304]
	add	r3, r3, #1
	str	r3, [fp, #-304]
.L10:
	ldr	r2, [fp, #-304]
	ldr	r3, [fp, #-308]
	cmp	r2, r3
	bcc	.L11
	mov	r3, #0
	mov	sp, r4
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC6
	.word	.LC1
	.word	start
	.word	.LC2
	.word	.LC3
	.word	__func__.10084
	.word	.LC4
	.word	end
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__func__.10084, %object
	.size	__func__.10084, 5
__func__.10084:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
