	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_config_black_clamp
_ccdc_config_black_clamp:               ## @ccdc_config_black_clamp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$0, 20(%rdi)
	je	LBB0_1
## %bb.2:
	movq	_CCDC_BLK_SGAIN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CCDC_BLK_ST_PXL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	8(%rdi), %edx
	movq	_CCDC_BLK_ST_PXL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	andl	4(%rdi), %eax
	movq	_CCDC_BLK_SAMPLE_LINE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	12(%rdi), %esi
	movq	_CCDC_BLK_SAMPLE_LINE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movq	_CCDC_BLK_SAMPLE_LN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	16(%rdi), %ebx
	movq	_CCDC_BLK_SAMPLE_LN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	%eax, %edx
	orl	%esi, %ebx
	orl	%edx, %ebx
	movq	_CCDC_BLK_CLAMP_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_CCDC_CLAMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_regw
	movq	_ccdc_cfg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	L_.str.3(%rip), %rbx
	movq	_CCDC_DCSUB@GOTPCREL(%rip), %rax
	movq	_CCDC_DCSUB_DEFAULT_VAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_CCDC_BLK_DC_SUB_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%rdi), %ebx
	movq	_CCDC_DCSUB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_regw
	movq	_ccdc_cfg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	L_.str.1(%rip), %rbx
	movq	_CCDC_CLAMP@GOTPCREL(%rip), %rax
	movq	_CCDC_CLAMP_DEFAULT_VAL@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_regw
	movq	_ccdc_cfg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CCDC_BLK_DC_SUB_MASK,4,2       ## @CCDC_BLK_DC_SUB_MASK
	.comm	_CCDC_DCSUB,4,2                 ## @CCDC_DCSUB
	.comm	_ccdc_cfg,4,2                   ## @ccdc_cfg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nWriting 0x%x to DCSUB...\n"

	.comm	_CCDC_CLAMP_DEFAULT_VAL,4,2     ## @CCDC_CLAMP_DEFAULT_VAL
	.comm	_CCDC_CLAMP,4,2                 ## @CCDC_CLAMP
L_.str.1:                               ## @.str.1
	.asciz	"\nWriting 0x0000 to CLAMP...\n"

	.comm	_CCDC_BLK_SGAIN_MASK,4,2        ## @CCDC_BLK_SGAIN_MASK
	.comm	_CCDC_BLK_ST_PXL_MASK,4,2       ## @CCDC_BLK_ST_PXL_MASK
	.comm	_CCDC_BLK_ST_PXL_SHIFT,4,2      ## @CCDC_BLK_ST_PXL_SHIFT
	.comm	_CCDC_BLK_SAMPLE_LINE_MASK,4,2  ## @CCDC_BLK_SAMPLE_LINE_MASK
	.comm	_CCDC_BLK_SAMPLE_LINE_SHIFT,4,2 ## @CCDC_BLK_SAMPLE_LINE_SHIFT
	.comm	_CCDC_BLK_SAMPLE_LN_MASK,4,2    ## @CCDC_BLK_SAMPLE_LN_MASK
	.comm	_CCDC_BLK_SAMPLE_LN_SHIFT,4,2   ## @CCDC_BLK_SAMPLE_LN_SHIFT
	.comm	_CCDC_BLK_CLAMP_ENABLE,4,2      ## @CCDC_BLK_CLAMP_ENABLE
L_.str.2:                               ## @.str.2
	.asciz	"\nWriting 0x%x to CLAMP...\n"

	.comm	_CCDC_DCSUB_DEFAULT_VAL,4,2     ## @CCDC_DCSUB_DEFAULT_VAL
L_.str.3:                               ## @.str.3
	.asciz	"\nWriting 0x00000000 to DCSUB...\n"

	.no_dead_strip	_ccdc_config_black_clamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_config_black_clamp
