	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_host_log                   ## -- Begin function vmw_host_log
	.p2align	4, 0x90
_vmw_host_log:                          ## @vmw_host_log
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_vmw_msg_enabled@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rdx
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_kasprintf
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	_RPCI_PROTOCOL_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdi
	callq	_vmw_open_channel
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_vmw_send_msg
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_vmw_close_channel
	testq	%r12, %r12
	je	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	callq	_kfree
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_vmw_msg_enabled,4,2            ## @vmw_msg_enabled
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"log %s"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot allocate memory for host log message.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RPCI_PROTOCOL_NUM,4,2          ## @RPCI_PROTOCOL_NUM
L_.str.2:                               ## @.str.2
	.asciz	"Failed to send host log message.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_host_log                   ; -- Begin function vmw_host_log
	.p2align	2
_vmw_host_log:                          ; @vmw_host_log
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _vmw_msg_enabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vmw_msg_enabled@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x2, x0
	cbz	x0, LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_kasprintf
	cbz	x0, LBB0_8
; %bb.3:
	mov	x19, x0
Lloh8:
	adrp	x8, _RPCI_PROTOCOL_NUM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RPCI_PROTOCOL_NUM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_vmw_open_channel
	cbnz	x0, LBB0_5
; %bb.4:
	add	x0, sp, #8
	mov	x1, x19
	bl	_vmw_send_msg
	mov	x20, x0
	add	x0, sp, #8
	bl	_vmw_close_channel
	cbz	x20, LBB0_11
LBB0_5:
	mov	x0, x19
	bl	_kfree
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_11:
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_vmw_msg_enabled,4,2            ; @vmw_msg_enabled
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"log %s"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot allocate memory for host log message.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RPCI_PROTOCOL_NUM,4,2          ; @RPCI_PROTOCOL_NUM
l_.str.2:                               ; @.str.2
	.asciz	"Failed to send host log message.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
