	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl2832_sdr_start_streaming
_rtl2832_sdr_start_streaming:           ## @rtl2832_sdr_start_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	32(%rax), %rdi
	movq	(%rdi), %rbx
	movq	8(%rbx), %r15
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	cmpl	$0, 24(%r14)
	je	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_5:
	movq	(%r15), %rcx
	movq	8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	*%rax
	movq	(%r15), %rcx
LBB0_7:
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	*%rax
LBB0_9:
	movq	_POWER_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	addq	$20, %rsi
	callq	_set_bit
	movl	16(%r14), %edi
	movq	_core@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_s_power@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_V4L2_SUBDEV_HAS_OP
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	16(%r14), %edi
	movl	(%r15), %esi
	movl	(%rbx), %edx
	movl	$1, %ecx
	callq	_v4l2_subdev_call
	jmp	LBB0_12
LBB0_11:
	movq	%r14, %rdi
	callq	_rtl2832_sdr_set_tuner
LBB0_12:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.13:
	movq	%r14, %rdi
	callq	_rtl2832_sdr_set_tuner_freq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.14:
	movq	%r14, %rdi
	callq	_rtl2832_sdr_set_adc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.15:
	movq	%r14, %rdi
	callq	_rtl2832_sdr_alloc_stream_bufs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.16:
	movq	%r14, %rdi
	callq	_rtl2832_sdr_alloc_urbs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movq	$0, 8(%r14)
	movq	%r14, %rdi
	callq	_rtl2832_sdr_submit_urbs
	movl	%eax, %ebx
LBB0_18:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_POWER_ON,4,2                   ## @POWER_ON
	.comm	_core,4,2                       ## @core
	.comm	_s_power,4,2                    ## @s_power
	.no_dead_strip	_rtl2832_sdr_start_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_start_streaming
_rtl2832_sdr_start_streaming:           ; @rtl2832_sdr_start_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	x19, x0
	ldr	x0, [x0, #32]
	ldr	x21, [x0]
	ldr	x20, [x21, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_18
LBB0_5:
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	w1, #1
	blr	x9
	ldr	x8, [x20]
LBB0_7:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w0, [x21]
	mov	w1, #1
	blr	x8
LBB0_9:
Lloh6:
	adrp	x8, _POWER_ON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POWER_ON@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x19, #20
	bl	_set_bit
	ldr	w0, [x19, #16]
Lloh9:
	adrp	x20, _core@GOTPAGE
Lloh10:
	ldr	x20, [x20, _core@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh11:
	adrp	x21, _s_power@GOTPAGE
Lloh12:
	ldr	x21, [x21, _s_power@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_V4L2_SUBDEV_HAS_OP
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w0, [x19, #16]
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	w3, #1
	bl	_v4l2_subdev_call
	mov	x20, x0
	cbnz	w0, LBB0_17
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_rtl2832_sdr_set_tuner
	mov	x20, x0
	cbnz	w0, LBB0_17
LBB0_12:
	mov	x0, x19
	bl	_rtl2832_sdr_set_tuner_freq
	mov	x20, x0
	cbnz	w0, LBB0_17
; %bb.13:
	mov	x0, x19
	bl	_rtl2832_sdr_set_adc
	mov	x20, x0
	cbnz	w0, LBB0_17
; %bb.14:
	mov	x0, x19
	bl	_rtl2832_sdr_alloc_stream_bufs
	mov	x20, x0
	cbnz	w0, LBB0_17
; %bb.15:
	mov	x0, x19
	bl	_rtl2832_sdr_alloc_urbs
	mov	x20, x0
	cbnz	w0, LBB0_17
; %bb.16:
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_rtl2832_sdr_submit_urbs
	mov	x20, x0
LBB0_17:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_18:
	mov	x0, x20
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_POWER_ON,4,2                   ; @POWER_ON
	.comm	_core,4,2                       ; @core
	.comm	_s_power,4,2                    ; @s_power
	.no_dead_strip	_rtl2832_sdr_start_streaming
.subsections_via_symbols
