	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MmFindLocationForPageLookupTable ## -- Begin function MmFindLocationForPageLookupTable
	.p2align	4, 0x90
_MmFindLocationForPageLookupTable:      ## @MmFindLocationForPageLookupTable
	.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	%edi, %r14d
	shll	$2, %r14d
	movq	_MM_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	%r14d, %eax
	cltd
	idivl	(%rcx)
	movl	%eax, %r13d
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_ArcGetMemoryDescriptor
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	xorl	%r15d, %r15d
	movq	_LoaderFree@GOTPCREL(%rip), %rbx
                                        ## implicit-def: $r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rdi
	callq	_ArcGetMemoryDescriptor
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rcx
	cmpq	(%rbx), %rcx
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%rax), %ecx
	cmpl	%r13d, %ecx
	jl	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	12(%rax), %edx
	cmpl	%r15d, %edx
	jl	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	(%rdx,%r13), %esi
	movslq	%esi, %rsi
	movq	_MM_MAX_PAGE@GOTPCREL(%rip), %rdi
	cmpq	%rsi, (%rdi)
	cmovgl	%edx, %r15d
	cmovgl	%ecx, %r12d
	jmp	LBB0_5
LBB0_1:
                                        ## implicit-def: $r12d
LBB0_2:
	addl	%r12d, %r15d
	movq	_MM_MAX_PAGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r15d, %edi
	callq	_min
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	subl	%r14d, %eax
	movslq	%eax, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TRACE
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MM_PAGE_SIZE,4,2               ## @MM_PAGE_SIZE
	.comm	_LoaderFree,8,3                 ## @LoaderFree
	.comm	_MM_MAX_PAGE,8,3                ## @MM_MAX_PAGE
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MmFindLocationForPageLookupTable() returning 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MmFindLocationForPageLookupTable ; -- Begin function MmFindLocationForPageLookupTable
	.p2align	2
_MmFindLocationForPageLookupTable:      ; @MmFindLocationForPageLookupTable
	.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
	lsl	w19, w0, #2
Lloh0:
	adrp	x8, _MM_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MM_PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	mov	x0, #0
	bl	_ArcGetMemoryDescriptor
Lloh3:
	adrp	x20, _MM_MAX_PAGE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MM_MAX_PAGE@GOTPAGEOFF]
	mov	w21, #0
	cbz	x0, LBB0_7
; %bb.1:
Lloh5:
	adrp	x23, _LoaderFree@GOTPAGE
Lloh6:
	ldr	x23, [x23, _LoaderFree@GOTPAGEOFF]
                                        ; implicit-def: $w22
	sdiv	w24, w19, w24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_ArcGetMemoryDescriptor
	cbz	x0, LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x0, #8]
	cmp	w8, w24
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x0, #12]
	cmp	w9, w21
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w10, w9, w24
	ldr	x11, [x20]
	cmp	x11, w10, sxtw
	csel	w21, w9, w21, gt
	csel	w22, w8, w22, gt
	b	LBB0_2
LBB0_7:
                                        ; implicit-def: $w22
LBB0_8:
	add	w0, w22, w21
	ldr	x1, [x20]
	bl	_min
Lloh7:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w9, w19
	madd	w8, w8, w0, w9
	sxtw	x19, w8
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_TRACE
	mov	x0, x19
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MM_PAGE_SIZE,4,2               ; @MM_PAGE_SIZE
	.comm	_LoaderFree,8,3                 ; @LoaderFree
	.comm	_MM_MAX_PAGE,8,3                ; @MM_MAX_PAGE
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MmFindLocationForPageLookupTable() returning 0x%x\n"

.subsections_via_symbols
