	.file	"extr_pmap.c_pmap_remove_ptes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pmap_remove_ptes, @function
pmap_remove_ptes:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r9
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	esi, DWORD PTR MA_OWNED[rip]
	mov	QWORD PTR 8[rsp], rcx
	mov	QWORD PTR 16[rsp], r8
	call	PMAP_LOCK_ASSERT@PLT
	mov	edi, r13d
	call	pmap_global_bit@PLT
	mov	rsi, r12
	mov	rdi, rbx
	mov	DWORD PTR 24[rsp], eax
	call	pmap_pde_to_pte@PLT
	cmp	rbp, r12
	je	.L8
	mov	r14, rbp
	mov	rdx, rbp
	mov	rbx, rax
	mov	rax, r15
	mov	rbp, r12
	mov	r15, r14
	mov	r12, rdx
	mov	r14, rax
	mov	DWORD PTR 28[rsp], 0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L20:
	cmp	r12, r15
	cmove	r15, rbp
.L5:
	mov	rax, QWORD PTR 8[rsp]
	mov	r8, QWORD PTR 16[rsp]
	mov	r9, r14
	mov	rdx, rbp
	mov	rsi, rbx
	mov	edi, r13d
	mov	ecx, DWORD PTR [rax]
	call	pmap_remove_pte@PLT
	test	rax, rax
	jne	.L17
.L4:
	add	rbp, QWORD PTR PAGE_SIZE[rip]
	add	rbx, 4
	cmp	r12, rbp
	je	.L18
.L7:
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L19
	test	DWORD PTR 24[rsp], eax
	jne	.L20
	mov	DWORD PTR 28[rsp], 1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	cmp	r12, r15
	je	.L9
	mov	rdx, rbp
	mov	rsi, r15
	mov	edi, r13d
	mov	r15, r12
	call	pmap_invalidate_range@PLT
	add	rbp, QWORD PTR PAGE_SIZE[rip]
	add	rbx, 4
	cmp	r12, rbp
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rax, r12
	mov	r14, r15
	mov	r12, rbp
	mov	rbp, rax
.L6:
	cmp	r14, rbp
	je	.L1
	mov	rdx, r12
	mov	rsi, r14
	mov	edi, r13d
	call	pmap_invalidate_range@PLT
.L1:
	mov	eax, DWORD PTR 28[rsp]
	add	rsp, 40
	.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
.L9:
	.cfi_restore_state
	mov	r15, r12
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rax, r12
	mov	r14, r15
	mov	r12, rbp
	add	r12, QWORD PTR PAGE_SIZE[rip]
	mov	rbp, rax
	jmp	.L6
.L8:
	mov	DWORD PTR 28[rsp], 0
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	pmap_remove_ptes, .-pmap_remove_ptes
	.comm	PAGE_SIZE,8,8
	.comm	MA_OWNED,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_remove_ptes.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmap_remove_ptes, %function
pmap_remove_ptes:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	mov	r5, r2
	ldr	r2, .L19
	mov	fp, r1
	sub	sp, sp, #20
	ldr	r1, [r2]
	mov	r9, r3
	bl	PMAP_LOCK_ASSERT
	mov	r0, r7
	bl	pmap_global_bit
	mov	r1, fp
	mov	r10, r0
	mov	r0, r9
	bl	pmap_pde_to_pte
	cmp	r5, fp
	beq	.L8
	mov	r3, #0
	mov	r4, r0
	mov	r6, r5
	ldr	r8, .L19+4
	str	r3, [sp, #12]
	b	.L7
.L3:
	tst	r3, r10
	moveq	r3, #1
	streq	r3, [sp, #12]
	beq	.L5
	cmp	r5, r6
	moveq	r6, fp
.L5:
	ldr	r3, [sp, #60]
	mov	r2, fp
	str	r3, [sp, #4]
	ldr	r3, [sp, #56]
	mov	r0, r7
	str	r3, [sp]
	ldr	r3, [r9]
	bl	pmap_remove_pte
	cmp	r0, #0
	bne	.L17
.L4:
	ldr	r3, [r8]
	add	fp, fp, r3
	cmp	r5, fp
	beq	.L6
.L7:
	mov	r1, r4
	ldr	r3, [r4], #4
	cmp	r3, #0
	bne	.L3
	cmp	r5, r6
	moveq	r6, r5
	beq	.L4
	mov	r1, r6
	mov	r2, fp
	mov	r0, r7
	bl	pmap_invalidate_range
	ldr	r3, [r8]
	mov	r6, r5
	add	fp, fp, r3
	cmp	r5, fp
	bne	.L7
.L6:
	cmp	r6, r5
	beq	.L1
.L18:
	mov	r2, fp
	mov	r1, r6
	mov	r0, r7
	bl	pmap_invalidate_range
.L1:
	ldr	r0, [sp, #12]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	ldr	r3, [r8]
	cmp	r6, r5
	add	fp, fp, r3
	bne	.L18
	b	.L1
.L8:
	mov	r3, #0
	str	r3, [sp, #12]
	b	.L1
.L20:
	.align	2
.L19:
	.word	MA_OWNED
	.word	PAGE_SIZE
	.size	pmap_remove_ptes, .-pmap_remove_ptes
	.comm	PAGE_SIZE,4,4
	.comm	MA_OWNED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
