	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_map
_read_map:                              ## @read_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	xorl	%r12d, %r12d
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rsi, %r14
	leaq	-96(%rbp), %rsi
	movl	$40, %edx
	callq	_target_read_memory
	testq	%rax, %rax
	jne	LBB0_11
## %bb.2:
	movq	(%rbx), %rax
	xorl	%r12d, %r12d
	cmpq	8(%rbx), %rax
	je	LBB0_3
## %bb.4:
	movq	-64(%rbp), %rax
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movq	%rax, (%rbx)
	movl	-68(%rbp), %edi
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rcx
	callq	_target_read_string
	cmpl	$0, -44(%rbp)
	je	LBB0_6
LBB0_11:
	movl	%r12d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-56(%rbp), %rsi
	xorl	%edx, %edx
	cmpl	$0, -72(%rbp)
	sete	%dl
	movl	-84(%rbp), %ecx
	movq	%r14, %rdi
	callq	_init_so
	movq	-56(%rbp), %rdi
	callq	_xfree
	movl	$1, %r12d
	cmpl	$0, -84(%rbp)
	jle	LBB0_11
## %bb.7:
	xorl	%r13d, %r13d
	leaq	-136(%rbp), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rdi
	addq	%r13, %rdi
	movq	%r15, %rsi
	movl	$40, %edx
	callq	_target_read_memory
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	-128(%rbp), %edx
	movl	-136(%rbp), %r9d
	movl	-132(%rbp), %r8d
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	callq	_init_sec
	incq	%rbx
	movslq	-84(%rbp), %rax
	addq	$40, %r13
	cmpq	%rax, %rbx
	jl	LBB0_8
	jmp	LBB0_11
LBB0_10:
	movq	%r14, %rdi
	callq	_osf_free_so
	xorl	%r12d, %r12d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	_LDR_NULL_MODULE,8,3            ## @LDR_NULL_MODULE
	.no_dead_strip	_read_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_map
_read_map:                              ; @read_map
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x1
	add	x1, sp, #56
	mov	w2, #40
	bl	_target_read_memory
	cbnz	x0, LBB0_3
; %bb.2:
	ldp	x8, x9, [x20]
	ldr	x10, [sp, #88]
	cmp	x8, x9
	csel	x8, xzr, x10, eq
	str	x8, [x20]
	ldr	w0, [sp, #84]
Lloh0:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #8
	add	x3, sp, #4
	bl	_target_read_string
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_5:
	ldr	x1, [sp, #8]
	ldr	w8, [sp, #80]
	ldr	w3, [sp, #68]
	cmp	w8, #0
	cset	w2, eq
	mov	x0, x19
	bl	_init_so
	ldr	x0, [sp, #8]
	bl	_xfree
	ldr	w8, [sp, #68]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x21, #0
	mov	x20, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #72]
	add	x0, x21, x8
	add	x1, sp, #16
	mov	w2, #40
	bl	_target_read_memory
	cbnz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldp	w4, w2, [sp, #20]
	ldr	w5, [sp, #16]
	mov	x0, x19
	mov	x1, x20
	mov	x3, #0
	bl	_init_sec
	add	x20, x20, #1
	ldrsw	x8, [sp, #68]
	add	x21, x21, #40
	mov	w0, #1
	cmp	x20, x8
	b.lt	LBB0_7
	b	LBB0_4
LBB0_9:
	mov	w0, #1
	b	LBB0_4
LBB0_10:
	mov	x0, x19
	bl	_osf_free_so
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	_LDR_NULL_MODULE,8,3            ; @LDR_NULL_MODULE
	.no_dead_strip	_read_map
.subsections_via_symbols
