	.file	"extr_pmap.c_pmap_pti_pde.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pmap_pti_pde, @function
pmap_pti_pde:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR pti_obj[rip]
	call	VM_OBJECT_ASSERT_WLOCKED@PLT
	mov	edi, ebp
	call	pmap_pti_pdpe@PLT
	mov	rbx, rax
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L2
	call	pmap_pti_alloc_page@PLT
	mov	edi, eax
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L3
	call	pmap_pti_free_page@PLT
	mov	eax, DWORD PTR [rbx]
.L2:
	xor	edi, edi
	test	DWORD PTR X86_PG_PS[rip], eax
	sete	dil
	call	MPASS@PLT
	mov	edi, DWORD PTR PAGE_MASK[rip]
	not	edi
	and	edi, DWORD PTR [rbx]
.L4:
	call	PHYS_TO_DMAP@PLT
	mov	edi, ebp
	mov	rbx, rax
	call	pmap_pde_index@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	cdqe
	lea	rax, [rbx+rax*4]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	call	VM_PAGE_TO_PHYS@PLT
	mov	edi, eax
	mov	eax, DWORD PTR X86_PG_RW[rip]
	or	eax, DWORD PTR X86_PG_V[rip]
	or	eax, edi
	mov	DWORD PTR [rbx], eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	pmap_pti_pde, .-pmap_pti_pde
	.comm	pti_obj,4,4
	.comm	X86_PG_V,4,4
	.comm	X86_PG_RW,4,4
	.comm	X86_PG_PS,4,4
	.comm	PAGE_MASK,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_pti_pde.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmap_pti_pde, %function
pmap_pti_pde:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r3, .L8
	ldr	r0, [r3]
	bl	VM_OBJECT_ASSERT_WLOCKED
	mov	r0, r5
	bl	pmap_pti_pdpe
	ldr	r3, [r0]
	mov	r4, r0
	cmp	r3, #0
	bne	.L2
	bl	pmap_pti_alloc_page
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L3
	bl	pmap_pti_free_page
	ldr	r3, .L8+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	b	.L6
.L2:
	ldr	r2, .L8+4
	ldr	r2, [r2]
.L6:
	tst	r3, r2
	moveq	r0, #1
	movne	r0, #0
	bl	MPASS
	ldr	r3, .L8+8
	ldr	r0, [r4]
	ldr	r3, [r3]
	bic	r0, r0, r3
.L4:
	bl	PHYS_TO_DMAP
	mov	r4, r0
	mov	r0, r5
	bl	pmap_pde_index
	add	r0, r4, r0, lsl #2
	pop	{r4, r5, r6, pc}
.L3:
	bl	VM_PAGE_TO_PHYS
	ldr	r3, .L8+12
	ldr	r2, .L8+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r2
	orr	r3, r3, r0
	str	r3, [r4]
	b	.L4
.L9:
	.align	2
.L8:
	.word	pti_obj
	.word	X86_PG_PS
	.word	PAGE_MASK
	.word	X86_PG_RW
	.word	X86_PG_V
	.size	pmap_pti_pde, .-pmap_pti_pde
	.comm	pti_obj,4,4
	.comm	X86_PG_V,4,4
	.comm	X86_PG_RW,4,4
	.comm	X86_PG_PS,4,4
	.comm	PAGE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
