	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_close_channel
_vmw_close_channel:                     ## @vmw_close_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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movq	(%rdi), %rdx
	movq	8(%rdi), %rcx
	movq	_VMW_PORT_CMD_CLOSE_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	16(%rdi), %r8d
	shll	$16, %r8d
	movq	_VMW_HYPERVISOR_MAGIC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	movq	%rcx, 40(%rsp)
	movq	%rdx, 32(%rsp)
	xorl	%ebx, %ebx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_VMW_PORT
	callq	_HIGH_WORD
	movq	_MESSAGE_STATUS_SUCCESS@GOTPCREL(%rip), %rdx
	movq	_EINVAL@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	subl	(%rsi), %ecx
	testl	%eax, (%rdx)
	cmovnel	%ebx, %ecx
	movl	%ecx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMW_PORT_CMD_CLOSE_CHANNEL,4,2 ## @VMW_PORT_CMD_CLOSE_CHANNEL
	.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_close_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_close_channel
_vmw_close_channel:                     ; @vmw_close_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
	ldp	x2, x3, [x0]
Lloh0:
	adrp	x8, _VMW_PORT_CMD_CLOSE_CHANNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMW_PORT_CMD_CLOSE_CHANNEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0, #16]
	lsl	w4, w9, #16
Lloh3:
	adrp	x9, _VMW_HYPERVISOR_MAGIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VMW_HYPERVISOR_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x9]
	stp	x2, x3, [sp, #16]
	mov	x0, x8
	mov	w1, #0
	bl	_VMW_PORT
	bl	_HIGH_WORD
Lloh6:
	adrp	x8, _MESSAGE_STATUS_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MESSAGE_STATUS_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _EINVAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w8, w0
	csneg	w0, wzr, w9, ne
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VMW_PORT_CMD_CLOSE_CHANNEL,4,2 ; @VMW_PORT_CMD_CLOSE_CHANNEL
	.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_close_channel
.subsections_via_symbols
