	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function cmd__hash_speed
LCPI0_0:
	.long	1127219200                      ## 0x43300000
	.long	1160773632                      ## 0x45300000
	.long	0                               ## 0x0
	.long	0                               ## 0x0
LCPI0_1:
	.quad	0x4330000000000000              ## double 4503599627370496
	.quad	0x4530000000000000              ## double 1.9342813113834067E+25
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_2:
	.quad	0x4090000000000000              ## double 1024
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cmd__hash_speed
	.p2align	4, 0x90
_cmd__hash_speed:                       ## @cmd__hash_speed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	_GIT_MAX_RAWSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	l___const.cmd__hash_speed.bufsizes+16(%rip), %eax
	movl	%eax, -64(%rbp)
	movapd	l___const.cmd__hash_speed.bufsizes(%rip), %xmm0
	movapd	%xmm0, -80(%rbp)
	cmpl	$2, %ebx
	jne	LBB0_5
## %bb.1:
	movq	_GIT_HASH_NALGOS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	cmpl	$2, %r12d
	jl	LBB0_5
## %bb.2:
	movq	8(%r15), %r15
	movq	_hash_algos@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	$8, %rbx
	decq	%r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$8, %rbx
	decq	%r12
	jne	LBB0_4
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_die
	xorl	%ebx, %ebx
