	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msi2500_stop_streaming
_msi2500_stop_streaming:                ## @msi2500_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_vb2_get_drv_priv
	movq	%rax, %rbx
	movl	16(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_mutex_lock
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_msi2500_isoc_cleanup
LBB0_2:
	movq	%rbx, %rdi
	callq	_msi2500_cleanup_queued_bufs
	movl	$20, %edi
	callq	_msleep
	movq	_CMD_STOP_STREAMING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_msi2500_ctrl_msg
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_CMD_WREG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$16777219, %edx                 ## imm = 0x1000003
	callq	_msi2500_ctrl_msg
LBB0_4:
	movl	4(%rbx), %edi
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_power@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_v4l2_subdev_call
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_CMD_STOP_STREAMING,4,2         ## @CMD_STOP_STREAMING
	.comm	_CMD_WREG,4,2                   ## @CMD_WREG
	.comm	_core,4,2                       ## @core
	.comm	_s_power,4,2                    ## @s_power
	.no_dead_strip	_msi2500_stop_streaming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msi2500_stop_streaming
_msi2500_stop_streaming:                ; @msi2500_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
	bl	_vb2_get_drv_priv
	mov	x19, x0
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_msi2500_isoc_cleanup
LBB0_2:
	mov	x0, x19
	bl	_msi2500_cleanup_queued_bufs
	mov	w0, #20
	bl	_msleep
Lloh2:
	adrp	x8, _CMD_STOP_STREAMING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMD_STOP_STREAMING@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_msi2500_ctrl_msg
	cbnz	w0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _CMD_WREG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMD_WREG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #3
	movk	w2, #256, lsl #16
	bl	_msi2500_ctrl_msg
LBB0_4:
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x8, _core@GOTPAGE
Lloh9:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _s_power@GOTPAGE
Lloh12:
	ldr	x8, [x8, _s_power@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_v4l2_subdev_call
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_CMD_STOP_STREAMING,4,2         ; @CMD_STOP_STREAMING
	.comm	_CMD_WREG,4,2                   ; @CMD_WREG
	.comm	_core,4,2                       ; @core
	.comm	_s_power,4,2                    ; @s_power
	.no_dead_strip	_msi2500_stop_streaming
.subsections_via_symbols
