	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_send_msg
_vmw_send_msg:                          ## @vmw_send_msg
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_strlen
	movq	%rax, %r15
	movl	$-1, %r13d
                                        ## implicit-def: $rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r13d
	movq	_RETRIES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rdx
	movq	8(%r12), %rcx
	movq	_VMW_PORT_CMD_SENDSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r12), %r8d
	shll	$16, %r8d
	movq	_VMW_HYPERVISOR_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rcx, 40(%rsp)
	movq	%rdx, 32(%rsp)
	movq	%rbx, 8(%rsp)
	movq	%r15, %rsi
	callq	_VMW_PORT
	callq	_HIGH_WORD
	movq	_MESSAGE_STATUS_SUCCESS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	callq	_HIGH_WORD
	xorl	%edx, %edx
	movq	_MESSAGE_STATUS_HB@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	setne	%dl
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_vmw_port_hb_out
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_HIGH_WORD
	movq	_MESSAGE_STATUS_SUCCESS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_HIGH_WORD
	movq	_MESSAGE_STATUS_CPT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_1
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_4:
	xorl	%eax, %eax
LBB0_7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RETRIES,4,2                    ## @RETRIES
	.comm	_VMW_PORT_CMD_SENDSIZE,4,2      ## @VMW_PORT_CMD_SENDSIZE
	.comm	_VMW_HYPERVISOR_MAGIC,4,2       ## @VMW_HYPERVISOR_MAGIC
	.comm	_MESSAGE_STATUS_SUCCESS,4,2     ## @MESSAGE_STATUS_SUCCESS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MESSAGE_STATUS_HB,4,2          ## @MESSAGE_STATUS_HB
	.comm	_MESSAGE_STATUS_CPT,4,2         ## @MESSAGE_STATUS_CPT
	.no_dead_strip	_vmw_send_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_send_msg
_vmw_send_msg:                          ; @vmw_send_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_strlen
	mov	x21, x0
	mov	w23, #-1
Lloh0:
	adrp	x24, _RETRIES@GOTPAGE
Lloh1:
	ldr	x24, [x24, _RETRIES@GOTPAGEOFF]
Lloh2:
	adrp	x25, _VMW_PORT_CMD_SENDSIZE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _VMW_PORT_CMD_SENDSIZE@GOTPAGEOFF]
Lloh4:
	adrp	x26, _VMW_HYPERVISOR_MAGIC@GOTPAGE
Lloh5:
	ldr	x26, [x26, _VMW_HYPERVISOR_MAGIC@GOTPAGEOFF]
Lloh6:
	adrp	x27, _MESSAGE_STATUS_SUCCESS@GOTPAGE
Lloh7:
	ldr	x27, [x27, _MESSAGE_STATUS_SUCCESS@GOTPAGEOFF]
                                        ; implicit-def: $x22
Lloh8:
	adrp	x28, _MESSAGE_STATUS_CPT@GOTPAGE
Lloh9:
	ldr	x28, [x28, _MESSAGE_STATUS_CPT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	add	w23, w23, #1
	cmp	w23, w8
	b.ge	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	x2, x3, [x20]
	ldr	w0, [x25]
	ldr	w8, [x20, #16]
	lsl	w4, w8, #16
	ldr	w5, [x26]
	stp	x2, x3, [sp, #16]
	mov	x1, x21
	mov	x7, x22
	bl	_VMW_PORT
	bl	_HIGH_WORD
	ldr	w8, [x27]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_HIGH_WORD
Lloh10:
	adrp	x8, _MESSAGE_STATUS_HB@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MESSAGE_STATUS_HB@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w2, ne
	mov	x0, x20
	mov	x1, x19
	bl	_vmw_port_hb_out
	mov	x22, x0
	bl	_HIGH_WORD
	ldr	w8, [x27]
	tst	w8, w0
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	bl	_HIGH_WORD
	ldr	w8, [x28]
	tst	w8, w0
	b.ne	LBB0_1
LBB0_5:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_RETRIES,4,2                    ; @RETRIES
	.comm	_VMW_PORT_CMD_SENDSIZE,4,2      ; @VMW_PORT_CMD_SENDSIZE
	.comm	_VMW_HYPERVISOR_MAGIC,4,2       ; @VMW_HYPERVISOR_MAGIC
	.comm	_MESSAGE_STATUS_SUCCESS,4,2     ; @MESSAGE_STATUS_SUCCESS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MESSAGE_STATUS_HB,4,2          ; @MESSAGE_STATUS_HB
	.comm	_MESSAGE_STATUS_CPT,4,2         ; @MESSAGE_STATUS_CPT
	.no_dead_strip	_vmw_send_msg
.subsections_via_symbols
