	.file	"extr_pmap_x86_common.c_pmap_update_cache_attributes_locked.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"pmap_update_cache_attributes_locked: Missing PTE, pmap: %p, pn: 0x%x vaddr: 0x%llx kernel_pmap: %p"
	.text
	.p2align 4
	.globl	pmap_update_cache_attributes_locked
	.type	pmap_update_cache_attributes_locked, @function
pmap_update_cache_attributes_locked:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	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
	mov	ebx, edi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 12[rsp], edi
	call	IS_MANAGED_PAGE@PLT
	mov	edi, eax
	call	assert@PLT
	mov	eax, DWORD PTR PHYS_CACHEABILITY_MASK[rip]
	xor	edi, edi
	not	eax
	test	eax, r14d
	sete	dil
	call	assert@PLT
	test	DWORD PTR INTEL_PTE_NCACHE[rip], r14d
	mov	eax, DWORD PTR INTEL_EPT_NCACHE[rip]
	mov	edi, ebx
	cmove	eax, DWORD PTR INTEL_EPT_WB[rip]
	mov	DWORD PTR 8[rsp], eax
	call	pai_to_pvh@PLT
	mov	r13, QWORD PTR [rax]
	cmp	r13, QWORD PTR PMAP_NULL[rip]
	mov	QWORD PTR [rsp], rax
	je	.L1
	mov	rbp, rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR PHYS_CACHEABILITY_MASK[rip]
	mov	edx, r14d
	mov	rdi, r15
	call	pmap_update_pte@PLT
.L7:
	mov	rdx, QWORD PTR PAGE_SIZE[rip]
	mov	rsi, r12
	mov	rdi, r13
	add	rdx, r12
	call	PMAP_UPDATE_TLBS@PLT
	cmp	QWORD PTR [rsp], rbp
	je	.L1
	mov	r13, QWORD PTR 0[rbp]
.L8:
	mov	rdi, rbp
	call	PVE_VA@PLT
	mov	rdi, r13
	mov	rsi, rax
	mov	r12, rax
	call	pmap_pte@PLT
	mov	r15, rax
	test	rax, rax
	je	.L11
.L5:
	mov	rdi, r13
	call	is_ept_pmap@PLT
	mov	rdi, rbp
	mov	ebx, eax
	call	queue_next@PLT
	mov	rbp, rax
	test	ebx, ebx
	je	.L12
	mov	edx, DWORD PTR 8[rsp]
	mov	esi, DWORD PTR INTEL_EPT_CACHE_MASK[rip]
	mov	rdi, r15
	call	pmap_update_pte@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r8d, DWORD PTR kernel_pmap[rip]
	mov	edx, DWORD PTR 12[rsp]
	mov	rcx, r12
	mov	rsi, r13
	lea	rdi, .LC0[rip]
	call	panic@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 24
	.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
	.cfi_endproc
.LFE0:
	.size	pmap_update_cache_attributes_locked, .-pmap_update_cache_attributes_locked
	.comm	kernel_pmap,4,4
	.comm	PMAP_NULL,8,8
	.comm	PHYS_CACHEABILITY_MASK,4,4
	.comm	PAGE_SIZE,8,8
	.comm	INTEL_PTE_NCACHE,4,4
	.comm	INTEL_EPT_WB,4,4
	.comm	INTEL_EPT_NCACHE,4,4
	.comm	INTEL_EPT_CACHE_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_x86_common.c_pmap_update_cache_attributes_locked.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pmap_update_cache_attributes_locked: Missing PTE, p"
	.ascii	"map: %p, pn: 0x%x vaddr: 0x%llx kernel_pmap: %p\000"
	.text
	.align	2
	.global	pmap_update_cache_attributes_locked
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmap_update_cache_attributes_locked, %function
pmap_update_cache_attributes_locked:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r1
	sub	sp, sp, #20
	str	r0, [sp, #12]
	bl	IS_MANAGED_PAGE
	bl	assert
	ldr	r3, .L11
	ldr	r3, [r3]
	bics	r3, r9, r3
	moveq	r0, #1
	movne	r0, #0
	bl	assert
	ldr	r3, .L11+4
	ldr	r0, [sp, #12]
	ldr	r3, [r3]
	tst	r9, r3
	ldrne	r3, .L11+8
	ldreq	r3, .L11+12
	ldr	fp, [r3]
	bl	pai_to_pvh
	ldr	r3, .L11+16
	ldr	r7, [r0]
	ldr	r3, [r3]
	mov	r8, r0
	cmp	r7, r3
	beq	.L1
	mov	r4, r0
	ldr	r10, .L11+20
	b	.L8
.L5:
	mov	r0, r7
	bl	is_ept_pmap
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	queue_next
	cmp	r4, #0
	mov	r4, r0
	ldreq	r3, .L11
	ldrne	r3, .L11+24
	moveq	r2, r9
	movne	r2, fp
	ldr	r1, [r3]
	mov	r0, r6
	bl	pmap_update_pte
	ldr	r2, [r10]
	mov	r0, r7
	mov	r1, r5
	add	r2, r5, r2
	bl	PMAP_UPDATE_TLBS
	cmp	r8, r4
	beq	.L1
	ldr	r7, [r4]
.L8:
	mov	r0, r4
	bl	PVE_VA
	mov	r5, r0
	mov	r0, r7
	mov	r1, r5
	bl	pmap_pte
	subs	r6, r0, #0
	bne	.L5
	ldr	r3, .L11+28
	mov	r1, r7
	ldr	r2, [r3]
	ldr	r0, .L11+32
	str	r2, [sp]
	mov	r3, r5
	ldr	r2, [sp, #12]
	bl	panic
	b	.L5
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	.align	2
.L11:
	.word	PHYS_CACHEABILITY_MASK
	.word	INTEL_PTE_NCACHE
	.word	INTEL_EPT_NCACHE
	.word	INTEL_EPT_WB
	.word	PMAP_NULL
	.word	PAGE_SIZE
	.word	INTEL_EPT_CACHE_MASK
	.word	kernel_pmap
	.word	.LC0
	.size	pmap_update_cache_attributes_locked, .-pmap_update_cache_attributes_locked
	.comm	kernel_pmap,4,4
	.comm	PMAP_NULL,4,4
	.comm	PHYS_CACHEABILITY_MASK,4,4
	.comm	PAGE_SIZE,4,4
	.comm	INTEL_PTE_NCACHE,4,4
	.comm	INTEL_EPT_WB,4,4
	.comm	INTEL_EPT_NCACHE,4,4
	.comm	INTEL_EPT_CACHE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
