	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BtFillBlock                    ## -- Begin function BtFillBlock
	.p2align	4, 0x90
_BtFillBlock:                           ## @BtFillBlock
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpl	$0, 32(%rdi)
	jne	LBB0_2
## %bb.1:
	leaq	28(%r14), %rdi
	callq	_CriticalSection_Enter
	movq	_True@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
LBB0_2:
	movq	_kMtBtNumBlocksMask@GOTPCREL(%rip), %rax
	andq	(%rax), %rbx
	movq	_kMtBtBlockSize@GOTPCREL(%rip), %r15
	imulq	(%r15), %rbx
	addq	16(%r14), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_BtGetMatches
	movq	(%r14), %rbx
	movq	_kMtMaxValForNormalize@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	(%r15), %rax
	cmpq	%rax, %rbx
	jle	LBB0_4
## %bb.3:
	movslq	8(%r14), %rax
	subq	%rax, %rbx
	movl	12(%r14), %esi
	leal	(%rax,%rax), %edx
	movq	%rbx, %rdi
	callq	_MatchFinder_Normalize3
	subq	%rbx, (%r14)
LBB0_4:
	cmpl	$0, 32(%r14)
	jne	LBB0_6
## %bb.5:
	leaq	28(%r14), %rdi
	callq	_CriticalSection_Leave
	movq	_False@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_True,4,2                       ## @True
	.comm	_kMtBtNumBlocksMask,8,3         ## @kMtBtNumBlocksMask
	.comm	_kMtBtBlockSize,8,3             ## @kMtBtBlockSize
	.comm	_kMtMaxValForNormalize,8,3      ## @kMtMaxValForNormalize
	.comm	_False,4,2                      ## @False
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BtFillBlock                    ; -- Begin function BtFillBlock
	.p2align	2
_BtFillBlock:                           ; @BtFillBlock
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #32]
	cbnz	w8, LBB0_2
; %bb.1:
	add	x0, x19, #28
	bl	_CriticalSection_Enter
Lloh0:
	adrp	x8, _True@GOTPAGE
Lloh1:
	ldr	x8, [x8, _True@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #24]
LBB0_2:
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _kMtBtNumBlocksMask@GOTPAGE
Lloh4:
	ldr	x9, [x9, _kMtBtNumBlocksMask@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	and	x9, x9, x20
Lloh6:
	adrp	x20, _kMtBtBlockSize@GOTPAGE
Lloh7:
	ldr	x20, [x20, _kMtBtBlockSize@GOTPAGEOFF]
	ldr	x10, [x20]
	madd	x1, x9, x10, x8
	mov	x0, x19
	bl	_BtGetMatches
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _kMtMaxValForNormalize@GOTPAGE
Lloh9:
	ldr	x9, [x9, _kMtMaxValForNormalize@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	x10, [x20]
	sub	x9, x9, x10
	cmp	x8, x9
	b.le	LBB0_4
; %bb.3:
	ldp	w9, w1, [x19, #8]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	sub	x20, x8, x9
	lsl	w2, w9, #1
	mov	x0, x20
	bl	_MatchFinder_Normalize3
	ldr	x8, [x19]
	sub	x8, x8, x20
	str	x8, [x19]
LBB0_4:
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_6
; %bb.5:
	add	x0, x19, #28
	bl	_CriticalSection_Leave
Lloh11:
	adrp	x8, _False@GOTPAGE
Lloh12:
	ldr	x8, [x8, _False@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #24]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_True,4,2                       ; @True
	.comm	_kMtBtNumBlocksMask,8,3         ; @kMtBtNumBlocksMask
	.comm	_kMtBtBlockSize,8,3             ; @kMtBtBlockSize
	.comm	_kMtMaxValForNormalize,8,3      ; @kMtMaxValForNormalize
	.comm	_False,4,2                      ; @False
.subsections_via_symbols
