	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_config_raw
_ccdc_config_raw:                       ## @ccdc_config_raw
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ccdc_cfg@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	xorl	%eax, %eax
	callq	_ccdc_restore_defaults
	movq	_CCDC_LATCH_ON_VSYNC_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CCDC_CCDCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movq	_CCDC_VD_POL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -124(%rbp)                ## 4-byte Spill
	movq	_CCDC_VD_POL_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	_CCDC_HD_POL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	movq	_CCDC_HD_POL_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	_CCDC_FID_POL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movq	_CCDC_FID_POL_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	_CCDC_FRM_FMT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_CCDC_FRM_FMT_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	_CCDC_DATA_SZ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movq	_CCDC_DATA_SZ_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	_CCDC_PIX_FMT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_CCDC_PIX_FMT_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movq	_CCDC_WEN_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)                ## 4-byte Spill
	movq	_CCDC_VDHDEN_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	cmpq	$0, 72(%r13)
	movl	8(%r13), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	12(%r13), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	16(%r13), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	20(%r13), %esi
	movl	56(%r13), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	24(%r13), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	je	LBB0_2
## %bb.1:
	movq	_CCDC_ALAW_GAMMA_WD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	64(%r13), %ebx
	movq	_CCDC_ALAW_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_CCDC_ALAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_regw
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	20(%r13), %esi
LBB0_2:
	movq	_CCDC_PPC_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	28(%r13), %rdi
	callq	_ccdc_setwin
	leaq	84(%r13), %rdi
	callq	_ccdc_config_black_clamp
	leaq	80(%r13), %rdi
	callq	_ccdc_config_black_compense
	movl	56(%r13), %edx
	movq	_CCDC_DATA_8BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CCDC_DATA_PACK_ENABLE@GOTPCREL(%rip), %rcx
	movq	_CCDC_DISABLE_VIDEO_PORT@GOTPCREL(%rip), %rax
	movl	%edx, %ebx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	cmpl	%esi, %edx
	jne	LBB0_4
## %bb.3:
	movq	_CCDC_DATA_10BITS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
LBB0_4:
	movq	72(%r13), %rdx
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_CCDC_FMTCFG_VPIN_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movq	_CCDC_FMTCFG_VPIN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	(%rax), %ebx
	movq	_CCDC_FMTCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_regw
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_CCDC_COLPTN_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CCDC_COLPTN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_CCDC_FMT_HORZ_FMTSPH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	28(%r13), %eax
	movq	_CCDC_FMT_HORZ_FMTSPH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_CCDC_FMT_HORZ_FMTLNH_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	32(%r13), %ebx
	orl	%eax, %ebx
	movq	_CCDC_FMT_HORZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_regw
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_CCDC_FMT_VERT_FMTSLV_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	36(%r13), %eax
	movq	_CCDC_FMT_VERT_FMTSLV_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	(%r13), %edi
	movl	20(%r13), %ecx
	movq	_CCDC_FRMFMT_PROGRESSIVE@GOTPCREL(%rip), %rbx
	movl	40(%r13), %edx
	movl	%edx, %r15d
	shrl	%r15d
	cmpl	(%rbx), %ecx
	movq	_CCDC_FMT_VERT_FMTLNV_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmovel	%ecx, %r15d
	cmovel	%edx, %ecx
	andl	%ecx, %r15d
	orl	%eax, %r15d
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_CCDC_FMT_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_regw
	movl	(%r13), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r13), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	32(%r13), %eax
	movl	56(%r13), %ecx
	movq	_CCDC_DATA_8BITS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	setne	%cl
	cmpq	$0, 72(%r13)
	sete	%dl
	movq	_CCDC_TWO_BYTES_PER_PIXEL@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	imull	%eax, %edi
	movq	_CCDC_32BYTE_ALIGN_VAL@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testb	%dl, %cl
	cmovnel	%esi, %eax
	cmovel	%esi, %edi
	addl	%eax, %edi
	movq	_CCDC_HSIZE_OFF_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	movq	_CCDC_HSIZE_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movl	20(%r13), %eax
	movq	_CCDC_FRMFMT_INTERLACED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %r15
	cmpq	$0, 48(%r13)
	movq	_CCDC_INTERLACED_IMAGE_INVERT@GOTPCREL(%rip), %rax
	cmoveq	_CCDC_INTERLACED_NO_IMAGE_INVERT@GOTPCREL(%rip), %rax
	leaq	L_.str.9(%rip), %rcx
	leaq	L_.str.8(%rip), %rbx
	cmoveq	%rcx, %rbx
	jmp	LBB0_8
LBB0_6:
	cmpl	(%rbx), %eax
	jne	LBB0_9
## %bb.7:
	movq	%rbx, %r15
	leaq	L_.str.10(%rip), %rbx
	movq	_CCDC_PROGRESSIVE_NO_IMAGE_INVERT@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edi
	movq	_CCDC_SDOFST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movl	(%r13), %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r15, %rbx
LBB0_9:
	movl	20(%r13), %esi
	movl	40(%r13), %eax
	xorl	%edx, %edx
	movl	$0, %ecx
	cmpl	(%rbx), %esi
	je	LBB0_11
