	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_create                      ## -- Begin function vm_create
	.p2align	4, 0x90
_vm_create:                             ## @vm_create
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_vmm_initialized@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.2:
	movq	%rsi, %r14
	movq	%rbx, %rdi
	callq	_strlen
	movq	_VM_MAX_NAMELEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_5
## %bb.3:
	movq	_VM_MAXUSER_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_VMSPACE_ALLOC
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %r13
	movq	_M_VM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$40, %edi
	callq	_malloc
	movq	%rax, %r12
	movl	32(%rax), %edi
	movq	%rbx, %rsi
	callq	_strcpy
	movq	%r13, 24(%r12)
	leaq	16(%r12), %rdi
	movq	_MTX_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_mtx_init
	movl	$1, (%r12)
	movq	_cores_per_package@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_threads_per_core@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	_VM_MAXCPU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_vm_init
	movq	%r12, (%r14)
	jmp	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_vmm_initialized,4,2            ## @vmm_initialized
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_VM_MAX_NAMELEN,8,3             ## @VM_MAX_NAMELEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VM_MAXUSER_ADDRESS,4,2         ## @VM_MAXUSER_ADDRESS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_M_VM,4,2                       ## @M_VM
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vm rendezvous lock"

	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
	.comm	_cores_per_package,4,2          ## @cores_per_package
	.comm	_threads_per_core,4,2           ## @threads_per_core
	.comm	_VM_MAXCPU,4,2                  ## @VM_MAXCPU
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_create                      ; -- Begin function vm_create
	.p2align	2
_vm_create:                             ; @vm_create
	.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
Lloh0:
	adrp	x8, _vmm_initialized@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vmm_initialized@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x20, x0
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x1
	mov	x0, x20
	bl	_strlen
Lloh3:
	adrp	x8, _VM_MAX_NAMELEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VM_MAX_NAMELEN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _VM_MAXUSER_ADDRESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VM_MAXUSER_ADDRESS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_VMSPACE_ALLOC
	cbz	x0, LBB0_9
; %bb.4:
	mov	x21, x0
Lloh9:
	adrp	x8, _M_VM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _M_VM@GOTPAGEOFF]
Lloh11:
	adrp	x9, _M_WAITOK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _M_WAITOK@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	ldr	w8, [x9]
Lloh15:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh16:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #40
	bl	_malloc
	mov	x22, x0
	ldr	w0, [x0, #32]
	mov	x1, x20
	bl	_strcpy
	str	x21, [x22, #24]
	add	x0, x22, #16
Lloh18:
	adrp	x8, _MTX_DEF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MTX_DEF@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_mtx_init
	mov	w8, #1
	str	w8, [x22]
Lloh23:
	adrp	x8, _cores_per_package@GOTPAGE
Lloh24:
	ldr	x8, [x8, _cores_per_package@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x22, #12]
Lloh26:
	adrp	x8, _threads_per_core@GOTPAGE
Lloh27:
	ldr	x8, [x8, _threads_per_core@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _VM_MAXCPU@GOTPAGE
Lloh30:
	ldr	x9, [x9, _VM_MAXCPU@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #4]
	mov	x0, x22
	mov	w1, #1
	bl	_vm_init
	mov	w0, #0
	str	x22, [x19]
	b	LBB0_8
LBB0_5:
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh34:
	adrp	x8, _ENXIO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
LBB0_8:
	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
	ret
LBB0_9:
Lloh36:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_vmm_initialized,4,2            ; @vmm_initialized
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_VM_MAX_NAMELEN,8,3             ; @VM_MAX_NAMELEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VM_MAXUSER_ADDRESS,4,2         ; @VM_MAXUSER_ADDRESS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_M_VM,4,2                       ; @M_VM
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vm rendezvous lock"

	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
	.comm	_cores_per_package,4,2          ; @cores_per_package
	.comm	_threads_per_core,4,2           ; @threads_per_core
	.comm	_VM_MAXCPU,4,2                  ; @VM_MAXCPU
.subsections_via_symbols
