	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmm_handler
_vmm_handler:                           ## @vmm_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$128, %esi
	je	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	cmpl	$129, %esi
	jne	LBB0_9
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_vmmdev_init
	xorl	%eax, %eax
	callq	_vmm_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movl	$1, %ebx
	jmp	LBB0_8
LBB0_4:
	xorl	%eax, %eax
	callq	_vmmdev_cleanup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	_vmm_resume_p@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_iommu_cleanup
	movq	_vmm_ipinum@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IPI_AST@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	je	LBB0_7
## %bb.6:
	callq	_lapic_ipi_free
LBB0_7:
	xorl	%eax, %eax
	callq	_VMM_CLEANUP
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_9
LBB0_8:
	movq	_vmm_initialized@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movl	%r14d, %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vmm_initialized,4,2            ## @vmm_initialized
	.comm	_vmm_resume_p,8,3               ## @vmm_resume_p
	.comm	_vmm_ipinum,4,2                 ## @vmm_ipinum
	.comm	_IPI_AST,4,2                    ## @IPI_AST
	.no_dead_strip	_vmm_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmm_handler
_vmm_handler:                           ; @vmm_handler
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w1, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_9
; %bb.2:
	bl	_vmmdev_init
	bl	_vmm_init
	mov	x8, x0
	cbnz	w0, LBB0_10
; %bb.3:
	mov	w9, #1
	b	LBB0_8
LBB0_4:
	bl	_vmmdev_cleanup
	mov	x8, x0
	cbnz	w0, LBB0_10
; %bb.5:
Lloh0:
	adrp	x8, _vmm_resume_p@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vmm_resume_p@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
	bl	_iommu_cleanup
Lloh3:
	adrp	x8, _vmm_ipinum@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vmm_ipinum@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _IPI_AST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPI_AST@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.6:
	bl	_lapic_ipi_free
LBB0_7:
	bl	_VMM_CLEANUP
	mov	w9, #0
	mov	w8, #0
	cbz	w0, LBB0_10
LBB0_8:
Lloh9:
	adrp	x8, _vmm_initialized@GOTPAGE
Lloh10:
	ldr	x8, [x8, _vmm_initialized@GOTPAGEOFF]
Lloh11:
	str	w9, [x8]
	mov	x8, x0
	b	LBB0_10
LBB0_9:
	mov	w8, #0
LBB0_10:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_vmm_initialized,4,2            ; @vmm_initialized
	.comm	_vmm_resume_p,8,3               ; @vmm_resume_p
	.comm	_vmm_ipinum,4,2                 ; @vmm_ipinum
	.comm	_IPI_AST,4,2                    ; @IPI_AST
	.no_dead_strip	_vmm_handler
.subsections_via_symbols
