	.file	"extr_mov.c_mov_read_hdlr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ctype=%s\n"
.LC1:
	.string	"stype=%s\n"
.LC2:
	.string	"handler_name"
	.text
	.p2align 4
	.type	mov_read_hdlr, @function
mov_read_hdlr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	rdi, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	avio_r8@PLT
	mov	rdi, rbp
	call	avio_rb24@PLT
	mov	rdi, rbp
	call	avio_rl32@PLT
	mov	rdi, rbp
	mov	r14, rax
	call	avio_rl32@PLT
	mov	rdi, r14
	mov	r12, rax
	call	av_fourcc2str@PLT
	mov	esi, DWORD PTR AV_LOG_TRACE[rip]
	mov	rdi, QWORD PTR 16[rbx]
	lea	rdx, .LC0[rip]
	mov	ecx, eax
	call	av_log@PLT
	mov	rdi, r12
	call	av_fourcc2str@PLT
	mov	rdi, QWORD PTR 16[rbx]
	mov	esi, DWORD PTR AV_LOG_TRACE[rip]
	lea	rdx, .LC1[rip]
	mov	ecx, eax
	call	av_log@PLT
	cmp	QWORD PTR [rbx], 0
	js	.L24
	mov	rax, QWORD PTR 16[rbx]
	mov	ecx, 101
	mov	esi, 105
	mov	edi, 118
	movsx	rdx, DWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	r14, QWORD PTR -8[rax+rdx*8]
	mov	edx, 100
	call	MKTAG@PLT
	cmp	rax, r12
	jne	.L5
	mov	rax, QWORD PTR 8[r14]
	mov	edx, DWORD PTR AVMEDIA_TYPE_VIDEO[rip]
	mov	DWORD PTR [rax], edx
.L6:
	mov	rdi, rbp
	lea	r15d, -24[r13]
	call	avio_rb32@PLT
	mov	rdi, rbp
	call	avio_rb32@PLT
	mov	rdi, rbp
	call	avio_rb32@PLT
	test	r15d, r15d
	jg	.L25
.L22:
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	ecx, 110
	mov	edx, 117
	mov	esi, 111
	mov	edi, 115
	call	MKTAG@PLT
	cmp	rax, r12
	jne	.L7
	mov	rax, QWORD PTR 8[r14]
	mov	edx, DWORD PTR AVMEDIA_TYPE_AUDIO[rip]
	mov	DWORD PTR [rax], edx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rax, QWORD PTR SIZE_MAX[rip]
	mov	edi, DWORD PTR INT_MAX[rip]
	lea	rsi, -1[rax]
	call	FFMIN@PLT
	mov	r12d, DWORD PTR AVERROR_INVALIDDATA[rip]
	cmp	eax, r15d
	jl	.L1
	lea	edi, -23[r13]
	call	av_malloc@PLT
	mov	QWORD PTR [rsp], rax
	mov	rsi, rax
	test	rax, rax
	je	.L27
	mov	edx, r15d
	mov	rdi, rbp
	call	ffio_read_size@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L28
	mov	rax, QWORD PTR [rsp]
	movsx	r15, r15d
	mov	BYTE PTR [rax+r15], 0
	mov	rdx, QWORD PTR [rsp]
	movsx	eax, BYTE PTR [rdx]
	test	al, al
	je	.L15
	mov	ecx, DWORD PTR 12[rbx]
	test	ecx, ecx
	je	.L29
