	.file	"extr_cedrus_video.c_cedrus_start_streaming.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cedrus_start_streaming, @function
cedrus_start_streaming:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	vb2_get_drv_priv@PLT
	mov	rbx, QWORD PTR 16[rax]
	mov	rbp, rax
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 128
	je	.L2
	cmp	eax, 129
	je	.L3
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR CEDRUS_CODEC_MPEG2[rip]
	mov	QWORD PTR 0[rbp], rax
.L5:
	mov	edi, DWORD PTR [r12]
	xor	r13d, r13d
	call	V4L2_TYPE_IS_OUTPUT@PLT
	test	rax, rax
	je	.L1
	mov	rdx, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR [rbx]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L1
	mov	rdi, rbp
	call	rax
	mov	r13d, eax
	test	eax, eax
	je	.L1
	mov	esi, DWORD PTR VB2_BUF_STATE_QUEUED[rip]
	mov	rdi, r12
	call	cedrus_queue_cleanup@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR CEDRUS_CODEC_H264[rip]
	mov	QWORD PTR 0[rbp], rax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	cedrus_start_streaming, .-cedrus_start_streaming
	.comm	VB2_BUF_STATE_QUEUED,4,4
	.comm	EINVAL,4,4
	.comm	CEDRUS_CODEC_MPEG2,8,8
	.comm	CEDRUS_CODEC_H264,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cedrus_video.c_cedrus_start_streaming.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cedrus_start_streaming, %function
cedrus_start_streaming:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	bl	vb2_get_drv_priv
	ldmib	r0, {r3, r7}
	cmp	r3, #128
	mov	r5, r0
	beq	.L2
	cmp	r3, #129
	beq	.L3
	ldr	r3, .L17
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L17+4
	ldr	r3, [r3]
	str	r3, [r0]
.L5:
	ldr	r0, [r6]
	bl	V4L2_TYPE_IS_OUTPUT
	subs	r4, r0, #0
	beq	.L1
	ldr	r3, [r7]
	ldr	r2, [r5]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r4, [r3]
	cmp	r4, #0
	beq	.L1
	mov	r0, r5
	blx	r4
	subs	r4, r0, #0
	beq	.L1
	ldr	r3, .L17+8
	mov	r0, r6
	ldr	r1, [r3]
	bl	cedrus_queue_cleanup
	b	.L1
.L3:
	ldr	r3, .L17+12
	ldr	r3, [r3]
	str	r3, [r0]
	b	.L5
.L18:
	.align	2
.L17:
	.word	EINVAL
	.word	CEDRUS_CODEC_MPEG2
	.word	VB2_BUF_STATE_QUEUED
	.word	CEDRUS_CODEC_H264
	.size	cedrus_start_streaming, .-cedrus_start_streaming
	.comm	VB2_BUF_STATE_QUEUED,4,4
	.comm	EINVAL,4,4
	.comm	CEDRUS_CODEC_MPEG2,4,4
	.comm	CEDRUS_CODEC_H264,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
