	.file	"extr_xhyve.c_vcpu_thread.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vcpu_thread, @function
vcpu_thread:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	ebp, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 4[rsp], 65520
	mov	edi, ebp
	call	xh_vcpu_create@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	assert@PLT
	mov	edi, ebp
	call	vcpu_set_capabilities@PLT
	mov	edi, ebp
	call	xh_vcpu_reset@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	assert@PLT
	movsx	rdx, ebp
	mov	rbx, rdx
	sal	rbx, 4
	cmp	DWORD PTR BSP[rip], ebp
	je	.L7
	mov	rax, QWORD PTR vmexit[rip]
	lea	rsi, 4[rsp]
	mov	edi, ebp
	mov	eax, DWORD PTR [rax+rbx]
	mov	DWORD PTR 4[rsp], eax
	call	spinup_ap_realmode@PLT
	mov	esi, DWORD PTR 4[rsp]
.L3:
	mov	rdx, QWORD PTR vmexit[rip]
	mov	edi, ebp
	add	rdx, rbx
	mov	DWORD PTR [rdx], esi
	mov	QWORD PTR 8[rdx], 0
	call	vcpu_loop@PLT
	mov	edi, 1
	call	exit@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	eax, eax
	call	fw_func@PLT
	mov	DWORD PTR 4[rsp], eax
	mov	esi, eax
	jmp	.L3
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vcpu_thread, .-vcpu_thread
	.comm	vmexit,8,8
	.comm	BSP,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_xhyve.c_vcpu_thread.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vcpu_thread, %function
vcpu_thread:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r4, [r0]
	ldr	r3, .L9
	ldr	r2, .L9+4
	sub	sp, sp, #12
	mov	r0, r4
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	str	r3, [sp]
	bl	xh_vcpu_create
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	mov	r0, r4
	bl	vcpu_set_capabilities
	mov	r0, r4
	bl	xh_vcpu_reset
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r3, .L9+8
	lsl	r5, r4, #3
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L7
	ldr	r7, .L9+12
	mov	r1, sp
	ldr	r3, [r7]
	mov	r0, r4
	ldr	r3, [r3, r4, lsl #3]
	str	r3, [sp]
	bl	spinup_ap_realmode
	ldr	r1, [sp]
.L3:
	mov	r6, #0
	ldr	r3, [r7]
	mov	r0, r4
	add	r5, r3, r5
	str	r1, [r3, r4, lsl #3]
	str	r6, [r5, #4]
	bl	vcpu_loop
	mov	r0, #1
	bl	exit
	ldr	r3, .L9+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	bl	fw_func
	ldr	r7, .L9+12
	mov	r1, r0
	str	r0, [sp]
	b	.L3
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	65520
	.word	.LC0
	.word	BSP
	.word	vmexit
	.size	vcpu_thread, .-vcpu_thread
	.comm	vmexit,4,4
	.comm	BSP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
