	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i9xx_plane_max_stride          ## -- Begin function i9xx_plane_max_stride
	.p2align	4, 0x90
_i9xx_plane_max_stride:                 ## @i9xx_plane_max_stride
	.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, %r14
	movq	%rdi, %r15
	movl	8(%rdi), %edi
	callq	_to_i915
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_HAS_GMCH
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	cmpl	$4, %eax
	jl	LBB0_4
## %bb.3:
	movq	_I915_FORMAT_MOD_X_TILED@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	%r14, (%rcx)
	setne	%al
	shll	$14, %eax
	addl	$16384, %eax                    ## imm = 0x4000
	jmp	LBB0_7
LBB0_1:
	movl	$32768, %eax                    ## imm = 0x8000
	jmp	LBB0_7
LBB0_4:
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	cmpl	$3, %eax
	jl	LBB0_6
## %bb.5:
	movq	_I915_FORMAT_MOD_X_TILED@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	%r14, (%rcx)
	setne	%al
	shll	$13, %eax
	addl	$8192, %eax                     ## imm = 0x2000
	jmp	LBB0_7
LBB0_6:
	movq	(%r15), %rcx
	movq	_PLANE_C@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	setne	%al
	shll	$12, %eax
	addl	$4096, %eax                     ## imm = 0x1000
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_FORMAT_MOD_X_TILED,8,3    ## @I915_FORMAT_MOD_X_TILED
	.comm	_PLANE_C,8,3                    ## @PLANE_C
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i9xx_plane_max_stride          ; -- Begin function i9xx_plane_max_stride
	.p2align	2
_i9xx_plane_max_stride:                 ; @i9xx_plane_max_stride
	.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, x2
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_to_i915
	mov	x21, x0
	bl	_HAS_GMCH
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_INTEL_GEN
	cmp	w0, #3
	b.le	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _I915_FORMAT_MOD_X_TILED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_FORMAT_MOD_X_TILED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x19
	mov	w8, #32768
	mov	w9, #16384
	b	LBB0_7
LBB0_3:
	mov	w0, #32768
	b	LBB0_8
LBB0_4:
	mov	x0, x21
	bl	_INTEL_GEN
	cmp	w0, #3
	b.lt	LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _I915_FORMAT_MOD_X_TILED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I915_FORMAT_MOD_X_TILED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x19
	mov	w8, #16384
	mov	w9, #8192
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _PLANE_C@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PLANE_C@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh8:
	ldr	x8, [x8]
	cmp	x9, x8
	mov	w8, #8192
	mov	w9, #4096
LBB0_7:
	csel	w0, w9, w8, eq
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_FORMAT_MOD_X_TILED,8,3    ; @I915_FORMAT_MOD_X_TILED
	.comm	_PLANE_C,8,3                    ; @PLANE_C
.subsections_via_symbols
