	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nested_fault
_nested_fault:                          ## @nested_fault
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_VM_INTINFO_VALID@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	andl	%edx, %edi
	movslq	%edx, %r13
	movq	%r13, %rsi
	callq	_KASSERT
	movl	(%r15), %edi
	andl	%ebx, %edi
	movslq	%ebx, %rsi
	callq	_KASSERT
	movq	_VM_INTINFO_TYPE@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movq	_VM_INTINFO_HWEXCEPTION@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	movq	%rax, %r13
	jne	LBB0_3
## %bb.1:
	movzbl	%r12b, %eax
	movq	_IDT_DF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.2(%rip), %rdx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	callq	_VCPU_CTR2
	movq	_VM_SUSPEND_TRIPLEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_vm_suspend
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_3:
	movl	%r12d, %edi
	callq	_exception_class
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_exception_class
	movl	%eax, %ecx
	movq	_EXC_CONTRIBUTORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r15d
	jne	LBB0_5
## %bb.4:
	cmpl	%eax, %ecx
	je	LBB0_7
LBB0_5:
	movq	_EXC_PAGEFAULT@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpl	(%rdx), %r15d
	jne	LBB0_8
## %bb.6:
	movq	_EXC_BENIGN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_8
LBB0_7:
	movq	_IDT_DF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, (%r14)
	movq	_VM_INTINFO_VALID@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	orl	(%r13), %ebx
	movl	%ebx, (%r14)
	movq	_VM_INTINFO_DEL_ERRCODE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	$1, %eax
LBB0_8:
	movl	%ebx, (%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_INTINFO_VALID,4,2           ## @VM_INTINFO_VALID
	.comm	_VM_INTINFO_TYPE,4,2            ## @VM_INTINFO_TYPE
	.comm	_VM_INTINFO_HWEXCEPTION,4,2     ## @VM_INTINFO_HWEXCEPTION
	.comm	_IDT_DF,4,2                     ## @IDT_DF
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"triple fault: info1(%#lx), info2(%#lx)"

	.comm	_VM_SUSPEND_TRIPLEFAULT,4,2     ## @VM_SUSPEND_TRIPLEFAULT
	.comm	_EXC_CONTRIBUTORY,4,2           ## @EXC_CONTRIBUTORY
	.comm	_EXC_PAGEFAULT,4,2              ## @EXC_PAGEFAULT
	.comm	_EXC_BENIGN,4,2                 ## @EXC_BENIGN
	.comm	_VM_INTINFO_DEL_ERRCODE,4,2     ## @VM_INTINFO_DEL_ERRCODE
	.no_dead_strip	_nested_fault
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nested_fault
_nested_fault:                          ; @nested_fault
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	sxtw	x1, w22
Lloh0:
	adrp	x24, _VM_INTINFO_VALID@GOTPAGE
Lloh1:
	ldr	x24, [x24, _VM_INTINFO_VALID@GOTPAGEOFF]
	ldr	w8, [x24]
	and	w0, w8, w2
	bl	_KASSERT
	ldr	w8, [x24]
	and	w0, w8, w20
	sxtw	x1, w20
	bl	_KASSERT
Lloh2:
	adrp	x8, _VM_INTINFO_TYPE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VM_INTINFO_TYPE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w22
Lloh5:
	adrp	x25, _VM_INTINFO_HWEXCEPTION@GOTPAGE
Lloh6:
	ldr	x25, [x25, _VM_INTINFO_HWEXCEPTION@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh7:
	adrp	x26, _IDT_DF@GOTPAGE
Lloh8:
	ldr	x26, [x26, _IDT_DF@GOTPAGEOFF]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x26]
	cmp	w8, w22, uxtb
	b.ne	LBB0_3
; %bb.2:
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	mov	x3, x22
	mov	x4, x20
	bl	_VCPU_CTR2
Lloh11:
	adrp	x8, _VM_SUSPEND_TRIPLEFAULT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VM_SUSPEND_TRIPLEFAULT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_vm_suspend
	mov	w20, #0
	mov	w0, #0
	b	LBB0_7
LBB0_3:
	mov	x0, x22
	bl	_exception_class
	mov	x21, x0
	mov	x0, x20
	bl	_exception_class
Lloh14:
	adrp	x8, _EXC_CONTRIBUTORY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EXC_CONTRIBUTORY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w21, w8
	ccmp	w0, w8, #0, eq
	b.eq	LBB0_5
; %bb.4:
Lloh17:
	adrp	x8, _EXC_PAGEFAULT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EXC_PAGEFAULT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _EXC_BENIGN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _EXC_BENIGN@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w21, w8
	ccmp	w0, w9, #4, eq
	b.eq	LBB0_6
LBB0_5:
	ldr	w8, [x26]
	str	w8, [x19]
	ldr	w9, [x24]
	ldr	w10, [x25]
	orr	w8, w9, w8
	orr	w8, w8, w10
	str	w8, [x19]
Lloh23:
	adrp	x9, _VM_INTINFO_DEL_ERRCODE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _VM_INTINFO_DEL_ERRCODE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w20, w8, w9
LBB0_6:
	mov	w0, #1
LBB0_7:
	str	w20, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_INTINFO_VALID,4,2           ; @VM_INTINFO_VALID
	.comm	_VM_INTINFO_TYPE,4,2            ; @VM_INTINFO_TYPE
	.comm	_VM_INTINFO_HWEXCEPTION,4,2     ; @VM_INTINFO_HWEXCEPTION
	.comm	_IDT_DF,4,2                     ; @IDT_DF
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"triple fault: info1(%#lx), info2(%#lx)"

	.comm	_VM_SUSPEND_TRIPLEFAULT,4,2     ; @VM_SUSPEND_TRIPLEFAULT
	.comm	_EXC_CONTRIBUTORY,4,2           ; @EXC_CONTRIBUTORY
	.comm	_EXC_PAGEFAULT,4,2              ; @EXC_PAGEFAULT
	.comm	_EXC_BENIGN,4,2                 ; @EXC_BENIGN
	.comm	_VM_INTINFO_DEL_ERRCODE,4,2     ; @VM_INTINFO_DEL_ERRCODE
	.no_dead_strip	_nested_fault
.subsections_via_symbols
