	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_isr_buffer
_ccdc_isr_buffer:                       ## @ccdc_isr_buffer
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	12(%rdi), %r12
	movq	%r12, %rdi
	callq	_to_isp_pipeline
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_to_isp_device
	movq	%rax, %r15
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_list_empty
	xorl	%ecx, %ecx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.1:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	_ISP_PIPELINE_STREAM_CONTINUOUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	movq	$0, 16(%rbx)
	jmp	LBB0_13
LBB0_4:
	movq	%rbx, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_ccdc_sbl_wait_idle
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	4(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_media_entity_enum_set
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_omap3isp_pipeline_cancel_stream
	xorl	%ecx, %ecx
	jmp	LBB0_14
LBB0_6:
	movq	%rbx, %rdi
	callq	_ccdc_has_all_fields
	testl	%eax, %eax
	je	LBB0_13
## %bb.7:
	movq	%r14, %rdi
	callq	_omap3isp_video_buffer_next
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ccdc_set_outaddr
LBB0_9:
	movq	_ISP_PIPELINE_IDLE_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	orl	%eax, (%r15)
	movq	(%rbx), %rax
	movq	_ISP_PIPELINE_STREAM_SINGLESHOT@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_12
## %bb.10:
	movq	%r15, %rdi
	callq	_isp_pipeline_ready
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_omap3isp_pipeline_set_stream
LBB0_12:
	xorl	%ecx, %ecx
	testq	%r14, %r14
	setne	%cl
	jmp	LBB0_14
LBB0_13:
	movl	$1, %ecx
LBB0_14:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISP_PIPELINE_STREAM_CONTINUOUS,8,3 ## @ISP_PIPELINE_STREAM_CONTINUOUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CCDC won't become idle!\n"

	.comm	_ISP_PIPELINE_IDLE_OUTPUT,4,2   ## @ISP_PIPELINE_IDLE_OUTPUT
	.comm	_ISP_PIPELINE_STREAM_SINGLESHOT,8,3 ## @ISP_PIPELINE_STREAM_SINGLESHOT
	.no_dead_strip	_ccdc_isr_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_isr_buffer
_ccdc_isr_buffer:                       ; @ccdc_isr_buffer
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	add	x21, x0, #12
	mov	x0, x21
	bl	_to_isp_pipeline
	mov	x19, x0
	mov	x0, x20
	bl	_to_isp_device
	mov	x22, x0
	add	x23, x20, #8
	mov	x0, x23
	bl	_list_empty
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_15
LBB0_2:
	ldr	x8, [x20]
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_5
; %bb.3:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
; %bb.4:
	str	xzr, [x20, #16]
	b	LBB0_14
LBB0_5:
	mov	x0, x20
	mov	w1, #1000
	bl	_ccdc_sbl_wait_idle
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x22, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	mov	x0, x22
	mov	x1, x21
	bl	_media_entity_enum_set
	mov	x0, x19
	bl	_omap3isp_pipeline_cancel_stream
	mov	w0, #0
	b	LBB0_15
LBB0_7:
	mov	x0, x20
	bl	_ccdc_has_all_fields
	cbz	w0, LBB0_14
; %bb.8:
	mov	x0, x23
	bl	_omap3isp_video_buffer_next
	mov	x21, x0
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_ccdc_set_outaddr
LBB0_10:
Lloh5:
	adrp	x8, _ISP_PIPELINE_IDLE_OUTPUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ISP_PIPELINE_IDLE_OUTPUT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x8, [x20]
Lloh8:
	adrp	x20, _ISP_PIPELINE_STREAM_SINGLESHOT@GOTPAGE
Lloh9:
	ldr	x20, [x20, _ISP_PIPELINE_STREAM_SINGLESHOT@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
	mov	x0, x19
	bl	_isp_pipeline_ready
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_omap3isp_pipeline_set_stream
LBB0_13:
	cmp	x21, #0
	cset	w0, ne
	b	LBB0_15
LBB0_14:
	mov	w0, #1
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ISP_PIPELINE_STREAM_CONTINUOUS,8,3 ; @ISP_PIPELINE_STREAM_CONTINUOUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CCDC won't become idle!\n"

	.comm	_ISP_PIPELINE_IDLE_OUTPUT,4,2   ; @ISP_PIPELINE_IDLE_OUTPUT
	.comm	_ISP_PIPELINE_STREAM_SINGLESHOT,8,3 ; @ISP_PIPELINE_STREAM_SINGLESHOT
	.no_dead_strip	_ccdc_isr_buffer
.subsections_via_symbols
