	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_hw_sspp_setup_csc
_dpu_hw_sspp_setup_csc:                 ## @dpu_hw_sspp_setup_csc
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_DPU_SSPP_CSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	__sspp_subblk_offset
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movq	_DPU_SSPP_CSC_10BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_CSC_10BIT_OFFSET@GOTPCREL(%rip), %rax
	movl	-20(%rbp), %esi
	addl	(%rax), %esi
	movl	%esi, -20(%rbp)
	movl	$1, %ecx
	jmp	LBB0_5
LBB0_3:
	xorl	%ecx, %ecx
	movl	-20(%rbp), %esi
LBB0_5:
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_dpu_hw_csc_setup
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPU_SSPP_CSC,4,2               ## @DPU_SSPP_CSC
	.comm	_DPU_SSPP_CSC_10BIT,4,2         ## @DPU_SSPP_CSC_10BIT
	.comm	_CSC_10BIT_OFFSET,8,3           ## @CSC_10BIT_OFFSET
	.no_dead_strip	_dpu_hw_sspp_setup_csc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpu_hw_sspp_setup_csc
_dpu_hw_sspp_setup_csc:                 ; @dpu_hw_sspp_setup_csc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _DPU_SSPP_CSC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPU_SSPP_CSC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	__sspp_subblk_offset
	cbz	x19, LBB0_6
; %bb.1:
	cbnz	x0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _DPU_SSPP_CSC_10BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DPU_SSPP_CSC_10BIT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x1, [x20, #8]
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _CSC_10BIT_OFFSET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CSC_10BIT_OFFSET@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	add	w1, w9, w8
	str	w1, [sp, #12]
	mov	w3, #1
	b	LBB0_5
LBB0_4:
	mov	w3, #0
	ldr	w1, [sp, #12]
LBB0_5:
	mov	x0, x20
	mov	x2, x19
	bl	_dpu_hw_csc_setup
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DPU_SSPP_CSC,4,2               ; @DPU_SSPP_CSC
	.comm	_DPU_SSPP_CSC_10BIT,4,2         ; @DPU_SSPP_CSC_10BIT
	.comm	_CSC_10BIT_OFFSET,8,3           ; @CSC_10BIT_OFFSET
	.no_dead_strip	_dpu_hw_sspp_setup_csc
.subsections_via_symbols
