	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MmAllocatePagesInLookupTable   ## -- Begin function MmAllocatePagesInLookupTable
	.p2align	4, 0x90
_MmAllocatePagesInLookupTable:          ## @MmAllocatePagesInLookupTable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MmLowestPhysicalPage@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	%rsi, %r8
	subq	%r10, %r8
	leaq	(%r8,%rdx), %r9
	cmpq	%r9, %r8
	jae	LBB0_6
## %bb.1:
	movslq	%edi, %rax
	movq	%r8, %r11
	testb	$1, %dl
	je	LBB0_3
## %bb.2:
	movq	%r8, %rdi
	shlq	$4, %rdi
	movl	%ecx, 8(%rax,%rdi)
	movq	%rdx, (%rax,%rdi)
	leaq	1(%r8), %r11
LBB0_3:
	cmpq	$1, %rdx
	je	LBB0_6
## %bb.4:
	movq	%r11, %rdi
	shlq	$4, %rdi
	addq	%rdi, %rax
	addq	$24, %rax
	addq	%r11, %r10
	subq	%rsi, %r10
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -16(%rax)
	testq	%r10, %r10
	movl	$0, %esi
	cmoveq	%rdx, %rsi
	movq	%rsi, -24(%rax)
	leaq	1(%r11), %rsi
	movl	%ecx, (%rax)
	cmpq	%r8, %rsi
	movl	$0, %esi
	cmoveq	%rdx, %rsi
	movq	%rsi, -8(%rax)
	addq	$2, %r11
	addq	$32, %rax
	addq	$2, %r10
	cmpq	%r9, %r11
	jne	LBB0_5
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MmLowestPhysicalPage,8,3       ## @MmLowestPhysicalPage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MmAllocatePagesInLookupTable   ; -- Begin function MmAllocatePagesInLookupTable
	.p2align	2
_MmAllocatePagesInLookupTable:          ; @MmAllocatePagesInLookupTable
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _MmLowestPhysicalPage@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MmLowestPhysicalPage@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x14, x1, x8
	add	x9, x14, x2
	cmp	x14, x9
	b.hs	LBB0_7
; %bb.1:
	sxtw	x9, w0
	mov	x10, x14
	cmp	x2, #4
	b.lo	LBB0_5
; %bb.2:
	mov	x12, #0
	and	x11, x2, #0xfffffffffffffffc
	add	x10, x14, x11
	neg	x13, x11
	add	x14, x9, x14, lsl #4
	add	x14, x14, #32
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	stur	w3, [x14, #-24]
	stur	w3, [x14, #-8]
	str	w3, [x14, #8]
	cmp	x12, #0
	csel	x15, x2, xzr, eq
	str	w3, [x14, #24]
	cmp	x12, #1
	csel	x16, x2, xzr, eq
	cmp	x12, #2
	csel	x17, x2, xzr, eq
	cmp	x12, #3
	csel	x0, x2, xzr, eq
	stur	x15, [x14, #-32]
	stur	x16, [x14, #-16]
	sub	x12, x12, #4
	str	x17, [x14]
	str	x0, [x14, #16]
	add	x14, x14, #64
	cmp	x13, x12
	b.ne	LBB0_3
; %bb.4:
	cmp	x11, x2
	b.eq	LBB0_7
LBB0_5:
	add	x8, x10, x8
	sub	x8, x8, x1
	add	x9, x9, x10, lsl #4
	add	x9, x9, #8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	w3, [x9]
	cmp	x8, #0
	csel	x10, x2, xzr, eq
	stur	x10, [x9, #-8]
	add	x8, x8, #1
	add	x9, x9, #16
	cmp	x2, x8
	b.ne	LBB0_6
LBB0_7:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MmLowestPhysicalPage,8,3       ; @MmLowestPhysicalPage
.subsections_via_symbols
