	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function go7007_stop_streaming
_go7007_stop_streaming:                 ## @go7007_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_vb2_get_drv_priv
	movq	%rax, %rbx
	movq	$0, (%r14)
	movq	%rax, %rdi
	callq	_go7007_stream_stop
	leaq	36(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_go7007_reset_encoder
	movq	%r14, %rdi
	callq	_mutex_unlock
	leaq	32(%rbx), %rdi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_stream@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_call_all
	leaq	24(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	leaq	28(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	20(%rbx), %edi
	xorl	%esi, %esi
	callq	_v4l2_ctrl_grab
	movl	16(%rbx), %edi
	xorl	%esi, %esi
	callq	_v4l2_ctrl_grab
	movl	12(%rbx), %edi
	xorl	%esi, %esi
	callq	_v4l2_ctrl_grab
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	callq	_v4l2_ctrl_grab
	movq	(%rbx), %rax
	movq	_GO7007_BOARDID_ADS_USBAV_709@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	$15490, %esi                    ## imm = 0x3C82
	movl	$13, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_go7007_write_addr              ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_video,4,2                      ## @video
	.comm	_s_stream,4,2                   ## @s_stream
	.comm	_GO7007_BOARDID_ADS_USBAV_709,8,3 ## @GO7007_BOARDID_ADS_USBAV_709
	.no_dead_strip	_go7007_stop_streaming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function go7007_stop_streaming
_go7007_stop_streaming:                 ; @go7007_stop_streaming
	.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
	mov	x20, x0
	bl	_vb2_get_drv_priv
	mov	x19, x0
	str	xzr, [x20]
	bl	_go7007_stream_stop
	add	x20, x19, #36
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x19
	bl	_go7007_reset_encoder
	mov	x0, x20
	bl	_mutex_unlock
	add	x0, x19, #32
Lloh0:
	adrp	x8, _video@GOTPAGE
Lloh1:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _s_stream@GOTPAGE
Lloh4:
	ldr	x8, [x8, _s_stream@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_call_all
	add	x20, x19, #24
	mov	x0, x20
	bl	_spin_lock_irqsave
	add	x0, x19, #28
	bl	_INIT_LIST_HEAD
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19, #20]
	mov	w1, #0
	bl	_v4l2_ctrl_grab
	ldr	w0, [x19, #16]
	mov	w1, #0
	bl	_v4l2_ctrl_grab
	ldr	w0, [x19, #12]
	mov	w1, #0
	bl	_v4l2_ctrl_grab
	ldr	w0, [x19, #8]
	mov	w1, #0
	bl	_v4l2_ctrl_grab
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _GO7007_BOARDID_ADS_USBAV_709@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GO7007_BOARDID_ADS_USBAV_709@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #15490
	mov	w2, #13
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_go7007_write_addr
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_video,4,2                      ; @video
	.comm	_s_stream,4,2                   ; @s_stream
	.comm	_GO7007_BOARDID_ADS_USBAV_709,8,3 ; @GO7007_BOARDID_ADS_USBAV_709
	.no_dead_strip	_go7007_stop_streaming
.subsections_via_symbols
