	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcam_vb_start_streaming
_mcam_vb_start_streaming:               ## @mcam_vb_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
	movq	%rdi, %r14
	callq	_vb2_get_drv_priv
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	_S_IDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%r15)
	movups	%xmm0, 32(%r15)
	movq	8(%r15), %rax
	movq	_B_vmalloc@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.2:
	leaq	24(%r15), %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_S_BUFWAIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	jmp	LBB0_10
LBB0_4:
	movq	_VB2_BUF_STATE_QUEUED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mcam_vb_requeue_bufs
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_5:
	cmpl	$0, 16(%r15)
	je	LBB0_8
## %bb.6:
	movq	%r15, %r12
	addq	$20, %r12
	xorl	%ebx, %ebx
	movq	_CF_FRAME_SOF0@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_clear_bit
	incq	%rbx
	movl	16(%r15), %eax
	cmpq	%rax, %rbx
	jb	LBB0_7
LBB0_8:
	movq	%r15, %rdi
	callq	_mcam_read_setup
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	movq	_VB2_BUF_STATE_QUEUED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mcam_vb_requeue_bufs
	jmp	LBB0_11
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_IDLE,8,3                     ## @S_IDLE
	.comm	_VB2_BUF_STATE_QUEUED,4,2       ## @VB2_BUF_STATE_QUEUED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_B_vmalloc,8,3                  ## @B_vmalloc
	.comm	_S_BUFWAIT,8,3                  ## @S_BUFWAIT
	.comm	_CF_FRAME_SOF0,8,3              ## @CF_FRAME_SOF0
	.no_dead_strip	_mcam_vb_start_streaming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcam_vb_start_streaming
_mcam_vb_start_streaming:               ; @mcam_vb_start_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
	mov	x19, x0
	bl	_vb2_get_drv_priv
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _S_IDLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S_IDLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x0, #32]
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _B_vmalloc@GOTPAGE
Lloh4:
	ldr	x9, [x9, _B_vmalloc@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.2:
	add	x0, x20, #24
	bl	_list_empty
	cbz	x0, LBB0_5
; %bb.3:
	mov	w21, #0
Lloh6:
	adrp	x8, _S_BUFWAIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S_BUFWAIT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_10
LBB0_4:
Lloh9:
	adrp	x8, _VB2_BUF_STATE_QUEUED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VB2_BUF_STATE_QUEUED@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mcam_vb_requeue_bufs
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_5:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_8
; %bb.6:
	mov	x22, #0
	add	x21, x20, #20
Lloh15:
	adrp	x23, _CF_FRAME_SOF0@GOTPAGE
Lloh16:
	ldr	x23, [x23, _CF_FRAME_SOF0@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x0, x22, x8
	mov	x1, x21
	bl	_clear_bit
	add	x22, x22, #1
	ldr	w8, [x20, #16]
	cmp	x22, x8
	b.lo	LBB0_7
LBB0_8:
	mov	x0, x20
	bl	_mcam_read_setup
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.9:
Lloh17:
	adrp	x8, _VB2_BUF_STATE_QUEUED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VB2_BUF_STATE_QUEUED@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mcam_vb_requeue_bufs
LBB0_10:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_S_IDLE,8,3                     ; @S_IDLE
	.comm	_VB2_BUF_STATE_QUEUED,4,2       ; @VB2_BUF_STATE_QUEUED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_B_vmalloc,8,3                  ; @B_vmalloc
	.comm	_S_BUFWAIT,8,3                  ; @S_BUFWAIT
	.comm	_CF_FRAME_SOF0,8,3              ; @CF_FRAME_SOF0
	.no_dead_strip	_mcam_vb_start_streaming
.subsections_via_symbols
