	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpfe_ccdc_config_black_clamp
_vpfe_ccdc_config_black_clamp:          ## @vpfe_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rdi, %r14
	cmpl	$0, 20(%rsi)
	je	LBB0_1
## %bb.2:
	movq	_VPFE_BLK_SGAIN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	4(%rax), %esi
	movq	_VPFE_BLK_ST_PXL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	8(%rax), %edx
	movq	_VPFE_BLK_ST_PXL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_VPFE_BLK_SAMPLE_LINE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	12(%rax), %edi
	movq	_VPFE_BLK_SAMPLE_LINE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	orl	%esi, %edx
	movq	_VPFE_BLK_SAMPLE_LN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	16(%rax), %esi
	movq	_VPFE_BLK_SAMPLE_LN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	orl	%edi, %esi
	orl	%edx, %esi
	movq	_VPFE_BLK_CLAMP_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_VPFE_DCSUB@GOTPCREL(%rip), %r15
	movq	_VPFE_DCSUB_DEFAULT_VAL@GOTPCREL(%rip), %rbx
	movq	_VPFE_CLAMP@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_VPFE_BLK_DC_SUB_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	(%rax), %esi
	movq	_VPFE_CLAMP@GOTPCREL(%rip), %r15
	movq	_VPFE_CLAMP_DEFAULT_VAL@GOTPCREL(%rip), %rbx
	movq	_VPFE_DCSUB@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_vpfe_reg_write
	movl	(%rbx), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vpfe_reg_write                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VPFE_BLK_DC_SUB_MASK,4,2       ## @VPFE_BLK_DC_SUB_MASK
	.comm	_VPFE_DCSUB,4,2                 ## @VPFE_DCSUB
	.comm	_VPFE_CLAMP_DEFAULT_VAL,4,2     ## @VPFE_CLAMP_DEFAULT_VAL
	.comm	_VPFE_CLAMP,4,2                 ## @VPFE_CLAMP
	.comm	_VPFE_BLK_SGAIN_MASK,4,2        ## @VPFE_BLK_SGAIN_MASK
	.comm	_VPFE_BLK_ST_PXL_MASK,4,2       ## @VPFE_BLK_ST_PXL_MASK
	.comm	_VPFE_BLK_ST_PXL_SHIFT,4,2      ## @VPFE_BLK_ST_PXL_SHIFT
	.comm	_VPFE_BLK_SAMPLE_LINE_MASK,4,2  ## @VPFE_BLK_SAMPLE_LINE_MASK
	.comm	_VPFE_BLK_SAMPLE_LINE_SHIFT,4,2 ## @VPFE_BLK_SAMPLE_LINE_SHIFT
	.comm	_VPFE_BLK_SAMPLE_LN_MASK,4,2    ## @VPFE_BLK_SAMPLE_LN_MASK
	.comm	_VPFE_BLK_SAMPLE_LN_SHIFT,4,2   ## @VPFE_BLK_SAMPLE_LN_SHIFT
	.comm	_VPFE_BLK_CLAMP_ENABLE,4,2      ## @VPFE_BLK_CLAMP_ENABLE
	.comm	_VPFE_DCSUB_DEFAULT_VAL,4,2     ## @VPFE_DCSUB_DEFAULT_VAL
	.no_dead_strip	_vpfe_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 vpfe_ccdc_config_black_clamp
