	.file	"extr_vsp1_video.c_vsp1_video_buffer_queue.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vsp1_video_buffer_queue, @function
vsp1_video_buffer_queue:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	to_vb2_v4l2_buffer@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rbp, rax
	call	vb2_get_drv_priv@PLT
	mov	rdi, rbp
	xor	ebp, ebp
	mov	rbx, rax
	mov	rax, QWORD PTR 8[rax]
	lea	r15, 16[rbx]
	mov	r14, QWORD PTR 8[rax]
	call	to_vsp1_vb2_buffer@PLT
	mov	rsi, rbp
	mov	rdi, r15
	mov	r12, rax
	call	spin_lock_irqsave@PLT
	lea	rsi, 20[rbx]
	mov	rdi, rsi
	mov	QWORD PTR 8[rsp], rsi
	call	list_empty@PLT
	mov	rsi, QWORD PTR 8[rsp]
	lea	rdi, 4[r12]
	mov	r13d, eax
	call	list_add_tail@PLT
	mov	rsi, rbp
	mov	rdi, r15
	call	spin_unlock_irqrestore@PLT
	test	r13d, r13d
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	r13, 4[r14]
	mov	rsi, rbp
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	ecx, DWORD PTR [rbx]
	lea	rdi, 4[rbx]
	mov	edx, DWORD PTR [r12]
	mov	DWORD PTR [rax], edx
	mov	eax, 1
	sal	eax, cl
	or	DWORD PTR [r14], eax
	call	vb2_is_streaming@PLT
	test	rax, rax
	jne	.L12
.L4:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	ebp, ebp
	mov	rdi, r13
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	rsi, rbp
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, r14
	call	vsp1_pipeline_ready@PLT
	test	rax, rax
	je	.L4
	mov	rdi, r14
	call	vsp1_video_pipeline_run@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	vsp1_video_buffer_queue, .-vsp1_video_buffer_queue
	.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_vsp1_video.c_vsp1_video_buffer_queue.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vsp1_video_buffer_queue, %function
vsp1_video_buffer_queue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	bl	to_vb2_v4l2_buffer
	mov	r5, r0
	ldr	r0, [r4]
	bl	vb2_get_drv_priv
	ldr	r3, [r0, #8]
	mov	r4, r0
	mov	r0, r5
	ldr	r10, [r3, #4]
	mov	r8, #0
	bl	to_vsp1_vb2_buffer
	add	r7, r4, #12
	mov	r1, r8
	mov	r5, r0
	add	r9, r4, #16
	mov	r0, r7
	bl	spin_lock_irqsave
	mov	r0, r9
	bl	list_empty
	mov	r6, r0
	mov	r1, r9
	add	r0, r5, #4
	bl	list_add_tail
	mov	r1, r8
	mov	r0, r7
	bl	spin_unlock_irqrestore
	cmp	r6, r8
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	add	r6, r10, #4
	mov	r1, r8
	mov	r0, r6
	bl	spin_lock_irqsave
	mov	r0, r4
	mov	r1, #1
	ldr	r2, [r0], #4
	ldr	r3, [r10]
	ldr	lr, [r5]
	ldr	ip, [r4, #8]
	orr	r3, r3, r1, lsl r2
	str	lr, [ip]
	str	r3, [r10]
	bl	vb2_is_streaming
	cmp	r0, r8
	bne	.L11
.L4:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
.L11:
	mov	r0, r10
	bl	vsp1_pipeline_ready
	cmp	r0, r8
	beq	.L4
	mov	r0, r10
	bl	vsp1_video_pipeline_run
	b	.L4
	.size	vsp1_video_buffer_queue, .-vsp1_video_buffer_queue
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
