	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slurp_symtab
_slurp_symtab:                          ## @slurp_symtab
	.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	%rdi, %rbx
	movq	_symcount@GOTPCREL(%rip), %r15
	movq	$0, (%r15)
	xorl	%esi, %esi
	callq	_bfd_openr
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	_bfd_object@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bfd_check_format
	testl	%eax, %eax
	je	LBB0_2
## %bb.7:
	movq	%r14, %rdi
	callq	_bfd_get_file_flags
	movq	_HAS_SYMS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.8:
	movq	%r14, %rdi
	callq	_bfd_get_symtab_upper_bound
	movq	_symstorage@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jle	LBB0_2
## %bb.9:
	movq	%rax, %rdi
	callq	_malloc
	movq	_symbols@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.10:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_bfd_canonicalize_symtab
	movq	%rax, (%r15)
	testq	%rax, %rax
	js	LBB0_2
## %bb.11:
	movq	(%rbx), %rdi
	movq	%rax, %rsi
	callq	_remove_useless_symbols
	movq	%rax, (%r15)
	jmp	LBB0_12
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_fprintf
LBB0_2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_bfd_get_filename
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
	movq	_symbols@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_free
LBB0_4:
	movq	$0, (%rbx)
	testq	%r14, %r14
	je	LBB0_12
## %bb.5:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bfd_close                      ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_symcount,8,3                   ## @symcount
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to open: %s\n"

	.comm	_bfd_object,4,2                 ## @bfd_object
	.comm	_HAS_SYMS,4,2                   ## @HAS_SYMS
	.comm	_symstorage,8,3                 ## @symstorage
	.comm	_symbols,8,3                    ## @symbols
L_.str.1:                               ## @.str.1
	.asciz	"no symbols in %s\n"

	.no_dead_strip	_slurp_symtab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slurp_symtab
_slurp_symtab:                          ; @slurp_symtab
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
Lloh0:
	adrp	x22, _symcount@GOTPAGE
Lloh1:
	ldr	x22, [x22, _symcount@GOTPAGEOFF]
	str	xzr, [x22]
	mov	x1, #0
	bl	_bfd_openr
	mov	x19, x0
Lloh2:
	adrp	x21, _symbols@GOTPAGE
Lloh3:
	ldr	x21, [x21, _symbols@GOTPAGEOFF]
Lloh4:
	adrp	x23, _stderr@GOTPAGE
Lloh5:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.1:
Lloh6:
	adrp	x8, _bfd_object@GOTPAGE
Lloh7:
	ldr	x8, [x8, _bfd_object@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bfd_check_format
	cbz	w0, LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_bfd_get_file_flags
Lloh9:
	adrp	x8, _HAS_SYMS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HAS_SYMS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.3:
	mov	x0, x19
	bl	_bfd_get_symtab_upper_bound
Lloh12:
	adrp	x8, _symstorage@GOTPAGE
Lloh13:
	ldr	x8, [x8, _symstorage@GOTPAGEOFF]
Lloh14:
	str	x0, [x8]
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.4:
	bl	_malloc
	str	x0, [x21]
	cbz	x0, LBB0_8
; %bb.5:
	mov	x1, x0
	mov	x0, x19
	bl	_bfd_canonicalize_symtab
	str	x0, [x22]
	tbnz	x0, #63, LBB0_8
; %bb.6:
	mov	x1, x0
	ldr	x0, [x21]
	bl	_remove_useless_symbols
	str	x0, [x22]
	b	LBB0_12
LBB0_7:
	ldr	w0, [x23]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_fprintf
LBB0_8:
	ldr	w20, [x23]
	mov	x0, x19
	bl	_bfd_get_filename
	mov	x2, x0
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_fprintf
	ldr	x0, [x21]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_free
LBB0_10:
	str	xzr, [x21]
	cbz	x19, LBB0_12
; %bb.11:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_bfd_close
LBB0_12:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_symcount,8,3                   ; @symcount
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to open: %s\n"

	.comm	_bfd_object,4,2                 ; @bfd_object
	.comm	_HAS_SYMS,4,2                   ; @HAS_SYMS
	.comm	_symstorage,8,3                 ; @symstorage
	.comm	_symbols,8,3                    ; @symbols
l_.str.1:                               ; @.str.1
	.asciz	"no symbols in %s\n"

	.no_dead_strip	_slurp_symtab
.subsections_via_symbols
