	.file	"extr_mxfdec.c_mxf_add_metadata_stream.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"could not allocate metadata stream\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"file_package_umid"
.LC2:
	.string	"track_name"
.LC3:
	.string	"data_type"
	.text
	.p2align 4
	.type	mxf_add_metadata_stream, @function
mxf_add_metadata_stream:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rsi]
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jle	.L19
.L2:
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, r12
	lea	rsi, [rax+r13*4]
	call	mxf_resolve_sourceclip@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L21
	mov	edi, DWORD PTR [r12]
	xor	esi, esi
	call	avformat_new_stream@PLT
	mov	r13, rax
	test	rax, rax
	je	.L22
	mov	rax, QWORD PTR 8[r13]
	mov	esi, DWORD PTR 4[rbp]
	lea	rdi, 4[rsp]
	mov	r12, rsp
	mov	edx, DWORD PTR AVMEDIA_TYPE_DATA[rip]
	mov	DWORD PTR 4[rax], edx
	mov	edx, DWORD PTR AV_CODEC_ID_NONE[rip]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR 16[rbx]
	mov	edx, 16
	mov	DWORD PTR 4[r13], eax
	call	memcpy@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	edx, 16
	mov	rdi, r12
	call	memcpy@PLT
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	mxf_add_umid_metadata@PLT
	mov	rdx, QWORD PTR 8[rbx]
	test	rdx, rdx
	je	.L6
	cmp	QWORD PTR [rdx], 0
	jne	.L23
.L6:
	mov	rsi, QWORD PTR [rbx]
	mov	edi, DWORD PTR ff_mxf_data_definition_uls[rip]
	add	rsi, 4
	call	mxf_get_codec_ul@PLT
	mov	edi, DWORD PTR [rax]
	call	av_get_media_type_string@PLT
	xor	ecx, ecx
	lea	rsi, .LC3[rip]
	mov	rdi, r13
	mov	rdx, rax
	call	av_dict_set@PLT
.L19:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L24
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L23:
	.cfi_restore_state
	xor	ecx, ecx
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	call	av_dict_set@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rax, QWORD PTR [rbx]
	add	r13, 1
	cmp	DWORD PTR [rax], r13d
	jg	.L2
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edi, DWORD PTR [r12]
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC0[rip]
	call	av_log@PLT
	mov	edi, DWORD PTR ENOMEM[rip]
	call	AVERROR@PLT
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mxf_add_metadata_stream, .-mxf_add_metadata_stream
	.comm	ff_mxf_data_definition_uls,4,4
	.comm	ENOMEM,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AV_CODEC_ID_NONE,4,4
	.comm	AVMEDIA_TYPE_DATA,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_mxfdec.c_mxf_add_metadata_stream.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"could not allocate metadata stream\012\000"
	.align	2
.LC1:
	.ascii	"file_package_umid\000"
	.align	2
.LC2:
	.ascii	"track_name\000"
	.align	2
.LC3:
	.ascii	"data_type\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mxf_add_metadata_stream, %function
mxf_add_metadata_stream:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r1]
	mov	r4, r1
	ldr	r2, [r3]
	ldr	r1, .L26
	cmp	r2, #0
	sub	sp, sp, #20
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	movgt	r5, r0
	movgt	r7, #0
	ble	.L20
.L2:
	ldr	r1, [r3, #8]
	mov	r0, r5
	add	r1, r1, r7, lsl #2
	bl	mxf_resolve_sourceclip
	subs	r6, r0, #0
	beq	.L22
	mov	r1, #0
	ldr	r0, [r5]
	bl	avformat_new_stream
	subs	r7, r0, #0
	beq	.L23
	ldr	r3, .L26+4
	ldr	r2, .L26+8
	ldr	r0, [r3]
	ldr	r1, [r4, #8]
	ldr	r3, [r7, #8]
	ldr	r2, [r2]
	str	r0, [r3, #4]
	str	r2, [r3]
	add	r0, sp, #8
	mov	r2, #16
	str	r1, [r7, #4]
	ldr	r1, [r6, #4]
	bl	memcpy
	mov	r2, #16
	ldr	r1, [r6]
	add	r0, sp, #4
	bl	memcpy
	add	r2, sp, #4
	mov	r0, r7
	ldr	r1, .L26+12
	bl	mxf_add_umid_metadata
	ldr	r2, [r4, #4]
	cmp	r2, #0
	beq	.L6
	ldr	r3, [r2]
	cmp	r3, #0
	bne	.L24
.L6:
	ldr	r3, .L26+16
	ldr	r1, [r4]
	ldr	r0, [r3]
	add	r1, r1, #4
	bl	mxf_get_codec_ul
	ldr	r0, [r0]
	bl	av_get_media_type_string
	mov	r3, #0
	mov	r2, r0
	ldr	r1, .L26+20
	mov	r0, r7
	bl	av_dict_set
.L20:
	mov	r0, #0
.L1:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L24:
	mov	r3, #0
	mov	r0, r7
	ldr	r1, .L26+24
	bl	av_dict_set
	b	.L6
.L22:
	ldr	r3, [r4]
	add	r7, r7, #1
	ldr	r2, [r3]
	cmp	r2, r7
	bgt	.L2
	b	.L20
.L23:
	ldr	r3, .L26+28
	ldr	r0, [r5]
	ldr	r1, [r3]
	ldr	r2, .L26+32
	bl	av_log
	ldr	r3, .L26+36
	ldr	r0, [r3]
	bl	AVERROR
	b	.L1
.L25:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	.LC4
	.word	AVMEDIA_TYPE_DATA
	.word	AV_CODEC_ID_NONE
	.word	.LC1
	.word	ff_mxf_data_definition_uls
	.word	.LC3
	.word	.LC2
	.word	AV_LOG_ERROR
	.word	.LC0
	.word	ENOMEM
	.size	mxf_add_metadata_stream, .-mxf_add_metadata_stream
	.comm	ff_mxf_data_definition_uls,4,4
	.comm	ENOMEM,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AV_CODEC_ID_NONE,4,4
	.comm	AVMEDIA_TYPE_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
