	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function push_errcode
_push_errcode:                          ## @push_errcode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%r8d, -92(%rbp)
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movl	$0, (%r9)
	movq	_VM_REG_GUEST_CR0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_GETREG
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_VM_REG_GUEST_RFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_GETREG
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	_VM_REG_GUEST_SS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_GETREG
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edx
	leaq	-96(%rbp), %rcx
	leaq	-100(%rbp), %r8
	leaq	-104(%rbp), %r9
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_vm_get_desc
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	_SDT_SYS386BSY@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	sete	%al
	movq	_SDT_SYS386TSS@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	leal	(%rax,%rax), %r13d
	addl	$2, %r13d
	movl	-104(%rbp), %edi
	callq	_SEG_DESC_DEF32
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leal	(%rcx,%rcx), %ebx
	addl	$2, %ebx
	movq	_VM_REG_GUEST_RSP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_GETREG
	movq	%rax, %r14
	subl	%r13d, %r14d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movq	_VM_REG_GUEST_SS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PROT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-112(%rbp), %r10
	leaq	-104(%rbp), %rdx
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	movl	%ebx, %r9d
	pushq	%r10
	pushq	%rax
	callq	_vie_calculate_gla
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_IDT_SS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	$1, %r8d
	callq	_sel_exception
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_2:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	-112(%rbp), %r8
	movl	%r13d, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	callq	_vie_alignment_check
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_vm_inject_ac
	movl	$1, (%rbx)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_4:
	movq	-112(%rbp), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_PROT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	leaq	-56(%rbp), %rdi
	callq	_nitems
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r13d, %r8d
	movl	-72(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rbx
	pushq	%rax
	leaq	-56(%rbp), %rax
	pushq	%rax
	callq	_vm_copy_setup
	addq	$32, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	jne	LBB0_7
## %bb.6:
	leaq	-92(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r13d, %r8d
	callq	_vm_copyout
	movq	_VM_REG_GUEST_RSP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %ecx
	callq	_SETREG
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_REG_GUEST_CR0,4,2           ## @VM_REG_GUEST_CR0
	.comm	_VM_REG_GUEST_RFLAGS,4,2        ## @VM_REG_GUEST_RFLAGS
	.comm	_VM_REG_GUEST_SS,4,2            ## @VM_REG_GUEST_SS
	.comm	_SDT_SYS386BSY,4,2              ## @SDT_SYS386BSY
	.comm	_SDT_SYS386TSS,4,2              ## @SDT_SYS386TSS
	.comm	_VM_REG_GUEST_RSP,4,2           ## @VM_REG_GUEST_RSP
	.comm	_PROT_WRITE,4,2                 ## @PROT_WRITE
	.comm	_IDT_SS,4,2                     ## @IDT_SS
	.no_dead_strip	_push_errcode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function push_errcode
_push_errcode:                          ; @push_errcode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x5
	mov	x23, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	str	w4, [sp, #44]
	str	wzr, [x5]
Lloh3:
	adrp	x8, _VM_REG_GUEST_CR0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VM_REG_GUEST_CR0@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_GETREG
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
Lloh6:
	adrp	x8, _VM_REG_GUEST_RFLAGS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VM_REG_GUEST_RFLAGS@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x19
	bl	_GETREG
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
Lloh9:
	adrp	x24, _VM_REG_GUEST_SS@GOTPAGE
Lloh10:
	ldr	x24, [x24, _VM_REG_GUEST_SS@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x21
	mov	x1, x19
	bl	_GETREG
	mov	x27, x0
	ldr	w2, [x24]
	add	x8, sp, #32
	add	x3, x8, #8
	orr	x4, x8, #0x4
	add	x5, sp, #32
	mov	x0, x21
	mov	x1, x19
	bl	_vm_get_desc
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
Lloh11:
	adrp	x8, _SDT_SYS386BSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SDT_SYS386BSY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _SDT_SYS386TSS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SDT_SYS386TSS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w9, w23
	ccmp	w8, w23, #4, ne
	mov	w26, #2
	mov	w28, #4
	csel	w23, w28, w26, eq
	ldr	w0, [sp, #32]
	bl	_SEG_DESC_DEF32
	cmp	x0, #0
	csel	w28, w26, w28, eq
Lloh17:
	adrp	x25, _VM_REG_GUEST_RSP@GOTPAGE
Lloh18:
	ldr	x25, [x25, _VM_REG_GUEST_RSP@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x21
	mov	x1, x19
	bl	_GETREG
	sub	w26, w0, w23
	ldr	w0, [x22, #4]
	ldr	w1, [x24]
Lloh19:
	adrp	x24, _PROT_WRITE@GOTPAGE
Lloh20:
	ldr	x24, [x24, _PROT_WRITE@GOTPAGEOFF]
	ldr	w6, [x24]
	add	x2, sp, #32
	add	x7, sp, #24
	mov	x3, x26
	mov	x4, x23
	mov	x5, x28
	bl	_vie_calculate_gla
	cbz	x0, LBB0_2
; %bb.1:
Lloh21:
	adrp	x8, _IDT_SS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IDT_SS@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	w22, #1
	mov	x0, x21
	mov	x1, x19
	mov	x3, x27
	mov	w4, #1
	bl	_sel_exception
	b	LBB0_4
LBB0_2:
	mov	x28, x25
	ldr	w0, [x22]
	ldp	x2, x4, [sp, #16]               ; 8-byte Folded Reload
	mov	x1, x23
	ldr	x3, [sp, #8]                    ; 8-byte Folded Reload
	bl	_vie_alignment_check
	cbz	x0, LBB0_7
; %bb.3:
	mov	w22, #1
	mov	x0, x21
	mov	x1, x19
	mov	w2, #1
	bl	_vm_inject_ac
LBB0_4:
	mov	w0, #0
	str	w22, [x20]
LBB0_5:
	ldr	x8, [sp, #56]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.6:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_7:
	ldr	x27, [sp, #24]
	ldr	w25, [x24]
	add	x0, sp, #48
	bl	_nitems
	mov	x7, x0
	str	x20, [sp]
	add	x6, sp, #48
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	mov	x3, x27
	mov	x4, x23
	mov	x5, x25
	bl	_vm_copy_setup
	cbnz	w0, LBB0_5
; %bb.8:
	ldr	w8, [x20]
	cbnz	w8, LBB0_10
; %bb.9:
	add	x2, sp, #44
	add	x3, sp, #48
	mov	x0, x21
	mov	x1, x19
	mov	x4, x23
	bl	_vm_copyout
	ldr	w2, [x28]
	mov	x0, x21
	mov	x1, x19
	mov	x3, x26
	bl	_SETREG
LBB0_10:
	mov	w0, #0
	b	LBB0_5
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_REG_GUEST_CR0,4,2           ; @VM_REG_GUEST_CR0
	.comm	_VM_REG_GUEST_RFLAGS,4,2        ; @VM_REG_GUEST_RFLAGS
	.comm	_VM_REG_GUEST_SS,4,2            ; @VM_REG_GUEST_SS
	.comm	_SDT_SYS386BSY,4,2              ; @SDT_SYS386BSY
	.comm	_SDT_SYS386TSS,4,2              ; @SDT_SYS386TSS
	.comm	_VM_REG_GUEST_RSP,4,2           ; @VM_REG_GUEST_RSP
	.comm	_PROT_WRITE,4,2                 ; @PROT_WRITE
	.comm	_IDT_SS,4,2                     ; @IDT_SS
	.no_dead_strip	_push_errcode
.subsections_via_symbols
