	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_vd1_isr
_ccdc_vd1_isr:                          ## @ccdc_vd1_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, 40(%rdi)
	je	LBB0_1
## %bb.15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %eax
	cmpl	$130, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.3:
	movq	_CCDC_STOP_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	jmp	LBB0_8
LBB0_4:
	movq	_CCDC_OUTPUT_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_8
## %bb.5:
	movq	8(%rbx), %rax
	movq	_LSC_STATE_STOPPED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	___ccdc_lsc_enable
LBB0_7:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	___ccdc_enable
LBB0_8:
	movq	_CCDC_EVENT_VD1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ccdc_handle_stopping
	testq	%rax, %rax
	je	LBB0_9
LBB0_14:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_9:
	cmpq	$0, 24(%rbx)
	je	LBB0_14
## %bb.10:
	movq	8(%rbx), %rax
	movq	_LSC_STATE_RUNNING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	___ccdc_lsc_enable
	movq	_LSC_STATE_RECONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_14
LBB0_12:
	movq	_LSC_STATE_STOPPED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_ccdc_lsc_enable
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_CCDC_STOP_REQUEST,4,2          ## @CCDC_STOP_REQUEST
	.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	_LSC_STATE_RUNNING,8,3          ## @LSC_STATE_RUNNING
	.comm	_LSC_STATE_RECONFIG,8,3         ## @LSC_STATE_RECONFIG
	.no_dead_strip	_ccdc_vd1_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_vd1_isr
_ccdc_vd1_isr:                          ; @ccdc_vd1_isr
	.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, #40]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
	cmp	w8, #130
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_9
; %bb.4:
Lloh0:
	adrp	x8, _CCDC_STOP_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CCDC_STOP_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	b	LBB0_9
LBB0_5:
	ldr	w8, [x20, #4]
Lloh3:
	adrp	x9, _CCDC_OUTPUT_MEMORY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CCDC_OUTPUT_MEMORY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.6:
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _LSC_STATE_STOPPED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LSC_STATE_STOPPED@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x20
	mov	w1, #0
	bl	___ccdc_lsc_enable
LBB0_8:
	mov	x0, x20
	mov	w1, #0
	bl	___ccdc_enable
LBB0_9:
Lloh9:
	adrp	x8, _CCDC_EVENT_VD1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CCDC_EVENT_VD1@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ccdc_handle_stopping
	cbz	x0, LBB0_11
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_11:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_10
; %bb.12:
	ldr	x8, [x20, #8]
Lloh12:
	adrp	x9, _LSC_STATE_RUNNING@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LSC_STATE_RUNNING@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x20
	mov	w1, #0
	bl	___ccdc_lsc_enable
Lloh15:
	adrp	x8, _LSC_STATE_RECONFIG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LSC_STATE_RECONFIG@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x20, #8]
	b	LBB0_10
LBB0_14:
Lloh18:
	adrp	x9, _LSC_STATE_STOPPED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _LSC_STATE_STOPPED@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.15:
	mov	x0, x20
	bl	_ccdc_lsc_enable
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CCDC_STOP_REQUEST,4,2          ; @CCDC_STOP_REQUEST
	.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	_LSC_STATE_RUNNING,8,3          ; @LSC_STATE_RUNNING
	.comm	_LSC_STATE_RECONFIG,8,3         ; @LSC_STATE_RECONFIG
	.no_dead_strip	_ccdc_vd1_isr
.subsections_via_symbols
