	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_search_ref_dir                 ## -- Begin function search_ref_dir
	.p2align	4, 0x90
_search_ref_dir:                        ## @search_ref_dir
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r15
	cmpl	$0, 8(%rdi)
	je	LBB0_4
## %bb.2:
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%r15, %rdi
	callq	_sort_ref_dir
	movq	%r12, -48(%rbp)
	movq	%rbx, -40(%rbp)
	movq	(%r15), %rsi
	movl	8(%r15), %edx
	movq	_ref_entry_cmp_sslice@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-48(%rbp), %rdi
	movl	$8, %ecx
	callq	_bsearch
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	subq	(%r15), %rax
	shrq	$3, %rax
	movl	%eax, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ref_entry_cmp_sslice,4,2       ## @ref_entry_cmp_sslice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_search_ref_dir                 ; -- Begin function search_ref_dir
	.p2align	2
_search_ref_dir:                        ; @search_ref_dir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x21, x2
	mov	x20, x1
	mov	x0, x19
	bl	_sort_ref_dir
	stp	x21, x20, [sp]
	ldr	x1, [x19]
	ldr	w2, [x19, #8]
Lloh0:
	adrp	x8, _ref_entry_cmp_sslice@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ref_entry_cmp_sslice@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	mov	x0, sp
	mov	w3, #8
	bl	_bsearch
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19]
	sub	x8, x0, x8
	lsr	x0, x8, #3
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ref_entry_cmp_sslice,4,2       ; @ref_entry_cmp_sslice
.subsections_via_symbols
