	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_config_ycbcr
_ccdc_config_ycbcr:                     ## @ccdc_config_ycbcr
	.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	_dev@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	xorl	%eax, %eax
	callq	_ccdc_restore_defaults
	movq	_ccdc_hw_params_ycbcr@GOTPCREL(%rip), %r15
	movq	_CCDC_INPUT_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	movq	_CCDC_INPUT_MODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_CCDC_FRM_FMT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	4(%r15), %ebx
	movq	_CCDC_FRM_FMT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	%eax, %ebx
	cmpq	$0, 40(%r15)
	je	LBB0_2
## %bb.1:
	movq	_CCDC_REC656IF_BT656_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_REC656IF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movq	_CCDC_VD_POL_NEGATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_2:
	movq	_CCDC_FID_POL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%r15), %eax
	movq	_CCDC_FID_POL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_CCDC_HD_POL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	12(%r15), %edx
	movq	_CCDC_HD_POL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%eax, %edx
	movq	_CCDC_VD_POL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	16(%r15), %eax
	movq	_CCDC_VD_POL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%edx, %eax
LBB0_3:
	orl	%eax, %ebx
	movq	_CCDC_DATA_PACK_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_MODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_regw
	movl	4(%r15), %esi
	leaq	32(%r15), %rdi
	movl	$2, %edx
	callq	_ccdc_setwin
	movl	20(%r15), %edi
	movq	_CCDC_Y8POS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	movq	_CCDC_LATCH_ON_VSYNC_DISABLE@GOTPCREL(%rip), %rax
	movq	_CCDC_CCDCFG_FIDMD_NO_LATCH_VSYNC@GOTPCREL(%rip), %rcx
	orl	(%rax), %edi
	orl	(%rcx), %edi
	movq	_CCDCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movl	32(%r15), %eax
	leal	(%rax,%rax), %edi
	addl	$31, %edi
	sarl	$5, %edi
	movq	_HSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movq	24(%r15), %rax
	movq	_CCDC_BUFTYPE_FLD_INTERLEAVED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_CCDC_SDOFST_FIELD_INTERLEAVED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SDOFST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
LBB0_5:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ccdc_hw_params_ycbcr,48,3      ## @ccdc_hw_params_ycbcr
	.comm	_dev,4,2                        ## @dev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nStarting ccdc_config_ycbcr..."

	.comm	_CCDC_INPUT_MODE_MASK,4,2       ## @CCDC_INPUT_MODE_MASK
	.comm	_CCDC_INPUT_MODE_SHIFT,4,2      ## @CCDC_INPUT_MODE_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_REC656IF_BT656_EN,4,2     ## @CCDC_REC656IF_BT656_EN
	.comm	_REC656IF,4,2                   ## @REC656IF
	.comm	_CCDC_VD_POL_NEGATIVE,4,2       ## @CCDC_VD_POL_NEGATIVE
	.comm	_CCDC_FID_POL_MASK,4,2          ## @CCDC_FID_POL_MASK
	.comm	_CCDC_FID_POL_SHIFT,4,2         ## @CCDC_FID_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_VD_POL_MASK,4,2           ## @CCDC_VD_POL_MASK
	.comm	_CCDC_VD_POL_SHIFT,4,2          ## @CCDC_VD_POL_SHIFT
	.comm	_CCDC_DATA_PACK_ENABLE,4,2      ## @CCDC_DATA_PACK_ENABLE
	.comm	_MODESET,4,2                    ## @MODESET
	.comm	_CCDC_Y8POS_SHIFT,4,2           ## @CCDC_Y8POS_SHIFT
	.comm	_CCDC_LATCH_ON_VSYNC_DISABLE,4,2 ## @CCDC_LATCH_ON_VSYNC_DISABLE
	.comm	_CCDC_CCDCFG_FIDMD_NO_LATCH_VSYNC,4,2 ## @CCDC_CCDCFG_FIDMD_NO_LATCH_VSYNC
	.comm	_CCDCFG,4,2                     ## @CCDCFG
	.comm	_HSIZE,4,2                      ## @HSIZE
	.comm	_CCDC_BUFTYPE_FLD_INTERLEAVED,8,3 ## @CCDC_BUFTYPE_FLD_INTERLEAVED
	.comm	_CCDC_SDOFST_FIELD_INTERLEAVED,4,2 ## @CCDC_SDOFST_FIELD_INTERLEAVED
	.comm	_SDOFST,4,2                     ## @SDOFST
