	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MempGetOrCreatePageDir
_MempGetOrCreatePageDir:                ## @MempGetOrCreatePageDir
	.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
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	shlq	$4, %rbx
	cmpl	$0, (%rdi,%rbx)
	je	LBB0_4
## %bb.2:
	movslq	8(%r14,%rbx), %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r15
	imulq	%rax, %r15
	jmp	LBB0_7
LBB0_4:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_LoaderMemoryData@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MmAllocateMemoryWithType
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %r15
	leaq	(%r14,%rbx), %r13
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_RtlZeroMemory
	movq	%r15, %rdi
	callq	_PtrToPfn
	movq	%rax, 8(%r14,%rbx)
	movl	$1, (%r13)
	movl	$1, 4(%r14,%rbx)
	jmp	LBB0_7
LBB0_6:
	xorl	%r15d, %r15d
LBB0_7:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_LoaderMemoryData,4,2           ## @LoaderMemoryData
	.no_dead_strip	_MempGetOrCreatePageDir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MempGetOrCreatePageDir
_MempGetOrCreatePageDir:                ; @MempGetOrCreatePageDir
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	add	x22, x0, x1, lsl #4
	ldr	w8, [x22]
	cbz	w8, LBB0_4
; %bb.2:
	ldrsw	x8, [x22, #8]
Lloh0:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	mul	x21, x9, x8
	b	LBB0_6
LBB0_3:
	mov	x21, #0
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh5:
	adrp	x8, _LoaderMemoryData@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LoaderMemoryData@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_MmAllocateMemoryWithType
	mov	x21, x0
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w1, [x23]
	mov	x0, x21
	bl	_RtlZeroMemory
	mov	x0, x21
	bl	_PtrToPfn
	add	x8, x20, x19, lsl #4
	str	x0, [x8, #8]
	movi.2s	v0, #1
	str	d0, [x22]
LBB0_6:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_LoaderMemoryData,4,2           ; @LoaderMemoryData
	.no_dead_strip	_MempGetOrCreatePageDir
.subsections_via_symbols
