	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chv_update_csc
_chv_update_csc:                        ## @chv_update_csc
	.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	16(%rdi), %edi
	callq	_to_intel_plane
	movq	%rax, %r14
	movl	4(%rax), %edi
	callq	_to_i915
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	leaq	(%rax,%rax,8), %r13
	leaq	_chv_update_csc.csc_matrix(%rip), %r12
	movl	(%r14), %r14d
	movl	%r14d, %edi
	callq	_SPCSCYGOFF
	movl	%eax, %r15d
	xorl	%edi, %edi
	callq	_SPCSC_OOFF
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_SPCSC_IOFF
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE_FW
	movl	%r14d, %edi
	callq	_SPCSCCBOFF
	movl	%eax, %r15d
	xorl	%edi, %edi
	callq	_SPCSC_OOFF
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_SPCSC_IOFF
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE_FW
	movl	%r14d, %edi
	callq	_SPCSCCROFF
	movl	%eax, %r15d
	xorl	%edi, %edi
	callq	_SPCSC_OOFF
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_SPCSC_IOFF
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE_FW
	movl	%r14d, %edi
	callq	_SPCSCC01
	movl	%eax, %r15d
	movq	%r12, %rax
	movl	(%r12,%r13,4), %r12d
	movl	4(%rax,%r13,4), %edi
	callq	_SPCSC_C1
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_SPCSC_C0
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE_FW
	movl	%r14d, %edi
	callq	_SPCSCC23
	movl	%eax, %r15d
	leaq	_chv_update_csc.csc_matrix(%rip), %r12
	movl	12(%r12,%r13,4), %edi
	callq	_SPCSC_C1
	movl	%eax, %ebx
	movl	8(%r12,%r13,4), %edi
	callq	_SPCSC_C0
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE_FW
	movl	%r14d, %edi
	callq	_SPCSCC45
	movl	%eax, %r15d
	movl	20(%r12,%r13,4), %edi
	callq	_SPCSC_C1
	movl	%eax, %ebx
	movl	16(%r12,%r13,4), %edi
	callq	_SPCSC_C0
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE_FW
	movl	%r14d, %edi
	callq	_SPCSCC67
	movl	%eax, %r15d
	movl	28(%r12,%r13,4), %edi
	callq	_SPCSC_C1
	movl	%eax, %ebx
	movl	24(%r12,%r13,4), %edi
	callq	_SPCSC_C0
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE_FW
	movl	%r14d, %edi
	callq	_SPCSCC8
	movl	%eax, %ebx
	movl	32(%r12,%r13,4), %edi
	callq	_SPCSC_C0
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE_FW
	movl	%r14d, %edi
	callq	_SPCSCYGICLAMP
	movl	%eax, %r15d
	movl	$1023, %edi                     ## imm = 0x3FF
	callq	_SPCSC_IMAX
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_SPCSC_IMIN
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE_FW
	movl	%r14d, %edi
	callq	_SPCSCCBICLAMP
	movl	%eax, %r15d
	movl	$512, %edi                      ## imm = 0x200
	callq	_SPCSC_IMAX
	movl	%eax, %ebx
	movl	$-512, %edi                     ## imm = 0xFE00
	callq	_SPCSC_IMIN
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE_FW
	movl	%r14d, %edi
	callq	_SPCSCCRICLAMP
	movl	%eax, %r15d
	movl	$512, %edi                      ## imm = 0x200
	callq	_SPCSC_IMAX
	movl	%eax, %ebx
	movl	$-512, %edi                     ## imm = 0xFE00
	callq	_SPCSC_IMIN
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE_FW
	movl	%r14d, %edi
	callq	_SPCSCYGOCLAMP
	movl	%eax, %r15d
	movl	$1023, %edi                     ## imm = 0x3FF
	callq	_SPCSC_OMAX
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_SPCSC_OMIN
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE_FW
	movl	%r14d, %edi
	callq	_SPCSCCBOCLAMP
	movl	%eax, %r15d
	movl	$1023, %edi                     ## imm = 0x3FF
	callq	_SPCSC_OMAX
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_SPCSC_OMIN
	orl	%eax, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE_FW
	movl	%r14d, %edi
	callq	_SPCSCCROCLAMP
	movl	%eax, %r14d
	movl	$1023, %edi                     ## imm = 0x3FF
	callq	_SPCSC_OMAX
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_SPCSC_OMIN
	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
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @chv_update_csc.csc_matrix
_chv_update_csc.csc_matrix:
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.long	6450                            ## 0x1932
	.long	4096                            ## 0x1000
	.long	0                               ## 0x0
	.long	4294965379                      ## 0xfffff883
	.long	4096                            ## 0x1000
	.long	4294966529                      ## 0xfffffd01
	.long	0                               ## 0x0
	.long	4096                            ## 0x1000
	.long	7601                            ## 0x1db1
	.long	5743                            ## 0x166f
	.long	4096                            ## 0x1000
	.long	0                               ## 0x0
	.long	4294964371                      ## 0xfffff493
	.long	4096                            ## 0x1000
	.long	4294965886                      ## 0xfffffa7e
	.long	0                               ## 0x0
	.long	4096                            ## 0x1000
	.long	7258                            ## 0x1c5a

	.no_dead_strip	_chv_update_csc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chv_update_csc
