	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_plane_check_fb
_skl_plane_check_fb:                    ## @skl_plane_check_fb
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	16(%rsi), %edi
	callq	_to_intel_plane
	movl	(%rax), %edi
	callq	_to_i915
	movq	8(%rbx), %r13
	xorl	%r12d, %r12d
	testq	%r13, %r13
	je	LBB0_26
## %bb.1:
	movq	%rax, %r15
	movl	(%rbx), %ebx
	movq	_DRM_MODE_ROTATE_0@GOTPCREL(%rip), %rax
	movq	_DRM_MODE_ROTATE_180@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	testl	%ecx, %ebx
	je	LBB0_5
## %bb.2:
	movq	(%r13), %rdi
	callq	_is_ccs_modifier
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%ebx, %esi
	jmp	LBB0_4
LBB0_5:
	movq	_DRM_MODE_REFLECT_X@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.6:
	movq	(%r13), %rax
	movq	_DRM_FORMAT_MOD_LINEAR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_24
LBB0_8:
	movl	%ebx, %edi
	callq	_drm_rotation_90_or_270
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:
	movq	(%r13), %rax
	movq	_I915_FORMAT_MOD_Y_TILED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.10:
	movq	_I915_FORMAT_MOD_Yf_TILED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_24
LBB0_12:
	movq	8(%r13), %rax
	movl	(%rax), %edi
	leal	-128(%rdi), %eax
	cmpl	$10, %eax
	ja	LBB0_17
## %bb.13:
	cmpl	$7, %eax
	je	LBB0_14
