	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_lsc_isr
_ccdc_lsc_isr:                          ## @ccdc_lsc_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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_IRQ0STATUS_CCDC_LSC_PREF_ERR_IRQ@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	24(%rbx), %rdi
	callq	_to_isp_pipeline
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ccdc_lsc_error_handler
	movl	$1, (%r15)
	movq	%rbx, %rdi
	callq	_to_device
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
LBB0_2:
	movq	_IRQ0STATUS_CCDC_LSC_DONE_IRQ@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.3:
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	movq	_LSC_STATE_STOPPING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_LSC_STATE_STOPPED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_5:
	movq	_CCDC_EVENT_LSC_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ccdc_handle_stopping
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:
	movq	(%rbx), %rax
	movq	_LSC_STATE_RECONFIG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	movq	_LSC_STATE_STOPPED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_IRQ0STATUS_HS_VS_IRQ@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_10
## %bb.8:
	cmpq	$0, 16(%rbx)
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_ccdc_lsc_enable
LBB0_10:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ0STATUS_CCDC_LSC_PREF_ERR_IRQ,4,2 ## @IRQ0STATUS_CCDC_LSC_PREF_ERR_IRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lsc prefetch error\n"

	.comm	_IRQ0STATUS_CCDC_LSC_DONE_IRQ,4,2 ## @IRQ0STATUS_CCDC_LSC_DONE_IRQ
	.comm	_LSC_STATE_STOPPING,8,3         ## @LSC_STATE_STOPPING
	.comm	_LSC_STATE_STOPPED,8,3          ## @LSC_STATE_STOPPED
	.comm	_CCDC_EVENT_LSC_DONE,4,2        ## @CCDC_EVENT_LSC_DONE
	.comm	_LSC_STATE_RECONFIG,8,3         ## @LSC_STATE_RECONFIG
	.comm	_IRQ0STATUS_HS_VS_IRQ,4,2       ## @IRQ0STATUS_HS_VS_IRQ
	.no_dead_strip	_ccdc_lsc_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_lsc_isr
_ccdc_lsc_isr:                          ; @ccdc_lsc_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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _IRQ0STATUS_CCDC_LSC_PREF_ERR_IRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ0STATUS_CCDC_LSC_PREF_ERR_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	add	x0, x19, #24
	bl	_to_isp_pipeline
	mov	x21, x0
	mov	x0, x19
	bl	_ccdc_lsc_error_handler
	mov	w8, #1
	str	w8, [x21]
	mov	x0, x19
	bl	_to_device
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_2:
Lloh5:
	adrp	x8, _IRQ0STATUS_CCDC_LSC_DONE_IRQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ0STATUS_CCDC_LSC_DONE_IRQ@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.3:
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _LSC_STATE_STOPPING@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LSC_STATE_STOPPING@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _LSC_STATE_STOPPED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LSC_STATE_STOPPED@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_5:
Lloh14:
	adrp	x8, _CCDC_EVENT_LSC_DONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CCDC_EVENT_LSC_DONE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ccdc_handle_stopping
	cbnz	x0, LBB0_10
; %bb.6:
	ldr	x8, [x19]
Lloh17:
	adrp	x9, _LSC_STATE_RECONFIG@GOTPAGE
Lloh18:
	ldr	x9, [x9, _LSC_STATE_RECONFIG@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
Lloh20:
	adrp	x8, _LSC_STATE_STOPPED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LSC_STATE_STOPPED@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh23:
	adrp	x8, _IRQ0STATUS_HS_VS_IRQ@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IRQ0STATUS_HS_VS_IRQ@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_10
; %bb.8:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_ccdc_lsc_enable
LBB0_10:
	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_11:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ0STATUS_CCDC_LSC_PREF_ERR_IRQ,4,2 ; @IRQ0STATUS_CCDC_LSC_PREF_ERR_IRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lsc prefetch error\n"

	.comm	_IRQ0STATUS_CCDC_LSC_DONE_IRQ,4,2 ; @IRQ0STATUS_CCDC_LSC_DONE_IRQ
	.comm	_LSC_STATE_STOPPING,8,3         ; @LSC_STATE_STOPPING
	.comm	_LSC_STATE_STOPPED,8,3          ; @LSC_STATE_STOPPED
	.comm	_CCDC_EVENT_LSC_DONE,4,2        ; @CCDC_EVENT_LSC_DONE
	.comm	_LSC_STATE_RECONFIG,8,3         ; @LSC_STATE_RECONFIG
	.comm	_IRQ0STATUS_HS_VS_IRQ,4,2       ; @IRQ0STATUS_HS_VS_IRQ
	.no_dead_strip	_ccdc_lsc_isr
.subsections_via_symbols
