	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_symref
_find_symref:                           ## @find_symref
	.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	%edx, -36(%rbp)
	movq	_REF_ISSYMREF@GOTPCREL(%rip), %r12
	testl	%edx, (%r12)
	je	LBB0_5
## %bb.1:
	movq	%rcx, %r14
	movq	%rdi, %rbx
	leaq	-36(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_resolve_ref_unsafe
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%r12), %eax
	testl	%eax, -36(%rbp)
	jne	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_die
LBB0_4:
	movq	%rbx, %rdi
	callq	_strip_namespace
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_string_list_append
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_strip_namespace
	movl	%eax, %edi
	callq	_xstrdup
	movl	%eax, (%rbx)
LBB0_5:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REF_ISSYMREF,4,2               ## @REF_ISSYMREF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"'%s' is a symref but it is not?"

	.no_dead_strip	_find_symref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_symref
_find_symref:                           ; @find_symref
	.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
	str	w2, [sp, #12]
Lloh0:
	adrp	x22, _REF_ISSYMREF@GOTPAGE
Lloh1:
	ldr	x22, [x22, _REF_ISSYMREF@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w2
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x3
	mov	x20, x0
	add	x3, sp, #12
	mov	w1, #0
	mov	x2, #0
	bl	_resolve_ref_unsafe
	mov	x21, x0
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_4
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_die
LBB0_4:
	mov	x0, x20
	bl	_strip_namespace
	mov	x1, x0
	mov	x0, x19
	bl	_string_list_append
	mov	x19, x0
	mov	x0, x21
	bl	_strip_namespace
	bl	_xstrdup
	str	w0, [x19]
LBB0_5:
	mov	w0, #0
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_REF_ISSYMREF,4,2               ; @REF_ISSYMREF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"'%s' is a symref but it is not?"

	.no_dead_strip	_find_symref
.subsections_via_symbols
