	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ccdc_config_raw                ## -- Begin function ccdc_config_raw
	.p2align	4, 0x90
_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	_dev@GOTPCREL(%rip), %r15
	movl	(%r15), %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), %r13d
	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
	movq	_ccdc_hw_params_raw@GOTPCREL(%rip), %r12
	cmpq	$0, 64(%r12)
	movl	(%r12), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	4(%r12), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	8(%r12), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	12(%r12), %esi
	movl	48(%r12), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	16(%r12), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	je	LBB0_2
## %bb.1:
	movq	_CCDC_ALAW_GAMA_WD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	56(%r12), %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	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	12(%r12), %esi
LBB0_2:
	movq	_CCDC_PPC_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	20(%r12), %rdi
	callq	_ccdc_setwin
	leaq	80(%r12), %rdi
	callq	_ccdc_config_black_clamp
	leaq	76(%r12), %rdi
	callq	_ccdc_config_black_compense
	leaq	72(%r12), %rdi
	callq	_ccdc_config_fpc
	movl	48(%r12), %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	64(%r12), %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	(%r15), %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	(%r15), %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	20(%r12), %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	24(%r12), %ebx
	orl	%eax, %ebx
	movq	_CCDC_FMT_HORZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_regw
	movl	(%r15), %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	28(%r12), %eax
	movq	_CCDC_FMT_VERT_FMTSLV_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_CCDC_FRMFMT_PROGRESSIVE@GOTPCREL(%rip), %rsi
	movl	12(%r12), %ecx
	movl	32(%r12), %edx
	movq	%r15, %rbx
	movl	%edx, %r15d
	shrl	%r15d
	cmpl	(%rsi), %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
	movl	(%rbx), %edi
	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	(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	24(%r12), %eax
	movl	48(%r12), %ecx
	movq	_CCDC_DATA_8BITS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	setne	%cl
	cmpq	$0, 64(%r12)
	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	12(%r12), %eax
	movq	_CCDC_FRMFMT_INTERLACED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	movq	_CCDC_FRMFMT_PROGRESSIVE@GOTPCREL(%rip), %r15
	cmpq	$0, 40(%r12)
	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:
	movq	_CCDC_FRMFMT_PROGRESSIVE@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_9
## %bb.7:
	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
	movq	_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_9:
	movl	12(%r12), %esi
	movl	32(%r12), %eax
	xorl	%edx, %edx
	movl	$0, %ecx
	cmpl	(%r15), %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), %r13d                ## 4-byte Folded Reload
	movl	-100(%rbp), %ecx                ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r13d
	orl	%esi, %r13d
	orl	%r14d, %r13d
	orl	-112(%rbp), %r13d               ## 4-byte Folded Reload
	orl	-108(%rbp), %r13d               ## 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	%r13d, %r14d
	movq	_CCDC_VP_OUT_HORZ_NUM_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	24(%r12), %edx
	movq	_CCDC_VP_OUT_HORZ_ST_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	20(%r12), %ebx
	movq	_CCDC_VP_OUT_HORZ_NUM_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%edx, %ebx
	orl	%eax, %ebx
	movq	_CCDC_VP_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_regw
	movq	_dev@GOTPCREL(%rip), %r15
	movl	(%r15), %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	(%r15), %edi
	leaq	L_.str.12(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	xorl	%eax, %eax
	callq	_ccdc_sbl_reset
	movl	(%r15), %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_hw_params_raw,88,3        ## @ccdc_hw_params_raw
	.comm	_dev,4,2                        ## @dev
	.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_GAMA_WD_MASK,4,2     ## @CCDC_ALAW_GAMA_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..."

	.comm	_CCDC_ENABLE_VIDEO_PORT,4,2     ## @CCDC_ENABLE_VIDEO_PORT
.subsections_via_symbols

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

	.comm	_CCDC_ENABLE_VIDEO_PORT,4,2     ; @CCDC_ENABLE_VIDEO_PORT
.subsections_via_symbols