L_.str.1:                               ## @.str.1
	.asciz	"\nEnd of ccdc_config_ycbcr...\n"

	.no_dead_strip	_ccdc_config_ycbcr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_config_ycbcr
_ccdc_config_ycbcr:                     ; @ccdc_config_ycbcr
	.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	x19, _dev@GOTPAGE
Lloh1:
	ldr	x19, [x19, _dev@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	bl	_ccdc_restore_defaults
Lloh4:
	adrp	x20, _ccdc_hw_params_ycbcr@GOTPAGE
Lloh5:
	ldr	x20, [x20, _ccdc_hw_params_ycbcr@GOTPAGEOFF]
Lloh6:
	adrp	x8, _CCDC_INPUT_MODE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CCDC_INPUT_MODE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldp	w9, w10, [x20]
	and	w8, w8, w9
Lloh9:
	adrp	x9, _CCDC_INPUT_MODE_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CCDC_INPUT_MODE_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh12:
	adrp	x9, _CCDC_FRM_FMT_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CCDC_FRM_FMT_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w9, w9, w10
Lloh15:
	adrp	x10, _CCDC_FRM_FMT_SHIFT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _CCDC_FRM_FMT_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w21, w9, w8
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_2
; %bb.1:
Lloh18:
	adrp	x8, _CCDC_REC656IF_BT656_EN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CCDC_REC656IF_BT656_EN@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _REC656IF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _REC656IF@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_regw
Lloh24:
	adrp	x8, _CCDC_VD_POL_NEGATIVE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CCDC_VD_POL_NEGATIVE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	b	LBB0_3
LBB0_2:
Lloh27:
	adrp	x8, _CCDC_FID_POL_MASK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CCDC_FID_POL_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldp	w9, w10, [x20, #8]
	and	w8, w8, w9
Lloh30:
	adrp	x9, _CCDC_FID_POL_SHIFT@GOTPAGE
Lloh31:
	ldr	x9, [x9, _CCDC_FID_POL_SHIFT@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
Lloh33:
	adrp	x11, _CCDC_HD_POL_MASK@GOTPAGE
Lloh34:
	ldr	x11, [x11, _CCDC_HD_POL_MASK@GOTPAGEOFF]
	lsl	w8, w8, w9
Lloh35:
	ldr	w9, [x11]
	and	w9, w9, w10
Lloh36:
	adrp	x10, _CCDC_HD_POL_SHIFT@GOTPAGE
Lloh37:
	ldr	x10, [x10, _CCDC_HD_POL_SHIFT@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
	ldr	w9, [x20, #16]
Lloh39:
	adrp	x10, _CCDC_VD_POL_MASK@GOTPAGE
Lloh40:
	ldr	x10, [x10, _CCDC_VD_POL_MASK@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh42:
	adrp	x10, _CCDC_VD_POL_SHIFT@GOTPAGE
Lloh43:
	ldr	x10, [x10, _CCDC_VD_POL_SHIFT@GOTPAGEOFF]
Lloh44:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
LBB0_3:
Lloh45:
	adrp	x9, _CCDC_DATA_PACK_ENABLE@GOTPAGE
Lloh46:
	ldr	x9, [x9, _CCDC_DATA_PACK_ENABLE@GOTPAGEOFF]
	orr	w8, w21, w8
Lloh47:
	ldr	w9, [x9]
	orr	w0, w8, w9
Lloh48:
	adrp	x8, _MODESET@GOTPAGE
Lloh49:
	ldr	x8, [x8, _MODESET@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	bl	_regw
	ldr	w1, [x20, #4]
	add	x0, x20, #32
	mov	w2, #2
	bl	_ccdc_setwin
	ldr	w8, [x20, #20]
Lloh51:
	adrp	x9, _CCDC_Y8POS_SHIFT@GOTPAGE
Lloh52:
	ldr	x9, [x9, _CCDC_Y8POS_SHIFT@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh54:
	adrp	x9, _CCDC_LATCH_ON_VSYNC_DISABLE@GOTPAGE
Lloh55:
	ldr	x9, [x9, _CCDC_LATCH_ON_VSYNC_DISABLE@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
Lloh57:
	adrp	x10, _CCDC_CCDCFG_FIDMD_NO_LATCH_VSYNC@GOTPAGE
Lloh58:
	ldr	x10, [x10, _CCDC_CCDCFG_FIDMD_NO_LATCH_VSYNC@GOTPAGEOFF]
Lloh59:
	ldr	w10, [x10]
	orr	w8, w8, w9
	orr	w0, w8, w10
Lloh60:
	adrp	x8, _CCDCFG@GOTPAGE
Lloh61:
	ldr	x8, [x8, _CCDCFG@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	bl	_regw
	ldr	w8, [x20, #32]
	lsl	w8, w8, #1
	add	w8, w8, #31
	asr	w0, w8, #5
Lloh63:
	adrp	x8, _HSIZE@GOTPAGE
Lloh64:
	ldr	x8, [x8, _HSIZE@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	bl	_regw
	ldr	x8, [x20, #24]
Lloh66:
	adrp	x9, _CCDC_BUFTYPE_FLD_INTERLEAVED@GOTPAGE
Lloh67:
	ldr	x9, [x9, _CCDC_BUFTYPE_FLD_INTERLEAVED@GOTPAGEOFF]
Lloh68:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh69:
	adrp	x8, _CCDC_SDOFST_FIELD_INTERLEAVED@GOTPAGE
Lloh70:
	ldr	x8, [x8, _CCDC_SDOFST_FIELD_INTERLEAVED@GOTPAGEOFF]
Lloh71:
	ldr	w0, [x8]
Lloh72:
	adrp	x8, _SDOFST@GOTPAGE
Lloh73:
	ldr	x8, [x8, _SDOFST@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	bl	_regw
LBB0_5:
	ldr	w0, [x19]
Lloh75:
	adrp	x1, l_.str.1@PAGE
Lloh76:
	add	x1, x1, l_.str.1@PAGEOFF
	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	_dev_dbg
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh75, Lloh76
	.cfi_endproc
                                        ; -- End function
	.comm	_ccdc_hw_params_ycbcr,48,3      ; @ccdc_hw_params_ycbcr
	.comm	_dev,4,2                        ; @dev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nStarting ccdc_config_ycbcr..."

	.comm	_CCDC_INPUT_MODE_MASK,4,2       ; @CCDC_INPUT_MODE_MASK
	.comm	_CCDC_INPUT_MODE_SHIFT,4,2      ; @CCDC_INPUT_MODE_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_REC656IF_BT656_EN,4,2     ; @CCDC_REC656IF_BT656_EN
	.comm	_REC656IF,4,2                   ; @REC656IF
	.comm	_CCDC_VD_POL_NEGATIVE,4,2       ; @CCDC_VD_POL_NEGATIVE
	.comm	_CCDC_FID_POL_MASK,4,2          ; @CCDC_FID_POL_MASK
	.comm	_CCDC_FID_POL_SHIFT,4,2         ; @CCDC_FID_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_VD_POL_MASK,4,2           ; @CCDC_VD_POL_MASK
	.comm	_CCDC_VD_POL_SHIFT,4,2          ; @CCDC_VD_POL_SHIFT
	.comm	_CCDC_DATA_PACK_ENABLE,4,2      ; @CCDC_DATA_PACK_ENABLE
	.comm	_MODESET,4,2                    ; @MODESET
	.comm	_CCDC_Y8POS_SHIFT,4,2           ; @CCDC_Y8POS_SHIFT
	.comm	_CCDC_LATCH_ON_VSYNC_DISABLE,4,2 ; @CCDC_LATCH_ON_VSYNC_DISABLE
	.comm	_CCDC_CCDCFG_FIDMD_NO_LATCH_VSYNC,4,2 ; @CCDC_CCDCFG_FIDMD_NO_LATCH_VSYNC
	.comm	_CCDCFG,4,2                     ; @CCDCFG
	.comm	_HSIZE,4,2                      ; @HSIZE
	.comm	_CCDC_BUFTYPE_FLD_INTERLEAVED,8,3 ; @CCDC_BUFTYPE_FLD_INTERLEAVED
	.comm	_CCDC_SDOFST_FIELD_INTERLEAVED,4,2 ; @CCDC_SDOFST_FIELD_INTERLEAVED
	.comm	_SDOFST,4,2                     ; @SDOFST
l_.str.1:                               ; @.str.1
	.asciz	"\nEnd of ccdc_config_ycbcr...\n"

	.no_dead_strip	_ccdc_config_ycbcr
.subsections_via_symbols
