	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ccdc_lsc_enable
___ccdc_lsc_enable:                     ## @__ccdc_lsc_enable
	.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, %r15d
	movq	%rdi, %r12
	callq	_to_isp_device
	movq	%rax, %r14
	movq	_CCDC_PAD_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	___ccdc_get_format
	movq	(%rax), %rax
	movq	_MEDIA_BUS_FMT_SGRBG10_1X10@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.1:
	movq	_MEDIA_BUS_FMT_SRGGB10_1X10@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.2:
	movq	_MEDIA_BUS_FMT_SBGGR10_1X10@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.3:
	movq	_MEDIA_BUS_FMT_SGBRG10_1X10@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.7:
	movq	_OMAP3_ISP_SBL_CCDC_LSC_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_omap3isp_sbl_enable
	movq	_OMAP3_ISP_IOMEM_CCDC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_ISPCCDC_LSC_CONFIG@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_ISPCCDC_LSC_ENABLE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movl	%ecx, %r8d
	callq	_isp_reg_clr_set
	movq	%r12, %rdi
	callq	_ccdc_lsc_wait_prefetch
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	movq	_LSC_STATE_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_10:
	movq	_OMAP3_ISP_IOMEM_CCDC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ISPCCDC_LSC_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ISPCCDC_LSC_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	callq	_isp_reg_clr_set
	movq	_LSC_STATE_STOPPING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	jmp	LBB0_11
LBB0_8:
	movl	(%r15), %esi
	movl	(%r13), %edx
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	callq	_isp_reg_clr
	movq	_LSC_STATE_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_to_device
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_warn
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCDC_PAD_SINK,4,2              ## @CCDC_PAD_SINK
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_MEDIA_BUS_FMT_SGRBG10_1X10,8,3 ## @MEDIA_BUS_FMT_SGRBG10_1X10
	.comm	_MEDIA_BUS_FMT_SRGGB10_1X10,8,3 ## @MEDIA_BUS_FMT_SRGGB10_1X10
	.comm	_MEDIA_BUS_FMT_SBGGR10_1X10,8,3 ## @MEDIA_BUS_FMT_SBGGR10_1X10
	.comm	_MEDIA_BUS_FMT_SGBRG10_1X10,8,3 ## @MEDIA_BUS_FMT_SGBRG10_1X10
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OMAP3_ISP_SBL_CCDC_LSC_READ,4,2 ## @OMAP3_ISP_SBL_CCDC_LSC_READ
	.comm	_OMAP3_ISP_IOMEM_CCDC,4,2       ## @OMAP3_ISP_IOMEM_CCDC
	.comm	_ISPCCDC_LSC_CONFIG,4,2         ## @ISPCCDC_LSC_CONFIG
	.comm	_ISPCCDC_LSC_ENABLE,4,2         ## @ISPCCDC_LSC_ENABLE
	.comm	_LSC_STATE_STOPPED,4,2          ## @LSC_STATE_STOPPED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LSC prefetch timeout\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_LSC_STATE_RUNNING,4,2          ## @LSC_STATE_RUNNING
	.comm	_LSC_STATE_STOPPING,4,2         ## @LSC_STATE_STOPPING
	.no_dead_strip	___ccdc_lsc_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ccdc_lsc_enable
___ccdc_lsc_enable:                     ; @__ccdc_lsc_enable
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_to_isp_device
	mov	x20, x0
Lloh0:
	adrp	x8, _CCDC_PAD_SINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CCDC_PAD_SINK@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	___ccdc_get_format
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _MEDIA_BUS_FMT_SGRBG10_1X10@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MEDIA_BUS_FMT_SGRBG10_1X10@GOTPAGEOFF]
Lloh8:
	adrp	x10, _MEDIA_BUS_FMT_SRGGB10_1X10@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MEDIA_BUS_FMT_SRGGB10_1X10@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	ldr	x10, [x10]
Lloh12:
	adrp	x11, _MEDIA_BUS_FMT_SBGGR10_1X10@GOTPAGE
Lloh13:
	ldr	x11, [x11, _MEDIA_BUS_FMT_SBGGR10_1X10@GOTPAGEOFF]
Lloh14:
	adrp	x12, _MEDIA_BUS_FMT_SGBRG10_1X10@GOTPAGE
