	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmspace_free                   ## -- Begin function vmspace_free
	.p2align	4, 0x90
_vmspace_free:                          ## @vmspace_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
	movq	%rdi, %rbx
	movq	_WARN_GIANTOK@GOTPCREL(%rip), %rax
	movq	_WARN_SLEEPOK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	callq	_WITNESS_WARN
	cmpq	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_panic
LBB0_2:
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_atomic_fetchadd_int
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_vmspace_dofree                 ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WARN_GIANTOK,4,2               ## @WARN_GIANTOK
	.comm	_WARN_SLEEPOK,4,2               ## @WARN_SLEEPOK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vmspace_free() called"

L_.str.1:                               ## @.str.1
	.asciz	"vmspace_free: attempt to free already freed vmspace"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmspace_free                   ; -- Begin function vmspace_free
	.p2align	2
_vmspace_free:                          ; @vmspace_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
	mov	x19, x0
Lloh0:
	adrp	x8, _WARN_GIANTOK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WARN_GIANTOK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WARN_SLEEPOK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WARN_SLEEPOK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, #0
	bl	_WITNESS_WARN
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
LBB0_2:
	mov	x0, x19
	mov	w1, #-1
	bl	_atomic_fetchadd_int
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vmspace_dofree
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_WARN_GIANTOK,4,2               ; @WARN_GIANTOK
	.comm	_WARN_SLEEPOK,4,2               ; @WARN_SLEEPOK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vmspace_free() called"

l_.str.1:                               ; @.str.1
	.asciz	"vmspace_free: attempt to free already freed vmspace"

.subsections_via_symbols
