	.file	"extr_hash_native_64.c_native_hpte_find.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	native_hpte_find, @function
native_hpte_find:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR mmu_psize_defs[rip]
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edx
	movsx	rdx, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	esi, DWORD PTR [rax+rdx*4]
	mov	edx, r14d
	call	hpt_hash@PLT
	mov	esi, r13d
	mov	edx, r14d
	mov	rdi, rbp
	mov	r12, rax
	call	hpte_encode_v@PLT
	and	r12, QWORD PTR htab_hash_mask[rip]
	mov	r13, rax
	mov	rax, QWORD PTR HPTES_PER_GROUP[rip]
	imul	r12, rax
	test	rax, rax
	je	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR htab_address[rip]
	mov	rsi, r13
	mov	rbp, QWORD PTR [rax+r12*8]
	mov	rdi, rbp
	call	HPTE_V_COMPARE@PLT
	test	rax, rax
	je	.L3
	test	QWORD PTR HPTE_V_VALID[rip], rbp
	jne	.L1
.L3:
	add	r12, 1
	add	rbx, 1
	cmp	QWORD PTR HPTES_PER_GROUP[rip], rbx
	ja	.L5
.L2:
	mov	r12, -1
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	native_hpte_find, .-native_hpte_find
	.comm	mmu_psize_defs,8,8
	.comm	htab_hash_mask,8,8
	.comm	htab_address,8,8
	.comm	HPTE_V_VALID,8,8
	.comm	HPTES_PER_GROUP,8,8
	.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_64.c_native_hpte_find.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	native_hpte_find, %function
native_hpte_find:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L15
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, [r3]
	mov	r5, r1
	ldr	r1, [r3, r1, lsl #2]
	mov	r6, r0
	mov	r7, r2
	bl	hpt_hash
	mov	r4, r0
	mov	r2, r7
	mov	r1, r5
	mov	r0, r6
	bl	hpte_encode_v
	ldr	r9, .L15+4
	ldr	r3, .L15+8
	ldr	r2, [r3]
	ldr	r3, [r9]
	and	r4, r4, r2
	cmp	r3, #0
	mul	r4, r3, r4
	beq	.L2
	mov	r7, r0
	mov	r5, #0
	ldr	r10, .L15+12
	ldr	r8, .L15+16
.L5:
	ldr	r3, [r10]
	mov	r1, r7
	ldr	r6, [r3, r4, lsl #2]
	add	r5, r5, #1
	mov	r0, r6
	bl	HPTE_V_COMPARE
	cmp	r0, #0
	beq	.L3
	ldr	r3, [r8]
	tst	r6, r3
	bne	.L1
.L3:
	ldr	r3, [r9]
	add	r4, r4, #1
	cmp	r3, r5
	bhi	.L5
.L2:
	mvn	r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	.align	2
.L15:
	.word	mmu_psize_defs
	.word	HPTES_PER_GROUP
	.word	htab_hash_mask
	.word	htab_address
	.word	HPTE_V_VALID
	.size	native_hpte_find, .-native_hpte_find
	.comm	mmu_psize_defs,4,4
	.comm	htab_hash_mask,4,4
	.comm	htab_address,4,4
	.comm	HPTE_V_VALID,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
