	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_disable
_ccdc_disable:                          ## @ccdc_disable
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	52(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	movq	_ISP_PIPELINE_STREAM_CONTINUOUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_CCDC_STOP_REQUEST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_2:
	cmpl	$0, 56(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_CCDC_STOP_FINISHED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_4:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	48(%rbx), %r14d
	movq	8(%rbx), %rax
	movq	_CCDC_STOP_FINISHED@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	sete	%r15b
	movl	$2000, %edi                     ## imm = 0x7D0
	callq	_msecs_to_jiffies
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_wait_event_timeout
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_to_device
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_warn
LBB0_6:
	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
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	leaq	24(%rbx), %r12
	movq	40(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_ccdc_lsc_free_request
	movq	32(%rbx), %rax
	movq	%rax, 40(%rbx)
	movq	$0, 32(%rbx)
	leaq	28(%rbx), %rdi
	callq	_cancel_work_sync
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ccdc_lsc_free_queue
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_CCDC_STOP_NOT_REQUESTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	%r14d, %eax
	sarl	$31, %eax
	andl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISP_PIPELINE_STREAM_CONTINUOUS,8,3 ## @ISP_PIPELINE_STREAM_CONTINUOUS
	.comm	_CCDC_STOP_REQUEST,8,3          ## @CCDC_STOP_REQUEST
	.comm	_CCDC_STOP_FINISHED,8,3         ## @CCDC_STOP_FINISHED
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CCDC stop timeout!\n"

	.comm	_OMAP3_ISP_SBL_CCDC_LSC_READ,4,2 ## @OMAP3_ISP_SBL_CCDC_LSC_READ
	.comm	_CCDC_STOP_NOT_REQUESTED,8,3    ## @CCDC_STOP_NOT_REQUESTED
	.no_dead_strip	_ccdc_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_disable
_ccdc_disable:                          ; @ccdc_disable
	.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, x0
	add	x20, x0, #52
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _ISP_PIPELINE_STREAM_CONTINUOUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ISP_PIPELINE_STREAM_CONTINUOUS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _CCDC_STOP_REQUEST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CCDC_STOP_REQUEST@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_2:
	ldr	w8, [x19, #56]
Lloh6:
	adrp	x21, _CCDC_STOP_FINISHED@GOTPAGE
Lloh7:
	ldr	x21, [x21, _CCDC_STOP_FINISHED@GOTPAGEOFF]
	cbnz	w8, LBB0_4
; %bb.3:
	ldr	x8, [x21]
	str	x8, [x19, #8]
LBB0_4:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w20, [x19, #48]
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w21, eq
	mov	w0, #2000
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_wait_event_timeout
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x19
	bl	_to_device
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_6:
	mov	x0, x19
	bl	_to_isp_device
Lloh13:
	adrp	x8, _OMAP3_ISP_SBL_CCDC_LSC_READ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OMAP3_ISP_SBL_CCDC_LSC_READ@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_omap3isp_sbl_disable
	add	x21, x19, #16
	mov	x0, x21
	bl	_mutex_lock
	add	x22, x19, #24
	ldr	x1, [x19, #40]
	mov	x0, x19
	bl	_ccdc_lsc_free_request
	ldr	x8, [x19, #32]
	stp	xzr, x8, [x19, #32]
	add	x0, x19, #28
	bl	_cancel_work_sync
	mov	x0, x19
	mov	x1, x22
	bl	_ccdc_lsc_free_queue
	mov	x0, x21
	bl	_mutex_unlock
Lloh16:
	adrp	x8, _CCDC_STOP_NOT_REQUESTED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CCDC_STOP_NOT_REQUESTED@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	cmp	w20, #0
	csel	w0, w20, wzr, lt
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ISP_PIPELINE_STREAM_CONTINUOUS,8,3 ; @ISP_PIPELINE_STREAM_CONTINUOUS
	.comm	_CCDC_STOP_REQUEST,8,3          ; @CCDC_STOP_REQUEST
	.comm	_CCDC_STOP_FINISHED,8,3         ; @CCDC_STOP_FINISHED
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CCDC stop timeout!\n"

	.comm	_OMAP3_ISP_SBL_CCDC_LSC_READ,4,2 ; @OMAP3_ISP_SBL_CCDC_LSC_READ
	.comm	_CCDC_STOP_NOT_REQUESTED,8,3    ; @CCDC_STOP_NOT_REQUESTED
	.no_dead_strip	_ccdc_disable
.subsections_via_symbols
