	.file	"extr_pmap.c_pmap_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"hw.skz63_enable"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"SKZ63: skipping 4M RAM starting at physical 1G"
	.section	.rodata.str1.1
.LC2:
	.string	"page at %#lx already used\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"pmap_init: page table page is out of range"
	.align 8
.LC4:
	.string	"pmap_init: pmap_insert_pt_page failed"
	.section	.rodata.str1.1
.LC5:
	.string	"vm.pmap.pg_ps_enabled"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"pmap_init: can't assign to pagesizes[1]"
	.section	.rodata.str1.1
.LC7:
	.string	"pmap pv chunk list"
.LC8:
	.string	"qfrmlk"
	.section	.rodata.str1.8
	.align 8
.LC9:
	.string	"PPIM %u: PA=%#lx, VA=%#lx, size=%#lx, mode=%#x\n"
	.section	.rodata.str1.1
.LC10:
	.string	"qframe allocation failed"
	.section	.rodata.str1.8
	.align 8
.LC11:
	.string	"vm.pmap.large_map_pml4_entries"
	.align 8
.LC12:
	.string	"pmap: large map %u PML4 slots (%lu GB)\n"
	.section	.rodata.str1.1
.LC13:
	.string	"large"
.LC14:
	.string	"pmap: cannot create large map"
	.text
	.p2align 4
	.globl	pmap_init
	.type	pmap_init, @function
