	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_medion_v_stop_streaming
_cxusb_medion_v_stop_streaming:         ## @cxusb_medion_v_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_vb2_get_drv_priv
	movq	%rax, %r14
	movq	8(%rax), %r15
	movq	_OPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_cxusb_vprintk
	movl	(%r15), %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movl	$1, (%r15)
	movq	_CMD_STREAMING_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_cxusb_ctrl_msg
	movl	32(%r15), %edi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_stream@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_3:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_mutex_unlock
	movq	_CXUSB_VIDEO_URBS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	callq	_usb_kill_urb
	movl	(%r14), %eax
	jmp	LBB0_7
LBB0_8:
	leaq	16(%r15), %rdi
	callq	_flush_work
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_mutex_lock
	movl	4(%r15), %edi
	callq	_vfree
	movq	%r15, %rdi
	callq	_cxusb_medion_urbs_free
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_cxusb_medion_return_buffers
	movl	$0, (%r15)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPS,4,2                        ## @OPS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"should stop streaming\n"

	.comm	_CMD_STREAMING_OFF,4,2          ## @CMD_STREAMING_OFF
	.comm	_video,4,2                      ## @video
	.comm	_s_stream,4,2                   ## @s_stream
L_.str.1:                               ## @.str.1
	.asciz	"unable to stop stream (%d)\n"

	.comm	_CXUSB_VIDEO_URBS,4,2           ## @CXUSB_VIDEO_URBS
	.no_dead_strip	_cxusb_medion_v_stop_streaming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxusb_medion_v_stop_streaming
_cxusb_medion_v_stop_streaming:         ; @cxusb_medion_v_stop_streaming
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_vb2_get_drv_priv
	mov	x20, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _OPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_cxusb_vprintk
	ldr	w0, [x19]
	bl	_WARN_ON
	cbnz	x0, LBB0_9
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
Lloh5:
	adrp	x8, _CMD_STREAMING_OFF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMD_STREAMING_OFF@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_cxusb_ctrl_msg
	ldr	w0, [x19, #32]
Lloh8:
	adrp	x8, _video@GOTPAGE
Lloh9:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _s_stream@GOTPAGE
Lloh12:
	ldr	x8, [x8, _s_stream@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_v4l2_subdev_call
	cbz	w0, LBB0_3
; %bb.2:
	mov	x2, x0
	ldr	x0, [x20]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_mutex_unlock
Lloh16:
	adrp	x20, _CXUSB_VIDEO_URBS@GOTPAGE
Lloh17:
	ldr	x20, [x20, _CXUSB_VIDEO_URBS@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_8
; %bb.4:
	mov	x21, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, uxtw
	b.hs	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	ldr	x0, [x9, x21, lsl #3]
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_usb_kill_urb
	ldr	w8, [x20]
	b	LBB0_5
LBB0_8:
	add	x0, x19, #16
	bl	_flush_work
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_mutex_lock
	ldr	w0, [x19, #4]
	bl	_vfree
	mov	x0, x19
	bl	_cxusb_medion_urbs_free
	mov	x0, x19
	mov	w1, #0
	bl	_cxusb_medion_return_buffers
	str	wzr, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_OPS,4,2                        ; @OPS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"should stop streaming\n"

	.comm	_CMD_STREAMING_OFF,4,2          ; @CMD_STREAMING_OFF
	.comm	_video,4,2                      ; @video
	.comm	_s_stream,4,2                   ; @s_stream
l_.str.1:                               ; @.str.1
	.asciz	"unable to stop stream (%d)\n"

	.comm	_CXUSB_VIDEO_URBS,4,2           ; @CXUSB_VIDEO_URBS
	.no_dead_strip	_cxusb_medion_v_stop_streaming
.subsections_via_symbols
