	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MmFindAvailablePagesBeforePage ## -- Begin function MmFindAvailablePagesBeforePage
	.p2align	4, 0x90
_MmFindAvailablePagesBeforePage:        ## @MmFindAvailablePagesBeforePage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	%rsi, %rcx
	jle	LBB0_1
## %bb.10:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	popq	%rbp
	jmp	_MmFindAvailablePages           ## TAILCALL
LBB0_1:
	cmpq	$2, %rcx
	jl	LBB0_6
## %bb.2:
	movslq	%edi, %r8
	movq	_LoaderFree@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	decq	%rcx
	xorl	%edi, %edi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	-1(%rcx), %rax
	incq	%rcx
	cmpq	$2, %rcx
	movq	%rax, %rcx
	jbe	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%r8,%rcx,8)
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdi
	cmpq	%rdx, %rdi
	jl	LBB0_5
## %bb.8:
	movq	_MmLowestPhysicalPage@GOTPCREL(%rip), %rax
	addq	(%rax), %rcx
	jmp	LBB0_9
LBB0_6:
	xorl	%ecx, %ecx
LBB0_9:
	movq	%rcx, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_LoaderFree,8,3                 ## @LoaderFree
	.comm	_MmLowestPhysicalPage,8,3       ## @MmLowestPhysicalPage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MmFindAvailablePagesBeforePage ; -- Begin function MmFindAvailablePagesBeforePage
	.p2align	2
_MmFindAvailablePagesBeforePage:        ; @MmFindAvailablePagesBeforePage
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	x3, x1
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	b	_MmFindAvailablePages
LBB0_2:
	cmp	x3, #2
	b.lt	LBB0_9
; %bb.3:
	mov	x9, #0
	sxtw	x8, w0
Lloh3:
	adrp	x10, _LoaderFree@GOTPAGE
Lloh4:
	ldr	x10, [x10, _LoaderFree@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x10]
	sub	x10, x3, #1
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x9, #0
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x12, x10, #1
	sub	x10, x10, #1
	cmp	x12, #2
	b.ls	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x8, x10, lsl #3]
	cmp	x12, x11
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #1
	cmp	x9, x2
	b.lt	LBB0_5
; %bb.8:
Lloh6:
	adrp	x8, _MmLowestPhysicalPage@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MmLowestPhysicalPage@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x0, x8, x10
	ret
LBB0_9:
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_LoaderFree,8,3                 ; @LoaderFree
	.comm	_MmLowestPhysicalPage,8,3       ; @MmLowestPhysicalPage
.subsections_via_symbols