_chv_update_csc:                        ; @chv_update_csc
	.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	x19, x0
	ldr	w0, [x0, #16]
	bl	_to_intel_plane
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	mov	w9, #36
Lloh0:
	adrp	x10, _chv_update_csc.csc_matrix@PAGE
Lloh1:
	add	x10, x10, _chv_update_csc.csc_matrix@PAGEOFF
	madd	x22, x8, x9, x10
	ldr	w19, [x20]
	mov	x0, x19
	bl	_SPCSCYGOFF
	mov	x20, x0
	mov	w0, #0
	bl	_SPCSC_OOFF
	mov	x21, x0
	mov	w0, #0
	bl	_SPCSC_IOFF
	orr	w1, w0, w21
	mov	x0, x20
	bl	_I915_WRITE_FW
	mov	x0, x19
	bl	_SPCSCCBOFF
	mov	x20, x0
	mov	w0, #0
	bl	_SPCSC_OOFF
	mov	x21, x0
	mov	w0, #0
	bl	_SPCSC_IOFF
	orr	w1, w0, w21
	mov	x0, x20
	bl	_I915_WRITE_FW
	mov	x0, x19
	bl	_SPCSCCROFF
	mov	x20, x0
	mov	w0, #0
	bl	_SPCSC_OOFF
	mov	x21, x0
	mov	w0, #0
	bl	_SPCSC_IOFF
	orr	w1, w0, w21
	mov	x0, x20
	bl	_I915_WRITE_FW
	mov	x0, x19
	bl	_SPCSCC01
	mov	x20, x0
	ldr	w0, [x22, #4]
	bl	_SPCSC_C1
	mov	x21, x0
	ldr	w0, [x22]
	bl	_SPCSC_C0
	orr	w1, w0, w21
	mov	x0, x20
	bl	_I915_WRITE_FW
	mov	x0, x19
	bl	_SPCSCC23
	mov	x20, x0
	ldr	w0, [x22, #12]
	bl	_SPCSC_C1
	mov	x21, x0
	ldr	w0, [x22, #8]
	bl	_SPCSC_C0
	orr	w1, w0, w21
	mov	x0, x20
	bl	_I915_WRITE_FW
	mov	x0, x19
	bl	_SPCSCC45
	mov	x20, x0
	ldr	w0, [x22, #20]
	bl	_SPCSC_C1
	mov	x21, x0
	ldr	w0, [x22, #16]
	bl	_SPCSC_C0
	orr	w1, w0, w21
	mov	x0, x20
	bl	_I915_WRITE_FW
	mov	x0, x19
	bl	_SPCSCC67
	mov	x20, x0
	ldr	w0, [x22, #28]
	bl	_SPCSC_C1
	mov	x21, x0
	ldr	w0, [x22, #24]
	bl	_SPCSC_C0
	orr	w1, w0, w21
	mov	x0, x20
	bl	_I915_WRITE_FW
	mov	x0, x19
	bl	_SPCSCC8
	mov	x20, x0
	ldr	w0, [x22, #32]
	bl	_SPCSC_C0
	mov	x1, x0
	mov	x0, x20
	bl	_I915_WRITE_FW
	mov	x0, x19
	bl	_SPCSCYGICLAMP
	mov	x20, x0
	mov	w0, #1023
	bl	_SPCSC_IMAX
	mov	x21, x0
	mov	w0, #0
	bl	_SPCSC_IMIN
	orr	w1, w0, w21
	mov	x0, x20
	bl	_I915_WRITE_FW
	mov	x0, x19
	bl	_SPCSCCBICLAMP
	mov	x20, x0
	mov	w0, #512
	bl	_SPCSC_IMAX
	mov	x21, x0
	mov	w0, #-512
	bl	_SPCSC_IMIN
	orr	w1, w0, w21
	mov	x0, x20
	bl	_I915_WRITE_FW
	mov	x0, x19
	bl	_SPCSCCRICLAMP
	mov	x20, x0
	mov	w0, #512
	bl	_SPCSC_IMAX
	mov	x21, x0
	mov	w0, #-512
	bl	_SPCSC_IMIN
	orr	w1, w0, w21
	mov	x0, x20
	bl	_I915_WRITE_FW
	mov	x0, x19
	bl	_SPCSCYGOCLAMP
	mov	x20, x0
	mov	w0, #1023
	bl	_SPCSC_OMAX
	mov	x21, x0
	mov	w0, #0
	bl	_SPCSC_OMIN
	orr	w1, w0, w21
	mov	x0, x20
	bl	_I915_WRITE_FW
	mov	x0, x19
	bl	_SPCSCCBOCLAMP
	mov	x20, x0
	mov	w0, #1023
	bl	_SPCSC_OMAX
	mov	x21, x0
	mov	w0, #0
	bl	_SPCSC_OMIN
	orr	w1, w0, w21
	mov	x0, x20
	bl	_I915_WRITE_FW
	mov	x0, x19
	bl	_SPCSCCROCLAMP
	mov	x19, x0
	mov	w0, #1023
	bl	_SPCSC_OMAX
	mov	x20, x0
	mov	w0, #0
	bl	_SPCSC_OMIN
	orr	w1, w0, w20
	mov	x0, x19
	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
	b	_I915_WRITE_FW
LBB0_2:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @chv_update_csc.csc_matrix
_chv_update_csc.csc_matrix:
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.space	36
	.long	6450                            ; 0x1932
	.long	4096                            ; 0x1000
	.long	0                               ; 0x0
	.long	4294965379                      ; 0xfffff883
	.long	4096                            ; 0x1000
	.long	4294966529                      ; 0xfffffd01
	.long	0                               ; 0x0
	.long	4096                            ; 0x1000
	.long	7601                            ; 0x1db1
	.long	5743                            ; 0x166f
	.long	4096                            ; 0x1000
	.long	0                               ; 0x0
	.long	4294964371                      ; 0xfffff493
	.long	4096                            ; 0x1000
	.long	4294965886                      ; 0xfffffa7e
	.long	0                               ; 0x0
	.long	4096                            ; 0x1000
	.long	7258                            ; 0x1c5a

	.no_dead_strip	_chv_update_csc
.subsections_via_symbols
