	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sunos_slurp_dynamic_symtab
_sunos_slurp_dynamic_symtab:            ## @sunos_slurp_dynamic_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_obj_aout_dynamic_info
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_sunos_read_dynamic_info
	testl	%eax, %eax
	je	LBB0_20
LBB0_2:
	movq	%r14, %rdi
	callq	_obj_aout_dynamic_info
	cmpl	$0, 48(%rax)
	je	LBB0_10
## %bb.3:
	movq	%rax, %rbx
	cmpq	$0, 40(%rax)
	je	LBB0_11
LBB0_4:
	movq	_TRUE@GOTPCREL(%rip), %r12
	cmpq	$0, 8(%rbx)
	jne	LBB0_21
## %bb.5:
	movl	16(%rbx), %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_bfd_alloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_19
LBB0_6:
	movl	24(%rbx), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_bfd_seek
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	8(%rbx), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_bfd_bread
	cmpl	%r15d, %eax
	je	LBB0_21
LBB0_8:
	movq	8(%rbx), %rsi
	movq	_FALSE@GOTPCREL(%rip), %r12
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.9:
	movq	%r14, %rdi
	callq	_bfd_release
	movq	$0, 8(%rbx)
	jmp	LBB0_21
LBB0_10:
	movq	_bfd_error_no_symbols@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bfd_set_error
LBB0_20:
	movq	_FALSE@GOTPCREL(%rip), %r12
LBB0_21:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_EXTERNAL_NLIST_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	imull	(%rbx), %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_bfd_alloc
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_17
LBB0_12:
	movl	32(%rbx), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_bfd_seek
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movq	40(%rbx), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_bfd_bread
	cmpl	%r15d, %eax
	je	LBB0_4
LBB0_14:
	movq	40(%rbx), %rsi
	movq	_FALSE@GOTPCREL(%rip), %r12
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.15:
	movq	%r14, %rdi
	callq	_bfd_release
	movq	$0, 40(%rbx)
	jmp	LBB0_21
LBB0_17:
	cmpq	$0, (%rbx)
	jne	LBB0_20
	jmp	LBB0_12
LBB0_19:
	cmpl	$0, 16(%rbx)
	jne	LBB0_20
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_bfd_error_no_symbols,4,2       ## @bfd_error_no_symbols
	.comm	_EXTERNAL_NLIST_SIZE,4,2        ## @EXTERNAL_NLIST_SIZE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_sunos_slurp_dynamic_symtab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sunos_slurp_dynamic_symtab
_sunos_slurp_dynamic_symtab:            ; @sunos_slurp_dynamic_symtab
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_obj_aout_dynamic_info
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_sunos_read_dynamic_info
	cbz	w0, LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_obj_aout_dynamic_info
	ldr	w8, [x0, #48]
	cbz	w8, LBB0_6
; %bb.3:
	mov	x20, x0
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_9
LBB0_4:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_14
LBB0_5:
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh2:
	adrp	x8, _bfd_error_no_symbols@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bfd_error_no_symbols@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_bfd_set_error
LBB0_7:
Lloh5:
	adrp	x8, _FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w8, [x20]
Lloh7:
	adrp	x9, _EXTERNAL_NLIST_SIZE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _EXTERNAL_NLIST_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	mul	w21, w9, w8
	mov	x0, x19
	mov	x1, x21
	bl	_bfd_alloc
	str	x0, [x20, #40]
	cbz	x0, LBB0_19
LBB0_10:
	ldr	w1, [x20, #32]
Lloh10:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bfd_seek
	cbnz	x0, LBB0_12
; %bb.11:
	ldr	x0, [x20, #40]
	mov	x1, x21
	mov	x2, x19
	bl	_bfd_bread
	cmp	w0, w21
	b.eq	LBB0_4
LBB0_12:
	ldr	x1, [x20, #40]
	cbz	x1, LBB0_7
; %bb.13:
	mov	x0, x19
	bl	_bfd_release
	str	xzr, [x20, #40]
	b	LBB0_7
LBB0_14:
	ldr	w21, [x20, #16]
	mov	x0, x19
	mov	x1, x21
	bl	_bfd_alloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_20
LBB0_15:
	ldr	w1, [x20, #24]
Lloh13:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bfd_seek
	cbnz	x0, LBB0_17
; %bb.16:
	ldr	x0, [x20, #8]
	mov	x1, x21
	mov	x2, x19
	bl	_bfd_bread
	cmp	w0, w21
	b.eq	LBB0_5
LBB0_17:
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_7
; %bb.18:
	mov	x0, x19
	bl	_bfd_release
	str	xzr, [x20, #8]
	b	LBB0_7
LBB0_19:
	ldr	x8, [x20]
	cbnz	x8, LBB0_7
	b	LBB0_10
LBB0_20:
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_7
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_bfd_error_no_symbols,4,2       ; @bfd_error_no_symbols
	.comm	_EXTERNAL_NLIST_SIZE,4,2        ; @EXTERNAL_NLIST_SIZE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_sunos_slurp_dynamic_symtab
.subsections_via_symbols
