	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl2832_sdr_stop_streaming
_rtl2832_sdr_stop_streaming:            ## @rtl2832_sdr_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_vb2_get_drv_priv
	movq	%rax, %rbx
	movq	16(%rax), %rdi
	movq	(%rdi), %r15
	movq	8(%r15), %r14
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_rtl2832_sdr_kill_urbs
	movq	%rbx, %rdi
	callq	_rtl2832_sdr_free_urbs
	movq	%rbx, %rdi
	callq	_rtl2832_sdr_free_stream_bufs
	movq	%rbx, %rdi
	callq	_rtl2832_sdr_cleanup_queued_bufs
	movq	%rbx, %rdi
	callq	_rtl2832_sdr_unset_adc
	movl	8(%rbx), %edi
	movq	_core@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_s_power@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_V4L2_SUBDEV_HAS_OP
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	movl	(%r12), %esi
	movl	(%r13), %edx
	xorl	%ecx, %ecx
	callq	_v4l2_subdev_call
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_rtl2832_sdr_unset_tuner
LBB0_3:
	movq	_POWER_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	addq	$4, %rsi
	callq	_clear_bit
	movq	(%r14), %rcx
	movq	8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	*%rax
	movq	(%r14), %rcx
LBB0_5:
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_core,4,2                       ## @core
	.comm	_s_power,4,2                    ## @s_power
	.comm	_POWER_ON,4,2                   ## @POWER_ON
	.no_dead_strip	_rtl2832_sdr_stop_streaming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl2832_sdr_stop_streaming
_rtl2832_sdr_stop_streaming:            ; @rtl2832_sdr_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
	bl	_vb2_get_drv_priv
	mov	x19, x0
	ldr	x0, [x0, #16]
	ldr	x21, [x0]
	ldr	x20, [x21, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_rtl2832_sdr_kill_urbs
	mov	x0, x19
	bl	_rtl2832_sdr_free_urbs
	mov	x0, x19
	bl	_rtl2832_sdr_free_stream_bufs
	mov	x0, x19
	bl	_rtl2832_sdr_cleanup_queued_bufs
	mov	x0, x19
	bl	_rtl2832_sdr_unset_adc
	ldr	w0, [x19, #8]
Lloh2:
	adrp	x22, _core@GOTPAGE
Lloh3:
	ldr	x22, [x22, _core@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh4:
	adrp	x23, _s_power@GOTPAGE
Lloh5:
	ldr	x23, [x23, _s_power@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_V4L2_SUBDEV_HAS_OP
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	w3, #0
	bl	_v4l2_subdev_call
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_rtl2832_sdr_unset_tuner
LBB0_3:
Lloh6:
	adrp	x8, _POWER_ON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POWER_ON@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_clear_bit
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_5
; %bb.4:
	ldr	w0, [x21]
	mov	w1, #0
	blr	x9
	ldr	x8, [x20]
LBB0_5:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	w1, #0
	blr	x8
LBB0_7:
	mov	x0, x19
	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	_mutex_unlock
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_core,4,2                       ; @core
	.comm	_s_power,4,2                    ; @s_power
	.comm	_POWER_ON,4,2                   ; @POWER_ON
	.no_dead_strip	_rtl2832_sdr_stop_streaming
.subsections_via_symbols
