	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MempMapSinglePage
_MempMapSinglePage:                     ## @MempMapSinglePage
	.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, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %ebx
	movq	_PxeBase@GOTPCREL(%rip), %r14
	movq	(%r14), %r15
	callq	_VAtoPXI
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_MempGetOrCreatePageDir
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_VAtoPPI
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_MempGetOrCreatePageDir
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_VAtoPDI
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_MempGetOrCreatePageDir
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	%ebx, %edi
	callq	_VAtoPTI
	leaq	(%rax,%rax,2), %rcx
	cmpl	$0, (%r13,%rcx,4)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_ERR
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rdx
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	callq	_ERR
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	leaq	(,%rcx,4), %rax
	addq	%r13, %rax
	movl	$1, (%rax)
	movl	$1, 4(%r13,%rcx,4)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rsi
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	(%rsi)
	movl	%eax, 8(%r13,%rcx,4)
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PxeBase,8,3                    ## @PxeBase
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"!!!No Dir %p, %p, %p, %p\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"!!!Already mapped %ld\n"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_MempMapSinglePage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MempMapSinglePage
_MempMapSinglePage:                     ; @MempMapSinglePage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _PxeBase@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PxeBase@GOTPAGEOFF]
	ldr	x21, [x24]
	bl	_VAtoPXI
	mov	x1, x0
	mov	x0, x21
	bl	_MempGetOrCreatePageDir
	mov	x21, x0
	mov	x0, x20
	bl	_VAtoPPI
	mov	x1, x0
	mov	x0, x21
	bl	_MempGetOrCreatePageDir
	mov	x23, x0
	mov	x0, x20
	bl	_VAtoPDI
	mov	x1, x0
	mov	x0, x23
	bl	_MempGetOrCreatePageDir
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	mov	x0, x20
	bl	_VAtoPTI
	mov	w8, #12
	madd	x8, x0, x8, x22
	ldr	w9, [x8]
	cbz	w9, LBB0_5
; %bb.2:
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	ldr	x8, [x24]
	stp	x23, xzr, [sp, #16]
	stp	x8, x21, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_ERR
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	movi.2s	v0, #1
	str	d0, [x8]
Lloh8:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	sdiv	w8, w19, w8
	mov	w9, #12
	madd	x9, x0, x9, x22
	str	w8, [x9, #8]
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PxeBase,8,3                    ; @PxeBase
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"!!!No Dir %p, %p, %p, %p\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"!!!Already mapped %ld\n"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_MempMapSinglePage
.subsections_via_symbols
