	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_color_commit
_skl_color_commit:                      ## @skl_color_commit
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	24(%rdi), %edi
	callq	_to_intel_crtc
	movq	%rax, %r15
	movl	4(%rax), %edi
	callq	_to_i915
	movq	%rax, %r14
	xorl	%ebx, %ebx
	cmpq	$0, 16(%r12)
	movl	$0, %eax
	je	LBB0_2
## %bb.1:
	movq	_SKL_BOTTOM_COLOR_GAMMA_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movl	(%r15), %edi
	cmpq	$0, 8(%r12)
	je	LBB0_4
## %bb.3:
	movq	_SKL_BOTTOM_COLOR_CSC_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_4:
	orl	%eax, %ebx
	callq	_SKL_BOTTOM_COLOR
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	(%r15), %edi
	callq	_GAMMA_MODE
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movq	%r14, %rdi
	callq	_INTEL_GEN
	movq	%r12, %rdi
	cmpl	$11, %eax
	jl	LBB0_6
## %bb.5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_icl_load_csc_matrix            ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ilk_load_csc_matrix            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SKL_BOTTOM_COLOR_GAMMA_ENABLE,4,2 ## @SKL_BOTTOM_COLOR_GAMMA_ENABLE
	.comm	_SKL_BOTTOM_COLOR_CSC_ENABLE,4,2 ## @SKL_BOTTOM_COLOR_CSC_ENABLE
	.no_dead_strip	_skl_color_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skl_color_commit
_skl_color_commit:                      ; @skl_color_commit
	.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, #24]
	bl	_to_intel_crtc
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x21, x0
Lloh0:
	adrp	x8, _SKL_BOTTOM_COLOR_GAMMA_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SKL_BOTTOM_COLOR_GAMMA_ENABLE@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	ldr	w8, [x8]
	ldp	x10, x9, [x19, #8]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
Lloh3:
	adrp	x9, _SKL_BOTTOM_COLOR_CSC_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SKL_BOTTOM_COLOR_CSC_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w22, w9, w8
	bl	_SKL_BOTTOM_COLOR
	mov	x1, x22
	bl	_I915_WRITE
	ldr	w0, [x20]
	bl	_GAMMA_MODE
	ldr	w1, [x19]
	bl	_I915_WRITE
	mov	x0, x21
	bl	_INTEL_GEN
	cmp	w0, #11
	b.lt	LBB0_2
; %bb.1:
	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	_icl_load_csc_matrix
LBB0_2:
	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	_ilk_load_csc_matrix
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SKL_BOTTOM_COLOR_GAMMA_ENABLE,4,2 ; @SKL_BOTTOM_COLOR_GAMMA_ENABLE
	.comm	_SKL_BOTTOM_COLOR_CSC_ENABLE,4,2 ; @SKL_BOTTOM_COLOR_CSC_ENABLE
	.no_dead_strip	_skl_color_commit
.subsections_via_symbols
