	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_dld_descriptor
_read_dld_descriptor:                   ## @read_dld_descriptor
	.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	%esi, %r15d
	movq	%rdi, %r14
	movq	_dld_cache@GOTPCREL(%rip), %r12
	cmpl	$0, 16(%r12)
	je	LBB0_1
LBB0_7:
	movl	12(%r12), %edi
	leaq	8(%r12), %rsi
	movl	$4, %edx
	callq	_target_read_memory
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	callq	_error
LBB0_9:
	movq	_pa64_target_read_memory@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	8(%r12), %r9d
	leaq	4(%r12), %rbx
	movl	$-1, %edi
	movq	%rbx, %rsi
	movl	$4, %edx
	xorl	%r8d, %r8d
	callq	_dlgetmodinfo
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rdi
	callq	_error
LBB0_11:
	movl	$1, (%r12)
	movl	(%r13), %edx
	movl	8(%r12), %r8d
	movq	%rbx, %rdi
	movl	$4, %esi
	xorl	%ecx, %ecx
	callq	_dlgetname
	xorl	%edi, %edi
	movq	%rax, %rsi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	movq	%r14, %r9
	callq	_add_to_solist
	movl	$1, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_symfile_objfile@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_error
	movq	(%rbx), %rax
LBB0_3:
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_bfd_get_section_by_name
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_dld_cache@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	callq	_read_dynamic_info
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	callq	_error
	jmp	LBB0_7
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_dld_cache,20,2                 ## @dld_cache
	.comm	_symfile_objfile,8,3            ## @symfile_objfile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No object file symbols."

L_.str.1:                               ## @.str.1
	.asciz	".dynamic"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to read in .dynamic section information."

L_.str.3:                               ## @.str.3
	.asciz	"Error while reading in load map pointer."

	.comm	_pa64_target_read_memory,4,2    ## @pa64_target_read_memory
L_.str.4:                               ## @.str.4
	.asciz	"Error trying to get information about dynamic linker."

	.no_dead_strip	_read_dld_descriptor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_dld_descriptor
_read_dld_descriptor:                   ; @read_dld_descriptor
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _dld_cache@GOTPAGE
Lloh1:
	ldr	x23, [x23, _dld_cache@GOTPAGEOFF]
	ldr	w8, [x23, #16]
	cbz	w8, LBB0_7
LBB0_1:
	ldr	w0, [x23, #12]
	add	x1, x23, #8
	mov	w2, #4
	bl	_target_read_memory
	cbz	x0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_error
LBB0_3:
Lloh4:
	adrp	x24, _pa64_target_read_memory@GOTPAGE
Lloh5:
	ldr	x24, [x24, _pa64_target_read_memory@GOTPAGEOFF]
	ldr	w3, [x24]
	ldr	w5, [x23, #8]
	add	x21, x23, #4
	mov	w0, #-1
	mov	x1, x21
	mov	w2, #4
	mov	w4, #0
	bl	_dlgetmodinfo
	cbnz	x0, LBB0_5
; %bb.4:
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_error
LBB0_5:
	mov	w22, #1
	str	w22, [x23]
	ldr	w2, [x24]
	ldr	w4, [x23, #8]
	mov	x0, x21
	mov	w1, #4
	mov	w3, #0
	bl	_dlgetname
	mov	x1, x0
	mov	w0, #0
	mov	x2, x20
	mov	x3, x21
	mov	w4, #0
	mov	x5, x19
	bl	_add_to_solist
LBB0_6:
	mov	x0, x22
	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
LBB0_7:
Lloh8:
	adrp	x21, _symfile_objfile@GOTPAGE
Lloh9:
	ldr	x21, [x21, _symfile_objfile@GOTPAGEOFF]
	ldr	x8, [x21]
	cbnz	x8, LBB0_9
; %bb.8:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	ldr	x8, [x21]
LBB0_9:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_bfd_get_section_by_name
	cbz	x0, LBB0_12
; %bb.10:
Lloh14:
	adrp	x1, _dld_cache@GOTPAGE
Lloh15:
	ldr	x1, [x1, _dld_cache@GOTPAGEOFF]
	bl	_read_dynamic_info
	cbnz	w0, LBB0_1
; %bb.11:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
	b	LBB0_1
LBB0_12:
	mov	w22, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_dld_cache,20,2                 ; @dld_cache
	.comm	_symfile_objfile,8,3            ; @symfile_objfile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No object file symbols."

l_.str.1:                               ; @.str.1
	.asciz	".dynamic"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to read in .dynamic section information."

l_.str.3:                               ; @.str.3
	.asciz	"Error while reading in load map pointer."

	.comm	_pa64_target_read_memory,4,2    ; @pa64_target_read_memory
l_.str.4:                               ; @.str.4
	.asciz	"Error trying to get information about dynamic linker."

	.no_dead_strip	_read_dld_descriptor
.subsections_via_symbols
