	.file	"extr_meminit.c_MmInitPageLookupTable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"MmInitPageLookupTable()\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Marking pages 0x%lx-0x%lx as type %s\n"
	.align 8
.LC2:
	.string	"Ignoring pages 0x%lx-0x%lx (%s)\n"
	.align 8
.LC3:
	.string	"Marking the page lookup table pages as reserved StartPage: 0x%x PageCount: 0x%x\n"
	.text
	.p2align 4
	.globl	MmInitPageLookupTable
	.type	MmInitPageLookupTable, @function
MmInitPageLookupTable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	lea	r13, .LC2[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	lea	rdi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	TRACE@PLT
	mov	ecx, DWORD PTR LoaderFirmwarePermanent[rip]
	mov	edx, ebx
	mov	rdi, r12
	mov	esi, DWORD PTR MmLowestPhysicalPage[rip]
	call	MmMarkPagesInLookupTable@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rbp
	call	ArcGetMemoryDescriptor@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L8
.L5:
	mov	eax, DWORD PTR 4[rbp]
	add	eax, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR 8[rbp]
	cmp	eax, ebx
	jg	.L3
	call	MmGetSystemMemoryMapTypeString@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR 4[rbp]
	lea	rdi, .LC1[rip]
	mov	ecx, eax
	xor	eax, eax
	add	edx, esi
	call	TRACE@PLT
	mov	ecx, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR 4[rbp]
	mov	rdi, r12
	mov	esi, DWORD PTR 0[rbp]
	call	MmMarkPagesInLookupTable@PLT
	mov	rdi, rbp
	call	ArcGetMemoryDescriptor@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L5
.L8:
	mov	rdi, r12
	call	MmGetPageNumberFromAddress@PLT
	mov	esi, DWORD PTR MM_PAGE_SIZE[rip]
	lea	edi, 0[0+rbx*4]
	mov	ebp, eax
	call	ROUND_UP@PLT
	lea	rdi, [rax+r12]
	call	MmGetPageNumberFromAddress@PLT
	mov	esi, ebp
	lea	rdi, .LC3[rip]
	sub	eax, ebp
	mov	r13d, eax
	mov	edx, eax
	xor	eax, eax
	call	TRACE@PLT
	mov	ecx, DWORD PTR LoaderFirmwareTemporary[rip]
	mov	edx, r13d
	mov	esi, ebp
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	MmMarkPagesInLookupTable@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	call	MmGetSystemMemoryMapTypeString@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR 4[rbp]
	mov	rdi, r13
	mov	ecx, eax
	xor	eax, eax
	add	edx, esi
	call	TRACE@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	MmInitPageLookupTable, .-MmInitPageLookupTable
	.comm	MmLowestPhysicalPage,4,4
	.comm	MM_PAGE_SIZE,4,4
	.comm	LoaderFirmwareTemporary,4,4
	.comm	LoaderFirmwarePermanent,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_meminit.c_MmInitPageLookupTable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"MmInitPageLookupTable()\012\000"
	.align	2
.LC1:
	.ascii	"Marking pages 0x%lx-0x%lx as type %s\012\000"
	.align	2
.LC2:
	.ascii	"Ignoring pages 0x%lx-0x%lx (%s)\012\000"
	.align	2
.LC3:
	.ascii	"Marking the page lookup table pages as reserved Sta"
	.ascii	"rtPage: 0x%x PageCount: 0x%x\012\000"
	.text
	.align	2
	.global	MmInitPageLookupTable
	.syntax unified
	.arm
	.fpu softvfp
	.type	MmInitPageLookupTable, %function
MmInitPageLookupTable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r1
	mov	r7, r0
	ldr	r0, .L9
	bl	TRACE
	ldr	r3, .L9+4
	ldr	r1, .L9+8
	mov	r2, r6
	mov	r0, r7
	ldr	r3, [r3]
	ldr	r1, [r1]
	bl	MmMarkPagesInLookupTable
	mov	r4, #0
	ldr	r9, .L9+12
	ldr	r8, .L9+16
.L2:
	mov	r0, r4
	bl	ArcGetMemoryDescriptor
	subs	r4, r0, #0
	beq	.L8
.L5:
	ldr	r10, [r4]
	ldr	r5, [r4, #4]
	ldr	r0, [r4, #8]
	add	r5, r10, r5
	cmp	r5, r6
	bgt	.L3
	bl	MmGetSystemMemoryMapTypeString
	mov	r2, r5
	mov	r3, r0
	mov	r1, r10
	mov	r0, r8
	bl	TRACE
	ldm	r4, {r1, r2, r3}
	mov	r0, r7
	bl	MmMarkPagesInLookupTable
	mov	r0, r4
	bl	ArcGetMemoryDescriptor
	subs	r4, r0, #0
	bne	.L5
.L8:
	mov	r0, r7
	bl	MmGetPageNumberFromAddress
	ldr	r3, .L9+20
	mov	r4, r0
	ldr	r1, [r3]
	lsl	r0, r6, #2
	bl	ROUND_UP
	add	r0, r0, r7
	bl	MmGetPageNumberFromAddress
	sub	r5, r0, r4
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L9+24
	bl	TRACE
	ldr	r3, .L9+28
	mov	r2, r5
	mov	r1, r4
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, [r3]
	b	MmMarkPagesInLookupTable
.L3:
	bl	MmGetSystemMemoryMapTypeString
	mov	r2, r5
	mov	r3, r0
	mov	r1, r10
	mov	r0, r9
	bl	TRACE
	b	.L2
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	LoaderFirmwarePermanent
	.word	MmLowestPhysicalPage
	.word	.LC2
	.word	.LC1
	.word	MM_PAGE_SIZE
	.word	.LC3
	.word	LoaderFirmwareTemporary
	.size	MmInitPageLookupTable, .-MmInitPageLookupTable
	.comm	MmLowestPhysicalPage,4,4
	.comm	MM_PAGE_SIZE,4,4
	.comm	LoaderFirmwareTemporary,4,4
	.comm	LoaderFirmwarePermanent,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
