	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_color_start
_mtk_color_start:                       ## @mtk_color_start
	.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	_comp_to_color
	movq	%rax, %r14
	movq	_COLOR_BYPASS_ALL@GOTPCREL(%rip), %rax
	movq	_COLOR_SEQ_SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_DISP_COLOR_CFG_MAIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	(%rbx), %rbx
	movq	%r14, %rdi
	callq	_DISP_COLOR_START
	addq	%rax, %rbx
	movl	$1, %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_COLOR_BYPASS_ALL,4,2           ## @COLOR_BYPASS_ALL
	.comm	_COLOR_SEQ_SEL,4,2              ## @COLOR_SEQ_SEL
	.comm	_DISP_COLOR_CFG_MAIN,8,3        ## @DISP_COLOR_CFG_MAIN
	.no_dead_strip	_mtk_color_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_color_start
_mtk_color_start:                       ; @mtk_color_start
	.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	_comp_to_color
	mov	x20, x0
Lloh0:
	adrp	x8, _COLOR_BYPASS_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COLOR_BYPASS_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _COLOR_SEQ_SEL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _COLOR_SEQ_SEL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _DISP_COLOR_CFG_MAIN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DISP_COLOR_CFG_MAIN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x19, [x19]
	mov	x0, x20
	bl	_DISP_COLOR_START
	add	x1, x0, x19
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_COLOR_BYPASS_ALL,4,2           ; @COLOR_BYPASS_ALL
	.comm	_COLOR_SEQ_SEL,4,2              ; @COLOR_SEQ_SEL
	.comm	_DISP_COLOR_CFG_MAIN,8,3        ; @DISP_COLOR_CFG_MAIN
	.no_dead_strip	_mtk_color_start
.subsections_via_symbols
