	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i9xx_cursor_ctl
_i9xx_cursor_ctl:                       ## @i9xx_cursor_ctl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	8(%rsi), %rax
	movl	(%rax), %edi
	callq	_to_i915
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$6, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_IS_IVYBRIDGE
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	_MCURSOR_TRICKLE_FEED_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movl	(%r14), %edi
	cmpl	$64, %edi
	je	LBB0_5
## %bb.6:
	cmpl	$256, %edi                      ## imm = 0x100
	je	LBB0_10
## %bb.7:
	cmpl	$128, %edi
	jne	LBB0_9
## %bb.8:
	movq	_MCURSOR_MODE_128_ARGB_AX@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_5:
	movq	_MCURSOR_MODE_64_ARGB_AX@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_10:
	movq	_MCURSOR_MODE_256_ARGB_AX@GOTPCREL(%rip), %rcx
LBB0_11:
	orl	(%rcx), %eax
	movq	_DRM_MODE_ROTATE_180@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	4(%r14), %ecx
	je	LBB0_13
## %bb.12:
	movq	_MCURSOR_ROTATE_180@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_13:
	orl	%ecx, %eax
	jmp	LBB0_14
LBB0_9:
	callq	_MISSING_CASE
	xorl	%eax, %eax
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_MCURSOR_TRICKLE_FEED_DISABLE,4,2 ## @MCURSOR_TRICKLE_FEED_DISABLE
	.comm	_MCURSOR_MODE_64_ARGB_AX,4,2    ## @MCURSOR_MODE_64_ARGB_AX
	.comm	_MCURSOR_MODE_128_ARGB_AX,4,2   ## @MCURSOR_MODE_128_ARGB_AX
	.comm	_MCURSOR_MODE_256_ARGB_AX,4,2   ## @MCURSOR_MODE_256_ARGB_AX
	.comm	_DRM_MODE_ROTATE_180,4,2        ## @DRM_MODE_ROTATE_180
	.comm	_MCURSOR_ROTATE_180,4,2         ## @MCURSOR_ROTATE_180
	.no_dead_strip	_i9xx_cursor_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i9xx_cursor_ctl
_i9xx_cursor_ctl:                       ; @i9xx_cursor_ctl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x8, [x1, #8]
	ldr	w0, [x8]
	bl	_to_i915
	mov	x20, x0
	mov	w1, #6
	bl	_IS_GEN
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_IS_IVYBRIDGE
	cbz	x0, LBB0_12
LBB0_2:
Lloh0:
	adrp	x8, _MCURSOR_TRICKLE_FEED_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCURSOR_TRICKLE_FEED_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
LBB0_3:
	ldr	w0, [x19]
	cmp	w0, #64
	b.eq	LBB0_7
; %bb.4:
	cmp	w0, #256
	b.eq	LBB0_8
; %bb.5:
	cmp	w0, #128
	b.ne	LBB0_10
; %bb.6:
Lloh3:
	adrp	x9, _MCURSOR_MODE_128_ARGB_AX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MCURSOR_MODE_128_ARGB_AX@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh5:
	adrp	x9, _MCURSOR_MODE_64_ARGB_AX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MCURSOR_MODE_64_ARGB_AX@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh7:
	adrp	x9, _MCURSOR_MODE_256_ARGB_AX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MCURSOR_MODE_256_ARGB_AX@GOTPAGEOFF]
LBB0_9:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #4]
Lloh9:
	adrp	x10, _DRM_MODE_ROTATE_180@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DRM_MODE_ROTATE_180@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _MCURSOR_ROTATE_180@GOTPAGE
Lloh13:
	ldr	x11, [x11, _MCURSOR_ROTATE_180@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w0, w8, w9
	b	LBB0_11
LBB0_10:
	bl	_MISSING_CASE
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w8, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MCURSOR_TRICKLE_FEED_DISABLE,4,2 ; @MCURSOR_TRICKLE_FEED_DISABLE
	.comm	_MCURSOR_MODE_64_ARGB_AX,4,2    ; @MCURSOR_MODE_64_ARGB_AX
	.comm	_MCURSOR_MODE_128_ARGB_AX,4,2   ; @MCURSOR_MODE_128_ARGB_AX
	.comm	_MCURSOR_MODE_256_ARGB_AX,4,2   ; @MCURSOR_MODE_256_ARGB_AX
	.comm	_DRM_MODE_ROTATE_180,4,2        ; @DRM_MODE_ROTATE_180
	.comm	_MCURSOR_ROTATE_180,4,2         ; @MCURSOR_ROTATE_180
	.no_dead_strip	_i9xx_cursor_ctl
.subsections_via_symbols