.L16:
	mov	ecx, DWORD PTR AV_DICT_DONT_OVERWRITE[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, r14
	call	av_dict_set@PLT
.L15:
	mov	rdi, rsp
	call	av_freep@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L24:
	mov	ecx, 97
	mov	edx, 116
	mov	esi, 100
	mov	edi, 109
	call	MKTAG@PLT
	cmp	rax, r12
	jne	.L22
	mov	DWORD PTR 8[rbx], 1
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ecx, 32
	mov	edx, 97
	mov	esi, 49
	mov	edi, 109
	call	MKTAG@PLT
	cmp	rax, r12
	jne	.L8
	mov	rax, QWORD PTR 8[r14]
	mov	edx, DWORD PTR AV_CODEC_ID_MP2[rip]
	mov	DWORD PTR 4[rax], edx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	mov	ecx, 112
	mov	edx, 98
	mov	esi, 117
	mov	edi, 115
	call	MKTAG@PLT
	cmp	rax, r12
	jne	.L9
.L10:
	mov	rax, QWORD PTR 8[r14]
	mov	edx, DWORD PTR AVMEDIA_TYPE_SUBTITLE[rip]
	mov	DWORD PTR [rax], edx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	mov	ecx, 112
	mov	edx, 99
	mov	esi, 108
	mov	edi, 99
	call	MKTAG@PLT
	cmp	rax, r12
	jne	.L6
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L29:
	sub	r13d, 25
	cmp	eax, r13d
	sete	al
	movzx	eax, al
	add	rdx, rax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edi, DWORD PTR ENOMEM[rip]
	call	AVERROR@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, rsp
	call	av_freep@PLT
	jmp	.L1
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mov_read_hdlr, .-mov_read_hdlr
	.comm	SIZE_MAX,8,8
	.comm	INT_MAX,4,4
	.comm	ENOMEM,4,4
	.comm	AV_LOG_TRACE,4,4
	.comm	AV_DICT_DONT_OVERWRITE,4,4
	.comm	AV_CODEC_ID_MP2,4,4
	.comm	AVMEDIA_TYPE_VIDEO,4,4
	.comm	AVMEDIA_TYPE_SUBTITLE,4,4
	.comm	AVMEDIA_TYPE_AUDIO,4,4
	.comm	AVERROR_INVALIDDATA,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_mov.c_mov_read_hdlr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ctype=%s\012\000"
	.align	2
.LC1:
	.ascii	"stype=%s\012\000"
	.align	2
.LC2:
	.ascii	"handler_name\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mov_read_hdlr, %function
mov_read_hdlr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	ldr	r3, .L30
	sub	sp, sp, #12
	mov	r5, r0
	mov	r0, r1
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	avio_r8
	mov	r0, r4
	bl	avio_rb24
	mov	r0, r4
	bl	avio_rl32
	mov	r7, r0
	mov	r0, r4
	bl	avio_rl32
	ldr	r9, .L30+4
	mov	r6, r0
	mov	r0, r7
	ldr	fp, [r9]
	ldr	r10, [r5, #12]
	bl	av_fourcc2str
	mov	r1, fp
	mov	r3, r0
	ldr	r2, .L30+8
	mov	r0, r10
	bl	av_log
	mov	r0, r6
	ldr	r9, [r9]
	ldr	r7, [r5, #12]
	bl	av_fourcc2str
	mov	r1, r9
	mov	r3, r0
	ldr	r2, .L30+12
	mov	r0, r7
	bl	av_log
	ldr	r3, [r5]
	cmp	r3, #0
	blt	.L24
	ldr	r2, [r5, #12]
	mov	r3, #101
	ldm	r2, {ip, lr}
	mov	r1, #105
	sub	ip, ip, #-1073741823
	mov	r2, #100
	mov	r0, #118
	ldr	r7, [lr, ip, lsl #2]
	bl	MKTAG
	cmp	r0, r6
	bne	.L5
	ldr	r2, .L30+16
	ldr	r3, [r7, #4]
	ldr	r2, [r2]
	str	r2, [r3]
.L6:
	mov	r0, r4
	bl	avio_rb32
	mov	r0, r4
	bl	avio_rb32
	sub	r6, r8, #24
	mov	r0, r4
	bl	avio_rb32
	cmp	r6, #0
	bgt	.L25
.L22:
	mov	r4, #0
.L1:
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	mov	r3, #110
	mov	r2, #117
	mov	r1, #111
	mov	r0, #115
	bl	MKTAG
	cmp	r0, r6
	bne	.L7
	ldr	r2, .L30+20
	ldr	r3, [r7, #4]
	ldr	r2, [r2]
	str	r2, [r3]
	b	.L6
.L25:
	ldr	r2, .L30+24
	ldr	r3, .L30+28
	ldr	r1, [r2]
	ldr	r0, [r3]
	sub	r1, r1, #1
	bl	FFMIN
	cmp	r0, r6
	bge	.L12
	ldr	r3, .L30+32
	ldr	r4, [r3]
	b	.L1
.L24:
	mov	r3, #97
	mov	r2, #116
	mov	r1, #100
	mov	r0, #109
	bl	MKTAG
	cmp	r0, r6
	bne	.L22
	mov	r3, #1
	mov	r4, #0
	str	r3, [r5, #4]
	b	.L1
.L7:
	mov	r3, #32
	mov	r2, #97
	mov	r1, #49
	mov	r0, #109
	bl	MKTAG
	cmp	r0, r6
	bne	.L8
	ldr	r2, .L30+36
	ldr	r3, [r7, #4]
	ldr	r2, [r2]
	str	r2, [r3, #4]
	b	.L6
.L12:
	sub	r0, r8, #23
	bl	av_malloc
	cmp	r0, #0
	mov	r1, r0
	str	r0, [sp]
	beq	.L27
	mov	r0, r4
	mov	r2, r6
	bl	ffio_read_size
	subs	r4, r0, #0
	blt	.L28
	mov	r2, #0
	ldr	r3, [sp]
	strb	r2, [r3, r6]
	ldr	r2, [sp]
	ldrb	r3, [r2]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L15
	ldr	r1, [r5, #8]
	cmp	r1, #0
	beq	.L29
.L16:
	ldr	r3, .L30+40
	mov	r0, r7
	ldr	r3, [r3]
	ldr	r1, .L30+44
	bl	av_dict_set
.L15:
	mov	r0, sp
	bl	av_freep
	b	.L22
.L8:
	mov	r3, #112
	mov	r2, #98
	mov	r1, #117
	mov	r0, #115
	bl	MKTAG
	cmp	r0, r6
	bne	.L9
.L10:
	ldr	r2, .L30+48
	ldr	r3, [r7, #4]
	ldr	r2, [r2]
	str	r2, [r3]
	b	.L6
.L9:
	mov	r2, #99
	mov	r3, #112
	mov	r0, r2
	mov	r1, #108
	bl	MKTAG
	cmp	r0, r6
	bne	.L6
	b	.L10
.L29:
	sub	r8, r8, #25
	cmp	r3, r8
	addeq	r2, r2, #1
	b	.L16
.L27:
	ldr	r3, .L30+52
	ldr	r0, [r3]
	bl	AVERROR
	mov	r4, r0
	b	.L1
.L28:
	mov	r0, sp
	bl	av_freep
	b	.L1
.L26:
	bl	__stack_chk_fail
.L31:
	.align	2
.L30:
	.word	.LC3
	.word	AV_LOG_TRACE
	.word	.LC0
	.word	.LC1
	.word	AVMEDIA_TYPE_VIDEO
	.word	AVMEDIA_TYPE_AUDIO
	.word	SIZE_MAX
	.word	INT_MAX
	.word	AVERROR_INVALIDDATA
	.word	AV_CODEC_ID_MP2
	.word	AV_DICT_DONT_OVERWRITE
	.word	.LC2
	.word	AVMEDIA_TYPE_SUBTITLE
	.word	ENOMEM
	.size	mov_read_hdlr, .-mov_read_hdlr
	.comm	SIZE_MAX,4,4
	.comm	INT_MAX,4,4
	.comm	ENOMEM,4,4
	.comm	AV_LOG_TRACE,4,4
	.comm	AV_DICT_DONT_OVERWRITE,4,4
	.comm	AV_CODEC_ID_MP2,4,4
	.comm	AVMEDIA_TYPE_VIDEO,4,4
	.comm	AVMEDIA_TYPE_SUBTITLE,4,4
	.comm	AVMEDIA_TYPE_AUDIO,4,4
	.comm	AVERROR_INVALIDDATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