LBB0_6:
	xorl	%eax, %eax
	callq	_clock
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movq	(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	-80(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_15
## %bb.7:
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r13d, %r13d
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-80(%rbp,%r15,4), %esi
	movq	%rsi, %rcx
	imulq	%r13, %rcx
	movq	%rcx, %xmm3
	punpckldq	LCPI0_0(%rip), %xmm3    ## xmm3 = xmm3[0],mem[0],xmm3[1],mem[1]
	subpd	LCPI0_1(%rip), %xmm3
	movapd	%xmm3, %xmm0
	unpckhpd	%xmm3, %xmm0                    ## xmm0 = xmm0[1],xmm3[1]
	addsd	%xmm3, %xmm0
	mulsd	LCPI0_2(%rip), %xmm1
	divsd	%xmm2, %xmm1
	divsd	%xmm1, %xmm0
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r13, %rdx
	movb	$1, %al
	callq	_printf
	movq	%r12, %rdi
	callq	_free
	incq	%r15
	leaq	-80(%rbp), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r15
	jge	LBB0_15
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movl	-80(%rbp,%r15,4), %esi
	movl	$1, %edi
	callq	_xcalloc
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_clock
	subsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	movapd	%xmm0, %xmm1
	subsd	%xmm0, %xmm1
	movq	_CLOCKS_PER_SEC@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm2                   ## xmm2 = mem[0],zero
	movapd	%xmm1, %xmm4
	divsd	%xmm2, %xmm4
	movq	_NUM_SECONDS@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm3                   ## xmm3 = mem[0],zero
	ucomisd	%xmm4, %xmm3
	jbe	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	movsd	%xmm0, -88(%rbp)                ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%r13
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	-88(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	subsd	%xmm0, %xmm1
	movq	_CLOCKS_PER_SEC@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm2                   ## xmm2 = mem[0],zero
	movapd	%xmm1, %xmm4
	divsd	%xmm2, %xmm4
	movq	_NUM_SECONDS@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm3                   ## xmm3 = mem[0],zero
	ucomisd	%xmm4, %xmm3
	jbe	LBB0_14
LBB0_11:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-80(%rbp,%r15,4), %r8d
	movq	%rbx, %rdi
	leaq	-92(%rbp), %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_compute_hash
	testb	$127, %r13b
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	xorl	%eax, %eax
	callq	_clock
	subsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	jmp	LBB0_13
LBB0_15:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_GIT_MAX_RAWSZ,4,2              ## @GIT_MAX_RAWSZ
	.section	__TEXT,__const
	.p2align	4                               ## @__const.cmd__hash_speed.bufsizes
l___const.cmd__hash_speed.bufsizes:
	.long	64                              ## 0x40
	.long	256                             ## 0x100
	.long	1024                            ## 0x400
	.long	8192                            ## 0x2000
	.long	16384                           ## 0x4000

	.comm	_GIT_HASH_NALGOS,4,2            ## @GIT_HASH_NALGOS
	.comm	_hash_algos,8,3                 ## @hash_algos
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usage: test-tool hash-speed algo_name"

L_.str.1:                               ## @.str.1
	.asciz	"algo: %s\n"

	.comm	_CLOCKS_PER_SEC,8,3             ## @CLOCKS_PER_SEC
	.comm	_NUM_SECONDS,8,3                ## @NUM_SECONDS
L_.str.2:                               ## @.str.2
	.asciz	"size %u: %lu iters; %lu KiB; %0.2f KiB/s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd__hash_speed                ; -- Begin function cmd__hash_speed
	.p2align	2
_cmd__hash_speed:                       ; @cmd__hash_speed
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	sub	sp, sp, #32
Lloh0:
	adrp	x8, _GIT_MAX_RAWSZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GIT_MAX_RAWSZ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x9, x8
Lloh3:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh4:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh5:
	adrp	x8, l___const.cmd__hash_speed.bufsizes@PAGE
Lloh6:
	add	x8, x8, l___const.cmd__hash_speed.bufsizes@PAGEOFF
	ldr	q0, [x8]
	stur	q0, [x29, #-144]
	ldr	w8, [x8, #16]
	stur	w8, [x29, #-128]
	cmp	w0, #2
	b.ne	LBB0_5
; %bb.1:
Lloh7:
	adrp	x8, _GIT_HASH_NALGOS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GIT_HASH_NALGOS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.2:
	ldr	x21, [x1, #8]
Lloh10:
	adrp	x9, _hash_algos@GOTPAGE
Lloh11:
	ldr	x9, [x9, _hash_algos@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x20, x9, #8
	sub	x22, x8, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x20]
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #8
	subs	x22, x22, #1
	b.ne	LBB0_3
LBB0_5:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
	mov	x20, #0
LBB0_6:
	bl	_clock
	fmov	d8, d0
	ldr	x8, [x20]
	str	x8, [sp, #-16]!
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	sub	x23, x29, #144
	sub	x0, x29, #144
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.7:
	mov	x24, #0
Lloh17:
	adrp	x25, _CLOCKS_PER_SEC@GOTPAGE
Lloh18:
	ldr	x25, [x25, _CLOCKS_PER_SEC@GOTPAGEOFF]
Lloh19:
	adrp	x26, _NUM_SECONDS@GOTPAGE
Lloh20:
	ldr	x26, [x26, _NUM_SECONDS@GOTPAGEOFF]
	mov	x27, #4652218415073722368
Lloh21:
	adrp	x21, l_.str.2@PAGE
Lloh22:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x23, x24, lsl #2]
	mul	x9, x28, x8
	ucvtf	d2, x9
	fmov	d3, x27
	fmul	d0, d0, d3
	fdiv	d0, d0, d1
	fdiv	d0, d2, d0
	sub	sp, sp, #32
	stp	x28, x9, [sp, #8]
	str	x8, [sp]
	str	d0, [sp, #24]
	mov	x0, x21
	bl	_printf
	add	sp, sp, #32
	mov	x0, x22
	bl	_free
	add	x24, x24, #1
	sub	x0, x29, #144
	bl	_ARRAY_SIZE
	cmp	x24, w0, sxtw
	b.ge	LBB0_14
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	w1, [x23, x24, lsl #2]
	mov	w0, #1
	bl	_xcalloc
	mov	x22, x0
	bl	_clock
	fsub	d9, d0, d8
	fsub	d0, d9, d9
	ldr	d1, [x25]
	fdiv	d2, d0, d1
	ldr	d3, [x26]
	mov	x28, #0
	fcmp	d2, d3
	b.pl	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	fmov	d10, d9
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x28, x28, #1
	fsub	d0, d10, d9
	ldr	d1, [x25]
	fdiv	d2, d0, d1
	ldr	d3, [x26]
	fcmp	d2, d3
	b.pl	LBB0_8
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w4, [x23, x24, lsl #2]
	sub	x1, x29, #116
	mov	x0, x20
	mov	x2, x19
	mov	x3, x22
	bl	_compute_hash
	tst	x28, #0x7f
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	bl	_clock
	fsub	d10, d0, d8
	b	LBB0_11
LBB0_14:
	mov	w0, #0
	bl	_exit
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GIT_MAX_RAWSZ,4,2              ; @GIT_MAX_RAWSZ
	.section	__TEXT,__const
	.p2align	2                               ; @__const.cmd__hash_speed.bufsizes
l___const.cmd__hash_speed.bufsizes:
	.long	64                              ; 0x40
	.long	256                             ; 0x100
	.long	1024                            ; 0x400
	.long	8192                            ; 0x2000
	.long	16384                           ; 0x4000

	.comm	_GIT_HASH_NALGOS,4,2            ; @GIT_HASH_NALGOS
	.comm	_hash_algos,8,3                 ; @hash_algos
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usage: test-tool hash-speed algo_name"

l_.str.1:                               ; @.str.1
	.asciz	"algo: %s\n"

	.comm	_CLOCKS_PER_SEC,8,3             ; @CLOCKS_PER_SEC
	.comm	_NUM_SECONDS,8,3                ; @NUM_SECONDS
l_.str.2:                               ; @.str.2
	.asciz	"size %u: %lu iters; %lu KiB; %0.2f KiB/s\n"

.subsections_via_symbols
