	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_set_stream
_ccdc_set_stream:                       ## @ccdc_set_stream
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_v4l2_get_subdevdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_to_isp_device
	movq	%rax, %r12
	cmpl	$128, (%rbx)
	jne	LBB0_3
## %bb.1:
	xorl	%r15d, %r15d
	cmpl	$128, %r14d
	je	LBB0_20
## %bb.2:
	movq	_OMAP3_ISP_SUBCLK_CCDC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_omap3isp_subclk_enable
	movq	_OMAP3_ISP_IOMEM_CCDC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ISPCCDC_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ISPCCDC_CFG_VDLC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_isp_reg_set
	movq	%rbx, %rdi
	callq	_ccdc_configure
	movq	%rbx, %rdi
	callq	_ccdc_print_status
LBB0_3:
	cmpl	$128, %r14d
	je	LBB0_15
## %bb.4:
	xorl	%r15d, %r15d
	cmpl	$129, %r14d
	je	LBB0_11
## %bb.5:
	cmpl	$130, %r14d
	jne	LBB0_19
## %bb.6:
	movq	_CCDC_OUTPUT_MEMORY@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_8
## %bb.7:
	movq	_OMAP3_ISP_SBL_CCDC_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_omap3isp_sbl_enable
LBB0_8:
	cmpl	$0, 8(%rbx)
	je	LBB0_9
LBB0_10:
	movq	%rbx, %rdi
	callq	_ccdc_enable
	jmp	LBB0_18
LBB0_15:
	movq	%rbx, %rdi
	callq	_ccdc_disable
	movl	%eax, %r15d
	movq	_CCDC_OUTPUT_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_17
## %bb.16:
	movq	_OMAP3_ISP_SBL_CCDC_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_omap3isp_sbl_disable
LBB0_17:
	movq	_OMAP3_ISP_SUBCLK_CCDC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_omap3isp_subclk_disable
LBB0_18:
	movl	$0, 8(%rbx)
	jmp	LBB0_19
LBB0_11:
	movq	_CCDC_OUTPUT_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_14
## %bb.12:
	cmpl	$129, (%rbx)
	je	LBB0_14
## %bb.13:
	movq	_OMAP3_ISP_SBL_CCDC_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_omap3isp_sbl_enable
LBB0_14:
	movq	%rbx, %rdi
	callq	_ccdc_enable
LBB0_19:
	movl	%r14d, (%rbx)
LBB0_20:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	(%r13), %eax
	testl	%eax, 4(%rbx)
	jne	LBB0_18
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP3_ISP_SUBCLK_CCDC,4,2      ## @OMAP3_ISP_SUBCLK_CCDC
	.comm	_OMAP3_ISP_IOMEM_CCDC,4,2       ## @OMAP3_ISP_IOMEM_CCDC
	.comm	_ISPCCDC_CFG,4,2                ## @ISPCCDC_CFG
	.comm	_ISPCCDC_CFG_VDLC,4,2           ## @ISPCCDC_CFG_VDLC
	.comm	_CCDC_OUTPUT_MEMORY,4,2         ## @CCDC_OUTPUT_MEMORY
	.comm	_OMAP3_ISP_SBL_CCDC_WRITE,4,2   ## @OMAP3_ISP_SBL_CCDC_WRITE
	.no_dead_strip	_ccdc_set_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_set_stream
_ccdc_set_stream:                       ; @ccdc_set_stream
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	bl	_v4l2_get_subdevdata
	mov	x20, x0
	bl	_to_isp_device
	mov	x21, x0
	ldr	w8, [x20]
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.1:
	cmp	w19, #128
	b.ne	LBB0_3
; %bb.2:
	mov	w22, #0
	b	LBB0_23
LBB0_3:
Lloh0:
	adrp	x8, _OMAP3_ISP_SUBCLK_CCDC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMAP3_ISP_SUBCLK_CCDC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_omap3isp_subclk_enable
Lloh3:
	adrp	x8, _OMAP3_ISP_IOMEM_CCDC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OMAP3_ISP_IOMEM_CCDC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _ISPCCDC_CFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ISPCCDC_CFG@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _ISPCCDC_CFG_VDLC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ISPCCDC_CFG_VDLC@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_isp_reg_set
	mov	x0, x20
	bl	_ccdc_configure
	mov	x0, x20
	bl	_ccdc_print_status
LBB0_4:
	cmp	w19, #128
	b.eq	LBB0_11
; %bb.5:
	cmp	w19, #129
	b.eq	LBB0_14
; %bb.6:
	cmp	w19, #130
	b.ne	LBB0_18
; %bb.7:
	ldr	w8, [x20, #4]
Lloh12:
	adrp	x22, _CCDC_OUTPUT_MEMORY@GOTPAGE
Lloh13:
	ldr	x22, [x22, _CCDC_OUTPUT_MEMORY@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh14:
	adrp	x8, _OMAP3_ISP_SBL_CCDC_WRITE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OMAP3_ISP_SBL_CCDC_WRITE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_omap3isp_sbl_enable
LBB0_9:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_19
LBB0_10:
	mov	x0, x20
	bl	_ccdc_enable
	b	LBB0_20
LBB0_11:
	mov	x0, x20
	bl	_ccdc_disable
	mov	x22, x0
	ldr	w8, [x20, #4]
Lloh17:
	adrp	x9, _CCDC_OUTPUT_MEMORY@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CCDC_OUTPUT_MEMORY@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
Lloh20:
	adrp	x8, _OMAP3_ISP_SBL_CCDC_WRITE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OMAP3_ISP_SBL_CCDC_WRITE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_omap3isp_sbl_disable
LBB0_13:
Lloh23:
	adrp	x8, _OMAP3_ISP_SUBCLK_CCDC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _OMAP3_ISP_SUBCLK_CCDC@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_omap3isp_subclk_disable
	b	LBB0_21
LBB0_14:
	ldr	w8, [x20, #4]
Lloh26:
	adrp	x9, _CCDC_OUTPUT_MEMORY@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CCDC_OUTPUT_MEMORY@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.15:
	ldr	w8, [x20]
	cmp	w8, #129
	b.eq	LBB0_17
; %bb.16:
Lloh29:
	adrp	x8, _OMAP3_ISP_SBL_CCDC_WRITE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _OMAP3_ISP_SBL_CCDC_WRITE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_omap3isp_sbl_enable
LBB0_17:
	mov	x0, x20
	bl	_ccdc_enable
LBB0_18:
	mov	w22, #0
	b	LBB0_22
LBB0_19:
	ldr	w8, [x20, #4]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_10
LBB0_20:
	mov	w22, #0
LBB0_21:
	str	wzr, [x20, #8]
LBB0_22:
	str	w19, [x20]
LBB0_23:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP3_ISP_SUBCLK_CCDC,4,2      ; @OMAP3_ISP_SUBCLK_CCDC
	.comm	_OMAP3_ISP_IOMEM_CCDC,4,2       ; @OMAP3_ISP_IOMEM_CCDC
	.comm	_ISPCCDC_CFG,4,2                ; @ISPCCDC_CFG
	.comm	_ISPCCDC_CFG_VDLC,4,2           ; @ISPCCDC_CFG_VDLC
	.comm	_CCDC_OUTPUT_MEMORY,4,2         ; @CCDC_OUTPUT_MEMORY
	.comm	_OMAP3_ISP_SBL_CCDC_WRITE,4,2   ; @OMAP3_ISP_SBL_CCDC_WRITE
	.no_dead_strip	_ccdc_set_stream
.subsections_via_symbols
