	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_tiling_ok
_i915_tiling_ok:                        ## @i915_tiling_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
	movl	%ecx, %ebx
	movq	_I915_TILING_NONE@GOTPCREL(%rip), %rcx
	movb	$1, %al
	cmpl	%ebx, (%rcx)
	je	LBB0_21
## %bb.1:
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_IS_GEN2
	movl	$128, %r13d
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	_I915_TILING_Y@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_HAS_128_BYTE_Y_TILING
	testq	%rax, %rax
	jne	LBB0_5
LBB0_4:
	movl	$512, %r13d                     ## imm = 0x200
LBB0_5:
	movq	%r12, %rdi
	callq	_INTEL_INFO
	cmpl	$4, (%rax)
	jl	LBB0_8
## %bb.6:
	leal	127(%r14), %eax
	testl	%r14d, %r14d
	cmovnsl	%r14d, %eax
	sarl	$7, %eax
	movq	_I965_FENCE_MAX_PITCH_VAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_15
	jmp	LBB0_7
LBB0_8:
	cmpl	$8192, %r14d                    ## imm = 0x2000
	jg	LBB0_7
## %bb.10:
	movq	%r12, %rdi
	callq	_IS_GEN3
	movq	_I830_FENCE_MAX_SIZE_VAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	shll	$20, %ecx
	cmpl	%r15d, %ecx
	jl	LBB0_7
	jmp	LBB0_15
LBB0_13:
	shll	$19, %ecx
	cmpl	%r15d, %ecx
	jl	LBB0_7
LBB0_15:
	movq	%r12, %rdi
	callq	_INTEL_INFO
	cmpl	$4, (%rax)
	jl	LBB0_17
## %bb.16:
	decl	%r13d
	testl	%r14d, %r13d
	jmp	LBB0_20
LBB0_17:
	cmpl	%r14d, %r13d
	jle	LBB0_19
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_19:
	leal	-1(%r14), %eax
	testl	%eax, %r14d
LBB0_20:
	sete	%al
LBB0_21:
	movzbl	%al, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_TILING_NONE,4,2           ## @I915_TILING_NONE
	.comm	_I915_TILING_Y,4,2              ## @I915_TILING_Y
	.comm	_I965_FENCE_MAX_PITCH_VAL,4,2   ## @I965_FENCE_MAX_PITCH_VAL
	.comm	_I830_FENCE_MAX_SIZE_VAL,4,2    ## @I830_FENCE_MAX_SIZE_VAL
	.no_dead_strip	_i915_tiling_ok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_tiling_ok
_i915_tiling_ok:                        ; @i915_tiling_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
Lloh0:
	adrp	x8, _I915_TILING_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_TILING_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w3
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_15
LBB0_2:
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_IS_GEN2
	cbz	x0, LBB0_4
LBB0_3:
	mov	w22, #128
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _I915_TILING_Y@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I915_TILING_Y@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_HAS_128_BYTE_Y_TILING
	cbnz	x0, LBB0_3
LBB0_6:
	mov	w22, #512
LBB0_7:
	mov	x0, x20
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #4
	b.lt	LBB0_9
; %bb.8:
	add	w8, w19, #127
	cmp	w19, #0
	csel	w8, w8, w19, lt
Lloh6:
	adrp	x9, _I965_FENCE_MAX_PITCH_VAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I965_FENCE_MAX_PITCH_VAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w9, w8, asr #7
	b.ge	LBB0_14
	b	LBB0_12
LBB0_9:
	cmp	w19, #2, lsl #12                ; =8192
	b.gt	LBB0_12
; %bb.10:
	mov	x0, x20
	bl	_IS_GEN3
Lloh9:
	adrp	x8, _I830_FENCE_MAX_SIZE_VAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I830_FENCE_MAX_SIZE_VAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cbz	x0, LBB0_13
; %bb.11:
	cmp	w21, w8, lsl #20
	b.le	LBB0_14
LBB0_12:
	mov	w0, #0
	b	LBB0_15
LBB0_13:
	cmp	w21, w8, lsl #19
	b.gt	LBB0_12
LBB0_14:
	mov	x0, x20
	bl	_INTEL_INFO
	ldr	w8, [x0]
	sub	w9, w19, #1
	tst	w19, w9
	cset	w9, eq
	cmp	w22, w19
	csel	w9, wzr, w9, gt
	sub	w10, w22, #1
	tst	w10, w19
	cset	w10, eq
	cmp	w8, #4
	csel	w0, w9, w10, lt
LBB0_15:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_TILING_NONE,4,2           ; @I915_TILING_NONE
	.comm	_I915_TILING_Y,4,2              ; @I915_TILING_Y
	.comm	_I965_FENCE_MAX_PITCH_VAL,4,2   ; @I965_FENCE_MAX_PITCH_VAL
	.comm	_I830_FENCE_MAX_SIZE_VAL,4,2    ; @I830_FENCE_MAX_SIZE_VAL
	.no_dead_strip	_i915_tiling_ok
.subsections_via_symbols
