	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_ref_entry                 ## -- Begin function find_ref_entry
	.p2align	4, 0x90
_find_ref_entry:                        ## @find_ref_entry
	.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
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_find_containing_dir
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_search_ref_dir
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:
	movq	(%r15), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	movq	_REF_DIR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r14d, %r14d
	testl	%ecx, (%rax)
	cmoveq	%rax, %r14
	jmp	LBB0_4
LBB0_2:
	xorl	%r14d, %r14d
LBB0_4:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REF_DIR,4,2                    ## @REF_DIR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_ref_entry                 ; -- Begin function find_ref_entry
	.p2align	2
_find_ref_entry:                        ; @find_ref_entry
	.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	w2, #0
	bl	_find_containing_dir
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_search_ref_dir
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19]
	ldr	x8, [x8, w0, sxtw #3]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _REF_DIR@GOTPAGE
Lloh1:
	ldr	x10, [x10, _REF_DIR@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	csel	x0, x8, xzr, eq
	b	LBB0_4
LBB0_3:
	mov	x0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REF_DIR,4,2                    ; @REF_DIR
.subsections_via_symbols
