	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_refs
_check_refs:                            ## @check_refs
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdi, %r13
	movq	(%rcx), %r12
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movq	8(%r12), %r14
	testq	%r14, %r14
	jne	LBB0_9
LBB0_2:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_bfd_get_symtab_upper_bound
	movq	%rax, %r14
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_einfo
LBB0_4:
	movq	%r14, %rdi
	callq	_xmalloc
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_bfd_canonicalize_symtab
	movq	%rax, %r15
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	testq	%r12, %r12
	je	LBB0_8
LBB0_7:
	movq	%r14, 8(%r12)
	movq	%r15, (%r12)
LBB0_8:
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_9:
	movq	%r13, -104(%rbp)
	movl	%esi, -72(%rbp)
	movq	%rdx, -80(%rbp)
	movq	%r8, -88(%rbp)
	movq	%r14, -96(%rbp)
	movq	_check_reloc_refs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-104(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_bfd_map_over_sections
	testq	%r12, %r12
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_free
LBB0_11:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_einfo
	testq	%r12, %r12
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%B%F: could not read symbols; %E\n"

L_.str.1:                               ## @.str.1
	.asciz	"%B%F: could not read symbols: %E\n"

	.comm	_check_reloc_refs,4,2           ## @check_reloc_refs
	.no_dead_strip	_check_refs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_refs
_check_refs:                            ; @check_refs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x4
	mov	x19, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	ldr	x26, [x3]
	cbz	x26, LBB0_2
; %bb.1:
	ldr	x24, [x26, #8]
	cbnz	x24, LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_bfd_get_symtab_upper_bound
	mov	x24, x0
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_einfo
LBB0_4:
	mov	x0, x24
	bl	_xmalloc
	mov	x24, x0
	mov	x0, x19
	mov	x1, x24
	bl	_bfd_canonicalize_symtab
	mov	x25, x0
	tbnz	x0, #63, LBB0_10
; %bb.5:
	cbz	x26, LBB0_7
LBB0_6:
	stp	x25, x24, [x26]
LBB0_7:
	str	w23, [sp, #40]
	stp	x20, x21, [sp, #24]
	stp	x22, x24, [sp, #8]
Lloh2:
	adrp	x8, _check_reloc_refs@GOTPAGE
Lloh3:
	ldr	x8, [x8, _check_reloc_refs@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_bfd_map_over_sections
	cbnz	x26, LBB0_9
; %bb.8:
	mov	x0, x24
	bl	_free
LBB0_9:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_10:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_einfo
	cbnz	x26, LBB0_6
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%B%F: could not read symbols; %E\n"

l_.str.1:                               ; @.str.1
	.asciz	"%B%F: could not read symbols: %E\n"

	.comm	_check_reloc_refs,4,2           ; @check_reloc_refs
	.no_dead_strip	_check_refs
.subsections_via_symbols
