	.file	"extr_kvm_main.c_kvm_read_guest.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kvm_read_guest
	.type	kvm_read_guest, @function
kvm_read_guest:
.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
	mov	r14, rdi
	mov	edi, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	sar	r13d, cl
	call	offset_in_page@PLT
	mov	r15d, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r8d, r12d
	mov	ecx, r15d
	mov	rdx, rbp
	mov	esi, r13d
	mov	rdi, r14
	call	kvm_read_guest_page@PLT
	test	eax, eax
	js	.L5
	sub	rbx, r12
	add	rbp, r12
	add	r13d, 1
	xor	r15d, r15d
.L2:
	mov	esi, r15d
	mov	rdi, rbx
	call	next_segment@PLT
	movsx	r12, eax
	test	r12d, r12d
	jne	.L4
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L5:
	.cfi_restore_state
	mov	r12d, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	kvm_read_guest, .-kvm_read_guest
	.comm	PAGE_SHIFT,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_kvm_main.c_kvm_read_guest.c"
	.text
	.align	2
	.global	kvm_read_guest
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvm_read_guest, %function
kvm_read_guest:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	ip, .L8
	mov	r8, r0
	ldr	r5, [ip]
	mov	r0, r1
	sub	sp, sp, #12
	mov	r7, r2
	mov	r6, r3
	asr	r5, r1, r5
	bl	offset_in_page
	mov	r9, r0
	b	.L2
.L4:
	mov	r3, r9
	mov	r2, r7
	mov	r1, r5
	mov	r0, r8
	str	r4, [sp]
	bl	kvm_read_guest_page
	cmp	r0, #0
	blt	.L5
	mov	r9, #0
	add	r7, r7, r4
	add	r5, r5, #1
	sub	r6, r6, r4
.L2:
	mov	r1, r9
	mov	r0, r6
	bl	next_segment
	subs	r4, r0, #0
	bne	.L4
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	mov	r4, r0
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L9:
	.align	2
.L8:
	.word	PAGE_SHIFT
	.size	kvm_read_guest, .-kvm_read_guest
	.comm	PAGE_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
