	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_color_init               ## -- Begin function intel_color_init
	.p2align	4, 0x90
_intel_color_init:                      ## @intel_color_init
	.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, %r14
	movl	(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_INTEL_INFO
	movq	(%rax), %r12
	movq	%r14, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_drm_mode_crtc_set_gamma_size
	movq	%r15, %rdi
	callq	_HAS_GMCH
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_chv_color_check@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movq	_i9xx_color_commit@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	_chv_load_luts@GOTPCREL(%rip), %rbx
	jmp	LBB0_29
LBB0_3:
	callq	_INTEL_GEN
	cmpl	$10, %eax
	jle	LBB0_7
## %bb.4:
	movq	_icl_color_check@GOTPCREL(%rip), %rbx
	jmp	LBB0_13
LBB0_5:
	movq	%r15, %rdi
	callq	_INTEL_GEN
	movq	_i9xx_color_check@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 16(%r15)
	movq	_i9xx_color_commit@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%r15)
	cmpl	$4, %eax
	jl	LBB0_11
## %bb.6:
	movq	_i965_load_luts@GOTPCREL(%rip), %rbx
	jmp	LBB0_29
LBB0_7:
	movq	%r15, %rdi
	callq	_INTEL_GEN
	movq	_glk_color_check@GOTPCREL(%rip), %rbx
	cmpl	$9, %eax
	jg	LBB0_13
## %bb.8:
	movq	%r15, %rdi
	callq	_IS_GEMINILAKE
	testq	%rax, %rax
	jne	LBB0_13
## %bb.9:
	movq	%r15, %rdi
	callq	_INTEL_GEN
	cmpl	$7, %eax
	jl	LBB0_12
## %bb.10:
	movq	_ivb_color_check@GOTPCREL(%rip), %rbx
	jmp	LBB0_13
LBB0_11:
	movq	_i9xx_load_luts@GOTPCREL(%rip), %rbx
	jmp	LBB0_29
LBB0_12:
	movq	_ilk_color_check@GOTPCREL(%rip), %rbx
LBB0_13:
	movq	(%rbx), %rax
	movq	%rax, 16(%r15)
	movq	%r15, %rdi
	callq	_INTEL_GEN
	cmpl	$8, %eax
	jle	LBB0_15
## %bb.14:
	movq	_skl_color_commit@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_15:
	movq	%r15, %rdi
	callq	_IS_BROADWELL
	testq	%rax, %rax
	jne	LBB0_19
## %bb.17:
	movq	%r15, %rdi
	callq	_IS_HASWELL
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	movq	_ilk_color_commit@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_19:
	movq	_hsw_color_commit@GOTPCREL(%rip), %rax
LBB0_20:
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	%r15, %rdi
	callq	_INTEL_GEN
	cmpl	$10, %eax
	jle	LBB0_22
## %bb.21:
	movq	_icl_load_luts@GOTPCREL(%rip), %rbx
	jmp	LBB0_29
LBB0_22:
	movq	%r15, %rdi
	callq	_IS_CANNONLAKE
	movq	_glk_load_luts@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_29
## %bb.23:
	movq	%r15, %rdi
	callq	_IS_GEMINILAKE
	testq	%rax, %rax
	jne	LBB0_29
## %bb.24:
	movq	%r15, %rdi
	callq	_INTEL_GEN
	cmpl	$7, %eax
	jle	LBB0_26
## %bb.25:
	movq	_bdw_load_luts@GOTPCREL(%rip), %rbx
	jmp	LBB0_29
LBB0_26:
	movq	%r15, %rdi
	callq	_INTEL_GEN
	cmpl	$7, %eax
	jl	LBB0_28
## %bb.27:
	movq	_ivb_load_luts@GOTPCREL(%rip), %rbx
	jmp	LBB0_29
LBB0_28:
	movq	_ilk_load_luts@GOTPCREL(%rip), %rbx