## %bb.10:
	movq	_CCDC_INTERLACED_HEIGHT_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_11:
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %eax
	decl	%eax
	movq	_CCDC_VP_OUT_VERT_NUM_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_CCDC_VP_OUT_VERT_NUM_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	-124(%rbp), %esi                ## 4-byte Reload
	andl	-56(%rbp), %esi                 ## 4-byte Folded Reload
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	movl	-120(%rbp), %edi                ## 4-byte Reload
	andl	-60(%rbp), %edi                 ## 4-byte Folded Reload
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	movl	-104(%rbp), %ebx                ## 4-byte Reload
	andl	-64(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	andl	-68(%rbp), %r14d                ## 4-byte Folded Reload
	movl	-92(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r14d
	orl	%esi, %edi
	orl	%ebx, %r14d
	orl	%edi, %r14d
	movl	-116(%rbp), %esi                ## 4-byte Reload
	andl	-72(%rbp), %esi                 ## 4-byte Folded Reload
	movl	-96(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	andl	-84(%rbp), %r12d                ## 4-byte Folded Reload
	movl	-100(%rbp), %ecx                ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r12d
	orl	%esi, %r12d
	orl	%r14d, %r12d
	orl	-112(%rbp), %r12d               ## 4-byte Folded Reload
	orl	-108(%rbp), %r12d               ## 4-byte Folded Reload
	cmpq	$0, -136(%rbp)                  ## 8-byte Folded Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, %r14d
	cmovel	%edx, %r14d
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, -52(%rbp)                 ## 4-byte Folded Reload
	cmovel	%esi, %r14d
	orl	%r12d, %r14d
	movq	_CCDC_VP_OUT_HORZ_NUM_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	32(%r13), %edx
	movq	_CCDC_VP_OUT_HORZ_NUM_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_CCDC_VP_OUT_HORZ_ST_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	28(%r13), %ebx
	orl	%edx, %ebx
	orl	%eax, %ebx
	movq	_CCDC_VP_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_regw
	movl	(%r13), %edi
	leaq	L_.str.11(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_CCDC_SYN_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_regw
	movl	(%r13), %edi
	leaq	L_.str.12(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	xorl	%eax, %eax
	callq	_ccdc_sbl_reset
	movl	(%r13), %edi
	leaq	L_.str.13(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	xorl	%eax, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ccdc_readregs                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ccdc_cfg,88,3                  ## @ccdc_cfg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nStarting ccdc_config_raw..."

	.comm	_CCDC_LATCH_ON_VSYNC_DISABLE,4,2 ## @CCDC_LATCH_ON_VSYNC_DISABLE
	.comm	_CCDC_CCDCFG,4,2                ## @CCDC_CCDCFG
	.comm	_CCDC_VD_POL_MASK,4,2           ## @CCDC_VD_POL_MASK
	.comm	_CCDC_VD_POL_SHIFT,4,2          ## @CCDC_VD_POL_SHIFT
	.comm	_CCDC_HD_POL_MASK,4,2           ## @CCDC_HD_POL_MASK
	.comm	_CCDC_HD_POL_SHIFT,4,2          ## @CCDC_HD_POL_SHIFT
	.comm	_CCDC_FID_POL_MASK,4,2          ## @CCDC_FID_POL_MASK
	.comm	_CCDC_FID_POL_SHIFT,4,2         ## @CCDC_FID_POL_SHIFT
	.comm	_CCDC_FRM_FMT_MASK,4,2          ## @CCDC_FRM_FMT_MASK
	.comm	_CCDC_FRM_FMT_SHIFT,4,2         ## @CCDC_FRM_FMT_SHIFT
	.comm	_CCDC_DATA_SZ_MASK,4,2          ## @CCDC_DATA_SZ_MASK
	.comm	_CCDC_DATA_SZ_SHIFT,4,2         ## @CCDC_DATA_SZ_SHIFT
	.comm	_CCDC_PIX_FMT_MASK,4,2          ## @CCDC_PIX_FMT_MASK
	.comm	_CCDC_PIX_FMT_SHIFT,4,2         ## @CCDC_PIX_FMT_SHIFT
	.comm	_CCDC_WEN_ENABLE,4,2            ## @CCDC_WEN_ENABLE
	.comm	_CCDC_VDHDEN_ENABLE,4,2         ## @CCDC_VDHDEN_ENABLE
	.comm	_CCDC_ALAW_GAMMA_WD_MASK,4,2    ## @CCDC_ALAW_GAMMA_WD_MASK
	.comm	_CCDC_ALAW_ENABLE,4,2           ## @CCDC_ALAW_ENABLE
	.comm	_CCDC_ALAW,4,2                  ## @CCDC_ALAW
L_.str.1:                               ## @.str.1
	.asciz	"\nWriting 0x%x to ALAW...\n"

	.comm	_CCDC_PPC_RAW,4,2               ## @CCDC_PPC_RAW
	.comm	_CCDC_DATA_8BITS,4,2            ## @CCDC_DATA_8BITS
	.comm	_CCDC_DATA_PACK_ENABLE,4,2      ## @CCDC_DATA_PACK_ENABLE
	.comm	_CCDC_DISABLE_VIDEO_PORT,4,2    ## @CCDC_DISABLE_VIDEO_PORT
	.comm	_CCDC_DATA_10BITS,4,2           ## @CCDC_DATA_10BITS
	.comm	_CCDC_FMTCFG_VPIN_MASK,4,2      ## @CCDC_FMTCFG_VPIN_MASK
	.comm	_CCDC_FMTCFG_VPIN_SHIFT,4,2     ## @CCDC_FMTCFG_VPIN_SHIFT
	.comm	_CCDC_FMTCFG,4,2                ## @CCDC_FMTCFG
L_.str.2:                               ## @.str.2
	.asciz	"\nWriting 0x%x to FMTCFG...\n"

	.comm	_CCDC_COLPTN_VAL,4,2            ## @CCDC_COLPTN_VAL
	.comm	_CCDC_COLPTN,4,2                ## @CCDC_COLPTN
L_.str.3:                               ## @.str.3
	.asciz	"\nWriting 0xBB11BB11 to COLPTN...\n"

	.comm	_CCDC_FMT_HORZ_FMTSPH_MASK,4,2  ## @CCDC_FMT_HORZ_FMTSPH_MASK
	.comm	_CCDC_FMT_HORZ_FMTSPH_SHIFT,4,2 ## @CCDC_FMT_HORZ_FMTSPH_SHIFT
	.comm	_CCDC_FMT_HORZ_FMTLNH_MASK,4,2  ## @CCDC_FMT_HORZ_FMTLNH_MASK
	.comm	_CCDC_FMT_HORZ,4,2              ## @CCDC_FMT_HORZ
L_.str.4:                               ## @.str.4
	.asciz	"\nWriting 0x%x to FMT_HORZ...\n"

	.comm	_CCDC_FMT_VERT_FMTSLV_MASK,4,2  ## @CCDC_FMT_VERT_FMTSLV_MASK
	.comm	_CCDC_FMT_VERT_FMTSLV_SHIFT,4,2 ## @CCDC_FMT_VERT_FMTSLV_SHIFT
	.comm	_CCDC_FRMFMT_PROGRESSIVE,4,2    ## @CCDC_FRMFMT_PROGRESSIVE
	.comm	_CCDC_FMT_VERT_FMTLNV_MASK,4,2  ## @CCDC_FMT_VERT_FMTLNV_MASK
L_.str.5:                               ## @.str.5
	.asciz	"\nparams->win.height  0x%x ...\n"

	.comm	_CCDC_FMT_VERT,4,2              ## @CCDC_FMT_VERT
L_.str.6:                               ## @.str.6
	.asciz	"\nWriting 0x%x to FMT_VERT...\n"

L_.str.7:                               ## @.str.7
	.asciz	"\nbelow regw(val, FMT_VERT)..."

	.comm	_CCDC_32BYTE_ALIGN_VAL,4,2      ## @CCDC_32BYTE_ALIGN_VAL
	.comm	_CCDC_HSIZE_OFF_MASK,4,2        ## @CCDC_HSIZE_OFF_MASK
	.comm	_CCDC_HSIZE_OFF,4,2             ## @CCDC_HSIZE_OFF
	.comm	_CCDC_TWO_BYTES_PER_PIXEL,4,2   ## @CCDC_TWO_BYTES_PER_PIXEL
	.comm	_CCDC_FRMFMT_INTERLACED,4,2     ## @CCDC_FRMFMT_INTERLACED
	.comm	_CCDC_INTERLACED_IMAGE_INVERT,4,2 ## @CCDC_INTERLACED_IMAGE_INVERT
	.comm	_CCDC_SDOFST,4,2                ## @CCDC_SDOFST
L_.str.8:                               ## @.str.8
	.asciz	"\nWriting 0x4B6D to SDOFST..\n"

	.comm	_CCDC_INTERLACED_NO_IMAGE_INVERT,4,2 ## @CCDC_INTERLACED_NO_IMAGE_INVERT
L_.str.9:                               ## @.str.9
	.asciz	"\nWriting 0x0249 to SDOFST..\n"

	.comm	_CCDC_PROGRESSIVE_NO_IMAGE_INVERT,4,2 ## @CCDC_PROGRESSIVE_NO_IMAGE_INVERT
L_.str.10:                              ## @.str.10
	.asciz	"\nWriting 0x0000 to SDOFST...\n"

	.comm	_CCDC_VP_OUT_VERT_NUM_MASK,4,2  ## @CCDC_VP_OUT_VERT_NUM_MASK
	.comm	_CCDC_VP_OUT_VERT_NUM_SHIFT,4,2 ## @CCDC_VP_OUT_VERT_NUM_SHIFT
	.comm	_CCDC_INTERLACED_HEIGHT_SHIFT,4,2 ## @CCDC_INTERLACED_HEIGHT_SHIFT
	.comm	_CCDC_VP_OUT_HORZ_NUM_MASK,4,2  ## @CCDC_VP_OUT_HORZ_NUM_MASK
	.comm	_CCDC_VP_OUT_HORZ_NUM_SHIFT,4,2 ## @CCDC_VP_OUT_HORZ_NUM_SHIFT
	.comm	_CCDC_VP_OUT_HORZ_ST_MASK,4,2   ## @CCDC_VP_OUT_HORZ_ST_MASK
	.comm	_CCDC_VP_OUT,4,2                ## @CCDC_VP_OUT
L_.str.11:                              ## @.str.11
	.asciz	"\nWriting 0x%x to VP_OUT...\n"

	.comm	_CCDC_SYN_MODE,4,2              ## @CCDC_SYN_MODE
L_.str.12:                              ## @.str.12
	.asciz	"\nWriting 0x%x to SYN_MODE...\n"

L_.str.13:                              ## @.str.13
	.asciz	"\nend of ccdc_config_raw..."

	.no_dead_strip	_ccdc_config_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_config_raw
_ccdc_config_raw:                       ; @ccdc_config_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x21, _ccdc_cfg@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ccdc_cfg@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	bl	_ccdc_restore_defaults
Lloh4:
	adrp	x8, _CCDC_LATCH_ON_VSYNC_DISABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CCDC_LATCH_ON_VSYNC_DISABLE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _CCDC_CCDCFG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CCDC_CCDCFG@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_regw
Lloh10:
	adrp	x8, _CCDC_VD_POL_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CCDC_VD_POL_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [sp, #76]                   ; 4-byte Folded Spill
Lloh13:
	adrp	x8, _CCDC_VD_POL_SHIFT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CCDC_VD_POL_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x8]
	ldr	w8, [x21, #8]
	str	w8, [sp, #64]                   ; 4-byte Folded Spill
	ldr	w8, [x21, #12]
	stp	w8, w9, [sp, #68]               ; 8-byte Folded Spill
Lloh16:
	adrp	x8, _CCDC_HD_POL_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CCDC_HD_POL_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
Lloh19:
	adrp	x8, _CCDC_HD_POL_SHIFT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CCDC_HD_POL_SHIFT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [sp, #56]                   ; 4-byte Folded Spill
Lloh22:
	adrp	x8, _CCDC_FID_POL_MASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CCDC_FID_POL_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
Lloh25:
	adrp	x8, _CCDC_FID_POL_SHIFT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CCDC_FID_POL_SHIFT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [sp, #48]                   ; 4-byte Folded Spill
	ldp	w8, w27, [x21, #16]
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
Lloh28:
	adrp	x8, _CCDC_FRM_FMT_MASK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CCDC_FRM_FMT_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
Lloh31:
	adrp	x8, _CCDC_FRM_FMT_SHIFT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CCDC_FRM_FMT_SHIFT@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [sp, #32]                   ; 4-byte Folded Spill
	ldr	w8, [x21, #56]
	str	w8, [sp, #40]                   ; 4-byte Folded Spill
Lloh34:
	adrp	x8, _CCDC_DATA_SZ_MASK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CCDC_DATA_SZ_MASK@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
Lloh37:
	adrp	x8, _CCDC_DATA_SZ_SHIFT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CCDC_DATA_SZ_SHIFT@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
Lloh40:
	adrp	x8, _CCDC_PIX_FMT_MASK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _CCDC_PIX_FMT_MASK@GOTPAGEOFF]
	ldr	w9, [x21, #24]
Lloh42:
	ldr	w8, [x8]
	stp	w8, w9, [sp, #16]               ; 8-byte Folded Spill
Lloh43:
	adrp	x8, _CCDC_PIX_FMT_SHIFT@GOTPAGE
Lloh44:
	ldr	x8, [x8, _CCDC_PIX_FMT_SHIFT@GOTPAGEOFF]
Lloh45:
	adrp	x9, _CCDC_WEN_ENABLE@GOTPAGE
Lloh46:
	ldr	x9, [x9, _CCDC_WEN_ENABLE@GOTPAGEOFF]
Lloh47:
	ldr	w25, [x8]
Lloh48:
	ldr	w8, [x9]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh49:
	adrp	x8, _CCDC_VDHDEN_ENABLE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _CCDC_VDHDEN_ENABLE@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	ldr	x8, [x21, #72]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x21, #64]
Lloh52:
	adrp	x9, _CCDC_ALAW_GAMMA_WD_MASK@GOTPAGE
Lloh53:
	ldr	x9, [x9, _CCDC_ALAW_GAMMA_WD_MASK@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
Lloh55:
	adrp	x10, _CCDC_ALAW_ENABLE@GOTPAGE
Lloh56:
	ldr	x10, [x10, _CCDC_ALAW_ENABLE@GOTPAGEOFF]
	and	w8, w9, w8
Lloh57:
	ldr	w9, [x10]
	orr	w19, w8, w9
Lloh58:
	adrp	x8, _CCDC_ALAW@GOTPAGE
Lloh59:
	ldr	x8, [x8, _CCDC_ALAW@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_regw
	ldr	w0, [x21]
	str	x19, [sp]
Lloh61:
	adrp	x1, l_.str.1@PAGE
Lloh62:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	w1, [x21, #20]
	b	LBB0_3
LBB0_2:
	mov	x1, x27
LBB0_3:
Lloh63:
	adrp	x8, _CCDC_PPC_RAW@GOTPAGE
Lloh64:
	ldr	x8, [x8, _CCDC_PPC_RAW@GOTPAGEOFF]
Lloh65:
	ldr	w2, [x8]
	add	x0, x21, #28
	bl	_ccdc_setwin
	add	x0, x21, #84
	bl	_ccdc_config_black_clamp
	add	x0, x21, #80
	bl	_ccdc_config_black_compense
	ldr	w28, [x21, #56]
Lloh66:
	adrp	x23, _CCDC_DATA_8BITS@GOTPAGE
Lloh67:
	ldr	x23, [x23, _CCDC_DATA_8BITS@GOTPAGEOFF]
	ldr	w20, [x23]
	ldr	x22, [x21, #72]
Lloh68:
	adrp	x8, _CCDC_DATA_PACK_ENABLE@GOTPAGE
Lloh69:
	ldr	x8, [x8, _CCDC_DATA_PACK_ENABLE@GOTPAGEOFF]
Lloh70:
	ldr	w26, [x8]
Lloh71:
	adrp	x8, _CCDC_DISABLE_VIDEO_PORT@GOTPAGE
Lloh72:
	ldr	x8, [x8, _CCDC_DISABLE_VIDEO_PORT@GOTPAGEOFF]
Lloh73:
	ldr	w8, [x8]
Lloh74:
	adrp	x9, _CCDC_DATA_10BITS@GOTPAGE
Lloh75:
	ldr	x9, [x9, _CCDC_DATA_10BITS@GOTPAGEOFF]
Lloh76:
	ldr	w9, [x9]
	cmp	w28, w20
	csel	w9, w9, w28, eq
Lloh77:
	adrp	x10, _CCDC_FMTCFG_VPIN_MASK@GOTPAGE
Lloh78:
	ldr	x10, [x10, _CCDC_FMTCFG_VPIN_MASK@GOTPAGEOFF]
Lloh79:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh80:
	adrp	x10, _CCDC_FMTCFG_VPIN_SHIFT@GOTPAGE
Lloh81:
	ldr	x10, [x10, _CCDC_FMTCFG_VPIN_SHIFT@GOTPAGEOFF]
Lloh82:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w19, w9, w8
Lloh83:
	adrp	x8, _CCDC_FMTCFG@GOTPAGE
Lloh84:
	ldr	x8, [x8, _CCDC_FMTCFG@GOTPAGEOFF]
Lloh85:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_regw
	ldr	w0, [x21]
	str	x19, [sp]
Lloh86:
	adrp	x1, l_.str.2@PAGE
Lloh87:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
Lloh88:
	adrp	x8, _CCDC_COLPTN_VAL@GOTPAGE
Lloh89:
	ldr	x8, [x8, _CCDC_COLPTN_VAL@GOTPAGEOFF]
Lloh90:
	ldr	w0, [x8]
Lloh91:
	adrp	x8, _CCDC_COLPTN@GOTPAGE
Lloh92:
	ldr	x8, [x8, _CCDC_COLPTN@GOTPAGEOFF]
Lloh93:
	ldr	w1, [x8]
	bl	_regw
	ldr	w0, [x21]
Lloh94:
	adrp	x1, l_.str.3@PAGE
Lloh95:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
Lloh96:
	adrp	x8, _CCDC_FMT_HORZ_FMTSPH_MASK@GOTPAGE
Lloh97:
	ldr	x8, [x8, _CCDC_FMT_HORZ_FMTSPH_MASK@GOTPAGEOFF]
Lloh98:
	ldr	w8, [x8]
	ldp	w9, w10, [x21, #28]
	and	w8, w8, w9
Lloh99:
	adrp	x9, _CCDC_FMT_HORZ_FMTSPH_SHIFT@GOTPAGE
Lloh100:
	ldr	x9, [x9, _CCDC_FMT_HORZ_FMTSPH_SHIFT@GOTPAGEOFF]
Lloh101:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh102:
	adrp	x9, _CCDC_FMT_HORZ_FMTLNH_MASK@GOTPAGE
Lloh103:
	ldr	x9, [x9, _CCDC_FMT_HORZ_FMTLNH_MASK@GOTPAGEOFF]
Lloh104:
	ldr	w9, [x9]
	and	w9, w9, w10
	orr	w19, w9, w8
Lloh105:
	adrp	x8, _CCDC_FMT_HORZ@GOTPAGE
Lloh106:
	ldr	x8, [x8, _CCDC_FMT_HORZ@GOTPAGEOFF]
Lloh107:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_regw
	ldr	w0, [x21]
	str	x19, [sp]
Lloh108:
	adrp	x1, l_.str.4@PAGE
Lloh109:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
Lloh110:
	adrp	x8, _CCDC_FMT_VERT_FMTSLV_MASK@GOTPAGE
Lloh111:
	ldr	x8, [x8, _CCDC_FMT_VERT_FMTSLV_MASK@GOTPAGEOFF]
Lloh112:
	ldr	w8, [x8]
	ldp	w9, w10, [x21, #36]
	and	w8, w8, w9
Lloh113:
	adrp	x9, _CCDC_FMT_VERT_FMTSLV_SHIFT@GOTPAGE
Lloh114:
	ldr	x9, [x9, _CCDC_FMT_VERT_FMTSLV_SHIFT@GOTPAGEOFF]
Lloh115:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh116:
	adrp	x24, _CCDC_FRMFMT_PROGRESSIVE@GOTPAGE
Lloh117:
	ldr	x24, [x24, _CCDC_FRMFMT_PROGRESSIVE@GOTPAGEOFF]
	ldr	w9, [x21, #20]
	ldr	w11, [x24]
	ubfx	x12, x10, #1, #31
Lloh118:
	adrp	x13, _CCDC_FMT_VERT_FMTLNV_MASK@GOTPAGE
Lloh119:
	ldr	x13, [x13, _CCDC_FMT_VERT_FMTLNV_MASK@GOTPAGEOFF]
Lloh120:
	ldr	w13, [x13]
	cmp	w9, w11
	csel	w9, w10, w13, eq
	csel	w11, w13, w12, eq
	and	w9, w11, w9
	orr	w19, w9, w8
	ldr	w0, [x21]
	str	x10, [sp]
Lloh121:
	adrp	x1, l_.str.5@PAGE
Lloh122:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_dbg
Lloh123:
	adrp	x8, _CCDC_FMT_VERT@GOTPAGE
Lloh124:
	ldr	x8, [x8, _CCDC_FMT_VERT@GOTPAGEOFF]
Lloh125:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_regw
	ldr	w0, [x21]
	str	x19, [sp]
Lloh126:
	adrp	x1, l_.str.6@PAGE
Lloh127:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_dbg
	ldr	w0, [x21]
Lloh128:
	adrp	x1, l_.str.7@PAGE
Lloh129:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x21, #56]
	ldr	w9, [x23]
	cmp	w8, w9
	cset	w8, ne
	ldr	x9, [x21, #72]
	cmp	x9, #0
	cset	w9, eq
	ldr	w10, [x21, #32]
Lloh130:
	adrp	x11, _CCDC_TWO_BYTES_PER_PIXEL@GOTPAGE
Lloh131:
	ldr	x11, [x11, _CCDC_TWO_BYTES_PER_PIXEL@GOTPAGEOFF]
Lloh132:
	ldr	w11, [x11]
	mul	w11, w11, w10
Lloh133:
	adrp	x12, _CCDC_32BYTE_ALIGN_VAL@GOTPAGE
Lloh134:
	ldr	x12, [x12, _CCDC_32BYTE_ALIGN_VAL@GOTPAGEOFF]
Lloh135:
	ldr	w12, [x12]
	tst	w8, w9
	csel	w8, w12, w10, ne
	csel	w9, w11, w12, ne
Lloh136:
	adrp	x10, _CCDC_HSIZE_OFF_MASK@GOTPAGE
Lloh137:
	ldr	x10, [x10, _CCDC_HSIZE_OFF_MASK@GOTPAGEOFF]
Lloh138:
	ldr	w10, [x10]
	add	w8, w9, w8
	and	w0, w8, w10
Lloh139:
	adrp	x8, _CCDC_HSIZE_OFF@GOTPAGE
Lloh140:
	ldr	x8, [x8, _CCDC_HSIZE_OFF@GOTPAGEOFF]
Lloh141:
	ldr	w1, [x8]
	bl	_regw
	ldr	w8, [x21, #20]
Lloh142:
	adrp	x9, _CCDC_FRMFMT_INTERLACED@GOTPAGE
Lloh143:
	ldr	x9, [x9, _CCDC_FRMFMT_INTERLACED@GOTPAGEOFF]
Lloh144:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x21, #48]
Lloh145:
	adrp	x9, _CCDC_INTERLACED_IMAGE_INVERT@GOTPAGE
Lloh146:
	ldr	x9, [x9, _CCDC_INTERLACED_IMAGE_INVERT@GOTPAGEOFF]
Lloh147:
	adrp	x10, _CCDC_INTERLACED_NO_IMAGE_INVERT@GOTPAGE
Lloh148:
	ldr	x10, [x10, _CCDC_INTERLACED_NO_IMAGE_INVERT@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
Lloh149:
	adrp	x9, l_.str.8@PAGE
Lloh150:
	add	x9, x9, l_.str.8@PAGEOFF
Lloh151:
	adrp	x10, l_.str.9@PAGE
Lloh152:
	add	x10, x10, l_.str.9@PAGEOFF
	csel	x19, x10, x9, eq
	b	LBB0_7
LBB0_5:
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.6:
Lloh153:
	adrp	x19, l_.str.10@PAGE
Lloh154:
	add	x19, x19, l_.str.10@PAGEOFF
Lloh155:
	adrp	x8, _CCDC_PROGRESSIVE_NO_IMAGE_INVERT@GOTPAGE
Lloh156:
	ldr	x8, [x8, _CCDC_PROGRESSIVE_NO_IMAGE_INVERT@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
Lloh157:
	adrp	x8, _CCDC_SDOFST@GOTPAGE
Lloh158:
	ldr	x8, [x8, _CCDC_SDOFST@GOTPAGEOFF]
Lloh159:
	ldr	w1, [x8]
	bl	_regw
	ldr	w0, [x21]
	mov	x1, x19
	bl	_dev_dbg
LBB0_8:
	ldr	w8, [x21, #20]
	ldr	w9, [x24]
	ldr	w10, [x21, #40]
Lloh160:
	adrp	x11, _CCDC_INTERLACED_HEIGHT_SHIFT@GOTPAGE
Lloh161:
	ldr	x11, [x11, _CCDC_INTERLACED_HEIGHT_SHIFT@GOTPAGEOFF]
Lloh162:
	ldr	w11, [x11]
	cmp	w8, w9
	csel	w8, wzr, w11, eq
	lsr	w8, w10, w8
	sub	w8, w8, #1
Lloh163:
	adrp	x9, _CCDC_VP_OUT_VERT_NUM_MASK@GOTPAGE
Lloh164:
	ldr	x9, [x9, _CCDC_VP_OUT_VERT_NUM_MASK@GOTPAGEOFF]
Lloh165:
	ldr	w9, [x9]
	and	w8, w8, w9
Lloh166:
	adrp	x9, _CCDC_VP_OUT_VERT_NUM_SHIFT@GOTPAGE
Lloh167:
	ldr	x9, [x9, _CCDC_VP_OUT_VERT_NUM_SHIFT@GOTPAGEOFF]
Lloh168:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	cmp	x22, #0
	ccmp	w28, w20, #4, eq
	ldr	w9, [sp, #76]                   ; 4-byte Folded Reload
	ldp	w11, w10, [sp, #60]             ; 8-byte Folded Reload
	and	w9, w9, w10
	ldr	w10, [sp, #72]                  ; 4-byte Folded Reload
	lsl	w9, w9, w10
	ldr	w10, [sp, #68]                  ; 4-byte Folded Reload
	and	w10, w11, w10
	ldr	w11, [sp, #56]                  ; 4-byte Folded Reload
	lsl	w10, w10, w11
	orr	w9, w10, w9
	ldr	w10, [sp, #52]                  ; 4-byte Folded Reload
	ldr	w11, [sp, #36]                  ; 4-byte Folded Reload
	and	w10, w10, w11
	ldr	w11, [sp, #48]                  ; 4-byte Folded Reload
	lsl	w10, w10, w11
	orr	w9, w9, w10
	ldr	w10, [sp, #44]                  ; 4-byte Folded Reload
	and	w10, w10, w27
	ldr	w11, [sp, #32]                  ; 4-byte Folded Reload
	lsl	w10, w10, w11
	orr	w9, w9, w10
	ldr	w10, [sp, #40]                  ; 4-byte Folded Reload
	ldr	w11, [sp, #28]                  ; 4-byte Folded Reload
	and	w10, w11, w10
	ldr	w11, [sp, #24]                  ; 4-byte Folded Reload
	lsl	w10, w10, w11
	orr	w9, w9, w10
	ldp	w11, w10, [sp, #16]             ; 8-byte Folded Reload
	and	w10, w11, w10
	lsl	w10, w10, w25
	orr	w9, w9, w10
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	orr	w9, w9, w10
	ldr	w10, [sp, #8]                   ; 4-byte Folded Reload
	orr	w9, w9, w10
	csel	w10, wzr, w26, ne
Lloh169:
	adrp	x11, _CCDC_VP_OUT_HORZ_NUM_MASK@GOTPAGE
Lloh170:
	ldr	x11, [x11, _CCDC_VP_OUT_HORZ_NUM_MASK@GOTPAGEOFF]
	orr	w19, w9, w10
Lloh171:
	ldr	w9, [x11]
Lloh172:
	adrp	x10, _CCDC_VP_OUT_HORZ_NUM_SHIFT@GOTPAGE
Lloh173:
	ldr	x10, [x10, _CCDC_VP_OUT_HORZ_NUM_SHIFT@GOTPAGEOFF]
	ldp	w12, w11, [x21, #28]
	and	w9, w9, w11
Lloh174:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
Lloh175:
	adrp	x9, _CCDC_VP_OUT_HORZ_ST_MASK@GOTPAGE
Lloh176:
	ldr	x9, [x9, _CCDC_VP_OUT_HORZ_ST_MASK@GOTPAGEOFF]
Lloh177:
	ldr	w9, [x9]
	and	w9, w9, w12
	orr	w20, w8, w9
Lloh178:
	adrp	x8, _CCDC_VP_OUT@GOTPAGE
Lloh179:
	ldr	x8, [x8, _CCDC_VP_OUT@GOTPAGEOFF]
Lloh180:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_regw
	ldr	w0, [x21]
	str	x20, [sp]
Lloh181:
	adrp	x1, l_.str.11@PAGE
Lloh182:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_dev_dbg
Lloh183:
	adrp	x8, _CCDC_SYN_MODE@GOTPAGE
Lloh184:
	ldr	x8, [x8, _CCDC_SYN_MODE@GOTPAGEOFF]
Lloh185:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_regw
	ldr	w0, [x21]
	str	x19, [sp]
Lloh186:
	adrp	x1, l_.str.12@PAGE
Lloh187:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_dev_dbg
	bl	_ccdc_sbl_reset
	ldr	w0, [x21]
Lloh188:
	adrp	x1, l_.str.13@PAGE
Lloh189:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_dev_dbg
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_ccdc_readregs
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh47
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh142, Lloh143, Lloh144
	.loh AdrpLdrGotLdr	Lloh139, Lloh140, Lloh141
	.loh AdrpLdrGotLdr	Lloh136, Lloh137, Lloh138
	.loh AdrpLdrGotLdr	Lloh133, Lloh134, Lloh135
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.loh AdrpAdd	Lloh128, Lloh129
	.loh AdrpAdd	Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpAdd	Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGot	Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpAdd	Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpAdd	Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh151, Lloh152
	.loh AdrpAdd	Lloh149, Lloh150
	.loh AdrpLdrGot	Lloh147, Lloh148
	.loh AdrpLdrGot	Lloh145, Lloh146
	.loh AdrpLdrGot	Lloh155, Lloh156
	.loh AdrpAdd	Lloh153, Lloh154
	.loh AdrpLdrGotLdr	Lloh157, Lloh158, Lloh159
	.loh AdrpAdd	Lloh188, Lloh189
	.loh AdrpAdd	Lloh186, Lloh187
	.loh AdrpLdrGotLdr	Lloh183, Lloh184, Lloh185
	.loh AdrpAdd	Lloh181, Lloh182
	.loh AdrpLdrGotLdr	Lloh178, Lloh179, Lloh180
	.loh AdrpLdrGotLdr	Lloh175, Lloh176, Lloh177
	.loh AdrpLdrGotLdr	Lloh172, Lloh173, Lloh174
	.loh AdrpLdrGotLdr	Lloh169, Lloh170, Lloh171
	.loh AdrpLdrGotLdr	Lloh166, Lloh167, Lloh168
	.loh AdrpLdrGotLdr	Lloh163, Lloh164, Lloh165
	.loh AdrpLdrGotLdr	Lloh160, Lloh161, Lloh162
	.cfi_endproc
                                        ; -- End function
	.comm	_ccdc_cfg,88,3                  ; @ccdc_cfg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nStarting ccdc_config_raw..."

	.comm	_CCDC_LATCH_ON_VSYNC_DISABLE,4,2 ; @CCDC_LATCH_ON_VSYNC_DISABLE
	.comm	_CCDC_CCDCFG,4,2                ; @CCDC_CCDCFG
	.comm	_CCDC_VD_POL_MASK,4,2           ; @CCDC_VD_POL_MASK
	.comm	_CCDC_VD_POL_SHIFT,4,2          ; @CCDC_VD_POL_SHIFT
	.comm	_CCDC_HD_POL_MASK,4,2           ; @CCDC_HD_POL_MASK
	.comm	_CCDC_HD_POL_SHIFT,4,2          ; @CCDC_HD_POL_SHIFT
	.comm	_CCDC_FID_POL_MASK,4,2          ; @CCDC_FID_POL_MASK
	.comm	_CCDC_FID_POL_SHIFT,4,2         ; @CCDC_FID_POL_SHIFT
	.comm	_CCDC_FRM_FMT_MASK,4,2          ; @CCDC_FRM_FMT_MASK
	.comm	_CCDC_FRM_FMT_SHIFT,4,2         ; @CCDC_FRM_FMT_SHIFT
	.comm	_CCDC_DATA_SZ_MASK,4,2          ; @CCDC_DATA_SZ_MASK
	.comm	_CCDC_DATA_SZ_SHIFT,4,2         ; @CCDC_DATA_SZ_SHIFT
	.comm	_CCDC_PIX_FMT_MASK,4,2          ; @CCDC_PIX_FMT_MASK
	.comm	_CCDC_PIX_FMT_SHIFT,4,2         ; @CCDC_PIX_FMT_SHIFT
	.comm	_CCDC_WEN_ENABLE,4,2            ; @CCDC_WEN_ENABLE
	.comm	_CCDC_VDHDEN_ENABLE,4,2         ; @CCDC_VDHDEN_ENABLE
	.comm	_CCDC_ALAW_GAMMA_WD_MASK,4,2    ; @CCDC_ALAW_GAMMA_WD_MASK
	.comm	_CCDC_ALAW_ENABLE,4,2           ; @CCDC_ALAW_ENABLE
	.comm	_CCDC_ALAW,4,2                  ; @CCDC_ALAW
l_.str.1:                               ; @.str.1
	.asciz	"\nWriting 0x%x to ALAW...\n"

	.comm	_CCDC_PPC_RAW,4,2               ; @CCDC_PPC_RAW
	.comm	_CCDC_DATA_8BITS,4,2            ; @CCDC_DATA_8BITS
	.comm	_CCDC_DATA_PACK_ENABLE,4,2      ; @CCDC_DATA_PACK_ENABLE
	.comm	_CCDC_DISABLE_VIDEO_PORT,4,2    ; @CCDC_DISABLE_VIDEO_PORT
	.comm	_CCDC_DATA_10BITS,4,2           ; @CCDC_DATA_10BITS
	.comm	_CCDC_FMTCFG_VPIN_MASK,4,2      ; @CCDC_FMTCFG_VPIN_MASK
	.comm	_CCDC_FMTCFG_VPIN_SHIFT,4,2     ; @CCDC_FMTCFG_VPIN_SHIFT
	.comm	_CCDC_FMTCFG,4,2                ; @CCDC_FMTCFG
l_.str.2:                               ; @.str.2
	.asciz	"\nWriting 0x%x to FMTCFG...\n"

	.comm	_CCDC_COLPTN_VAL,4,2            ; @CCDC_COLPTN_VAL
	.comm	_CCDC_COLPTN,4,2                ; @CCDC_COLPTN
l_.str.3:                               ; @.str.3
	.asciz	"\nWriting 0xBB11BB11 to COLPTN...\n"

	.comm	_CCDC_FMT_HORZ_FMTSPH_MASK,4,2  ; @CCDC_FMT_HORZ_FMTSPH_MASK
	.comm	_CCDC_FMT_HORZ_FMTSPH_SHIFT,4,2 ; @CCDC_FMT_HORZ_FMTSPH_SHIFT
	.comm	_CCDC_FMT_HORZ_FMTLNH_MASK,4,2  ; @CCDC_FMT_HORZ_FMTLNH_MASK
	.comm	_CCDC_FMT_HORZ,4,2              ; @CCDC_FMT_HORZ
l_.str.4:                               ; @.str.4
	.asciz	"\nWriting 0x%x to FMT_HORZ...\n"

	.comm	_CCDC_FMT_VERT_FMTSLV_MASK,4,2  ; @CCDC_FMT_VERT_FMTSLV_MASK
	.comm	_CCDC_FMT_VERT_FMTSLV_SHIFT,4,2 ; @CCDC_FMT_VERT_FMTSLV_SHIFT
	.comm	_CCDC_FRMFMT_PROGRESSIVE,4,2    ; @CCDC_FRMFMT_PROGRESSIVE
	.comm	_CCDC_FMT_VERT_FMTLNV_MASK,4,2  ; @CCDC_FMT_VERT_FMTLNV_MASK
l_.str.5:                               ; @.str.5
	.asciz	"\nparams->win.height  0x%x ...\n"

	.comm	_CCDC_FMT_VERT,4,2              ; @CCDC_FMT_VERT
l_.str.6:                               ; @.str.6
	.asciz	"\nWriting 0x%x to FMT_VERT...\n"

l_.str.7:                               ; @.str.7
	.asciz	"\nbelow regw(val, FMT_VERT)..."

	.comm	_CCDC_32BYTE_ALIGN_VAL,4,2      ; @CCDC_32BYTE_ALIGN_VAL
	.comm	_CCDC_HSIZE_OFF_MASK,4,2        ; @CCDC_HSIZE_OFF_MASK
	.comm	_CCDC_HSIZE_OFF,4,2             ; @CCDC_HSIZE_OFF
	.comm	_CCDC_TWO_BYTES_PER_PIXEL,4,2   ; @CCDC_TWO_BYTES_PER_PIXEL
	.comm	_CCDC_FRMFMT_INTERLACED,4,2     ; @CCDC_FRMFMT_INTERLACED
	.comm	_CCDC_INTERLACED_IMAGE_INVERT,4,2 ; @CCDC_INTERLACED_IMAGE_INVERT
	.comm	_CCDC_SDOFST,4,2                ; @CCDC_SDOFST
l_.str.8:                               ; @.str.8
	.asciz	"\nWriting 0x4B6D to SDOFST..\n"

	.comm	_CCDC_INTERLACED_NO_IMAGE_INVERT,4,2 ; @CCDC_INTERLACED_NO_IMAGE_INVERT
l_.str.9:                               ; @.str.9
	.asciz	"\nWriting 0x0249 to SDOFST..\n"

	.comm	_CCDC_PROGRESSIVE_NO_IMAGE_INVERT,4,2 ; @CCDC_PROGRESSIVE_NO_IMAGE_INVERT
l_.str.10:                              ; @.str.10
	.asciz	"\nWriting 0x0000 to SDOFST...\n"

	.comm	_CCDC_VP_OUT_VERT_NUM_MASK,4,2  ; @CCDC_VP_OUT_VERT_NUM_MASK
	.comm	_CCDC_VP_OUT_VERT_NUM_SHIFT,4,2 ; @CCDC_VP_OUT_VERT_NUM_SHIFT
	.comm	_CCDC_INTERLACED_HEIGHT_SHIFT,4,2 ; @CCDC_INTERLACED_HEIGHT_SHIFT
	.comm	_CCDC_VP_OUT_HORZ_NUM_MASK,4,2  ; @CCDC_VP_OUT_HORZ_NUM_MASK
	.comm	_CCDC_VP_OUT_HORZ_NUM_SHIFT,4,2 ; @CCDC_VP_OUT_HORZ_NUM_SHIFT
	.comm	_CCDC_VP_OUT_HORZ_ST_MASK,4,2   ; @CCDC_VP_OUT_HORZ_ST_MASK
	.comm	_CCDC_VP_OUT,4,2                ; @CCDC_VP_OUT
l_.str.11:                              ; @.str.11
	.asciz	"\nWriting 0x%x to VP_OUT...\n"

	.comm	_CCDC_SYN_MODE,4,2              ; @CCDC_SYN_MODE
l_.str.12:                              ; @.str.12
	.asciz	"\nWriting 0x%x to SYN_MODE...\n"

l_.str.13:                              ; @.str.13
	.asciz	"\nend of ccdc_config_raw..."

	.no_dead_strip	_ccdc_config_raw
.subsections_via_symbols
