	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svr4_fetch_objfile_link_map    ## -- Begin function svr4_fetch_objfile_link_map
	.p2align	4, 0x90
_svr4_fetch_objfile_link_map:           ## @svr4_fetch_objfile_link_map
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_locate_base
	movq	_debug_base@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_first_link_map_member
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rax, %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_safe_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_warning
	movq	-72(%rbp), %r14                 ## 8-byte Reload
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r13), %rax
	addq	%rax, %r12
	movl	4(%r13), %esi
	movq	%r12, %rdi
	callq	_extract_unsigned_integer
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_do_cleanups
	testq	%rbx, %rbx
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_SVR4_FETCH_LINK_MAP_OFFSETS
	movq	%rax, %r13
	movl	8(%rax), %edi
	callq	_xmalloc
	movq	%rax, %r14
	movq	_xfree@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%rax, %rsi
	callq	_make_cleanup
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	24(%r13), %edi
	callq	_xmalloc
	movq	%rax, %r12
	movl	(%r15), %edi
	movq	%rax, %rsi
	callq	_make_cleanup
	movl	24(%r13), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	24(%r13), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_read_memory
	movq	16(%r13), %rdi
	addq	%rbx, %rdi
	movl	8(%r13), %edx
	movq	%r14, %rsi
	callq	_read_memory
	movl	8(%r13), %esi
	movq	%r14, %rdi
	callq	_extract_unsigned_integer
	movq	_SO_NAME_MAX_PATH_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	decq	%rdx
	movq	%rax, %rdi
	leaq	-48(%rbp), %rsi
	leaq	-52(%rbp), %rcx
	callq	_target_read_string
	movl	(%r15), %edi
	movq	-48(%rbp), %rsi
	callq	_make_cleanup
	movl	-52(%rbp), %edi
	testl	%edi, %edi
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_OBJF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, 8(%rcx)
	jne	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_5
LBB0_11:
	movq	%r14, %rdi
	callq	_do_cleanups
	jmp	LBB0_12
LBB0_6:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug_base,4,2                 ## @debug_base
	.comm	_xfree,4,2                      ## @xfree
	.comm	_SO_NAME_MAX_PATH_SIZE,8,3      ## @SO_NAME_MAX_PATH_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"svr4_fetch_objfile_link_map: Can't read pathname for load map: %s\n"

	.comm	_OBJF_SHARED,4,2                ## @OBJF_SHARED
L_.str.1:                               ## @.str.1
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svr4_fetch_objfile_link_map    ; -- Begin function svr4_fetch_objfile_link_map
	.p2align	2
_svr4_fetch_objfile_link_map:           ; @svr4_fetch_objfile_link_map
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_locate_base
Lloh0:
	adrp	x8, _debug_base@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug_base@GOTPAGEOFF]
Lloh2:
	str	w0, [x8]
	cbz	w0, LBB0_11
; %bb.1:
	bl	_first_link_map_member
	mov	x21, x0
	cbz	x0, LBB0_12
; %bb.2:
Lloh3:
	adrp	x27, _xfree@GOTPAGE
Lloh4:
	ldr	x27, [x27, _xfree@GOTPAGEOFF]
Lloh5:
	adrp	x28, _SO_NAME_MAX_PATH_SIZE@GOTPAGE
Lloh6:
	ldr	x28, [x28, _SO_NAME_MAX_PATH_SIZE@GOTPAGEOFF]
Lloh7:
	adrp	x20, _OBJF_SHARED@GOTPAGE
Lloh8:
	ldr	x20, [x20, _OBJF_SHARED@GOTPAGEOFF]
Lloh9:
	adrp	x22, l_.str@PAGE
Lloh10:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_safe_strerror
	mov	x1, x0
	mov	x0, x22
	bl	_warning
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldp	w8, w1, [x23]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	x0, x25, x8
	bl	_extract_unsigned_integer
	mov	x21, x0
	mov	x0, x24
	bl	_do_cleanups
	cbz	x21, LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	bl	_SVR4_FETCH_LINK_MAP_OFFSETS
	mov	x23, x0
	ldr	w0, [x0, #8]
	bl	_xmalloc
	mov	x26, x0
	ldr	w0, [x27]
	mov	x1, x26
	bl	_make_cleanup
	mov	x24, x0
	ldr	w0, [x23, #24]
	bl	_xmalloc
	mov	x25, x0
	ldr	w0, [x27]
	mov	x1, x25
	bl	_make_cleanup
	ldr	w2, [x23, #24]
	mov	x0, x25
	mov	w1, #0
	bl	_memset
	ldr	w2, [x23, #24]
	mov	x0, x21
	mov	x1, x25
	bl	_read_memory
	ldr	x8, [x23, #16]
	add	x0, x8, x21
	ldr	w2, [x23, #8]
	mov	x1, x26
	bl	_read_memory
	ldr	w1, [x23, #8]
	mov	x0, x26
	bl	_extract_unsigned_integer
	ldr	x8, [x28]
	sub	x2, x8, #1
	mov	x1, sp
	add	x3, sp, #12
	bl	_target_read_string
	ldr	w0, [x27]
	ldr	x1, [sp]
	bl	_make_cleanup
	ldr	w0, [sp, #12]
	cbnz	w0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp]
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x19]
	bl	_strcmp
	cbz	x0, LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #8]
	ldr	w9, [x20]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_4
LBB0_10:
	mov	x0, x24
	bl	_do_cleanups
	b	LBB0_12
LBB0_11:
	mov	x21, #0
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_debug_base,4,2                 ; @debug_base
	.comm	_xfree,4,2                      ; @xfree
	.comm	_SO_NAME_MAX_PATH_SIZE,8,3      ; @SO_NAME_MAX_PATH_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"svr4_fetch_objfile_link_map: Can't read pathname for load map: %s\n"

	.comm	_OBJF_SHARED,4,2                ; @OBJF_SHARED
l_.str.1:                               ; @.str.1
	.space	1

.subsections_via_symbols
