	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icl_load_csc_matrix
_icl_load_csc_matrix:                   ## @icl_load_csc_matrix
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	32(%rdi), %edi
	callq	_to_intel_crtc
	movq	%rax, %r14
	movl	4(%rax), %edi
	callq	_to_i915
	cmpq	$0, 24(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	-80(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ilk_csc_convert_ctm
	movq	_ilk_csc_off_zero@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ecx, %esi
	movq	%r15, %rdx
	callq	_ilk_update_pipe_csc
LBB0_2:
	movq	(%rbx), %rax
	movq	_INTEL_OUTPUT_FORMAT_RGB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.5:
	movq	_ilk_csc_postoff_limited_range@GOTPCREL(%rip), %rax
	movq	_ilk_csc_coeff_limited_range@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_3:
	movq	_ilk_csc_postoff_rgb_to_ycbcr@GOTPCREL(%rip), %rax
	movq	_ilk_csc_coeff_rgb_to_ycbcr@GOTPCREL(%rip), %rcx
LBB0_6:
	movq	_ilk_csc_off_zero@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	(%rcx), %edx
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_icl_update_output_csc
LBB0_7:
	movl	(%r14), %edi
	callq	_PIPE_CSC_MODE
	movl	8(%rbx), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ilk_csc_off_zero,4,2           ## @ilk_csc_off_zero
	.comm	_INTEL_OUTPUT_FORMAT_RGB,8,3    ## @INTEL_OUTPUT_FORMAT_RGB
	.comm	_ilk_csc_coeff_rgb_to_ycbcr,4,2 ## @ilk_csc_coeff_rgb_to_ycbcr
	.comm	_ilk_csc_postoff_rgb_to_ycbcr,4,2 ## @ilk_csc_postoff_rgb_to_ycbcr
	.comm	_ilk_csc_coeff_limited_range,4,2 ## @ilk_csc_coeff_limited_range
	.comm	_ilk_csc_postoff_limited_range,4,2 ## @ilk_csc_postoff_limited_range
	.no_dead_strip	_icl_load_csc_matrix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icl_load_csc_matrix
_icl_load_csc_matrix:                   ; @icl_load_csc_matrix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	w0, [x0, #32]
	bl	_to_intel_crtc
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	ldr	x8, [x19, #24]
Lloh3:
	adrp	x21, _ilk_csc_off_zero@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ilk_csc_off_zero@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	add	x1, sp, #4
	mov	x0, x19
	bl	_ilk_csc_convert_ctm
	ldr	w1, [x21]
	add	x2, sp, #4
	mov	x0, x20
	mov	x3, x1
	bl	_ilk_update_pipe_csc
LBB0_2:
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _INTEL_OUTPUT_FORMAT_RGB@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INTEL_OUTPUT_FORMAT_RGB@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.4:
Lloh8:
	adrp	x8, _ilk_csc_postoff_limited_range@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ilk_csc_postoff_limited_range@GOTPAGEOFF]
Lloh10:
	adrp	x9, _ilk_csc_coeff_limited_range@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ilk_csc_coeff_limited_range@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _ilk_csc_postoff_rgb_to_ycbcr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ilk_csc_postoff_rgb_to_ycbcr@GOTPAGEOFF]
Lloh14:
	adrp	x9, _ilk_csc_coeff_rgb_to_ycbcr@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ilk_csc_coeff_rgb_to_ycbcr@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x21]
	ldr	w2, [x9]
	ldr	w3, [x8]
	mov	x0, x20
	bl	_icl_update_output_csc
LBB0_7:
	ldr	w0, [x20]
	bl	_PIPE_CSC_MODE
	ldr	w1, [x19, #8]
	bl	_I915_WRITE
	ldr	x8, [sp, #40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ilk_csc_off_zero,4,2           ; @ilk_csc_off_zero
	.comm	_INTEL_OUTPUT_FORMAT_RGB,8,3    ; @INTEL_OUTPUT_FORMAT_RGB
	.comm	_ilk_csc_coeff_rgb_to_ycbcr,4,2 ; @ilk_csc_coeff_rgb_to_ycbcr
	.comm	_ilk_csc_postoff_rgb_to_ycbcr,4,2 ; @ilk_csc_postoff_rgb_to_ycbcr
	.comm	_ilk_csc_coeff_limited_range,4,2 ; @ilk_csc_coeff_limited_range
	.comm	_ilk_csc_postoff_limited_range,4,2 ; @ilk_csc_postoff_limited_range
	.no_dead_strip	_icl_load_csc_matrix
.subsections_via_symbols
