	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_getparam_ioctl             ## -- Begin function vmw_getparam_ioctl
	.p2align	4, 0x90
_vmw_getparam_ioctl:                    ## @vmw_getparam_ioctl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	callq	_vmw_priv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_vmw_fpriv
	movl	(%r14), %ecx
	addl	$-128, %ecx
	cmpl	$14, %ecx
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	movl	28(%r15), %eax
	jmp	LBB0_31
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_33
LBB0_4:
	movl	32(%r15), %eax
	movq	_vmw_du_screen_target@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	sete	%dl
	movl	%edx, 4(%r14)
	jmp	LBB0_32
LBB0_5:
	movq	%r15, %rdi
	callq	_vmw_overlay_num_overlays
	jmp	LBB0_31
LBB0_6:
	movq	%r15, %rdi
	callq	_vmw_overlay_num_free_overlays
	jmp	LBB0_31
LBB0_7:
	movq	_SVGA_CAP_GBOBJECTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r15)
	je	LBB0_9
## %bb.8:
	cmpl	$0, (%rax)
	je	LBB0_27
LBB0_9:
	movl	16(%r15), %eax
	jmp	LBB0_31
LBB0_10:
	movl	20(%r15), %eax
	jmp	LBB0_31
LBB0_11:
	movl	$1, (%rax)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	12(%r15), %eax
	jmp	LBB0_31
LBB0_12:
	movl	8(%r15), %eax
	jmp	LBB0_31
LBB0_13:
	movl	4(%r15), %eax
	jmp	LBB0_31
LBB0_14:
	movl	(%r15), %eax
	jmp	LBB0_31
LBB0_15:
	movq	_SVGA_CAP_GBOBJECTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_25
## %bb.16:
	movq	_SVGA3D_HWVERSION_WS8_B1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_31
LBB0_17:
	movl	36(%r15), %eax
	jmp	LBB0_31
LBB0_18:
	movl	24(%r15), %eax
	jmp	LBB0_31
LBB0_19:
	movq	_SVGA_CAP_GBOBJECTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r15)
	je	LBB0_24
## %bb.20:
	cmpl	$0, (%rax)
	je	LBB0_28
## %bb.21:
	movq	_SVGA3D_DEVCAP_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	jmp	LBB0_31
LBB0_22:
	movq	%r15, %rdi
	callq	_vmw_fifo_have_3d
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
LBB0_23:
	movl	%ecx, 4(%r14)
	jmp	LBB0_32
LBB0_24:
	movq	_SVGA_FIFO_3D_CAPS_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SVGA_FIFO_3D_CAPS@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	leal	4(,%rax,4), %eax
	jmp	LBB0_31
LBB0_25:
	movq	_SVGA_FIFO_CAP_3D_HWVERSION_REVISED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	36(%r15), %eax
	jne	LBB0_29
## %bb.26:
	movq	_SVGA_FIFO_3D_HWVERSION@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_27:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	12(%r15), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	jmp	LBB0_23
LBB0_28:
	movl	$8, 4(%r14)
	jmp	LBB0_32
LBB0_29:
	movq	_SVGA_FIFO_3D_HWVERSION_REVISED@GOTPCREL(%rip), %rax
LBB0_30:
	movslq	(%rax), %rdi
	shlq	$2, %rdi
	addq	40(%r15), %rdi
	callq	_vmw_mmio_read
LBB0_31:
	movl	%eax, 4(%r14)
LBB0_32:
	xorl	%eax, %eax
LBB0_33:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_19
	.long	L0_0_set_22
	.end_data_region
                                        ## -- End function
	.comm	_SVGA_CAP_GBOBJECTS,4,2         ## @SVGA_CAP_GBOBJECTS
	.comm	_SVGA3D_HWVERSION_WS8_B1,4,2    ## @SVGA3D_HWVERSION_WS8_B1
	.comm	_SVGA_FIFO_CAP_3D_HWVERSION_REVISED,4,2 ## @SVGA_FIFO_CAP_3D_HWVERSION_REVISED
	.comm	_SVGA_FIFO_3D_HWVERSION_REVISED,4,2 ## @SVGA_FIFO_3D_HWVERSION_REVISED
	.comm	_SVGA_FIFO_3D_HWVERSION,4,2     ## @SVGA_FIFO_3D_HWVERSION
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_SVGA3D_DEVCAP_MAX,4,2          ## @SVGA3D_DEVCAP_MAX
	.comm	_SVGA_FIFO_3D_CAPS_LAST,8,3     ## @SVGA_FIFO_3D_CAPS_LAST
	.comm	_SVGA_FIFO_3D_CAPS,8,3          ## @SVGA_FIFO_3D_CAPS
	.comm	_vmw_du_screen_target,4,2       ## @vmw_du_screen_target
	.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_getparam_ioctl             ; -- Begin function vmw_getparam_ioctl
	.p2align	2
_vmw_getparam_ioctl:                    ; @vmw_getparam_ioctl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x19, x1
	bl	_vmw_priv
	mov	x20, x0
	mov	x0, x21
	bl	_vmw_fpriv
	ldr	w9, [x19]
	sub	w9, w9, #128
	cmp	w9, #14
	b.hi	LBB0_3
