	.file	"extr_v4l2_buffers.c_ff_v4l2_buffer_buf_to_avframe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s: driver decode error\n"
	.text
	.p2align 4
	.globl	ff_v4l2_buffer_buf_to_avframe
	.type	ff_v4l2_buffer_buf_to_avframe, @function
ff_v4l2_buffer_buf_to_avframe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	call	av_frame_unref@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	v4l2_buffer_buf_to_swframe@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L7
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR 8[rbp]
	test	DWORD PTR V4L2_BUF_FLAG_KEYFRAME[rip], eax
	mov	rdi, rbp
	setne	al
	movzx	eax, al
	mov	DWORD PTR [rbx], eax
	call	v4l2_get_color_primaries@PLT
	mov	rdi, rbp
	mov	DWORD PTR 40[rbx], eax
	call	v4l2_get_color_space@PLT
	mov	rdi, rbp
	mov	DWORD PTR 36[rbx], eax
	call	v4l2_get_color_range@PLT
	mov	rdi, rbp
	mov	DWORD PTR 32[rbx], eax
	call	v4l2_get_color_trc@PLT
	mov	rdi, rbp
	mov	DWORD PTR 28[rbx], eax
	call	v4l2_get_pts@PLT
	mov	DWORD PTR 24[rbx], eax
	mov	eax, DWORD PTR AV_NOPTS_VALUE[rip]
	mov	DWORD PTR 20[rbx], eax
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	DWORD PTR 16[rbx], edx
	mov	edx, DWORD PTR 8[rax]
	mov	DWORD PTR 12[rbx], edx
	mov	edx, DWORD PTR 4[rax]
	mov	DWORD PTR 8[rbx], edx
	mov	edx, DWORD PTR 8[rbp]
	test	DWORD PTR V4L2_BUF_FLAG_ERROR[rip], edx
	je	.L1
	mov	r14d, DWORD PTR [rax]
	mov	r13d, DWORD PTR AV_LOG_ERROR[rip]
	mov	rdi, rbp
	call	logger@PLT
	lea	rdx, .LC0[rip]
	mov	ecx, r14d
	mov	esi, r13d
	mov	edi, eax
	call	av_log@PLT
	mov	eax, DWORD PTR FF_DECODE_ERROR_INVALID_BITSTREAM[rip]
	or	DWORD PTR 4[rbx], eax
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ff_v4l2_buffer_buf_to_avframe, .-ff_v4l2_buffer_buf_to_avframe
	.comm	V4L2_BUF_FLAG_KEYFRAME,4,4
	.comm	V4L2_BUF_FLAG_ERROR,4,4
	.comm	FF_DECODE_ERROR_INVALID_BITSTREAM,4,4
	.comm	AV_NOPTS_VALUE,4,4
	.comm	AV_LOG_ERROR,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_v4l2_buffers.c_ff_v4l2_buffer_buf_to_avframe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: driver decode error\012\000"
	.text
	.align	2
	.global	ff_v4l2_buffer_buf_to_avframe
	.syntax unified
	.arm
	.fpu softvfp
	.type	ff_v4l2_buffer_buf_to_avframe, %function
ff_v4l2_buffer_buf_to_avframe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r4, r0
	bl	av_frame_unref
	mov	r1, r5
	mov	r0, r4
	bl	v4l2_buffer_buf_to_swframe
	subs	r6, r0, #0
	beq	.L8
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, .L9
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	mov	r0, r5
	tst	r2, r3
	movne	r3, #1
	moveq	r3, #0
	str	r3, [r4]
	bl	v4l2_get_color_primaries
	mov	r3, r0
	mov	r0, r5
	str	r3, [r4, #40]
	bl	v4l2_get_color_space
	mov	r3, r0
	mov	r0, r5
	str	r3, [r4, #36]
	bl	v4l2_get_color_range
	mov	r3, r0
	mov	r0, r5
	str	r3, [r4, #32]
	bl	v4l2_get_color_trc
	mov	r3, r0
	mov	r0, r5
	str	r3, [r4, #28]
	bl	v4l2_get_pts
	ldr	r3, .L9+4
	ldr	r1, .L9+8
	ldr	r2, [r3]
	ldr	ip, [r1]
	ldr	r3, [r5]
	ldr	r1, [r5, #4]
	str	r0, [r4, #24]
	tst	r1, r2
	ldr	r1, [r3, #12]
	ldr	r2, [r3, #8]
	ldr	r3, [r3, #4]
	str	ip, [r4, #20]
	str	r1, [r4, #16]
	str	r2, [r4, #12]
	str	r3, [r4, #8]
	beq	.L1
	mov	r0, r5
	bl	logger
	ldr	r3, [r5]
	ldr	r2, .L9+12
	ldr	r3, [r3]
	ldr	r1, [r2]
	ldr	r2, .L9+16
	bl	av_log
	ldr	r2, .L9+20
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	mov	r0, r6
	orr	r3, r3, r2
	str	r3, [r4, #4]
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	V4L2_BUF_FLAG_KEYFRAME
	.word	V4L2_BUF_FLAG_ERROR
	.word	AV_NOPTS_VALUE
	.word	AV_LOG_ERROR
	.word	.LC0
	.word	FF_DECODE_ERROR_INVALID_BITSTREAM
	.size	ff_v4l2_buffer_buf_to_avframe, .-ff_v4l2_buffer_buf_to_avframe
	.comm	V4L2_BUF_FLAG_KEYFRAME,4,4
	.comm	V4L2_BUF_FLAG_ERROR,4,4
	.comm	FF_DECODE_ERROR_INVALID_BITSTREAM,4,4
	.comm	AV_NOPTS_VALUE,4,4
	.comm	AV_LOG_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
