	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vb2_core_streamon              ## -- Begin function vb2_core_streamon
	.p2align	4, 0x90
_vb2_core_streamon:                     ## @vb2_core_streamon
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	%esi, (%rdi)
	jne	LBB0_1
## %bb.4:
	movq	%rdi, %rbx
	cmpl	$0, 4(%rdi)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
LBB0_14:
	xorl	%r14d, %r14d
	movl	$3, %edi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_15
LBB0_1:
	leaq	L_.str(%rip), %rsi
LBB0_2:
	xorl	%r14d, %r14d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_15:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	16(%rbx), %rdx
	cmpq	%rdx, %rax
	jge	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_3
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_10:
	cmpq	%rdx, 24(%rbx)
	jge	LBB0_11
LBB0_13:
	movl	$1, 4(%rbx)
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_14
LBB0_11:
	movq	%rbx, %rdi
	callq	_v4l_vb2q_enable_media_source
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movq	%rbx, %rdi
	callq	_vb2_start_streaming
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid stream type\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"already streaming\n"

L_.str.2:                               ## @.str.2
	.asciz	"no buffers have been allocated\n"

L_.str.3:                               ## @.str.3
	.asciz	"need at least %u allocated buffers\n"

L_.str.4:                               ## @.str.4
	.asciz	"successful\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vb2_core_streamon              ; -- Begin function vb2_core_streamon
	.p2align	2
_vb2_core_streamon:                     ; @vb2_core_streamon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w8, [x0]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_7
; %bb.2:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:
	mov	w0, #3
	bl	_dprintk
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	mov	w0, #1
	bl	_dprintk
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_10
; %bb.8:
	ldr	x8, [x19, #16]
	cmp	x9, x8
	b.ge	LBB0_11
; %bb.9:
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_10:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_11:
	ldr	x9, [x19, #24]
	cmp	x9, x8
	b.ge	LBB0_13
LBB0_12:
	mov	w8, #1
	str	w8, [x19, #4]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_3
LBB0_13:
	mov	x0, x19
	bl	_v4l_vb2q_enable_media_source
	cbnz	w0, LBB0_6
; %bb.14:
	mov	x0, x19
	bl	_vb2_start_streaming
	cbnz	w0, LBB0_6
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid stream type\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"already streaming\n"

l_.str.2:                               ; @.str.2
	.asciz	"no buffers have been allocated\n"

l_.str.3:                               ; @.str.3
	.asciz	"need at least %u allocated buffers\n"

l_.str.4:                               ; @.str.4
	.asciz	"successful\n"

.subsections_via_symbols
