	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smiapp_stop_streaming
_smiapp_stop_streaming:                 ## @smiapp_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
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_SMIAPP_REG_U8_MODE_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SMIAPP_MODE_SELECT_SOFTWARE_STANDBY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_smiapp_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_post_streamoff@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_smiapp_call_quirk
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_4
LBB0_2:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMIAPP_REG_U8_MODE_SELECT,4,2  ## @SMIAPP_REG_U8_MODE_SELECT
	.comm	_SMIAPP_MODE_SELECT_SOFTWARE_STANDBY,4,2 ## @SMIAPP_MODE_SELECT_SOFTWARE_STANDBY
	.comm	_post_streamoff,4,2             ## @post_streamoff
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"post_streamoff quirks failed\n"

	.no_dead_strip	_smiapp_stop_streaming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smiapp_stop_streaming
_smiapp_stop_streaming:                 ; @smiapp_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
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_v4l2_get_subdevdata
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _SMIAPP_REG_U8_MODE_SELECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMIAPP_REG_U8_MODE_SELECT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SMIAPP_MODE_SELECT_SOFTWARE_STANDBY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMIAPP_MODE_SELECT_SOFTWARE_STANDBY@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_smiapp_write
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _post_streamoff@GOTPAGE
Lloh7:
	ldr	x8, [x8, _post_streamoff@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smiapp_call_quirk
	mov	x21, x0
	cbz	w0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SMIAPP_REG_U8_MODE_SELECT,4,2  ; @SMIAPP_REG_U8_MODE_SELECT
	.comm	_SMIAPP_MODE_SELECT_SOFTWARE_STANDBY,4,2 ; @SMIAPP_MODE_SELECT_SOFTWARE_STANDBY
	.comm	_post_streamoff,4,2             ; @post_streamoff
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"post_streamoff quirks failed\n"

	.no_dead_strip	_smiapp_stop_streaming
.subsections_via_symbols