LBB0_29:
	movl	(%rbx), %eax
	movl	%eax, (%r15)
	xorl	%ebx, %ebx
	testq	%r12, %r12
	setne	%bl
	movq	%r15, %rdi
	callq	_INTEL_INFO
	movq	(%rax), %r12
	movq	%r15, %rdi
	callq	_INTEL_INFO
	movl	8(%rax), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_crtc_enable_color_mgmt     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_chv_color_check,8,3            ## @chv_color_check
	.comm	_i9xx_color_commit,8,3          ## @i9xx_color_commit
	.comm	_chv_load_luts,4,2              ## @chv_load_luts
	.comm	_i9xx_color_check,8,3           ## @i9xx_color_check
	.comm	_i965_load_luts,4,2             ## @i965_load_luts
	.comm	_i9xx_load_luts,4,2             ## @i9xx_load_luts
	.comm	_icl_color_check,8,3            ## @icl_color_check
	.comm	_glk_color_check,8,3            ## @glk_color_check
	.comm	_ivb_color_check,8,3            ## @ivb_color_check
	.comm	_ilk_color_check,8,3            ## @ilk_color_check
	.comm	_skl_color_commit,8,3           ## @skl_color_commit
	.comm	_hsw_color_commit,8,3           ## @hsw_color_commit
	.comm	_ilk_color_commit,8,3           ## @ilk_color_commit
	.comm	_icl_load_luts,4,2              ## @icl_load_luts
	.comm	_glk_load_luts,4,2              ## @glk_load_luts
	.comm	_bdw_load_luts,4,2              ## @bdw_load_luts
	.comm	_ivb_load_luts,4,2              ## @ivb_load_luts
	.comm	_ilk_load_luts,4,2              ## @ilk_load_luts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_color_init               ; -- Begin function intel_color_init
	.p2align	2
_intel_color_init:                      ; @intel_color_init
	.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]
	bl	_to_i915
	mov	x20, x0
	bl	_INTEL_INFO
	ldr	x21, [x0]
	mov	x0, x19
	mov	w1, #256
	bl	_drm_mode_crtc_set_gamma_size
	mov	x0, x20
	bl	_HAS_GMCH
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _chv_color_check@GOTPAGE
Lloh1:
	ldr	x8, [x8, _chv_color_check@GOTPAGEOFF]
Lloh2:
	adrp	x9, _i9xx_color_commit@GOTPAGE
