	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_entry
_load_entry:                            ## @load_entry
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	addq	16(%rbp), %rbx
	movq	%rsi, %r13
	movq	24(%rbp), %r12
	movq	40(%rbp), %r15
	movq	_P_READ@GOTPCREL(%rip), %rax
	movq	_PH_W@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	andl	48(%rbp), %r14d
	je	LBB0_2
## %bb.1:
	movq	_P_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
LBB0_2:
	movq	32(%rbp), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	orl	(%rax), %r14d
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_PAGE
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_PGOFFSET
	leaq	(%rax,%r15), %rdi
	callq	_PAGE_ROUND_UP
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_PGOFFSET
	movq	%r12, %r8
	subq	%rax, %r8
	movq	_MMAP_PRIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %r9d
	callq	*-80(%rbp)                      ## 8-byte Folded Reload
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	movq	%r13, %rdi
	callq	_fd_retain
	movl	%eax, %r14d
	movq	_current@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_PAGE
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_mem_pt
	movq	(%rax), %rax
	movl	%r14d, 8(%rax)
	movq	%rbx, %rdi
	callq	_PGOFFSET
	subq	%rax, %r12
	movq	(%r13), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_PAGE
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_mem_pt
	movq	(%rax), %rax
	movq	%r12, (%rax)
	xorl	%eax, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	subq	%r13, %rcx
	jle	LBB0_9
## %bb.4:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	addq	%rbx, %r13
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	movq	%r13, %rdi
	callq	_PGOFFSET
	subq	%rax, %rbx
	xorl	%r15d, %r15d
	cmpq	(%r14), %rbx
	cmovneq	%rbx, %r15
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_user_memset
LBB0_6:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	subq	%r15, %rbx
	movq	_current@GOTPCREL(%rip), %rax
	jle	LBB0_8
## %bb.7:
	movq	(%rax), %rax
	movl	(%rax), %r14d
	movq	%r13, %rdi
	callq	_PAGE_ROUND_UP
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_PAGE_ROUND_UP
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_pt_map_nothing
	testl	%eax, %eax
	js	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P_READ,4,2                     ## @P_READ
	.comm	_PH_W,4,2                       ## @PH_W
	.comm	_P_WRITE,4,2                    ## @P_WRITE
	.comm	_current,8,3                    ## @current
	.comm	_MMAP_PRIVATE,4,2               ## @MMAP_PRIVATE
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	_load_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_entry
_load_entry:                            ; @load_entry
	.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	x21, x2
	ldp	x8, x28, [x0]
	add	x20, x8, x1
Lloh0:
	adrp	x8, _P_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P_READ@GOTPAGEOFF]
	ldp	x9, x26, [x0, #16]
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0, #32]
Lloh3:
	adrp	x10, _PH_W@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PH_W@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _P_WRITE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _P_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w19, w9, w8
	ldr	x8, [x2]
	ldr	x25, [x8]
Lloh9:
	adrp	x27, _current@GOTPAGE
Lloh10:
	ldr	x27, [x27, _current@GOTPAGEOFF]
	ldr	x8, [x27]
	ldr	w22, [x8]
	mov	x0, x20
	bl	_PAGE
	mov	x23, x0
	mov	x0, x20
	bl	_PGOFFSET
	add	x0, x0, x26
	bl	_PAGE_ROUND_UP
	mov	x24, x0
	mov	x0, x20
	bl	_PGOFFSET
	sub	x4, x28, x0
Lloh11:
	adrp	x8, _MMAP_PRIVATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MMAP_PRIVATE@GOTPAGEOFF]
Lloh13:
	ldr	w6, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	mov	x5, x19
	blr	x25
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	x0, x21
	bl	_fd_retain
	mov	x21, x0
	ldr	x8, [x27]
	ldr	w22, [x8]
	mov	x0, x20
	bl	_PAGE
	mov	x1, x0
	mov	x0, x22
	bl	_mem_pt
	ldr	x8, [x0]
	str	w21, [x8, #8]
	mov	x0, x20
	bl	_PGOFFSET
	sub	x22, x28, x0
	ldr	x8, [x27]
	ldr	w21, [x8]
	mov	x0, x20
	bl	_PAGE
	mov	x1, x0
	mov	x0, x21
	bl	_mem_pt
	ldr	x8, [x0]
	str	x22, [x8]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	subs	x22, x8, x26
	b.le	LBB0_6
; %bb.2:
	add	x20, x26, x20
Lloh14:
	adrp	x21, _PAGE_SIZE@GOTPAGE
Lloh15:
	ldr	x21, [x21, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x23, [x21]
	mov	x0, x20
	bl	_PGOFFSET
	ldr	x8, [x21]
	sub	x9, x23, x0
	cmp	x9, x8
	csel	x21, xzr, x9, eq
	cbz	x21, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_user_memset
LBB0_4:
	subs	x21, x22, x21
	b.le	LBB0_6
; %bb.5:
	ldr	x8, [x27]
	ldr	w22, [x8]
	mov	x0, x20
	bl	_PAGE_ROUND_UP
	mov	x20, x0
	mov	x0, x21
	bl	_PAGE_ROUND_UP
	mov	x2, x0
	mov	x0, x22
	mov	x1, x20
	mov	x3, x19
	bl	_pt_map_nothing
	tbnz	w0, #31, LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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 AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_P_READ,4,2                     ; @P_READ
	.comm	_PH_W,4,2                       ; @PH_W
	.comm	_P_WRITE,4,2                    ; @P_WRITE
	.comm	_current,8,3                    ; @current
	.comm	_MMAP_PRIVATE,4,2               ; @MMAP_PRIVATE
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	_load_entry
.subsections_via_symbols
