	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_vd0_isr
_ccdc_vd0_isr:                          ## @ccdc_vd0_isr
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpq	$0, 32(%rdi)
	je	LBB0_8
## %bb.1:
	leaq	40(%rbx), %rdi
	callq	_to_isp_pipeline
	movq	%rax, %rdi
	callq	_atomic_inc
	cmpq	$0, 32(%rbx)
	je	LBB0_8
## %bb.2:
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	movq	_ISP_PIPELINE_STREAM_CONTINUOUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movq	_CCDC_OUTPUT_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_7
## %bb.4:
	movq	24(%rbx), %rax
	movq	_LSC_STATE_STOPPED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	___ccdc_lsc_enable
LBB0_6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	___ccdc_enable
LBB0_7:
	movq	_CCDC_EVENT_VD1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ccdc_handle_stopping
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_8:
	movq	_CCDC_OUTPUT_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_9
## %bb.10:
	movq	%rbx, %rdi
	callq	_ccdc_isr_buffer
	movl	%eax, %r14d
	jmp	LBB0_11
LBB0_9:
	xorl	%r14d, %r14d
LBB0_11:
	leaq	12(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_CCDC_EVENT_VD0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ccdc_handle_stopping
	testq	%rax, %rax
	je	LBB0_12
## %bb.16:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_12:
	cmpl	$0, 16(%rbx)
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_ccdc_apply_controls
LBB0_14:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.17:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ccdc_enable                    ## TAILCALL
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISP_PIPELINE_STREAM_CONTINUOUS,8,3 ## @ISP_PIPELINE_STREAM_CONTINUOUS
	.comm	_CCDC_OUTPUT_MEMORY,4,2         ## @CCDC_OUTPUT_MEMORY
	.comm	_LSC_STATE_STOPPED,8,3          ## @LSC_STATE_STOPPED
	.comm	_CCDC_EVENT_VD1,4,2             ## @CCDC_EVENT_VD1
	.comm	_CCDC_EVENT_VD0,4,2             ## @CCDC_EVENT_VD0
	.no_dead_strip	_ccdc_vd0_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_vd0_isr
_ccdc_vd0_isr:                          ; @ccdc_vd0_isr
	.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
	ldr	x8, [x0, #32]
Lloh0:
	adrp	x21, _CCDC_OUTPUT_MEMORY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CCDC_OUTPUT_MEMORY@GOTPAGEOFF]
	cbz	x8, LBB0_8
; %bb.1:
	add	x0, x19, #40
	bl	_to_isp_pipeline
	bl	_atomic_inc
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_8
; %bb.2:
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _ISP_PIPELINE_STREAM_CONTINUOUS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ISP_PIPELINE_STREAM_CONTINUOUS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [x19, #8]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
	ldr	x8, [x19, #24]
Lloh5:
	adrp	x9, _LSC_STATE_STOPPED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LSC_STATE_STOPPED@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	bl	___ccdc_lsc_enable
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	___ccdc_enable
LBB0_7:
Lloh8:
	adrp	x8, _CCDC_EVENT_VD1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CCDC_EVENT_VD1@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ccdc_handle_stopping
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_8:
	ldr	w8, [x19, #8]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_ccdc_isr_buffer
	mov	x20, x0
	b	LBB0_11
LBB0_10:
	mov	w20, #0
LBB0_11:
	add	x21, x19, #12
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh11:
	adrp	x8, _CCDC_EVENT_VD0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CCDC_EVENT_VD0@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ccdc_handle_stopping
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x21
	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
	b	_spin_unlock_irqrestore
LBB0_13:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_ccdc_apply_controls
LBB0_15:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbz	w20, LBB0_17
; %bb.16:
	mov	x0, x19
	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
	b	_ccdc_enable
LBB0_17:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ISP_PIPELINE_STREAM_CONTINUOUS,8,3 ; @ISP_PIPELINE_STREAM_CONTINUOUS
	.comm	_CCDC_OUTPUT_MEMORY,4,2         ; @CCDC_OUTPUT_MEMORY
	.comm	_LSC_STATE_STOPPED,8,3          ; @LSC_STATE_STOPPED
	.comm	_CCDC_EVENT_VD1,4,2             ; @CCDC_EVENT_VD1
	.comm	_CCDC_EVENT_VD0,4,2             ; @CCDC_EVENT_VD0
	.no_dead_strip	_ccdc_vd0_isr
.subsections_via_symbols
