	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_video_queue
_ccdc_video_queue:                      ## @ccdc_video_queue
	.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
	movq	_CCDC_OUTPUT_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.2:
	movl	(%rsi), %esi
	movq	%rbx, %rdi
	callq	_ccdc_set_outaddr
	leaq	20(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	8(%rbx), %rax
	movq	_ISP_PIPELINE_STREAM_CONTINUOUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	cmpl	$0, 32(%rbx)
	je	LBB0_4
LBB0_5:
	movl	$1, 16(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	cmpq	$0, 24(%rbx)
	je	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	callq	_ccdc_enable
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_CCDC_OUTPUT_MEMORY,4,2         ## @CCDC_OUTPUT_MEMORY
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ISP_PIPELINE_STREAM_CONTINUOUS,8,3 ## @ISP_PIPELINE_STREAM_CONTINUOUS
	.no_dead_strip	_ccdc_video_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_video_queue
_ccdc_video_queue:                      ; @ccdc_video_queue
	.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	x19, [x0]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _CCDC_OUTPUT_MEMORY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CCDC_OUTPUT_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	ldr	w1, [x1]
	mov	x0, x19
	bl	_ccdc_set_outaddr
	add	x20, x19, #20
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _ISP_PIPELINE_STREAM_CONTINUOUS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ISP_PIPELINE_STREAM_CONTINUOUS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_7
LBB0_3:
	mov	w8, #1
	str	w8, [x19, #16]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.8:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_ccdc_enable
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CCDC_OUTPUT_MEMORY,4,2         ; @CCDC_OUTPUT_MEMORY
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ISP_PIPELINE_STREAM_CONTINUOUS,8,3 ; @ISP_PIPELINE_STREAM_CONTINUOUS
	.no_dead_strip	_ccdc_video_queue
.subsections_via_symbols
