	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw686x_start_streaming
_tw686x_start_streaming:                ## @tw686x_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	%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, %r13
	movq	40(%rax), %r14
	leaq	12(%r14), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	32(%r14), %rbx
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	(%r14), %rax
	movq	_TW686X_DMA_MODE_MEMCPY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:
	movq	32(%r13), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.4:
	cmpl	$0, 4(%rax)
	je	LBB0_5
LBB0_8:
	movq	16(%r14), %rax
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	movq	16(%r14), %rax
	movq	%r13, %rdi
	movl	$1, %esi
	callq	*(%rax)
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	$0, 16(%r13)
	movl	$0, 8(%r13)
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	4(%r13), %esi
	movq	%r14, %rdi
	callq	_tw686x_enable_channel
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	addq	$8, %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$100, %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mod_timer
	jmp	LBB0_7
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	addq	$24, %r14
	movl	24(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_v4l2_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	_VB2_BUF_STATE_QUEUED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_tw686x_clear_queue
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_TW686X_DMA_MODE_MEMCPY,8,3     ## @TW686X_DMA_MODE_MEMCPY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"video%d: refusing to start without DMA buffers\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_VB2_BUF_STATE_QUEUED,4,2       ## @VB2_BUF_STATE_QUEUED
	.no_dead_strip	_tw686x_start_streaming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw686x_start_streaming
_tw686x_start_streaming:                ; @tw686x_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	x20, [x0, #40]
	add	x21, x20, #12
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x22, [x20, #32]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbz	x22, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _TW686X_DMA_MODE_MEMCPY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TW686X_DMA_MODE_MEMCPY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x19, #32]
	ldr	w9, [x8]
	cbz	w9, LBB0_6
; %bb.3:
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_6
LBB0_4:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #1
	blr	x8
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	str	xzr, [x19, #16]
	str	wzr, [x19, #8]
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	_tw686x_enable_channel
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	add	x19, x20, #8
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
	mov	w0, #100
	bl	_msecs_to_jiffies
	add	x1, x0, x20
	mov	x0, x19
	bl	_mod_timer
	mov	w20, #0
	b	LBB0_8
LBB0_5:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	add	x0, x20, #24
	ldr	w2, [x19, #24]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l2_err
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh12:
	adrp	x8, _VB2_BUF_STATE_QUEUED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VB2_BUF_STATE_QUEUED@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tw686x_clear_queue
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_TW686X_DMA_MODE_MEMCPY,8,3     ; @TW686X_DMA_MODE_MEMCPY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"video%d: refusing to start without DMA buffers\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_VB2_BUF_STATE_QUEUED,4,2       ; @VB2_BUF_STATE_QUEUED
	.no_dead_strip	_tw686x_start_streaming
.subsections_via_symbols
