	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function task_switch_interception
_task_switch_interception:              ## @task_switch_interception
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movl	(%rax), %r15d
	movq	_SVM_EXITINTINFO_TYPE_MASK@GOTPCREL(%rip), %rdx
	movq	_SVM_EVTINJ_VEC_MASK@GOTPCREL(%rip), %rcx
	movq	8(%rax), %r13
	movq	_SVM_EXITINFOSHIFT_TS_REASON_IRET@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	btq	%rsi, %r13
	jae	LBB0_2
## %bb.1:
	movq	_TASK_SWITCH_IRET@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_2:
	movq	_SVM_EXITINFOSHIFT_TS_REASON_JMP@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	btq	%rsi, %r13
	jae	LBB0_4
## %bb.3:
	movq	_TASK_SWITCH_JMP@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_4:
	movq	_SVM_EXITINTINFO_VALID@GOTPCREL(%rip), %rsi
	testl	%r15d, (%rsi)
	jne	LBB0_5
## %bb.6:
	movq	_TASK_SWITCH_CALL@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_5:
	movq	_TASK_SWITCH_GATE@GOTPCREL(%rip), %rbx
LBB0_7:
	movl	(%rdx), %r14d
	andl	%r15d, %r14d
	andl	(%rcx), %r15d
	movq	16(%rax), %rsi
	movl	(%rbx), %r12d
	movq	_TASK_SWITCH_GATE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_13
## %bb.8:
	cmpl	$130, %r14d
	je	LBB0_15
## %bb.9:
	cmpl	$129, %r14d
	je	LBB0_12
## %bb.10:
	cmpl	$128, %r14d
	jne	LBB0_13
## %bb.11:
	movl	$0, (%rdi)
	jmp	LBB0_13
LBB0_12:
	movq	%rdi, %rbx
	movq	%rsi, %r13
	callq	_kvm_clear_interrupt_queue
	movq	_TASK_SWITCH_GATE@GOTPCREL(%rip), %rax
	movq	%r13, %rsi
	movq	%rbx, %rdi
LBB0_13:
	xorl	%r13d, %r13d
	cmpl	(%rax), %r12d
	jne	LBB0_14
## %bb.18:
	movq	_SVM_EXITINTINFO_TYPE_SOFT@GOTPCREL(%rip), %rax
	movl	$0, %ecx
	cmpl	(%rax), %r14d
	je	LBB0_22
## %bb.19:
	xorl	%ecx, %ecx
	movl	$0, %r13d
	cmpl	$130, %r14d
	je	LBB0_20
	jmp	LBB0_23
LBB0_14:
	xorl	%ecx, %ecx
	jmp	LBB0_22
LBB0_15:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_SVM_EXITINFOSHIFT_TS_HAS_ERROR_CODE@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shlq	%cl, %rax
	xorl	%ecx, %ecx
	xorl	%r14d, %r14d
	testq	%r13, %rax
	setne	%r14b
	cmovel	%ecx, %r13d
	movq	%rdi, %rbx
	callq	_kvm_clear_exception_queue
	movq	_TASK_SWITCH_GATE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_16
## %bb.17:
	movq	_SVM_EXITINTINFO_TYPE_SOFT@GOTPCREL(%rip), %rax
	cmpl	$130, (%rax)
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %ecx
	je	LBB0_22
LBB0_20:
	movq	_OF_VECTOR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_22
## %bb.21:
	movq	_BP_VECTOR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_23
	jmp	LBB0_22
LBB0_16:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %ecx
LBB0_22:
	movq	%rdi, %rbx
	movq	%rsi, %r14
	movl	%ecx, %r15d
	callq	_skip_emulated_instruction
	movl	%r15d, %ecx
	movq	%r14, %rsi
	movq	%rbx, %rdi
