	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btcache_lookup
_btcache_lookup:                        ## @btcache_lookup
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_btcache_index@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_btcache@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_lenof
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %ebx
	decl	%ebx
	movq	(%r12), %rdi
	callq	_lenof
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%edx, %r15d
	movl	%edx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movslq	%ebx, %rax
	shlq	$4, %rax
	cmpq	%r14, (%rdi,%rax)
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	callq	_lenof
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %ebx
	decl	%ebx
	movq	(%r12), %rdi
	callq	_lenof
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%edx, %ebx
	cmpl	%r15d, %edx
	jne	LBB0_1
## %bb.4:
	movl	$-1, %eax
	jmp	LBB0_5
LBB0_2:
	movl	8(%rdi,%rax), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_btcache_index,4,2              ## @btcache_index
	.comm	_btcache,8,3                    ## @btcache
	.no_dead_strip	_btcache_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btcache_lookup
_btcache_lookup:                        ; @btcache_lookup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _btcache_index@GOTPAGE
Lloh1:
	ldr	x8, [x8, _btcache_index@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x20, _btcache@GOTPAGE
Lloh4:
	ldr	x20, [x20, _btcache@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_lenof
	add	w8, w21, w0
	sub	w21, w8, #1
	ldr	x0, [x20]
	bl	_lenof
	sdiv	w8, w21, w0
	msub	w21, w8, w0, w21
	mov	x8, x21
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	sxtw	x22, w8
	sbfiz	x8, x8, #4, #32
	ldr	x8, [x0, x8]
	cmp	x8, x19
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_lenof
	add	w8, w22, w0
	sub	w22, w8, #1
	ldr	x0, [x20]
	bl	_lenof
	sdiv	w8, w22, w0
	msub	w8, w8, w0, w22
	cmp	w8, w21
	b.ne	LBB0_1
; %bb.3:
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
	add	x8, x0, x22, lsl #4
	ldr	w0, [x8, #8]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_btcache_index,4,2              ; @btcache_index
	.comm	_btcache,8,3                    ; @btcache
	.no_dead_strip	_btcache_lookup
.subsections_via_symbols
