	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_cmd_check
_vmw_cmd_check:                         ## @vmw_cmd_check
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	(%rcx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_SVGA_CAP_GBOBJECTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	andl	(%rdi), %r14d
	movq	(%rdx), %rax
	movq	_SVGA_CMD_MAX@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.19:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vmw_cmd_check_not_3d           ## TAILCALL
LBB0_1:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r14
	movq	8(%rbx), %rax
	addq	$16, %rax
	movq	%rax, (%r15)
	movq	_SVGA_3D_CMD_BASE@GOTPCREL(%rip), %r12
	subq	(%r12), %r14
	xorl	%edi, %edi
	cmpq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_12
## %bb.2:
	movq	%rbx, %r13
	movq	_SVGA_3D_CMD_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	(%r12), %rax
	xorl	%edi, %edi
	cmpq	%rax, %r14
	setge	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_12
## %bb.3:
	movq	_vmw_cmd_entries@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r14, %r15
	shlq	$5, %r15
	xorl	%edi, %edi
	cmpq	$0, (%rbx,%r15)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
LBB0_12:
	addq	(%r12), %r14
	leaq	L_.str.1(%rip), %rdi
LBB0_16:
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_VMW_DEBUG_USER
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_17:
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%edi, %edi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, 24(%rbx,%r15)
	jne	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	sete	%dil
LBB0_6:
	callq	_unlikely
	testq	%rax, %rax
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_7
## %bb.13:
	addq	(%r12), %r14
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_VMW_DEBUG_USER
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 16(%rax,%r15)
	setne	%al
	testl	%ebx, %ebx
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.14:
	addq	(%r12), %r14
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_16
LBB0_8:
	testl	%ebx, %ebx
	sete	%al
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, 8(%rbx,%r15)
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.15:
	addq	(%r12), %r14
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_16
LBB0_9:
	movq	%rbx, %rcx
	addq	%r15, %rcx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	*(%rcx)
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	addq	(%r12), %r14
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_VMW_DEBUG_USER
	jmp	LBB0_18
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_SVGA_CAP_GBOBJECTS,4,2         ## @SVGA_CAP_GBOBJECTS
	.comm	_SVGA_CMD_MAX,8,3               ## @SVGA_CMD_MAX
	.comm	_SVGA_3D_CMD_BASE,8,3           ## @SVGA_3D_CMD_BASE
	.comm	_SVGA_3D_CMD_MAX,8,3            ## @SVGA_3D_CMD_MAX
	.comm	_vmw_cmd_entries,8,3            ## @vmw_cmd_entries
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SVGA3D command: %d failed with error %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid SVGA3D command: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Privileged SVGA3D command: %d\n"

	.comm	_EPERM,4,2                      ## @EPERM
L_.str.3:                               ## @.str.3
	.asciz	"Deprecated (disallowed) SVGA3D command: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"SVGA3D command: %d not supported by virtual device.\n"

	.no_dead_strip	_vmw_cmd_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_cmd_check
_vmw_cmd_check:                         ; @vmw_cmd_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x26, [x3]
	ldr	w24, [x0]
Lloh0:
	adrp	x8, _SVGA_CAP_GBOBJECTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVGA_CAP_GBOBJECTS@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	ldr	x8, [x2]
Lloh3:
	adrp	x9, _SVGA_CMD_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SVGA_CMD_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_vmw_cmd_check_not_3d
LBB0_2:
	ldp	x8, x9, [x19]
	add	x9, x9, #16
	str	x9, [x22]
Lloh6:
	adrp	x23, _SVGA_3D_CMD_BASE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _SVGA_3D_CMD_BASE@GOTPAGEOFF]
	ldr	x10, [x23]
	sub	x22, x8, x10
	cmp	x9, x26
	cset	w0, gt
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _SVGA_3D_CMD_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SVGA_3D_CMD_MAX@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x23]
	sub	x8, x8, x9
	cmp	x22, x8
	cset	w0, ge
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _vmw_cmd_entries@GOTPAGE
Lloh12:
	ldr	x8, [x8, _vmw_cmd_entries@GOTPAGEOFF]
Lloh13:
	ldr	x27, [x8]
	add	x26, x27, x22, lsl #5
	ldr	x8, [x26]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_9
LBB0_5:
	ldr	x8, [x23]
	add	x1, x8, x22
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_VMW_DEBUG_USER
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	ldr	w8, [x26, #24]
	cbz	w8, LBB0_11
; %bb.10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w0, eq
LBB0_12:
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x8, [x23]
	add	x1, x8, x22
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_VMW_DEBUG_USER
Lloh20:
	adrp	x8, _EPERM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_7
LBB0_14:
	and	w24, w25, w24
	add	x25, x27, x22, lsl #5
	ldr	x8, [x25, #16]
	cmp	x8, #0
	ccmp	w24, #0, #4, ne
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_16
; %bb.15:
	ldr	x8, [x23]
	add	x1, x8, x22
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_16:
	ldr	x8, [x25, #8]
	cmp	x8, #0
	ccmp	w24, #0, #0, ne
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_18
; %bb.17:
	ldr	x8, [x23]
	add	x1, x8, x22
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_18:
	ldr	x8, [x26]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	blr	x8
	mov	x19, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_20
; %bb.19:
	ldr	x8, [x23]
	add	x1, x8, x22
	str	x19, [sp]
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	bl	_VMW_DEBUG_USER
	b	LBB0_8
LBB0_20:
	mov	w19, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_SVGA_CAP_GBOBJECTS,4,2         ; @SVGA_CAP_GBOBJECTS
	.comm	_SVGA_CMD_MAX,8,3               ; @SVGA_CMD_MAX
	.comm	_SVGA_3D_CMD_BASE,8,3           ; @SVGA_3D_CMD_BASE
	.comm	_SVGA_3D_CMD_MAX,8,3            ; @SVGA_3D_CMD_MAX
	.comm	_vmw_cmd_entries,8,3            ; @vmw_cmd_entries
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SVGA3D command: %d failed with error %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid SVGA3D command: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Privileged SVGA3D command: %d\n"

	.comm	_EPERM,4,2                      ; @EPERM
l_.str.3:                               ; @.str.3
	.asciz	"Deprecated (disallowed) SVGA3D command: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"SVGA3D command: %d not supported by virtual device.\n"

	.no_dead_strip	_vmw_cmd_check
.subsections_via_symbols