LBB0_16:
	leaq	-48(%rbp), %rsi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_drm_get_format_name
	leaq	L_.str.3(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%eax, %esi
LBB0_4:
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_25
LBB0_14:
	movq	%r15, %rdi
	callq	_INTEL_GEN
	cmpl	$10, %eax
	jle	LBB0_15
LBB0_17:
	cmpq	$0, 8(%r14)
	je	LBB0_26
## %bb.18:
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_26
## %bb.19:
	movq	(%r13), %rax
	movq	_I915_FORMAT_MOD_Y_TILED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.20:
	movq	_I915_FORMAT_MOD_Yf_TILED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.21:
	movq	_I915_FORMAT_MOD_Y_TILED_CCS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.22:
	movq	_I915_FORMAT_MOD_Yf_TILED_CCS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
LBB0_23:
	leaq	L_.str.4(%rip), %rdi
LBB0_24:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_25:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_26:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	8(%r13), %rax
	movl	(%rax), %edi
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_ROTATE_0,4,2          ## @DRM_MODE_ROTATE_0
	.comm	_DRM_MODE_ROTATE_180,4,2        ## @DRM_MODE_ROTATE_180
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RC support only with 0/180 degree rotation (%x)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRM_MODE_REFLECT_X,4,2         ## @DRM_MODE_REFLECT_X
	.comm	_DRM_FORMAT_MOD_LINEAR,8,3      ## @DRM_FORMAT_MOD_LINEAR
L_.str.1:                               ## @.str.1
	.asciz	"horizontal flip is not supported with linear surface formats\n"

	.comm	_I915_FORMAT_MOD_Y_TILED,8,3    ## @I915_FORMAT_MOD_Y_TILED
	.comm	_I915_FORMAT_MOD_Yf_TILED,8,3   ## @I915_FORMAT_MOD_Yf_TILED
L_.str.2:                               ## @.str.2
	.asciz	"Y/Yf tiling required for 90/270!\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unsupported pixel format %s for 90/270!\n"

	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.comm	_I915_FORMAT_MOD_Y_TILED_CCS,8,3 ## @I915_FORMAT_MOD_Y_TILED_CCS
	.comm	_I915_FORMAT_MOD_Yf_TILED_CCS,8,3 ## @I915_FORMAT_MOD_Yf_TILED_CCS
L_.str.4:                               ## @.str.4
	.asciz	"Y/Yf tiling not supported in IF-ID mode\n"

	.no_dead_strip	_skl_plane_check_fb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skl_plane_check_fb
_skl_plane_check_fb:                    ; @skl_plane_check_fb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x19, x0
	ldr	w0, [x1, #16]
	bl	_to_intel_plane
	ldr	w0, [x0]
	bl	_to_i915
	ldr	x22, [x21, #8]
	cbz	x22, LBB0_20
; %bb.1:
	mov	x20, x0
	ldr	w21, [x21]
Lloh0:
	adrp	x8, _DRM_MODE_ROTATE_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_ROTATE_0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DRM_MODE_ROTATE_180@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_MODE_ROTATE_180@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bics	wzr, w21, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	x0, [x22]
	bl	_is_ccs_modifier
	cbz	x0, LBB0_4
; %bb.3:
	str	x21, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_22
LBB0_4:
Lloh8:
	adrp	x8, _DRM_MODE_REFLECT_X@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRM_MODE_REFLECT_X@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.5:
	ldr	x8, [x22]
Lloh11:
	adrp	x9, _DRM_FORMAT_MOD_LINEAR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DRM_FORMAT_MOD_LINEAR@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_22
LBB0_7:
	mov	x0, x21
	bl	_drm_rotation_90_or_270
	cbz	x0, LBB0_14
; %bb.8:
	ldr	x8, [x22]
Lloh16:
	adrp	x9, _I915_FORMAT_MOD_Y_TILED@GOTPAGE
Lloh17:
	ldr	x9, [x9, _I915_FORMAT_MOD_Y_TILED@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
Lloh19:
	adrp	x10, _I915_FORMAT_MOD_Yf_TILED@GOTPAGE
Lloh20:
	ldr	x10, [x10, _I915_FORMAT_MOD_Yf_TILED@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_12
; %bb.9:
	ldr	x8, [x22, #8]
	ldr	w0, [x8]
	sub	w8, w0, #128
	cmp	w8, #10
	b.hi	LBB0_14
; %bb.10:
	cmp	w8, #7
	b.eq	LBB0_13
LBB0_11:
	add	x1, sp, #8
	bl	_drm_get_format_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_22
LBB0_12:
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_22
LBB0_13:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #10
	b.le	LBB0_24
LBB0_14:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_20
; %bb.15:
	ldr	w8, [x19]
Lloh26:
	adrp	x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.16:
	ldr	x8, [x22]
Lloh29:
	adrp	x9, _I915_FORMAT_MOD_Y_TILED@GOTPAGE
Lloh30:
	ldr	x9, [x9, _I915_FORMAT_MOD_Y_TILED@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.17:
Lloh32:
	adrp	x9, _I915_FORMAT_MOD_Yf_TILED@GOTPAGE
Lloh33:
	ldr	x9, [x9, _I915_FORMAT_MOD_Yf_TILED@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.18:
Lloh35:
	adrp	x9, _I915_FORMAT_MOD_Y_TILED_CCS@GOTPAGE
Lloh36:
	ldr	x9, [x9, _I915_FORMAT_MOD_Y_TILED_CCS@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.19:
Lloh38:
	adrp	x9, _I915_FORMAT_MOD_Yf_TILED_CCS@GOTPAGE
Lloh39:
	ldr	x9, [x9, _I915_FORMAT_MOD_Yf_TILED_CCS@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_21
LBB0_20:
	mov	w0, #0
	b	LBB0_23
LBB0_21:
Lloh41:
	adrp	x0, l_.str.4@PAGE
Lloh42:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_22:
	bl	_DRM_DEBUG_KMS
Lloh43:
	adrp	x8, _EINVAL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_23:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_24:
	ldr	x8, [x22, #8]
	ldr	w0, [x8]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_ROTATE_0,4,2          ; @DRM_MODE_ROTATE_0
	.comm	_DRM_MODE_ROTATE_180,4,2        ; @DRM_MODE_ROTATE_180
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RC support only with 0/180 degree rotation (%x)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRM_MODE_REFLECT_X,4,2         ; @DRM_MODE_REFLECT_X
	.comm	_DRM_FORMAT_MOD_LINEAR,8,3      ; @DRM_FORMAT_MOD_LINEAR
l_.str.1:                               ; @.str.1
	.asciz	"horizontal flip is not supported with linear surface formats\n"

	.comm	_I915_FORMAT_MOD_Y_TILED,8,3    ; @I915_FORMAT_MOD_Y_TILED
	.comm	_I915_FORMAT_MOD_Yf_TILED,8,3   ; @I915_FORMAT_MOD_Yf_TILED
l_.str.2:                               ; @.str.2
	.asciz	"Y/Yf tiling required for 90/270!\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unsupported pixel format %s for 90/270!\n"

	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.comm	_I915_FORMAT_MOD_Y_TILED_CCS,8,3 ; @I915_FORMAT_MOD_Y_TILED_CCS
	.comm	_I915_FORMAT_MOD_Yf_TILED_CCS,8,3 ; @I915_FORMAT_MOD_Yf_TILED_CCS
l_.str.4:                               ; @.str.4
	.asciz	"Y/Yf tiling not supported in IF-ID mode\n"

	.no_dead_strip	_skl_plane_check_fb
.subsections_via_symbols
