	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpp1_cm_program_color_matrix
_dpp1_cm_program_color_matrix:          ## @dpp1_cm_program_color_matrix
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_CM_TEST_DEBUG_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	%edi, %edx
	movl	$9, %ecx
	callq	_REG_SET
	movq	_CM_TEST_DEBUG_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CM_TEST_DEBUG_DATA_ID9_OCSC_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_REG_GET
	xorl	%r12d, %r12d
	cmpl	$4, -36(%rbp)
	sete	%r12b
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movsd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	movq	_CM_OCSC_C11_C12@GOTPCREL(%rip), %rax
	cmoveq	_CM_COMB_C11_C12@GOTPCREL(%rip), %rax
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movups	%xmm1, -56(%rbp)
	movl	(%rax), %edi
	movq	_CM_OCSC_C33_C34@GOTPCREL(%rip), %rbx
	cmoveq	_CM_COMB_C33_C34@GOTPCREL(%rip), %rbx
	orl	$4, %r12d
	callq	_REG
	movq	%rax, -64(%rbp)
	movl	(%rbx), %edi
	callq	_REG
	movq	%rax, -72(%rbp)
	movl	(%r15), %edi
	leaq	-72(%rbp), %rdx
	movq	%r14, %rsi
	callq	_cm_helper_program_color_matrices
	movq	_CM_OCSC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CM_OCSC_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	%r12d, %ecx
	callq	_REG_SET
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	jmp	_BREAK_TO_DEBUGGER              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CM_TEST_DEBUG_INDEX,4,2        ## @CM_TEST_DEBUG_INDEX
	.comm	_CM_TEST_DEBUG_DATA,4,2         ## @CM_TEST_DEBUG_DATA
	.comm	_CM_TEST_DEBUG_DATA_ID9_OCSC_MODE,4,2 ## @CM_TEST_DEBUG_DATA_ID9_OCSC_MODE
	.comm	_CM_OCSC_C11_C12,4,2            ## @CM_OCSC_C11_C12
	.comm	_CM_OCSC_C33_C34,4,2            ## @CM_OCSC_C33_C34
	.comm	_CM_COMB_C11_C12,4,2            ## @CM_COMB_C11_C12
	.comm	_CM_COMB_C33_C34,4,2            ## @CM_COMB_C33_C34
	.comm	_CM_OCSC_CONTROL,4,2            ## @CM_OCSC_CONTROL
	.comm	_CM_OCSC_MODE,4,2               ## @CM_OCSC_MODE
	.no_dead_strip	_dpp1_cm_program_color_matrix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpp1_cm_program_color_matrix
_dpp1_cm_program_color_matrix:          ; @dpp1_cm_program_color_matrix
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_2
; %bb.1:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CM_TEST_DEBUG_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CM_TEST_DEBUG_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	mov	x2, x0
	mov	w3, #9
	bl	_REG_SET
Lloh3:
	adrp	x8, _CM_TEST_DEBUG_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CM_TEST_DEBUG_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _CM_TEST_DEBUG_DATA_ID9_OCSC_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CM_TEST_DEBUG_DATA_ID9_OCSC_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	sub	x2, x29, #36
	bl	_REG_GET
	ldur	w8, [x29, #-36]
	cmp	w8, #4
	mov	w8, #4
	cinc	w21, w8, eq
	ldp	x9, x8, [x20, #8]
	ldr	d0, [x8]
	ldr	d1, [x9]
	mov.d	v1[1], v0[0]
	stur	q1, [sp, #24]
Lloh9:
	adrp	x8, _CM_COMB_C11_C12@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CM_COMB_C11_C12@GOTPAGEOFF]
Lloh11:
	adrp	x9, _CM_OCSC_C11_C12@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CM_OCSC_C11_C12@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _CM_COMB_C33_C34@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CM_COMB_C33_C34@GOTPAGEOFF]
Lloh15:
	adrp	x9, _CM_OCSC_C33_C34@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CM_OCSC_C33_C34@GOTPAGEOFF]
	csel	x22, x8, x9, eq
	bl	_REG
	str	x0, [sp, #16]
	ldr	w0, [x22]
	bl	_REG
	str	x0, [sp, #8]
	ldr	w0, [x20]
	add	x2, sp, #8
	mov	x1, x19
	bl	_cm_helper_program_color_matrices
Lloh17:
	adrp	x8, _CM_OCSC_CONTROL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CM_OCSC_CONTROL@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _CM_OCSC_MODE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CM_OCSC_MODE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	w1, #0
	mov	x3, x21
	bl	_REG_SET
	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
	add	sp, sp, #96
	ret
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	b	_BREAK_TO_DEBUGGER
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CM_TEST_DEBUG_INDEX,4,2        ; @CM_TEST_DEBUG_INDEX
	.comm	_CM_TEST_DEBUG_DATA,4,2         ; @CM_TEST_DEBUG_DATA
	.comm	_CM_TEST_DEBUG_DATA_ID9_OCSC_MODE,4,2 ; @CM_TEST_DEBUG_DATA_ID9_OCSC_MODE
	.comm	_CM_OCSC_C11_C12,4,2            ; @CM_OCSC_C11_C12
	.comm	_CM_OCSC_C33_C34,4,2            ; @CM_OCSC_C33_C34
	.comm	_CM_COMB_C11_C12,4,2            ; @CM_COMB_C11_C12
	.comm	_CM_COMB_C33_C34,4,2            ; @CM_COMB_C33_C34
	.comm	_CM_OCSC_CONTROL,4,2            ; @CM_OCSC_CONTROL
	.comm	_CM_OCSC_MODE,4,2               ; @CM_OCSC_MODE
	.no_dead_strip	_dpp1_cm_program_color_matrix
.subsections_via_symbols