pmap_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	edi, edi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rsi, QWORD PTR bootverbose[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	vm_page_blacklist_add@PLT
	mov	rax, QWORD PTR VM_GUEST_NO[rip]
	cmp	QWORD PTR vm_guest[rip], rax
	je	.L2
.L5:
	xor	eax, eax
	xor	r12d, r12d
	call	pmap_allow_2m_x_ept_recalculate@PLT
	mov	rdi, QWORD PTR kernel_pmap[rip]
	call	PMAP_LOCK@PLT
	mov	r8d, DWORD PTR nkpt[rip]
	test	r8d, r8d
	jg	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	add	r12, 1
	cmp	DWORD PTR nkpt[rip], r12d
	jle	.L4
.L3:
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	edi, r12d
	mov	ebx, r12d
	sal	edi, cl
	movsx	rdi, edi
	add	rdi, QWORD PTR KPTphys[rip]
	call	PHYS_TO_VM_PAGE@PLT
	xor	edi, edi
	mov	rbp, rax
	mov	rax, QWORD PTR vm_page_array[rip]
	cmp	rax, rbp
	ja	.L12
	mov	rdx, QWORD PTR vm_page_array_size[rip]
	xor	edi, edi
	lea	rdx, [rdx+rdx*2]
	lea	rax, [rax+rdx*8]
	cmp	rbp, rax
	setb	dil
.L12:
	lea	rsi, .LC3[rip]
	call	KASSERT@PLT
	mov	edi, DWORD PTR KERNBASE[rip]
	call	pmap_pde_pindex@PLT
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	add	rax, r12
	mov	QWORD PTR 16[rbp], rax
	mov	eax, ebx
	sal	eax, cl
	mov	rcx, QWORD PTR PDRSHIFT[rip]
	cdqe
	add	rax, QWORD PTR KPTphys[rip]
	mov	DWORD PTR 0[rbp], 1
	sal	ebx, cl
	mov	QWORD PTR 8[rbp], rax
	movsx	rbx, ebx
	cmp	rbx, QWORD PTR KERNend[rip]
	jge	.L14
	mov	rdi, QWORD PTR kernel_pmap[rip]
	xor	edx, edx
	mov	rsi, rbp
	call	pmap_insert_pt_page@PLT
	test	rax, rax
	je	.L14
	lea	rdi, .LC4[rip]
	add	r12, 1
	call	panic@PLT
	cmp	DWORD PTR nkpt[rip], r12d
	jg	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, QWORD PTR kernel_pmap[rip]
	call	PMAP_UNLOCK@PLT
	mov	edi, DWORD PTR nkpt[rip]
	call	vm_wire_add@PLT
	mov	rax, QWORD PTR VM_GUEST_NO[rip]
	cmp	QWORD PTR vm_guest[rip], rax
	je	.L11
	mov	edx, DWORD PTR AMDID2_XOP[rip]
	mov	ecx, DWORD PTR cpu_feature[rip]
	or	edx, DWORD PTR AMDID2_FMA4[rip]
	and	ecx, DWORD PTR CPUID_SS[rip]
	and	edx, DWORD PTR amd_feature2[rip]
	mov	eax, DWORD PTR CPUID2_SSSE3[rip]
	or	edx, ecx
	or	eax, DWORD PTR CPUID2_SSE41[rip]
	or	eax, DWORD PTR CPUID2_AESNI[rip]
	or	eax, DWORD PTR CPUID2_AVX[rip]
	or	eax, DWORD PTR CPUID2_XSAVE[rip]
	and	eax, DWORD PTR cpu_feature2[rip]
	or	eax, edx
	je	.L54
.L11:
	lea	rsi, pg_ps_enabled[rip]
	lea	rdi, .LC5[rip]
	call	TUNABLE_INT_FETCH@PLT
	mov	esi, DWORD PTR pg_ps_enabled[rip]
	test	esi, esi
	je	.L16
	xor	edi, edi
	cmp	DWORD PTR MAXPAGESIZES[rip], 1
	jle	.L17
	mov	rax, QWORD PTR pagesizes[rip]
	xor	edi, edi
	cmp	QWORD PTR 8[rax], 0
	sete	dil
.L17:
	lea	rsi, .LC6[rip]
	call	KASSERT@PLT
	mov	rax, QWORD PTR pagesizes[rip]
	mov	rdx, QWORD PTR NBPDR[rip]
	mov	QWORD PTR 8[rax], rdx
.L16:
	mov	edx, DWORD PTR PMAP_MEMDOM[rip]
	xor	ebp, ebp
	lea	r12, .LC7[rip]
	test	edx, edx
	jle	.L21
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, QWORD PTR pv_chunks[rip]
	lea	rbx, 0[0+rbp*8]
	xor	edx, edx
	mov	rsi, r12
	mov	ecx, DWORD PTR MTX_DEF[rip]
	add	rbp, 1
	add	rdi, rbx
	add	rdi, 4
	call	mtx_init@PLT
	add	rbx, QWORD PTR pv_chunks[rip]
	mov	rdi, rbx
	call	TAILQ_INIT@PLT
	cmp	DWORD PTR PMAP_MEMDOM[rip], ebp
	jg	.L18
.L21:
	xor	eax, eax
	xor	ebp, ebp
	lea	r12, .LC9[rip]
	call	pmap_init_pv_table@PLT
	mov	ecx, DWORD PTR PMAP_PREINIT_MAPPING_COUNT[rip]
	mov	DWORD PTR pmap_initialized[rip], 1
	test	ecx, ecx
	jg	.L19
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L26:
	cmp	QWORD PTR bootverbose[rip], 0
	je	.L25
	mov	rdx, QWORD PTR 8[rbx]
	mov	r9d, DWORD PTR 24[rbx]
	mov	esi, r13d
	mov	rdi, r12
	mov	r8, QWORD PTR 16[rbx]
	mov	rcx, QWORD PTR [rbx]
	xor	eax, eax
	call	printf@PLT
.L25:
	add	rbp, 1
	cmp	DWORD PTR PMAP_PREINIT_MAPPING_COUNT[rip], ebp
	jle	.L20
.L19:
	mov	rbx, rbp
	mov	r13d, ebp
	sal	rbx, 5
	add	rbx, QWORD PTR pmap_preinit_mapping[rip]
	cmp	QWORD PTR [rbx], 0
	je	.L25
	mov	rdi, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR dmaplimit[rip]
	cmp	rdi, rax
	jge	.L26
	mov	r14, QWORD PTR 16[rbx]
	lea	rdx, [rdi+r14]
	cmp	rax, rdx
	jl	.L26
	mov	r15d, DWORD PTR 24[rbx]
	call	PHYS_TO_DMAP@PLT
	mov	rsi, r14
	mov	edi, eax
	mov	edx, r15d
	call	pmap_change_attr@PLT
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L20:
	mov	ecx, DWORD PTR MTX_SPIN[rip]
	xor	edx, edx
	lea	rsi, .LC8[rip]
	lea	rdi, qframe_mtx[rip]
	call	mtx_init@PLT
	mov	esi, DWORD PTR PAGE_SIZE[rip]
	mov	edi, DWORD PTR kernel_arena[rip]
	lea	rcx, qframe[rip]
	mov	edx, DWORD PTR M_BESTFIT[rip]
	or	edx, DWORD PTR M_WAITOK[rip]
	call	vmem_alloc@PLT
	test	eax, eax
	jne	.L55
.L23:
	lea	rsi, lm_ents[rip]
	lea	rdi, .LC11[rip]
	mov	DWORD PTR lm_ents[rip], 8
	call	TUNABLE_INT_FETCH@PLT
	mov	eax, DWORD PTR LMEPML4I[rip]
	mov	esi, DWORD PTR lm_ents[rip]
	sub	eax, DWORD PTR LMSPML4I[rip]
	add	eax, 1
	cmp	eax, esi
	jge	.L28
	mov	DWORD PTR lm_ents[rip], eax
	mov	esi, eax
.L28:
	cmp	QWORD PTR bootverbose[rip], 0
	jne	.L56
.L29:
	test	esi, esi
	jne	.L57
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L58
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR CPU_VENDOR_INTEL[rip]
	cmp	QWORD PTR cpu_vendor_id[rip], rax
	jne	.L5
	mov	edi, DWORD PTR cpu_id[rip]
	call	CPUID_TO_FAMILY@PLT
	cmp	eax, 6
	jne	.L5
	mov	edi, DWORD PTR cpu_id[rip]
	call	CPUID_TO_MODEL@PLT
	cmp	eax, 85
	jne	.L5
	lea	rdi, .LC0[rip]
	lea	rsi, 4[rsp]
	mov	DWORD PTR 4[rsp], 1
	call	TUNABLE_INT_FETCH@PLT
	mov	edi, DWORD PTR 4[rsp]
	test	edi, edi
	je	.L5
	cmp	QWORD PTR bootverbose[rip], 0
	jne	.L59
.L6:
	xor	ebx, ebx
	lea	rbp, .LC2[rip]
	jmp	.L8
.L7:
	add	ebx, 1
.L8:
	mov	edi, 4194304
	call	atop@PLT
	cmp	eax, ebx
	jle	.L5
	mov	r12, QWORD PTR FALSE[rip]
	mov	edi, ebx
	call	ptoa@PLT
	lea	rdi, 1073741824[rax]
	mov	rsi, r12
	call	vm_page_blacklist_add@PLT
	test	eax, eax
	jne	.L7
	cmp	QWORD PTR bootverbose[rip], 0
	je	.L7
	mov	edi, ebx
	call	ptoa@PLT
	mov	rdi, rbp
	lea	rsi, 1073741824[rax]
	xor	eax, eax
	call	printf@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L55:
	lea	rdi, .LC10[rip]
	call	panic@PLT
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L57:
	imul	esi, DWORD PTR NBPML4[rip]
	mov	r9d, DWORD PTR M_WAITOK[rip]
	xor	r8d, r8d
	lea	rdi, .LC13[rip]
	mov	ecx, DWORD PTR PAGE_SIZE[rip]
	mov	edx, esi
	mov	esi, DWORD PTR LARGEMAP_MIN_ADDRESS[rip]
	call	vmem_create@PLT
	mov	QWORD PTR large_vmem[rip], rax
	test	rax, rax
	je	.L60
	mov	eax, DWORD PTR lm_ents[rip]
	test	eax, eax
	jle	.L1
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L33:
	xor	eax, eax
	call	pmap_large_map_getptp_unlocked@PLT
	mov	edx, DWORD PTR X86_PG_V[rip]
	or	edx, DWORD PTR X86_PG_RW[rip]
	mov	rdi, rax
	or	edx, DWORD PTR X86_PG_A[rip]
	or	edx, DWORD PTR X86_PG_M[rip]
	or	edx, DWORD PTR pg_nx[rip]
	mov	ebx, edx
	call	VM_PAGE_TO_PHYS@PLT
	mov	rdx, QWORD PTR kernel_pmap[rip]
	mov	ecx, DWORD PTR LMSPML4I[rip]
	mov	rsi, QWORD PTR [rdx]
	add	ecx, ebp
	mov	edx, ebx
	add	ebp, 1
	or	edx, eax
	movsx	rcx, ecx
	mov	DWORD PTR [rsi+rcx*4], edx
	cmp	DWORD PTR lm_ents[rip], ebp
	jg	.L33
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L56:
	mov	eax, DWORD PTR NBPML4[rip]
	lea	rdi, .LC12[rip]
	test	eax, eax
	lea	edx, 1073741823[rax]
	cmovns	edx, eax
	xor	eax, eax
	sar	edx, 30
	imul	edx, esi
	call	printf@PLT
	mov	esi, DWORD PTR lm_ents[rip]
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L54:
	mov	DWORD PTR workaround_erratum383[rip], 1
	jmp	.L11
.L60:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	DWORD PTR lm_ents[rip], 0
	jmp	.L1
.L59:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L6
.L58:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pmap_init, .-pmap_init
	.comm	workaround_erratum383,4,4
	.comm	vm_page_array_size,8,8
	.comm	vm_page_array,8,8
	.comm	vm_guest,8,8
	.comm	qframe_mtx,4,4
	.comm	qframe,4,4
	.comm	pv_chunks,8,8
	.comm	pmap_preinit_mapping,8,8
	.comm	pmap_initialized,4,4
	.comm	pg_ps_enabled,4,4
	.comm	pg_nx,4,4
	.comm	pagesizes,8,8
	.comm	nkpt,4,4
	.comm	lm_ents,4,4
	.comm	large_vmem,8,8
	.comm	kernel_pmap,8,8
	.comm	kernel_arena,4,4
	.comm	dmaplimit,8,8
	.comm	cpu_vendor_id,8,8
	.comm	cpu_id,4,4
	.comm	cpu_feature2,4,4
	.comm	cpu_feature,4,4
	.comm	bootverbose,8,8
	.comm	amd_feature2,4,4
	.comm	X86_PG_V,4,4
	.comm	X86_PG_RW,4,4
	.comm	X86_PG_M,4,4
	.comm	X86_PG_A,4,4
	.comm	VM_GUEST_NO,8,8
	.comm	PMAP_PREINIT_MAPPING_COUNT,4,4
	.comm	PMAP_MEMDOM,4,4
	.comm	PDRSHIFT,8,8
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	NBPML4,4,4
	.comm	NBPDR,8,8
	.comm	M_WAITOK,4,4
	.comm	M_BESTFIT,4,4
	.comm	MTX_SPIN,4,4
	.comm	MTX_DEF,4,4
	.comm	MAXPAGESIZES,4,4
	.comm	LMSPML4I,4,4
	.comm	LMEPML4I,4,4
	.comm	LARGEMAP_MIN_ADDRESS,4,4
	.comm	KPTphys,8,8
	.comm	KERNend,8,8
	.comm	KERNBASE,4,4
	.comm	FALSE,8,8
	.comm	CPU_VENDOR_INTEL,8,8
	.comm	CPUID_SS,4,4
	.comm	CPUID2_XSAVE,4,4
	.comm	CPUID2_SSSE3,4,4
	.comm	CPUID2_SSE41,4,4
	.comm	CPUID2_AVX,4,4
	.comm	CPUID2_AESNI,4,4
	.comm	AMDID2_XOP,4,4
	.comm	AMDID2_FMA4,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_pmap.c_pmap_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"hw.skz63_enable\000"
	.align	2
.LC1:
	.ascii	"SKZ63: skipping 4M RAM starting at physical 1G\000"
	.align	2
.LC2:
	.ascii	"page at %#lx already used\012\000"
	.align	2
.LC3:
	.ascii	"pmap_init: page table page is out of range\000"
	.align	2
.LC4:
	.ascii	"pmap_init: pmap_insert_pt_page failed\000"
	.align	2
.LC5:
	.ascii	"vm.pmap.pg_ps_enabled\000"
	.align	2
.LC6:
	.ascii	"pmap_init: can't assign to pagesizes[1]\000"
	.align	2
.LC7:
	.ascii	"pmap pv chunk list\000"
	.align	2
.LC8:
	.ascii	"qfrmlk\000"
	.align	2
.LC9:
	.ascii	"PPIM %u: PA=%#lx, VA=%#lx, size=%#lx, mode=%#x\012\000"
	.align	2
.LC10:
	.ascii	"qframe allocation failed\000"
	.align	2
.LC11:
	.ascii	"vm.pmap.large_map_pml4_entries\000"
	.align	2
.LC12:
	.ascii	"pmap: large map %u PML4 slots (%lu GB)\012\000"
	.align	2
.LC13:
	.ascii	"large\000"
	.align	2
.LC14:
	.ascii	"pmap: cannot create large map\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pmap_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmap_init, %function
pmap_init:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L75
	sub	sp, sp, #28
	ldr	r1, [r3]
	ldr	r3, .L75+4
	mov	r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	vm_page_blacklist_add
	ldr	r3, .L75+8
	ldr	r2, [r3]
	ldr	r3, .L75+12
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L2
.L5:
	bl	pmap_allow_2m_x_ept_recalculate
	ldr	r3, .L75+16
	ldr	r6, .L75+20
	ldr	r0, [r3]
	bl	PMAP_LOCK
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L4
	mov	fp, #0
	ldr	r5, .L75+24
	ldr	r4, .L75+28
	ldr	r10, .L75+32
	ldr	r8, .L75+36
	ldr	r7, .L75+40
	b	.L3
.L14:
	ldr	r3, [r6]
	add	fp, fp, #1
	cmp	r3, fp
	ble	.L4
.L3:
	ldr	r3, [r4]
	ldr	r0, [r5]
	add	r0, r3, fp, lsl r0
	bl	PHYS_TO_VM_PAGE
	mov	r9, r0
	ldr	r3, .L75+44
	ldr	r0, [r3]
	cmp	r0, r9
	movhi	r0, #0
	bhi	.L12
	ldr	r3, .L75+48
	ldr	r3, [r3]
	add	r3, r3, r3, lsl #1
	add	r0, r0, r3, lsl #2
	cmp	r9, r0
	movcs	r0, #0
	movcc	r0, #1
.L12:
	mov	r1, r7
	bl	KASSERT
	ldr	r3, .L75+52
	ldr	r0, [r3]
	bl	pmap_pde_pindex
	mov	r2, #1
	ldr	r1, [r5]
	ldr	r3, [r4]
	ldr	ip, [r10]
	add	r3, r3, fp, lsl r1
	ldr	r1, [r8]
	add	r0, r0, fp
	cmp	r1, fp, lsl ip
	str	r0, [r9, #8]
	str	r3, [r9, #4]
	str	r2, [r9]
	ble	.L14
	ldr	r3, .L75+16
	mov	r1, r9
	mov	r2, #0
	ldr	r0, [r3]
	bl	pmap_insert_pt_page
	cmp	r0, #0
	beq	.L14
	ldr	r0, .L75+56
	bl	panic
	ldr	r3, [r6]
	add	fp, fp, #1
	cmp	r3, fp
	bgt	.L3
.L4:
	ldr	r3, .L75+16
	ldr	r0, [r3]
	bl	PMAP_UNLOCK
	ldr	r0, [r6]
	bl	vm_wire_add
	ldr	r3, .L75+8
	ldr	r2, [r3]
	ldr	r3, .L75+12
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L11
	ldr	r2, .L75+60
	ldr	r3, .L75+64
	ldr	r0, .L75+68
	ldr	ip, [r2]
	ldr	r3, [r3]
	ldr	r0, [r0]
	orr	r3, r3, ip
	ldr	r1, .L75+72
	ldr	r2, .L75+76
	ldr	ip, .L75+80
	orr	r3, r3, r0
	ldr	r0, .L75+84
	ldr	r1, [r1]
	ldr	ip, [ip]
	ldr	r2, [r2]
	ldr	r0, [r0]
	orr	r3, r3, r1
	orr	r2, r2, ip
	ldr	lr, .L75+88
	ldr	r1, .L75+92
	ldr	ip, .L75+96
	orr	r3, r3, r0
	ldr	r0, .L75+100
	ldr	lr, [lr]
	ldr	r1, [r1]
	ldr	ip, [ip]
	ldr	r0, [r0]
	and	r2, r2, lr
	and	r1, r1, ip
	and	r3, r3, r0
	orr	r2, r2, r1
	orrs	r3, r3, r2
	moveq	r2, #1
	ldreq	r3, .L75+104
	streq	r2, [r3]
.L11:
	ldr	r4, .L75+108
	ldr	r0, .L75+112
	mov	r1, r4
	bl	TUNABLE_INT_FETCH
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L75+116
	ldr	r1, .L75+120
	ldr	r3, [r3]
	cmp	r3, #1
	ldrgt	r4, .L75+124
	movle	r0, #0
	ldrgt	r3, [r4]
	ldrle	r4, .L75+124
	ldrgt	r0, [r3, #4]
	clzgt	r0, r0
	lsrgt	r0, r0, #5
	bl	KASSERT
	ldr	r2, .L75+128
	ldr	r3, [r4]
	ldr	r2, [r2]
	str	r2, [r3, #4]
.L16:
	ldr	r6, .L75+132
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L21
	mov	r4, #0
	ldr	r7, .L75+136
	ldr	r5, .L75+140
	ldr	r8, .L75+144
.L18:
	ldr	r0, [r5]
	mov	r2, #0
	add	r0, r0, r4, lsl #3
	mov	r1, r8
	ldr	r3, [r7]
	add	r0, r0, #4
	bl	mtx_init
	ldr	r0, [r5]
	lsl	r3, r4, #3
	add	r0, r0, r3
	bl	TAILQ_INIT
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L18
.L21:
	bl	pmap_init_pv_table
	mov	r1, #1
	ldr	r7, .L75+148
	ldr	r2, .L75+152
	ldr	r3, [r7]
	str	r1, [r2]
	cmp	r3, #0
	ble	.L20
	mov	r4, #0
	ldr	r8, .L75+156
	ldr	r10, .L75+160
	ldr	fp, .L75+164
	b	.L19
.L26:
	ldr	r3, .L75
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L25
	ldr	r1, [r6, #12]
	ldr	r3, [r5, r9]
	ldr	r2, [r6, #4]
	str	r1, [sp, #4]
	ldr	r1, [r6, #8]
	mov	r0, fp
	str	r1, [sp]
	mov	r1, r4
	bl	printf
.L25:
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L20
.L19:
	ldr	r5, [r8]
	lsl	r9, r4, #4
	ldr	r3, [r5, r4, lsl #4]
	add	r6, r5, r4, lsl #4
	cmp	r3, #0
	beq	.L25
	ldr	r0, [r6, #4]
	ldr	r3, [r10]
	cmp	r0, r3
	bge	.L26
	ldr	r2, [r6, #8]
	add	r2, r0, r2
	cmp	r3, r2
	blt	.L26
	bl	PHYS_TO_DMAP
	ldr	r2, [r6, #12]
	ldr	r1, [r6, #8]
	bl	pmap_change_attr
	b	.L26
.L20:
	ldr	r3, .L75+168
	mov	r2, #0
	ldr	r3, [r3]
	ldr	r1, .L75+172
	ldr	r0, .L75+176
	bl	mtx_init
	ldr	r7, .L75+180
	ldr	r3, .L75+184
	ldr	r2, [r7]
	ldr	r1, [r3]
	ldr	r6, .L75+188
	ldr	r3, .L75+192
	orr	r2, r1, r2
	ldr	r0, [r3]
	ldr	r1, [r6]
	ldr	r3, .L75+196
	bl	vmem_alloc
	cmp	r0, #0
	bne	.L69
.L23:
	mov	r3, #8
	ldr	r4, .L75+200
	ldr	r0, .L75+204
	mov	r1, r4
	str	r3, [r4]
	ldr	r5, .L75+208
	bl	TUNABLE_INT_FETCH
	ldr	r3, .L75+212
	ldr	r1, [r5]
	ldr	r3, [r3]
	ldr	r2, [r4]
	sub	r3, r3, r1
	add	r3, r3, #1
	cmp	r3, r2
	movlt	r2, r3
	strlt	r3, [r4]
	ldr	r3, .L75
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L70
.L29:
	cmp	r2, #0
	bne	.L71
.L1:
	ldr	r3, .L75+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L72
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r2, .L75+216
	ldr	r3, .L75+220
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L5
	ldr	r4, .L75+224
	ldr	r0, [r4]
	bl	CPUID_TO_FAMILY
	cmp	r0, #6
	bne	.L5
	ldr	r0, [r4]
	bl	CPUID_TO_MODEL
	cmp	r0, #85
	bne	.L5
	mov	r3, #1
	ldr	r0, .L75+228
	add	r1, sp, #16
	str	r3, [sp, #16]
	bl	TUNABLE_INT_FETCH
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L75
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L73
.L6:
	mov	r4, #0
	ldr	r6, .L75+232
	ldr	r5, .L75+236
	b	.L8
.L7:
	add	r4, r4, #1
.L8:
	mov	r0, #4194304
	bl	atop
	cmp	r0, r4
	ble	.L5
	mov	r0, r4
	bl	ptoa
	ldr	r1, [r6]
	add	r0, r0, #1073741824
	bl	vm_page_blacklist_add
	cmp	r0, #0
	bne	.L7
	ldr	r3, .L75
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	mov	r0, r4
	bl	ptoa
	mov	r1, r0
	mov	r0, r5
	add	r1, r1, #1073741824
	bl	printf
	b	.L7
.L71:
	mov	r8, #0
	ldr	r3, [r7]
	ldr	r1, .L75+240
	ldr	r0, [r1]
	str	r3, [sp, #4]
	ldr	r1, .L75+244
	ldr	r3, [r6]
	str	r8, [sp]
	mul	r2, r0, r2
	ldr	r1, [r1]
	ldr	r0, .L75+248
	bl	vmem_create
	ldr	r3, .L75+252
	cmp	r0, r8
	mov	r6, r0
	str	r0, [r3]
	beq	.L74
	ldr	r3, [r4]
	cmp	r3, #0
	ble	.L1
	mov	r3, r8
	ldr	r10, .L75+256
	ldr	r9, .L75+260
	ldr	r8, .L75+264
	ldr	r7, .L75+268
	ldr	r6, .L75+272
.L33:
	str	r3, [sp, #12]
	bl	pmap_large_map_getptp_unlocked
	ldr	r1, [r9]
	ldr	fp, [r10]
	ldr	r2, [r8]
	orr	fp, fp, r1
	ldr	r1, [r7]
	orr	fp, fp, r2
	ldr	r2, [r6]
	orr	fp, fp, r1
	orr	fp, fp, r2
	bl	VM_PAGE_TO_PHYS
	ldr	r3, .L75+16
	ldr	r2, [r5]
	ldr	r1, [r3]
	ldr	r3, [sp, #12]
	ldr	r1, [r1]
	add	r2, r3, r2
	orr	fp, fp, r0
	str	fp, [r1, r2, lsl #2]
	ldr	r2, [r4]
	add	r3, r3, #1
	cmp	r2, r3
	bgt	.L33
	b	.L1
.L70:
	ldr	r3, .L75+240
	mov	r1, r2
	ldr	r3, [r3]
	sub	r0, r3, #-1073741823
	cmp	r3, #0
	movlt	r3, r0
	asr	r3, r3, #30
	mul	r2, r3, r2
	ldr	r0, .L75+276
	bl	printf
	ldr	r2, [r4]
	b	.L29
.L69:
	ldr	r0, .L75+280
	bl	panic
	b	.L23
.L74:
	ldr	r0, .L75+284
	bl	puts
	str	r6, [r4]
	b	.L1
.L73:
	ldr	r0, .L75+288
	bl	puts
	b	.L6
.L72:
	bl	__stack_chk_fail
.L76:
	.align	2
.L75:
	.word	bootverbose
	.word	.LC15
	.word	vm_guest
	.word	VM_GUEST_NO
	.word	kernel_pmap
	.word	nkpt
	.word	PAGE_SHIFT
	.word	KPTphys
	.word	PDRSHIFT
	.word	KERNend
	.word	.LC3
	.word	vm_page_array
	.word	vm_page_array_size
	.word	KERNBASE
	.word	.LC4
	.word	CPUID2_SSE41
	.word	CPUID2_SSSE3
	.word	CPUID2_AESNI
	.word	CPUID2_AVX
	.word	AMDID2_XOP
	.word	AMDID2_FMA4
	.word	CPUID2_XSAVE
	.word	amd_feature2
	.word	cpu_feature
	.word	CPUID_SS
	.word	cpu_feature2
	.word	workaround_erratum383
	.word	pg_ps_enabled
	.word	.LC5
	.word	MAXPAGESIZES
	.word	.LC6
	.word	pagesizes
	.word	NBPDR
	.word	PMAP_MEMDOM
	.word	MTX_DEF
	.word	pv_chunks
	.word	.LC7
	.word	PMAP_PREINIT_MAPPING_COUNT
	.word	pmap_initialized
	.word	pmap_preinit_mapping
	.word	dmaplimit
	.word	.LC9
	.word	MTX_SPIN
	.word	.LC8
	.word	qframe_mtx
	.word	M_WAITOK
	.word	M_BESTFIT
	.word	PAGE_SIZE
	.word	kernel_arena
	.word	qframe
	.word	lm_ents
	.word	.LC11
	.word	LMSPML4I
	.word	LMEPML4I
	.word	cpu_vendor_id
	.word	CPU_VENDOR_INTEL
	.word	cpu_id
	.word	.LC0
	.word	FALSE
	.word	.LC2
	.word	NBPML4
	.word	LARGEMAP_MIN_ADDRESS
	.word	.LC13
	.word	large_vmem
	.word	X86_PG_V
	.word	X86_PG_RW
	.word	X86_PG_A
	.word	X86_PG_M
	.word	pg_nx
	.word	.LC12
	.word	.LC10
	.word	.LC14
	.word	.LC1
	.size	pmap_init, .-pmap_init
	.comm	workaround_erratum383,4,4
	.comm	vm_page_array_size,4,4
	.comm	vm_page_array,4,4
	.comm	vm_guest,4,4
	.comm	qframe_mtx,4,4
	.comm	qframe,4,4
	.comm	pv_chunks,4,4
	.comm	pmap_preinit_mapping,4,4
	.comm	pmap_initialized,4,4
	.comm	pg_ps_enabled,4,4
	.comm	pg_nx,4,4
	.comm	pagesizes,4,4
	.comm	nkpt,4,4
	.comm	lm_ents,4,4
	.comm	large_vmem,4,4
	.comm	kernel_pmap,4,4
	.comm	kernel_arena,4,4
	.comm	dmaplimit,4,4
	.comm	cpu_vendor_id,4,4
	.comm	cpu_id,4,4
	.comm	cpu_feature2,4,4
	.comm	cpu_feature,4,4
	.comm	bootverbose,4,4
	.comm	amd_feature2,4,4
	.comm	X86_PG_V,4,4
	.comm	X86_PG_RW,4,4
	.comm	X86_PG_M,4,4
	.comm	X86_PG_A,4,4
	.comm	VM_GUEST_NO,4,4
	.comm	PMAP_PREINIT_MAPPING_COUNT,4,4
	.comm	PMAP_MEMDOM,4,4
	.comm	PDRSHIFT,4,4
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	NBPML4,4,4
	.comm	NBPDR,4,4
	.comm	M_WAITOK,4,4
	.comm	M_BESTFIT,4,4
	.comm	MTX_SPIN,4,4
	.comm	MTX_DEF,4,4
	.comm	MAXPAGESIZES,4,4
	.comm	LMSPML4I,4,4
	.comm	LMEPML4I,4,4
	.comm	LARGEMAP_MIN_ADDRESS,4,4
	.comm	KPTphys,4,4
	.comm	KERNend,4,4
	.comm	KERNBASE,4,4
	.comm	FALSE,4,4
	.comm	CPU_VENDOR_INTEL,4,4
	.comm	CPUID_SS,4,4
	.comm	CPUID2_XSAVE,4,4
	.comm	CPUID2_SSSE3,4,4
	.comm	CPUID2_SSE41,4,4
	.comm	CPUID2_AVX,4,4
	.comm	CPUID2_AESNI,4,4
	.comm	AMDID2_XOP,4,4
	.comm	AMDID2_FMA4,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
