	.file	"extr_vmm_api.c_xh_vm_get_desc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	xh_vm_get_desc
	.type	xh_vm_get_desc, @function
xh_vm_get_desc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	mov	esi, 1
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, r8
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	vcpu_freeze@PLT
	mov	edi, DWORD PTR vm[rip]
	mov	edx, r12d
	mov	esi, ebp
	lea	rcx, 12[rsp]
	call	vm_get_seg_desc@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR 20[rsp]
	mov	DWORD PTR [r14], eax
	mov	eax, DWORD PTR 16[rsp]
	mov	DWORD PTR 0[r13], eax
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR [rbx], eax
.L2:
	xor	esi, esi
	mov	edi, ebp
	call	vcpu_freeze@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L6
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L6:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	xh_vm_get_desc, .-xh_vm_get_desc
	.comm	vm,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_vm_get_desc.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	xh_vm_get_desc
	.syntax unified
	.arm
	.fpu softvfp
	.type	xh_vm_get_desc, %function
xh_vm_get_desc:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r4, r0
	mov	r6, r3
	ldr	r3, .L7
	sub	sp, sp, #16
	mov	r1, #1
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r8, [sp, #40]
	bl	vcpu_freeze
	ldr	r0, .L7+4
	mov	r3, sp
	mov	r2, r5
	mov	r1, r4
	ldr	r0, [r0]
	bl	vm_get_seg_desc
	subs	r5, r0, #0
	ldmibeq	sp, {r2, r3}
	streq	r3, [r7]
	ldreq	r3, [sp]
	streq	r2, [r6]
	mov	r0, r4
	streq	r3, [r8]
	mov	r1, #0
	bl	vcpu_freeze
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L6
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	bl	__stack_chk_fail
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	vm
	.size	xh_vm_get_desc, .-xh_vm_get_desc
	.comm	vm,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
