	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MmAreMemoryPagesAvailable      ## -- Begin function MmAreMemoryPagesAvailable
	.p2align	4, 0x90
_MmAreMemoryPagesAvailable:             ## @MmAreMemoryPagesAvailable
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rsi, %r15
	movl	%edi, %r14d
	movl	%edx, %edi
	callq	_MmGetPageNumberFromAddress
	movq	_MmLowestPhysicalPage@GOTPCREL(%rip), %rdx
	movq	_FALSE@GOTPCREL(%rip), %rcx
	subq	(%rdx), %rax
	jl	LBB0_8
## %bb.1:
	leaq	(%rax,%rbx), %rdx
	cmpq	%r15, %rdx
	jg	LBB0_8
## %bb.2:
	movq	_TRUE@GOTPCREL(%rip), %rsi
	testq	%rbx, %rbx
	jle	LBB0_7
## %bb.3:
	movslq	%r14d, %rdi
	movq	_LoaderFree@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rdi,%rax,8)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rax
	cmpq	%rdx, %rax
	jl	LBB0_4
LBB0_7:
	movq	%rsi, %rcx
LBB0_8:
	movl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MmLowestPhysicalPage,8,3       ## @MmLowestPhysicalPage
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_LoaderFree,8,3                 ## @LoaderFree
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MmAreMemoryPagesAvailable      ; -- Begin function MmAreMemoryPagesAvailable
	.p2align	2
_MmAreMemoryPagesAvailable:             ; @MmAreMemoryPagesAvailable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x3
	mov	x21, x1
	mov	x19, x0
	mov	x0, x2
	bl	_MmGetPageNumberFromAddress
Lloh0:
	adrp	x8, _MmLowestPhysicalPage@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MmLowestPhysicalPage@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	subs	x9, x0, x8
	b.lt	LBB0_2
; %bb.1:
	add	x10, x9, x20
	cmp	x10, x21
	b.le	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	cmp	x20, #1
	b.lt	LBB0_8
; %bb.5:
Lloh5:
	adrp	x8, _LoaderFree@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LoaderFree@GOTPAGEOFF]
	sxtw	x12, w19
Lloh7:
	ldr	x13, [x8]
Lloh8:
	adrp	x11, _FALSE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _FALSE@GOTPAGEOFF]
Lloh10:
	adrp	x8, _TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x12, x9, lsl #3]
	cmp	x14, x13
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #1
	cmp	x9, x10
	b.lt	LBB0_6
	b	LBB0_3
LBB0_8:
Lloh12:
	adrp	x8, _TRUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_3
LBB0_9:
	mov	x8, x11
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MmLowestPhysicalPage,8,3       ; @MmLowestPhysicalPage
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_LoaderFree,8,3                 ; @LoaderFree
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
