	.file	"extr_processor.c_addr_gva2gpa.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Unsupported page size: 0x%x"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"No region mapping for vm virtual address 0x%lx"
	.align 8
.LC2:
	.string	"No page mapping for vm virtual address 0x%lx"
	.text
	.p2align 4
	.globl	addr_gva2gpa
	.type	addr_gva2gpa, @function
addr_gva2gpa:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, .LC1[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	edx, DWORD PTR [rdi]
	xor	edi, edi
	mov	ebx, 53
	cmp	edx, 4096
	sete	dil
	call	TEST_ASSERT@PLT
	mov	esi, DWORD PTR 4[r12]
	mov	rdi, r12
	call	addr_gpa2hva@PLT
.L2:
	mov	ecx, ebx
	mov	edx, ebp
	xor	edi, edi
	mov	rsi, r13
	sar	edx, cl
	and	edx, 2047
	lea	r14, [rax+rdx*4]
	mov	edx, ebp
	mov	eax, DWORD PTR [r14]
	test	DWORD PTR REGION_ENTRY_INVALID[rip], eax
	sete	dil
	sub	ebx, 11
	call	TEST_ASSERT@PLT
	mov	esi, DWORD PTR [r14]
	mov	rdi, r12
	and	esi, DWORD PTR REGION_ENTRY_ORIGIN[rip]
	call	addr_gpa2hva@PLT
	cmp	ebx, 9
	jne	.L2
	mov	edx, ebp
	xor	edi, edi
	lea	rsi, .LC2[rip]
	sar	edx, 12
	movzx	edx, dl
	lea	rbx, [rax+rdx*4]
	mov	edx, ebp
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR PAGE_INVALID[rip], eax
	sete	dil
	and	ebp, 4095
	call	TEST_ASSERT@PLT
	mov	eax, DWORD PTR [rbx]
	pop	rbx
	.cfi_def_cfa_offset 40
	and	eax, -4096
	or	eax, ebp
	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	addr_gva2gpa, .-addr_gva2gpa
	.comm	REGION_ENTRY_ORIGIN,4,4
	.comm	REGION_ENTRY_INVALID,4,4
	.comm	PAGE_INVALID,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_processor.c_addr_gva2gpa.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unsupported page size: 0x%x\000"
	.align	2
.LC1:
	.ascii	"No region mapping for vm virtual address 0x%lx\000"
	.align	2
.LC2:
	.ascii	"No page mapping for vm virtual address 0x%lx\000"
	.text
	.align	2
	.global	addr_gva2gpa
	.syntax unified
	.arm
	.fpu softvfp
	.type	addr_gva2gpa, %function
addr_gva2gpa:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	sub	r0, r2, #4096
	clz	r0, r0
	mov	r5, r1
	lsr	r0, r0, #5
	ldr	r1, .L6
	bl	TEST_ASSERT
	mov	r0, r7
	ldr	r1, [r7, #4]
	bl	addr_gpa2hva
	mov	r6, #53
	mov	r4, r0
	ldr	fp, .L6+4
	ldr	r10, .L6+8
	ldr	r8, .L6+12
.L2:
	ldr	r3, .L6+16
	ldr	r1, [fp]
	and	r9, r3, r5, asr r6
	ldr	r0, [r4, r9, lsl #2]
	mov	r2, r5
	tst	r0, r1
	moveq	r0, #1
	movne	r0, #0
	mov	r1, r8
	bl	TEST_ASSERT
	ldr	r1, [r4, r9, lsl #2]
	ldr	r3, [r10]
	mov	r0, r7
	and	r1, r1, r3
	bl	addr_gpa2hva
	sub	r6, r6, #11
	cmp	r6, #9
	mov	r4, r0
	bne	.L2
	asr	r6, r5, #12
	ldr	r3, .L6+20
	and	r6, r6, #255
	ldr	r1, [r0, r6, lsl #2]
	ldr	r3, [r3]
	mov	r2, r5
	tst	r1, r3
	moveq	r0, #1
	movne	r0, #0
	ldr	r1, .L6+24
	bl	TEST_ASSERT
	ldr	r0, [r4, r6, lsl #2]
	lsl	r5, r5, #20
	bic	r0, r0, #4080
	lsr	r5, r5, #20
	bic	r0, r0, #15
	orr	r0, r0, r5
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	REGION_ENTRY_INVALID
	.word	REGION_ENTRY_ORIGIN
	.word	.LC1
	.word	2047
	.word	PAGE_INVALID
	.word	.LC2
	.size	addr_gva2gpa, .-addr_gva2gpa
	.comm	REGION_ENTRY_ORIGIN,4,4
	.comm	REGION_ENTRY_INVALID,4,4
	.comm	PAGE_INVALID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
