	.file	"extr_test-hash-speed.c_cmd__hash_speed.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"usage: test-tool hash-speed algo_name"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"algo: %s\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"size %u: %lu iters; %lu KiB; %0.2f KiB/s\n"
	.text
	.p2align 4
	.globl	cmd__hash_speed
	.type	cmd__hash_speed, @function
cmd__hash_speed:
.LFB0:
	.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, 104
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR GIT_MAX_RAWSZ[rip]
	mov	rcx, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L27:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L27
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L28
.L4:
	movabs	rax, 1099511627840
	mov	DWORD PTR -64[rbp], 16384
	mov	r15, rsp
	mov	QWORD PTR -80[rbp], rax
	movabs	rax, 35184372089856
	mov	QWORD PTR -72[rbp], rax
	cmp	edi, 2
	jne	.L5
	mov	eax, DWORD PTR GIT_HASH_NALGOS[rip]
	cmp	eax, 1
	jle	.L5
	mov	rdx, QWORD PTR hash_algos[rip]
	sub	eax, 2
	mov	rbx, QWORD PTR 8[rsi]
	lea	r13, 8[rdx]
	lea	r12, 16[rdx+rax*8]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L29:
	add	r13, 8
	cmp	r12, r13
	je	.L5
.L7:
	mov	rsi, QWORD PTR 0[r13]
	mov	rdi, rbx
	call	strcmp@PLT
	mov	DWORD PTR -132[rbp], eax
	test	eax, eax
	jne	.L29
	xor	eax, eax
	call	clock@PLT
	mov	rsi, QWORD PTR 0[r13]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	movsd	QWORD PTR -128[rbp], xmm0
	call	printf@PLT
	lea	rax, -80[rbp]
	mov	QWORD PTR -144[rbp], rax
	mov	QWORD PTR -112[rbp], rax
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, QWORD PTR -144[rbp]
	call	ARRAY_SIZE@PLT
	cmp	DWORD PTR -132[rbp], eax
	jge	.L30
	mov	rax, QWORD PTR -112[rbp]
	mov	edi, 1
	xor	ebx, ebx
	lea	r14, -84[rbp]
	mov	esi, DWORD PTR [rax]
	call	xcalloc@PLT
	mov	r12, rax
	xor	eax, eax
	call	clock@PLT
	subsd	xmm0, QWORD PTR -128[rbp]
	movsd	xmm2, QWORD PTR CLOCKS_PER_SEC[rip]
	movsd	xmm3, QWORD PTR NUM_SECONDS[rip]
	movapd	xmm1, xmm0
	movapd	xmm5, xmm0
	movsd	QWORD PTR -120[rbp], xmm0
	subsd	xmm1, xmm0
	movsd	QWORD PTR -104[rbp], xmm5
	movapd	xmm0, xmm1
	divsd	xmm0, xmm2
	comisd	xmm3, xmm0
	ja	.L12
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	movsd	xmm1, QWORD PTR -104[rbp]
	subsd	xmm1, QWORD PTR -120[rbp]
	add	rbx, 1
	movsd	xmm2, QWORD PTR CLOCKS_PER_SEC[rip]
	movsd	xmm3, QWORD PTR NUM_SECONDS[rip]
	movapd	xmm0, xmm1
	divsd	xmm0, xmm2
	comisd	xmm3, xmm0
	jbe	.L9
