	.file	"extr_h264_metadata_bsf.c_h264_metadata_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to read extradata.\n"
.LC1:
	.string	"Failed to write extradata.\n"
	.text
	.p2align 4
	.type	h264_metadata_init, @function
h264_metadata_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	esi, DWORD PTR AV_CODEC_ID_H264[rip]
	mov	rdx, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbp, QWORD PTR 16[rdi]
	mov	rdi, rbp
	call	ff_cbs_init@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rdx, QWORD PTR 8[r13]
	xor	r12d, r12d
	mov	edi, DWORD PTR 0[rbp]
	lea	r14, 8[rbp]
	cmp	QWORD PTR [rdx], 0
	jne	.L19
.L3:
	mov	rsi, r14
	call	ff_cbs_fragment_reset@PLT
.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
.L19:
	.cfi_restore_state
	mov	rsi, r14
	call	ff_cbs_read_extradata@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L4
	mov	eax, DWORD PTR 8[rbp]
	xor	ebx, ebx
	test	eax, eax
	jg	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR 0[r13]
	mov	edi, DWORD PTR 0[rbp]
	mov	rdx, r14
	call	ff_cbs_write_extradata@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L20
	mov	edi, DWORD PTR 0[rbp]
	xor	r12d, r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L21:
	mov	esi, DWORD PTR 8[rax]
	mov	rdi, r13
	call	h264_metadata_update_sps@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L17
	.p2align 4,,10
	.p2align 3
.L8:
	add	rbx, 1
	cmp	DWORD PTR 8[rbp], ebx
	jle	.L9
.L5:
	mov	rax, rbx
	mov	rcx, QWORD PTR H264_NAL_SPS[rip]
	sal	rax, 4
	add	rax, QWORD PTR 16[rbp]
	cmp	QWORD PTR [rax], rcx
	jne	.L8
	jmp	.L21
.L20:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC1[rip]
	mov	rdi, r13
	call	av_log@PLT
.L17:
	mov	edi, DWORD PTR 0[rbp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	mov	rdi, r13
	lea	rdx, .LC0[rip]
	call	av_log@PLT
	mov	edi, DWORD PTR 0[rbp]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	h264_metadata_init, .-h264_metadata_init
	.comm	H264_NAL_SPS,8,8
	.comm	AV_LOG_ERROR,4,4
	.comm	AV_CODEC_ID_H264,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_h264_metadata_bsf.c_h264_metadata_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to read extradata.\012\000"
	.align	2
.LC1:
	.ascii	"Failed to write extradata.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	h264_metadata_init, %function
h264_metadata_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L24
	ldr	r6, [r0, #8]
	mov	r2, r0
	mov	r7, r0
	ldr	r1, [r3]
	mov	r0, r6
	bl	ff_cbs_init
	subs	r5, r0, #0
	blt	.L1
	mov	r8, r6
	ldr	r2, [r7, #4]
	ldr	r0, [r8], #4
	ldr	r5, [r2]
	cmp	r5, #0
	bne	.L21
.L3:
	mov	r1, r8
	bl	ff_cbs_fragment_reset
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	mov	r1, r8
	bl	ff_cbs_read_extradata
	subs	r5, r0, #0
	blt	.L4
	ldr	r0, [r6, #4]
	cmp	r0, #0
	movgt	r4, #0
	ldrgt	r9, .L24+4
	bgt	.L5
.L9:
	mov	r2, r8
	ldr	r1, [r7]
	ldr	r0, [r6]
	bl	ff_cbs_write_extradata
	subs	r5, r0, #0
	blt	.L22
	mov	r5, #0
	ldr	r0, [r6]
	b	.L3
.L23:
	mov	r0, r7
	ldr	r1, [r3, #4]
	bl	h264_metadata_update_sps
	subs	r5, r0, #0
	blt	.L19
	ldr	r0, [r6, #4]
.L8:
	add	r4, r4, #1
	cmp	r0, r4
	ble	.L9
.L5:
	ldr	r3, [r6, #8]
	ldr	r2, [r9]
	ldr	r1, [r3, r4, lsl #3]
	add	r3, r3, r4, lsl #3
	cmp	r1, r2
	bne	.L8
	b	.L23
.L22:
	ldr	r3, .L24+8
	mov	r0, r7
	ldr	r1, [r3]
	ldr	r2, .L24+12
	bl	av_log
.L19:
	ldr	r0, [r6]
	b	.L3
.L4:
	ldr	r3, .L24+8
	mov	r0, r7
	ldr	r1, [r3]
	ldr	r2, .L24+16
	bl	av_log
	ldr	r0, [r6]
	b	.L3
.L25:
	.align	2
.L24:
	.word	AV_CODEC_ID_H264
	.word	H264_NAL_SPS
	.word	AV_LOG_ERROR
	.word	.LC1
	.word	.LC0
	.size	h264_metadata_init, .-h264_metadata_init
	.comm	H264_NAL_SPS,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AV_CODEC_ID_H264,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
