	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_update_clrc
_vlv_update_clrc:                       ## @vlv_update_clrc
	.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, %r14
	movl	16(%rdi), %edi
	callq	_to_intel_plane
	movq	%rax, %rbx
	movl	8(%rax), %edi
	callq	_to_i915
	movq	8(%r14), %rax
	movl	(%rbx), %r15d
	movl	4(%rbx), %edx
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	(%r14), %rax
	movq	_DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	$16320, %edi                    ## imm = 0x3FC0
	movl	%edx, %r14d
	movl	$219, %esi
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, %ebx
	movl	$4080, %edi                     ## imm = 0xFF0
	movl	$219, %esi
	callq	_DIV_ROUND_CLOSEST
	negl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$16384, %edi                    ## imm = 0x4000
	movl	$112, %esi
	callq	_DIV_ROUND_CLOSEST
	movl	%r14d, %edx
	movl	%eax, %r13d
	movq	_SIN_0@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	imull	%r13d, %r12d
	movq	_COS_0@GOTPCREL(%rip), %rax
	imull	(%rax), %r13d
	jmp	LBB0_4
LBB0_3:
	movq	_SIN_0@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	shll	$7, %r12d
	movq	_COS_0@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	shll	$7, %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$64, %ebx
LBB0_4:
	movl	%r15d, %edi
	movl	%edx, %r14d
	movl	%edx, %esi
	callq	_SPCLRC0
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_SP_CONTRAST
	movl	%eax, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_SP_BRIGHTNESS
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE_FW
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	callq	_SPCLRC1
	movl	%eax, %r14d
	movl	%r12d, %edi
	callq	_SP_SH_SIN
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_SP_SH_COS
	orl	%eax, %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE_FW                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_COLOR_YCBCR_LIMITED_RANGE,8,3 ## @DRM_COLOR_YCBCR_LIMITED_RANGE
	.comm	_SIN_0,4,2                      ## @SIN_0
	.comm	_COS_0,4,2                      ## @COS_0
	.no_dead_strip	_vlv_update_clrc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_update_clrc
_vlv_update_clrc:                       ; @vlv_update_clrc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x0
	ldr	w0, [x0, #16]
	bl	_to_intel_plane
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_to_i915
	ldr	x8, [x21, #8]
	ldp	w19, w20, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #16320
	mov	w1, #219
	bl	_DIV_ROUND_CLOSEST
	mov	x24, x0
	mov	w0, #4080
	mov	w1, #219
	bl	_DIV_ROUND_CLOSEST
	neg	w22, w0
	mov	w0, #16384
	mov	w1, #112
	bl	_DIV_ROUND_CLOSEST
Lloh3:
	adrp	x8, _SIN_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIN_0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mul	w21, w8, w0
Lloh6:
	adrp	x8, _COS_0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _COS_0@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mul	w23, w8, w0
	b	LBB0_4
LBB0_3:
	mov	w22, #0
Lloh9:
	adrp	x8, _SIN_0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIN_0@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w21, w8, #7
Lloh12:
	adrp	x8, _COS_0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _COS_0@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	lsl	w23, w8, #7
	mov	w24, #64
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_SPCLRC0
	mov	x25, x0
	mov	x0, x24
	bl	_SP_CONTRAST
	mov	x24, x0
	mov	x0, x22
	bl	_SP_BRIGHTNESS
	orr	w1, w0, w24
	mov	x0, x25
	bl	_I915_WRITE_FW
	mov	x0, x19
	mov	x1, x20
	bl	_SPCLRC1
	mov	x19, x0
	mov	x0, x21
	bl	_SP_SH_SIN
	mov	x20, x0
	mov	x0, x23
	bl	_SP_SH_COS
	orr	w1, w0, w20
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_I915_WRITE_FW
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_COLOR_YCBCR_LIMITED_RANGE,8,3 ; @DRM_COLOR_YCBCR_LIMITED_RANGE
	.comm	_SIN_0,4,2                      ; @SIN_0
	.comm	_COS_0,4,2                      ; @COS_0
	.no_dead_strip	_vlv_update_clrc
.subsections_via_symbols
