	.file	"extr_pmap.c_pmap_pinit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pmap_pinit
	.type	pmap_pinit, @function
pmap_pinit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	xor	edi, edi
	call	vm_wait@PLT
.L2:
	mov	edx, DWORD PTR VM_ALLOC_NORMAL[rip]
	mov	esi, -559038737
	xor	edi, edi
	or	edx, DWORD PTR VM_ALLOC_NOOBJ[rip]
	or	edx, DWORD PTR VM_ALLOC_WIRED[rip]
	or	edx, DWORD PTR VM_ALLOC_ZERO[rip]
	call	vm_page_alloc@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L3
	mov	rdi, rax
	call	VM_PAGE_TO_PHYS@PLT
	mov	edi, eax
	mov	r12d, eax
	call	PHYS_TO_DMAP@PLT
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	QWORD PTR 8[rbp], rax
	mov	rdi, rax
	mov	eax, DWORD PTR [rbx]
	sar	r12d, cl
	or	r12d, DWORD PTR SATP_MODE_SV39[rip]
	mov	DWORD PTR 0[rbp], r12d
	test	DWORD PTR PG_ZERO[rip], eax
	je	.L7
.L4:
	lea	rdi, 20[rbp]
	mov	esi, 4
	call	bzero@PLT
	lea	rdi, 16[rbp]
	call	CPU_ZERO@PLT
	mov	rax, QWORD PTR kernel_pmap[rip]
	mov	rdi, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR PAGE_SIZE[rip]
	mov	esi, DWORD PTR [rax]
	call	memcpy@PLT
	lea	rdi, allpmaps_lock[rip]
	call	mtx_lock@PLT
	mov	edx, DWORD PTR pm_list[rip]
	mov	rsi, rbp
	lea	rdi, allpmaps[rip]
	call	LIST_INSERT_HEAD@PLT
	lea	rdi, allpmaps_lock[rip]
	call	mtx_unlock@PLT
	lea	rdi, 4[rbp]
	call	vm_radix_init@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	call	pagezero@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	pmap_pinit, .-pmap_pinit
	.comm	pm_list,4,4
	.comm	kernel_pmap,8,8
	.comm	allpmaps_lock,4,4
	.comm	allpmaps,4,4
	.comm	VM_ALLOC_ZERO,4,4
	.comm	VM_ALLOC_WIRED,4,4
	.comm	VM_ALLOC_NORMAL,4,4
	.comm	VM_ALLOC_NOOBJ,4,4
	.comm	SATP_MODE_SV39,4,4
	.comm	PG_ZERO,4,4
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,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_pinit.c"
	.text
	.align	2
	.global	pmap_pinit
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmap_pinit, %function
pmap_pinit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r0
	ldr	r8, .L8
	ldr	r7, .L8+4
	ldr	r6, .L8+8
	ldr	r5, .L8+12
	ldr	r4, .L8+16
	b	.L2
.L3:
	bl	vm_wait
.L2:
	ldr	r2, [r7]
	ldr	r3, [r8]
	ldr	r1, [r6]
	orr	r3, r3, r2
	ldr	r2, [r5]
	orr	r3, r3, r1
	mov	r0, #0
	mov	r1, r4
	orr	r2, r3, r2
	bl	vm_page_alloc
	subs	r10, r0, #0
	beq	.L3
	bl	VM_PAGE_TO_PHYS
	mov	r4, r0
	bl	PHYS_TO_DMAP
	ldr	ip, .L8+20
	ldr	r3, .L8+24
	ldr	r2, .L8+28
	ldr	r1, [r10]
	ldr	ip, [ip]
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r4, asr ip
	tst	r1, r2
	str	r3, [r9]
	str	r0, [r9, #8]
	beq	.L7
.L4:
	mov	r1, #4
	add	r0, r9, #16
	bl	bzero
	add	r0, r9, #12
	bl	CPU_ZERO
	ldr	r3, .L8+32
	ldr	r2, .L8+36
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r3]
	ldr	r0, [r9, #8]
	bl	memcpy
	ldr	r0, .L8+40
	bl	mtx_lock
	ldr	r3, .L8+44
	mov	r1, r9
	ldr	r2, [r3]
	ldr	r0, .L8+48
	bl	LIST_INSERT_HEAD
	ldr	r0, .L8+40
	bl	mtx_unlock
	add	r0, r9, #4
	bl	vm_radix_init
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	bl	pagezero
	b	.L4
.L9:
	.align	2
.L8:
	.word	VM_ALLOC_NORMAL
	.word	VM_ALLOC_NOOBJ
	.word	VM_ALLOC_WIRED
	.word	VM_ALLOC_ZERO
	.word	-559038737
	.word	PAGE_SHIFT
	.word	SATP_MODE_SV39
	.word	PG_ZERO
	.word	kernel_pmap
	.word	PAGE_SIZE
	.word	allpmaps_lock
	.word	pm_list
	.word	allpmaps
	.size	pmap_pinit, .-pmap_pinit
	.comm	pm_list,4,4
	.comm	kernel_pmap,4,4
	.comm	allpmaps_lock,4,4
	.comm	allpmaps,4,4
	.comm	VM_ALLOC_ZERO,4,4
	.comm	VM_ALLOC_WIRED,4,4
	.comm	VM_ALLOC_NORMAL,4,4
	.comm	VM_ALLOC_NOOBJ,4,4
	.comm	SATP_MODE_SV39,4,4
	.comm	PG_ZERO,4,4
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
