	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HashThreadFunc                 ## -- Begin function HashThreadFunc
	.p2align	4, 0x90
_HashThreadFunc:                        ## @HashThreadFunc
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	addq	$68, %rdi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	callq	_Event_Wait
	leaq	64(%r15), %rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_Event_Set
	cmpq	$0, 56(%r15)
	je	LBB0_1
LBB0_10:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	72(%r15), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leaq	36(%r15), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	32(%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	28(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	40(%r15), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_kMtHashBlockSize@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 48(%r15)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	80(%r15), %rbx
	movq	%rbx, %rdi
	callq	_MatchFinder_NeedMove
	testq	%rax, %rax
	je	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdi
	callq	_CriticalSection_Enter
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	callq	_CriticalSection_Enter
	movq	%rbx, %rdi
	callq	_MatchFinder_GetPointerToCurrentPos
	movq	%rbx, %r14
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_MatchFinder_MoveBlock
	movq	%r14, %rdi
	callq	_MatchFinder_GetPointerToCurrentPos
	subq	%rax, %rbx
	shrq	$2, %rbx
	subl	%ebx, (%r15)
	subl	%ebx, 4(%r15)
	movq	_kMtHashBlockSize@GOTPCREL(%rip), %r14
	movq	%r13, %rdi
	callq	_CriticalSection_Leave
	movq	%r12, %rdi
	callq	_CriticalSection_Leave
	cmpq	$0, 56(%r15)
	je	LBB0_2
	jmp	LBB0_10
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%r15)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_Event_Set
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_Event_Wait
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_Event_Set
	cmpq	$0, 56(%r15)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	je	LBB0_2
	jmp	LBB0_10
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_Semaphore_Wait
	movq	%rbx, %rdi
	callq	_MatchFinder_ReadIfRequired
	movq	(%rbx), %r13
	movq	_kMtMaxValForNormalize@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%r14), %rcx
	subq	%rcx, %rax
	cmpq	%rax, %r13
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %eax
	notl	%eax
	addl	%eax, %r13d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_MatchFinder_ReduceOffsets
	movq	32(%rbx), %rdx
	movq	40(%rbx), %rsi
	addq	48(%rbx), %rsi
	incq	%rdx
	movl	%r13d, %edi
	callq	_MatchFinder_Normalize3
	movl	(%r14), %ecx
	movq	(%rbx), %r13
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	movq	_kMtHashNumBlocksMask@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	andl	%r14d, %edx
	imull	%ecx, %edx
	movslq	%edx, %rcx
	movq	%rbx, %r12
	movl	12(%rbx), %ebx
	subl	%r13d, %ebx
	movl	$2, (%rax,%rcx,4)
	movl	%ebx, 4(%rax,%rcx,4)
	movl	%ebx, %edx
	subl	16(%r12), %edx
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rdx), %esi
	movq	_kMtHashBlockSize@GOTPCREL(%rip), %rdi
	movl	(%rdi), %ebx
	addl	$-2, %ebx
	cmpl	%ebx, %edx
	cmovll	%esi, %ebx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	40(%r12), %rdx
	addq	48(%r12), %rdx
	movq	32(%r12), %rcx
	leaq	8(%rax), %r8
	movl	20(%r12), %edi
	movl	24(%r12), %eax
	movl	%eax, (%rsp)
	movl	%r13d, %esi
	movl	%ebx, %r9d
	callq	*16(%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	%ebx, (%rax)
	movq	(%r12), %r13
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movslq	%ebx, %rax
	addq	%rax, %r13
	movq	%r13, (%r12)
	addl	%eax, 20(%r12)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_Semaphore_Release1
	cmpq	$0, 56(%r15)
	movq	_kMtHashBlockSize@GOTPCREL(%rip), %r14
	je	LBB0_2
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_kMtMaxValForNormalize,8,3      ## @kMtMaxValForNormalize
	.comm	_kMtHashBlockSize,4,2           ## @kMtHashBlockSize
	.comm	_kMtHashNumBlocksMask,4,2       ## @kMtHashNumBlocksMask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HashThreadFunc                 ; -- Begin function HashThreadFunc
	.p2align	2
_HashThreadFunc:                        ; @HashThreadFunc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	add	x20, x0, #68
	mov	x0, x20
	bl	_Event_Wait
	add	x21, x19, #64
	mov	x0, x21
	bl	_Event_Set
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	mov	w24, #0
	add	x22, x19, #72
	add	x23, x19, #36
	add	x25, x19, #32
	add	x8, x19, #28
	str	x8, [sp]                        ; 8-byte Folded Spill
Lloh0:
	adrp	x26, _kMtMaxValForNormalize@GOTPAGE
Lloh1:
	ldr	x26, [x26, _kMtMaxValForNormalize@GOTPAGEOFF]
	add	x8, x19, #40
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x27, [x19, #80]
	mov	x0, x27
	bl	_MatchFinder_NeedMove
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_CriticalSection_Enter
	mov	x0, x23
	bl	_CriticalSection_Enter
	mov	x0, x27
	bl	_MatchFinder_GetPointerToCurrentPos
	mov	x28, x0
	mov	x0, x27
	bl	_MatchFinder_MoveBlock
	mov	x0, x27
	bl	_MatchFinder_GetPointerToCurrentPos
	sub	x8, x28, x0
	lsr	x8, x8, #2
	ldr	d0, [x19]
	dup.2s	v1, w8
	sub.2s	v0, v0, v1
	str	d0, [x19]
	mov	x0, x22
	bl	_CriticalSection_Leave
	mov	x0, x23
	bl	_CriticalSection_Leave
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_3
	b	LBB0_1
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	w24, [x19, #24]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_Event_Set
	mov	x0, x20
	bl	_Event_Wait
	mov	x0, x21
	bl	_Event_Set
	mov	w24, #0
	b	LBB0_6
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	bl	_Semaphore_Wait
	mov	x0, x27
	bl	_MatchFinder_ReadIfRequired
	ldr	x1, [x27]
	ldr	x9, [x26]
Lloh2:
	adrp	x26, _kMtHashBlockSize@GOTPAGE
Lloh3:
	ldr	x26, [x26, _kMtHashBlockSize@GOTPAGEOFF]
	ldrsw	x8, [x26]
	sub	x9, x9, x8
	cmp	x1, x9
	b.le	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27, #8]
	mvn	w8, w8
	add	w28, w8, w1
	mov	x0, x27
	mov	x1, x28
	bl	_MatchFinder_ReduceOffsets
	ldp	x9, x8, [x27, #40]
	ldr	x10, [x27, #32]
	add	x1, x9, x8
	add	x2, x10, #1
	mov	x0, x28
	bl	_MatchFinder_Normalize3
	ldr	w8, [x26]
	ldr	x1, [x27]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x25
	ldr	x9, [x19, #8]
Lloh4:
	adrp	x10, _kMtHashNumBlocksMask@GOTPAGE
Lloh5:
	ldr	x10, [x10, _kMtHashNumBlocksMask@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	and	w10, w10, w24
	mul	w8, w10, w8
	add	x25, x9, w8, sxtw #2
	ldr	w8, [x27, #12]
	sub	w28, w8, w1
	mov	w8, #2
	stp	w8, w28, [x25]
	ldr	w8, [x27, #16]
	subs	w8, w28, w8
	b.lt	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh7:
	adrp	x9, _kMtHashBlockSize@GOTPAGE
Lloh8:
	ldr	x9, [x9, _kMtHashBlockSize@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	sub	w9, w9, #2
	cmp	w8, w9
	csinc	w28, w9, w8, ge
	ldr	x8, [x19, #16]
	ldp	x10, x9, [x27, #40]
	ldr	x3, [x27, #32]
	add	x2, x10, x9
	add	x4, x25, #8
	ldp	w0, w6, [x27, #20]
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x5, x28
	blr	x8
	ldr	w8, [x25]
	add	w8, w8, w28
	str	w8, [x25]
	ldr	x1, [x27]
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	add	x8, x1, w28, sxtw
	str	x8, [x27]
	ldr	w8, [x27, #20]
	add	w8, w8, w28
	str	w8, [x27, #20]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_Semaphore_Release1
	ldr	x8, [x19, #56]
	mov	x25, x26
Lloh10:
	adrp	x26, _kMtMaxValForNormalize@GOTPAGE
Lloh11:
	ldr	x26, [x26, _kMtMaxValForNormalize@GOTPAGEOFF]
	cbz	x8, LBB0_3
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_kMtMaxValForNormalize,8,3      ; @kMtMaxValForNormalize
	.comm	_kMtHashBlockSize,4,2           ; @kMtHashBlockSize
	.comm	_kMtHashNumBlocksMask,4,2       ; @kMtHashNumBlocksMask
.subsections_via_symbols
