	.file	"extr_allegro-core.c_allegro_queue_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"REQBUFS"
.LC1:
	.string	"CREATE_BUFS"
.LC2:
	.string	"output"
.LC3:
	.string	"capture"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"%s: queue setup[%s]: nplanes = %d\n"
	.text
	.p2align 4
	.type	allegro_queue_setup, @function
allegro_queue_setup:
.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
	lea	r14, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	vb2_get_drv_priv@PLT
	mov	r15d, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR [rbx]
	lea	r9, .LC1[rip]
	mov	rdx, QWORD PTR 8[rax]
	mov	r12, rax
	test	r15d, r15d
	mov	QWORD PTR 8[rsp], rdx
	cmovne	r14, r9
	call	V4L2_TYPE_IS_OUTPUT@PLT
	mov	esi, DWORD PTR debug[rip]
	mov	edi, 2
	lea	r8, .LC2[rip]
	test	rax, rax
	lea	rax, .LC3[rip]
	lea	rcx, .LC4[rip]
	mov	r9, r14
	cmove	r8, rax
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	push	r15
	.cfi_def_cfa_offset 96
	mov	rdx, QWORD PTR 24[rsp]
	call	v4l2_dbg@PLT
	mov	ecx, DWORD PTR 0[rbp]
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	test	ecx, ecx
	je	.L4
	mov	edi, DWORD PTR [rbx]
	call	V4L2_TYPE_IS_OUTPUT@PLT
	test	rax, rax
	je	.L5
	mov	esi, DWORD PTR [r12]
	xor	eax, eax
	cmp	DWORD PTR 0[r13], esi
	jnb	.L1
.L7:
	mov	eax, DWORD PTR EINVAL[rip]
	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
	neg	eax
	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
.L4:
	.cfi_restore_state
	mov	DWORD PTR 0[rbp], 1
	mov	edi, DWORD PTR [rbx]
	call	V4L2_TYPE_IS_OUTPUT@PLT
	test	rax, rax
	je	.L8
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 0[r13], eax
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR 4[r12]
	mov	DWORD PTR 0[r13], eax
.L13:
	xor	eax, eax
.L1:
	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
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR 4[r12]
	cmp	DWORD PTR 0[r13], eax
	jnb	.L13
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	allegro_queue_setup, .-allegro_queue_setup
	.comm	debug,4,4
	.comm	EINVAL,4,4
	.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_allegro-core.c_allegro_queue_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"output\000"
	.align	2
.LC1:
	.ascii	"capture\000"
	.align	2
.LC2:
	.ascii	"REQBUFS\000"
	.align	2
.LC3:
	.ascii	"CREATE_BUFS\000"
	.align	2
.LC4:
	.ascii	"%s: queue setup[%s]: nplanes = %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	allegro_queue_setup, %function
allegro_queue_setup:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #20
	mov	r4, r2
	mov	r7, r3
	mov	r6, r0
	bl	vb2_get_drv_priv
	mov	r5, r0
	ldr	r3, .L15
	ldr	r0, [r6]
	ldr	r8, [r3]
	ldr	r9, [r5, #8]
	bl	V4L2_TYPE_IS_OUTPUT
	ldr	ip, [r4]
	ldr	r3, .L15+4
	ldr	r2, .L15+8
	cmp	r0, #0
	ldr	r1, .L15+12
	movne	r0, r3
	moveq	r0, r2
	cmp	ip, #0
	ldr	r3, .L15+16
	movne	r3, r1
	mov	r2, r9
	stm	sp, {r0, r3, ip}
	mov	r1, r8
	mov	r0, #2
	ldr	r3, .L15+20
	bl	v4l2_dbg
	ldr	r8, [r4]
	cmp	r8, #0
	beq	.L4
	ldr	r0, [r6]
	bl	V4L2_TYPE_IS_OUTPUT
	cmp	r0, #0
	ldr	r2, [r7]
	beq	.L5
	ldr	r3, [r5]
	cmp	r2, r3
	movcs	r0, #0
	bcs	.L1
.L7:
	ldr	r3, .L15+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L4:
	mov	r3, #1
	str	r3, [r4]
	ldr	r0, [r6]
	bl	V4L2_TYPE_IS_OUTPUT
	cmp	r0, #0
	movne	r0, r8
	ldrne	r3, [r5]
	ldreq	r3, [r5, #4]
	str	r3, [r7]
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	ldr	r3, [r5, #4]
	cmp	r2, r3
	bcc	.L7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L16:
	.align	2
.L15:
	.word	debug
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	.LC2
	.word	.LC4
	.word	EINVAL
	.size	allegro_queue_setup, .-allegro_queue_setup
	.comm	debug,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
