	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivb_color_check
_ivb_color_check:                       ## @ivb_color_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_ilk_csc_limited_range
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_check_luts
	testl	%eax, %eax
	je	LBB0_1
## %bb.9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	cmpq	$0, 40(%rbx)
	jne	LBB0_4
## %bb.2:
	cmpq	$0, 32(%rbx)
	je	LBB0_3
LBB0_4:
	xorl	%eax, %eax
	cmpl	$0, 48(%rbx)
	sete	%al
LBB0_5:
	movl	%eax, (%rbx)
	movq	8(%rbx), %rcx
	movq	_INTEL_OUTPUT_FORMAT_RGB@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.6:
	cmpq	$0, 24(%rbx)
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	setne	%al
LBB0_8:
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_ivb_gamma_mode
	movl	%eax, 20(%rbx)
	movq	%rbx, %rdi
	callq	_ivb_csc_mode
	movl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_intel_color_add_affected_planes ## TAILCALL
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_OUTPUT_FORMAT_RGB,8,3    ## @INTEL_OUTPUT_FORMAT_RGB
	.no_dead_strip	_ivb_color_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivb_color_check
_ivb_color_check:                       ; @ivb_color_check
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_ilk_csc_limited_range
	mov	x20, x0
	mov	x0, x19
	bl	_check_luts
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_5
LBB0_4:
	ldr	w8, [x19, #48]
	cmp	w8, #0
	cset	w8, eq
LBB0_5:
	str	w8, [x19]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _INTEL_OUTPUT_FORMAT_RGB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INTEL_OUTPUT_FORMAT_RGB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x19, #24]
	mov	w9, #1
	cmp	w20, #0
	cset	w10, ne
	cmp	x8, #0
	csel	w8, w9, w10, ne
	b	LBB0_8
LBB0_7:
	mov	w8, #1
LBB0_8:
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_ivb_gamma_mode
	str	w0, [x19, #20]
	mov	x0, x19
	bl	_ivb_csc_mode
	str	w0, [x19, #16]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_intel_color_add_affected_planes
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_OUTPUT_FORMAT_RGB,8,3    ; @INTEL_OUTPUT_FORMAT_RGB
	.no_dead_strip	_ivb_color_check
.subsections_via_symbols
