	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	_LSC_STATE_STOPPED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	24(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	leaq	12(%rbx), %rsi
	callq	_list_add_tail
	movq	$0, 24(%rbx)
LBB0_4:
	movq	16(%rbx), %rsi
	movq	%rbx, %rdi
	callq	___ccdc_lsc_configure
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	movq	16(%rbx), %rax
	movq	%rax, 24(%rbx)
	movq	$0, 16(%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	___ccdc_lsc_enable
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_9
LBB0_5:
	movq	%rbx, %rdi
	callq	_to_isp_device
	movq	_OMAP3_ISP_SBL_CCDC_LSC_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_omap3isp_sbl_disable
	movq	16(%rbx), %rdi
	leaq	12(%rbx), %rsi
	callq	_list_add_tail
	movq	$0, 16(%rbx)
LBB0_7:
	leaq	12(%rbx), %rdi
	callq	_list_empty
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_schedule_work
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LSC_STATE_STOPPED,8,3          ## @LSC_STATE_STOPPED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OMAP3_ISP_SBL_CCDC_LSC_READ,4,2 ## @OMAP3_ISP_SBL_CCDC_LSC_READ
	.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _LSC_STATE_STOPPED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LSC_STATE_STOPPED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #24]
	cbz	x0, LBB0_3
; %bb.2:
	add	x1, x19, #12
	bl	_list_add_tail
	str	xzr, [x19, #24]
LBB0_3:
	ldr	x1, [x19, #16]
	mov	x0, x19
	bl	___ccdc_lsc_configure
	tbnz	x0, #63, LBB0_6
; %bb.4:
	ldr	x8, [x19, #16]
	stp	xzr, x8, [x19, #16]
	mov	x0, x19
	mov	w1, #1
	bl	___ccdc_lsc_enable
	b	LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_6:
	mov	x0, x19
	bl	_to_isp_device
Lloh6:
	adrp	x8, _OMAP3_ISP_SBL_CCDC_LSC_READ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OMAP3_ISP_SBL_CCDC_LSC_READ@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_omap3isp_sbl_disable
	ldr	x0, [x19, #16]
	add	x1, x19, #12
	bl	_list_add_tail
	str	xzr, [x19, #16]
LBB0_7:
	add	x0, x19, #12
	bl	_list_empty
	cbnz	w0, LBB0_9
; %bb.8:
	add	x0, x19, #8
	bl	_schedule_work
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LSC_STATE_STOPPED,8,3          ; @LSC_STATE_STOPPED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OMAP3_ISP_SBL_CCDC_LSC_READ,4,2 ; @OMAP3_ISP_SBL_CCDC_LSC_READ
	.no_dead_strip	_ccdc_lsc_enable
.subsections_via_symbols
