	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvin_start_streaming
_rvin_start_streaming:                  ## @rvin_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, %rbx
	movq	%rax, %r14
	movl	8(%rax), %esi
	movl	12(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdx
	callq	_dma_alloc_coherent
	movl	%eax, 4(%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_rvin_set_stream
	movl	%eax, %r15d
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movq	_VB2_BUF_STATE_QUEUED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_return_all_buffers
	jmp	LBB0_7
LBB0_1:
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_VB2_BUF_STATE_QUEUED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_return_all_buffers
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_vin_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_4:
	movq	$0, 24(%r14)
	movq	%r14, %rdi
	callq	_rvin_capture_start
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %r15d
	movq	_VB2_BUF_STATE_QUEUED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_return_all_buffers
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_rvin_set_stream
LBB0_7:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	12(%r14), %edi
	movl	8(%r14), %esi
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	callq	_dma_free_coherent
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_VB2_BUF_STATE_QUEUED,4,2       ## @VB2_BUF_STATE_QUEUED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate scratch buffer\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_rvin_start_streaming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvin_start_streaming
_rvin_start_streaming:                  ; @rvin_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	w0, [x0, #12]
	ldr	w1, [x19, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x2, x19
	bl	_dma_alloc_coherent
	str	w0, [x19, #4]
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_rvin_set_stream
	mov	x20, x0
	add	x21, x19, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
	cbz	w20, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _VB2_BUF_STATE_QUEUED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VB2_BUF_STATE_QUEUED@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_return_all_buffers
	b	LBB0_6
LBB0_3:
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh6:
	adrp	x8, _VB2_BUF_STATE_QUEUED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VB2_BUF_STATE_QUEUED@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_return_all_buffers
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_vin_err
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_4:
	str	xzr, [x19, #24]
	mov	x0, x19
	bl	_rvin_capture_start
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.5:
Lloh14:
	adrp	x8, _VB2_BUF_STATE_QUEUED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VB2_BUF_STATE_QUEUED@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_return_all_buffers
	mov	x0, x19
	mov	w1, #0
	bl	_rvin_set_stream
LBB0_6:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldp	w1, w0, [x19, #8]
	ldp	w3, w2, [x19]
	bl	_dma_free_coherent
LBB0_7:
	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
LBB0_8:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_VB2_BUF_STATE_QUEUED,4,2       ; @VB2_BUF_STATE_QUEUED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate scratch buffer\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_rvin_start_streaming
.subsections_via_symbols