; %bb.1:
	mov	x8, x0
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	mov	w0, #0
	ldr	w8, [x20, #28]
	b	LBB0_25
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_26
LBB0_4:
	mov	w0, #0
	ldr	w8, [x20, #32]
Lloh5:
	adrp	x9, _vmw_du_screen_target@GOTPAGE
Lloh6:
	ldr	x9, [x9, _vmw_du_screen_target@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w8, eq
	b	LBB0_25
LBB0_5:
	mov	x0, x20
	bl	_vmw_overlay_num_overlays
	b	LBB0_24
LBB0_6:
	mov	x0, x20
	bl	_vmw_overlay_num_free_overlays
	b	LBB0_24
LBB0_7:
	ldr	w9, [x20]
Lloh8:
	adrp	x10, _SVGA_CAP_GBOBJECTS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SVGA_CAP_GBOBJECTS@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.8:
	ldr	w8, [x8]
	cbz	w8, LBB0_28
LBB0_9:
	mov	w0, #0
	ldr	w8, [x20, #16]
	b	LBB0_25
LBB0_10:
	mov	w0, #0
	ldr	w8, [x20, #20]
	b	LBB0_25
LBB0_11:
	mov	w0, #0
	mov	w9, #1
	str	w9, [x8]
	ldr	w8, [x20, #12]
Lloh11:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	mul	w8, w9, w8
	b	LBB0_25
LBB0_12:
	mov	w0, #0
	ldr	w8, [x20, #8]
	b	LBB0_25
LBB0_13:
	mov	w0, #0
	ldr	w8, [x20, #4]
	b	LBB0_25
LBB0_14:
	mov	w0, #0
	ldr	w8, [x20]
	b	LBB0_25
LBB0_15:
	ldr	w8, [x20]
Lloh14:
	adrp	x9, _SVGA_CAP_GBOBJECTS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SVGA_CAP_GBOBJECTS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.16:
	mov	w0, #0
Lloh17:
	adrp	x8, _SVGA3D_HWVERSION_WS8_B1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SVGA3D_HWVERSION_WS8_B1@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	b	LBB0_25
LBB0_17:
	mov	w0, #0
	ldr	w8, [x20, #36]
	b	LBB0_25
LBB0_18:
	mov	w0, #0
	ldr	w8, [x20, #24]
	b	LBB0_25
LBB0_19:
	ldr	w9, [x20]
Lloh20:
	adrp	x10, _SVGA_CAP_GBOBJECTS@GOTPAGE
Lloh21:
	ldr	x10, [x10, _SVGA_CAP_GBOBJECTS@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_27
; %bb.20:
	ldr	w8, [x8]
	cbz	w8, LBB0_29
; %bb.21:
	mov	w0, #0
Lloh23:
	adrp	x8, _SVGA3D_DEVCAP_MAX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SVGA3D_DEVCAP_MAX@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	lsl	w8, w8, #2
	b	LBB0_25
LBB0_22:
	mov	x0, x20
	bl	_vmw_fifo_have_3d
	mov	x8, x0
	mov	w0, #0
	cmp	w8, #0
	cset	w8, ne
	b	LBB0_25
LBB0_23:
	ldr	x8, [x20, #40]
	ldr	w9, [x20, #36]
Lloh26:
	adrp	x10, _SVGA_FIFO_CAP_3D_HWVERSION_REVISED@GOTPAGE
Lloh27:
	ldr	x10, [x10, _SVGA_FIFO_CAP_3D_HWVERSION_REVISED@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
Lloh29:
	adrp	x11, _SVGA_FIFO_3D_HWVERSION_REVISED@GOTPAGE
Lloh30:
	ldr	x11, [x11, _SVGA_FIFO_3D_HWVERSION_REVISED@GOTPAGEOFF]
Lloh31:
	adrp	x12, _SVGA_FIFO_3D_HWVERSION@GOTPAGE
Lloh32:
	ldr	x12, [x12, _SVGA_FIFO_3D_HWVERSION@GOTPAGEOFF]
	tst	w10, w9
	csel	x9, x12, x11, eq
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_vmw_mmio_read
LBB0_24:
	mov	x8, x0
	mov	w0, #0
LBB0_25:
	str	w8, [x19, #4]
LBB0_26:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_27:
	mov	w0, #0
Lloh33:
	adrp	x8, _SVGA_FIFO_3D_CAPS_LAST@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SVGA_FIFO_3D_CAPS_LAST@GOTPAGEOFF]
Lloh35:
	adrp	x9, _SVGA_FIFO_3D_CAPS@GOTPAGE
Lloh36:
	ldr	x9, [x9, _SVGA_FIFO_3D_CAPS@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	ldr	w9, [x9]
	sub	w8, w8, w9
	lsl	w8, w8, #2
	add	w8, w8, #4
	b	LBB0_25
LBB0_28:
	mov	w0, #0
	ldr	w8, [x20, #12]
Lloh39:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	mul	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	b	LBB0_25
LBB0_29:
	mov	w0, #0
	mov	w8, #8
	b	LBB0_25
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh37
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
                                        ; -- End function
	.comm	_SVGA_CAP_GBOBJECTS,4,2         ; @SVGA_CAP_GBOBJECTS
	.comm	_SVGA3D_HWVERSION_WS8_B1,4,2    ; @SVGA3D_HWVERSION_WS8_B1
	.comm	_SVGA_FIFO_CAP_3D_HWVERSION_REVISED,4,2 ; @SVGA_FIFO_CAP_3D_HWVERSION_REVISED
	.comm	_SVGA_FIFO_3D_HWVERSION_REVISED,4,2 ; @SVGA_FIFO_3D_HWVERSION_REVISED
	.comm	_SVGA_FIFO_3D_HWVERSION,4,2     ; @SVGA_FIFO_3D_HWVERSION
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_SVGA3D_DEVCAP_MAX,4,2          ; @SVGA3D_DEVCAP_MAX
	.comm	_SVGA_FIFO_3D_CAPS_LAST,8,3     ; @SVGA_FIFO_3D_CAPS_LAST
	.comm	_SVGA_FIFO_3D_CAPS,8,3          ; @SVGA_FIFO_3D_CAPS
	.comm	_vmw_du_screen_target,4,2       ; @vmw_du_screen_target
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
