	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap3isp_ccdc_init             ## -- Begin function omap3isp_ccdc_init
	.p2align	4, 0x90
_omap3isp_ccdc_init:                    ## @omap3isp_ccdc_init
	.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, %rbx
	addq	$48, %rdi
	callq	_spin_lock_init
	leaq	44(%rbx), %rdi
	callq	_init_waitqueue_head
	movq	%rbx, %rdi
	callq	_mutex_init
	movq	_CCDC_STOP_NOT_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	leaq	24(%rbx), %r14
	leaq	36(%rbx), %rdi
	movq	_ccdc_lsc_free_table_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_LSC_STATE_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	leaq	28(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, %rdi
	callq	_spin_lock_init
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	_OMAP3ISP_CCDC_BLCLAMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_ccdc_apply_controls
	movq	%rbx, %rdi
	callq	_ccdc_init_entities
	movl	%eax, %r14d
	xorl	%eax, %eax
	testl	%r14d, %r14d
	jns	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_mutex_destroy
	movl	%r14d, %eax
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCDC_STOP_NOT_REQUESTED,4,2    ## @CCDC_STOP_NOT_REQUESTED
	.comm	_ccdc_lsc_free_table_work,4,2   ## @ccdc_lsc_free_table_work
	.comm	_LSC_STATE_STOPPED,4,2          ## @LSC_STATE_STOPPED
	.comm	_OMAP3ISP_CCDC_BLCLAMP,4,2      ## @OMAP3ISP_CCDC_BLCLAMP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap3isp_ccdc_init             ; -- Begin function omap3isp_ccdc_init
	.p2align	2
_omap3isp_ccdc_init:                    ; @omap3isp_ccdc_init
	.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
	mov	x19, x0
	add	x0, x0, #48
	bl	_spin_lock_init
	add	x0, x19, #44
	bl	_init_waitqueue_head
	mov	x0, x19
	bl	_mutex_init
Lloh0:
	adrp	x8, _CCDC_STOP_NOT_REQUESTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CCDC_STOP_NOT_REQUESTED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	add	x20, x19, #24
	add	x0, x19, #36
Lloh3:
	adrp	x8, _ccdc_lsc_free_table_work@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ccdc_lsc_free_table_work@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh6:
	adrp	x8, _LSC_STATE_STOPPED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LSC_STATE_STOPPED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	add	x0, x19, #28
	bl	_INIT_LIST_HEAD
	mov	x0, x20
	bl	_spin_lock_init
	stp	xzr, xzr, [x19, #8]
Lloh9:
	adrp	x8, _OMAP3ISP_CCDC_BLCLAMP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OMAP3ISP_CCDC_BLCLAMP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_ccdc_apply_controls
	mov	x0, x19
	bl	_ccdc_init_entities
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_3
LBB0_2:
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_destroy
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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
	.cfi_endproc
                                        ; -- End function
	.comm	_CCDC_STOP_NOT_REQUESTED,4,2    ; @CCDC_STOP_NOT_REQUESTED
	.comm	_ccdc_lsc_free_table_work,4,2   ; @ccdc_lsc_free_table_work
	.comm	_LSC_STATE_STOPPED,4,2          ; @LSC_STATE_STOPPED
	.comm	_OMAP3ISP_CCDC_BLCLAMP,4,2      ; @OMAP3ISP_CCDC_BLCLAMP
.subsections_via_symbols
