	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icl_csc_mode
_icl_csc_mode:                          ## @icl_csc_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_ICL_CSC_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movq	(%rdi), %rcx
	movq	_INTEL_OUTPUT_FORMAT_RGB@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	cmpq	$0, 8(%rdi)
	je	LBB0_5
LBB0_4:
	movq	_ICL_OUTPUT_CSC_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICL_CSC_ENABLE,4,2             ## @ICL_CSC_ENABLE
	.comm	_INTEL_OUTPUT_FORMAT_RGB,8,3    ## @INTEL_OUTPUT_FORMAT_RGB
	.comm	_ICL_OUTPUT_CSC_ENABLE,4,2      ## @ICL_OUTPUT_CSC_ENABLE
	.no_dead_strip	_icl_csc_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icl_csc_mode
_icl_csc_mode:                          ; @icl_csc_mode
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	x9, [x0, #16]
Lloh0:
	adrp	x10, _ICL_CSC_ENABLE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ICL_CSC_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w0, wzr, w10, eq
	ldr	x9, [x8]
Lloh3:
	adrp	x10, _INTEL_OUTPUT_FORMAT_RGB@GOTPAGE
Lloh4:
	ldr	x10, [x10, _INTEL_OUTPUT_FORMAT_RGB@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _ICL_OUTPUT_CSC_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICL_OUTPUT_CSC_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w0, w8, w0
LBB0_3:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ICL_CSC_ENABLE,4,2             ; @ICL_CSC_ENABLE
	.comm	_INTEL_OUTPUT_FORMAT_RGB,8,3    ; @INTEL_OUTPUT_FORMAT_RGB
	.comm	_ICL_OUTPUT_CSC_ENABLE,4,2      ; @ICL_OUTPUT_CSC_ENABLE
	.no_dead_strip	_icl_csc_mode
.subsections_via_symbols