Lloh15:
	ldr	x12, [x12, _MEDIA_BUS_FMT_SGBRG10_1X10@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
Lloh17:
	ldr	x12, [x12]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	b.ne	LBB0_4
; %bb.1:
	cbz	w21, LBB0_5
; %bb.2:
Lloh18:
	adrp	x8, _OMAP3_ISP_SBL_CCDC_LSC_READ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OMAP3_ISP_SBL_CCDC_LSC_READ@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_omap3isp_sbl_enable
Lloh21:
	adrp	x21, _OMAP3_ISP_IOMEM_CCDC@GOTPAGE
Lloh22:
	ldr	x21, [x21, _OMAP3_ISP_IOMEM_CCDC@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh23:
	adrp	x22, _ISPCCDC_LSC_CONFIG@GOTPAGE
Lloh24:
	ldr	x22, [x22, _ISPCCDC_LSC_CONFIG@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh25:
	adrp	x23, _ISPCCDC_LSC_ENABLE@GOTPAGE
Lloh26:
	ldr	x23, [x23, _ISPCCDC_LSC_ENABLE@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x20
	mov	x4, x3
	bl	_isp_reg_clr_set
	mov	x0, x19
	bl	_ccdc_lsc_wait_prefetch
	tbnz	x0, #63, LBB0_7
; %bb.3:
	mov	w0, #0
Lloh27:
	adrp	x8, _LSC_STATE_RUNNING@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LSC_STATE_RUNNING@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh31:
	adrp	x8, _OMAP3_ISP_IOMEM_CCDC@GOTPAGE
Lloh32:
	ldr	x8, [x8, _OMAP3_ISP_IOMEM_CCDC@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _ISPCCDC_LSC_CONFIG@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ISPCCDC_LSC_CONFIG@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
Lloh37:
	adrp	x8, _ISPCCDC_LSC_ENABLE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ISPCCDC_LSC_ENABLE@GOTPAGEOFF]
Lloh39:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w4, #0
	bl	_isp_reg_clr_set
	mov	w0, #0
Lloh40:
	adrp	x8, _LSC_STATE_STOPPING@GOTPAGE
Lloh41:
	ldr	x8, [x8, _LSC_STATE_STOPPING@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_9
LBB0_7:
	ldr	w1, [x21]
	ldr	w2, [x22]
	ldr	w3, [x23]
	mov	x0, x20
	bl	_isp_reg_clr
Lloh42:
	adrp	x8, _LSC_STATE_STOPPED@GOTPAGE
Lloh43:
	ldr	x8, [x8, _LSC_STATE_STOPPED@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x19
	bl	_to_device
Lloh45:
	adrp	x1, l_.str@PAGE
Lloh46:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh47:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_CCDC_PAD_SINK,4,2              ; @CCDC_PAD_SINK
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_MEDIA_BUS_FMT_SGRBG10_1X10,8,3 ; @MEDIA_BUS_FMT_SGRBG10_1X10
	.comm	_MEDIA_BUS_FMT_SRGGB10_1X10,8,3 ; @MEDIA_BUS_FMT_SRGGB10_1X10
	.comm	_MEDIA_BUS_FMT_SBGGR10_1X10,8,3 ; @MEDIA_BUS_FMT_SBGGR10_1X10
	.comm	_MEDIA_BUS_FMT_SGBRG10_1X10,8,3 ; @MEDIA_BUS_FMT_SGBRG10_1X10
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OMAP3_ISP_SBL_CCDC_LSC_READ,4,2 ; @OMAP3_ISP_SBL_CCDC_LSC_READ
	.comm	_OMAP3_ISP_IOMEM_CCDC,4,2       ; @OMAP3_ISP_IOMEM_CCDC
	.comm	_ISPCCDC_LSC_CONFIG,4,2         ; @ISPCCDC_LSC_CONFIG
	.comm	_ISPCCDC_LSC_ENABLE,4,2         ; @ISPCCDC_LSC_ENABLE
	.comm	_LSC_STATE_STOPPED,4,2          ; @LSC_STATE_STOPPED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LSC prefetch timeout\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_LSC_STATE_RUNNING,4,2          ; @LSC_STATE_RUNNING
	.comm	_LSC_STATE_STOPPING,4,2         ; @LSC_STATE_STOPPING
	.no_dead_strip	___ccdc_lsc_enable
.subsections_via_symbols
