	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmx_vmcleanup
_vmx_vmcleanup:                         ## @vmx_vmcleanup
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%esi, %esi
	callq	_apic_access_virtualization
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	8(%r14), %edi
	movq	_DEFAULT_APIC_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_vm_unmap_mmio
LBB0_2:
	movl	8(%r14), %edi
	callq	_vm_get_maxcpus
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_vpid_free
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_4
LBB0_5:
	movq	_M_VMX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_APIC_BASE,4,2          ## @DEFAULT_APIC_BASE
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_M_VMX,4,2                      ## @M_VMX
	.no_dead_strip	_vmx_vmcleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmx_vmcleanup
_vmx_vmcleanup:                         ; @vmx_vmcleanup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	mov	w1, #0
	bl	_apic_access_virtualization
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x8, _DEFAULT_APIC_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_APIC_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_vm_unmap_mmio
LBB0_2:
	ldr	w0, [x19, #8]
	bl	_vm_get_maxcpus
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x20, #0
	mov	w8, w0
	lsl	x21, x8, #2
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x20]
	bl	_vpid_free
	add	x20, x20, #4
	cmp	x21, x20
	b.ne	LBB0_4
LBB0_5:
Lloh6:
	adrp	x8, _M_VMX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _M_VMX@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_APIC_BASE,4,2          ; @DEFAULT_APIC_BASE
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_M_VMX,4,2                      ; @M_VMX
	.no_dead_strip	_vmx_vmcleanup
.subsections_via_symbols
