	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csc_enable
_csc_enable:                            ## @csc_enable
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r13
	xorl	%edi, %edi
	movq	%rdx, %r14
	testq	%rdx, %rdx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	movq	(%r14), %rax
	movq	_CSC_YUV2RGB@GOTPCREL(%rip), %rcx
	movq	_CSC_YUV2YUV@GOTPCREL(%rip), %r15
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
	movq	(%r15), %rcx
	cmpq	%rax, %rcx
	jne	LBB0_4
LBB0_3:
	movq	_DATA_FORMAT_YUV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MDP5_PIPE_OP_MODE_CSC_SRC_DATA_FORMAT
	movl	%eax, %ebx
	movq	(%r14), %rax
	movq	(%r15), %rcx
LBB0_4:
	movq	_CSC_RGB2YUV@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_6
## %bb.5:
	cmpq	%rax, %rcx
	jne	LBB0_7
LBB0_6:
	movq	_DATA_FORMAT_YUV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MDP5_PIPE_OP_MODE_CSC_DST_DATA_FORMAT
	orl	%eax, %ebx
LBB0_7:
	movq	_MDP5_PIPE_OP_MODE_CSC_1_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_REG_MDP5_PIPE_OP_MODE
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_mdp5_write
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %r15
	movl	%r12d, %edi
	callq	_REG_MDP5_PIPE_CSC_1_MATRIX_COEFF_0
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r13, %r12
	movl	%eax, %r13d
	movl	(%r15), %edi
	callq	_MDP5_PIPE_CSC_1_MATRIX_COEFF_0_COEFF_11
	movl	%eax, %ebx
	movl	4(%r15), %edi
	callq	_MDP5_PIPE_CSC_1_MATRIX_COEFF_0_COEFF_12
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_mdp5_write
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_REG_MDP5_PIPE_CSC_1_MATRIX_COEFF_1
	movl	%eax, %r13d
	movl	8(%r15), %edi
	callq	_MDP5_PIPE_CSC_1_MATRIX_COEFF_1_COEFF_13
	movl	%eax, %ebx
	movl	12(%r15), %edi
	callq	_MDP5_PIPE_CSC_1_MATRIX_COEFF_1_COEFF_21
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_mdp5_write
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_REG_MDP5_PIPE_CSC_1_MATRIX_COEFF_2
	movl	%eax, %r13d
	movl	16(%r15), %edi
	callq	_MDP5_PIPE_CSC_1_MATRIX_COEFF_2_COEFF_22
	movl	%eax, %ebx
	movl	20(%r15), %edi
	callq	_MDP5_PIPE_CSC_1_MATRIX_COEFF_2_COEFF_23
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_mdp5_write
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_REG_MDP5_PIPE_CSC_1_MATRIX_COEFF_3
	movl	%eax, %r13d
	movl	24(%r15), %edi
	callq	_MDP5_PIPE_CSC_1_MATRIX_COEFF_3_COEFF_31
	movl	%eax, %ebx
	movl	28(%r15), %edi
	callq	_MDP5_PIPE_CSC_1_MATRIX_COEFF_3_COEFF_32
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%ebx, %edx
	callq	_mdp5_write
	movl	%r13d, %edi
	callq	_REG_MDP5_PIPE_CSC_1_MATRIX_COEFF_4
	movl	%eax, %ebx
	movl	32(%r15), %edi
	callq	_MDP5_PIPE_CSC_1_MATRIX_COEFF_4_COEFF_33
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_mdp5_write
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	40(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %r15
	movq	16(%r14), %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_REG_MDP5_PIPE_CSC_1_PRE_CLAMP
	movl	%eax, %r13d
	movl	4(%r12,%rbx,8), %edi
	callq	_MDP5_PIPE_CSC_1_PRE_CLAMP_REG_HIGH
	movl	%eax, %r14d
	movl	(%r12,%rbx,8), %edi
	movq	%r15, %r12
	callq	_MDP5_PIPE_CSC_1_PRE_CLAMP_REG_LOW
	orl	%eax, %r14d
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_mdp5_write
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_REG_MDP5_PIPE_CSC_1_POST_CLAMP
	movl	%eax, %r14d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	4(%r15,%rbx,8), %edi
	callq	_MDP5_PIPE_CSC_1_POST_CLAMP_REG_HIGH
	movl	%eax, %r13d
	movl	(%r15,%rbx,8), %edi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	callq	_MDP5_PIPE_CSC_1_POST_CLAMP_REG_LOW
	orl	%eax, %r13d
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	callq	_mdp5_write
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_REG_MDP5_PIPE_CSC_1_PRE_BIAS
	movl	%eax, %r14d
	movq	40(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_MDP5_PIPE_CSC_1_PRE_BIAS_REG_VALUE
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_mdp5_write
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_REG_MDP5_PIPE_CSC_1_POST_BIAS
	movl	%eax, %r14d
	movq	32(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_MDP5_PIPE_CSC_1_POST_BIAS_REG_VALUE
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_mdp5_write
	incq	%rbx
	movq	%r15, %r14
	movq	40(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSC_YUV2RGB,8,3                ## @CSC_YUV2RGB
	.comm	_CSC_YUV2YUV,8,3                ## @CSC_YUV2YUV
	.comm	_DATA_FORMAT_YUV,4,2            ## @DATA_FORMAT_YUV
	.comm	_CSC_RGB2YUV,8,3                ## @CSC_RGB2YUV
	.comm	_MDP5_PIPE_OP_MODE_CSC_1_EN,4,2 ## @MDP5_PIPE_OP_MODE_CSC_1_EN
	.no_dead_strip	_csc_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csc_enable
_csc_enable:                            ; @csc_enable
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	cmp	x2, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _CSC_YUV2RGB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CSC_YUV2RGB@GOTPAGEOFF]
Lloh2:
	adrp	x24, _CSC_YUV2YUV@GOTPAGE
Lloh3:
	ldr	x24, [x24, _CSC_YUV2YUV@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x9]
	ldr	x9, [x24]
	cmp	x8, x10
	ccmp	x9, x8, #4, ne
Lloh5:
	adrp	x23, _DATA_FORMAT_YUV@GOTPAGE
Lloh6:
	ldr	x23, [x23, _DATA_FORMAT_YUV@GOTPAGEOFF]
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x23]
	bl	_MDP5_PIPE_OP_MODE_CSC_SRC_DATA_FORMAT
	mov	x22, x0
	ldr	x8, [x19]
	ldr	x9, [x24]
	b	LBB0_4
LBB0_3:
	mov	w22, #0
LBB0_4:
Lloh7:
	adrp	x10, _CSC_RGB2YUV@GOTPAGE
Lloh8:
	ldr	x10, [x10, _CSC_RGB2YUV@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x9, x8, #4, ne
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x23]
	bl	_MDP5_PIPE_OP_MODE_CSC_DST_DATA_FORMAT
	orr	w22, w0, w22
LBB0_6:
Lloh10:
	adrp	x8, _MDP5_PIPE_OP_MODE_CSC_1_EN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MDP5_PIPE_OP_MODE_CSC_1_EN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w22, w8, w22
	mov	x0, x20
	bl	_REG_MDP5_PIPE_OP_MODE
	mov	x1, x0
	mov	x0, x21
	mov	x2, x22
	bl	_mdp5_write
	ldr	x24, [x19, #8]
	mov	x0, x20
	bl	_REG_MDP5_PIPE_CSC_1_MATRIX_COEFF_0
	mov	x22, x0
	ldr	w0, [x24]
	bl	_MDP5_PIPE_CSC_1_MATRIX_COEFF_0_COEFF_11
	mov	x23, x0
	ldr	w0, [x24, #4]
	bl	_MDP5_PIPE_CSC_1_MATRIX_COEFF_0_COEFF_12
	orr	w2, w0, w23
	mov	x0, x21
	mov	x1, x22
	bl	_mdp5_write
	mov	x0, x20
	bl	_REG_MDP5_PIPE_CSC_1_MATRIX_COEFF_1
	mov	x22, x0
	ldr	w0, [x24, #8]
	bl	_MDP5_PIPE_CSC_1_MATRIX_COEFF_1_COEFF_13
	mov	x23, x0
	ldr	w0, [x24, #12]
	bl	_MDP5_PIPE_CSC_1_MATRIX_COEFF_1_COEFF_21
	orr	w2, w0, w23
	mov	x0, x21
	mov	x1, x22
	bl	_mdp5_write
	mov	x0, x20
	bl	_REG_MDP5_PIPE_CSC_1_MATRIX_COEFF_2
	mov	x22, x0
	ldr	w0, [x24, #16]
	bl	_MDP5_PIPE_CSC_1_MATRIX_COEFF_2_COEFF_22
	mov	x23, x0
	ldr	w0, [x24, #20]
	bl	_MDP5_PIPE_CSC_1_MATRIX_COEFF_2_COEFF_23
	orr	w2, w0, w23
	mov	x0, x21
	mov	x1, x22
	bl	_mdp5_write
	mov	x0, x20
	bl	_REG_MDP5_PIPE_CSC_1_MATRIX_COEFF_3
	mov	x22, x0
	ldr	w0, [x24, #24]
	bl	_MDP5_PIPE_CSC_1_MATRIX_COEFF_3_COEFF_31
	mov	x23, x0
	ldr	w0, [x24, #28]
	bl	_MDP5_PIPE_CSC_1_MATRIX_COEFF_3_COEFF_32
	orr	w2, w0, w23
	mov	x0, x21
	mov	x1, x22
	bl	_mdp5_write
	mov	x0, x20
	bl	_REG_MDP5_PIPE_CSC_1_MATRIX_COEFF_4
	mov	x22, x0
	ldr	w0, [x24, #32]
	bl	_MDP5_PIPE_CSC_1_MATRIX_COEFF_4_COEFF_33
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_mdp5_write
	ldr	x0, [x19, #40]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x25, #0
	mov	x22, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x24, x26, [x19, #16]
	mov	x0, x20
	mov	x1, x22
	bl	_REG_MDP5_PIPE_CSC_1_PRE_CLAMP
	mov	x23, x0
	add	x27, x24, x25
	ldr	w0, [x27, #4]
	bl	_MDP5_PIPE_CSC_1_PRE_CLAMP_REG_HIGH
	mov	x24, x0
	ldr	w0, [x27]
	bl	_MDP5_PIPE_CSC_1_PRE_CLAMP_REG_LOW
	orr	w2, w0, w24
	mov	x0, x21
	mov	x1, x23
	bl	_mdp5_write
	mov	x0, x20
	mov	x1, x22
	bl	_REG_MDP5_PIPE_CSC_1_POST_CLAMP
	mov	x23, x0
	add	x26, x26, x25
	ldr	w0, [x26, #4]
	bl	_MDP5_PIPE_CSC_1_POST_CLAMP_REG_HIGH
	mov	x24, x0
	ldr	w0, [x26]
	bl	_MDP5_PIPE_CSC_1_POST_CLAMP_REG_LOW
	orr	w2, w0, w24
	mov	x0, x21
	mov	x1, x23
	bl	_mdp5_write
	mov	x0, x20
	mov	x1, x22
	bl	_REG_MDP5_PIPE_CSC_1_PRE_BIAS
	mov	x23, x0
	ldr	x8, [x19, #40]
	lsl	x24, x22, #2
	ldr	w0, [x8, x24]
	bl	_MDP5_PIPE_CSC_1_PRE_BIAS_REG_VALUE
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_mdp5_write
	mov	x0, x20
	mov	x1, x22
	bl	_REG_MDP5_PIPE_CSC_1_POST_BIAS
	mov	x23, x0
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x24]
	bl	_MDP5_PIPE_CSC_1_POST_BIAS_REG_VALUE
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_mdp5_write
	add	x22, x22, #1
	ldr	x0, [x19, #40]
	bl	_ARRAY_SIZE
	add	x25, x25, #8
	cmp	x22, w0, sxtw
	b.lt	LBB0_8
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CSC_YUV2RGB,8,3                ; @CSC_YUV2RGB
	.comm	_CSC_YUV2YUV,8,3                ; @CSC_YUV2YUV
	.comm	_DATA_FORMAT_YUV,4,2            ; @DATA_FORMAT_YUV
	.comm	_CSC_RGB2YUV,8,3                ; @CSC_RGB2YUV
	.comm	_MDP5_PIPE_OP_MODE_CSC_1_EN,4,2 ; @MDP5_PIPE_OP_MODE_CSC_1_EN
	.no_dead_strip	_csc_enable
.subsections_via_symbols
