	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vmw_open_channel
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vmw_open_channel:                      ## @vmw_open_channel
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_VMW_PORT_CMD_OPEN_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GUESTMSG_FLAG_COOKIE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_VMW_HYPERVISOR_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rsp)
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_VMW_PORT
	callq	_HIGH_WORD
	movq	_MESSAGE_STATUS_SUCCESS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	callq	_HIGH_WORD
	movl	%eax, (%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMW_PORT_CMD_OPEN_CHANNEL,4,2  ## @VMW_PORT_CMD_OPEN_CHANNEL
	.comm	_GUESTMSG_FLAG_COOKIE,4,2       ## @GUESTMSG_FLAG_COOKIE
	.comm	_VMW_HYPERVISOR_MAGIC,4,2       ## @VMW_HYPERVISOR_MAGIC
	.comm	_MESSAGE_STATUS_SUCCESS,4,2     ## @MESSAGE_STATUS_SUCCESS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vmw_open_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_open_channel
_vmw_open_channel:                      ; @vmw_open_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, _VMW_PORT_CMD_OPEN_CHANNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMW_PORT_CMD_OPEN_CHANNEL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _GUESTMSG_FLAG_COOKIE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GUESTMSG_FLAG_COOKIE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	ldr	w8, [x9]
	orr	w1, w8, w1
Lloh6:
	adrp	x8, _VMW_HYPERVISOR_MAGIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VMW_HYPERVISOR_MAGIC@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	stp	xzr, xzr, [sp, #16]
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_VMW_PORT
	bl	_HIGH_WORD
Lloh9:
	adrp	x8, _MESSAGE_STATUS_SUCCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MESSAGE_STATUS_SUCCESS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	bl	_HIGH_WORD
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	stp	xzr, xzr, [x19, #8]
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_VMW_PORT_CMD_OPEN_CHANNEL,4,2  ; @VMW_PORT_CMD_OPEN_CHANNEL
	.comm	_GUESTMSG_FLAG_COOKIE,4,2       ; @GUESTMSG_FLAG_COOKIE
	.comm	_VMW_HYPERVISOR_MAGIC,4,2       ; @VMW_HYPERVISOR_MAGIC
	.comm	_MESSAGE_STATUS_SUCCESS,4,2     ; @MESSAGE_STATUS_SUCCESS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vmw_open_channel
.subsections_via_symbols
