	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_host_get_guestinfo         ## -- Begin function vmw_host_get_guestinfo
	.p2align	4, 0x90
_vmw_host_get_guestinfo:                ## @vmw_host_get_guestinfo
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	_vmw_msg_enabled@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.3:
	movq	%rdx, %r12
	testq	%rdx, %rdx
	je	LBB0_17
## %bb.4:
	movq	%rsi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_kasprintf
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	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_16
## %bb.7:
	leaq	-40(%rbp), %rdi
	movq	%r14, %rsi
	callq	_vmw_send_msg
	testq	%rax, %rax
	jne	LBB0_15
## %bb.8:
	leaq	-40(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_vmw_recv_msg
	testq	%rax, %rax
	je	LBB0_9
LBB0_15:
	leaq	-40(%rbp), %rdi
	callq	_vmw_close_channel
	movq	-56(%rbp), %rdi
	callq	_kfree
LBB0_16:
	movq	$0, (%r12)
	movq	%r14, %rdi
	callq	_kfree
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	callq	_DRM_ERROR
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_DRM_ERROR
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_18:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	-40(%rbp), %rdi
	callq	_vmw_close_channel
	movq	-48(%rbp), %rdi
	testq	%r15, %r15
	je	LBB0_14
## %bb.10:
	cmpq	$0, -56(%rbp)
	je	LBB0_14
## %bb.11:
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.12:
	addq	$-2, %rdi
	xorl	%esi, %esi
	callq	_max
	movq	%rax, -48(%rbp)
	movq	(%r12), %rsi
	movq	%rax, %rdi
	callq	_min
	movq	%rax, -48(%rbp)
	movl	$0, %edi
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	-56(%rbp), %rsi
	addq	$2, %rsi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_memcpy
	movq	-48(%rbp), %rdi
LBB0_14:
	movq	%rdi, (%r12)
	movq	-56(%rbp), %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_kfree
	xorl	%eax, %eax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_vmw_msg_enabled,4,2            ## @vmw_msg_enabled
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"info-get %s"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot allocate memory to get guest info \"%s\"."

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RPCI_PROTOCOL_NUM,4,2          ## @RPCI_PROTOCOL_NUM
L_.str.2:                               ## @.str.2
	.asciz	"Failed to get guest info \"%s\"."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_host_get_guestinfo         ; -- Begin function vmw_host_get_guestinfo
	.p2align	2
_vmw_host_get_guestinfo:                ; @vmw_host_get_guestinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	stp	xzr, xzr, [sp, #8]
Lloh0:
	adrp	x8, _vmw_msg_enabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vmw_msg_enabled@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.1:
	mov	x22, x0
	cbz	x0, LBB0_9
; %bb.2:
	mov	x19, x2
	cbz	x2, LBB0_9
; %bb.3:
	mov	x21, x1
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
	mov	x2, x22
	bl	_kasprintf
	cbz	x0, LBB0_11
; %bb.4:
	mov	x20, x0
Lloh8:
	adrp	x8, _RPCI_PROTOCOL_NUM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RPCI_PROTOCOL_NUM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x0, sp, #24
	bl	_vmw_open_channel
	cbnz	x0, LBB0_8
; %bb.5:
	add	x0, sp, #24
	mov	x1, x20
	bl	_vmw_send_msg
	cbnz	x0, LBB0_7
; %bb.6:
	add	x0, sp, #24
	add	x1, sp, #16
	add	x2, sp, #8
	bl	_vmw_recv_msg
	cbz	x0, LBB0_14
LBB0_7:
	add	x0, sp, #24
	bl	_vmw_close_channel
	ldr	x0, [sp, #16]
	bl	_kfree
LBB0_8:
	str	xzr, [x19]
	mov	x0, x20
	bl	_kfree
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	bl	_DRM_ERROR
LBB0_9:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_DRM_ERROR
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
	add	x0, sp, #24
	bl	_vmw_close_channel
	ldr	x8, [sp, #8]
	cbz	x21, LBB0_20
; %bb.15:
	ldr	x9, [sp, #16]
	cbz	x9, LBB0_20
; %bb.16:
	cbz	x8, LBB0_20
; %bb.17:
	sub	x0, x8, #2
	mov	x1, #0
	bl	_max
	str	x0, [sp, #8]
	ldr	x1, [x19]
	bl	_min
	str	x0, [sp, #8]
	cbz	x0, LBB0_19
; %bb.18:
	mov	x2, x0
	ldr	x8, [sp, #16]
	add	x1, x8, #2
	mov	x0, x21
	bl	_memcpy
	ldr	x8, [sp, #8]
	b	LBB0_20
LBB0_19:
	mov	x8, #0
LBB0_20:
	str	x8, [x19]
	ldr	x0, [sp, #16]
	bl	_kfree
	mov	x0, x20
	bl	_kfree
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.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	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"info-get %s"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot allocate memory to get guest info \"%s\"."

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RPCI_PROTOCOL_NUM,4,2          ; @RPCI_PROTOCOL_NUM
l_.str.2:                               ; @.str.2
	.asciz	"Failed to get guest info \"%s\"."

.subsections_via_symbols
