	.file	"extr_movenc.c_mov_get_codec_tag.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Using MS style video codec tag, the file may be unplayable!\n"
	.align 8
.LC1:
	.string	"Using MS style audio codec tag, the file may be unplayable!\n"
	.text
	.p2align 4
	.type	mov_get_codec_tag, @function
mov_get_codec_tag:
.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, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rax, QWORD PTR [rsi]
	mov	rbp, rsi
	mov	r13d, DWORD PTR [rax]
	test	r13d, r13d
	je	.L2
	mov	rcx, QWORD PTR FF_COMPLIANCE_NORMAL[rip]
	cmp	QWORD PTR [rdi], rcx
	jl	.L1
	mov	rdi, QWORD PTR 8[rax]
	cmp	rdi, QWORD PTR AV_CODEC_ID_DVVIDEO[rip]
	je	.L8
	cmp	rdi, QWORD PTR AV_CODEC_ID_RAWVIDEO[rip]
	je	.L5
	mov	rsi, QWORD PTR AV_CODEC_ID_H263[rip]
	cmp	rdi, rsi
	je	.L9
	mov	rsi, QWORD PTR AV_CODEC_ID_H264[rip]
	cmp	rdi, rsi
	je	.L9
	mov	rsi, QWORD PTR AV_CODEC_ID_DNXHD[rip]
	cmp	rdi, rsi
	je	.L9
	cmp	rdi, QWORD PTR AV_CODEC_ID_MPEG2VIDEO[rip]
	je	.L7
	call	av_get_bits_per_sample@PLT
	test	rax, rax
	je	.L1
	mov	rax, QWORD PTR 0[rbp]
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rsi, QWORD PTR 8[rax]
	cmp	rsi, QWORD PTR AV_CODEC_ID_DVVIDEO[rip]
	je	.L8
	cmp	rsi, QWORD PTR AV_CODEC_ID_RAWVIDEO[rip]
	je	.L5
.L9:
	cmp	QWORD PTR AV_CODEC_ID_MPEG2VIDEO[rip], rsi
	je	.L7
	cmp	QWORD PTR AV_CODEC_ID_H264[rip], rsi
	je	.L23
	cmp	QWORD PTR AV_CODEC_ID_DNXHD[rip], rsi
	je	.L24
	mov	rax, QWORD PTR 16[rax]
	cmp	rax, QWORD PTR AVMEDIA_TYPE_VIDEO[rip]
	je	.L25
	cmp	rax, QWORD PTR AVMEDIA_TYPE_AUDIO[rip]
	je	.L26
	cmp	rax, QWORD PTR AVMEDIA_TYPE_SUBTITLE[rip]
	je	.L27
.L1:
	mov	eax, r13d
	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
.L8:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	mov_get_dv_codec_tag@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	mov_get_rawvideo_codec_tag@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	mov_get_mpeg2_xdcam_codec_tag@PLT
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	mov_get_h264_codec_tag@PLT
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	mov_get_dnxhd_codec_tag@PLT
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	edi, DWORD PTR ff_codec_movvideo_tags[rip]
	call	ff_codec_get_tag@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR ff_codec_bmp_tags[rip]
	mov	rsi, QWORD PTR 8[rax]
	call	ff_codec_get_tag@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L1
	mov	esi, DWORD PTR AV_LOG_WARNING[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, r12
	call	av_log@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edi, DWORD PTR ff_codec_movsubtitle_tags[rip]
	call	ff_codec_get_tag@PLT
	mov	r13d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edi, DWORD PTR ff_codec_movaudio_tags[rip]
	call	ff_codec_get_tag@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR ff_codec_wav_tags[rip]
	mov	rsi, QWORD PTR 8[rax]
	call	ff_codec_get_tag@PLT
	test	eax, eax
	je	.L1
	movzx	ecx, al
	movzx	edx, ah
	mov	esi, 115
	mov	edi, 109
	call	MKTAG@PLT
	mov	esi, DWORD PTR AV_LOG_WARNING[rip]
	lea	rdx, .LC1[rip]
	mov	rdi, r12
	mov	r13d, eax
	call	av_log@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mov_get_codec_tag, .-mov_get_codec_tag
	.comm	ff_codec_wav_tags,4,4
	.comm	ff_codec_movvideo_tags,4,4
	.comm	ff_codec_movsubtitle_tags,4,4
	.comm	ff_codec_movaudio_tags,4,4
	.comm	ff_codec_bmp_tags,4,4
	.comm	FF_COMPLIANCE_NORMAL,8,8
	.comm	AV_LOG_WARNING,4,4
	.comm	AV_CODEC_ID_RAWVIDEO,8,8
	.comm	AV_CODEC_ID_MPEG2VIDEO,8,8
	.comm	AV_CODEC_ID_H264,8,8
	.comm	AV_CODEC_ID_H263,8,8
	.comm	AV_CODEC_ID_DVVIDEO,8,8
	.comm	AV_CODEC_ID_DNXHD,8,8
	.comm	AVMEDIA_TYPE_VIDEO,8,8
	.comm	AVMEDIA_TYPE_SUBTITLE,8,8
	.comm	AVMEDIA_TYPE_AUDIO,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_movenc.c_mov_get_codec_tag.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Using MS style video codec tag, the file may be unp"
	.ascii	"layable!\012\000"
	.align	2
.LC1:
	.ascii	"Using MS style audio codec tag, the file may be unp"
	.ascii	"layable!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mov_get_codec_tag, %function
mov_get_codec_tag:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r3]
	mov	r4, r1
	cmp	r5, #0
	mov	r6, r0
	bne	.L25
	ldr	r7, .L33