Lloh3:
	ldr	x9, [x9, _i9xx_color_commit@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	x9, [x9]
	stp	x9, x8, [x20, #8]
Lloh6:
	adrp	x8, _chv_load_luts@GOTPAGE
Lloh7:
	ldr	x8, [x8, _chv_load_luts@GOTPAGEOFF]
	b	LBB0_19
LBB0_3:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #10
	b.le	LBB0_7
; %bb.4:
Lloh8:
	adrp	x8, _icl_color_check@GOTPAGE
Lloh9:
	ldr	x8, [x8, _icl_color_check@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	mov	x0, x20
	bl	_INTEL_GEN
Lloh10:
	adrp	x8, _i9xx_color_check@GOTPAGE
Lloh11:
	ldr	x8, [x8, _i9xx_color_check@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _i9xx_color_commit@GOTPAGE
Lloh14:
	ldr	x9, [x9, _i9xx_color_commit@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	stp	x9, x8, [x20, #8]
Lloh16:
	adrp	x8, _i9xx_load_luts@GOTPAGE
Lloh17:
	ldr	x8, [x8, _i9xx_load_luts@GOTPAGEOFF]
Lloh18:
	adrp	x9, _i965_load_luts@GOTPAGE
Lloh19:
	ldr	x9, [x9, _i965_load_luts@GOTPAGEOFF]
	cmp	w0, #3
LBB0_6:
	csel	x8, x9, x8, gt
	b	LBB0_19
LBB0_7:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #9
	b.gt	LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_IS_GEMINILAKE
	cbz	x0, LBB0_20
LBB0_9:
Lloh20:
	adrp	x8, _glk_color_check@GOTPAGE
Lloh21:
	ldr	x8, [x8, _glk_color_check@GOTPAGEOFF]
LBB0_10:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #9
	b.lt	LBB0_12
; %bb.11:
Lloh22:
	adrp	x22, _skl_color_commit@GOTPAGE
Lloh23:
	ldr	x22, [x22, _skl_color_commit@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
	mov	x0, x20
	bl	_IS_BROADWELL
Lloh24:
	adrp	x22, _hsw_color_commit@GOTPAGE
Lloh25:
	ldr	x22, [x22, _hsw_color_commit@GOTPAGEOFF]
	cbnz	x0, LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_IS_HASWELL
Lloh26:
	adrp	x8, _ilk_color_commit@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ilk_color_commit@GOTPAGEOFF]
	cmp	x0, #0
	csel	x22, x8, x22, eq
LBB0_14:
	ldr	x8, [x22]
	str	x8, [x20, #8]
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #10
	b.le	LBB0_16
; %bb.15:
Lloh28:
	adrp	x8, _icl_load_luts@GOTPAGE
Lloh29:
	ldr	x8, [x8, _icl_load_luts@GOTPAGEOFF]
	b	LBB0_19
LBB0_16:
	mov	x0, x20
	bl	_IS_CANNONLAKE
	cbnz	x0, LBB0_18
; %bb.17:
	mov	x0, x20
	bl	_IS_GEMINILAKE
	cbz	x0, LBB0_21
LBB0_18:
Lloh30:
	adrp	x8, _glk_load_luts@GOTPAGE
Lloh31:
	ldr	x8, [x8, _glk_load_luts@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	str	w8, [x20]
	cmp	x21, #0
	cset	w21, ne
	mov	x0, x20
	bl	_INTEL_INFO
	ldr	x22, [x0]
	mov	x0, x20
	bl	_INTEL_INFO
	ldr	w3, [x0, #8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	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	_drm_crtc_enable_color_mgmt
LBB0_20:
	mov	x0, x20
	bl	_INTEL_GEN
Lloh32:
	adrp	x8, _ilk_color_check@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ilk_color_check@GOTPAGEOFF]
Lloh34:
	adrp	x9, _ivb_color_check@GOTPAGE
Lloh35:
	ldr	x9, [x9, _ivb_color_check@GOTPAGEOFF]
	cmp	w0, #6
	csel	x8, x9, x8, gt
	b	LBB0_10
LBB0_21:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #7
	b.le	LBB0_23
; %bb.22:
Lloh36:
	adrp	x8, _bdw_load_luts@GOTPAGE
Lloh37:
	ldr	x8, [x8, _bdw_load_luts@GOTPAGEOFF]
	b	LBB0_19
LBB0_23:
	mov	x0, x20
	bl	_INTEL_GEN
Lloh38:
	adrp	x8, _ilk_load_luts@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ilk_load_luts@GOTPAGEOFF]
Lloh40:
	adrp	x9, _ivb_load_luts@GOTPAGE
Lloh41:
	ldr	x9, [x9, _ivb_load_luts@GOTPAGEOFF]
	cmp	w0, #6
	b	LBB0_6
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_chv_color_check,8,3            ; @chv_color_check
	.comm	_i9xx_color_commit,8,3          ; @i9xx_color_commit
	.comm	_chv_load_luts,4,2              ; @chv_load_luts
	.comm	_i9xx_color_check,8,3           ; @i9xx_color_check
	.comm	_i965_load_luts,4,2             ; @i965_load_luts
	.comm	_i9xx_load_luts,4,2             ; @i9xx_load_luts
	.comm	_icl_color_check,8,3            ; @icl_color_check
	.comm	_glk_color_check,8,3            ; @glk_color_check
	.comm	_ivb_color_check,8,3            ; @ivb_color_check
	.comm	_ilk_color_check,8,3            ; @ilk_color_check
	.comm	_skl_color_commit,8,3           ; @skl_color_commit
	.comm	_hsw_color_commit,8,3           ; @hsw_color_commit
	.comm	_ilk_color_commit,8,3           ; @ilk_color_commit
	.comm	_icl_load_luts,4,2              ; @icl_load_luts
	.comm	_glk_load_luts,4,2              ; @glk_load_luts
	.comm	_bdw_load_luts,4,2              ; @bdw_load_luts
	.comm	_ivb_load_luts,4,2              ; @ivb_load_luts
	.comm	_ilk_load_luts,4,2              ; @ilk_load_luts
.subsections_via_symbols
