	.file	"extr_coda-common.c_coda_try_fmt_vid_out.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	coda_try_fmt_vid_out, @function
coda_try_fmt_vid_out:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	fh_to_ctx@PLT
	mov	rsi, r12
	mov	rdi, rax
	mov	r13, QWORD PTR [rax]
	mov	rbp, rax
	call	coda_try_pixelformat@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR V4L2_COLORSPACE_DEFAULT[rip]
	cmp	QWORD PTR [r12], rax
	je	.L6
.L3:
	mov	esi, DWORD PTR V4L2_BUF_TYPE_VIDEO_CAPTURE[rip]
	mov	rdi, rbp
	call	get_q_data@PLT
	mov	esi, DWORD PTR 8[r12]
	mov	rdi, r13
	mov	edx, DWORD PTR [rax]
	call	coda_find_codec@PLT
	mov	rdx, r12
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rsi, rax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	coda_try_fmt@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbp
	.cfi_remember_state
	.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
.L6:
	.cfi_restore_state
	mov	rdi, r12
	call	coda_set_default_colorspace@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	coda_try_fmt_vid_out, .-coda_try_fmt_vid_out
	.comm	V4L2_COLORSPACE_DEFAULT,8,8
	.comm	V4L2_BUF_TYPE_VIDEO_CAPTURE,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_coda-common.c_coda_try_fmt_vid_out.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	coda_try_fmt_vid_out, %function
coda_try_fmt_vid_out:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r0, r1
	mov	r4, r2
	bl	fh_to_ctx
	mov	r1, r4
	mov	r5, r0
	ldr	r6, [r0]
	bl	coda_try_pixelformat
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	ldr	r3, .L7
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L6
.L3:
	ldr	r3, .L7+4
	mov	r0, r5
	ldr	r1, [r3]
	bl	get_q_data
	ldr	r1, [r4, #4]
	ldr	r2, [r0]
	mov	r0, r6
	bl	coda_find_codec
	mov	r2, r4
	mov	r1, r0
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	coda_try_fmt
.L6:
	mov	r0, r4
	bl	coda_set_default_colorspace
	b	.L3
.L8:
	.align	2
.L7:
	.word	V4L2_COLORSPACE_DEFAULT
	.word	V4L2_BUF_TYPE_VIDEO_CAPTURE
	.size	coda_try_fmt_vid_out, .-coda_try_fmt_vid_out
	.comm	V4L2_COLORSPACE_DEFAULT,4,4
	.comm	V4L2_BUF_TYPE_VIDEO_CAPTURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