_ccdc_config_black_clamp:               ; @ccdc_config_black_clamp
	.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
	ldr	w8, [x0, #20]
Lloh0:
	adrp	x20, _ccdc_cfg@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ccdc_cfg@GOTPAGEOFF]
	cbz	w8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _CCDC_BLK_SGAIN_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CCDC_BLK_SGAIN_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldp	w9, w10, [x0, #4]
	and	w8, w8, w9
Lloh5:
	adrp	x9, _CCDC_BLK_ST_PXL_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CCDC_BLK_ST_PXL_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w9, w9, w10
Lloh8:
	adrp	x10, _CCDC_BLK_ST_PXL_SHIFT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _CCDC_BLK_ST_PXL_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _CCDC_BLK_SAMPLE_LINE_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CCDC_BLK_SAMPLE_LINE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	ldp	w10, w11, [x0, #12]
	and	w9, w9, w10
Lloh14:
	adrp	x10, _CCDC_BLK_SAMPLE_LINE_SHIFT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _CCDC_BLK_SAMPLE_LINE_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _CCDC_BLK_SAMPLE_LN_MASK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CCDC_BLK_SAMPLE_LN_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	and	w9, w9, w11
Lloh20:
	adrp	x10, _CCDC_BLK_SAMPLE_LN_SHIFT@GOTPAGE
Lloh21:
	ldr	x10, [x10, _CCDC_BLK_SAMPLE_LN_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh23:
	adrp	x10, _CCDC_BLK_CLAMP_ENABLE@GOTPAGE
Lloh24:
	ldr	x10, [x10, _CCDC_BLK_CLAMP_ENABLE@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh25:
	ldr	w9, [x10]
	orr	w19, w8, w9
Lloh26:
	adrp	x8, _CCDC_CLAMP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CCDC_CLAMP@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_regw
	ldr	w0, [x20]
	str	x19, [sp]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
Lloh31:
	adrp	x19, l_.str.3@PAGE
Lloh32:
	add	x19, x19, l_.str.3@PAGEOFF
Lloh33:
	adrp	x8, _CCDC_DCSUB@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CCDC_DCSUB@GOTPAGEOFF]
Lloh35:
	adrp	x9, _CCDC_DCSUB_DEFAULT_VAL@GOTPAGE
Lloh36:
	ldr	x9, [x9, _CCDC_DCSUB_DEFAULT_VAL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh37:
	adrp	x8, _CCDC_BLK_DC_SUB_MASK@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CCDC_BLK_DC_SUB_MASK@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh39:
	ldr	w8, [x8]
	and	w19, w8, w9
Lloh40:
	adrp	x8, _CCDC_DCSUB@GOTPAGE
Lloh41:
	ldr	x8, [x8, _CCDC_DCSUB@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_regw
	ldr	w0, [x20]
	str	x19, [sp]
Lloh43:
	adrp	x1, l_.str@PAGE
Lloh44:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh45:
	adrp	x19, l_.str.1@PAGE
Lloh46:
	add	x19, x19, l_.str.1@PAGEOFF
Lloh47:
	adrp	x8, _CCDC_CLAMP@GOTPAGE
Lloh48:
	ldr	x8, [x8, _CCDC_CLAMP@GOTPAGEOFF]
Lloh49:
	adrp	x9, _CCDC_CLAMP_DEFAULT_VAL@GOTPAGE
Lloh50:
	ldr	x9, [x9, _CCDC_CLAMP_DEFAULT_VAL@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_regw
	ldr	w0, [x20]
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_dev_dbg
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_CCDC_BLK_DC_SUB_MASK,4,2       ; @CCDC_BLK_DC_SUB_MASK
	.comm	_CCDC_DCSUB,4,2                 ; @CCDC_DCSUB
	.comm	_ccdc_cfg,4,2                   ; @ccdc_cfg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nWriting 0x%x to DCSUB...\n"

	.comm	_CCDC_CLAMP_DEFAULT_VAL,4,2     ; @CCDC_CLAMP_DEFAULT_VAL
	.comm	_CCDC_CLAMP,4,2                 ; @CCDC_CLAMP
l_.str.1:                               ; @.str.1
	.asciz	"\nWriting 0x0000 to CLAMP...\n"

	.comm	_CCDC_BLK_SGAIN_MASK,4,2        ; @CCDC_BLK_SGAIN_MASK
	.comm	_CCDC_BLK_ST_PXL_MASK,4,2       ; @CCDC_BLK_ST_PXL_MASK
	.comm	_CCDC_BLK_ST_PXL_SHIFT,4,2      ; @CCDC_BLK_ST_PXL_SHIFT
	.comm	_CCDC_BLK_SAMPLE_LINE_MASK,4,2  ; @CCDC_BLK_SAMPLE_LINE_MASK
	.comm	_CCDC_BLK_SAMPLE_LINE_SHIFT,4,2 ; @CCDC_BLK_SAMPLE_LINE_SHIFT
	.comm	_CCDC_BLK_SAMPLE_LN_MASK,4,2    ; @CCDC_BLK_SAMPLE_LN_MASK
	.comm	_CCDC_BLK_SAMPLE_LN_SHIFT,4,2   ; @CCDC_BLK_SAMPLE_LN_SHIFT
	.comm	_CCDC_BLK_CLAMP_ENABLE,4,2      ; @CCDC_BLK_CLAMP_ENABLE
l_.str.2:                               ; @.str.2
	.asciz	"\nWriting 0x%x to CLAMP...\n"

	.comm	_CCDC_DCSUB_DEFAULT_VAL,4,2     ; @CCDC_DCSUB_DEFAULT_VAL
l_.str.3:                               ; @.str.3
	.asciz	"\nWriting 0x00000000 to DCSUB...\n"

	.no_dead_strip	_ccdc_config_black_clamp
.subsections_via_symbols
