	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_symref
_check_symref:                          ## @check_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r12
	leaq	-48(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_resolve_ref_unsafe
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_REF_ISSYMREF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -48(%rbp)
	jne	LBB0_6
## %bb.3:
	movl	$1, %r13d
	testl	%r14d, %r14d
	jne	LBB0_10
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_5:
	movq	%r12, %rsi
	callq	_die
LBB0_6:
	xorl	%r13d, %r13d
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.7:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_shorten_unambiguous_ref
	movq	%rax, %rbx
LBB0_9:
	movq	%rbx, %rdi
	callq	_puts
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No such ref: %s"

	.comm	_REF_ISSYMREF,4,2               ## @REF_ISSYMREF
L_.str.1:                               ## @.str.1
	.asciz	"ref %s is not a symbolic ref"

	.no_dead_strip	_check_symref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_symref
_check_symref:                          ; @check_symref
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x19, x2
	mov	x23, x1
	mov	x22, x0
	add	x3, sp, #12
	mov	w1, #0
	mov	x2, #0
	bl	_resolve_ref_unsafe
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _REF_ISSYMREF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REF_ISSYMREF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.2:
	cbz	w23, LBB0_5
; %bb.3:
	mov	w0, #1
	b	LBB0_12
LBB0_4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	mov	x1, x22
	bl	_die
LBB0_7:
	cbz	w21, LBB0_11
; %bb.8:
	cbz	w19, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	w1, #0
	bl	_shorten_unambiguous_ref
	mov	x20, x0
LBB0_10:
	mov	x0, x20
	bl	_puts
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No such ref: %s"

	.comm	_REF_ISSYMREF,4,2               ; @REF_ISSYMREF
l_.str.1:                               ; @.str.1
	.asciz	"ref %s is not a symbolic ref"

	.no_dead_strip	_check_symref
.subsections_via_symbols