.L2:
	ldr	r2, [r7]
	ldr	r1, [r3, #4]
	cmp	r1, r2
	beq	.L8
	ldr	r2, .L33+4
	ldr	r2, [r2]
	cmp	r1, r2
	beq	.L5
.L9:
	ldr	r2, .L33+8
	ldr	r2, [r2]
	cmp	r2, r1
	beq	.L7
	ldr	r2, .L33+12
	ldr	r2, [r2]
	cmp	r2, r1
	beq	.L28
	ldr	r2, .L33+16
	ldr	r2, [r2]
	cmp	r2, r1
	beq	.L29
	ldr	r2, .L33+20
	ldr	r3, [r3, #8]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L30
	ldr	r2, .L33+24
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L31
	ldr	r2, .L33+28
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L32
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L25:
	ldr	r2, .L33+32
	ldr	r1, [r0]
	ldr	r2, [r2]
	cmp	r1, r2
	blt	.L1
	ldr	r7, .L33
	ldr	r0, [r3, #4]
	ldr	r2, [r7]
	cmp	r0, r2
	beq	.L8
	ldr	r2, .L33+4
	ldr	r2, [r2]
	cmp	r0, r2
	beq	.L5
	ldr	r2, .L33+36
	ldr	r1, [r2]
	cmp	r0, r1
	beq	.L9
	ldr	r2, .L33+12
	ldr	r1, [r2]
	cmp	r0, r1
	beq	.L9
	ldr	r2, .L33+16
	ldr	r1, [r2]
	cmp	r0, r1
	beq	.L9
	ldr	r3, .L33+8
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L7
	bl	av_get_bits_per_sample
	cmp	r0, #0
	beq	.L1
	ldr	r3, [r4]
	b	.L2
.L8:
	mov	r1, r4
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	mov_get_dv_codec_tag
.L5:
	mov	r1, r4
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	mov_get_rawvideo_codec_tag
.L7:
	mov	r1, r4
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	mov_get_mpeg2_xdcam_codec_tag
.L28:
	mov	r1, r4
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	mov_get_h264_codec_tag
.L29:
	mov	r1, r4
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	mov_get_dnxhd_codec_tag
.L30:
	ldr	r3, .L33+40
	ldr	r0, [r3]
	bl	ff_codec_get_tag
	subs	r5, r0, #0
	bne	.L1
	ldr	r2, [r4]
	ldr	r3, .L33+44
	ldr	r1, [r2, #4]
	ldr	r0, [r3]
	bl	ff_codec_get_tag
	subs	r5, r0, #0
	beq	.L16
	ldr	r3, .L33+48
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, .L33+52
	bl	av_log
	b	.L1
.L32:
	ldr	r3, .L33+56
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r0, [r3]
	b	ff_codec_get_tag
.L31:
	ldr	r3, .L33+60
	ldr	r0, [r3]
	bl	ff_codec_get_tag
	subs	r5, r0, #0
	bne	.L1
	ldr	r3, .L33+64
	ldr	r2, [r4]
	ldr	r0, [r3]
	ldr	r1, [r2, #4]
	bl	ff_codec_get_tag
	subs	r3, r0, #0
	beq	.L16
	asr	r2, r3, #8
	mov	r1, #115
	and	r2, r2, #255
	and	r3, r3, #255
	mov	r0, #109
	bl	MKTAG
	ldr	r3, .L33+48
	mov	r5, r0
	ldr	r1, [r3]
	mov	r0, r6
	ldr	r2, .L33+68
	bl	av_log
	b	.L1
.L16:
	mov	r5, #0
	b	.L1
.L34:
	.align	2
.L33:
	.word	AV_CODEC_ID_DVVIDEO
	.word	AV_CODEC_ID_RAWVIDEO
	.word	AV_CODEC_ID_MPEG2VIDEO
	.word	AV_CODEC_ID_H264
	.word	AV_CODEC_ID_DNXHD
	.word	AVMEDIA_TYPE_VIDEO
	.word	AVMEDIA_TYPE_AUDIO
	.word	AVMEDIA_TYPE_SUBTITLE
	.word	FF_COMPLIANCE_NORMAL
	.word	AV_CODEC_ID_H263
	.word	ff_codec_movvideo_tags
	.word	ff_codec_bmp_tags
	.word	AV_LOG_WARNING
	.word	.LC0
	.word	ff_codec_movsubtitle_tags
	.word	ff_codec_movaudio_tags
	.word	ff_codec_wav_tags
	.word	.LC1
	.size	mov_get_codec_tag, .-mov_get_codec_tag
	.comm	ff_codec_wav_tags,4,4
	.comm	ff_codec_movvideo_tags,4,4
	.comm	ff_codec_movsubtitle_tags,4,4
	.comm	ff_codec_movaudio_tags,4,4
	.comm	ff_codec_bmp_tags,4,4
	.comm	FF_COMPLIANCE_NORMAL,4,4
	.comm	AV_LOG_WARNING,4,4
	.comm	AV_CODEC_ID_RAWVIDEO,4,4
	.comm	AV_CODEC_ID_MPEG2VIDEO,4,4
	.comm	AV_CODEC_ID_H264,4,4
	.comm	AV_CODEC_ID_H263,4,4
	.comm	AV_CODEC_ID_DVVIDEO,4,4
	.comm	AV_CODEC_ID_DNXHD,4,4
	.comm	AVMEDIA_TYPE_VIDEO,4,4
	.comm	AVMEDIA_TYPE_SUBTITLE,4,4
	.comm	AVMEDIA_TYPE_AUDIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
