	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VM_Free                        ## -- Begin function VM_Free
	.p2align	4, 0x90
_VM_Free:                               ## @VM_Free
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 48(%rdi)
	je	LBB0_4
## %bb.2:
	movq	_forced_unload@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.3:
	movl	40(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_Com_Printf
LBB0_4:
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_6:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_Sys_UnloadDll
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_Com_Memset
LBB0_8:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_Com_Memset
	movq	_currentVM@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_lastVM@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_10:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	40(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_Com_Error                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_forced_unload,4,2              ## @forced_unload
	.comm	_ERR_FATAL,4,2                  ## @ERR_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VM_Free(%s) on running vm"

L_.str.1:                               ## @.str.1
	.asciz	"forcefully unloading %s vm\n"

	.comm	_currentVM,8,3                  ## @currentVM
	.comm	_lastVM,8,3                     ## @lastVM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VM_Free                        ; -- Begin function VM_Free
	.p2align	2
_VM_Free:                               ; @VM_Free
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _forced_unload@GOTPAGE
Lloh1:
	ldr	x8, [x8, _forced_unload@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.3:
	ldr	w1, [x19, #40]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Com_Printf
LBB0_4:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	blr	x8
LBB0_6:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_Sys_UnloadDll
	mov	x0, x19
	mov	w1, #0
	mov	w2, #56
	bl	_Com_Memset
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #56
	bl	_Com_Memset
Lloh5:
	adrp	x8, _currentVM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _currentVM@GOTPAGEOFF]
Lloh7:
	str	xzr, [x8]
Lloh8:
	adrp	x8, _lastVM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _lastVM@GOTPAGEOFF]
Lloh10:
	str	xzr, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh11:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w2, [x19, #40]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Com_Error
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_forced_unload,4,2              ; @forced_unload
	.comm	_ERR_FATAL,4,2                  ; @ERR_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VM_Free(%s) on running vm"

l_.str.1:                               ; @.str.1
	.asciz	"forcefully unloading %s vm\n"

	.comm	_currentVM,8,3                  ; @currentVM
	.comm	_lastVM,8,3                     ; @lastVM
.subsections_via_symbols
