	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_program_plane
_skl_program_plane:                     ## @skl_program_plane
	.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
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -120(%rbp)                ## 4-byte Spill
	movl	%r8d, -140(%rbp)                ## 4-byte Spill
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_to_i915
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	16(%r14), %rax
	movslq	%r12d, %rsi
	leaq	(,%rsi,4), %rcx
	leaq	(%rcx,%rcx,2), %rbx
	movl	(%rax,%rbx), %eax
	movl	%eax, -136(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_skl_plane_stride
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_skl_plane_stride
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	movl	44(%r14), %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movl	48(%r14), %r13d
	movq	16(%r14), %rax
	movl	4(%rax,%rbx), %ecx
	movl	%ecx, -124(%rbp)                ## 4-byte Spill
	movl	8(%rax,%rbx), %eax
	movl	%eax, -128(%rbp)                ## 4-byte Spill
	leaq	40(%r14), %rbx
	movq	%rbx, %rdi
	callq	_drm_rect_width
	sarl	$16, %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_drm_rect_height
	movl	%eax, %r15d
	movq	56(%r14), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	32(%r14), %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movl	24(%r14), %r12d
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	sarl	$8, %r12d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_skl_plane_ctl_crtc
	movl	%eax, -132(%rbp)                ## 4-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_INTEL_GEN
	cmpl	$9, %eax
	jg	LBB0_3
## %bb.1:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_IS_GEMINILAKE
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movl	(%r14), %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_glk_plane_color_ctl_crtc
	orl	%ebx, %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
LBB0_4:
	decl	-80(%rbp)                       ## 4-byte Folded Spill
	movl	$16777215, %eax                 ## imm = 0xFFFFFF
	andl	64(%r14), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_PLANE_KEYMAX_ALPHA
	movl	%eax, -112(%rbp)                ## 4-byte Spill
	movl	$134217727, %edx                ## imm = 0x7FFFFFF
	xorl	%eax, %eax
	movl	$0, %ecx
	cmpl	$65280, -52(%rbp)               ## 4-byte Folded Reload
                                        ## imm = 0xFF00
	jge	LBB0_6
## %bb.5:
	movq	_PLANE_KEYMSK_ALPHA_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_6:
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	andl	68(%r14), %edx
	movl	%edx, -116(%rbp)                ## 4-byte Spill
	shll	$16, %r13d
	orl	-100(%rbp), %r13d               ## 4-byte Folded Reload
	cmpq	$0, 8(%r14)
	cmovnsl	%eax, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_lock_irqsave
	movl	-72(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_PLANE_STRIDE
	movl	%eax, %edi
	movl	-104(%rbp), %esi                ## 4-byte Reload
	callq	_I915_WRITE_FW
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_PLANE_POS
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	_I915_WRITE_FW
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_PLANE_SIZE
	addl	$-65536, %r15d                  ## imm = 0xFFFF0000
	andl	$-65536, %r15d                  ## imm = 0xFFFF0000
	orl	-80(%rbp), %r15d                ## 4-byte Folded Reload
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_I915_WRITE_FW
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_PLANE_AUX_DIST
	movq	16(%r14), %rcx
	movl	12(%rcx), %esi
	movl	-136(%rbp), %r13d               ## 4-byte Reload
	subl	%r13d, %esi
	orl	-108(%rbp), %esi                ## 4-byte Folded Reload
	movl	%eax, %edi
	callq	_I915_WRITE_FW
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_icl_is_hdr_plane
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.9:
	movq	_PLANE_CUS_ENABLE@GOTPCREL(%rip), %rax
	movq	_PLANE_CUS_HPHASE_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	_PLANE_CUS_VPHASE_SIGN_NEGATIVE@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_PLANE_CUS_VPHASE_0_25@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movslq	(%rdx), %rdi
	movq	_PLANE_SPRITE5@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_11
## %bb.10:
	movq	_PLANE_CUS_PLANE_7@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	jmp	LBB0_14
LBB0_8:
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_11:
	movq	_PLANE_SPRITE4@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_13
## %bb.12:
	movq	_PLANE_CUS_PLANE_6@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	jmp	LBB0_14
LBB0_2:
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_4
LBB0_13:
	callq	_MISSING_CASE
LBB0_14:
	movl	-72(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_PLANE_CUS_CTL
	movl	%eax, %edi
	movl	%r12d, %esi
	movl	%r15d, %r12d
	callq	_I915_WRITE_FW
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_INTEL_GEN
	cmpl	$9, %eax
	movl	-132(%rbp), %r15d               ## 4-byte Reload
	jg	LBB0_17
## %bb.16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_IS_GEMINILAKE
	testq	%rax, %rax
	je	LBB0_18
LBB0_17:
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_PLANE_COLOR_CTL
	movl	%eax, %edi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_I915_WRITE_FW
LBB0_18:
	movl	-112(%rbp), %eax                ## 4-byte Reload
	orl	%eax, -84(%rbp)                 ## 4-byte Folded Spill
	movl	-116(%rbp), %eax                ## 4-byte Reload
	orl	%eax, -52(%rbp)                 ## 4-byte Folded Spill
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.19:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_icl_is_hdr_plane
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_icl_program_input_csc
LBB0_21:
	orl	-120(%rbp), %r15d               ## 4-byte Folded Reload
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_skl_write_plane_wm
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_PLANE_KEYVAL
	movl	72(%r14), %esi
	movl	%eax, %edi
	callq	_I915_WRITE_FW
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_PLANE_KEYMSK
	movl	%eax, %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_I915_WRITE_FW
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_PLANE_KEYMAX
	movl	%eax, %edi
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	callq	_I915_WRITE_FW
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_PLANE_OFFSET
	movl	-128(%rbp), %esi                ## 4-byte Reload
	shll	$16, %esi
	orl	-124(%rbp), %esi                ## 4-byte Folded Reload
	movl	%eax, %edi
	callq	_I915_WRITE_FW
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_INTEL_GEN
	cmpl	$10, %eax
	jg	LBB0_23
## %bb.22:
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_PLANE_AUX_OFFSET
	movq	16(%r14), %rcx
	movl	20(%rcx), %esi
	shll	$16, %esi
	orl	16(%rcx), %esi
	movl	%eax, %edi
	callq	_I915_WRITE_FW
LBB0_23:
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_PLANE_CTL
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_I915_WRITE_FW
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_PLANE_SURF
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_intel_plane_ggtt_offset
	addl	%eax, %r13d
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_I915_WRITE_FW
	cmpl	$0, -140(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_26
## %bb.24:
	cmpq	$0, 8(%r14)
	js	LBB0_26
## %bb.25:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_skl_program_scaler
LBB0_26:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANE_KEYMSK_ALPHA_ENABLE,4,2  ## @PLANE_KEYMSK_ALPHA_ENABLE
	.comm	_PLANE_CUS_ENABLE,4,2           ## @PLANE_CUS_ENABLE
	.comm	_PLANE_CUS_HPHASE_0,4,2         ## @PLANE_CUS_HPHASE_0
	.comm	_PLANE_CUS_VPHASE_SIGN_NEGATIVE,4,2 ## @PLANE_CUS_VPHASE_SIGN_NEGATIVE
	.comm	_PLANE_CUS_VPHASE_0_25,4,2      ## @PLANE_CUS_VPHASE_0_25
	.comm	_PLANE_SPRITE5,8,3              ## @PLANE_SPRITE5
	.comm	_PLANE_CUS_PLANE_7,4,2          ## @PLANE_CUS_PLANE_7
	.comm	_PLANE_SPRITE4,8,3              ## @PLANE_SPRITE4
	.comm	_PLANE_CUS_PLANE_6,4,2          ## @PLANE_CUS_PLANE_6
	.no_dead_strip	_skl_program_plane
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skl_program_plane
_skl_program_plane:                     ; @skl_program_plane
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w5, [sp, #60]                   ; 4-byte Folded Spill
	str	w4, [sp, #76]                   ; 4-byte Folded Spill
	mov	x23, x3
	mov	x19, x2
	mov	x26, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_to_i915
	mov	x21, x0
	ldp	w24, w25, [x20]
	str	x20, [sp, #80]                  ; 8-byte Folded Spill
	ldr	x8, [x19, #16]
	mov	w20, #12
	smull	x9, w23, w20
	ldr	w8, [x8, x9]
	str	w8, [sp, #72]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	x1, x23
	bl	_skl_plane_stride
	mov	x27, x0
	mov	x0, x19
	mov	w1, #1
	bl	_skl_plane_stride
	ldr	w8, [x19, #44]
	stp	w8, w0, [sp, #28]               ; 8-byte Folded Spill
	ldr	w8, [x19, #48]
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
	ldr	x8, [x19, #16]
	smaddl	x8, w23, w20, x8
	ldp	w9, w8, [x8, #4]
	stp	w8, w9, [sp, #64]               ; 8-byte Folded Spill
	add	x23, x19, #40
	mov	x0, x23
	bl	_drm_rect_width
	asr	w20, w0, #16
	mov	x0, x23
	bl	_drm_rect_height
	mov	x28, x0
	ldr	x8, [x19, #56]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x19, #32]
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	ldr	w22, [x19, #24]
	asr	w23, w22, #8
	str	x26, [sp, #88]                  ; 8-byte Folded Spill
	mov	x0, x26
	bl	_skl_plane_ctl_crtc
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	mov	x0, x21
	bl	_INTEL_GEN
	cmp	w0, #9
	b.gt	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_IS_GEMINILAKE
	cbz	x0, LBB0_11
LBB0_2:
	ldr	w26, [x19]
	ldr	x0, [sp, #88]                   ; 8-byte Folded Reload
	bl	_glk_plane_color_ctl_crtc
	orr	w8, w0, w26
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
LBB0_3:
	sub	w20, w20, #1
	ldr	w8, [x19, #64]
	and	w26, w8, #0xffffff
	mov	x0, x23
	bl	_PLANE_KEYMAX_ALPHA
	str	w0, [sp, #40]                   ; 4-byte Folded Spill
	ldr	w8, [x19, #68]
Lloh0:
	adrp	x9, _PLANE_KEYMSK_ALPHA_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PLANE_KEYMSK_ALPHA_ENABLE@GOTPAGEOFF]
	and	w8, w8, #0x7ffffff
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
Lloh2:
	ldr	w8, [x9]
	mov	w9, #65280
	cmp	w22, w9
	csel	w23, w8, wzr, lt
	ldr	x22, [x19, #8]
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x25
	mov	x1, x24
	bl	_PLANE_STRIDE
	mov	x1, x27
	bl	_I915_WRITE_FW
	mov	x0, x25
	mov	x1, x24
	bl	_PLANE_POS
	ldp	w9, w8, [sp, #24]               ; 8-byte Folded Reload
	orr	w8, w8, w9, lsl #16
	cmp	x22, #0
	csel	w1, wzr, w8, ge
	bl	_I915_WRITE_FW
	mov	x0, x25
	mov	x1, x24
	bl	_PLANE_SIZE
	sub	w8, w28, #16, lsl #12           ; =65536
	and	w8, w8, #0xffff0000
	orr	w1, w8, w20
	bl	_I915_WRITE_FW
	mov	x0, x25
	mov	x1, x24
	bl	_PLANE_AUX_DIST
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #12]
	ldr	w22, [sp, #72]                  ; 4-byte Folded Reload
	sub	w8, w8, w22
	ldr	w9, [sp, #32]                   ; 4-byte Folded Reload
	orr	w1, w8, w9
	bl	_I915_WRITE_FW
	mov	x0, x21
	mov	x1, x24
	bl	_icl_is_hdr_plane
	ldr	x20, [sp, #80]                  ; 8-byte Folded Reload
	cbz	x0, LBB0_14
; %bb.4:
	mov	x27, x26
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x11, LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _PLANE_CUS_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PLANE_CUS_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PLANE_CUS_HPHASE_0@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PLANE_CUS_HPHASE_0@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _PLANE_CUS_VPHASE_SIGN_NEGATIVE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PLANE_CUS_VPHASE_SIGN_NEGATIVE@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh11:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _PLANE_CUS_VPHASE_0_25@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PLANE_CUS_VPHASE_0_25@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w26, w8, w9
	ldrsw	x0, [x11]
Lloh15:
	adrp	x8, _PLANE_SPRITE5@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PLANE_SPRITE5@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_8
; %bb.6:
Lloh18:
	adrp	x8, _PLANE_CUS_PLANE_7@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PLANE_CUS_PLANE_7@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	mov	w26, #0
	b	LBB0_13
LBB0_8:
Lloh20:
	adrp	x8, _PLANE_SPRITE4@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PLANE_SPRITE4@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_12
; %bb.9:
Lloh23:
	adrp	x8, _PLANE_CUS_PLANE_6@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PLANE_CUS_PLANE_6@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	orr	w26, w8, w26
	b	LBB0_13
LBB0_11:
	str	wzr, [sp, #20]                  ; 4-byte Folded Spill
	b	LBB0_3
LBB0_12:
	bl	_MISSING_CASE
LBB0_13:
	mov	x0, x25
	mov	x1, x24
	bl	_PLANE_CUS_CTL
	mov	x1, x26
	bl	_I915_WRITE_FW
	mov	x26, x27
LBB0_14:
	ldr	w8, [sp, #40]                   ; 4-byte Folded Reload
	orr	w26, w26, w8
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	orr	w27, w23, w8
	mov	x0, x21
	bl	_INTEL_GEN
	cmp	w0, #9
	b.gt	LBB0_16
; %bb.15:
	mov	x0, x21
	bl	_IS_GEMINILAKE
	cbz	x0, LBB0_17
LBB0_16:
	mov	x0, x25
	mov	x1, x24
	bl	_PLANE_COLOR_CTL
	ldr	w1, [sp, #20]                   ; 4-byte Folded Reload
	bl	_I915_WRITE_FW
LBB0_17:
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	orr	w23, w9, w8
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_20
; %bb.18:
	mov	x0, x21
	mov	x1, x24
	bl	_icl_is_hdr_plane
	cbz	x0, LBB0_20
; %bb.19:
	mov	x0, x20
	ldr	x1, [sp, #88]                   ; 8-byte Folded Reload
	mov	x2, x19
	bl	_icl_program_input_csc
LBB0_20:
	mov	x0, x20
	ldr	x1, [sp, #88]                   ; 8-byte Folded Reload
	bl	_skl_write_plane_wm
	mov	x0, x25
	mov	x1, x24
	bl	_PLANE_KEYVAL
	ldr	w1, [x19, #72]
	bl	_I915_WRITE_FW
	mov	x0, x25
	mov	x1, x24
	bl	_PLANE_KEYMSK
	mov	x1, x27
	bl	_I915_WRITE_FW
	mov	x0, x25
	mov	x1, x24
	bl	_PLANE_KEYMAX
	mov	x1, x26
	bl	_I915_WRITE_FW
	mov	x0, x25
	mov	x1, x24
	bl	_PLANE_OFFSET
	ldp	w9, w8, [sp, #64]               ; 8-byte Folded Reload
	orr	w1, w8, w9, lsl #16
	bl	_I915_WRITE_FW
	mov	x0, x21
	bl	_INTEL_GEN
	cmp	w0, #10
	b.gt	LBB0_22
; %bb.21:
	mov	x0, x25
	mov	x1, x24
	bl	_PLANE_AUX_OFFSET
	ldr	x8, [x19, #16]
	ldp	w8, w9, [x8, #16]
	orr	w1, w8, w9, lsl #16
	bl	_I915_WRITE_FW
LBB0_22:
	mov	x0, x25
	mov	x1, x24
	bl	_PLANE_CTL
	mov	x1, x23
	bl	_I915_WRITE_FW
	mov	x0, x25
	mov	x1, x24
	bl	_PLANE_SURF
	mov	x23, x0
	mov	x0, x19
	bl	_intel_plane_ggtt_offset
	add	w1, w0, w22
	mov	x0, x23
	bl	_I915_WRITE_FW
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_25
; %bb.23:
	ldr	x8, [x19, #8]
	tbnz	x8, #63, LBB0_25
; %bb.24:
	mov	x0, x20
	ldr	x1, [sp, #88]                   ; 8-byte Folded Reload
	mov	x2, x19
	bl	_skl_program_scaler
LBB0_25:
	mov	x0, x21
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANE_KEYMSK_ALPHA_ENABLE,4,2  ; @PLANE_KEYMSK_ALPHA_ENABLE
	.comm	_PLANE_CUS_ENABLE,4,2           ; @PLANE_CUS_ENABLE
	.comm	_PLANE_CUS_HPHASE_0,4,2         ; @PLANE_CUS_HPHASE_0
	.comm	_PLANE_CUS_VPHASE_SIGN_NEGATIVE,4,2 ; @PLANE_CUS_VPHASE_SIGN_NEGATIVE
	.comm	_PLANE_CUS_VPHASE_0_25,4,2      ; @PLANE_CUS_VPHASE_0_25
	.comm	_PLANE_SPRITE5,8,3              ; @PLANE_SPRITE5
	.comm	_PLANE_CUS_PLANE_7,4,2          ; @PLANE_CUS_PLANE_7
	.comm	_PLANE_SPRITE4,8,3              ; @PLANE_SPRITE4
	.comm	_PLANE_CUS_PLANE_6,4,2          ; @PLANE_CUS_PLANE_6
	.no_dead_strip	_skl_program_plane
.subsections_via_symbols
