	.file	"extr_x86.c_complete_emulated_mmio.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	complete_emulated_mmio, @function
complete_emulated_mmio:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR 40[rdi], 0
	mov	r13, QWORD PTR 56[rdi]
	sete	dil
	movzx	edi, dil
	call	BUG_ON@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, 8
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR 48[rbp]
	lea	rbx, [rax+rdx*4]
	mov	esi, DWORD PTR [rbx]
	call	min@PLT
	mov	rcx, QWORD PTR 32[rbp]
	mov	r12d, eax
	test	rcx, rcx
	je	.L14
.L2:
	mov	edx, DWORD PTR [rbx]
	mov	rax, QWORD PTR 0[rbp]
	cmp	edx, 8
	jg	.L3
	add	rax, 1
	add	rbx, 12
	mov	QWORD PTR 0[rbp], rax
.L4:
	cmp	QWORD PTR 8[rbp], rax
	ja	.L5
	mov	QWORD PTR 40[rbp], 0
	mov	eax, 1
	test	rcx, rcx
	je	.L15
	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
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR KVM_EXIT_MMIO[rip]
	mov	esi, DWORD PTR [rbx]
	mov	DWORD PTR 24[r13], eax
	mov	eax, DWORD PTR 8[rbx]
	mov	DWORD PTR 4[r13], eax
	test	rcx, rcx
	jne	.L16
.L7:
	mov	edi, 8
	call	min@PLT
	mov	DWORD PTR 8[r13], eax
	mov	rax, QWORD PTR 32[rbp]
	mov	QWORD PTR 16[r13], rax
	lea	rax, complete_emulated_mmio[rip]
	mov	QWORD PTR 24[rbp], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	sub	edx, r12d
	add	DWORD PTR 4[rbx], r12d
	add	DWORD PTR 8[rbx], r12d
	mov	DWORD PTR [rbx], edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR 0[r13]
	mov	edx, eax
	call	memcpy@PLT
	mov	rcx, QWORD PTR 32[rbp]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, 8
	call	min@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 0[r13]
	mov	edx, eax
	call	memcpy@PLT
	mov	esi, DWORD PTR [rbx]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	mov	DWORD PTR 16[rbp], 1
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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
	jmp	complete_emulated_io@PLT
	.cfi_endproc
.LFE0:
	.size	complete_emulated_mmio, .-complete_emulated_mmio
	.comm	KVM_EXIT_MMIO,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_x86.c_complete_emulated_mmio.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	complete_emulated_mmio, %function
complete_emulated_mmio:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r0, [r0, #20]
	ldr	r8, [r4, #28]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BUG_ON
	ldr	r5, [r4]
	ldr	r7, [r4, #24]
	add	r5, r5, r5, lsl #1
	lsl	r9, r5, #2
	mov	r0, #8
	ldr	r1, [r7, r9]
	bl	min
	ldr	ip, [r4, #16]
	mov	r6, r0
	cmp	ip, #0
	add	r5, r7, r5, lsl #2
	beq	.L14
.L2:
	ldr	r1, [r7, r9]
	ldr	r3, [r4]
	cmp	r1, #8
	bgt	.L3
	ldr	r2, [r4, #4]
	add	r3, r3, #1
	cmp	r2, r3
	str	r3, [r4]
	add	r5, r5, #12
	bhi	.L5
.L16:
	mov	r3, #0
	cmp	ip, r3
	str	r3, [r4, #20]
	beq	.L15
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	ldr	r2, [r5, #4]
	ldr	r0, [r5, #8]
	add	r2, r2, r6
	str	r2, [r5, #4]
	ldr	r2, [r4, #4]
	sub	r1, r1, r6
	add	r0, r0, r6
	cmp	r2, r3
	str	r0, [r5, #8]
	str	r1, [r7, r9]
	bls	.L16
.L5:
	ldr	r2, .L18
	ldr	r3, [r5, #8]
	ldr	r2, [r2]
	cmp	ip, #0
	ldr	r1, [r5]
	str	r2, [r8, #16]
	str	r3, [r8, #4]
	bne	.L17
.L7:
	mov	r0, #8
	bl	min
	ldr	r2, [r4, #16]
	ldr	r3, .L18+4
	str	r0, [r8, #8]
	str	r2, [r8, #12]
	mov	r0, #0
	str	r3, [r4, #12]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	mov	r2, r0
	ldr	r1, [r8]
	ldr	r0, [r5, #4]
	bl	memcpy
	ldr	ip, [r4, #16]
	b	.L2
.L17:
	mov	r0, #8
	ldr	r6, [r8]
	ldr	r7, [r5, #4]
	bl	min
	mov	r1, r7
	mov	r2, r0
	mov	r0, r6
	bl	memcpy
	ldr	r1, [r5]
	b	.L7
.L15:
	mov	r3, #1
	mov	r0, r4
	str	r3, [r4, #8]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	complete_emulated_io
.L19:
	.align	2
.L18:
	.word	KVM_EXIT_MMIO
	.word	complete_emulated_mmio
	.size	complete_emulated_mmio, .-complete_emulated_mmio
	.comm	KVM_EXIT_MMIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
