	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i9xx_cursor_size_ok
_i9xx_cursor_size_ok:                   ## @i9xx_cursor_size_ok
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	callq	_to_i915
	movq	%rax, %r15
	movl	(%rbx), %r12d
	movl	4(%rbx), %r13d
	movq	%rbx, %rdi
	callq	_intel_cursor_size_ok
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	cmpl	$64, %r12d
	je	LBB0_4
## %bb.2:
	cmpl	$256, %r12d                     ## imm = 0x100
	je	LBB0_4
## %bb.3:
	cmpl	$128, %r12d
	jne	LBB0_10
LBB0_4:
	movq	%r15, %rdi
	callq	_HAS_CUR_FBC
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	_DRM_MODE_ROTATE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_8
## %bb.6:
	cmpl	$8, %r13d
	jl	LBB0_10
## %bb.7:
	cmpl	%r12d, %r13d
	jle	LBB0_9
	jmp	LBB0_10
LBB0_8:
	cmpl	%r12d, %r13d
	jne	LBB0_10
LBB0_9:
	movl	$1, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_ROTATE_0,4,2          ## @DRM_MODE_ROTATE_0
	.no_dead_strip	_i9xx_cursor_size_ok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i9xx_cursor_size_ok
_i9xx_cursor_size_ok:                   ; @i9xx_cursor_size_ok
	.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	x19, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	bl	_to_i915
	mov	x20, x0
	ldp	w21, w22, [x19]
	mov	x0, x19
	bl	_intel_cursor_size_ok
	cbz	w0, LBB0_11
; %bb.1:
	cmp	w21, #64
	b.eq	LBB0_4
; %bb.2:
	cmp	w21, #256
	b.eq	LBB0_4
; %bb.3:
	cmp	w21, #128
	b.ne	LBB0_10
LBB0_4:
	mov	x0, x20
	bl	_HAS_CUR_FBC
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x9, _DRM_MODE_ROTATE_0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_ROTATE_0@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	mov	w0, #0
	cmp	w22, #8
	b.lt	LBB0_11
; %bb.7:
	cmp	w22, w21
	b.le	LBB0_9
	b	LBB0_11
LBB0_8:
	cmp	w22, w21
	b.ne	LBB0_10
LBB0_9:
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_ROTATE_0,4,2          ; @DRM_MODE_ROTATE_0
	.no_dead_strip	_i9xx_cursor_size_ok
.subsections_via_symbols