_vpfe_ccdc_config_black_clamp:          ; @vpfe_ccdc_config_black_clamp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w8, [x1, #20]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _VPFE_BLK_SGAIN_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPFE_BLK_SGAIN_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x1, #4]
	and	w8, w8, w9
Lloh3:
	adrp	x9, _VPFE_BLK_ST_PXL_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VPFE_BLK_ST_PXL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w10
Lloh6:
	adrp	x10, _VPFE_BLK_ST_PXL_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _VPFE_BLK_ST_PXL_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _VPFE_BLK_SAMPLE_LINE_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VPFE_BLK_SAMPLE_LINE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ldp	w10, w11, [x1, #12]
	and	w9, w9, w10
Lloh12:
	adrp	x10, _VPFE_BLK_SAMPLE_LINE_SHIFT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _VPFE_BLK_SAMPLE_LINE_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh15:
	adrp	x10, _VPFE_BLK_SAMPLE_LN_MASK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _VPFE_BLK_SAMPLE_LN_MASK@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh17:
	ldr	w9, [x10]
	and	w9, w9, w11
Lloh18:
	adrp	x10, _VPFE_BLK_SAMPLE_LN_SHIFT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _VPFE_BLK_SAMPLE_LN_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _VPFE_BLK_CLAMP_ENABLE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _VPFE_BLK_CLAMP_ENABLE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w1, w8, w9
Lloh24:
	adrp	x20, _VPFE_DCSUB@GOTPAGE
Lloh25:
	ldr	x20, [x20, _VPFE_DCSUB@GOTPAGEOFF]
Lloh26:
	adrp	x21, _VPFE_DCSUB_DEFAULT_VAL@GOTPAGE
Lloh27:
	ldr	x21, [x21, _VPFE_DCSUB_DEFAULT_VAL@GOTPAGEOFF]
Lloh28:
	adrp	x8, _VPFE_CLAMP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _VPFE_CLAMP@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x1]
Lloh30:
	adrp	x9, _VPFE_BLK_DC_SUB_MASK@GOTPAGE
Lloh31:
	ldr	x9, [x9, _VPFE_BLK_DC_SUB_MASK@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	and	w1, w9, w8
Lloh33:
	adrp	x20, _VPFE_CLAMP@GOTPAGE
Lloh34:
	ldr	x20, [x20, _VPFE_CLAMP@GOTPAGEOFF]
Lloh35:
	adrp	x21, _VPFE_CLAMP_DEFAULT_VAL@GOTPAGE
Lloh36:
	ldr	x21, [x21, _VPFE_CLAMP_DEFAULT_VAL@GOTPAGEOFF]
Lloh37:
	adrp	x8, _VPFE_DCSUB@GOTPAGE
Lloh38:
	ldr	x8, [x8, _VPFE_DCSUB@GOTPAGEOFF]
LBB0_3:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_vpfe_reg_write
	ldr	w1, [x21]
	ldr	w2, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_vpfe_reg_write
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.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	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_VPFE_BLK_DC_SUB_MASK,4,2       ; @VPFE_BLK_DC_SUB_MASK
	.comm	_VPFE_DCSUB,4,2                 ; @VPFE_DCSUB
	.comm	_VPFE_CLAMP_DEFAULT_VAL,4,2     ; @VPFE_CLAMP_DEFAULT_VAL
	.comm	_VPFE_CLAMP,4,2                 ; @VPFE_CLAMP
	.comm	_VPFE_BLK_SGAIN_MASK,4,2        ; @VPFE_BLK_SGAIN_MASK
	.comm	_VPFE_BLK_ST_PXL_MASK,4,2       ; @VPFE_BLK_ST_PXL_MASK
	.comm	_VPFE_BLK_ST_PXL_SHIFT,4,2      ; @VPFE_BLK_ST_PXL_SHIFT
	.comm	_VPFE_BLK_SAMPLE_LINE_MASK,4,2  ; @VPFE_BLK_SAMPLE_LINE_MASK
	.comm	_VPFE_BLK_SAMPLE_LINE_SHIFT,4,2 ; @VPFE_BLK_SAMPLE_LINE_SHIFT
	.comm	_VPFE_BLK_SAMPLE_LN_MASK,4,2    ; @VPFE_BLK_SAMPLE_LN_MASK
	.comm	_VPFE_BLK_SAMPLE_LN_SHIFT,4,2   ; @VPFE_BLK_SAMPLE_LN_SHIFT
	.comm	_VPFE_BLK_CLAMP_ENABLE,4,2      ; @VPFE_BLK_CLAMP_ENABLE
	.comm	_VPFE_DCSUB_DEFAULT_VAL,4,2     ; @VPFE_DCSUB_DEFAULT_VAL
	.no_dead_strip	_vpfe_ccdc_config_black_clamp
.subsections_via_symbols
