	.file	"extr_vmm_api.c_xh_vcpu_reset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	xh_vcpu_reset
	.type	xh_vcpu_reset, @function
xh_vcpu_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, DWORD PTR VM_REG_GUEST_RFLAGS[rip]
	xor	eax, eax
	mov	edx, 2
	mov	ebp, edi
	call	xh_vm_set_register@PLT
	test	eax, eax
	je	.L5
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	esi, DWORD PTR VM_REG_GUEST_RIP[rip]
	mov	edx, 65520
	mov	edi, ebp
	call	xh_vm_set_register@PLT
	test	eax, eax
	jne	.L1
	mov	edx, DWORD PTR CR0_NE[rip]
	mov	esi, DWORD PTR VM_REG_GUEST_CR0[rip]
	mov	edi, ebp
	call	xh_vm_set_register@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_CR3[rip]
	xor	edx, edx
	mov	edi, ebp
	call	xh_vm_set_register@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_CR4[rip]
	xor	edx, edx
	mov	edi, ebp
	call	xh_vm_set_register@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_CS[rip]
	mov	edx, 61440
	mov	edi, ebp
	call	xh_vm_set_register@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_SS[rip]
	xor	edx, edx
	mov	edi, ebp
	call	xh_vm_set_register@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_DS[rip]
	xor	edx, edx
	mov	edi, ebp
	call	xh_vm_set_register@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_ES[rip]
	xor	edx, edx
	mov	edi, ebp
	call	xh_vm_set_register@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_FS[rip]
	xor	edx, edx
	mov	edi, ebp
	call	xh_vm_set_register@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_GS[rip]
	xor	edx, edx
	mov	edi, ebp
	call	xh_vm_set_register@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_RAX[rip]
	xor	edx, edx
	mov	edi, ebp
	call	xh_vm_set_register@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_RBX[rip]
	xor	edx, edx
	mov	edi, ebp
	call	xh_vm_set_register@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_RCX[rip]
	xor	edx, edx
	mov	edi, ebp
	call	xh_vm_set_register@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_RDX[rip]
	mov	edx, 3840
	mov	edi, ebp
	call	xh_vm_set_register@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_RSI[rip]
	xor	edx, edx
	mov	edi, ebp
	call	xh_vm_set_register@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_RDI[rip]
	xor	edx, edx
	mov	edi, ebp
	call	xh_vm_set_register@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_RBP[rip]
	xor	edx, edx
	mov	edi, ebp
	call	xh_vm_set_register@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_RSP[rip]
	xor	edx, edx
	mov	edi, ebp
	call	xh_vm_set_register@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_TR[rip]
	xor	edx, edx
	mov	edi, ebp
	call	xh_vm_set_register@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_LDTR[rip]
	xor	edx, edx
	mov	edi, ebp
	call	xh_vm_set_register@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_CS[rip]
	mov	r8d, 147
	mov	ecx, 65535
	mov	edi, ebp
	mov	edx, -65536
	call	xh_vm_set_desc@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_SS[rip]
	xor	edx, edx
	mov	r8d, 147
	mov	edi, ebp
	mov	ecx, 65535
	call	xh_vm_set_desc@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_DS[rip]
	xor	edx, edx
	mov	r8d, 147
	mov	edi, ebp
	mov	ecx, 65535
	call	xh_vm_set_desc@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_ES[rip]
	xor	edx, edx
	mov	r8d, 147
	mov	edi, ebp
	mov	ecx, 65535
	call	xh_vm_set_desc@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_FS[rip]
	xor	edx, edx
	mov	r8d, 147
	mov	edi, ebp
	mov	ecx, 65535
	call	xh_vm_set_desc@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_GS[rip]
	xor	edx, edx
	mov	r8d, 147
	mov	edi, ebp
	mov	ecx, 65535
	call	xh_vm_set_desc@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_GDTR[rip]
	xor	r8d, r8d
	xor	edx, edx
	mov	ecx, 65535
	mov	edi, ebp
	call	xh_vm_set_desc@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_IDTR[rip]
	xor	r8d, r8d
	xor	edx, edx
	mov	ecx, 65535
	mov	edi, ebp
	call	xh_vm_set_desc@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_TR[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	r8d, 139
	mov	edi, ebp
	call	xh_vm_set_desc@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR VM_REG_GUEST_LDTR[rip]
	mov	edi, ebp
	mov	r8d, 130
	xor	edx, edx
	mov	ecx, 65535
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	xh_vm_set_desc@PLT
	.cfi_endproc
.LFE0:
	.size	xh_vcpu_reset, .-xh_vcpu_reset
	.comm	VM_REG_GUEST_TR,4,4
	.comm	VM_REG_GUEST_SS,4,4
	.comm	VM_REG_GUEST_RSP,4,4
	.comm	VM_REG_GUEST_RSI,4,4
	.comm	VM_REG_GUEST_RIP,4,4
	.comm	VM_REG_GUEST_RFLAGS,4,4
	.comm	VM_REG_GUEST_RDX,4,4
	.comm	VM_REG_GUEST_RDI,4,4
	.comm	VM_REG_GUEST_RCX,4,4
	.comm	VM_REG_GUEST_RBX,4,4
	.comm	VM_REG_GUEST_RBP,4,4
	.comm	VM_REG_GUEST_RAX,4,4
	.comm	VM_REG_GUEST_LDTR,4,4
	.comm	VM_REG_GUEST_IDTR,4,4
	.comm	VM_REG_GUEST_GS,4,4
	.comm	VM_REG_GUEST_GDTR,4,4
	.comm	VM_REG_GUEST_FS,4,4
	.comm	VM_REG_GUEST_ES,4,4
	.comm	VM_REG_GUEST_DS,4,4
	.comm	VM_REG_GUEST_CS,4,4
	.comm	VM_REG_GUEST_CR4,4,4
	.comm	VM_REG_GUEST_CR3,4,4
	.comm	VM_REG_GUEST_CR0,4,4
	.comm	CR0_NE,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_vmm_api.c_xh_vcpu_reset.c"
	.text
	.align	2
	.global	xh_vcpu_reset
	.syntax unified
	.arm
	.fpu softvfp
	.type	xh_vcpu_reset, %function
xh_vcpu_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L6
	mov	r2, #2
	ldr	r1, [r3]
	sub	sp, sp, #12
	mov	r4, r0
	bl	xh_vm_set_register
	cmp	r0, #0
	beq	.L5
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	ldr	r3, .L6+4
	mov	r0, r4
	ldr	r2, .L6+8
	ldr	r1, [r3]
	bl	xh_vm_set_register
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L6+12
	ldr	r2, .L6+16
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	xh_vm_set_register
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L6+20
	mov	r2, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	xh_vm_set_register
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L6+24
	mov	r2, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	xh_vm_set_register
	cmp	r0, #0
	bne	.L1
	ldr	r5, .L6+28
	mov	r2, #61440
	mov	r0, r4
	ldr	r1, [r5]
	bl	xh_vm_set_register
	cmp	r0, #0
	bne	.L1
	ldr	r6, .L6+32
	mov	r2, r0
	ldr	r1, [r6]
	mov	r0, r4
	bl	xh_vm_set_register
	cmp	r0, #0
	bne	.L1
	ldr	r7, .L6+36
	mov	r2, r0
	ldr	r1, [r7]
	mov	r0, r4
	bl	xh_vm_set_register
	cmp	r0, #0
	bne	.L1
	ldr	r9, .L6+40
	mov	r2, r0
	ldr	r1, [r9]
	mov	r0, r4
	bl	xh_vm_set_register
	cmp	r0, #0
	bne	.L1
	ldr	fp, .L6+44
	mov	r2, r0
	ldr	r1, [fp]
	mov	r0, r4
	bl	xh_vm_set_register
	cmp	r0, #0
	bne	.L1
	ldr	r10, .L6+48
	mov	r2, #0
	mov	r0, r4
	ldr	r1, [r10]
	bl	xh_vm_set_register
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L6+52
	mov	r2, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	xh_vm_set_register
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L6+56
	mov	r2, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	xh_vm_set_register
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L6+60
	mov	r2, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	xh_vm_set_register
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L6+64
	mov	r2, #3840
	mov	r0, r4
	ldr	r1, [r3]
	bl	xh_vm_set_register
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L6+68
	mov	r2, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	xh_vm_set_register
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L6+72
	mov	r2, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	xh_vm_set_register
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L6+76
	mov	r2, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	xh_vm_set_register
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L6+80
	mov	r2, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	xh_vm_set_register
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L6+84
	mov	r2, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	xh_vm_set_register
	cmp	r0, #0
	bne	.L1
	ldr	r1, .L6+88
	mov	r2, #0
	mov	r0, r4
	ldr	r1, [r1]
	bl	xh_vm_set_register
	cmp	r0, #0
	bne	.L1
	mov	r8, #147
	mov	r0, r4
	ldr	r1, [r5]
	ldr	r3, .L6+92
	ldr	r2, .L6+96
	str	r8, [sp]
	bl	xh_vm_set_desc
	cmp	r0, #0
	bne	.L1
	mov	r2, r0
	ldr	r1, [r6]
	mov	r0, r4
	ldr	r3, .L6+92
	str	r8, [sp]
	bl	xh_vm_set_desc
	cmp	r0, #0
	bne	.L1
	mov	r2, r0
	ldr	r1, [r7]
	mov	r0, r4
	ldr	r3, .L6+92
	str	r8, [sp]
	bl	xh_vm_set_desc
	cmp	r0, #0
	bne	.L1
	mov	r2, r0
	ldr	r1, [r9]
	mov	r0, r4
	ldr	r3, .L6+92
	str	r8, [sp]
	bl	xh_vm_set_desc
	cmp	r0, #0
	bne	.L1
	mov	r2, r0
	ldr	r1, [fp]
	mov	r0, r4
	ldr	r3, .L6+92
	str	r8, [sp]
	bl	xh_vm_set_desc
	cmp	r0, #0
	bne	.L1
	mov	r2, r0
	ldr	r1, [r10]
	mov	r0, r4
	ldr	r3, .L6+92
	str	r8, [sp]
	bl	xh_vm_set_desc
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L6+100
	str	r0, [sp]
	mov	r2, r0
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r3, .L6+92
	bl	xh_vm_set_desc
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L6+104
	str	r0, [sp]
	mov	r2, r0
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r3, .L6+92
	bl	xh_vm_set_desc
	cmp	r0, #0
	bne	.L1
	mov	r3, #139
	ldr	r2, .L6+84
	ldr	r1, [r2]
	mov	r2, r0
	str	r3, [sp]
	mov	r3, r0
	mov	r0, r4
	bl	xh_vm_set_desc
	cmp	r0, #0
	bne	.L1
	mov	r3, #130
	ldr	r1, .L6+88
	mov	r0, r4
	ldr	r1, [r1]
	mov	r2, #0
	str	r3, [sp]
	ldr	r3, .L6+92
	bl	xh_vm_set_desc
	b	.L1
.L7:
	.align	2
.L6:
	.word	VM_REG_GUEST_RFLAGS
	.word	VM_REG_GUEST_RIP
	.word	65520
	.word	VM_REG_GUEST_CR0
	.word	CR0_NE
	.word	VM_REG_GUEST_CR3
	.word	VM_REG_GUEST_CR4
	.word	VM_REG_GUEST_CS
	.word	VM_REG_GUEST_SS
	.word	VM_REG_GUEST_DS
	.word	VM_REG_GUEST_ES
	.word	VM_REG_GUEST_FS
	.word	VM_REG_GUEST_GS
	.word	VM_REG_GUEST_RAX
	.word	VM_REG_GUEST_RBX
	.word	VM_REG_GUEST_RCX
	.word	VM_REG_GUEST_RDX
	.word	VM_REG_GUEST_RSI
	.word	VM_REG_GUEST_RDI
	.word	VM_REG_GUEST_RBP
	.word	VM_REG_GUEST_RSP
	.word	VM_REG_GUEST_TR
	.word	VM_REG_GUEST_LDTR
	.word	65535
	.word	-65536
	.word	VM_REG_GUEST_GDTR
	.word	VM_REG_GUEST_IDTR
	.size	xh_vcpu_reset, .-xh_vcpu_reset
	.comm	VM_REG_GUEST_TR,4,4
	.comm	VM_REG_GUEST_SS,4,4
	.comm	VM_REG_GUEST_RSP,4,4
	.comm	VM_REG_GUEST_RSI,4,4
	.comm	VM_REG_GUEST_RIP,4,4
	.comm	VM_REG_GUEST_RFLAGS,4,4
	.comm	VM_REG_GUEST_RDX,4,4
	.comm	VM_REG_GUEST_RDI,4,4
	.comm	VM_REG_GUEST_RCX,4,4
	.comm	VM_REG_GUEST_RBX,4,4
	.comm	VM_REG_GUEST_RBP,4,4
	.comm	VM_REG_GUEST_RAX,4,4
	.comm	VM_REG_GUEST_LDTR,4,4
	.comm	VM_REG_GUEST_IDTR,4,4
	.comm	VM_REG_GUEST_GS,4,4
	.comm	VM_REG_GUEST_GDTR,4,4
	.comm	VM_REG_GUEST_FS,4,4
	.comm	VM_REG_GUEST_ES,4,4
	.comm	VM_REG_GUEST_DS,4,4
	.comm	VM_REG_GUEST_CS,4,4
	.comm	VM_REG_GUEST_CR4,4,4
	.comm	VM_REG_GUEST_CR3,4,4
	.comm	VM_REG_GUEST_CR0,4,4
	.comm	CR0_NE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
