	.file	"extr_pmap.c_pmap_pti_pte.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pmap_pti_pte, @function
pmap_pti_pte:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	mov	edi, DWORD PTR pti_obj[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	VM_OBJECT_ASSERT_WLOCKED@PLT
	mov	edi, ebp
	call	pmap_pti_pde@PLT
	mov	rbx, rax
	test	r12, r12
	je	.L2
	mov	DWORD PTR [r12], 1
	mov	rdi, rax
	call	pmap_pti_wire_pte@PLT
.L2:
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jne	.L3
	call	pmap_pti_alloc_page@PLT
	mov	edi, eax
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L4
	call	pmap_pti_free_page@PLT
	mov	eax, DWORD PTR [rbx]
.L3:
	xor	edi, edi
	test	DWORD PTR X86_PG_PS[rip], eax
	sete	dil
	call	MPASS@PLT
	mov	edi, DWORD PTR PAGE_MASK[rip]
	or	edi, DWORD PTR pg_nx[rip]
	not	edi
	and	edi, DWORD PTR [rbx]
.L5:
	call	PHYS_TO_DMAP@PLT
	mov	edi, ebp
	mov	rbx, rax
	call	pmap_pte_index@PLT
	cdqe
	lea	rax, [rbx+rax*4]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.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
	test	r12, r12
	je	.L5
	mov	DWORD PTR [r12], 0
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	pmap_pti_pte, .-pmap_pti_pte
	.comm	pti_obj,4,4
	.comm	pg_nx,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_pte.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmap_pti_pte, %function
pmap_pti_pte:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r3, .L15
	mov	r6, r1
	ldr	r0, [r3]
	bl	VM_OBJECT_ASSERT_WLOCKED
	mov	r0, r5
	bl	pmap_pti_pde
	cmp	r6, #0
	mov	r4, r0
	beq	.L2
	mov	r3, #1
	str	r3, [r6]
	bl	pmap_pti_wire_pte
.L2:
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L3
	bl	pmap_pti_alloc_page
	ldr	r7, [r4]
	cmp	r7, #0
	beq	.L4
	bl	pmap_pti_free_page
	ldr	r3, .L15+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	b	.L13
.L3:
	ldr	r2, .L15+4
	ldr	r2, [r2]
.L13:
	tst	r3, r2
	moveq	r0, #1
	movne	r0, #0
	bl	MPASS
	ldr	r3, .L15+8
	ldr	r2, .L15+12
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r0, [r4]
	orr	r3, r3, r2
	bic	r0, r0, r3
.L5:
	bl	PHYS_TO_DMAP
	mov	r4, r0
	mov	r0, r5
	bl	pmap_pte_index
	add	r0, r4, r0, lsl #2
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	bl	VM_PAGE_TO_PHYS
	ldr	r3, .L15+16
	ldr	r2, .L15+20
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r6, #0
	orr	r3, r3, r2
	orr	r3, r3, r0
	str	r3, [r4]
	strne	r7, [r6]
	b	.L5
.L16:
	.align	2
.L15:
	.word	pti_obj
	.word	X86_PG_PS
	.word	PAGE_MASK
	.word	pg_nx
	.word	X86_PG_RW
	.word	X86_PG_V
	.size	pmap_pti_pte, .-pmap_pti_pte
	.comm	pti_obj,4,4
	.comm	pg_nx,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
