	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_configure_clamp
_ccdc_configure_clamp:                  ## @ccdc_configure_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	%rdi, %rbx
	callq	_to_isp_device
	movq	%rax, %r14
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_ISPCCDC_CLAMP_OBGAIN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	8(%rbx), %eax
	movl	12(%rbx), %edx
	shll	%cl, %eax
	movq	_ISPCCDC_CLAMP_OBSLEN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movl	16(%rbx), %edi
	movq	_ISPCCDC_CLAMP_OBSLN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	movq	_ISPCCDC_CLAMP_OBST_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	20(%rbx), %esi
	shll	%cl, %esi
	orl	%eax, %edx
	orl	%edi, %esi
	orl	%edx, %esi
	movq	_ISPCCDC_CLAMP@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movl	24(%rbx), %esi
	movq	_ISPCCDC_DCSUB@GOTPCREL(%rip), %rax
LBB0_3:
	movq	_OMAP3_ISP_IOMEM_CCDC@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_isp_reg_writel
	movl	(%r15), %esi
	movq	_ISPCCDC_CLAMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ISPCCDC_CLAMP_CLAMPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	cmpq	$0, (%rbx)
	cmovnel	%ecx, %r8d
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_isp_reg_clr_set                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ISPCCDC_CLAMP_OBGAIN_SHIFT,4,2 ## @ISPCCDC_CLAMP_OBGAIN_SHIFT
	.comm	_ISPCCDC_CLAMP_OBSLEN_SHIFT,4,2 ## @ISPCCDC_CLAMP_OBSLEN_SHIFT
	.comm	_ISPCCDC_CLAMP_OBSLN_SHIFT,4,2  ## @ISPCCDC_CLAMP_OBSLN_SHIFT
	.comm	_ISPCCDC_CLAMP_OBST_SHIFT,4,2   ## @ISPCCDC_CLAMP_OBST_SHIFT
	.comm	_OMAP3_ISP_IOMEM_CCDC,4,2       ## @OMAP3_ISP_IOMEM_CCDC
	.comm	_ISPCCDC_CLAMP,4,2              ## @ISPCCDC_CLAMP
	.comm	_ISPCCDC_DCSUB,4,2              ## @ISPCCDC_DCSUB
	.comm	_ISPCCDC_CLAMP_CLAMPEN,4,2      ## @ISPCCDC_CLAMP_CLAMPEN
	.no_dead_strip	_ccdc_configure_clamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_configure_clamp
_ccdc_configure_clamp:                  ; @ccdc_configure_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
	bl	_to_isp_device
	mov	x20, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x21, _ISPCCDC_CLAMP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ISPCCDC_CLAMP@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ISPCCDC_CLAMP_OBGAIN_SHIFT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISPCCDC_CLAMP_OBGAIN_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldp	w9, w10, [x19, #8]
Lloh5:
	adrp	x11, _ISPCCDC_CLAMP_OBSLEN_SHIFT@GOTPAGE
Lloh6:
	ldr	x11, [x11, _ISPCCDC_CLAMP_OBSLEN_SHIFT@GOTPAGEOFF]
	lsl	w8, w9, w8
Lloh7:
	ldr	w9, [x11]
	lsl	w9, w10, w9
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _ISPCCDC_CLAMP_OBSLN_SHIFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ISPCCDC_CLAMP_OBSLN_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldp	w10, w11, [x19, #16]
	lsl	w9, w10, w9
Lloh11:
	adrp	x10, _ISPCCDC_CLAMP_OBST_SHIFT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ISPCCDC_CLAMP_OBST_SHIFT@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh13:
	ldr	w9, [x10]
	lsl	w9, w11, w9
	orr	w1, w8, w9
Lloh14:
	adrp	x8, _ISPCCDC_CLAMP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ISPCCDC_CLAMP@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	ldr	w1, [x19, #24]
Lloh16:
	adrp	x8, _ISPCCDC_DCSUB@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ISPCCDC_DCSUB@GOTPAGEOFF]
LBB0_3:
Lloh18:
	adrp	x22, _OMAP3_ISP_IOMEM_CCDC@GOTPAGE
Lloh19:
	ldr	x22, [x22, _OMAP3_ISP_IOMEM_CCDC@GOTPAGEOFF]
	ldr	w2, [x22]
	ldr	w3, [x8]
	mov	x0, x20
	bl	_isp_reg_writel
	ldr	w1, [x22]
	ldr	w2, [x21]
Lloh20:
	adrp	x8, _ISPCCDC_CLAMP_CLAMPEN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ISPCCDC_CLAMP_CLAMPEN@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	ldr	x8, [x19]
	cmp	x8, #0
	csel	w4, wzr, w3, eq
	mov	x0, x20
	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	_isp_reg_clr_set
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ISPCCDC_CLAMP_OBGAIN_SHIFT,4,2 ; @ISPCCDC_CLAMP_OBGAIN_SHIFT
	.comm	_ISPCCDC_CLAMP_OBSLEN_SHIFT,4,2 ; @ISPCCDC_CLAMP_OBSLEN_SHIFT
	.comm	_ISPCCDC_CLAMP_OBSLN_SHIFT,4,2  ; @ISPCCDC_CLAMP_OBSLN_SHIFT
	.comm	_ISPCCDC_CLAMP_OBST_SHIFT,4,2   ; @ISPCCDC_CLAMP_OBST_SHIFT
	.comm	_OMAP3_ISP_IOMEM_CCDC,4,2       ; @OMAP3_ISP_IOMEM_CCDC
	.comm	_ISPCCDC_CLAMP,4,2              ; @ISPCCDC_CLAMP
	.comm	_ISPCCDC_DCSUB,4,2              ; @ISPCCDC_DCSUB
	.comm	_ISPCCDC_CLAMP_CLAMPEN,4,2      ; @ISPCCDC_CLAMP_CLAMPEN
	.no_dead_strip	_ccdc_configure_clamp
.subsections_via_symbols