LBB0_23:
	movl	%r12d, %edx
	movl	%r13d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kvm_task_switch                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SVM_EXITINTINFO_TYPE_MASK,4,2  ## @SVM_EXITINTINFO_TYPE_MASK
	.comm	_SVM_EVTINJ_VEC_MASK,4,2        ## @SVM_EVTINJ_VEC_MASK
	.comm	_SVM_EXITINTINFO_VALID,4,2      ## @SVM_EXITINTINFO_VALID
	.comm	_SVM_EXITINFOSHIFT_TS_REASON_IRET,8,3 ## @SVM_EXITINFOSHIFT_TS_REASON_IRET
	.comm	_TASK_SWITCH_IRET,4,2           ## @TASK_SWITCH_IRET
	.comm	_SVM_EXITINFOSHIFT_TS_REASON_JMP,8,3 ## @SVM_EXITINFOSHIFT_TS_REASON_JMP
	.comm	_TASK_SWITCH_JMP,4,2            ## @TASK_SWITCH_JMP
	.comm	_TASK_SWITCH_GATE,4,2           ## @TASK_SWITCH_GATE
	.comm	_TASK_SWITCH_CALL,4,2           ## @TASK_SWITCH_CALL
	.comm	_SVM_EXITINFOSHIFT_TS_HAS_ERROR_CODE,8,3 ## @SVM_EXITINFOSHIFT_TS_HAS_ERROR_CODE
	.comm	_SVM_EXITINTINFO_TYPE_SOFT,4,2  ## @SVM_EXITINTINFO_TYPE_SOFT
	.comm	_OF_VECTOR,4,2                  ## @OF_VECTOR
	.comm	_BP_VECTOR,4,2                  ## @BP_VECTOR
	.no_dead_strip	_task_switch_interception
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function task_switch_interception
_task_switch_interception:              ; @task_switch_interception
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _SVM_EXITINTINFO_TYPE_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SVM_EXITINTINFO_TYPE_MASK@GOTPAGEOFF]
	ldr	w24, [x8]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _SVM_EVTINJ_VEC_MASK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SVM_EVTINJ_VEC_MASK@GOTPAGEOFF]
	ldp	x8, x20, [x8, #8]
Lloh5:
	adrp	x11, _SVM_EXITINFOSHIFT_TS_REASON_IRET@GOTPAGE
Lloh6:
	ldr	x11, [x11, _SVM_EXITINFOSHIFT_TS_REASON_IRET@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	lsr	x11, x8, x11
Lloh8:
	adrp	x26, _TASK_SWITCH_GATE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _TASK_SWITCH_GATE@GOTPAGEOFF]
	tbz	w11, #0, LBB0_2
; %bb.1:
Lloh10:
	adrp	x11, _TASK_SWITCH_IRET@GOTPAGE
Lloh11:
	ldr	x11, [x11, _TASK_SWITCH_IRET@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x11, _SVM_EXITINTINFO_VALID@GOTPAGE
Lloh13:
	ldr	x11, [x11, _SVM_EXITINTINFO_VALID@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	and	w11, w11, w24
Lloh15:
	adrp	x12, _SVM_EXITINFOSHIFT_TS_REASON_JMP@GOTPAGE
Lloh16:
	ldr	x12, [x12, _SVM_EXITINFOSHIFT_TS_REASON_JMP@GOTPAGEOFF]
Lloh17:
	ldr	x12, [x12]
Lloh18:
	adrp	x13, _TASK_SWITCH_JMP@GOTPAGE
Lloh19:
	ldr	x13, [x13, _TASK_SWITCH_JMP@GOTPAGEOFF]
	lsr	x12, x8, x12
Lloh20:
	adrp	x14, _TASK_SWITCH_CALL@GOTPAGE
Lloh21:
	ldr	x14, [x14, _TASK_SWITCH_CALL@GOTPAGEOFF]
	cmp	w11, #0
	csel	x11, x14, x26, eq
	tst	w12, #0x1
	csel	x11, x13, x11, ne
LBB0_3:
	ldr	w25, [x10]
	and	w27, w9, w24
	ldr	w21, [x11]
	ldr	w9, [x26]
	cmp	w21, w9
	b.ne	LBB0_11
; %bb.4:
	cmp	w27, #130
	b.eq	LBB0_8
; %bb.5:
	cmp	w27, #129
	b.eq	LBB0_10
; %bb.6:
	cmp	w27, #128
	b.ne	LBB0_11
; %bb.7:
	str	wzr, [x19]
	b	LBB0_11
LBB0_8:
Lloh22:
	adrp	x9, _SVM_EXITINFOSHIFT_TS_HAS_ERROR_CODE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SVM_EXITINFOSHIFT_TS_HAS_ERROR_CODE@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	mov	w10, #1
	lsl	x9, x10, x9
	tst	x9, x8
	cset	w22, ne
	csel	w23, wzr, w8, eq
	mov	x0, x19
	bl	_kvm_clear_exception_queue
	ldr	w8, [x26]
	cmp	w21, w8
	b.ne	LBB0_13
; %bb.9:
Lloh25:
	adrp	x8, _SVM_EXITINTINFO_TYPE_SOFT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SVM_EXITINTINFO_TYPE_SOFT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w8, #130
	b.ne	LBB0_15
	b	LBB0_13
LBB0_10:
	mov	x0, x19
	bl	_kvm_clear_interrupt_queue
LBB0_11:
	ldr	w8, [x26]
Lloh28:
	adrp	x9, _SVM_EXITINTINFO_TYPE_SOFT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SVM_EXITINTINFO_TYPE_SOFT@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	cmp	w21, w8
	ccmp	w27, w9, #4, eq
	b.ne	LBB0_14
; %bb.12:
	mov	w23, #0
	mov	w22, #0
LBB0_13:
	mov	x0, x19
	bl	_skip_emulated_instruction
	b	LBB0_17
LBB0_14:
	mov	w22, #0
	mov	w23, #0
	cmp	w27, #130
	b.ne	LBB0_17
LBB0_15:
	and	w8, w25, w24
Lloh31:
	adrp	x9, _OF_VECTOR@GOTPAGE
Lloh32:
	ldr	x9, [x9, _OF_VECTOR@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_13
; %bb.16:
Lloh34:
	adrp	x9, _BP_VECTOR@GOTPAGE
Lloh35:
	ldr	x9, [x9, _BP_VECTOR@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_13
LBB0_17:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_kvm_task_switch
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_SVM_EXITINTINFO_TYPE_MASK,4,2  ; @SVM_EXITINTINFO_TYPE_MASK
	.comm	_SVM_EVTINJ_VEC_MASK,4,2        ; @SVM_EVTINJ_VEC_MASK
	.comm	_SVM_EXITINTINFO_VALID,4,2      ; @SVM_EXITINTINFO_VALID
	.comm	_SVM_EXITINFOSHIFT_TS_REASON_IRET,8,3 ; @SVM_EXITINFOSHIFT_TS_REASON_IRET
	.comm	_TASK_SWITCH_IRET,4,2           ; @TASK_SWITCH_IRET
	.comm	_SVM_EXITINFOSHIFT_TS_REASON_JMP,8,3 ; @SVM_EXITINFOSHIFT_TS_REASON_JMP
	.comm	_TASK_SWITCH_JMP,4,2            ; @TASK_SWITCH_JMP
	.comm	_TASK_SWITCH_GATE,4,2           ; @TASK_SWITCH_GATE
	.comm	_TASK_SWITCH_CALL,4,2           ; @TASK_SWITCH_CALL
	.comm	_SVM_EXITINFOSHIFT_TS_HAS_ERROR_CODE,8,3 ; @SVM_EXITINFOSHIFT_TS_HAS_ERROR_CODE
	.comm	_SVM_EXITINTINFO_TYPE_SOFT,4,2  ; @SVM_EXITINTINFO_TYPE_SOFT
	.comm	_OF_VECTOR,4,2                  ; @OF_VECTOR
	.comm	_BP_VECTOR,4,2                  ; @BP_VECTOR
	.no_dead_strip	_task_switch_interception
.subsections_via_symbols
