	.file	"extr_hash_native.c_native_hpte_remove.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"    remove(group=%lx)\n"
	.text
	.p2align 4
	.type	native_hpte_remove, @function
native_hpte_remove:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rsi, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	DBG_LOW@PLT
	xor	eax, eax
	call	mftb@PLT
	and	eax, 7
	mov	ebx, eax
	mov	eax, DWORD PTR HPTES_PER_GROUP[rip]
	test	eax, eax
	jg	.L5
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR HPTES_PER_GROUP[rip]
	add	ebx, 1
	add	r12d, 1
	and	ebx, 7
	cmp	eax, r12d
	jle	.L2
.L5:
	mov	rdx, QWORD PTR htab_address[rip]
	movsx	rax, ebx
	add	rax, rbp
	lea	r13, [rdx+rax*8]
	mov	rdi, QWORD PTR 0[r13]
	call	be64_to_cpu@PLT
	test	QWORD PTR HPTE_V_VALID[rip], rax
	je	.L3
	test	QWORD PTR HPTE_V_BOLTED[rip], rax
	jne	.L3
	mov	rdi, r13
	call	native_lock_hpte@PLT
	mov	rdi, QWORD PTR 0[r13]
	call	be64_to_cpu@PLT
	test	QWORD PTR HPTE_V_VALID[rip], rax
	je	.L4
	test	QWORD PTR HPTE_V_BOLTED[rip], rax
	je	.L18
.L4:
	mov	rdi, r13
	call	native_unlock_hpte@PLT
	jmp	.L3
.L18:
	mov	eax, DWORD PTR HPTES_PER_GROUP[rip]
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	r12d, eax
	je	.L8
	mov	QWORD PTR 0[r13], 0
	movsx	rax, r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	mov	rax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	native_hpte_remove, .-native_hpte_remove
	.comm	htab_address,8,8
	.comm	HPTE_V_VALID,8,8
	.comm	HPTE_V_BOLTED,8,8
	.comm	HPTES_PER_GROUP,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_hash_native.c_native_hpte_remove.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"    remove(group=%lx)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	native_hpte_remove, %function
native_hpte_remove:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	ldr	r8, .L19
	sub	sp, sp, #12
	mov	r1, r6
	ldr	r0, .L19+4
	str	r3, [sp, #4]
	bl	DBG_LOW
	bl	mftb
	ldr	r2, [r8]
	ldr	r3, [sp, #4]
	cmp	r2, #0
	ble	.L7
	mov	r5, #0
	ldr	r7, .L19+8
	ldr	r10, .L19+12
	and	r4, r0, #7
	b	.L5
.L3:
	ldr	r2, [r8]
	add	r5, r5, #1
	add	r4, r4, #1
	cmp	r2, r5
	and	r4, r4, #7
	ble	.L2
.L5:
	ldr	r3, .L19+16
	add	r9, r4, r6
	ldr	fp, [r3]
	ldr	r0, [fp, r9, lsl #2]
	bl	be64_to_cpu
	ldr	r1, [r7]
	add	r3, fp, r9, lsl #2
	tst	r0, r1
	beq	.L3
	ldr	r1, [r10]
	tst	r0, r1
	bne	.L3
	mov	r0, r3
	str	r3, [sp, #4]
	bl	native_lock_hpte
	ldr	r0, [fp, r9, lsl #2]
	bl	be64_to_cpu
	ldr	r2, [r7]
	ldr	r3, [sp, #4]
	tst	r0, r2
	beq	.L4
	ldr	r2, [r10]
	tst	r0, r2
	beq	.L18
.L4:
	mov	r0, r3
	str	r3, [sp, #4]
	bl	native_unlock_hpte
	ldr	r3, [sp, #4]
	b	.L3
.L7:
	mov	r5, #0
.L2:
	cmp	r5, r2
	mvneq	r5, #0
	movne	r2, #0
	mov	r0, r5
	strne	r2, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	ldr	r2, [r8]
	b	.L2
.L20:
	.align	2
.L19:
	.word	HPTES_PER_GROUP
	.word	.LC0
	.word	HPTE_V_VALID
	.word	HPTE_V_BOLTED
	.word	htab_address
	.size	native_hpte_remove, .-native_hpte_remove
	.comm	htab_address,4,4
	.comm	HPTE_V_VALID,4,4
	.comm	HPTE_V_BOLTED,4,4
	.comm	HPTES_PER_GROUP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
