	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdp1_stop_streaming
_fdp1_stop_streaming:                   ## @fdp1_stop_streaming
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_vb2_get_drv_priv
	movq	%rax, %r15
	movq	_VB2_BUF_STATE_ERROR@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_V4L2_TYPE_IS_OUTPUT
	movl	44(%r15), %edi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	callq	_v4l2_m2m_src_buf_remove
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	callq	_v4l2_m2m_dst_buf_remove
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rdi
	addq	$12, %rdi
	callq	_spin_lock_irqsave
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_v4l2_m2m_buf_done
	movq	(%r15), %rdi
	addq	$12, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_1
LBB0_6:
	movl	(%r14), %edi
	callq	_V4L2_TYPE_IS_OUTPUT
	testq	%rax, %rax
	je	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_fdp1_dequeue_field
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_fdp1_field_complete
	jmp	LBB0_12
LBB0_13:
	movq	24(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.14:
	movq	(%r15), %rax
	movq	32(%r15), %rcx
	movl	8(%rax), %edi
	movl	40(%r15), %esi
	movq	(%rcx), %rcx
	callq	_dma_free_coherent
	movq	32(%r15), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	$0, 24(%r15)
LBB0_15:
	addq	$20, %r15
	movq	%r15, %rdi
	callq	_list_empty
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_16
LBB0_7:
	movq	(%r15), %rdi
	callq	_get_queued_job
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r15), %edi
	callq	_FDP1_DEINT_MODE_USES_PREV
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	8(%rbx,%rcx,8), %rsi
	movq	%r15, %rdi
	callq	_fdp1_field_complete
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movl	(%r12), %esi
	callq	_v4l2_m2m_buf_done
	movq	$0, (%rbx)
	movq	(%r15), %rdi
	callq	_get_queued_job
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_9
LBB0_10:
	movq	8(%r15), %rsi
	movq	%r15, %rdi
	callq	_fdp1_field_complete
	movq	(%r15), %rdi
	addq	$4, %rdi
	callq	_list_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	callq	_WARN
	movq	(%r15), %rdi
	callq	_list_empty
	leaq	L_.str.2(%rip), %rsi
LBB0_16:
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VB2_BUF_STATE_ERROR,4,2        ## @VB2_BUF_STATE_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Buffer queue not empty"

L_.str.1:                               ## @.str.1
	.asciz	"Queued Job List not empty"

L_.str.2:                               ## @.str.2
	.asciz	"HW Job list not empty"

	.no_dead_strip	_fdp1_stop_streaming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdp1_stop_streaming
_fdp1_stop_streaming:                   ; @fdp1_stop_streaming
	.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
	bl	_vb2_get_drv_priv
	mov	x19, x0
Lloh0:
	adrp	x22, _VB2_BUF_STATE_ERROR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VB2_BUF_STATE_ERROR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_V4L2_TYPE_IS_OUTPUT
	mov	x8, x0
	ldr	w0, [x19, #44]
	cbz	x8, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_v4l2_m2m_src_buf_remove
	mov	x21, x0
	cbnz	x0, LBB0_4
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	bl	_v4l2_m2m_dst_buf_remove
	mov	x21, x0
	cbz	x0, LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19]
	add	x0, x8, #12
	bl	_spin_lock_irqsave
	ldr	w1, [x22]
	mov	x0, x21
	bl	_v4l2_m2m_buf_done
	ldr	x8, [x19]
	add	x0, x8, #12
	bl	_spin_unlock_irqrestore
	b	LBB0_1
LBB0_5:
	ldr	w0, [x20]
	bl	_V4L2_TYPE_IS_OUTPUT
	cbz	x0, LBB0_12
; %bb.6:
	mov	x0, x19
	bl	_fdp1_dequeue_field
	cbz	x0, LBB0_9
; %bb.7:
	mov	x1, x0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_fdp1_field_complete
	mov	x0, x19
	bl	_fdp1_dequeue_field
	mov	x1, x0
	cbnz	x0, LBB0_8
LBB0_9:
	ldr	x2, [x19, #24]
	cbz	x2, LBB0_11
; %bb.10:
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	ldr	w1, [x19, #40]
	ldr	x8, [x19, #32]
	ldr	x3, [x8]
	bl	_dma_free_coherent
	ldr	x8, [x19, #32]
	stp	xzr, xzr, [x8]
	str	xzr, [x19, #24]
LBB0_11:
	add	x0, x19, #20
	bl	_list_empty
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_16
LBB0_12:
	ldr	x0, [x19]
	bl	_get_queued_job
	cbz	x0, LBB0_15
; %bb.13:
	mov	x20, x0
	mov	w21, #16
	mov	w23, #8
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #16]
	bl	_FDP1_DEINT_MODE_USES_PREV
	cmp	x0, #0
	csel	x8, x23, x21, eq
	ldr	x1, [x20, x8]
	mov	x0, x19
	bl	_fdp1_field_complete
	ldr	x8, [x20]
	ldr	x0, [x8]
	ldr	w1, [x22]
	bl	_v4l2_m2m_buf_done
	str	xzr, [x20]
	ldr	x0, [x19]
	bl	_get_queued_job
	mov	x20, x0
	cbnz	x0, LBB0_14
LBB0_15:
	ldr	x1, [x19, #8]
	mov	x0, x19
	bl	_fdp1_field_complete
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_list_empty
	cmp	w0, #0
	cset	w0, eq
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_WARN
	ldr	x0, [x19]
	bl	_list_empty
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_16:
	cmp	w0, #0
	cset	w0, eq
	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
	b	_WARN
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VB2_BUF_STATE_ERROR,4,2        ; @VB2_BUF_STATE_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Buffer queue not empty"

l_.str.1:                               ; @.str.1
	.asciz	"Queued Job List not empty"

l_.str.2:                               ; @.str.2
	.asciz	"HW Job list not empty"

	.no_dead_strip	_fdp1_stop_streaming
.subsections_via_symbols
