	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_plane_check
_skl_plane_check:                       ## @skl_plane_check
	.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, %r13
	movq	%rdi, %r14
	movl	24(%rsi), %edi
	callq	_to_intel_plane
	movl	(%rax), %edi
	callq	_to_i915
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %r15
	movq	_DRM_PLANE_HELPER_NO_SCALING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_skl_plane_check_fb
	testl	%eax, %eax
	jne	LBB0_17
## %bb.1:
	leaq	8(%r13), %r12
	cmpl	$0, 32(%r13)
	je	LBB0_3
## %bb.2:
	movl	%ebx, %ecx
	jmp	LBB0_5
LBB0_3:
	movq	%r15, %rdi
	callq	_intel_fb_scalable
	movl	%ebx, %ecx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r15), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_skl_max_scale
	movl	%eax, %ecx
	movl	$1, %ebx
LBB0_5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_drm_atomic_helper_check_plane_state
	testl	%eax, %eax
	jne	LBB0_17
## %bb.6:
	movq	%r13, %rdi
	callq	_skl_check_plane_surface
	testl	%eax, %eax
	je	LBB0_7
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpl	$0, (%r12)
	je	LBB0_16
## %bb.8:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_skl_plane_check_dst_coordinates
	testl	%eax, %eax
	jne	LBB0_17
## %bb.9:
	movq	%r13, %rdi
	callq	_intel_plane_check_src_coordinates
	testl	%eax, %eax
	jne	LBB0_17
## %bb.10:
	movq	%r13, %rdi
	callq	_skl_plane_check_nv12_rotation
	testl	%eax, %eax
	jne	LBB0_17
## %bb.11:
	cmpl	$255, 12(%r13)
	ja	LBB0_13
## %bb.12:
	movl	$0, (%r12)
LBB0_13:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_skl_plane_ctl
	movl	%eax, 4(%r13)
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_INTEL_GEN
	cmpl	$9, %eax
	jg	LBB0_15
## %bb.14:
	movq	%r12, %rdi
	callq	_IS_GEMINILAKE
	testq	%rax, %rax
	je	LBB0_16
LBB0_15:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_glk_plane_color_ctl
	movl	%eax, (%r13)
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_PLANE_HELPER_NO_SCALING,4,2 ## @DRM_PLANE_HELPER_NO_SCALING
	.no_dead_strip	_skl_plane_check
.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
_skl_plane_check:                       ; @skl_plane_check
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #24]
	bl	_to_intel_plane
	ldr	w0, [x0]
	bl	_to_i915
	mov	x21, x0
	ldr	x24, [x19, #16]
Lloh0:
	adrp	x8, _DRM_PLANE_HELPER_NO_SCALING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_PLANE_HELPER_NO_SCALING@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_skl_plane_check_fb
	cbnz	w0, LBB0_7
; %bb.1:
	add	x22, x19, #8
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_3
; %bb.2:
	mov	x3, x23
	b	LBB0_5
LBB0_3:
	mov	x0, x24
	bl	_intel_fb_scalable
	mov	x3, x23
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x24]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_skl_max_scale
	mov	x3, x0
	mov	w23, #1
LBB0_5:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	mov	w4, #1
	mov	w5, #1
	bl	_drm_atomic_helper_check_plane_state
	cbnz	w0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_skl_check_plane_surface
	cbz	w0, LBB0_8
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w8, [x22]
	cbz	w8, LBB0_17
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	bl	_skl_plane_check_dst_coordinates
	cbnz	w0, LBB0_7
; %bb.10:
	mov	x0, x19
	bl	_intel_plane_check_src_coordinates
	cbnz	w0, LBB0_7
; %bb.11:
	mov	x0, x19
	bl	_skl_plane_check_nv12_rotation
	cbnz	w0, LBB0_7
; %bb.12:
	ldr	w8, [x19, #12]
	cmp	w8, #255
	b.hi	LBB0_14
; %bb.13:
	str	wzr, [x22]
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	bl	_skl_plane_ctl
	str	w0, [x19, #4]
	mov	x0, x21
	bl	_INTEL_GEN
	cmp	w0, #9
	b.gt	LBB0_16
; %bb.15:
	mov	x0, x21
	bl	_IS_GEMINILAKE
	cbz	x0, LBB0_7
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	bl	_glk_plane_color_ctl
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_7
LBB0_17:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_PLANE_HELPER_NO_SCALING,4,2 ; @DRM_PLANE_HELPER_NO_SCALING
	.no_dead_strip	_skl_plane_check
.subsections_via_symbols
