	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_restore_defaults
_ccdc_restore_defaults:                 ## @ccdc_restore_defaults
	.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	_ccdc_cfg@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_CCDC_REG_LAST@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	js	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_regw
	addl	$4, %ebx
	cmpl	(%r15), %ebx
	jle	LBB0_2
LBB0_3:
	movq	_MODESET_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movq	_CULH_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CULH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movq	_CULV_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CULV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movq	_GAIN_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r14)
	movq	%rax, 24(%r14)
	movq	%rax, 16(%r14)
	movq	%rax, 8(%r14)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ccdc_config_gain_offset
	movq	_OUTCLIP_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OUTCLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movq	_LSCCFG2_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LSCCFG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movq	_VPSS_CCDCIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_vpss_select_ccdc_source
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_5:
	movq	_VPSS_CCDC_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_vpss_enable_clock
	movl	(%r14), %edi
	testq	%rax, %rax
	js	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_dbg
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ccdc_cfg,40,3                  ## @ccdc_cfg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nstarting ccdc_restore_defaults..."

	.comm	_CCDC_REG_LAST,4,2              ## @CCDC_REG_LAST
	.comm	_MODESET_DEFAULT,4,2            ## @MODESET_DEFAULT
	.comm	_MODESET,4,2                    ## @MODESET
	.comm	_CULH_DEFAULT,4,2               ## @CULH_DEFAULT
	.comm	_CULH,4,2                       ## @CULH
	.comm	_CULV_DEFAULT,4,2               ## @CULV_DEFAULT
	.comm	_CULV,4,2                       ## @CULV
	.comm	_GAIN_DEFAULT,8,3               ## @GAIN_DEFAULT
	.comm	_OUTCLIP_DEFAULT,4,2            ## @OUTCLIP_DEFAULT
	.comm	_OUTCLIP,4,2                    ## @OUTCLIP
	.comm	_LSCCFG2_DEFAULT,4,2            ## @LSCCFG2_DEFAULT
	.comm	_LSCCFG2,4,2                    ## @LSCCFG2
	.comm	_VPSS_CCDCIN,4,2                ## @VPSS_CCDCIN
L_.str.1:                               ## @.str.1
	.asciz	"\ncouldn't select ccdc input source"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_VPSS_CCDC_CLOCK,4,2            ## @VPSS_CCDC_CLOCK
L_.str.2:                               ## @.str.2
	.asciz	"\ncouldn't enable ccdc clock"

L_.str.3:                               ## @.str.3
	.asciz	"\nEnd of ccdc_restore_defaults..."

	.no_dead_strip	_ccdc_restore_defaults
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_restore_defaults
_ccdc_restore_defaults:                 ; @ccdc_restore_defaults
	.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
Lloh0:
	adrp	x20, _ccdc_cfg@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ccdc_cfg@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh4:
	adrp	x21, _CCDC_REG_LAST@GOTPAGE
Lloh5:
	ldr	x21, [x21, _CCDC_REG_LAST@GOTPAGEOFF]
	ldr	w8, [x21]
	tbnz	w8, #31, LBB0_3
; %bb.1:
	mov	w19, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	mov	x1, x19
	bl	_regw
	add	w19, w19, #4
	ldr	w8, [x21]
	cmp	w19, w8
	b.le	LBB0_2
LBB0_3:
Lloh6:
	adrp	x8, _MODESET_DEFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MODESET_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _MODESET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MODESET@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_regw
Lloh12:
	adrp	x8, _CULH_DEFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CULH_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _CULH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CULH@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_regw
Lloh18:
	adrp	x8, _CULV_DEFAULT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CULV_DEFAULT@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _CULV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CULV@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_regw
Lloh24:
	adrp	x8, _GAIN_DEFAULT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GAIN_DEFAULT@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	stp	x8, x8, [x20, #24]
	stp	x8, x8, [x20, #8]
	bl	_ccdc_config_gain_offset
Lloh27:
	adrp	x8, _OUTCLIP_DEFAULT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _OUTCLIP_DEFAULT@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x8, _OUTCLIP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _OUTCLIP@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_regw
Lloh33:
	adrp	x8, _LSCCFG2_DEFAULT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _LSCCFG2_DEFAULT@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x8, _LSCCFG2@GOTPAGE
Lloh37:
	ldr	x8, [x8, _LSCCFG2@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	bl	_regw
Lloh39:
	adrp	x8, _VPSS_CCDCIN@GOTPAGE
Lloh40:
	ldr	x8, [x8, _VPSS_CCDCIN@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	bl	_vpss_select_ccdc_source
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w0, [x20]
Lloh42:
	adrp	x1, l_.str.1@PAGE
Lloh43:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	_dev_dbg
Lloh44:
	adrp	x8, _EFAULT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
Lloh47:
	adrp	x8, _VPSS_CCDC_CLOCK@GOTPAGE
Lloh48:
	ldr	x8, [x8, _VPSS_CCDC_CLOCK@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_vpss_enable_clock
	mov	x8, x0
	ldr	w0, [x20]
	tbnz	x8, #63, LBB0_9
; %bb.7:
Lloh50:
	adrp	x1, l_.str.3@PAGE
Lloh51:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
	mov	w0, #0
LBB0_8:
	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
	ret
LBB0_9:
Lloh52:
	adrp	x1, l_.str.2@PAGE
Lloh53:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_5
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.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 AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_ccdc_cfg,40,3                  ; @ccdc_cfg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nstarting ccdc_restore_defaults..."

	.comm	_CCDC_REG_LAST,4,2              ; @CCDC_REG_LAST
	.comm	_MODESET_DEFAULT,4,2            ; @MODESET_DEFAULT
	.comm	_MODESET,4,2                    ; @MODESET
	.comm	_CULH_DEFAULT,4,2               ; @CULH_DEFAULT
	.comm	_CULH,4,2                       ; @CULH
	.comm	_CULV_DEFAULT,4,2               ; @CULV_DEFAULT
	.comm	_CULV,4,2                       ; @CULV
	.comm	_GAIN_DEFAULT,8,3               ; @GAIN_DEFAULT
	.comm	_OUTCLIP_DEFAULT,4,2            ; @OUTCLIP_DEFAULT
	.comm	_OUTCLIP,4,2                    ; @OUTCLIP
	.comm	_LSCCFG2_DEFAULT,4,2            ; @LSCCFG2_DEFAULT
	.comm	_LSCCFG2,4,2                    ; @LSCCFG2
	.comm	_VPSS_CCDCIN,4,2                ; @VPSS_CCDCIN
l_.str.1:                               ; @.str.1
	.asciz	"\ncouldn't select ccdc input source"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_VPSS_CCDC_CLOCK,4,2            ; @VPSS_CCDC_CLOCK
l_.str.2:                               ; @.str.2
	.asciz	"\ncouldn't enable ccdc clock"

l_.str.3:                               ; @.str.3
	.asciz	"\nEnd of ccdc_restore_defaults..."

	.no_dead_strip	_ccdc_restore_defaults
.subsections_via_symbols
