	.file	"extr_matroskadec.c_get_qt_codec.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_qt_codec, @function
get_qt_codec:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR ff_codec_movaudio_tags[rip]
	mov	rax, QWORD PTR MATROSKA_TRACK_TYPE_VIDEO[rip]
	cmp	QWORD PTR [rdi], rax
	jne	.L3
	mov	r13, QWORD PTR ff_codec_movvideo_tags[rip]
.L3:
	mov	rdi, QWORD PTR 8[rbx]
	call	AV_RL32@PLT
	mov	rdi, r13
	mov	esi, eax
	call	ff_codec_get_id@PLT
	test	eax, eax
	je	.L4
	mov	rdx, QWORD PTR 16[rbx]
	mov	rax, QWORD PTR AV_INPUT_BUFFER_PADDING_SIZE[rip]
	lea	rdi, 24[rbx]
	lea	rsi, 4[rdx+rax]
	call	av_buffer_realloc@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR 24[rbx]
	mov	rdx, QWORD PTR 16[rbx]
	mov	rsi, QWORD PTR [rax]
	mov	QWORD PTR 8[rbx], rsi
	lea	rdi, 4[rsi]
	call	memmove@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, 4[rax]
	mov	QWORD PTR 16[rbx], rsi
	call	AV_WB32@PLT
.L4:
	mov	rdi, QWORD PTR 8[rbx]
	add	rdi, 4
	call	AV_RL32@PLT
	mov	rdi, r13
	mov	DWORD PTR [r12], eax
	mov	esi, eax
	call	ff_codec_get_id@PLT
	mov	DWORD PTR 0[rbp], eax
	xor	eax, eax
.L1:
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	get_qt_codec, .-get_qt_codec
	.comm	ff_codec_movvideo_tags,8,8
	.comm	ff_codec_movaudio_tags,8,8
	.comm	MATROSKA_TRACK_TYPE_VIDEO,8,8
	.comm	AV_INPUT_BUFFER_PADDING_SIZE,8,8
	.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_matroskadec.c_get_qt_codec.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_qt_codec, %function
get_qt_codec:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r3, .L11
	ldr	r0, [r0]
	ldr	r3, [r3]
	mov	r6, r1
	cmp	r0, r3
	ldreq	r3, .L11+4
	ldrne	r3, .L11+8
	ldr	r0, [r4, #4]
	ldr	r7, [r3]
	mov	r5, r2
	bl	AV_RL32
	mov	r1, r0
	mov	r0, r7
	bl	ff_codec_get_id
	cmp	r0, #0
	beq	.L4
	ldr	r2, .L11+12
	ldr	r3, [r4, #8]
	ldr	r1, [r2]
	add	r3, r3, #4
	add	r1, r3, r1
	add	r0, r4, #12
	bl	av_buffer_realloc
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #8]
	ldr	r1, [r3]
	str	r1, [r4, #4]
	add	r0, r1, #4
	bl	memmove
	ldmib	r4, {r0, r1}
	add	r1, r1, #4
	str	r1, [r4, #8]
	bl	AV_WB32
.L4:
	ldr	r0, [r4, #4]
	add	r0, r0, #4
	bl	AV_RL32
	mov	r1, r0
	mov	r0, r7
	str	r1, [r6]
	bl	ff_codec_get_id
	mov	r3, r0
	mov	r0, #0
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	MATROSKA_TRACK_TYPE_VIDEO
	.word	ff_codec_movvideo_tags
	.word	ff_codec_movaudio_tags
	.word	AV_INPUT_BUFFER_PADDING_SIZE
	.size	get_qt_codec, .-get_qt_codec
	.comm	ff_codec_movvideo_tags,4,4
	.comm	ff_codec_movaudio_tags,4,4
	.comm	MATROSKA_TRACK_TYPE_VIDEO,4,4
	.comm	AV_INPUT_BUFFER_PADDING_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
