	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_open                        ## -- Begin function vm_open
	.p2align	4, 0x90
_vm_open:                               ## @vm_open
	.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
	movq	%rdi, %r14
	callq	_strlen
	leaq	25(%rax), %rdi
	callq	_malloc
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movl	$-1, (%rbx)
	movq	$0, 16(%rbx)
	movq	_GB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,2), %eax
	movl	%eax, 4(%rbx)
	leaq	24(%rbx), %rdi
	movq	%rdi, 8(%rbx)
	movq	%r14, %rsi
	callq	_strcpy
	movq	8(%rbx), %rdi
	callq	_vm_device_open
	movl	%eax, (%rbx)
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_vm_destroy
	xorl	%ebx, %ebx
LBB0_2:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GB,4,2                         ## @GB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_open                        ; -- Begin function vm_open
	.p2align	2
_vm_open:                               ; @vm_open
	.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	x20, x0
	bl	_strlen
	add	x0, x0, #25
	bl	_malloc
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	w8, #-1
Lloh0:
	adrp	x9, _GB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GB@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w9, w9, w9, lsl #1
	stp	w8, w9, [x19]
	add	x0, x19, #24
	stp	x0, xzr, [x19, #8]
	mov	x1, x20
	bl	_strcpy
	ldr	x0, [x19, #8]
	bl	_vm_device_open
	str	w0, [x19]
	tbz	w0, #31, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_vm_destroy
	mov	x19, #0
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GB,4,2                         ; @GB
.subsections_via_symbols
