	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_plane_check_stride       ## -- Begin function intel_plane_check_stride
	.p2align	4, 0x90
_intel_plane_check_stride:              ## @intel_plane_check_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	%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
	movl	24(%rdi), %edi
	callq	_to_intel_plane
	movq	%rax, %r12
	movq	16(%rbx), %r13
	movl	8(%rbx), %r15d
	movq	%rbx, %rdi
	callq	_intel_plane_can_remap
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpl	$0, 12(%rbx)
	je	LBB0_2
LBB0_3:
	movq	(%rbx), %rax
	movq	(%rax), %r14
	movq	8(%r13), %rax
	movl	(%rax), %esi
	movl	4(%r13), %edx
	movq	%r12, %rdi
	movl	%r15d, %ecx
	callq	*(%r12)
	xorl	%ecx, %ecx
	cmpq	%rax, %r14
	jle	LBB0_5
## %bb.4:
	movl	(%r13), %esi
	movl	8(%r12), %r8d
	movl	12(%r12), %ecx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rdx
	movq	%rax, %r9
	callq	_DRM_DEBUG_KMS
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_5
LBB0_2:
	xorl	%ecx, %ecx
LBB0_5:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[FB:%d] stride (%d) exceeds [PLANE:%d:%s] max stride (%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_plane_check_stride       ; -- Begin function intel_plane_check_stride
	.p2align	2
_intel_plane_check_stride:              ; @intel_plane_check_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	x21, x0
	ldr	w0, [x0, #24]
	bl	_to_intel_plane
	mov	x19, x0
	ldr	x22, [x21, #16]
	ldr	w20, [x21, #8]
	mov	x0, x21
	bl	_intel_plane_can_remap
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x21, #12]
	cbz	w8, LBB0_4
LBB0_2:
	ldr	x8, [x21]
	ldr	x21, [x8]
	ldr	x8, [x19]
	ldr	x9, [x22, #8]
	ldr	w1, [x9]
	ldr	w2, [x22, #4]
	mov	x0, x19
	mov	x3, x20
	blr	x8
	cmp	x21, x0
	b.le	LBB0_4
; %bb.3:
	mov	x5, x0
	ldr	w1, [x22]
	ldp	w4, w3, [x19, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_DRM_DEBUG_KMS
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[FB:%d] stride (%d) exceeds [PLANE:%d:%s] max stride (%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
