	.file	"extr_task_switch.c_push_errcode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	push_errcode, @function
push_errcode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	QWORD PTR 40[rsp], rcx
	lea	r15, 68[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	mov	DWORD PTR [r8], 0
	mov	esi, DWORD PTR VM_REG_GUEST_CR0[rip]
	call	GETREG@PLT
	mov	esi, DWORD PTR VM_REG_GUEST_RFLAGS[rip]
	mov	edi, ebp
	mov	QWORD PTR 8[rsp], rax
	call	GETREG@PLT
	mov	esi, DWORD PTR VM_REG_GUEST_SS[rip]
	mov	edi, ebp
	mov	QWORD PTR 16[rsp], rax
	call	GETREG@PLT
	mov	esi, DWORD PTR VM_REG_GUEST_SS[rip]
	mov	r8, r15
	mov	edi, ebp
	lea	rcx, 72[rsp]
	lea	rdx, 76[rsp]
	mov	QWORD PTR 24[rsp], rax
	call	xh_vm_get_desc@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	assert@PLT
	cmp	DWORD PTR SDT_SYS386BSY[rip], ebx
	je	.L8
	xor	r14d, r14d
	cmp	DWORD PTR SDT_SYS386TSS[rip], ebx
	sete	bl
	sete	r14b
	movzx	ebx, bl
	lea	r14, 2[r14+r14]
	lea	ebx, 2[rbx+rbx]
.L2:
	mov	edi, DWORD PTR 68[rsp]
	call	SEG_DESC_DEF32@PLT
	mov	esi, DWORD PTR VM_REG_GUEST_RSP[rip]
	mov	edi, ebp
	cmp	rax, 1
	sbb	r9d, r9d
	and	r9d, -2
	add	r9d, 4
	mov	DWORD PTR 32[rsp], r9d
	mov	DWORD PTR 36[rsp], r9d
	call	GETREG@PLT
	mov	edi, DWORD PTR 4[r13]
	mov	r8d, ebx
	mov	rdx, r15
	sub	rax, r14
	mov	esi, DWORD PTR VM_REG_GUEST_SS[rip]
	mov	r14, rax
	lea	rax, 56[rsp]
	push	rax
	.cfi_def_cfa_offset 168
	mov	eax, DWORD PTR XHYVE_PROT_WRITE[rip]
	mov	rcx, r14
	push	rax
	.cfi_def_cfa_offset 176
	mov	r9d, DWORD PTR 48[rsp]
	call	vie_calculate_gla@PLT
	pop	rsi
	.cfi_def_cfa_offset 168
	pop	rdi
	.cfi_def_cfa_offset 160
	test	rax, rax
	jne	.L13
	mov	r8, QWORD PTR 56[rsp]
	mov	rcx, QWORD PTR 16[rsp]
	mov	esi, ebx
	mov	rdx, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR 0[r13]
	call	vie_alignment_check@PLT
	test	rax, rax
	jne	.L14
	lea	r15, 80[rsp]
	movsx	rbx, ebx
	mov	rdi, r15
	call	nitems@PLT
	push	r12
	.cfi_def_cfa_offset 168
	mov	r8d, DWORD PTR XHYVE_PROT_WRITE[rip]
	mov	edi, ebp
	push	rax
	.cfi_def_cfa_offset 176
	mov	rdx, QWORD PTR 72[rsp]
	mov	rcx, rbx
	mov	rsi, r13
	mov	r9, r15
	call	xh_vm_copy_setup@PLT
	pop	rdx
	.cfi_def_cfa_offset 168
	pop	rcx
	.cfi_def_cfa_offset 160
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR [r12]
	test	eax, eax
	jne	.L1
	lea	rdi, 40[rsp]
	mov	rdx, rbx
	mov	rsi, r15
	call	xh_vm_copyout@PLT
	mov	esi, DWORD PTR VM_REG_GUEST_RSP[rip]
	mov	rdx, r14
	mov	edi, ebp
	call	SETREG@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, 1
	mov	edi, ebp
	xor	r13d, r13d
	call	vm_inject_ac@PLT
	mov	DWORD PTR [r12], 1
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdx, QWORD PTR 24[rsp]
	mov	esi, DWORD PTR IDT_SS[rip]
	mov	edi, ebp
	xor	r13d, r13d
	mov	ecx, 1
	call	sel_exception@PLT
	mov	DWORD PTR [r12], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r14d, 4
	mov	ebx, 4
	jmp	.L2
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	push_errcode, .-push_errcode
	.comm	XHYVE_PROT_WRITE,4,4
	.comm	VM_REG_GUEST_SS,4,4
	.comm	VM_REG_GUEST_RSP,4,4
	.comm	VM_REG_GUEST_RFLAGS,4,4
	.comm	VM_REG_GUEST_CR0,4,4
	.comm	SDT_SYS386TSS,4,4
	.comm	SDT_SYS386BSY,4,4
	.comm	IDT_SS,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_task_switch.c_push_errcode.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	push_errcode, %function
push_errcode:
	@ args = 4, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #76
	ldr	lr, .L16
	ldr	r9, [sp, #112]
	mov	r6, r1
	ldr	r1, .L16+4
	ldr	lr, [lr]
	str	lr, [sp, #68]
	mov	lr,#0
	str	ip, [r9]
	ldr	r1, [r1]
	mov	r4, r0
	mov	r5, r2
	str	r3, [sp, #36]
	bl	GETREG
	mov	r3, r0
	ldr	r2, .L16+8
	mov	r0, r4
	ldr	r1, [r2]
	str	r3, [sp, #24]
	bl	GETREG
	mov	r3, r0
	ldr	r8, .L16+12
	mov	r0, r4
	ldr	r1, [r8]
	str	r3, [sp, #28]
	bl	GETREG
	mov	ip, r0
	add	r10, sp, #48
	ldr	r1, [r8]
	add	r3, sp, #52
	add	r2, sp, #56
	mov	r0, r4
	str	r10, [sp]
	str	ip, [sp, #32]
	bl	xh_vm_get_desc
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r3, .L16+16
	ldr	r3, [r3]
	cmp	r3, r5
	moveq	r5, #4
	beq	.L2
	ldr	r3, .L16+20
	ldr	r2, [r3]
	cmp	r2, r5
	moveq	r5, #4
	movne	r5, #2
.L2:
	ldr	r0, [sp, #48]
	bl	SEG_DESC_DEF32
	ldr	r3, .L16+24
	cmp	r0, #0
	ldr	r1, [r3]
	movne	r3, #4
	moveq	r3, #2
	mov	r0, r4
	str	r3, [sp, #20]
	bl	GETREG
	ldr	fp, .L16+28
	ldr	r3, [sp, #20]
	ldr	ip, [fp]
	sub	r7, r0, r5
	str	r3, [sp, #4]
	str	r5, [sp]
	add	r0, sp, #44
	ldr	r1, [r8]
	str	ip, [sp, #8]
	str	r0, [sp, #12]
	mov	r2, r10
	mov	r3, r7
	ldr	r0, [r6, #4]
	bl	vie_calculate_gla
	subs	r8, r0, #0
	bne	.L13
	ldr	r1, [sp, #44]
	ldr	r3, [sp, #28]
	str	r1, [sp]
	ldr	r2, [sp, #24]
	mov	r1, r5
	ldr	r0, [r6]
	bl	vie_alignment_check
	cmp	r0, #0
	bne	.L14
	add	r10, sp, #60
	mov	r0, r10
	ldr	r8, [sp, #44]
	ldr	fp, [fp]
	bl	nitems
	mov	r2, r8
	str	r0, [sp, #8]
	mov	r1, r6
	mov	r3, r5
	mov	r0, r4
	str	fp, [sp]
	str	r10, [sp, #4]
	str	r9, [sp, #12]
	bl	xh_vm_copy_setup
	subs	r8, r0, #0
	bne	.L1
	ldr	r3, [r9]
	cmp	r3, #0
	bne	.L1
	mov	r2, r5
	mov	r1, r10
	add	r0, sp, #36
	bl	xh_vm_copyout
	ldr	r3, .L16+24
	mov	r2, r7
	mov	r0, r4
	ldr	r1, [r3]
	bl	SETREG
	b	.L1
.L14:
	mov	r0, r4
	mov	r1, #1
	bl	vm_inject_ac
	mov	r3, #1
	str	r3, [r9]
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r8
	add	sp, sp, #76
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	ldr	r3, .L16+32
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r2, [sp, #32]
	mov	r3, #1
	bl	sel_exception
	mov	r3, #1
	mov	r8, #0
	str	r3, [r9]
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	VM_REG_GUEST_CR0
	.word	VM_REG_GUEST_RFLAGS
	.word	VM_REG_GUEST_SS
	.word	SDT_SYS386BSY
	.word	SDT_SYS386TSS
	.word	VM_REG_GUEST_RSP
	.word	XHYVE_PROT_WRITE
	.word	IDT_SS
	.size	push_errcode, .-push_errcode
	.comm	XHYVE_PROT_WRITE,4,4
	.comm	VM_REG_GUEST_SS,4,4
	.comm	VM_REG_GUEST_RSP,4,4
	.comm	VM_REG_GUEST_RFLAGS,4,4
	.comm	VM_REG_GUEST_CR0,4,4
	.comm	SDT_SYS386TSS,4,4
	.comm	SDT_SYS386BSY,4,4
	.comm	IDT_SS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
