	.file	"extr_kvm_util.c_addr_hva2gpa.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"No mapping to a guest physical address, hva: %p"
	.text
	.p2align 4
	.globl	addr_hva2gpa
	.type	addr_hva2gpa, @function
addr_hva2gpa:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rdi]
	mov	rdx, rsi
	test	rax, rax
	je	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rcx, QWORD PTR [rax]
	cmp	rcx, rdx
	ja	.L3
	movsx	rsi, DWORD PTR 8[rax]
	lea	rsi, -1[rcx+rsi]
	cmp	rdx, rsi
	jbe	.L14
.L3:
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	jne	.L5
.L2:
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	lea	rsi, .LC0[rip]
	xor	edi, edi
	call	TEST_ASSERT@PLT
	mov	eax, -1
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR 16[rax]
	sub	rdx, rcx
	add	edi, edx
	mov	eax, edi
	ret
	.cfi_endproc
.LFE0:
	.size	addr_hva2gpa, .-addr_hva2gpa
	.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_kvm_util.c_addr_hva2gpa.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No mapping to a guest physical address, hva: %p\000"
	.text
	.align	2
	.global	addr_hva2gpa
	.syntax unified
	.arm
	.fpu softvfp
	.type	addr_hva2gpa, %function
addr_hva2gpa:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	mov	r2, r1
	cmp	r3, #0
	push	{r4, lr}
	beq	.L2
.L5:
	ldr	lr, [r3]
	cmp	lr, r2
	bhi	.L3
	ldr	ip, [r3, #4]
	sub	ip, ip, #1
	add	ip, lr, ip
	cmp	r2, ip
	bls	.L12
.L3:
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L5
.L2:
	ldr	r1, .L13
	mov	r0, #0
	bl	TEST_ASSERT
	mvn	r0, #0
	pop	{r4, pc}
.L12:
	ldr	r0, [r3, #8]
	sub	r0, r0, lr
	add	r0, r2, r0
	pop	{r4, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.size	addr_hva2gpa, .-addr_hva2gpa
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
