	.file	"extr_mmu_oea64.c_moea64_remove.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	moea64_remove
	.type	moea64_remove, @function
moea64_remove:
.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
	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
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR 8[rsi], 0
	jne	.L16
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	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
.L16:
	.cfi_restore_state
	lea	rbx, 12[rsp]
	mov	r13, rsi
	mov	r12d, edi
	mov	QWORD PTR 16[rsp], rdx
	mov	rdi, rbx
	mov	r14, rcx
	call	SLIST_INIT@PLT
	mov	rdi, r13
	call	PMAP_LOCK@PLT
	mov	edi, DWORD PTR pvo_tree[rip]
	lea	rdx, 16[rsp]
	mov	rsi, r13
	call	RB_NFIND@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L3
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR pvo_tree[rip]
	mov	rdx, rbp
	mov	rsi, r13
	call	RB_NEXT@PLT
	mov	rsi, rbp
	mov	edi, r12d
	mov	r15, rax
	call	moea64_pvo_remove_from_pmap@PLT
	mov	edx, DWORD PTR pvo_dlink[rip]
	mov	rsi, rbp
	mov	rdi, rbx
	call	SLIST_INSERT_HEAD@PLT
	test	r15, r15
	je	.L5
	mov	rbp, r15
.L3:
	mov	rdi, rbp
	call	PVO_VADDR@PLT
	cmp	rax, r14
	jl	.L6
.L5:
	mov	rdi, r13
	call	PMAP_UNLOCK@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, rbx
	call	SLIST_FIRST@PLT
	mov	esi, DWORD PTR pvo_dlink[rip]
	mov	rdi, rbx
	mov	rbp, rax
	call	SLIST_REMOVE_HEAD@PLT
	mov	edi, r12d
	mov	rsi, rbp
	call	moea64_pvo_remove_from_page@PLT
	mov	rdi, rbp
	call	free_pvo_entry@PLT
.L4:
	mov	rdi, rbx
	call	SLIST_EMPTY@PLT
	test	eax, eax
	je	.L7
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	moea64_remove, .-moea64_remove
	.comm	pvo_tree,4,4
	.comm	pvo_dlink,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_mmu_oea64.c_moea64_remove.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	moea64_remove
	.syntax unified
	.arm
	.fpu softvfp
	.type	moea64_remove, %function
moea64_remove:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r1
	ldr	r1, [r1, #4]
	mov	r8, r3
	ldr	r3, .L18
	sub	sp, sp, #16
	cmp	r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bne	.L16
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	mov	r6, r0
	ldr	r9, .L18+4
	add	r0, sp, #8
	str	r2, [sp, #4]
	bl	SLIST_INIT
	mov	r0, r7
	bl	PMAP_LOCK
	mov	r1, r7
	ldr	r0, [r9]
	add	r2, sp, #4
	bl	RB_NFIND
	subs	r4, r0, #0
	beq	.L5
	ldr	r10, .L18+8
	b	.L3
.L6:
	mov	r2, r4
	mov	r1, r7
	ldr	r0, [r9]
	bl	RB_NEXT
	mov	r5, r0
	mov	r1, r4
	mov	r0, r6
	bl	moea64_pvo_remove_from_pmap
	mov	r1, r4
	ldr	r2, [r10]
	add	r0, sp, #8
	bl	SLIST_INSERT_HEAD
	cmp	r5, #0
	beq	.L5
	mov	r4, r5
.L3:
	mov	r0, r4
	bl	PVO_VADDR
	cmp	r0, r8
	blt	.L6
.L5:
	mov	r0, r7
	bl	PMAP_UNLOCK
	ldr	r5, .L18+8
	b	.L4
.L7:
	add	r0, sp, #8
	bl	SLIST_FIRST
	mov	r4, r0
	ldr	r1, [r5]
	add	r0, sp, #8
	bl	SLIST_REMOVE_HEAD
	mov	r1, r4
	mov	r0, r6
	bl	moea64_pvo_remove_from_page
	mov	r0, r4
	bl	free_pvo_entry
.L4:
	add	r0, sp, #8
	bl	SLIST_EMPTY
	cmp	r0, #0
	beq	.L7
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	pvo_tree
	.word	pvo_dlink
	.size	moea64_remove, .-moea64_remove
	.comm	pvo_tree,4,4
	.comm	pvo_dlink,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
