	.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
	movq	%rdi, %rbx
	cmpl	$0, 16(%rdi)
	je	LBB0_1
## %bb.2:
	movq	_CCDC_BLK_ST_PXL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CCDC_BLK_SAMPLE_LN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	8(%rbx), %edi
	movq	_CCDC_BLK_SAMPLE_LN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	andl	4(%rbx), %eax
	orl	%eax, %edi
	movq	_CCDC_BLK_CLAMP_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_CLAMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movq	_CCDC_NUM_LINE_CALC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	12(%rbx), %edi
	movq	_CCDC_NUM_LINE_CALC_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	movq	_DCSUB@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_CCDC_BLK_DC_SUB_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%rbx), %edi
	movq	_DCSUB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	xorl	%edi, %edi
	movq	_CLAMP@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_regw                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CCDC_BLK_DC_SUB_MASK,4,2       ## @CCDC_BLK_DC_SUB_MASK
	.comm	_DCSUB,4,2                      ## @DCSUB
	.comm	_CLAMP,4,2                      ## @CLAMP
	.comm	_CCDC_BLK_ST_PXL_MASK,4,2       ## @CCDC_BLK_ST_PXL_MASK
	.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
	.comm	_CCDC_NUM_LINE_CALC_MASK,4,2    ## @CCDC_NUM_LINE_CALC_MASK
	.comm	_CCDC_NUM_LINE_CALC_SHIFT,4,2   ## @CCDC_NUM_LINE_CALC_SHIFT
	.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:
	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
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _CCDC_BLK_ST_PXL_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CCDC_BLK_ST_PXL_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x19, #4]
	and	w8, w8, w9
Lloh3:
	adrp	x9, _CCDC_BLK_SAMPLE_LN_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CCDC_BLK_SAMPLE_LN_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w10
Lloh6:
	adrp	x10, _CCDC_BLK_SAMPLE_LN_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CCDC_BLK_SAMPLE_LN_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh9:
	adrp	x10, _CCDC_BLK_CLAMP_ENABLE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CCDC_BLK_CLAMP_ENABLE@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh11:
	ldr	w9, [x10]
	orr	w0, w8, w9
Lloh12:
	adrp	x8, _CLAMP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CLAMP@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_regw
	ldr	w8, [x19, #12]
Lloh15:
	adrp	x9, _CCDC_NUM_LINE_CALC_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CCDC_NUM_LINE_CALC_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh18:
	adrp	x9, _CCDC_NUM_LINE_CALC_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CCDC_NUM_LINE_CALC_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	lsl	w0, w8, w9
Lloh21:
	adrp	x8, _DCSUB@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DCSUB@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh23:
	adrp	x8, _CCDC_BLK_DC_SUB_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CCDC_BLK_DC_SUB_MASK@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh25:
	ldr	w8, [x8]
	and	w0, w8, w9
Lloh26:
	adrp	x8, _DCSUB@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DCSUB@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_regw
	mov	w0, #0
Lloh29:
	adrp	x8, _CLAMP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CLAMP@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_regw
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_CCDC_BLK_DC_SUB_MASK,4,2       ; @CCDC_BLK_DC_SUB_MASK
	.comm	_DCSUB,4,2                      ; @DCSUB
	.comm	_CLAMP,4,2                      ; @CLAMP
	.comm	_CCDC_BLK_ST_PXL_MASK,4,2       ; @CCDC_BLK_ST_PXL_MASK
	.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
	.comm	_CCDC_NUM_LINE_CALC_MASK,4,2    ; @CCDC_NUM_LINE_CALC_MASK
	.comm	_CCDC_NUM_LINE_CALC_SHIFT,4,2   ; @CCDC_NUM_LINE_CALC_SHIFT
	.no_dead_strip	_ccdc_config_black_clamp
.subsections_via_symbols