.L12:
	mov	rax, QWORD PTR -112[rbp]
	mov	rcx, r12
	mov	rdx, r15
	mov	rsi, r14
	mov	rdi, r13
	mov	r8d, DWORD PTR [rax]
	call	compute_hash@PLT
	test	bl, 127
	jne	.L11
	xor	eax, eax
	call	clock@PLT
	subsd	xmm0, QWORD PTR -128[rbp]
	movsd	QWORD PTR -104[rbp], xmm0
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR -112[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rsi, rcx
	imul	rcx, rbx
	test	rcx, rcx
	js	.L13
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rcx
.L14:
	mulsd	xmm1, QWORD PTR .LC2[rip]
	mov	rdx, rbx
	mov	eax, 1
	lea	rdi, .LC3[rip]
	divsd	xmm1, xmm2
	divsd	xmm0, xmm1
	call	printf@PLT
	mov	rdi, r12
	call	free@PLT
	add	DWORD PTR -132[rbp], 1
	add	QWORD PTR -112[rbp], 4
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, rcx
	mov	rdx, rcx
	pxor	xmm0, xmm0
	shr	rax
	and	edx, 1
	or	rax, rdx
	cvtsi2sd	xmm0, rax
	addsd	xmm0, xmm0
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L30:
	xor	edi, edi
	call	exit@PLT
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L31
	lea	rsp, -40[rbp]
	xor	eax, eax
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L28:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L31:
	call	__stack_chk_fail@PLT
.L5:
	lea	rdi, .LC0[rip]
	call	die@PLT
	xor	eax, eax
	call	clock@PLT
	mov	rax, QWORD PTR ds:0
	ud2
	.cfi_endproc
.LFE0:
	.size	cmd__hash_speed, .-cmd__hash_speed
	.comm	hash_algos,8,8
	.comm	NUM_SECONDS,8,8
	.comm	GIT_MAX_RAWSZ,4,4
	.comm	GIT_HASH_NALGOS,4,4
	.comm	CLOCKS_PER_SEC,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1083179008
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_test-hash-speed.c_cmd__hash_speed.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"usage: test-tool hash-speed algo_name\000"
	.align	2
.LC2:
	.ascii	"algo: %s\012\000"
	.global	__aeabi_dsub
	.global	__aeabi_ddiv
	.global	__aeabi_dcmplt
	.align	2
.LC3:
	.ascii	"size %u: %lu iters; %lu KiB; %0.2f KiB/s\012\000"
	.global	__aeabi_ui2d
	.global	__aeabi_dmul
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cmd__hash_speed
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd__hash_speed, %function
cmd__hash_speed:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #92
	mov	r6, r0
	ldr	r3, .L23
	ldr	lr, .L23+4
	sub	ip, fp, #60
	ldr	r4, [r3]
	mov	r5, r1
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	add	r4, r4, #7
	ldr	r1, .L23+8
	bic	r4, r4, #7
	ldr	r2, [lr]
	sub	sp, sp, r4
	ldr	r1, [r1]
	str	r1, [fp, #-40]
	mov	r1,#0
	cmp	r6, #2
	add	r1, sp, #8
	str	r1, [fp, #-92]
	str	r2, [ip]
	bne	.L2
	ldr	r2, .L23+12
	mov	r3, r5
	ldr	r5, [r2]
	cmp	r5, #1
	ble	.L2
	ldr	r2, .L23+16
	mov	r7, #1
	ldr	r4, [r2]
	ldr	r6, [r3, #4]
	add	r4, r4, #4
	b	.L4
.L19:
	add	r7, r7, #1
	cmp	r7, r5
	beq	.L2
.L4:
	ldr	r1, [r4]
	mov	r0, r6
	bl	strcmp
	cmp	r0, #0
	mov	r8, r4
	add	r4, r4, #4
	bne	.L19
	str	r0, [fp, #-104]
	str	r8, [fp, #-88]
	bl	clock
	mov	r3, r1
	mov	r2, r0
	ldr	r1, [r8]
	str	r2, [fp, #-100]
	str	r3, [fp, #-96]
	ldr	r0, .L23+20
	sub	r3, fp, #64
	mov	r10, r3
	bl	printf
.L5:
	sub	r0, fp, #60
	bl	ARRAY_SIZE
	ldr	r3, [fp, #-104]
	cmp	r3, r0
	bge	.L20
	ldr	r1, [r10, #4]
	mov	r0, #1
	bl	xcalloc
	mov	r5, r0
	bl	clock
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	bl	__aeabi_dsub
	ldr	ip, .L23+24
	mov	r6, r0
	ldmia	ip, {r8-r9}
	mov	r2, r8
	mov	r3, r9
	mov	r7, r1
	bl	__aeabi_ddiv
	ldr	ip, .L23+28
	ldmia	ip, {r2-r3}
	bl	__aeabi_dcmplt
	cmp	r0, #0
	beq	.L16
	sub	r4, fp, #84
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-76]
	str	r4, [fp, #-72]
	mov	r3, r10
	mov	r4, #0
	mov	r10, r5
	mov	r5, r3
	b	.L9
.L8:
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	ldr	r3, .L23+24
	mov	r6, r0
	ldmia	r3, {r8-r9}
	mov	r2, r8
	mov	r3, r9
	mov	r7, r1
	bl	__aeabi_ddiv
	ldr	r3, .L23+28
	add	r4, r4, #1
	ldmia	r3, {r2-r3}
	bl	__aeabi_dcmplt
	cmp	r0, #0
	beq	.L21
.L9:
	ldr	r2, [r5, #4]
	mov	r3, r10
	str	r2, [sp]
	ldr	r0, [fp, #-88]
	ldr	r2, [fp, #-92]
	sub	r1, fp, #64
	bl	compute_hash
	tst	r4, #127
	bne	.L8
	bl	clock
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	str	r0, [fp, #-76]
	str	r1, [fp, #-72]
	b	.L8
.L21:
	mov	r3, r5
	mov	r5, r10
	mov	r10, r3
.L6:
	ldr	r2, [fp, #-104]
	ldr	r3, [r10, #4]!
	add	r2, r2, #1
	str	r2, [fp, #-104]
	mov	r2, r3
	mul	r2, r4, r2
	mov	r0, r2
	str	r3, [fp, #-76]
	str	r2, [fp, #-84]
	bl	__aeabi_ui2d
	mov	r2, #0
	str	r0, [fp, #-116]
	str	r1, [fp, #-112]
	ldr	r3, .L23+32
	mov	r0, r6
	mov	r1, r7
	sub	r7, fp, #116
	ldmia	r7, {r6-r7}
	bl	__aeabi_dmul
	mov	r2, r8
	mov	r3, r9
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	mov	r2, r4
	stm	sp, {r0-r1}
	ldr	r3, [fp, #-84]
	ldr	r1, [fp, #-76]
	ldr	r0, .L23+36
	bl	printf
	mov	r0, r5
	bl	free
	b	.L5
.L20:
	mov	r0, #0
	bl	exit
	ldr	r3, .L23+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	mov	r0, #0
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	mov	r4, r0
	b	.L6
.L22:
	bl	__stack_chk_fail
.L2:
	ldr	r0, .L23+40
	bl	die
	bl	clock
	mov	r3, #0
	ldr	r3, [r3]
	.inst	0xe7f000f0
.L24:
	.align	2
.L23:
	.word	GIT_MAX_RAWSZ
	.word	.LANCHOR0
	.word	.LC4
	.word	GIT_HASH_NALGOS
	.word	hash_algos
	.word	.LC2
	.word	CLOCKS_PER_SEC
	.word	NUM_SECONDS
	.word	1083179008
	.word	.LC3
	.word	.LC1
	.size	cmd__hash_speed, .-cmd__hash_speed
	.comm	hash_algos,4,4
	.comm	NUM_SECONDS,8,8
	.comm	GIT_MAX_RAWSZ,4,4
	.comm	GIT_HASH_NALGOS,4,4
	.comm	CLOCKS_PER_SEC,8,8
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.word	64
	.word	256
	.word	1024
	.word	8192
	.word	16384
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
