	.file	"extr_processor.c_vcpu_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unknown guest mode, mode: 0x%x"
	.text
	.p2align 4
	.type	vcpu_setup, @function
vcpu_setup:
.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
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edx
	sub	rsp, 64
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	r14, rsp
	mov	rdx, r14
	call	vcpu_sregs_get@PLT
	mov	edx, r13d
	lea	rsi, 36[rsp]
	mov	ecx, ebx
	mov	QWORD PTR 40[rsp], 0
	mov	rdi, rbp
	call	kvm_setup_gdt@PLT
	mov	edx, DWORD PTR 0[rbp]
	cmp	edx, 128
	je	.L7
	lea	rsi, .LC0[rip]
	xor	edi, edi
	call	TEST_ASSERT@PLT
.L3:
	mov	eax, DWORD PTR 4[rbp]
	mov	rdx, r14
	mov	esi, r12d
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], eax
	call	vcpu_sregs_set@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	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
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR X86_CR0_PE[rip]
	or	eax, DWORD PTR X86_CR0_NE[rip]
	lea	rdi, 32[rsp]
	or	eax, DWORD PTR X86_CR0_PG[rip]
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR 4[rsp]
	or	eax, DWORD PTR X86_CR4_PAE[rip]
	or	eax, DWORD PTR X86_CR4_OSFXSR[rip]
	mov	DWORD PTR 4[rsp], eax
	mov	eax, DWORD PTR 8[rsp]
	or	eax, DWORD PTR EFER_LME[rip]
	or	eax, DWORD PTR EFER_LMA[rip]
	or	eax, DWORD PTR EFER_NX[rip]
	mov	DWORD PTR 8[rsp], eax
	call	kvm_seg_set_unusable@PLT
	lea	rdx, 28[rsp]
	mov	rdi, rbp
	mov	esi, 8
	call	kvm_seg_set_kernel_code_64bit@PLT
	lea	rdx, 24[rsp]
	mov	rdi, rbp
	mov	esi, 16
	call	kvm_seg_set_kernel_data_64bit@PLT
	lea	rdx, 20[rsp]
	mov	rdi, rbp
	mov	esi, 16
	call	kvm_seg_set_kernel_data_64bit@PLT
	lea	rsi, 16[rsp]
	mov	r8d, ebx
	mov	ecx, r13d
	mov	edx, 24
	mov	rdi, rbp
	call	kvm_setup_tss_64bit@PLT
	jmp	.L3
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vcpu_setup, .-vcpu_setup
	.comm	X86_CR4_PAE,4,4
	.comm	X86_CR4_OSFXSR,4,4
	.comm	X86_CR0_PG,4,4
	.comm	X86_CR0_PE,4,4
	.comm	X86_CR0_NE,4,4
	.comm	EFER_NX,4,4
	.comm	EFER_LME,4,4
	.comm	EFER_LMA,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_vcpu_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unknown guest mode, mode: 0x%x\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vcpu_setup, %function
vcpu_setup:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r6, r2
	mov	r5, r3
	mov	r8, #0
	sub	sp, sp, #56
	ldr	r3, .L9
	add	r2, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	mov	r7, r1
	bl	vcpu_sregs_get
	mov	r2, r5
	mov	r3, r6
	mov	r0, r4
	add	r1, sp, #44
	str	r8, [sp, #48]
	bl	kvm_setup_gdt
	ldr	r2, [r4]
	cmp	r2, #128
	beq	.L7
	mov	r0, r8
	ldr	r1, .L9+4
	bl	TEST_ASSERT
.L3:
	ldr	r3, [r4, #4]
	add	r2, sp, #8
	mov	r1, r7
	mov	r0, r4
	str	r3, [sp, #20]
	bl	vcpu_sregs_set
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #56
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, .L9+8
	ldr	r2, .L9+12
	ldr	ip, [r3]
	ldr	r3, .L9+16
	ldr	r0, .L9+20
	ldr	r1, [sp, #16]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r0, [r0]
	orr	r1, r1, ip
	orr	r2, r2, r3
	ldr	r3, .L9+24
	orr	r1, r1, r0
	ldr	r0, .L9+28
	ldr	r3, [r3]
	ldr	ip, .L9+32
	ldr	lr, [r0]
	ldr	r0, .L9+36
	ldr	ip, [ip]
	orr	r2, r2, r3
	ldr	r3, [sp, #12]
	ldr	r0, [r0]
	orr	r3, r3, ip
	orr	r1, r1, lr
	orr	r3, r3, r0
	add	r0, sp, #40
	str	r3, [sp, #12]
	str	r1, [sp, #16]
	str	r2, [sp, #8]
	bl	kvm_seg_set_unusable
	add	r2, sp, #36
	mov	r1, #8
	mov	r0, r4
	bl	kvm_seg_set_kernel_code_64bit
	add	r2, sp, #32
	mov	r1, #16
	mov	r0, r4
	bl	kvm_seg_set_kernel_data_64bit
	add	r2, sp, #28
	mov	r1, #16
	mov	r0, r4
	bl	kvm_seg_set_kernel_data_64bit
	mov	r2, #24
	mov	r3, r5
	mov	r0, r4
	str	r6, [sp]
	add	r1, sp, r2
	bl	kvm_setup_tss_64bit
	b	.L3
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	.LC0
	.word	EFER_LME
	.word	X86_CR0_PE
	.word	X86_CR0_NE
	.word	EFER_LMA
	.word	X86_CR0_PG
	.word	EFER_NX
	.word	X86_CR4_PAE
	.word	X86_CR4_OSFXSR
	.size	vcpu_setup, .-vcpu_setup
	.comm	X86_CR4_PAE,4,4
	.comm	X86_CR4_OSFXSR,4,4
	.comm	X86_CR0_PG,4,4
	.comm	X86_CR0_PE,4,4
	.comm	X86_CR0_NE,4,4
	.comm	EFER_NX,4,4
	.comm	EFER_LME,4,4
	.comm	EFER_LMA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
