	.file	"462679.c"
	.intel_syntax noprefix
	.text
	.globl	AVI_errno
	.bss
	.align 8
	.type	AVI_errno, @object
	.size	AVI_errno, 8
AVI_errno:
	.zero	8
	.local	id_str
	.comm	id_str,64,32
	.text
	.type	avi_read, @function
avi_read:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -8[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	jmp	.L2
.L5:
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -8[rbp]
	add	QWORD PTR -16[rbp], rax
.L2:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jb	.L5
	mov	rax, QWORD PTR -16[rbp]
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	avi_read, .-avi_read
	.type	avi_write, @function
avi_write:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -8[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	add	QWORD PTR -16[rbp], rax
.L7:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jb	.L8
	mov	rax, QWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	avi_write, .-avi_write
	.type	long2str, @function
long2str:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -12[rbp]
	sar	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -12[rbp]
	sar	eax, 16
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 2
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -12[rbp]
	shr	eax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 3
	mov	BYTE PTR [rax], dl
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	long2str, .-long2str
	.type	str2ulong, @function
str2ulong:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 24
	or	eax, edx
	cdqe
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	str2ulong, .-str2ulong
	.type	str2ushort, @function
str2ushort:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	eax, edx
	cdqe
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	str2ushort, .-str2ushort
	.type	avi_sampsize, @function
avi_sampsize:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	add	rax, 7
	lea	rdx, 7[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 3
	mov	esi, eax
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 104
	mov	rax, QWORD PTR [rax]
	imul	eax, esi
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 3
	jg	.L17
	mov	DWORD PTR -4[rbp], 4
.L17:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	avi_sampsize, .-avi_sampsize
	.type	avi_add_chunk, @function
avi_add_chunk:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	DWORD PTR -60[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
	lea	rax, -16[rbp]
	add	rax, 4
	mov	edx, DWORD PTR -60[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	long2str
	mov	eax, DWORD PTR -60[rbp]
	add	eax, 1
	and	eax, -2
	mov	DWORD PTR -60[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	lea	rax, -16[rbp]
	mov	edx, 8
	mov	rsi, rax
	mov	edi, ecx
	call	avi_write
	cmp	rax, 8
	jne	.L20
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	mov	edi, ecx
	call	avi_write
	mov	edx, DWORD PTR -60[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L21
.L20:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 992[rax]
	mov	rcx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR AVI_errno[rip], 4
	mov	DWORD PTR -20[rbp], -1
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L23
.L21:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 992[rax]
	mov	eax, DWORD PTR -60[rbp]
	add	eax, 8
	cdqe
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 992[rax], rdx
	mov	DWORD PTR -20[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
.L23:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	avi_add_chunk, .-avi_add_chunk
	.type	avi_add_index_entry, @function
avi_add_index_entry:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -56[rbp], r8
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 1000[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1008[rax]
	cmp	rdx, rax
	jl	.L26
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1008[rax]
	add	rax, 4096
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1032[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L27
	mov	QWORD PTR AVI_errno[rip], 8
	mov	DWORD PTR -12[rbp], -1
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L28
.L27:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1008[rax]
	lea	rdx, 4096[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 1008[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 1032[rax], rdx
.L26:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1000[rax]
	sal	rax, 4
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1000[rax]
	sal	rax, 4
	add	rax, rcx
	add	rax, 4
	mov	esi, edx
	mov	rdi, rax
	call	long2str
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1000[rax]
	sal	rax, 4
	add	rax, rcx
	add	rax, 8
	mov	esi, edx
	mov	rdi, rax
	call	long2str
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1000[rax]
	sal	rax, 4
	add	rax, rcx
	add	rax, 12
	mov	esi, edx
	mov	rdi, rax
	call	long2str
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1000[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 1000[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	cmp	QWORD PTR -56[rbp], rax
	jbe	.L29
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR 88[rax], rdx
.L29:
	mov	DWORD PTR -12[rbp], 0
	mov	eax, DWORD PTR -12[rbp]
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	avi_add_index_entry, .-avi_add_index_entry
	.globl	AVI_open_output_file
	.type	AVI_open_output_file, @function
AVI_open_output_file:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2112
	mov	QWORD PTR -2104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2084[rbp], 0
	mov	edi, 1088
	call	malloc@PLT
	mov	QWORD PTR -2080[rbp], rax
	cmp	QWORD PTR -2080[rbp], 0
	jne	.L31
	mov	QWORD PTR AVI_errno[rip], 8
	mov	QWORD PTR -2072[rbp], 0
	mov	rax, QWORD PTR -2072[rbp]
	jmp	.L37
.L31:
	mov	rax, QWORD PTR -2080[rbp]
	mov	edx, 1088
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -2084[rbp]
	not	eax
	and	eax, 420
	mov	edx, eax
	mov	rax, QWORD PTR -2104[rbp]
	mov	esi, 66
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	movsx	rdx, eax
	mov	rax, QWORD PTR -2080[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -2080[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jns	.L33
	mov	QWORD PTR AVI_errno[rip], 2
	mov	rax, QWORD PTR -2080[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -2072[rbp], 0
	mov	rax, QWORD PTR -2072[rbp]
	jmp	.L37
.L33:
	mov	DWORD PTR -2088[rbp], 0
	jmp	.L34
.L35:
	mov	eax, DWORD PTR -2088[rbp]
	cdqe
	mov	BYTE PTR -2064[rbp+rax], 0
	add	DWORD PTR -2088[rbp], 1
.L34:
	cmp	DWORD PTR -2088[rbp], 2047
	jle	.L35
	mov	rax, QWORD PTR -2080[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	lea	rax, -2064[rbp]
	mov	edx, 2048
	mov	rsi, rax
	mov	edi, ecx
	call	avi_write
	mov	DWORD PTR -2088[rbp], eax
	cmp	DWORD PTR -2088[rbp], 2048
	je	.L36
	mov	rax, QWORD PTR -2080[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	QWORD PTR AVI_errno[rip], 4
	mov	rax, QWORD PTR -2080[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -2072[rbp], 0
	mov	rax, QWORD PTR -2072[rbp]
	jmp	.L37
.L36:
	mov	rax, QWORD PTR -2080[rbp]
	mov	QWORD PTR 992[rax], 2048
	mov	rax, QWORD PTR -2080[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -2080[rbp]
	mov	DWORD PTR 1080[rax], 0
	mov	rax, QWORD PTR -2080[rbp]
	mov	DWORD PTR 1084[rax], 0
	mov	rax, QWORD PTR -2080[rbp]
.L37:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	AVI_open_output_file, .-AVI_open_output_file
	.section	.rodata
.LC0:
	.string	"RGB"
	.text
	.globl	AVI_set_video
	.type	AVI_set_video, @function
AVI_set_video:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	movsd	QWORD PTR -24[rbp], xmm0
	mov	QWORD PTR -32[rbp], rcx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rax, 1
	je	.L44
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR 32[rax], xmm0
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 3
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L42
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 40
	mov	edx, 4
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	jmp	.L43
.L42:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 40[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
.L43:
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 44[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	avi_update_header
	jmp	.L39
.L44:
	nop
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	AVI_set_video, .-AVI_set_video
	.section	.rodata
	.align 8
.LC1:
	.string	"error - only %d audio tracks supported\n"
	.text
	.globl	AVI_set_audio
	.type	AVI_set_audio, @function
AVI_set_audio:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -16[rbp], ecx
	mov	DWORD PTR -28[rbp], r8d
	mov	QWORD PTR -40[rbp], r9
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rax, 1
	je	.L49
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 1080[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 1084[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 1080[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 1080[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 1080[rax]
	cmp	eax, 8
	jle	.L48
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, 8
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L48:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	rsi, QWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 4
	add	rax, rsi
	add	rax, 104
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -8[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	mov	rsi, QWORD PTR -8[rbp]
	cdqe
	lea	rcx, 1[rax]
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 4
	add	rax, rsi
	add	rax, 8
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	mov	rsi, QWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 4
	add	rax, rsi
	add	rax, 96
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	lea	rdx, 128[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	avi_update_header
	jmp	.L45
.L49:
	nop
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	AVI_set_audio, .-AVI_set_audio
	.section	.rodata
.LC5:
	.string	"RIFF"
.LC6:
	.string	"AVI "
.LC7:
	.string	"LIST"
.LC8:
	.string	"hdrl"
.LC9:
	.string	"avih"
.LC10:
	.string	"strl"
.LC11:
	.string	"strh"
.LC12:
	.string	"vids"
.LC13:
	.string	"strf"
.LC14:
	.string	"auds"
	.align 8
.LC15:
	.string	"AVI_close_output_file: # of header bytes too small\n"
.LC16:
	.string	"JUNK"
.LC17:
	.string	"0.00"
.LC18:
	.string	"my"
.LC19:
	.string	"%s-%s"
.LC20:
	.string	"movi"
	.text
	.globl	avi_update_header
	.type	avi_update_header, @function
avi_update_header:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 2152
	.cfi_offset 3, -24
	mov	QWORD PTR -2152[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2116[rbp], -16781309
	mov	DWORD PTR -2112[rbp], 1
	mov	rax, QWORD PTR -2152[rbp]
	movsd	xmm1, QWORD PTR 32[rax]
	movsd	xmm0, QWORD PTR .LC2[rip]
	comisd	xmm0, xmm1
	jbe	.L151
	mov	DWORD PTR -2128[rbp], 0
	mov	DWORD PTR -2132[rbp], 0
	jmp	.L53
.L151:
	mov	rax, QWORD PTR -2152[rbp]
	movsd	xmm1, QWORD PTR 32[rax]
	movsd	xmm0, QWORD PTR .LC3[rip]
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC4[rip]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -2128[rbp], eax
	mov	rax, QWORD PTR -2152[rbp]
	movsd	xmm2, QWORD PTR 32[rax]
	movsd	xmm0, QWORD PTR .LC3[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC4[rip]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -2132[rbp], eax
.L53:
	mov	QWORD PTR -2088[rbp], 0
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	memcpy@PLT
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L54
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -2116[rbp]
	mov	esi, eax
	mov	rdi, rdx
	call	long2str
.L54:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L55
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L55:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L56
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L56:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L57
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L57:
	add	QWORD PTR -2088[rbp], 4
	mov	rax, QWORD PTR -2088[rbp]
	mov	DWORD PTR -2108[rbp], eax
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L58
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L58:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L59
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L59:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L60
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 56
	mov	rdi, rax
	call	long2str
.L60:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L61
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -2132[rbp]
	mov	esi, eax
	mov	rdi, rdx
	call	long2str
.L61:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L62
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L62:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L63
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L63:
	add	QWORD PTR -2088[rbp], 4
	mov	DWORD PTR -2124[rbp], 256
	cmp	DWORD PTR -2112[rbp], 0
	je	.L64
	or	DWORD PTR -2124[rbp], 16
.L64:
	cmp	DWORD PTR -2112[rbp], 0
	je	.L65
	mov	rax, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR 1064[rax]
	test	eax, eax
	je	.L65
	or	DWORD PTR -2124[rbp], 32
.L65:
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L66
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -2124[rbp]
	mov	esi, eax
	mov	rdi, rdx
	call	long2str
.L66:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L67
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L67:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L68
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L68:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L69
	mov	rax, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR 1080[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2080[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L69:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L70
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L70:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L71
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2080[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L71:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L72
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2080[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L72:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L73
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L73:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L74
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L74:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L75
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L75:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L76
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L76:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L77
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L77:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L78
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L78:
	add	QWORD PTR -2088[rbp], 4
	mov	rax, QWORD PTR -2088[rbp]
	mov	DWORD PTR -2104[rbp], eax
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L79
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L79:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L80
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L80:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L81
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 56
	mov	rdi, rax
	call	long2str
.L81:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L82
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L82:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L83
	mov	rax, QWORD PTR -2152[rbp]
	add	rax, 40
	mov	rdx, QWORD PTR -2088[rbp]
	lea	rcx, -2080[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
.L83:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L84
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L84:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L85
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L85:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L86
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L86:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L87
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 1000000
	mov	rdi, rax
	call	long2str
.L87:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L88
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -2128[rbp]
	mov	esi, eax
	mov	rdi, rdx
	call	long2str
.L88:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L89
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L89:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L90
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L90:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L91
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L91:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L92
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, -1
	mov	rdi, rax
	call	long2str
.L92:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L93
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L93:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L94
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L94:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L95
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L95:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L96
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L96:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L97
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 40
	mov	rdi, rax
	call	long2str
.L97:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L98
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 40
	mov	rdi, rax
	call	long2str
.L98:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L99
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2080[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L99:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L100
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2080[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L100:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2046
	jg	.L101
	lea	rdx, -2080[rbp]
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 1
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, 1
	mov	BYTE PTR -2080[rbp+rax], 0
.L101:
	add	QWORD PTR -2088[rbp], 2
	cmp	QWORD PTR -2088[rbp], 2046
	jg	.L102
	lea	rdx, -2080[rbp]
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 24
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, 1
	mov	BYTE PTR -2080[rbp+rax], 0
.L102:
	add	QWORD PTR -2088[rbp], 2
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L103
	mov	rax, QWORD PTR -2152[rbp]
	add	rax, 40
	mov	rdx, QWORD PTR -2088[rbp]
	lea	rcx, -2080[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
.L103:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L104
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR 24[rax]
	imul	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2080[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L104:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L105
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L105:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L106
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L106:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L107
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L107:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L108
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L108:
	add	QWORD PTR -2088[rbp], 4
	mov	rax, QWORD PTR -2088[rbp]
	mov	edx, DWORD PTR -2104[rbp]
	sub	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -2104[rbp]
	cdqe
	lea	rcx, -4[rax]
	lea	rax, -2080[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
	mov	DWORD PTR -2120[rbp], 0
	jmp	.L109
.L137:
	mov	edx, DWORD PTR -2120[rbp]
	mov	rax, QWORD PTR -2152[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	avi_sampsize
	mov	DWORD PTR -2092[rbp], eax
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L110
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L110:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L111
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L111:
	add	QWORD PTR -2088[rbp], 4
	mov	rax, QWORD PTR -2088[rbp]
	mov	DWORD PTR -2104[rbp], eax
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L112
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L112:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L113
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L113:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L114
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 56
	mov	rdi, rax
	call	long2str
.L114:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L115
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L115:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L116
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L116:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L117
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L117:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L118
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L118:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L119
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L119:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L120
	mov	eax, DWORD PTR -2092[rbp]
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2080[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L120:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L121
	mov	rcx, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR -2120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	sub	rax, -128
	mov	rax, QWORD PTR [rax]
	imul	eax, eax, 125
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2080[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L121:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L122
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L122:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L123
	mov	rcx, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR -2120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 144
	mov	rax, QWORD PTR [rax]
	sal	rax, 2
	mov	edx, DWORD PTR -2092[rbp]
	movsx	rbx, edx
	cqo
	idiv	rbx
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2080[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L123:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L124
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L124:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L125
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, -1
	mov	rdi, rax
	call	long2str
.L125:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L126
	mov	eax, DWORD PTR -2092[rbp]
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2080[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L126:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L127
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L127:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L128
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L128:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L129
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L129:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L130
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	esi, 16
	mov	rdi, rax
	call	long2str
.L130:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2046
	jg	.L131
	mov	rcx, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR -2120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 96
	mov	rax, QWORD PTR [rax]
	mov	edx, eax
	lea	rcx, -2080[rbp]
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	rcx, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR -2120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 96
	mov	rax, QWORD PTR [rax]
	sar	rax, 8
	mov	rdx, rax
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, 1
	mov	BYTE PTR -2080[rbp+rax], dl
.L131:
	add	QWORD PTR -2088[rbp], 2
	cmp	QWORD PTR -2088[rbp], 2046
	jg	.L132
	mov	rcx, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR -2120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 104
	mov	rax, QWORD PTR [rax]
	mov	edx, eax
	lea	rcx, -2080[rbp]
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	rcx, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR -2120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 104
	mov	rax, QWORD PTR [rax]
	sar	rax, 8
	mov	rdx, rax
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, 1
	mov	BYTE PTR -2080[rbp+rax], dl
.L132:
	add	QWORD PTR -2088[rbp], 2
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L133
	mov	rcx, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR -2120[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2080[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L133:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L134
	mov	rcx, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR -2120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	sub	rax, -128
	mov	rax, QWORD PTR [rax]
	imul	eax, eax, 125
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2080[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L134:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2046
	jg	.L135
	mov	eax, DWORD PTR -2092[rbp]
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	mov	edx, eax
	lea	rcx, -2080[rbp]
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -2092[rbp]
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	sar	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, 1
	mov	BYTE PTR -2080[rbp+rax], dl
.L135:
	add	QWORD PTR -2088[rbp], 2
	cmp	QWORD PTR -2088[rbp], 2046
	jg	.L136
	mov	rcx, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR -2120[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, eax
	lea	rcx, -2080[rbp]
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	rcx, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR -2120[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	sar	rax, 8
	mov	rdx, rax
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, 1
	mov	BYTE PTR -2080[rbp+rax], dl
.L136:
	add	QWORD PTR -2088[rbp], 2
	mov	rax, QWORD PTR -2088[rbp]
	mov	edx, DWORD PTR -2104[rbp]
	sub	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -2104[rbp]
	cdqe
	lea	rcx, -4[rax]
	lea	rax, -2080[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
	add	DWORD PTR -2120[rbp], 1
.L109:
	mov	rax, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR 1080[rax]
	cmp	DWORD PTR -2120[rbp], eax
	jl	.L137
	mov	rax, QWORD PTR -2088[rbp]
	mov	edx, DWORD PTR -2108[rbp]
	sub	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -2108[rbp]
	cdqe
	lea	rcx, -4[rax]
	lea	rax, -2080[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
	mov	rax, QWORD PTR -2088[rbp]
	mov	edx, eax
	mov	eax, 2028
	sub	eax, edx
	mov	DWORD PTR -2100[rbp], eax
	cmp	DWORD PTR -2100[rbp], 0
	jg	.L138
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 51
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L138:
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L139
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L139:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L140
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -2100[rbp]
	mov	esi, eax
	mov	rdi, rdx
	call	long2str
.L140:
	add	QWORD PTR -2088[rbp], 4
	mov	eax, DWORD PTR -2100[rbp]
	cdqe
	mov	rdx, QWORD PTR -2088[rbp]
	lea	rcx, -2080[rbp]
	add	rcx, rdx
	mov	rdx, rax
	mov	esi, 0
	mov	rdi, rcx
	call	memset@PLT
	mov	eax, DWORD PTR -2100[rbp]
	movsx	rbx, eax
	lea	rdi, id_str[rip]
	call	strlen@PLT
	add	rax, 8
	cmp	rbx, rax
	jbe	.L141
	lea	rcx, .LC17[rip]
	lea	rdx, .LC18[rip]
	lea	rsi, .LC19[rip]
	lea	rdi, id_str[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rdi, id_str[rip]
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2080[rbp]
	add	rax, rcx
	lea	rsi, id_str[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L141:
	mov	eax, DWORD PTR -2100[rbp]
	cdqe
	add	QWORD PTR -2088[rbp], rax
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L142
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L142:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L143
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -2116[rbp]
	mov	esi, eax
	mov	rdi, rdx
	call	long2str
.L143:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L144
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2080[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L144:
	add	QWORD PTR -2088[rbp], 4
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	test	rax, rax
	js	.L145
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	lea	rax, -2080[rbp]
	mov	edx, 2048
	mov	rsi, rax
	mov	edi, ecx
	call	avi_write
	cmp	rax, 2048
	jne	.L145
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR 992[rax]
	mov	rcx, rax
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	test	rax, rax
	jns	.L146
.L145:
	mov	QWORD PTR AVI_errno[rip], 6
	mov	DWORD PTR -2096[rbp], -1
	mov	eax, DWORD PTR -2096[rbp]
	jmp	.L148
.L146:
	mov	DWORD PTR -2096[rbp], 0
	mov	eax, DWORD PTR -2096[rbp]
.L148:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L149
	call	__stack_chk_fail@PLT
.L149:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	avi_update_header, .-avi_update_header
	.section	.rodata
.LC21:
	.string	"idx1"
.LC22:
	.string	"INFO"
.LC23:
	.string	"ISFT"
	.text
	.type	avi_close_output_file, @function
avi_close_output_file:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2160
	mov	QWORD PTR -2152[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR 992[rax]
	sub	rax, 2044
	mov	QWORD PTR -2080[rbp], rax
	mov	DWORD PTR -2128[rbp], 0
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR 1000[rax]
	sal	eax, 4
	mov	ecx, eax
	mov	rax, QWORD PTR -2152[rbp]
	mov	rdx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -2152[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	avi_add_chunk
	mov	DWORD PTR -2116[rbp], eax
	cmp	DWORD PTR -2116[rbp], 0
	sete	al
	movzx	eax, al
	mov	DWORD PTR -2112[rbp], eax
	cmp	DWORD PTR -2116[rbp], 0
	je	.L153
	mov	DWORD PTR -2128[rbp], 1
	mov	QWORD PTR AVI_errno[rip], 5
.L153:
	mov	rax, QWORD PTR -2152[rbp]
	movsd	xmm1, QWORD PTR 32[rax]
	movsd	xmm0, QWORD PTR .LC2[rip]
	comisd	xmm0, xmm1
	jbe	.L259
	mov	DWORD PTR -2132[rbp], 0
	mov	DWORD PTR -2136[rbp], 0
	jmp	.L156
.L259:
	mov	rax, QWORD PTR -2152[rbp]
	movsd	xmm1, QWORD PTR 32[rax]
	movsd	xmm0, QWORD PTR .LC3[rip]
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC4[rip]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -2132[rbp], eax
	mov	rax, QWORD PTR -2152[rbp]
	movsd	xmm2, QWORD PTR 32[rax]
	movsd	xmm0, QWORD PTR .LC3[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC4[rip]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -2136[rbp], eax
.L156:
	mov	QWORD PTR -2088[rbp], 0
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	memcpy@PLT
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L157
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR 992[rax]
	sub	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2064[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L157:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L158
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L158:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L159
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L159:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L160
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L160:
	add	QWORD PTR -2088[rbp], 4
	mov	rax, QWORD PTR -2088[rbp]
	mov	DWORD PTR -2108[rbp], eax
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L161
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L161:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L162
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L162:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L163
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 56
	mov	rdi, rax
	call	long2str
.L163:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L164
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -2136[rbp]
	mov	esi, eax
	mov	rdi, rdx
	call	long2str
.L164:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L165
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L165:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L166
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L166:
	add	QWORD PTR -2088[rbp], 4
	mov	DWORD PTR -2124[rbp], 256
	cmp	DWORD PTR -2112[rbp], 0
	je	.L167
	or	DWORD PTR -2124[rbp], 16
.L167:
	cmp	DWORD PTR -2112[rbp], 0
	je	.L168
	mov	rax, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR 1064[rax]
	test	eax, eax
	je	.L168
	or	DWORD PTR -2124[rbp], 32
.L168:
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L169
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -2124[rbp]
	mov	esi, eax
	mov	rdi, rdx
	call	long2str
.L169:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L170
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR 64[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2064[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L170:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L171
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L171:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L172
	mov	rax, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR 1080[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2064[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L172:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L173
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L173:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L174
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2064[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L174:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L175
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2064[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L175:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L176
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L176:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L177
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L177:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L178
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L178:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L179
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L179:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L180
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L180:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L181
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L181:
	add	QWORD PTR -2088[rbp], 4
	mov	rax, QWORD PTR -2088[rbp]
	mov	DWORD PTR -2104[rbp], eax
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L182
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L182:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L183
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L183:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L184
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 56
	mov	rdi, rax
	call	long2str
.L184:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L185
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L185:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L186
	mov	rax, QWORD PTR -2152[rbp]
	add	rax, 40
	mov	rdx, QWORD PTR -2088[rbp]
	lea	rcx, -2064[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
.L186:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L187
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L187:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L188
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L188:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L189
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L189:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L190
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 1000000
	mov	rdi, rax
	call	long2str
.L190:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L191
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -2132[rbp]
	mov	esi, eax
	mov	rdi, rdx
	call	long2str
.L191:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L192
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L192:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L193
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR 64[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2064[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L193:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L194
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L194:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L195
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, -1
	mov	rdi, rax
	call	long2str
.L195:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L196
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L196:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L197
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L197:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L198
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L198:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L199
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L199:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L200
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 40
	mov	rdi, rax
	call	long2str
.L200:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L201
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 40
	mov	rdi, rax
	call	long2str
.L201:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L202
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2064[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L202:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L203
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2064[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L203:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2046
	jg	.L204
	lea	rdx, -2064[rbp]
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 1
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, 1
	mov	BYTE PTR -2064[rbp+rax], 0
.L204:
	add	QWORD PTR -2088[rbp], 2
	cmp	QWORD PTR -2088[rbp], 2046
	jg	.L205
	lea	rdx, -2064[rbp]
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 24
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, 1
	mov	BYTE PTR -2064[rbp+rax], 0
.L205:
	add	QWORD PTR -2088[rbp], 2
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L206
	mov	rax, QWORD PTR -2152[rbp]
	add	rax, 40
	mov	rdx, QWORD PTR -2088[rbp]
	lea	rcx, -2064[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
.L206:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L207
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR 24[rax]
	imul	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2064[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L207:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L208
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L208:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L209
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L209:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L210
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L210:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L211
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L211:
	add	QWORD PTR -2088[rbp], 4
	mov	rax, QWORD PTR -2088[rbp]
	mov	edx, DWORD PTR -2104[rbp]
	sub	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -2104[rbp]
	cdqe
	lea	rcx, -4[rax]
	lea	rax, -2064[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
	mov	DWORD PTR -2120[rbp], 0
	jmp	.L212
.L240:
	mov	edx, DWORD PTR -2120[rbp]
	mov	rax, QWORD PTR -2152[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	avi_sampsize
	mov	DWORD PTR -2092[rbp], eax
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L213
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L213:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L214
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L214:
	add	QWORD PTR -2088[rbp], 4
	mov	rax, QWORD PTR -2088[rbp]
	mov	DWORD PTR -2104[rbp], eax
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L215
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L215:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L216
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L216:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L217
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 56
	mov	rdi, rax
	call	long2str
.L217:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L218
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L218:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L219
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L219:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L220
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L220:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L221
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L221:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L222
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L222:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L223
	mov	eax, DWORD PTR -2092[rbp]
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2064[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L223:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L224
	mov	rcx, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR -2120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	sub	rax, -128
	mov	rax, QWORD PTR [rax]
	imul	eax, eax, 125
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2064[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L224:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L225
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L225:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L226
	mov	rcx, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR -2120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 144
	mov	rax, QWORD PTR [rax]
	sal	rax, 2
	mov	edx, DWORD PTR -2092[rbp]
	movsx	rcx, edx
	cqo
	idiv	rcx
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2064[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L226:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L227
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L227:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L228
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, -1
	mov	rdi, rax
	call	long2str
.L228:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L229
	mov	eax, DWORD PTR -2092[rbp]
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2064[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L229:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L230
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L230:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L231
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	long2str
.L231:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L232
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L232:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L233
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 16
	mov	rdi, rax
	call	long2str
.L233:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2046
	jg	.L234
	mov	rcx, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR -2120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 96
	mov	rax, QWORD PTR [rax]
	mov	edx, eax
	lea	rcx, -2064[rbp]
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	rcx, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR -2120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 96
	mov	rax, QWORD PTR [rax]
	sar	rax, 8
	mov	rdx, rax
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, 1
	mov	BYTE PTR -2064[rbp+rax], dl
.L234:
	add	QWORD PTR -2088[rbp], 2
	cmp	QWORD PTR -2088[rbp], 2046
	jg	.L235
	mov	rcx, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR -2120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 104
	mov	rax, QWORD PTR [rax]
	mov	edx, eax
	lea	rcx, -2064[rbp]
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	rcx, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR -2120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 104
	mov	rax, QWORD PTR [rax]
	sar	rax, 8
	mov	rdx, rax
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, 1
	mov	BYTE PTR -2064[rbp+rax], dl
.L235:
	add	QWORD PTR -2088[rbp], 2
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L236
	mov	rcx, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR -2120[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2064[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L236:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L237
	mov	rcx, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR -2120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	sub	rax, -128
	mov	rax, QWORD PTR [rax]
	imul	eax, eax, 125
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2064[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L237:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2046
	jg	.L238
	mov	eax, DWORD PTR -2092[rbp]
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	mov	edx, eax
	lea	rcx, -2064[rbp]
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -2092[rbp]
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	sar	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, 1
	mov	BYTE PTR -2064[rbp+rax], dl
.L238:
	add	QWORD PTR -2088[rbp], 2
	cmp	QWORD PTR -2088[rbp], 2046
	jg	.L239
	mov	rcx, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR -2120[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, eax
	lea	rcx, -2064[rbp]
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	rcx, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR -2120[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	sar	rax, 8
	mov	rdx, rax
	mov	rax, QWORD PTR -2088[rbp]
	add	rax, 1
	mov	BYTE PTR -2064[rbp+rax], dl
.L239:
	add	QWORD PTR -2088[rbp], 2
	mov	rax, QWORD PTR -2088[rbp]
	mov	edx, DWORD PTR -2104[rbp]
	sub	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -2104[rbp]
	cdqe
	lea	rcx, -4[rax]
	lea	rax, -2064[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
	add	DWORD PTR -2120[rbp], 1
.L212:
	mov	rax, QWORD PTR -2152[rbp]
	mov	eax, DWORD PTR 1080[rax]
	cmp	DWORD PTR -2120[rbp], eax
	jl	.L240
	mov	rax, QWORD PTR -2088[rbp]
	mov	edx, DWORD PTR -2108[rbp]
	sub	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -2108[rbp]
	cdqe
	lea	rcx, -4[rax]
	lea	rax, -2064[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L241
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L241:
	add	QWORD PTR -2088[rbp], 4
	mov	QWORD PTR -2072[rbp], 76
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L242
	mov	rax, QWORD PTR -2072[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2064[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L242:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L243
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L243:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L244
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L244:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L245
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	esi, 64
	mov	rdi, rax
	call	long2str
.L245:
	add	QWORD PTR -2088[rbp], 4
	lea	rcx, .LC17[rip]
	lea	rdx, .LC18[rip]
	lea	rsi, .LC19[rip]
	lea	rdi, id_str[rip]
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 64
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rdi, id_str[rip]
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2064[rbp]
	add	rax, rcx
	lea	rsi, id_str[rip]
	mov	rdi, rax
	call	memcpy@PLT
	add	QWORD PTR -2088[rbp], 64
	mov	rax, QWORD PTR -2088[rbp]
	mov	edx, eax
	mov	eax, 2028
	sub	eax, edx
	mov	DWORD PTR -2100[rbp], eax
	cmp	DWORD PTR -2100[rbp], 0
	jg	.L246
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 51
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L246:
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L247
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L247:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L248
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -2100[rbp]
	mov	esi, eax
	mov	rdi, rdx
	call	long2str
.L248:
	add	QWORD PTR -2088[rbp], 4
	mov	eax, DWORD PTR -2100[rbp]
	cdqe
	mov	rdx, QWORD PTR -2088[rbp]
	lea	rcx, -2064[rbp]
	add	rcx, rdx
	mov	rdx, rax
	mov	esi, 0
	mov	rdi, rcx
	call	memset@PLT
	mov	eax, DWORD PTR -2100[rbp]
	cdqe
	add	QWORD PTR -2088[rbp], rax
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L249
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L249:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L250
	mov	rax, QWORD PTR -2080[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -2088[rbp]
	lea	rcx, -2064[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	long2str
.L250:
	add	QWORD PTR -2088[rbp], 4
	cmp	QWORD PTR -2088[rbp], 2044
	jg	.L251
	mov	rax, QWORD PTR -2088[rbp]
	lea	rdx, -2064[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L251:
	add	QWORD PTR -2088[rbp], 4
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	test	rax, rax
	js	.L252
	mov	rax, QWORD PTR -2152[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	lea	rax, -2064[rbp]
	mov	edx, 2048
	mov	rsi, rax
	mov	edi, ecx
	call	avi_write
	cmp	rax, 2048
	je	.L253
.L252:
	mov	QWORD PTR AVI_errno[rip], 6
	mov	DWORD PTR -2096[rbp], -1
	mov	eax, DWORD PTR -2096[rbp]
	jmp	.L256
.L253:
	cmp	DWORD PTR -2128[rbp], 0
	je	.L255
	mov	DWORD PTR -2096[rbp], -1
	mov	eax, DWORD PTR -2096[rbp]
	jmp	.L256
.L255:
	mov	DWORD PTR -2096[rbp], 0
	mov	eax, DWORD PTR -2096[rbp]
.L256:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L257
	call	__stack_chk_fail@PLT
.L257:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	avi_close_output_file, .-avi_close_output_file
	.section	.rodata
.LC24:
	.string	"0%1dwb"
.LC25:
	.string	"00db"
	.text
	.type	avi_write_data, @function
avi_write_data:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	DWORD PTR -60[rbp], ecx
	mov	DWORD PTR -64[rbp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 992[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 1000[rax]
	add	rax, 1
	sal	rax, 4
	add	rax, rdx
	add	rax, 16
	cmp	rax, -16779265
	jbe	.L261
	mov	QWORD PTR AVI_errno[rip], 1
	mov	DWORD PTR -20[rbp], -1
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L271
.L261:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 1084[rax]
	lea	edx, 1[rax]
	lea	rax, -13[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	cmp	DWORD PTR -60[rbp], 0
	je	.L263
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 992[rax]
	mov	rcx, QWORD PTR -56[rbp]
	lea	rsi, -13[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 0
	mov	rdi, rax
	call	avi_add_index_entry
	mov	DWORD PTR -24[rbp], eax
	jmp	.L264
.L263:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 992[rax]
	cmp	DWORD PTR -64[rbp], 0
	je	.L265
	mov	esi, 16
	jmp	.L266
.L265:
	mov	esi, 0
.L266:
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rsi
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	call	avi_add_index_entry
	mov	DWORD PTR -24[rbp], eax
.L264:
	cmp	DWORD PTR -24[rbp], 0
	je	.L267
	mov	DWORD PTR -20[rbp], -1
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L271
.L267:
	cmp	DWORD PTR -60[rbp], 0
	je	.L268
	mov	rax, QWORD PTR -56[rbp]
	mov	ecx, eax
	mov	rdx, QWORD PTR -48[rbp]
	lea	rsi, -13[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	avi_add_chunk
	mov	DWORD PTR -24[rbp], eax
	jmp	.L269
.L268:
	mov	rax, QWORD PTR -56[rbp]
	mov	ecx, eax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	call	avi_add_chunk
	mov	DWORD PTR -24[rbp], eax
.L269:
	cmp	DWORD PTR -24[rbp], 0
	je	.L270
	mov	DWORD PTR -20[rbp], -1
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L271
.L270:
	mov	DWORD PTR -20[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
.L271:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L272
	call	__stack_chk_fail@PLT
.L272:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	avi_write_data, .-avi_write_data
	.globl	AVI_write_frame
	.type	AVI_write_frame, @function
AVI_write_frame:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -44[rbp], ecx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rax, 1
	jne	.L274
	mov	QWORD PTR AVI_errno[rip], 7
	mov	DWORD PTR -12[rbp], -1
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L275
.L274:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 992[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, ecx
	mov	ecx, 0
	mov	rdi, rax
	call	avi_write_data
	test	eax, eax
	je	.L276
	mov	DWORD PTR -12[rbp], -1
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L275
.L276:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 1048[rax], rdx
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 1056[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 64[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 64[rax], rdx
	mov	DWORD PTR -12[rbp], 0
	mov	eax, DWORD PTR -12[rbp]
.L275:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	AVI_write_frame, .-AVI_write_frame
	.globl	AVI_dup_frame
	.type	AVI_dup_frame, @function
AVI_dup_frame:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rax, 1
	jne	.L278
	mov	QWORD PTR AVI_errno[rip], 7
	mov	DWORD PTR -4[rbp], -1
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L279
.L278:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1048[rax]
	test	rax, rax
	jne	.L280
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L279
.L280:
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 1056[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 1048[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 16
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	call	avi_add_index_entry
	test	eax, eax
	je	.L281
	mov	DWORD PTR -4[rbp], -1
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L279
.L281:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 64[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 64[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 1064[rax], 1
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -4[rbp]
.L279:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	AVI_dup_frame, .-AVI_dup_frame
	.globl	AVI_write_audio
	.type	AVI_write_audio, @function
AVI_write_audio:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rax, 1
	jne	.L283
	mov	QWORD PTR AVI_errno[rip], 7
	mov	DWORD PTR -4[rbp], -1
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L284
.L283:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, 0
	mov	ecx, 1
	mov	rdi, rax
	call	avi_write_data
	test	eax, eax
	je	.L285
	mov	DWORD PTR -4[rbp], -1
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L284
.L285:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 144
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rdx, QWORD PTR -40[rbp]
	add	rcx, rdx
	mov	rsi, QWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 144
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -4[rbp]
.L284:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	AVI_write_audio, .-AVI_write_audio
	.globl	AVI_append_audio
	.type	AVI_append_audio, @function
AVI_append_audio:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rax, 1
	jne	.L287
	mov	QWORD PTR AVI_errno[rip], 7
	mov	DWORD PTR -44[rbp], -1
	mov	eax, DWORD PTR -44[rbp]
	jmp	.L289
.L287:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 1000[rax]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 1000[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 1000[rax]
	sal	rax, 4
	add	rax, rdx
	add	rax, 12
	mov	rdi, rax
	call	str2ulong
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 1000[rax]
	sal	rax, 4
	add	rax, rdx
	add	rax, 8
	mov	rdi, rax
	call	str2ulong
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 1000[rax]
	sal	rax, 4
	add	rax, rcx
	add	rax, 12
	mov	esi, edx
	mov	rdi, rax
	call	long2str
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 1000[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 1000[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 144
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rdx, QWORD PTR -72[rbp]
	add	rcx, rdx
	mov	rsi, QWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 144
	mov	QWORD PTR [rax], rcx
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 4
	mov	rdx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR [rdx]
	mov	ecx, edx
	mov	edx, 0
	mov	rsi, rax
	mov	edi, ecx
	call	lseek@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	eax, edx
	mov	edx, eax
	lea	rax, -12[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	long2str
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	lea	rax, -12[rbp]
	mov	edx, 4
	mov	rsi, rax
	mov	edi, ecx
	call	avi_write
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR [rdx]
	mov	ecx, edx
	mov	edx, 0
	mov	rsi, rax
	mov	edi, ecx
	call	lseek@PLT
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	add	rax, 1
	and	rax, -2
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -72[rbp], rax
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	mov	edi, ecx
	call	avi_write
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 992[rax], rdx
	mov	DWORD PTR -44[rbp], 0
	mov	eax, DWORD PTR -44[rbp]
.L289:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L290
	call	__stack_chk_fail@PLT
.L290:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	AVI_append_audio, .-AVI_append_audio
	.globl	AVI_bytes_remain
	.type	AVI_bytes_remain, @function
AVI_bytes_remain:
.LFB24:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rax, 1
	jne	.L292
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L293
.L292:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 992[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1000[rax]
	sal	rax, 4
	add	rdx, rax
	mov	rax, -16779273
	sub	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
.L293:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	AVI_bytes_remain, .-AVI_bytes_remain
	.globl	AVI_bytes_written
	.type	AVI_bytes_written, @function
AVI_bytes_written:
.LFB25:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rax, 1
	jne	.L295
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L296
.L295:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 992[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1000[rax]
	sal	rax, 4
	add	rax, rdx
	add	rax, 8
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
.L296:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	AVI_bytes_written, .-AVI_bytes_written
	.globl	AVI_set_audio_track
	.type	AVI_set_audio_track, @function
AVI_set_audio_track:
.LFB26:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	cmp	DWORD PTR -28[rbp], 0
	js	.L298
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1080[rax]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L299
.L298:
	mov	DWORD PTR -4[rbp], -1
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L300
.L299:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR 1084[rax], edx
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -4[rbp]
.L300:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	AVI_set_audio_track, .-AVI_set_audio_track
	.globl	AVI_get_audio_track
	.type	AVI_get_audio_track, @function
AVI_get_audio_track:
.LFB27:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	AVI_get_audio_track, .-AVI_get_audio_track
	.globl	AVI_close
	.type	AVI_close, @function
AVI_close:
.LFB28:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L304
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	avi_close_output_file
	mov	DWORD PTR -4[rbp], eax
	jmp	.L305
.L304:
	mov	DWORD PTR -4[rbp], 0
.L305:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1032[rax]
	test	rax, rax
	je	.L306
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1032[rax]
	mov	rdi, rax
	call	free@PLT
.L306:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1040[rax]
	test	rax, rax
	je	.L307
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1040[rax]
	mov	rdi, rax
	call	free@PLT
.L307:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.size	AVI_close, .-AVI_close
	.globl	AVI_open_input_file
	.type	AVI_open_input_file, @function
AVI_open_input_file:
.LFB29:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -16[rbp], 0
	mov	edi, 1088
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L310
	mov	QWORD PTR AVI_errno[rip], 8
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L311
.L310:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 1088
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jns	.L312
	mov	QWORD PTR AVI_errno[rip], 2
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L311
.L312:
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	avi_parse_input_file
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 1084[rax], 0
	mov	rax, QWORD PTR -16[rbp]
.L311:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE29:
	.size	AVI_open_input_file, .-AVI_open_input_file
	.globl	AVI_open_fd
	.type	AVI_open_fd, @function
AVI_open_fd:
.LFB30:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -16[rbp], 0
	mov	edi, 1088
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L314
	mov	QWORD PTR AVI_errno[rip], 8
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L315
.L314:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 1088
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], 1
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	avi_parse_input_file
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 1084[rax], 0
	mov	rax, QWORD PTR -16[rbp]
.L315:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE30:
	.size	AVI_open_fd, .-AVI_open_fd
	.globl	avi_parse_input_file
	.type	avi_parse_input_file, @function
avi_parse_input_file:
.LFB31:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 552
	.cfi_offset 3, -24
	mov	QWORD PTR -552[rbp], rdi
	mov	DWORD PTR -556[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -488[rbp], 0
	mov	QWORD PTR -480[rbp], 0
	mov	DWORD PTR -536[rbp], 0
	mov	DWORD PTR -532[rbp], 0
	mov	DWORD PTR -528[rbp], 0
	mov	DWORD PTR -520[rbp], 0
	mov	DWORD PTR -524[rbp], 0
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	lea	rax, -288[rbp]
	mov	edx, 12
	mov	rsi, rax
	mov	edi, ecx
	call	avi_read
	cmp	rax, 12
	je	.L317
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	AVI_close
	mov	QWORD PTR AVI_errno[rip], 3
	mov	DWORD PTR -516[rbp], 0
	mov	eax, DWORD PTR -516[rbp]
	jmp	.L400
.L317:
	lea	rax, -288[rbp]
	mov	edx, 4
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L319
	lea	rax, -288[rbp]
	add	rax, 8
	mov	edx, 4
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	je	.L320
.L319:
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	AVI_close
	mov	QWORD PTR AVI_errno[rip], 9
	mov	DWORD PTR -516[rbp], 0
	mov	eax, DWORD PTR -516[rbp]
	jmp	.L400
.L320:
	mov	QWORD PTR -496[rbp], 0
.L331:
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	lea	rax, -288[rbp]
	mov	edx, 8
	mov	rsi, rax
	mov	edi, ecx
	call	avi_read
	cmp	rax, 8
	jne	.L404
	lea	rax, -288[rbp]
	add	rax, 4
	mov	rdi, rax
	call	str2ulong
	mov	QWORD PTR -464[rbp], rax
	mov	rax, QWORD PTR -464[rbp]
	add	rax, 1
	and	rax, -2
	mov	QWORD PTR -464[rbp], rax
	lea	rax, -288[rbp]
	mov	edx, 4
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L323
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	lea	rax, -288[rbp]
	mov	edx, 4
	mov	rsi, rax
	mov	edi, ecx
	call	avi_read
	cmp	rax, 4
	je	.L324
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	AVI_close
	mov	QWORD PTR AVI_errno[rip], 3
	mov	DWORD PTR -516[rbp], 0
	mov	eax, DWORD PTR -516[rbp]
	jmp	.L400
.L324:
	sub	QWORD PTR -464[rbp], 4
	lea	rax, -288[rbp]
	mov	edx, 4
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L325
	mov	rax, QWORD PTR -464[rbp]
	mov	QWORD PTR -480[rbp], rax
	mov	rax, QWORD PTR -464[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -496[rbp], rax
	cmp	QWORD PTR -496[rbp], 0
	jne	.L326
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	AVI_close
	mov	QWORD PTR AVI_errno[rip], 8
	mov	DWORD PTR -516[rbp], 0
	mov	eax, DWORD PTR -516[rbp]
	jmp	.L400
.L326:
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 1
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -488[rbp], rax
	mov	rdx, QWORD PTR -464[rbp]
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	mov	rax, QWORD PTR -496[rbp]
	mov	rsi, rax
	mov	edi, ecx
	call	avi_read
	mov	rdx, QWORD PTR -464[rbp]
	cmp	rax, rdx
	je	.L331
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	AVI_close
	mov	QWORD PTR AVI_errno[rip], 3
	mov	DWORD PTR -516[rbp], 0
	mov	eax, DWORD PTR -516[rbp]
	jmp	.L400
.L325:
	lea	rax, -288[rbp]
	mov	edx, 4
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L328
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 1
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -552[rbp]
	mov	QWORD PTR 1072[rax], rdx
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	mov	rax, QWORD PTR -464[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, ecx
	call	lseek@PLT
	jmp	.L331
.L328:
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	mov	rax, QWORD PTR -464[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, ecx
	call	lseek@PLT
	jmp	.L331
.L323:
	lea	rax, -288[rbp]
	mov	edx, 4
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L329
	mov	rax, QWORD PTR -464[rbp]
	lea	rdx, 15[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -552[rbp]
	mov	QWORD PTR 1008[rax], rdx
	mov	rax, QWORD PTR -552[rbp]
	mov	rdx, QWORD PTR 1008[rax]
	mov	rax, QWORD PTR -552[rbp]
	mov	QWORD PTR 1000[rax], rdx
	mov	rax, QWORD PTR -464[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -552[rbp]
	mov	QWORD PTR 1032[rax], rdx
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR 1032[rax]
	test	rax, rax
	jne	.L330
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	AVI_close
	mov	QWORD PTR AVI_errno[rip], 8
	mov	DWORD PTR -516[rbp], 0
	mov	eax, DWORD PTR -516[rbp]
	jmp	.L400
.L330:
	mov	rdx, QWORD PTR -464[rbp]
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR 1032[rax]
	mov	rcx, QWORD PTR -552[rbp]
	mov	rcx, QWORD PTR [rcx]
	mov	rsi, rax
	mov	edi, ecx
	call	avi_read
	mov	rdx, QWORD PTR -464[rbp]
	cmp	rax, rdx
	je	.L331
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	AVI_close
	mov	QWORD PTR AVI_errno[rip], 3
	mov	DWORD PTR -516[rbp], 0
	mov	eax, DWORD PTR -516[rbp]
	jmp	.L400
.L329:
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	mov	rax, QWORD PTR -464[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, ecx
	call	lseek@PLT
	jmp	.L331
.L404:
	nop
	cmp	QWORD PTR -496[rbp], 0
	jne	.L332
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	AVI_close
	mov	QWORD PTR AVI_errno[rip], 10
	mov	DWORD PTR -516[rbp], 0
	mov	eax, DWORD PTR -516[rbp]
	jmp	.L400
.L332:
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR 1072[rax]
	test	rax, rax
	jne	.L333
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	AVI_close
	mov	QWORD PTR AVI_errno[rip], 11
	mov	DWORD PTR -516[rbp], 0
	mov	eax, DWORD PTR -516[rbp]
	jmp	.L400
.L333:
	mov	QWORD PTR -512[rbp], 0
	jmp	.L334
.L346:
	mov	rdx, QWORD PTR -512[rbp]
	mov	rax, QWORD PTR -496[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L335
	add	QWORD PTR -512[rbp], 12
	jmp	.L334
.L335:
	mov	rax, QWORD PTR -512[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -496[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	str2ulong
	mov	QWORD PTR -464[rbp], rax
	mov	rax, QWORD PTR -464[rbp]
	add	rax, 1
	and	rax, -2
	mov	QWORD PTR -464[rbp], rax
	mov	rdx, QWORD PTR -512[rbp]
	mov	rax, QWORD PTR -496[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L336
	add	QWORD PTR -512[rbp], 8
	mov	rdx, QWORD PTR -512[rbp]
	mov	rax, QWORD PTR -496[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L337
	cmp	DWORD PTR -532[rbp], 0
	jne	.L337
	mov	rax, QWORD PTR -512[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -496[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -552[rbp]
	add	rdx, 40
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -552[rbp]
	mov	BYTE PTR 44[rax], 0
	mov	rdx, QWORD PTR -488[rbp]
	mov	rax, QWORD PTR -512[rbp]
	add	rax, rdx
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -552[rbp]
	mov	QWORD PTR 1016[rax], rdx
	mov	rax, QWORD PTR -512[rbp]
	lea	rdx, 20[rax]
	mov	rax, QWORD PTR -496[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	str2ulong
	mov	QWORD PTR -432[rbp], rax
	mov	rax, QWORD PTR -512[rbp]
	lea	rdx, 24[rax]
	mov	rax, QWORD PTR -496[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	str2ulong
	mov	QWORD PTR -424[rbp], rax
	cmp	QWORD PTR -432[rbp], 0
	je	.L338
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -424[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, QWORD PTR -432[rbp]
	divsd	xmm0, xmm1
	mov	rax, QWORD PTR -552[rbp]
	movsd	QWORD PTR 32[rax], xmm0
.L338:
	mov	rax, QWORD PTR -512[rbp]
	lea	rdx, 32[rax]
	mov	rax, QWORD PTR -496[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	str2ulong
	mov	rdx, rax
	mov	rax, QWORD PTR -552[rbp]
	mov	QWORD PTR 64[rax], rdx
	mov	eax, DWORD PTR -524[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -552[rbp]
	mov	QWORD PTR 56[rax], rdx
	mov	rax, QWORD PTR -552[rbp]
	mov	QWORD PTR 88[rax], 0
	mov	DWORD PTR -532[rbp], 1
	mov	DWORD PTR -536[rbp], 1
	jmp	.L339
.L337:
	mov	rdx, QWORD PTR -512[rbp]
	mov	rax, QWORD PTR -496[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L340
	cmp	DWORD PTR -520[rbp], 0
	jne	.L340
	mov	rax, QWORD PTR -552[rbp]
	mov	edx, DWORD PTR 1080[rax]
	mov	rax, QWORD PTR -552[rbp]
	mov	DWORD PTR 1084[rax], edx
	mov	rax, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR 1080[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -552[rbp]
	mov	DWORD PTR 1080[rax], edx
	mov	rax, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR 1080[rax]
	cmp	eax, 8
	jle	.L341
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, 8
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -516[rbp], -1
	mov	eax, DWORD PTR -516[rbp]
	jmp	.L400
.L341:
	mov	rax, QWORD PTR -512[rbp]
	lea	rdx, 32[rax]
	mov	rax, QWORD PTR -496[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	str2ulong
	mov	rbx, rax
	mov	rax, QWORD PTR -552[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	avi_sampsize
	cdqe
	imul	rbx, rax
	mov	rdx, rbx
	mov	rax, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, rdx
	mov	rsi, QWORD PTR -552[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 144
	mov	QWORD PTR [rax], rcx
	mov	rax, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	edx, DWORD PTR -524[rbp]
	movsx	rdx, edx
	mov	rsi, QWORD PTR -552[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 4
	add	rax, rsi
	add	rax, 136
	mov	QWORD PTR [rax], rdx
	mov	DWORD PTR -536[rbp], 2
	mov	rax, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -488[rbp]
	mov	rdx, QWORD PTR -512[rbp]
	add	rcx, rdx
	mov	rsi, QWORD PTR -552[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 184
	mov	QWORD PTR [rax], rcx
	jmp	.L339
.L340:
	mov	DWORD PTR -536[rbp], 0
.L339:
	add	DWORD PTR -524[rbp], 1
	jmp	.L342
.L336:
	mov	rdx, QWORD PTR -512[rbp]
	mov	rax, QWORD PTR -496[rbp]
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L343
	add	QWORD PTR -512[rbp], 8
	cmp	DWORD PTR -536[rbp], 1
	jne	.L344
	mov	rax, QWORD PTR -512[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -496[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	str2ulong
	mov	rdx, rax
	mov	rax, QWORD PTR -552[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -512[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -496[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	str2ulong
	mov	rdx, rax
	mov	rax, QWORD PTR -552[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	DWORD PTR -528[rbp], 1
	mov	rdx, QWORD PTR -488[rbp]
	mov	rax, QWORD PTR -512[rbp]
	add	rax, rdx
	lea	rdx, 16[rax]
	mov	rax, QWORD PTR -552[rbp]
	mov	QWORD PTR 1024[rax], rdx
	mov	rax, QWORD PTR -512[rbp]
	lea	rdx, 16[rax]
	mov	rax, QWORD PTR -496[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -552[rbp]
	add	rdx, 48
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -552[rbp]
	mov	BYTE PTR 52[rax], 0
	jmp	.L345
.L344:
	cmp	DWORD PTR -536[rbp], 2
	jne	.L345
	mov	rdx, QWORD PTR -512[rbp]
	mov	rax, QWORD PTR -496[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	str2ushort
	mov	rdx, QWORD PTR -552[rbp]
	mov	edx, DWORD PTR 1084[rdx]
	mov	rcx, rax
	mov	rsi, QWORD PTR -552[rbp]
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 96
	mov	QWORD PTR [rax], rcx
	mov	rax, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -488[rbp]
	mov	rdx, QWORD PTR -512[rbp]
	add	rcx, rdx
	mov	rsi, QWORD PTR -552[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 192
	mov	QWORD PTR [rax], rcx
	mov	rax, QWORD PTR -512[rbp]
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -496[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	str2ushort
	mov	rdx, QWORD PTR -552[rbp]
	mov	edx, DWORD PTR 1084[rdx]
	mov	rcx, rax
	mov	rsi, QWORD PTR -552[rbp]
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 104
	mov	QWORD PTR [rax], rcx
	mov	rax, QWORD PTR -512[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -496[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	str2ulong
	mov	rdx, QWORD PTR -552[rbp]
	mov	edx, DWORD PTR 1084[rdx]
	mov	rcx, rax
	mov	rsi, QWORD PTR -552[rbp]
	movsx	rax, edx
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	mov	QWORD PTR [rax], rcx
	mov	rax, QWORD PTR -512[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -496[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	str2ulong
	sal	rax, 3
	shr	rax, 3
	movabs	rdx, 2361183241434822607
	mul	rdx
	shr	rdx, 4
	mov	rax, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, rdx
	mov	rsi, QWORD PTR -552[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	sub	rax, -128
	mov	QWORD PTR [rax], rcx
	mov	rax, QWORD PTR -512[rbp]
	lea	rdx, 14[rax]
	mov	rax, QWORD PTR -496[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	str2ushort
	mov	rdx, QWORD PTR -552[rbp]
	mov	edx, DWORD PTR 1084[rdx]
	mov	rcx, rax
	mov	rsi, QWORD PTR -552[rbp]
	movsx	rax, edx
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 8
	mov	QWORD PTR [rax], rcx
.L345:
	mov	DWORD PTR -536[rbp], 0
	jmp	.L342
.L343:
	add	QWORD PTR -512[rbp], 8
	mov	DWORD PTR -536[rbp], 0
.L342:
	mov	rax, QWORD PTR -464[rbp]
	add	QWORD PTR -512[rbp], rax
.L334:
	mov	rax, QWORD PTR -512[rbp]
	cmp	rax, QWORD PTR -480[rbp]
	jl	.L346
	mov	rax, QWORD PTR -496[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	DWORD PTR -532[rbp], 0
	je	.L347
	cmp	DWORD PTR -528[rbp], 0
	jne	.L348
.L347:
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	AVI_close
	mov	QWORD PTR AVI_errno[rip], 12
	mov	DWORD PTR -516[rbp], 0
	mov	eax, DWORD PTR -516[rbp]
	jmp	.L400
.L348:
	mov	rax, QWORD PTR -552[rbp]
	mov	rcx, QWORD PTR 56[rax]
	movabs	rdx, 7378697629483820647
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 2
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	eax, 48
	mov	edx, eax
	mov	rax, QWORD PTR -552[rbp]
	mov	BYTE PTR 72[rax], dl
	mov	rax, QWORD PTR -552[rbp]
	mov	rcx, QWORD PTR 56[rax]
	movabs	rdx, 7378697629483820647
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 2
	mov	rsi, rcx
	sar	rsi, 63
	sub	rax, rsi
	mov	rdx, rax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	sub	rcx, rax
	mov	rdx, rcx
	mov	eax, edx
	add	eax, 48
	mov	edx, eax
	mov	rax, QWORD PTR -552[rbp]
	mov	BYTE PTR 73[rax], dl
	mov	rax, QWORD PTR -552[rbp]
	mov	BYTE PTR 74[rax], 100
	mov	rax, QWORD PTR -552[rbp]
	mov	BYTE PTR 75[rax], 98
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR 104[rax]
	test	rax, rax
	jne	.L349
	mov	rax, QWORD PTR -552[rbp]
	mov	QWORD PTR 136[rax], 99
.L349:
	mov	DWORD PTR -540[rbp], 0
	jmp	.L350
.L351:
	mov	eax, DWORD PTR -540[rbp]
	add	eax, 1
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	add	eax, 48
	mov	ecx, eax
	mov	rsi, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR -540[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 160
	mov	BYTE PTR [rax], cl
	mov	eax, DWORD PTR -540[rbp]
	lea	edx, 1[rax]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	mov	eax, ecx
	add	eax, 48
	mov	ecx, eax
	mov	rsi, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR -540[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 161
	mov	BYTE PTR [rax], cl
	mov	rcx, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR -540[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 162
	mov	BYTE PTR [rax], 119
	mov	rcx, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR -540[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 163
	mov	BYTE PTR [rax], 98
	add	DWORD PTR -540[rbp], 1
.L350:
	mov	rax, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR 1080[rax]
	cmp	DWORD PTR -540[rbp], eax
	jl	.L351
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR 1072[rax]
	mov	rcx, rax
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	cmp	DWORD PTR -556[rbp], 0
	jne	.L352
	mov	DWORD PTR -516[rbp], 0
	mov	eax, DWORD PTR -516[rbp]
	jmp	.L400
.L352:
	mov	QWORD PTR -504[rbp], 0
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR 1032[rax]
	test	rax, rax
	je	.L353
	mov	QWORD PTR -512[rbp], 0
	jmp	.L354
.L357:
	mov	rax, QWORD PTR -552[rbp]
	lea	rcx, 72[rax]
	mov	rax, QWORD PTR -552[rbp]
	mov	rdx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -512[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	edx, 3
	mov	rsi, rcx
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	je	.L405
	add	QWORD PTR -512[rbp], 1
.L354:
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR 1000[rax]
	cmp	QWORD PTR -512[rbp], rax
	jl	.L357
	jmp	.L356
.L405:
	nop
.L356:
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR 1000[rax]
	cmp	QWORD PTR -512[rbp], rax
	jl	.L358
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	AVI_close
	mov	QWORD PTR AVI_errno[rip], 12
	mov	DWORD PTR -516[rbp], 0
	mov	eax, DWORD PTR -516[rbp]
	jmp	.L400
.L358:
	mov	rax, QWORD PTR -552[rbp]
	mov	rdx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -512[rbp]
	sal	rax, 4
	add	rax, rdx
	add	rax, 8
	mov	rdi, rax
	call	str2ulong
	mov	QWORD PTR -456[rbp], rax
	mov	rax, QWORD PTR -552[rbp]
	mov	rdx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -512[rbp]
	sal	rax, 4
	add	rax, rdx
	add	rax, 12
	mov	rdi, rax
	call	str2ulong
	mov	QWORD PTR -448[rbp], rax
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	mov	rax, QWORD PTR -456[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, ecx
	call	lseek@PLT
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	lea	rax, -288[rbp]
	mov	edx, 8
	mov	rsi, rax
	mov	edi, ecx
	call	avi_read
	cmp	rax, 8
	je	.L359
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	AVI_close
	mov	QWORD PTR AVI_errno[rip], 3
	mov	DWORD PTR -516[rbp], 0
	mov	eax, DWORD PTR -516[rbp]
	jmp	.L400
.L359:
	mov	rax, QWORD PTR -552[rbp]
	mov	rdx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -512[rbp]
	sal	rax, 4
	lea	rcx, [rdx+rax]
	lea	rax, -288[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L360
	lea	rax, -288[rbp]
	add	rax, 4
	mov	rdi, rax
	call	str2ulong
	mov	rdx, QWORD PTR -448[rbp]
	cmp	rax, rdx
	jne	.L360
	mov	QWORD PTR -504[rbp], 1
	jmp	.L353
.L360:
	mov	rax, QWORD PTR -552[rbp]
	mov	rdx, QWORD PTR 1072[rax]
	mov	rax, QWORD PTR -456[rbp]
	add	rax, rdx
	sub	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	lea	rax, -288[rbp]
	mov	edx, 8
	mov	rsi, rax
	mov	edi, ecx
	call	avi_read
	cmp	rax, 8
	je	.L361
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	AVI_close
	mov	QWORD PTR AVI_errno[rip], 3
	mov	DWORD PTR -516[rbp], 0
	mov	eax, DWORD PTR -516[rbp]
	jmp	.L400
.L361:
	mov	rax, QWORD PTR -552[rbp]
	mov	rdx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -512[rbp]
	sal	rax, 4
	lea	rcx, [rdx+rax]
	lea	rax, -288[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L353
	lea	rax, -288[rbp]
	add	rax, 4
	mov	rdi, rax
	call	str2ulong
	mov	rdx, QWORD PTR -448[rbp]
	cmp	rax, rdx
	jne	.L353
	mov	QWORD PTR -504[rbp], 2
.L353:
	cmp	QWORD PTR -504[rbp], 0
	jne	.L362
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR 1072[rax]
	mov	rcx, rax
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	rax, QWORD PTR -552[rbp]
	mov	QWORD PTR 1000[rax], 0
.L372:
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	lea	rax, -288[rbp]
	mov	edx, 8
	mov	rsi, rax
	mov	edi, ecx
	call	avi_read
	cmp	rax, 8
	jne	.L406
	lea	rax, -288[rbp]
	add	rax, 4
	mov	rdi, rax
	call	str2ulong
	mov	QWORD PTR -464[rbp], rax
	lea	rax, -288[rbp]
	mov	edx, 4
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L365
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 1
	mov	esi, 4
	mov	edi, eax
	call	lseek@PLT
	jmp	.L366
.L365:
	movzx	eax, BYTE PTR -286[rbp]
	cmp	al, 100
	je	.L367
	movzx	eax, BYTE PTR -286[rbp]
	cmp	al, 68
	jne	.L368
.L367:
	movzx	eax, BYTE PTR -285[rbp]
	cmp	al, 98
	je	.L369
	movzx	eax, BYTE PTR -285[rbp]
	cmp	al, 66
	je	.L369
	movzx	eax, BYTE PTR -285[rbp]
	cmp	al, 99
	je	.L369
	movzx	eax, BYTE PTR -285[rbp]
	cmp	al, 67
	je	.L369
.L368:
	movzx	eax, BYTE PTR -286[rbp]
	cmp	al, 119
	je	.L370
	movzx	eax, BYTE PTR -286[rbp]
	cmp	al, 87
	jne	.L371
.L370:
	movzx	eax, BYTE PTR -285[rbp]
	cmp	al, 98
	je	.L369
	movzx	eax, BYTE PTR -285[rbp]
	cmp	al, 66
	jne	.L371
.L369:
	mov	rbx, QWORD PTR -464[rbp]
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 1
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	sub	rax, 8
	mov	rdx, rax
	lea	rsi, -288[rbp]
	mov	rax, QWORD PTR -552[rbp]
	mov	r8, rbx
	mov	rcx, rdx
	mov	edx, 0
	mov	rdi, rax
	call	avi_add_index_entry
.L371:
	mov	rax, QWORD PTR -464[rbp]
	add	rax, 1
	and	rax, -2
	mov	rdx, QWORD PTR -552[rbp]
	mov	rdx, QWORD PTR [rdx]
	mov	ecx, edx
	mov	edx, 1
	mov	rsi, rax
	mov	edi, ecx
	call	lseek@PLT
.L366:
	jmp	.L372
.L406:
	nop
	mov	QWORD PTR -504[rbp], 1
.L362:
	mov	QWORD PTR -472[rbp], 0
	mov	DWORD PTR -540[rbp], 0
	jmp	.L373
.L374:
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	QWORD PTR -416[rbp+rax*8], 0
	add	DWORD PTR -540[rbp], 1
.L373:
	mov	rax, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR 1080[rax]
	cmp	DWORD PTR -540[rbp], eax
	jl	.L374
	mov	QWORD PTR -512[rbp], 0
	jmp	.L375
.L380:
	mov	rax, QWORD PTR -552[rbp]
	lea	rcx, 72[rax]
	mov	rax, QWORD PTR -552[rbp]
	mov	rdx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -512[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	edx, 3
	mov	rsi, rcx
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L376
	add	QWORD PTR -472[rbp], 1
.L376:
	mov	DWORD PTR -540[rbp], 0
	jmp	.L377
.L379:
	mov	eax, DWORD PTR -540[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, 160[rax]
	mov	rax, QWORD PTR -552[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -552[rbp]
	mov	rdx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -512[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	edx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L378
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	rax, QWORD PTR -416[rbp+rax*8]
	lea	rdx, 1[rax]
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	QWORD PTR -416[rbp+rax*8], rdx
.L378:
	add	DWORD PTR -540[rbp], 1
.L377:
	mov	rax, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR 1080[rax]
	cmp	DWORD PTR -540[rbp], eax
	jl	.L379
	add	QWORD PTR -512[rbp], 1
.L375:
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR 1000[rax]
	cmp	QWORD PTR -512[rbp], rax
	jl	.L380
	mov	rax, QWORD PTR -552[rbp]
	mov	rdx, QWORD PTR -472[rbp]
	mov	QWORD PTR 64[rax], rdx
	mov	DWORD PTR -540[rbp], 0
	jmp	.L381
.L382:
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	rdx, QWORD PTR -416[rbp+rax*8]
	mov	rsi, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR -540[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 4
	add	rax, rsi
	add	rax, 152
	mov	QWORD PTR [rax], rdx
	add	DWORD PTR -540[rbp], 1
.L381:
	mov	rax, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR 1080[rax]
	cmp	DWORD PTR -540[rbp], eax
	jl	.L382
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR 64[rax]
	test	rax, rax
	jne	.L383
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	AVI_close
	mov	QWORD PTR AVI_errno[rip], 12
	mov	DWORD PTR -516[rbp], 0
	mov	eax, DWORD PTR -516[rbp]
	jmp	.L400
.L383:
	mov	rdx, QWORD PTR -472[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -552[rbp]
	mov	QWORD PTR 1040[rax], rdx
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR 1040[rax]
	test	rax, rax
	jne	.L384
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	AVI_close
	mov	QWORD PTR AVI_errno[rip], 8
	mov	DWORD PTR -516[rbp], 0
	mov	eax, DWORD PTR -516[rbp]
	jmp	.L400
.L384:
	mov	DWORD PTR -540[rbp], 0
	jmp	.L385
.L387:
	mov	rcx, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR -540[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 152
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L386
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	rax, QWORD PTR -416[rbp+rax*8]
	mov	rdx, rax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	rcx, rax
	mov	rsi, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR -540[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 200
	mov	QWORD PTR [rax], rcx
	mov	rcx, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR -540[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 200
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L386
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	AVI_close
	mov	QWORD PTR AVI_errno[rip], 8
	mov	DWORD PTR -516[rbp], 0
	mov	eax, DWORD PTR -516[rbp]
	jmp	.L400
.L386:
	add	DWORD PTR -540[rbp], 1
.L385:
	mov	rax, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR 1080[rax]
	cmp	DWORD PTR -540[rbp], eax
	jl	.L387
	mov	QWORD PTR -472[rbp], 0
	mov	DWORD PTR -540[rbp], 0
	jmp	.L388
.L389:
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	QWORD PTR -352[rbp+rax*8], 0
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	rdx, QWORD PTR -352[rbp+rax*8]
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	QWORD PTR -416[rbp+rax*8], rdx
	add	DWORD PTR -540[rbp], 1
.L388:
	mov	rax, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR 1080[rax]
	cmp	DWORD PTR -540[rbp], eax
	jl	.L389
	cmp	QWORD PTR -504[rbp], 1
	je	.L390
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR 1072[rax]
	add	rax, 4
	jmp	.L391
.L390:
	mov	eax, 8
.L391:
	mov	QWORD PTR -440[rbp], rax
	mov	QWORD PTR -512[rbp], 0
	jmp	.L392
.L397:
	mov	rax, QWORD PTR -552[rbp]
	lea	rcx, 72[rax]
	mov	rax, QWORD PTR -552[rbp]
	mov	rdx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -512[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	edx, 3
	mov	rsi, rcx
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L393
	mov	rax, QWORD PTR -552[rbp]
	mov	rdx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -512[rbp]
	sal	rax, 4
	add	rax, rdx
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -552[rbp]
	mov	rsi, QWORD PTR 1040[rax]
	mov	rcx, QWORD PTR -472[rbp]
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	lea	rbx, [rsi+rax]
	mov	rdi, rdx
	call	str2ulong
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR -552[rbp]
	mov	rdx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -512[rbp]
	sal	rax, 4
	add	rax, rdx
	add	rax, 8
	mov	rdi, rax
	call	str2ulong
	mov	rcx, rax
	mov	rsi, QWORD PTR -440[rbp]
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, QWORD PTR 1040[rax]
	mov	rdx, QWORD PTR -472[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rdi
	lea	rdx, [rcx+rsi]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -552[rbp]
	mov	rdx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -512[rbp]
	sal	rax, 4
	add	rax, rdx
	lea	rdx, 12[rax]
	mov	rax, QWORD PTR -552[rbp]
	mov	rsi, QWORD PTR 1040[rax]
	mov	rcx, QWORD PTR -472[rbp]
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	lea	rbx, [rsi+rax]
	mov	rdi, rdx
	call	str2ulong
	mov	QWORD PTR 16[rbx], rax
	add	QWORD PTR -472[rbp], 1
.L393:
	mov	DWORD PTR -540[rbp], 0
	jmp	.L394
.L396:
	mov	eax, DWORD PTR -540[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, 160[rax]
	mov	rax, QWORD PTR -552[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -552[rbp]
	mov	rdx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -512[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	edx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L395
	mov	rax, QWORD PTR -552[rbp]
	mov	rdx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -512[rbp]
	sal	rax, 4
	add	rax, rdx
	add	rax, 8
	mov	rdi, rax
	call	str2ulong
	mov	rcx, rax
	mov	rsi, QWORD PTR -440[rbp]
	mov	rdi, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR -540[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rdi
	add	rax, 200
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	rax, QWORD PTR -416[rbp+rax*8]
	mov	rdi, rax
	mov	rax, rdi
	add	rax, rax
	add	rax, rdi
	sal	rax, 3
	add	rax, rdx
	lea	rdx, [rcx+rsi]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -552[rbp]
	mov	rdx, QWORD PTR 1032[rax]
	mov	rax, QWORD PTR -512[rbp]
	sal	rax, 4
	add	rax, rdx
	lea	rdx, 12[rax]
	mov	rsi, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR -540[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 4
	add	rax, rsi
	add	rax, 200
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	rax, QWORD PTR -416[rbp+rax*8]
	mov	rsi, rax
	mov	rax, rsi
	add	rax, rax
	add	rax, rsi
	sal	rax, 3
	lea	rbx, [rcx+rax]
	mov	rdi, rdx
	call	str2ulong
	mov	QWORD PTR 8[rbx], rax
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	rcx, QWORD PTR -352[rbp+rax*8]
	mov	rsi, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR -540[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 200
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	rax, QWORD PTR -416[rbp+rax*8]
	mov	rsi, rax
	mov	rax, rsi
	add	rax, rax
	add	rax, rsi
	sal	rax, 3
	add	rax, rdx
	mov	rdx, rcx
	mov	QWORD PTR 16[rax], rdx
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	rax, QWORD PTR -352[rbp+rax*8]
	mov	rsi, rax
	mov	rcx, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR -540[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 200
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	rax, QWORD PTR -416[rbp+rax*8]
	mov	rcx, rax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	add	rax, rsi
	mov	rdx, rax
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	QWORD PTR -352[rbp+rax*8], rdx
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	rax, QWORD PTR -416[rbp+rax*8]
	lea	rdx, 1[rax]
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	QWORD PTR -416[rbp+rax*8], rdx
.L395:
	add	DWORD PTR -540[rbp], 1
.L394:
	mov	rax, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR 1080[rax]
	cmp	DWORD PTR -540[rbp], eax
	jl	.L396
	add	QWORD PTR -512[rbp], 1
.L392:
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR 1000[rax]
	cmp	QWORD PTR -512[rbp], rax
	jl	.L397
	mov	DWORD PTR -540[rbp], 0
	jmp	.L398
.L399:
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	rdx, QWORD PTR -352[rbp+rax*8]
	mov	rsi, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR -540[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 4
	add	rax, rsi
	add	rax, 144
	mov	QWORD PTR [rax], rdx
	add	DWORD PTR -540[rbp], 1
.L398:
	mov	rax, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR 1080[rax]
	cmp	DWORD PTR -540[rbp], eax
	jl	.L399
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR 1072[rax]
	mov	rcx, rax
	mov	rax, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	rax, QWORD PTR -552[rbp]
	mov	QWORD PTR 80[rax], 0
	mov	DWORD PTR -516[rbp], 0
	mov	eax, DWORD PTR -516[rbp]
.L400:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L401
	call	__stack_chk_fail@PLT
.L401:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE31:
	.size	avi_parse_input_file, .-avi_parse_input_file
	.globl	AVI_video_frames
	.type	AVI_video_frames, @function
AVI_video_frames:
.LFB32:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 64[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE32:
	.size	AVI_video_frames, .-AVI_video_frames
	.globl	AVI_video_width
	.type	AVI_video_width, @function
AVI_video_width:
.LFB33:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE33:
	.size	AVI_video_width, .-AVI_video_width
	.globl	AVI_video_height
	.type	AVI_video_height, @function
AVI_video_height:
.LFB34:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE34:
	.size	AVI_video_height, .-AVI_video_height
	.globl	AVI_frame_rate
	.type	AVI_frame_rate, @function
AVI_frame_rate:
.LFB35:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR 32[rax]
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE35:
	.size	AVI_frame_rate, .-AVI_frame_rate
	.globl	AVI_video_compressor
	.type	AVI_video_compressor, @function
AVI_video_compressor:
.LFB36:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 48
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE36:
	.size	AVI_video_compressor, .-AVI_video_compressor
	.globl	AVI_max_video_chunk
	.type	AVI_max_video_chunk, @function
AVI_max_video_chunk:
.LFB37:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE37:
	.size	AVI_max_video_chunk, .-AVI_max_video_chunk
	.globl	AVI_audio_tracks
	.type	AVI_audio_tracks, @function
AVI_audio_tracks:
.LFB38:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1080[rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE38:
	.size	AVI_audio_tracks, .-AVI_audio_tracks
	.globl	AVI_audio_channels
	.type	AVI_audio_channels, @function
AVI_audio_channels:
.LFB39:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 104
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE39:
	.size	AVI_audio_channels, .-AVI_audio_channels
	.globl	AVI_audio_mp3rate
	.type	AVI_audio_mp3rate, @function
AVI_audio_mp3rate:
.LFB40:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	sub	rax, -128
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE40:
	.size	AVI_audio_mp3rate, .-AVI_audio_mp3rate
	.globl	AVI_audio_bits
	.type	AVI_audio_bits, @function
AVI_audio_bits:
.LFB41:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -24[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE41:
	.size	AVI_audio_bits, .-AVI_audio_bits
	.globl	AVI_audio_format
	.type	AVI_audio_format, @function
AVI_audio_format:
.LFB42:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 96
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE42:
	.size	AVI_audio_format, .-AVI_audio_format
	.globl	AVI_audio_rate
	.type	AVI_audio_rate, @function
AVI_audio_rate:
.LFB43:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -24[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE43:
	.size	AVI_audio_rate, .-AVI_audio_rate
	.globl	AVI_audio_bytes
	.type	AVI_audio_bytes, @function
AVI_audio_bytes:
.LFB44:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 144
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE44:
	.size	AVI_audio_bytes, .-AVI_audio_bytes
	.globl	AVI_audio_chunks
	.type	AVI_audio_chunks, @function
AVI_audio_chunks:
.LFB45:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 152
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE45:
	.size	AVI_audio_chunks, .-AVI_audio_chunks
	.globl	AVI_audio_codech_offset
	.type	AVI_audio_codech_offset, @function
AVI_audio_codech_offset:
.LFB46:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 184
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE46:
	.size	AVI_audio_codech_offset, .-AVI_audio_codech_offset
	.globl	AVI_audio_codecf_offset
	.type	AVI_audio_codecf_offset, @function
AVI_audio_codecf_offset:
.LFB47:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 192
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE47:
	.size	AVI_audio_codecf_offset, .-AVI_audio_codecf_offset
	.globl	AVI_video_codech_offset
	.type	AVI_video_codech_offset, @function
AVI_video_codech_offset:
.LFB48:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1016[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE48:
	.size	AVI_video_codech_offset, .-AVI_video_codech_offset
	.globl	AVI_video_codecf_offset
	.type	AVI_video_codecf_offset, @function
AVI_video_codecf_offset:
.LFB49:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1024[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE49:
	.size	AVI_video_codecf_offset, .-AVI_video_codecf_offset
	.globl	AVI_frame_size
	.type	AVI_frame_size, @function
AVI_frame_size:
.LFB50:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L444
	mov	QWORD PTR AVI_errno[rip], 7
	mov	QWORD PTR -8[rbp], -1
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L445
.L444:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1040[rax]
	test	rax, rax
	jne	.L446
	mov	QWORD PTR AVI_errno[rip], 13
	mov	QWORD PTR -8[rbp], -1
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L445
.L446:
	cmp	QWORD PTR -32[rbp], 0
	js	.L447
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 64[rax]
	cmp	QWORD PTR -32[rbp], rax
	jl	.L448
.L447:
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L445
.L448:
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 1040[rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
.L445:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE50:
	.size	AVI_frame_size, .-AVI_frame_size
	.globl	AVI_audio_size
	.type	AVI_audio_size, @function
AVI_audio_size:
.LFB51:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L450
	mov	QWORD PTR AVI_errno[rip], 7
	mov	QWORD PTR -8[rbp], -1
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L451
.L450:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 200
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L452
	mov	QWORD PTR AVI_errno[rip], 13
	mov	QWORD PTR -8[rbp], -1
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L451
.L452:
	cmp	QWORD PTR -32[rbp], 0
	js	.L453
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 152
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -32[rbp], rax
	jl	.L454
.L453:
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L451
.L454:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 200
	mov	rcx, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
.L451:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE51:
	.size	AVI_audio_size, .-AVI_audio_size
	.globl	AVI_get_video_position
	.type	AVI_get_video_position, @function
AVI_get_video_position:
.LFB52:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L456
	mov	QWORD PTR AVI_errno[rip], 7
	mov	QWORD PTR -8[rbp], -1
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L457
.L456:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1040[rax]
	test	rax, rax
	jne	.L458
	mov	QWORD PTR AVI_errno[rip], 13
	mov	QWORD PTR -8[rbp], -1
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L457
.L458:
	cmp	QWORD PTR -32[rbp], 0
	js	.L459
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 64[rax]
	cmp	QWORD PTR -32[rbp], rax
	jl	.L460
.L459:
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L457
.L460:
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 1040[rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
.L457:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE52:
	.size	AVI_get_video_position, .-AVI_get_video_position
	.globl	AVI_seek_start
	.type	AVI_seek_start, @function
AVI_seek_start:
.LFB53:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L462
	mov	QWORD PTR AVI_errno[rip], 7
	mov	DWORD PTR -4[rbp], -1
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L463
.L462:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1072[rax]
	mov	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 80[rax], 0
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -4[rbp]
.L463:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE53:
	.size	AVI_seek_start, .-AVI_seek_start
	.globl	AVI_set_video_position
	.type	AVI_set_video_position, @function
AVI_set_video_position:
.LFB54:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L465
	mov	QWORD PTR AVI_errno[rip], 7
	mov	DWORD PTR -4[rbp], -1
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L466
.L465:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1040[rax]
	test	rax, rax
	jne	.L467
	mov	QWORD PTR AVI_errno[rip], 13
	mov	DWORD PTR -4[rbp], -1
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L466
.L467:
	cmp	QWORD PTR -32[rbp], 0
	jns	.L468
	mov	QWORD PTR -32[rbp], 0
.L468:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 80[rax], rdx
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -4[rbp]
.L466:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE54:
	.size	AVI_set_video_position, .-AVI_set_video_position
	.globl	AVI_set_audio_bitrate
	.type	AVI_set_audio_bitrate, @function
AVI_set_audio_bitrate:
.LFB55:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rax, 1
	jne	.L470
	mov	QWORD PTR AVI_errno[rip], 7
	mov	DWORD PTR -4[rbp], -1
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L471
.L470:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	lea	rdx, 128[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rdx], rax
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -4[rbp]
.L471:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE55:
	.size	AVI_set_audio_bitrate, .-AVI_set_audio_bitrate
	.globl	AVI_read_frame
	.type	AVI_read_frame, @function
AVI_read_frame:
.LFB56:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L473
	mov	QWORD PTR AVI_errno[rip], 7
	mov	QWORD PTR -8[rbp], -1
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L474
.L473:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1040[rax]
	test	rax, rax
	jne	.L475
	mov	QWORD PTR AVI_errno[rip], 13
	mov	QWORD PTR -8[rbp], -1
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L474
.L475:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 80[rax]
	test	rax, rax
	js	.L476
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 80[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 64[rax]
	cmp	rdx, rax
	jl	.L477
.L476:
	mov	QWORD PTR -8[rbp], -1
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L474
.L477:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 1040[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 80[rax]
	mov	rcx, rax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 1040[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 80[rax]
	mov	rcx, rax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	rax, 16
	sete	al
	movzx	edx, al
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 1040[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 80[rax]
	mov	rcx, rax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	mov	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	edi, ecx
	call	avi_read
	mov	rdx, QWORD PTR -16[rbp]
	cmp	rax, rdx
	je	.L478
	mov	QWORD PTR AVI_errno[rip], 3
	mov	QWORD PTR -8[rbp], -1
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L474
.L478:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 80[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 80[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
.L474:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE56:
	.size	AVI_read_frame, .-AVI_read_frame
	.globl	AVI_set_audio_position
	.type	AVI_set_audio_position, @function
AVI_set_audio_position:
.LFB57:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L480
	mov	QWORD PTR AVI_errno[rip], 7
	mov	DWORD PTR -28[rbp], -1
	mov	eax, DWORD PTR -28[rbp]
	jmp	.L481
.L480:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 200
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L482
	mov	QWORD PTR AVI_errno[rip], 13
	mov	DWORD PTR -28[rbp], -1
	mov	eax, DWORD PTR -28[rbp]
	jmp	.L481
.L482:
	cmp	QWORD PTR -48[rbp], 0
	jns	.L483
	mov	QWORD PTR -48[rbp], 0
.L483:
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 152
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L484
.L486:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rdx, rax
	shr	rdx, 63
	add	rax, rdx
	sar	rax
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 200
	mov	rcx, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -48[rbp]
	cmp	rdx, rax
	jbe	.L485
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L484
.L485:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
.L484:
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, 1
	cmp	QWORD PTR -24[rbp], rax
	jl	.L486
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	lea	rdx, 168[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rcx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rsi, QWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 200
	mov	rsi, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	rax, QWORD PTR 16[rax]
	sub	rcx, rax
	mov	rdx, rcx
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, rdx
	mov	rsi, QWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 176
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
.L481:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE57:
	.size	AVI_set_audio_position, .-AVI_set_audio_position
	.globl	AVI_read_audio
	.type	AVI_read_audio, @function
AVI_read_audio:
.LFB58:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L488
	mov	QWORD PTR AVI_errno[rip], 7
	mov	QWORD PTR -8[rbp], -1
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L489
.L488:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 200
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L490
	mov	QWORD PTR AVI_errno[rip], 13
	mov	QWORD PTR -8[rbp], -1
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L489
.L490:
	mov	QWORD PTR -40[rbp], 0
	jmp	.L491
.L497:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 200
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rsi, QWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 168
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rsi, QWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 176
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	mov	rax, rcx
	sub	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L492
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 168
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rsi, QWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 152
	mov	rax, QWORD PTR [rax]
	sub	rax, 1
	cmp	rcx, rax
	jl	.L493
	mov	rax, QWORD PTR -40[rbp]
	jmp	.L489
.L493:
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR 1084[rax]
	mov	rsi, QWORD PTR -56[rbp]
	movsx	rcx, edx
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 4
	add	rax, rsi
	add	rax, 168
	mov	rax, QWORD PTR [rax]
	lea	rcx, 1[rax]
	mov	rsi, QWORD PTR -56[rbp]
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 168
	mov	QWORD PTR [rax], rcx
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 176
	mov	QWORD PTR [rax], 0
	jmp	.L491
.L492:
	mov	rax, QWORD PTR -72[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jge	.L494
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L495
.L494:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -32[rbp], rax
.L495:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 200
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rsi, QWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 168
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rsi, QWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 176
	mov	rax, QWORD PTR [rax]
	add	rax, rcx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, ecx
	call	lseek@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	add	rcx, rdx
	mov	rdx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR [rdx]
	mov	edi, edx
	mov	rdx, rax
	mov	rsi, rcx
	call	avi_read
	mov	rdx, QWORD PTR -32[rbp]
	cmp	rax, rdx
	je	.L496
	mov	QWORD PTR AVI_errno[rip], 3
	mov	QWORD PTR -8[rbp], -1
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L489
.L496:
	mov	rax, QWORD PTR -32[rbp]
	sub	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	add	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rcx, QWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rcx
	add	rax, 176
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 1084[rax]
	mov	rdx, QWORD PTR -32[rbp]
	add	rcx, rdx
	mov	rsi, QWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	add	rax, rsi
	add	rax, 176
	mov	QWORD PTR [rax], rcx
.L491:
	cmp	QWORD PTR -72[rbp], 0
	jg	.L497
	mov	rax, QWORD PTR -40[rbp]
.L489:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE58:
	.size	AVI_read_audio, .-AVI_read_audio
	.globl	AVI_read_data
	.type	AVI_read_data, @function
AVI_read_data:
.LFB59:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -72[rbp], r8
	mov	QWORD PTR -80[rbp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L499
	mov	DWORD PTR -20[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L510
.L499:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	lea	rax, -16[rbp]
	mov	edx, 8
	mov	rsi, rax
	mov	edi, ecx
	call	avi_read
	cmp	rax, 8
	je	.L501
	mov	DWORD PTR -20[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L510
.L501:
	lea	rax, -16[rbp]
	mov	edx, 4
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L502
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 1
	mov	esi, 4
	mov	edi, eax
	call	lseek@PLT
	jmp	.L503
.L502:
	lea	rax, -16[rbp]
	add	rax, 4
	mov	rdi, rax
	call	str2ulong
	add	eax, 1
	and	eax, -2
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, 72[rax]
	lea	rax, -16[rbp]
	mov	edx, 3
	mov	rsi, rcx
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L504
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 80[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 80[rax], rdx
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	cmp	QWORD PTR -56[rbp], rax
	jge	.L505
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	rdx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rdx]
	mov	ecx, edx
	mov	edx, 1
	mov	rsi, rax
	mov	edi, ecx
	call	lseek@PLT
	mov	DWORD PTR -20[rbp], -1
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L510
.L505:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	edi, ecx
	call	avi_read
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L506
	mov	DWORD PTR -20[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L510
.L506:
	mov	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L510
.L504:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 1084[rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 4
	lea	rdx, 160[rax]
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, [rdx+rax]
	lea	rax, -16[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	strncasecmp@PLT
	test	eax, eax
	jne	.L507
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	cmp	QWORD PTR -72[rbp], rax
	jge	.L508
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	rdx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rdx]
	mov	ecx, edx
	mov	edx, 1
	mov	rsi, rax
	mov	edi, ecx
	call	lseek@PLT
	mov	DWORD PTR -20[rbp], -2
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L510
.L508:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	mov	edi, ecx
	call	avi_read
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L509
	mov	DWORD PTR -20[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L510
.L509:
	mov	DWORD PTR -20[rbp], 2
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L510
.L507:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	rdx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rdx]
	mov	ecx, edx
	mov	edx, 1
	mov	rsi, rax
	mov	edi, ecx
	call	lseek@PLT
	test	rax, rax
	jns	.L499
	mov	DWORD PTR -20[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L510
.L503:
	jmp	.L499
.L510:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L511
	call	__stack_chk_fail@PLT
.L511:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE59:
	.size	AVI_read_data, .-AVI_read_data
	.globl	avi_errors
	.section	.rodata
.LC26:
	.string	"avilib - No Error"
	.align 8
.LC27:
	.string	"avilib - AVI file size limit reached"
	.align 8
.LC28:
	.string	"avilib - Error opening AVI file"
	.align 8
.LC29:
	.string	"avilib - Error reading from AVI file"
	.align 8
.LC30:
	.string	"avilib - Error writing to AVI file"
	.align 8
.LC31:
	.string	"avilib - Error writing index (file may still be useable)"
	.align 8
.LC32:
	.string	"avilib - Error closing AVI file"
	.align 8
.LC33:
	.string	"avilib - Operation (read/write) not permitted"
	.align 8
.LC34:
	.string	"avilib - Out of memory (malloc failed)"
.LC35:
	.string	"avilib - Not an AVI file"
	.align 8
.LC36:
	.string	"avilib - AVI file has no header list (corrupted?)"
	.align 8
.LC37:
	.string	"avilib - AVI file has no MOVI list (corrupted?)"
	.align 8
.LC38:
	.string	"avilib - AVI file has no video data"
	.align 8
.LC39:
	.string	"avilib - operation needs an index"
.LC40:
	.string	"avilib - Unkown Error"
	.section	.data.rel.local,"aw"
	.align 32
	.type	avi_errors, @object
	.size	avi_errors, 120
avi_errors:
	.quad	.LC26
	.quad	.LC27
	.quad	.LC28
	.quad	.LC29
	.quad	.LC30
	.quad	.LC31
	.quad	.LC32
	.quad	.LC33
	.quad	.LC34
	.quad	.LC35
	.quad	.LC36
	.quad	.LC37
	.quad	.LC38
	.quad	.LC39
	.quad	.LC40
	.data
	.align 4
	.type	num_avi_errors, @object
	.size	num_avi_errors, 4
num_avi_errors:
	.long	15
	.local	error_string
	.comm	error_string,4096,32
	.section	.rodata
.LC41:
	.string	"%s: %s\n"
.LC42:
	.string	"REASON"
	.text
	.globl	AVI_print_error
	.type	AVI_print_error, @function
AVI_print_error:
.LFB60:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR AVI_errno[rip]
	test	rax, rax
	js	.L513
	mov	eax, DWORD PTR num_avi_errors[rip]
	movsx	rdx, eax
	mov	rax, QWORD PTR AVI_errno[rip]
	cmp	rdx, rax
	jg	.L514
.L513:
	mov	eax, DWORD PTR num_avi_errors[rip]
	sub	eax, 1
	jmp	.L515
.L514:
	mov	rax, QWORD PTR AVI_errno[rip]
.L515:
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, avi_errors[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR AVI_errno[rip]
	cmp	rax, 2
	je	.L516
	mov	rax, QWORD PTR AVI_errno[rip]
	cmp	rax, 3
	je	.L516
	mov	rax, QWORD PTR AVI_errno[rip]
	cmp	rax, 4
	je	.L516
	mov	rax, QWORD PTR AVI_errno[rip]
	cmp	rax, 5
	je	.L516
	mov	rax, QWORD PTR AVI_errno[rip]
	cmp	rax, 6
	jne	.L519
.L516:
	lea	rdi, .LC42[rip]
	call	perror@PLT
	nop
.L519:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE60:
	.size	AVI_print_error, .-AVI_print_error
	.section	.rodata
.LC43:
	.string	"%s - %s"
	.text
	.globl	AVI_strerror
	.type	AVI_strerror, @function
AVI_strerror:
.LFB61:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR AVI_errno[rip]
	test	rax, rax
	js	.L521
	mov	eax, DWORD PTR num_avi_errors[rip]
	movsx	rdx, eax
	mov	rax, QWORD PTR AVI_errno[rip]
	cmp	rdx, rax
	jg	.L522
.L521:
	mov	eax, DWORD PTR num_avi_errors[rip]
	sub	eax, 1
	jmp	.L523
.L522:
	mov	rax, QWORD PTR AVI_errno[rip]
.L523:
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR AVI_errno[rip]
	cmp	rax, 2
	je	.L524
	mov	rax, QWORD PTR AVI_errno[rip]
	cmp	rax, 3
	je	.L524
	mov	rax, QWORD PTR AVI_errno[rip]
	cmp	rax, 4
	je	.L524
	mov	rax, QWORD PTR AVI_errno[rip]
	cmp	rax, 5
	je	.L524
	mov	rax, QWORD PTR AVI_errno[rip]
	cmp	rax, 6
	jne	.L525
.L524:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, avi_errors[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC43[rip]
	lea	rdi, error_string[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, error_string[rip]
	jmp	.L526
.L525:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, avi_errors[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
.L526:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE61:
	.size	AVI_strerror, .-AVI_strerror
	.globl	AVI_max_size
	.type	AVI_max_size, @function
AVI_max_size:
.LFB62:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], -16779265
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE62:
	.size	AVI_max_size, .-AVI_max_size
	.section	.rodata
	.align 8
.LC2:
	.long	-755914244
	.long	1062232653
	.align 8
.LC3:
	.long	0
	.long	1093567616
	.align 8
.LC4:
	.long	0
	.long	1071644672
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"462679.c"
	.text
	.comm	AVI_errno,4,4
	.local	id_str
	.comm	id_str,64,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	avi_read, %function
avi_read:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L5:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r1, r2, r3
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	read
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-12]
	b	.L4
.L3:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-12]
.L2:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bcc	.L5
	ldr	r3, [fp, #-12]
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	avi_read, .-avi_read
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	avi_write, %function
avi_write:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L7
.L8:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r1, r2, r3
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	write
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-12]
.L7:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bcc	.L8
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	avi_write, .-avi_write
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	long2str, %function
long2str:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	asr	r2, r3, #8
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	asr	r2, r3, #16
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	lsr	r2, r3, #24
	ldr	r3, [fp, #-8]
	add	r3, r3, #3
	and	r2, r2, #255
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	long2str, .-long2str
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	str2ulong, %function
str2ulong:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	str2ulong, .-str2ulong
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	str2ushort, %function
str2ushort:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	str2ushort, .-str2ushort
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	avi_sampsize, %function
avi_sampsize:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #72
	ldr	r3, [r3]
	add	r3, r3, #7
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	mov	r0, r3
	ldr	r1, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	mul	r3, r0, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	bgt	.L17
	mov	r3, #4
	str	r3, [fp, #-8]
.L17:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	avi_sampsize, .-avi_sampsize
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	avi_add_chunk, %function
avi_add_chunk:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r2, #4
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #16
	add	r3, r3, #4
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	long2str
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	bic	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	sub	r1, fp, #16
	mov	r2, #8
	mov	r0, r3
	bl	avi_write
	mov	r3, r0
	cmp	r3, #8
	bne	.L20
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	avi_write
	mov	r2, r0
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	beq	.L21
.L20:
	ldr	r3, [fp, #-24]
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #508]
	mov	r2, #0
	mov	r1, r3
	bl	lseek
	ldr	r3, .L25+4
	mov	r2, #4
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	b	.L23
.L21:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #508]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	add	r2, r3, #8
	ldr	r3, [fp, #-24]
	str	r2, [r3, #508]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
.L23:
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC0
	.word	AVI_errno
	.size	avi_add_chunk, .-avi_add_chunk
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	avi_add_index_entry, %function
avi_add_index_entry:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #512]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #516]
	cmp	r2, r3
	blt	.L28
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #516]
	add	r3, r3, #4096
	lsl	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L29
	ldr	r3, .L32
	mov	r2, #8
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L30
.L29:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #516]
	add	r2, r3, #4096
	ldr	r3, [fp, #-16]
	str	r2, [r3, #516]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #528]
.L28:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #512]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r2, #4
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #512]
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r3, r3, #4
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	long2str
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #512]
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r3, r3, #8
	ldr	r2, [fp, #-28]
	mov	r1, r2
	mov	r0, r3
	bl	long2str
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #512]
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r3, r3, #12
	ldr	r2, [fp, #4]
	mov	r1, r2
	mov	r0, r3
	bl	long2str
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #512]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #512]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #56]
	ldr	r2, [fp, #4]
	cmp	r2, r3
	bls	.L31
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #4]
	str	r2, [r3, #56]
.L31:
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	AVI_errno
	.size	avi_add_index_entry, .-avi_add_index_entry
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	AVI_open_output_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_open_output_file, %function
AVI_open_output_file:
	@ args = 0, pretend = 0, frame = 2080
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2080
	str	r0, [fp, #-2080]
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2068]
	mov	r0, #560
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-2064]
	ldr	r3, [fp, #-2064]
	cmp	r3, #0
	bne	.L35
	ldr	r3, .L43+4
	mov	r2, #8
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-2060]
	ldr	r3, [fp, #-2060]
	b	.L41
.L35:
	mov	r2, #560
	mov	r1, #0
	ldr	r0, [fp, #-2064]
	bl	memset
	ldr	r3, [fp, #-2068]
	mvn	r3, r3
	and	r3, r3, #420
	mov	r2, r3
	mov	r1, #66
	ldr	r0, [fp, #-2080]
	bl	open
	mov	r2, r0
	ldr	r3, [fp, #-2064]
	str	r2, [r3]
	ldr	r3, [fp, #-2064]
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L37
	ldr	r3, .L43+4
	mov	r2, #2
	str	r2, [r3]
	ldr	r0, [fp, #-2064]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-2060]
	ldr	r3, [fp, #-2060]
	b	.L41
.L37:
	mov	r3, #0
	str	r3, [fp, #-2072]
	b	.L38
.L39:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2072]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-2072]
	add	r3, r3, #1
	str	r3, [fp, #-2072]
.L38:
	ldr	r3, [fp, #-2072]
	cmp	r3, #2048
	blt	.L39
	ldr	r3, [fp, #-2064]
	ldr	r0, [r3]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #2048
	mov	r1, r3
	bl	avi_write
	mov	r3, r0
	str	r3, [fp, #-2072]
	ldr	r3, [fp, #-2072]
	cmp	r3, #2048
	beq	.L40
	ldr	r3, [fp, #-2064]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L43+4
	mov	r2, #4
	str	r2, [r3]
	ldr	r0, [fp, #-2064]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-2060]
	ldr	r3, [fp, #-2060]
	b	.L41
.L40:
	ldr	r3, [fp, #-2064]
	mov	r2, #2048
	str	r2, [r3, #508]
	ldr	r3, [fp, #-2064]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-2064]
	mov	r2, #0
	str	r2, [r3, #552]
	ldr	r3, [fp, #-2064]
	mov	r2, #0
	str	r2, [r3, #556]
	ldr	r3, [fp, #-2064]
.L41:
	ldr	r2, .L43
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC1
	.word	AVI_errno
	.size	AVI_open_output_file, .-AVI_open_output_file
	.section	.rodata
	.align	2
.LC2:
	.ascii	"RGB\000"
	.text
	.align	2
	.global	AVI_set_video
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_set_video, %function
AVI_set_video:
	@ args = 12, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #1
	beq	.L50
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #12]
	ldr	r1, [fp, #-8]
	ldmib	fp, {r2-r3}
	str	r2, [r1, #16]
	str	r3, [r1, #20]
	mov	r2, #3
	ldr	r1, .L51
	ldr	r0, [fp, #12]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L48
	ldr	r3, [fp, #-8]
	add	r3, r3, #24
	mov	r2, #4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L49
.L48:
	ldr	r3, [fp, #-8]
	add	r3, r3, #24
	mov	r2, #4
	ldr	r1, [fp, #12]
	mov	r0, r3
	bl	memcpy
.L49:
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3, #28]
	ldr	r0, [fp, #-8]
	bl	avi_update_header
	b	.L45
.L50:
	nop
.L45:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC2
	.size	AVI_set_video, .-AVI_set_video
	.section	.rodata
	.align	2
.LC3:
	.ascii	"error - only %d audio tracks supported\012\000"
	.text
	.align	2
	.global	AVI_set_audio
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_set_audio, %function
AVI_set_audio:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #1
	beq	.L57
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #552]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #556]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #552]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3, #552]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #552]
	cmp	r3, #8
	ble	.L56
	ldr	r3, .L58
	ldr	r3, [r3]
	mov	r2, #8
	ldr	r1, .L58+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L56:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #556]
	ldr	r1, [fp, #-8]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #68
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #72
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #556]
	ldr	r1, [fp, #-8]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r2, [fp, #4]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #76
	ldr	r2, [fp, #8]
	str	r2, [r3]
	ldr	r0, [fp, #-8]
	bl	avi_update_header
	b	.L53
.L57:
	nop
.L53:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L59:
	.align	2
.L58:
	.word	stderr
	.word	.LC3
	.size	AVI_set_audio, .-AVI_set_audio
	.global	__aeabi_dcmplt
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_d2iz
	.global	__aeabi_ddiv
	.section	.rodata
	.align	2
.LC4:
	.ascii	"RIFF\000"
	.align	2
.LC5:
	.ascii	"AVI \000"
	.align	2
.LC6:
	.ascii	"LIST\000"
	.align	2
.LC7:
	.ascii	"hdrl\000"
	.align	2
.LC8:
	.ascii	"avih\000"
	.align	2
.LC9:
	.ascii	"strl\000"
	.align	2
.LC10:
	.ascii	"strh\000"
	.align	2
.LC11:
	.ascii	"vids\000"
	.align	2
.LC12:
	.ascii	"strf\000"
	.align	2
.LC13:
	.ascii	"auds\000"
	.global	__aeabi_idiv
	.align	2
.LC14:
	.ascii	"AVI_close_output_file: # of header bytes too small\012"
	.ascii	"\000"
	.align	2
.LC15:
	.ascii	"JUNK\000"
	.align	2
.LC16:
	.ascii	"0.00\000"
	.align	2
.LC17:
	.ascii	"my\000"
	.align	2
.LC18:
	.ascii	"%s-%s\000"
	.align	2
.LC19:
	.ascii	"movi\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	avi_update_header
	.syntax unified
	.arm
	.fpu softvfp
	.type	avi_update_header, %function
avi_update_header:
	@ args = 0, pretend = 0, frame = 2112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #2112
	sub	sp, sp, #4
	str	r0, [fp, #-2120]
	ldr	r3, .L162+108
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L162
	str	r3, [fp, #-2092]
	mov	r3, #1
	str	r3, [fp, #-2088]
	ldr	r3, [fp, #-2120]
	add	r1, r3, #16
	ldmia	r1, {r0-r1}
	ldr	r2, .L162+4
	ldr	r3, .L162+8
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L161
	mov	r3, #0
	str	r3, [fp, #-2108]
	mov	r3, #0
	str	r3, [fp, #-2112]
	b	.L63
.L161:
	ldr	r3, [fp, #-2120]
	add	r1, r3, #16
	ldmia	r1, {r0-r1}
	mov	r2, #0
	ldr	r3, .L162+12
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L162+16
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-2108]
	ldr	r3, [fp, #-2120]
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	mov	r0, #0
	ldr	r1, .L162+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L162+16
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-2112]
.L63:
	mov	r3, #0
	str	r3, [fp, #-2096]
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L162+20
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L64
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r1, [fp, #-2092]
	mov	r0, r3
	bl	long2str
.L64:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L65
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L162+24
	mov	r0, r3
	bl	memcpy
.L65:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L66
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L162+92
	mov	r0, r3
	bl	memcpy
.L66:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L67
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L67:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	str	r3, [fp, #-2084]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L68
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L162+28
	mov	r0, r3
	bl	memcpy
.L68:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L69
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L162+32
	mov	r0, r3
	bl	memcpy
.L69:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L70
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #56
	mov	r0, r3
	bl	long2str
.L70:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L71
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r1, [fp, #-2112]
	mov	r0, r3
	bl	long2str
.L71:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L72
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L72:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L73
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L73:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	mov	r3, #256
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2088]
	cmp	r3, #0
	beq	.L74
	ldr	r3, [fp, #-2104]
	orr	r3, r3, #16
	str	r3, [fp, #-2104]
.L74:
	ldr	r3, [fp, #-2088]
	cmp	r3, #0
	beq	.L75
	ldr	r3, [fp, #-2120]
	ldr	r3, [r3, #544]
	cmp	r3, #0
	beq	.L75
	ldr	r3, [fp, #-2104]
	orr	r3, r3, #32
	str	r3, [fp, #-2104]
.L75:
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L76
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r1, [fp, #-2104]
	mov	r0, r3
	bl	long2str
.L76:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L77
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L77:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L78
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L78:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L79
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r2, r3, r2
	ldr	r3, [fp, #-2120]
	ldr	r3, [r3, #552]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	long2str
.L79:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L80
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L80:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L81
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r2, r3, r2
	ldr	r3, [fp, #-2120]
	ldr	r3, [r3, #8]
	mov	r1, r3
	mov	r0, r2
	bl	long2str
.L81:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L82
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r2, r3, r2
	ldr	r3, [fp, #-2120]
	ldr	r3, [r3, #12]
	mov	r1, r3
	mov	r0, r2
	bl	long2str
.L82:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L83
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L83:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L84
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L84:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L85
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L85:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L86
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L86:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L87
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L162+92
	mov	r0, r3
	bl	memcpy
.L87:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L88
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L88:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	str	r3, [fp, #-2080]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L89
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L162+44
	mov	r0, r3
	bl	memcpy
.L89:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L90
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L162+48
	mov	r0, r3
	bl	memcpy
.L90:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L91
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #56
	mov	r0, r3
	bl	long2str
.L91:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L92
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L162+36
	mov	r0, r3
	bl	memcpy
.L92:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L93
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r3, [fp, #-2120]
	add	r3, r3, #24
	mov	r2, #4
	mov	r1, r3
	bl	memcpy
.L93:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L94
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L94:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L95
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L95:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L96
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L96:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L97
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r1, .L162+40
	mov	r0, r3
	bl	long2str
.L97:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L98
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r1, [fp, #-2108]
	mov	r0, r3
	bl	long2str
.L98:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L99
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L99:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L100
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L100:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L101
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L101:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L102
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mvn	r1, #0
	mov	r0, r3
	bl	long2str
.L102:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L103
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L103:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L104
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L104:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L105
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L105:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L106
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L162+56
	mov	r0, r3
	bl	memcpy
.L106:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L107
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #40
	mov	r0, r3
	bl	long2str
.L107:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L108
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #40
	mov	r0, r3
	bl	long2str
.L108:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L109
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r2, r3, r2
	ldr	r3, [fp, #-2120]
	ldr	r3, [r3, #8]
	mov	r1, r3
	mov	r0, r2
	bl	long2str
.L109:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L110
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r2, r3, r2
	ldr	r3, [fp, #-2120]
	ldr	r3, [r3, #12]
	mov	r1, r3
	mov	r0, r2
	bl	long2str
.L110:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+60
	cmp	r3, r2
	bgt	.L111
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-2096]
	add	r3, r3, r2
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-2096]
	add	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-2052]
.L111:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #2
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+60
	cmp	r3, r2
	bgt	.L112
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-2096]
	add	r3, r3, r2
	mov	r2, #24
	strb	r2, [r3]
	ldr	r3, [fp, #-2096]
	add	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-2052]
.L112:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #2
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L113
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r3, [fp, #-2120]
	add	r3, r3, #24
	mov	r2, #4
	mov	r1, r3
	bl	memcpy
.L113:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L114
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r3, [fp, #-2120]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-2120]
	ldr	r2, [r2, #12]
	mul	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	mov	r1, r3
	bl	long2str
.L114:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L115
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L115:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L116
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L116:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L117
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L117:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L118
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L118:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2080]
	sub	r2, r3, #4
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r2, [fp, #-2096]
	ldr	r3, [fp, #-2080]
	sub	r3, r2, r3
	mov	r1, r3
	bl	long2str
	mov	r3, #0
	str	r3, [fp, #-2100]
	b	.L119
.L163:
	.align	2
.L162:
	.word	-16781309
	.word	-755914244
	.word	1062232653
	.word	1093567616
	.word	1071644672
	.word	.LC4
	.word	.LC5
	.word	.LC7
	.word	.LC8
	.word	.LC11
	.word	1000000
	.word	.LC9
	.word	.LC10
	.word	.LC13
	.word	.LC12
	.word	2046
	.word	stderr
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	id_str
	.word	.LC6
	.word	2044
	.word	.LC19
	.word	AVI_errno
	.word	.LC20
.L147:
	ldr	r1, [fp, #-2100]
	ldr	r0, [fp, #-2120]
	bl	avi_sampsize
	str	r0, [fp, #-2068]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L120
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L162+92
	mov	r0, r3
	bl	memcpy
.L120:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L121
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L121:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	str	r3, [fp, #-2080]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L122
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L162+44
	mov	r0, r3
	bl	memcpy
.L122:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L123
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L162+48
	mov	r0, r3
	bl	memcpy
.L123:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L124
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #56
	mov	r0, r3
	bl	long2str
.L124:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L125
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L162+52
	mov	r0, r3
	bl	memcpy
.L125:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L126
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L126:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L127
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L127:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L128
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L128:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L129
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L129:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L130
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r3, [fp, #-2068]
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	mov	r1, r3
	bl	long2str
.L130:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L131
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r1, [fp, #-2120]
	ldr	r2, [fp, #-2100]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #76
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	mov	r1, r3
	bl	long2str
.L131:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L132
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L132:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L133
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r4, r3, r2
	ldr	r1, [fp, #-2120]
	ldr	r2, [fp, #-2100]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #84
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-2068]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	long2str
.L133:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L134
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L134:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L135
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mvn	r1, #0
	mov	r0, r3
	bl	long2str
.L135:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L136
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r3, [fp, #-2068]
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	mov	r1, r3
	bl	long2str
.L136:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L137
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L137:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L138
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L138:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L139
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L162+56
	mov	r0, r3
	bl	memcpy
.L139:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L140
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #16
	mov	r0, r3
	bl	long2str
.L140:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+60
	cmp	r3, r2
	bgt	.L141
	ldr	r1, [fp, #-2120]
	ldr	r3, [fp, #-2100]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	and	r1, r3, #255
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-2096]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	ldr	r1, [fp, #-2120]
	ldr	r3, [fp, #-2100]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	asr	r2, r3, #8
	ldr	r3, [fp, #-2096]
	add	r3, r3, #1
	and	r2, r2, #255
	sub	r1, fp, #12
	add	r3, r1, r3
	strb	r2, [r3, #-2052]
.L141:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #2
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+60
	cmp	r3, r2
	bgt	.L142
	ldr	r1, [fp, #-2120]
	ldr	r3, [fp, #-2100]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	and	r1, r3, #255
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-2096]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	ldr	r1, [fp, #-2120]
	ldr	r3, [fp, #-2100]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	asr	r2, r3, #8
	ldr	r3, [fp, #-2096]
	add	r3, r3, #1
	and	r2, r2, #255
	sub	r1, fp, #12
	add	r3, r1, r3
	strb	r2, [r3, #-2052]
.L142:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #2
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L143
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r1, [fp, #-2120]
	ldr	r2, [fp, #-2100]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #68
	ldr	r3, [r3]
	mov	r1, r3
	bl	long2str
.L143:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L144
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r1, [fp, #-2120]
	ldr	r2, [fp, #-2100]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #76
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	mov	r1, r3
	bl	long2str
.L144:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+60
	cmp	r3, r2
	bgt	.L145
	ldr	r3, [fp, #-2068]
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	and	r1, r3, #255
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-2096]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-2068]
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	asr	r2, r3, #8
	ldr	r3, [fp, #-2096]
	add	r3, r3, #1
	and	r2, r2, #255
	sub	r1, fp, #12
	add	r3, r1, r3
	strb	r2, [r3, #-2052]
.L145:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #2
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+60
	cmp	r3, r2
	bgt	.L146
	ldr	r1, [fp, #-2120]
	ldr	r2, [fp, #-2100]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #72
	ldr	r3, [r3]
	and	r1, r3, #255
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-2096]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	ldr	r1, [fp, #-2120]
	ldr	r2, [fp, #-2100]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #72
	ldr	r3, [r3]
	asr	r2, r3, #8
	ldr	r3, [fp, #-2096]
	add	r3, r3, #1
	and	r2, r2, #255
	sub	r1, fp, #12
	add	r3, r1, r3
	strb	r2, [r3, #-2052]
.L146:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #2
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2080]
	sub	r2, r3, #4
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r2, [fp, #-2096]
	ldr	r3, [fp, #-2080]
	sub	r3, r2, r3
	mov	r1, r3
	bl	long2str
	ldr	r3, [fp, #-2100]
	add	r3, r3, #1
	str	r3, [fp, #-2100]
.L119:
	ldr	r3, [fp, #-2120]
	ldr	r3, [r3, #552]
	ldr	r2, [fp, #-2100]
	cmp	r2, r3
	blt	.L147
	ldr	r3, [fp, #-2084]
	sub	r2, r3, #4
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r2, [fp, #-2096]
	ldr	r3, [fp, #-2084]
	sub	r3, r2, r3
	mov	r1, r3
	bl	long2str
	ldr	r3, [fp, #-2096]
	rsb	r3, r3, #2016
	add	r3, r3, #12
	str	r3, [fp, #-2076]
	ldr	r3, [fp, #-2076]
	cmp	r3, #0
	bgt	.L148
	ldr	r3, .L162+64
	ldr	r3, [r3]
	mov	r2, #51
	mov	r1, #1
	ldr	r0, .L162+68
	bl	fwrite
	mov	r0, #1
	bl	exit
.L148:
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L149
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L162+72
	mov	r0, r3
	bl	memcpy
.L149:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L150
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r1, [fp, #-2076]
	mov	r0, r3
	bl	long2str
.L150:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, [fp, #-2076]
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L162+88
	bl	strlen
	mov	r3, r0
	add	r2, r3, #8
	ldr	r3, [fp, #-2076]
	cmp	r2, r3
	bcs	.L151
	ldr	r3, .L162+76
	ldr	r2, .L162+80
	ldr	r1, .L162+84
	ldr	r0, .L162+88
	bl	sprintf
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r4, r3, r2
	ldr	r0, .L162+88
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L162+88
	mov	r0, r4
	bl	memcpy
.L151:
	ldr	r2, [fp, #-2096]
	ldr	r3, [fp, #-2076]
	add	r3, r2, r3
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L152
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L162+92
	mov	r0, r3
	bl	memcpy
.L152:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L153
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r1, [fp, #-2092]
	mov	r0, r3
	bl	long2str
.L153:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, .L162+96
	cmp	r3, r2
	bgt	.L154
	ldr	r2, [fp, #-2096]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L162+100
	mov	r0, r3
	bl	memcpy
.L154:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #4
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2120]
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	lseek
	mov	r3, r0
	cmp	r3, #0
	blt	.L155
	ldr	r3, [fp, #-2120]
	ldr	r0, [r3]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #2048
	mov	r1, r3
	bl	avi_write
	mov	r3, r0
	cmp	r3, #2048
	bne	.L155
	ldr	r3, [fp, #-2120]
	ldr	r0, [r3]
	ldr	r3, [fp, #-2120]
	ldr	r3, [r3, #508]
	mov	r2, #0
	mov	r1, r3
	bl	lseek
	mov	r3, r0
	cmp	r3, #0
	bge	.L156
.L155:
	ldr	r3, .L162+104
	mov	r2, #6
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-2072]
	ldr	r3, [fp, #-2072]
	b	.L158
.L156:
	mov	r3, #0
	str	r3, [fp, #-2072]
	ldr	r3, [fp, #-2072]
.L158:
	ldr	r2, .L162+108
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L159
	bl	__stack_chk_fail
.L159:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	avi_update_header, .-avi_update_header
	.section	.rodata
	.align	2
.LC21:
	.ascii	"idx1\000"
	.align	2
.LC22:
	.ascii	"INFO\000"
	.align	2
.LC23:
	.ascii	"ISFT\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	avi_close_output_file, %function
avi_close_output_file:
	@ args = 0, pretend = 0, frame = 2120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #2112
	sub	sp, sp, #12
	str	r0, [fp, #-2128]
	ldr	r3, .L272+116
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-2128]
	ldr	r3, [r3, #508]
	sub	r3, r3, #2032
	sub	r3, r3, #12
	str	r3, [fp, #-2100]
	mov	r3, #0
	str	r3, [fp, #-2116]
	ldr	r3, [fp, #-2128]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-2128]
	ldr	r3, [r3, #512]
	lsl	r3, r3, #4
	ldr	r1, .L272
	ldr	r0, [fp, #-2128]
	bl	avi_add_chunk
	str	r0, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-2092]
	ldr	r3, [fp, #-2096]
	cmp	r3, #0
	beq	.L165
	mov	r3, #1
	str	r3, [fp, #-2116]
	ldr	r3, .L272+112
	mov	r2, #5
	str	r2, [r3]
.L165:
	ldr	r3, [fp, #-2128]
	add	r1, r3, #16
	ldmia	r1, {r0-r1}
	ldr	r2, .L272+4
	ldr	r3, .L272+8
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L271
	mov	r3, #0
	str	r3, [fp, #-2120]
	mov	r3, #0
	str	r3, [fp, #-2124]
	b	.L168
.L271:
	ldr	r3, [fp, #-2128]
	add	r1, r3, #16
	ldmia	r1, {r0-r1}
	mov	r2, #0
	ldr	r3, .L272+12
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L272+16
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-2120]
	ldr	r3, [fp, #-2128]
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	mov	r0, #0
	ldr	r1, .L272+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L272+16
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-2124]
.L168:
	mov	r3, #0
	str	r3, [fp, #-2104]
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L272+20
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L169
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r2, r3, r2
	ldr	r3, [fp, #-2128]
	ldr	r3, [r3, #508]
	sub	r3, r3, #8
	mov	r1, r3
	mov	r0, r2
	bl	long2str
.L169:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L170
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L272+24
	mov	r0, r3
	bl	memcpy
.L170:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L171
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L272+100
	mov	r0, r3
	bl	memcpy
.L171:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L172
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L172:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	str	r3, [fp, #-2088]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L173
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L272+28
	mov	r0, r3
	bl	memcpy
.L173:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L174
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L272+32
	mov	r0, r3
	bl	memcpy
.L174:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L175
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #56
	mov	r0, r3
	bl	long2str
.L175:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L176
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r1, [fp, #-2124]
	mov	r0, r3
	bl	long2str
.L176:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L177
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L177:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L178
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L178:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	mov	r3, #256
	str	r3, [fp, #-2112]
	ldr	r3, [fp, #-2092]
	cmp	r3, #0
	beq	.L179
	ldr	r3, [fp, #-2112]
	orr	r3, r3, #16
	str	r3, [fp, #-2112]
.L179:
	ldr	r3, [fp, #-2092]
	cmp	r3, #0
	beq	.L180
	ldr	r3, [fp, #-2128]
	ldr	r3, [r3, #544]
	cmp	r3, #0
	beq	.L180
	ldr	r3, [fp, #-2112]
	orr	r3, r3, #32
	str	r3, [fp, #-2112]
.L180:
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L181
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r1, [fp, #-2112]
	mov	r0, r3
	bl	long2str
.L181:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L182
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r2, r3, r2
	ldr	r3, [fp, #-2128]
	ldr	r3, [r3, #44]
	mov	r1, r3
	mov	r0, r2
	bl	long2str
.L182:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L183
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L183:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L184
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r2, r3, r2
	ldr	r3, [fp, #-2128]
	ldr	r3, [r3, #552]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	long2str
.L184:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L185
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L185:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L186
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r2, r3, r2
	ldr	r3, [fp, #-2128]
	ldr	r3, [r3, #8]
	mov	r1, r3
	mov	r0, r2
	bl	long2str
.L186:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L187
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r2, r3, r2
	ldr	r3, [fp, #-2128]
	ldr	r3, [r3, #12]
	mov	r1, r3
	mov	r0, r2
	bl	long2str
.L187:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L188
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L188:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L189
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L189:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L190
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L190:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L191
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L191:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L192
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L272+100
	mov	r0, r3
	bl	memcpy
.L192:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L193
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L193:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	str	r3, [fp, #-2084]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L194
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L272+44
	mov	r0, r3
	bl	memcpy
.L194:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L195
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L272+48
	mov	r0, r3
	bl	memcpy
.L195:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L196
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #56
	mov	r0, r3
	bl	long2str
.L196:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L197
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L272+36
	mov	r0, r3
	bl	memcpy
.L197:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L198
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r3, [fp, #-2128]
	add	r3, r3, #24
	mov	r2, #4
	mov	r1, r3
	bl	memcpy
.L198:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L199
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L199:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L200
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L200:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L201
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L201:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L202
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r1, .L272+40
	mov	r0, r3
	bl	long2str
.L202:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L203
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r1, [fp, #-2120]
	mov	r0, r3
	bl	long2str
.L203:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L204
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L204:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L205
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r2, r3, r2
	ldr	r3, [fp, #-2128]
	ldr	r3, [r3, #44]
	mov	r1, r3
	mov	r0, r2
	bl	long2str
.L205:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L206
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L206:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L207
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mvn	r1, #0
	mov	r0, r3
	bl	long2str
.L207:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L208
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L208:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L209
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L209:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L210
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L210:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L211
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L272+56
	mov	r0, r3
	bl	memcpy
.L211:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L212
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #40
	mov	r0, r3
	bl	long2str
.L212:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L213
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #40
	mov	r0, r3
	bl	long2str
.L213:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L214
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r2, r3, r2
	ldr	r3, [fp, #-2128]
	ldr	r3, [r3, #8]
	mov	r1, r3
	mov	r0, r2
	bl	long2str
.L214:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L215
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r2, r3, r2
	ldr	r3, [fp, #-2128]
	ldr	r3, [r3, #12]
	mov	r1, r3
	mov	r0, r2
	bl	long2str
.L215:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+60
	cmp	r3, r2
	bgt	.L216
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-2104]
	add	r3, r3, r2
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-2104]
	add	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-2052]
.L216:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #2
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+60
	cmp	r3, r2
	bgt	.L217
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-2104]
	add	r3, r3, r2
	mov	r2, #24
	strb	r2, [r3]
	ldr	r3, [fp, #-2104]
	add	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-2052]
.L217:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #2
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L218
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r3, [fp, #-2128]
	add	r3, r3, #24
	mov	r2, #4
	mov	r1, r3
	bl	memcpy
.L218:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L219
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r3, [fp, #-2128]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-2128]
	ldr	r2, [r2, #12]
	mul	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	mov	r1, r3
	bl	long2str
.L219:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L220
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L220:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L221
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L221:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L222
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L222:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L223
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L223:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2084]
	sub	r2, r3, #4
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r2, [fp, #-2104]
	ldr	r3, [fp, #-2084]
	sub	r3, r2, r3
	mov	r1, r3
	bl	long2str
	mov	r3, #0
	str	r3, [fp, #-2108]
	b	.L224
.L273:
	.align	2
.L272:
	.word	.LC21
	.word	-755914244
	.word	1062232653
	.word	1093567616
	.word	1071644672
	.word	.LC4
	.word	.LC5
	.word	.LC7
	.word	.LC8
	.word	.LC11
	.word	1000000
	.word	.LC9
	.word	.LC10
	.word	.LC13
	.word	.LC12
	.word	2046
	.word	.LC22
	.word	.LC23
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	id_str
	.word	stderr
	.word	.LC14
	.word	.LC15
	.word	.LC6
	.word	2044
	.word	.LC19
	.word	AVI_errno
	.word	.LC24
.L252:
	ldr	r1, [fp, #-2108]
	ldr	r0, [fp, #-2128]
	bl	avi_sampsize
	str	r0, [fp, #-2068]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L225
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L272+100
	mov	r0, r3
	bl	memcpy
.L225:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L226
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L226:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	str	r3, [fp, #-2084]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L227
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L272+44
	mov	r0, r3
	bl	memcpy
.L227:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L228
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L272+48
	mov	r0, r3
	bl	memcpy
.L228:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L229
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #56
	mov	r0, r3
	bl	long2str
.L229:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L230
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L272+52
	mov	r0, r3
	bl	memcpy
.L230:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L231
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L231:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L232
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L232:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L233
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L233:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L234
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L234:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L235
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r3, [fp, #-2068]
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	mov	r1, r3
	bl	long2str
.L235:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L236
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r1, [fp, #-2128]
	ldr	r2, [fp, #-2108]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #76
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	mov	r1, r3
	bl	long2str
.L236:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L237
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L237:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L238
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r4, r3, r2
	ldr	r1, [fp, #-2128]
	ldr	r2, [fp, #-2108]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #84
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-2068]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	long2str
.L238:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L239
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L239:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L240
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mvn	r1, #0
	mov	r0, r3
	bl	long2str
.L240:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L241
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r3, [fp, #-2068]
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	mov	r1, r3
	bl	long2str
.L241:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L242
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L242:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L243
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	long2str
.L243:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L244
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L272+56
	mov	r0, r3
	bl	memcpy
.L244:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L245
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #16
	mov	r0, r3
	bl	long2str
.L245:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+60
	cmp	r3, r2
	bgt	.L246
	ldr	r1, [fp, #-2128]
	ldr	r3, [fp, #-2108]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	and	r1, r3, #255
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-2104]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	ldr	r1, [fp, #-2128]
	ldr	r3, [fp, #-2108]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	asr	r2, r3, #8
	ldr	r3, [fp, #-2104]
	add	r3, r3, #1
	and	r2, r2, #255
	sub	r1, fp, #12
	add	r3, r1, r3
	strb	r2, [r3, #-2052]
.L246:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #2
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+60
	cmp	r3, r2
	bgt	.L247
	ldr	r1, [fp, #-2128]
	ldr	r3, [fp, #-2108]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	and	r1, r3, #255
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-2104]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	ldr	r1, [fp, #-2128]
	ldr	r3, [fp, #-2108]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	asr	r2, r3, #8
	ldr	r3, [fp, #-2104]
	add	r3, r3, #1
	and	r2, r2, #255
	sub	r1, fp, #12
	add	r3, r1, r3
	strb	r2, [r3, #-2052]
.L247:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #2
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L248
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r1, [fp, #-2128]
	ldr	r2, [fp, #-2108]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #68
	ldr	r3, [r3]
	mov	r1, r3
	bl	long2str
.L248:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L249
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r1, [fp, #-2128]
	ldr	r2, [fp, #-2108]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #76
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	mov	r1, r3
	bl	long2str
.L249:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+60
	cmp	r3, r2
	bgt	.L250
	ldr	r3, [fp, #-2068]
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	and	r1, r3, #255
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-2104]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-2068]
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	asr	r2, r3, #8
	ldr	r3, [fp, #-2104]
	add	r3, r3, #1
	and	r2, r2, #255
	sub	r1, fp, #12
	add	r3, r1, r3
	strb	r2, [r3, #-2052]
.L250:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #2
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+60
	cmp	r3, r2
	bgt	.L251
	ldr	r1, [fp, #-2128]
	ldr	r2, [fp, #-2108]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #72
	ldr	r3, [r3]
	and	r1, r3, #255
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-2104]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	ldr	r1, [fp, #-2128]
	ldr	r2, [fp, #-2108]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #72
	ldr	r3, [r3]
	asr	r2, r3, #8
	ldr	r3, [fp, #-2104]
	add	r3, r3, #1
	and	r2, r2, #255
	sub	r1, fp, #12
	add	r3, r1, r3
	strb	r2, [r3, #-2052]
.L251:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #2
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2084]
	sub	r2, r3, #4
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r2, [fp, #-2104]
	ldr	r3, [fp, #-2084]
	sub	r3, r2, r3
	mov	r1, r3
	bl	long2str
	ldr	r3, [fp, #-2108]
	add	r3, r3, #1
	str	r3, [fp, #-2108]
.L224:
	ldr	r3, [fp, #-2128]
	ldr	r3, [r3, #552]
	ldr	r2, [fp, #-2108]
	cmp	r2, r3
	blt	.L252
	ldr	r3, [fp, #-2088]
	sub	r2, r3, #4
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r2, [fp, #-2104]
	ldr	r3, [fp, #-2088]
	sub	r3, r2, r3
	mov	r1, r3
	bl	long2str
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L253
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L272+100
	mov	r0, r3
	bl	memcpy
.L253:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	mov	r3, #76
	str	r3, [fp, #-2080]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L254
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r1, [fp, #-2080]
	mov	r0, r3
	bl	long2str
.L254:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L255
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L272+64
	mov	r0, r3
	bl	memcpy
.L255:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L256
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L272+68
	mov	r0, r3
	bl	memcpy
.L256:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L257
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r1, #64
	mov	r0, r3
	bl	long2str
.L257:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, .L272+72
	ldr	r2, .L272+76
	ldr	r1, .L272+80
	ldr	r0, .L272+84
	bl	sprintf
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #64
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r4, r3, r2
	ldr	r0, .L272+84
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L272+84
	mov	r0, r4
	bl	memcpy
	ldr	r3, [fp, #-2104]
	add	r3, r3, #64
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	rsb	r3, r3, #2016
	add	r3, r3, #12
	str	r3, [fp, #-2076]
	ldr	r3, [fp, #-2076]
	cmp	r3, #0
	bgt	.L258
	ldr	r3, .L272+88
	ldr	r3, [r3]
	mov	r2, #51
	mov	r1, #1
	ldr	r0, .L272+92
	bl	fwrite
	mov	r0, #1
	bl	exit
.L258:
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L259
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L272+96
	mov	r0, r3
	bl	memcpy
.L259:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L260
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r1, [fp, #-2076]
	mov	r0, r3
	bl	long2str
.L260:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, [fp, #-2076]
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r2, [fp, #-2104]
	ldr	r3, [fp, #-2076]
	add	r3, r2, r3
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L261
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L272+100
	mov	r0, r3
	bl	memcpy
.L261:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L262
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, [fp, #-2100]
	mov	r1, r2
	mov	r0, r3
	bl	long2str
.L262:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	ldr	r2, .L272+104
	cmp	r3, r2
	bgt	.L263
	ldr	r2, [fp, #-2104]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r2, #4
	ldr	r1, .L272+108
	mov	r0, r3
	bl	memcpy
.L263:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #4
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2128]
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	lseek
	mov	r3, r0
	cmp	r3, #0
	blt	.L264
	ldr	r3, [fp, #-2128]
	ldr	r0, [r3]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #2048
	mov	r1, r3
	bl	avi_write
	mov	r3, r0
	cmp	r3, #2048
	beq	.L265
.L264:
	ldr	r3, .L272+112
	mov	r2, #6
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-2072]
	ldr	r3, [fp, #-2072]
	b	.L268
.L265:
	ldr	r3, [fp, #-2116]
	cmp	r3, #0
	beq	.L267
	mvn	r3, #0
	str	r3, [fp, #-2072]
	ldr	r3, [fp, #-2072]
	b	.L268
.L267:
	mov	r3, #0
	str	r3, [fp, #-2072]
	ldr	r3, [fp, #-2072]
.L268:
	ldr	r2, .L272+116
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L269
	bl	__stack_chk_fail
.L269:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	avi_close_output_file, .-avi_close_output_file
	.section	.rodata
	.align	2
.LC25:
	.ascii	"0%1dwb\000"
	.align	2
.LC26:
	.ascii	"00db\000"
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	avi_write_data, %function
avi_write_data:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, .L287
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #508]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	ldr	r2, [r2, #512]
	add	r2, r2, #1
	lsl	r2, r2, #4
	add	r3, r3, r2
	add	r3, r3, #16
	ldr	r2, .L287+4
	cmp	r3, r2
	bls	.L275
	ldr	r3, .L287+8
	mov	r2, #1
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	b	.L285
.L275:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #556]
	add	r2, r3, #1
	sub	r3, fp, #16
	ldr	r1, .L287+12
	mov	r0, r3
	bl	sprintf
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L277
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #508]
	sub	r1, fp, #16
	ldr	r3, [fp, #-40]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #0
	ldr	r0, [fp, #-32]
	bl	avi_add_index_entry
	str	r0, [fp, #-24]
	b	.L278
.L277:
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L279
	mov	r2, #16
	b	.L280
.L279:
	mov	r2, #0
.L280:
	ldr	r3, [fp, #-32]
	ldr	r1, [r3, #508]
	ldr	r3, [fp, #-40]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L287+16
	ldr	r0, [fp, #-32]
	bl	avi_add_index_entry
	str	r0, [fp, #-24]
.L278:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L281
	mvn	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	b	.L285
.L281:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L282
	ldr	r3, [fp, #-40]
	sub	r1, fp, #16
	ldr	r2, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	avi_add_chunk
	str	r0, [fp, #-24]
	b	.L283
.L282:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	ldr	r1, .L287+16
	ldr	r0, [fp, #-32]
	bl	avi_add_chunk
	str	r0, [fp, #-24]
.L283:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L284
	mvn	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	b	.L285
.L284:
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
.L285:
	ldr	r2, .L287
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L286
	bl	__stack_chk_fail
.L286:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L288:
	.align	2
.L287:
	.word	.LC27
	.word	-16779265
	.word	AVI_errno
	.word	.LC25
	.word	.LC26
	.size	avi_write_data, .-avi_write_data
	.align	2
	.global	AVI_write_frame
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_write_frame, %function
AVI_write_frame:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #1
	bne	.L290
	ldr	r3, .L293
	mov	r2, #7
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L291
.L290:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #508]
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	mov	r3, #0
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	avi_write_data
	mov	r3, r0
	cmp	r3, #0
	beq	.L292
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L291
.L292:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #536]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #540]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #44]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #44]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
.L291:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L294:
	.align	2
.L293:
	.word	AVI_errno
	.size	AVI_write_frame, .-AVI_write_frame
	.align	2
	.global	AVI_dup_frame
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_dup_frame, %function
AVI_dup_frame:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #1
	bne	.L296
	ldr	r3, .L300
	mov	r2, #7
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L297
.L296:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #536]
	cmp	r3, #0
	bne	.L298
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L297
.L298:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #536]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #540]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #16
	ldr	r1, .L300+4
	ldr	r0, [fp, #-16]
	bl	avi_add_index_entry
	mov	r3, r0
	cmp	r3, #0
	beq	.L299
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L297
.L299:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #44]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #44]
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3, #544]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
.L297:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L301:
	.align	2
.L300:
	.word	AVI_errno
	.word	.LC26
	.size	AVI_dup_frame, .-AVI_dup_frame
	.align	2
	.global	AVI_write_audio
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_write_audio, %function
AVI_write_audio:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #1
	bne	.L303
	ldr	r3, .L306
	mov	r2, #7
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L304
.L303:
	ldr	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #1
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	avi_write_data
	mov	r3, r0
	cmp	r3, #0
	beq	.L305
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L304
.L305:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #84
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #556]
	ldr	r3, [fp, #-24]
	add	r1, r1, r3
	ldr	r0, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #84
	str	r1, [r3]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
.L304:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L307:
	.align	2
.L306:
	.word	AVI_errno
	.size	AVI_write_audio, .-AVI_write_audio
	.section	.rodata
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	AVI_append_audio
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_append_audio, %function
AVI_append_audio:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L313
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	cmp	r3, #1
	bne	.L309
	ldr	r3, .L313+4
	mov	r2, #7
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	b	.L311
.L309:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #512]
	sub	r2, r3, #1
	ldr	r3, [fp, #-32]
	str	r2, [r3, #512]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #512]
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r3, r3, #12
	mov	r0, r3
	bl	str2ulong
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #512]
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r3, r3, #8
	mov	r0, r3
	bl	str2ulong
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #512]
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r0, r3, #12
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r1, r3
	bl	long2str
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #512]
	add	r2, r3, #1
	ldr	r3, [fp, #-32]
	str	r2, [r3, #512]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #84
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #556]
	ldr	r3, [fp, #-40]
	add	r1, r1, r3
	ldr	r0, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #84
	str	r1, [r3]
	ldr	r3, [fp, #-32]
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	mov	r2, #0
	mov	r1, r3
	bl	lseek
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-40]
	add	r2, r2, r3
	sub	r3, fp, #12
	mov	r1, r2
	mov	r0, r3
	bl	long2str
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	sub	r1, fp, #12
	mov	r2, #4
	mov	r0, r3
	bl	avi_write
	ldr	r3, [fp, #-32]
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	add	r2, r3, #8
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	bl	lseek
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	add	r3, r3, #1
	bic	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	avi_write
	ldr	r3, [fp, #-24]
	add	r2, r3, #8
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	str	r2, [r3, #508]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
.L311:
	ldr	r2, .L313
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L312
	bl	__stack_chk_fail
.L312:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L314:
	.align	2
.L313:
	.word	.LC28
	.word	AVI_errno
	.size	AVI_append_audio, .-AVI_append_audio
	.align	2
	.global	AVI_bytes_remain
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_bytes_remain, %function
AVI_bytes_remain:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #1
	bne	.L316
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L317
.L316:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #508]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2, #512]
	lsl	r2, r2, #4
	add	r2, r3, r2
	ldr	r3, .L318
	sub	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
.L317:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L319:
	.align	2
.L318:
	.word	-16779273
	.size	AVI_bytes_remain, .-AVI_bytes_remain
	.align	2
	.global	AVI_bytes_written
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_bytes_written, %function
AVI_bytes_written:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #1
	bne	.L321
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L322
.L321:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #508]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2, #512]
	lsl	r2, r2, #4
	add	r3, r3, r2
	add	r3, r3, #8
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
.L322:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AVI_bytes_written, .-AVI_bytes_written
	.align	2
	.global	AVI_set_audio_track
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_set_audio_track, %function
AVI_set_audio_track:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L324
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #552]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L325
.L324:
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L326
.L325:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #556]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
.L326:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AVI_set_audio_track, .-AVI_set_audio_track
	.align	2
	.global	AVI_get_audio_track
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_get_audio_track, %function
AVI_get_audio_track:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #556]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AVI_get_audio_track, .-AVI_get_audio_track
	.align	2
	.global	AVI_close
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_close, %function
AVI_close:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L330
	ldr	r0, [fp, #-16]
	bl	avi_close_output_file
	str	r0, [fp, #-8]
	b	.L331
.L330:
	mov	r3, #0
	str	r3, [fp, #-8]
.L331:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #528]
	cmp	r3, #0
	beq	.L332
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #528]
	mov	r0, r3
	bl	free
.L332:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #532]
	cmp	r3, #0
	beq	.L333
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #532]
	mov	r0, r3
	bl	free
.L333:
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	AVI_close, .-AVI_close
	.align	2
	.global	AVI_open_input_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_open_input_file, %function
AVI_open_input_file:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r0, #560
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L336
	ldr	r3, .L339
	mov	r2, #8
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L337
.L336:
	mov	r2, #560
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	memset
	ldr	r3, [fp, #-12]
	mov	r2, #1
	str	r2, [r3, #4]
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	open
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L338
	ldr	r3, .L339
	mov	r2, #2
	str	r2, [r3]
	ldr	r0, [fp, #-12]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L337
.L338:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-12]
	bl	avi_parse_input_file
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #556]
	ldr	r3, [fp, #-12]
.L337:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L340:
	.align	2
.L339:
	.word	AVI_errno
	.size	AVI_open_input_file, .-AVI_open_input_file
	.align	2
	.global	AVI_open_fd
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_open_fd, %function
AVI_open_fd:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r0, #560
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L342
	ldr	r3, .L344
	mov	r2, #8
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L343
.L342:
	mov	r2, #560
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	memset
	ldr	r3, [fp, #-12]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-12]
	bl	avi_parse_input_file
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #556]
	ldr	r3, [fp, #-12]
.L343:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L345:
	.align	2
.L344:
	.word	AVI_errno
	.size	AVI_open_fd, .-AVI_open_fd
	.global	__aeabi_i2d
	.section	.rodata
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	avi_parse_input_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	avi_parse_input_file, %function
avi_parse_input_file:
	@ args = 0, pretend = 0, frame = 408
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #416
	str	r0, [fp, #-416]
	str	r1, [fp, #-420]
	ldr	r3, .L437+60
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-400]
	mov	r3, #0
	str	r3, [fp, #-396]
	mov	r3, #0
	str	r3, [fp, #-384]
	mov	r3, #0
	str	r3, [fp, #-380]
	mov	r3, #0
	str	r3, [fp, #-376]
	mov	r3, #0
	str	r3, [fp, #-368]
	mov	r3, #0
	str	r3, [fp, #-372]
	ldr	r3, [fp, #-416]
	ldr	r3, [r3]
	sub	r1, fp, #272
	mov	r2, #12
	mov	r0, r3
	bl	avi_read
	mov	r3, r0
	cmp	r3, #12
	beq	.L347
	ldr	r0, [fp, #-416]
	bl	AVI_close
	ldr	r3, .L437+56
	mov	r2, #3
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-360]
	b	.L430
.L347:
	sub	r3, fp, #272
	mov	r2, #4
	ldr	r1, .L437
	mov	r0, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L349
	sub	r3, fp, #272
	add	r3, r3, #8
	mov	r2, #4
	ldr	r1, .L437+4
	mov	r0, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L350
.L349:
	ldr	r0, [fp, #-416]
	bl	AVI_close
	ldr	r3, .L437+56
	mov	r2, #9
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-360]
	b	.L430
.L350:
	mov	r3, #0
	str	r3, [fp, #-404]
.L361:
	ldr	r3, [fp, #-416]
	ldr	r3, [r3]
	sub	r1, fp, #272
	mov	r2, #8
	mov	r0, r3
	bl	avi_read
	mov	r3, r0
	cmp	r3, #8
	bne	.L434
	sub	r3, fp, #272
	add	r3, r3, #4
	mov	r0, r3
	bl	str2ulong
	mov	r3, r0
	str	r3, [fp, #-364]
	ldr	r3, [fp, #-364]
	add	r3, r3, #1
	bic	r3, r3, #1
	str	r3, [fp, #-364]
	sub	r3, fp, #272
	mov	r2, #4
	ldr	r1, .L437+52
	mov	r0, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L353
	ldr	r3, [fp, #-416]
	ldr	r3, [r3]
	sub	r1, fp, #272
	mov	r2, #4
	mov	r0, r3
	bl	avi_read
	mov	r3, r0
	cmp	r3, #4
	beq	.L354
	ldr	r0, [fp, #-416]
	bl	AVI_close
	ldr	r3, .L437+56
	mov	r2, #3
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-360]
	b	.L430
.L354:
	ldr	r3, [fp, #-364]
	sub	r3, r3, #4
	str	r3, [fp, #-364]
	sub	r3, fp, #272
	mov	r2, #4
	ldr	r1, .L437+8
	mov	r0, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L355
	ldr	r3, [fp, #-364]
	str	r3, [fp, #-396]
	ldr	r3, [fp, #-364]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-404]
	ldr	r3, [fp, #-404]
	cmp	r3, #0
	bne	.L356
	ldr	r0, [fp, #-416]
	bl	AVI_close
	ldr	r3, .L437+56
	mov	r2, #8
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-360]
	b	.L430
.L356:
	ldr	r3, [fp, #-416]
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #0
	mov	r0, r3
	bl	lseek
	str	r0, [fp, #-400]
	ldr	r3, [fp, #-416]
	ldr	r3, [r3]
	ldr	r2, [fp, #-364]
	ldr	r1, [fp, #-404]
	mov	r0, r3
	bl	avi_read
	mov	r2, r0
	ldr	r3, [fp, #-364]
	cmp	r2, r3
	beq	.L361
	ldr	r0, [fp, #-416]
	bl	AVI_close
	ldr	r3, .L437+56
	mov	r2, #3
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-360]
	b	.L430
.L355:
	sub	r3, fp, #272
	mov	r2, #4
	ldr	r1, .L437+12
	mov	r0, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L358
	ldr	r3, [fp, #-416]
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #0
	mov	r0, r3
	bl	lseek
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-416]
	str	r2, [r3, #548]
	ldr	r3, [fp, #-416]
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, [fp, #-364]
	mov	r0, r3
	bl	lseek
	b	.L361
.L358:
	ldr	r3, [fp, #-416]
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, [fp, #-364]
	mov	r0, r3
	bl	lseek
	b	.L361
.L353:
	sub	r3, fp, #272
	mov	r2, #4
	ldr	r1, .L437+16
	mov	r0, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L359
	ldr	r3, [fp, #-364]
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-416]
	str	r2, [r3, #516]
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #516]
	ldr	r3, [fp, #-416]
	str	r2, [r3, #512]
	ldr	r3, [fp, #-364]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-416]
	str	r2, [r3, #528]
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #528]
	cmp	r3, #0
	bne	.L360
	ldr	r0, [fp, #-416]
	bl	AVI_close
	ldr	r3, .L437+56
	mov	r2, #8
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-360]
	b	.L430
.L360:
	ldr	r3, [fp, #-416]
	ldr	r0, [r3]
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #528]
	ldr	r2, [fp, #-364]
	mov	r1, r3
	bl	avi_read
	mov	r2, r0
	ldr	r3, [fp, #-364]
	cmp	r2, r3
	beq	.L361
	ldr	r0, [fp, #-416]
	bl	AVI_close
	ldr	r3, .L437+56
	mov	r2, #3
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-360]
	b	.L430
.L359:
	ldr	r3, [fp, #-416]
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, [fp, #-364]
	mov	r0, r3
	bl	lseek
	b	.L361
.L434:
	nop
	ldr	r3, [fp, #-404]
	cmp	r3, #0
	bne	.L362
	ldr	r0, [fp, #-416]
	bl	AVI_close
	ldr	r3, .L437+56
	mov	r2, #10
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-360]
	b	.L430
.L362:
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #548]
	cmp	r3, #0
	bne	.L363
	ldr	r0, [fp, #-416]
	bl	AVI_close
	ldr	r3, .L437+56
	mov	r2, #11
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-360]
	b	.L430
.L363:
	mov	r3, #0
	str	r3, [fp, #-412]
	b	.L364
.L376:
	ldr	r3, [fp, #-412]
	ldr	r2, [fp, #-404]
	add	r3, r2, r3
	mov	r2, #4
	ldr	r1, .L437+52
	mov	r0, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L365
	ldr	r3, [fp, #-412]
	add	r3, r3, #12
	str	r3, [fp, #-412]
	b	.L364
.L365:
	ldr	r3, [fp, #-412]
	add	r3, r3, #4
	ldr	r2, [fp, #-404]
	add	r3, r2, r3
	mov	r0, r3
	bl	str2ulong
	mov	r3, r0
	str	r3, [fp, #-364]
	ldr	r3, [fp, #-364]
	add	r3, r3, #1
	bic	r3, r3, #1
	str	r3, [fp, #-364]
	ldr	r3, [fp, #-412]
	ldr	r2, [fp, #-404]
	add	r3, r2, r3
	mov	r2, #4
	ldr	r1, .L437+20
	mov	r0, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L366
	ldr	r3, [fp, #-412]
	add	r3, r3, #8
	str	r3, [fp, #-412]
	ldr	r3, [fp, #-412]
	ldr	r2, [fp, #-404]
	add	r3, r2, r3
	mov	r2, #4
	ldr	r1, .L437+24
	mov	r0, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L367
	ldr	r3, [fp, #-380]
	cmp	r3, #0
	bne	.L367
	ldr	r3, [fp, #-416]
	add	r0, r3, #24
	ldr	r3, [fp, #-412]
	add	r3, r3, #4
	ldr	r2, [fp, #-404]
	add	r3, r2, r3
	mov	r2, #4
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-416]
	mov	r2, #0
	strb	r2, [r3, #28]
	ldr	r2, [fp, #-400]
	ldr	r3, [fp, #-412]
	add	r3, r2, r3
	add	r2, r3, #4
	ldr	r3, [fp, #-416]
	str	r2, [r3, #520]
	ldr	r3, [fp, #-412]
	add	r3, r3, #20
	ldr	r2, [fp, #-404]
	add	r3, r2, r3
	mov	r0, r3
	bl	str2ulong
	mov	r3, r0
	str	r3, [fp, #-344]
	ldr	r3, [fp, #-412]
	add	r3, r3, #24
	ldr	r2, [fp, #-404]
	add	r3, r2, r3
	mov	r0, r3
	bl	str2ulong
	mov	r3, r0
	str	r3, [fp, #-340]
	ldr	r3, [fp, #-344]
	cmp	r3, #0
	beq	.L368
	ldr	r0, [fp, #-340]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-344]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-416]
	str	r2, [r1, #16]
	str	r3, [r1, #20]
.L368:
	ldr	r3, [fp, #-412]
	add	r3, r3, #32
	ldr	r2, [fp, #-404]
	add	r3, r2, r3
	mov	r0, r3
	bl	str2ulong
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-416]
	str	r2, [r3, #44]
	ldr	r3, [fp, #-416]
	ldr	r2, [fp, #-372]
	str	r2, [r3, #40]
	ldr	r3, [fp, #-416]
	mov	r2, #0
	str	r2, [r3, #56]
	mov	r3, #1
	str	r3, [fp, #-380]
	mov	r3, #1
	str	r3, [fp, #-384]
	b	.L369
.L367:
	ldr	r3, [fp, #-412]
	ldr	r2, [fp, #-404]
	add	r3, r2, r3
	mov	r2, #4
	ldr	r1, .L437+28
	mov	r0, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L370
	ldr	r3, [fp, #-368]
	cmp	r3, #0
	bne	.L370
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #552]
	ldr	r3, [fp, #-416]
	str	r2, [r3, #556]
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #552]
	add	r2, r3, #1
	ldr	r3, [fp, #-416]
	str	r2, [r3, #552]
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #552]
	cmp	r3, #8
	ble	.L371
	ldr	r3, .L437+32
	ldr	r3, [r3]
	mov	r2, #8
	ldr	r1, .L437+36
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-360]
	b	.L430
.L371:
	ldr	r3, [fp, #-412]
	add	r3, r3, #32
	ldr	r2, [fp, #-404]
	add	r3, r2, r3
	mov	r0, r3
	bl	str2ulong
	mov	r4, r0
	mov	r1, #0
	ldr	r0, [fp, #-416]
	bl	avi_sampsize
	mov	r3, r0
	mul	r1, r3, r4
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #556]
	mov	r0, r1
	ldr	r1, [fp, #-416]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #84
	str	r0, [r3]
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-416]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #80
	ldr	r2, [fp, #-372]
	str	r2, [r3]
	mov	r3, #2
	str	r3, [fp, #-384]
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-400]
	ldr	r3, [fp, #-412]
	add	r1, r1, r3
	ldr	r0, [fp, #-416]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #104
	str	r1, [r3]
	b	.L369
.L370:
	mov	r3, #0
	str	r3, [fp, #-384]
.L369:
	ldr	r3, [fp, #-372]
	add	r3, r3, #1
	str	r3, [fp, #-372]
	b	.L372
.L366:
	ldr	r3, [fp, #-412]
	ldr	r2, [fp, #-404]
	add	r3, r2, r3
	mov	r2, #4
	ldr	r1, .L437+40
	mov	r0, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L373
	ldr	r3, [fp, #-412]
	add	r3, r3, #8
	str	r3, [fp, #-412]
	ldr	r3, [fp, #-384]
	cmp	r3, #1
	bne	.L374
	ldr	r3, [fp, #-412]
	add	r3, r3, #4
	ldr	r2, [fp, #-404]
	add	r3, r2, r3
	mov	r0, r3
	bl	str2ulong
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-416]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-412]
	add	r3, r3, #8
	ldr	r2, [fp, #-404]
	add	r3, r2, r3
	mov	r0, r3
	bl	str2ulong
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-416]
	str	r2, [r3, #12]
	mov	r3, #1
	str	r3, [fp, #-376]
	ldr	r2, [fp, #-400]
	ldr	r3, [fp, #-412]
	add	r3, r2, r3
	add	r2, r3, #16
	ldr	r3, [fp, #-416]
	str	r2, [r3, #524]
	ldr	r3, [fp, #-416]
	add	r0, r3, #32
	ldr	r3, [fp, #-412]
	add	r3, r3, #16
	ldr	r2, [fp, #-404]
	add	r3, r2, r3
	mov	r2, #4
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-416]
	mov	r2, #0
	strb	r2, [r3, #36]
	b	.L375
.L374:
	ldr	r3, [fp, #-384]
	cmp	r3, #2
	bne	.L375
	ldr	r3, [fp, #-412]
	ldr	r2, [fp, #-404]
	add	r3, r2, r3
	mov	r0, r3
	bl	str2ushort
	mov	r2, r0
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #556]
	mov	r0, r2
	ldr	r1, [fp, #-416]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4
	str	r0, [r3]
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-400]
	ldr	r3, [fp, #-412]
	add	r1, r1, r3
	ldr	r0, [fp, #-416]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #108
	str	r1, [r3]
	ldr	r3, [fp, #-412]
	add	r3, r3, #2
	ldr	r2, [fp, #-404]
	add	r3, r2, r3
	mov	r0, r3
	bl	str2ushort
	mov	r2, r0
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #556]
	mov	r0, r2
	ldr	r1, [fp, #-416]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	str	r0, [r3]
	ldr	r3, [fp, #-412]
	add	r3, r3, #4
	ldr	r2, [fp, #-404]
	add	r3, r2, r3
	mov	r0, r3
	bl	str2ulong
	mov	r1, r0
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #556]
	mov	r0, r1
	ldr	r1, [fp, #-416]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #68
	str	r0, [r3]
	ldr	r3, [fp, #-412]
	add	r3, r3, #8
	ldr	r2, [fp, #-404]
	add	r3, r2, r3
	mov	r0, r3
	bl	str2ulong
	mov	r3, r0
	lsl	r3, r3, #3
	ldr	r2, .L437+44
	umull	r1, r3, r2, r3
	lsr	r1, r3, #6
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #556]
	mov	r0, r1
	ldr	r1, [fp, #-416]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #76
	str	r0, [r3]
	ldr	r3, [fp, #-412]
	add	r3, r3, #14
	ldr	r2, [fp, #-404]
	add	r3, r2, r3
	mov	r0, r3
	bl	str2ushort
	mov	r1, r0
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #556]
	mov	r0, r1
	ldr	r1, [fp, #-416]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #72
	str	r0, [r3]
.L375:
	mov	r3, #0
	str	r3, [fp, #-384]
	b	.L372
.L373:
	ldr	r3, [fp, #-412]
	add	r3, r3, #8
	str	r3, [fp, #-412]
	mov	r3, #0
	str	r3, [fp, #-384]
.L372:
	ldr	r2, [fp, #-412]
	ldr	r3, [fp, #-364]
	add	r3, r2, r3
	str	r3, [fp, #-412]
.L364:
	ldr	r2, [fp, #-412]
	ldr	r3, [fp, #-396]
	cmp	r2, r3
	blt	.L376
	ldr	r0, [fp, #-404]
	bl	free
	ldr	r3, [fp, #-380]
	cmp	r3, #0
	beq	.L377
	ldr	r3, [fp, #-376]
	cmp	r3, #0
	bne	.L378
.L377:
	ldr	r0, [fp, #-416]
	bl	AVI_close
	ldr	r3, .L437+56
	mov	r2, #12
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-360]
	b	.L430
.L378:
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #40]
	ldr	r2, .L437+48
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	and	r3, r3, #255
	add	r3, r3, #48
	and	r2, r3, #255
	ldr	r3, [fp, #-416]
	strb	r2, [r3, #48]
	ldr	r3, [fp, #-416]
	ldr	r1, [r3, #40]
	ldr	r3, .L437+48
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	and	r3, r2, #255
	add	r3, r3, #48
	and	r2, r3, #255
	ldr	r3, [fp, #-416]
	strb	r2, [r3, #49]
	ldr	r3, [fp, #-416]
	mov	r2, #100
	strb	r2, [r3, #50]
	ldr	r3, [fp, #-416]
	mov	r2, #98
	strb	r2, [r3, #51]
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #64]
	cmp	r3, #0
	bne	.L379
	ldr	r3, [fp, #-416]
	mov	r2, #99
	str	r2, [r3, #80]
.L379:
	mov	r3, #0
	str	r3, [fp, #-388]
	b	.L380
.L381:
	ldr	r3, [fp, #-388]
	add	r3, r3, #1
	ldr	r2, .L437+48
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	and	r3, r3, #255
	add	r3, r3, #48
	and	r0, r3, #255
	ldr	r1, [fp, #-416]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #92
	mov	r2, r0
	strb	r2, [r3]
	ldr	r3, [fp, #-388]
	add	r1, r3, #1
	ldr	r3, .L437+48
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	and	r3, r2, #255
	add	r3, r3, #48
	and	r0, r3, #255
	ldr	r1, [fp, #-416]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #93
	mov	r2, r0
	strb	r2, [r3]
	ldr	r1, [fp, #-416]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #94
	mov	r2, #119
	strb	r2, [r3]
	ldr	r1, [fp, #-416]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #95
	mov	r2, #98
	strb	r2, [r3]
	ldr	r3, [fp, #-388]
	add	r3, r3, #1
	str	r3, [fp, #-388]
.L380:
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #552]
	ldr	r2, [fp, #-388]
	cmp	r2, r3
	blt	.L381
	ldr	r3, [fp, #-416]
	ldr	r0, [r3]
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #548]
	mov	r2, #0
	mov	r1, r3
	bl	lseek
	ldr	r3, [fp, #-420]
	cmp	r3, #0
	bne	.L382
	mov	r3, #0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-360]
	b	.L430
.L382:
	mov	r3, #0
	str	r3, [fp, #-408]
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #528]
	cmp	r3, #0
	beq	.L383
	mov	r3, #0
	str	r3, [fp, #-412]
	b	.L384
.L387:
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-412]
	lsl	r3, r3, #4
	add	r0, r2, r3
	ldr	r3, [fp, #-416]
	add	r3, r3, #48
	mov	r2, #3
	mov	r1, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L435
	ldr	r3, [fp, #-412]
	add	r3, r3, #1
	str	r3, [fp, #-412]
.L384:
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #512]
	ldr	r2, [fp, #-412]
	cmp	r2, r3
	blt	.L387
	b	.L386
.L435:
	nop
.L386:
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #512]
	ldr	r2, [fp, #-412]
	cmp	r2, r3
	blt	.L388
	ldr	r0, [fp, #-416]
	bl	AVI_close
	ldr	r3, .L437+56
	mov	r2, #12
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-360]
	b	.L430
.L388:
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-412]
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r3, r3, #8
	mov	r0, r3
	bl	str2ulong
	mov	r3, r0
	str	r3, [fp, #-356]
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-412]
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r3, r3, #12
	mov	r0, r3
	bl	str2ulong
	mov	r3, r0
	str	r3, [fp, #-352]
	ldr	r3, [fp, #-416]
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, [fp, #-356]
	mov	r0, r3
	bl	lseek
	ldr	r3, [fp, #-416]
	ldr	r3, [r3]
	sub	r1, fp, #272
	mov	r2, #8
	mov	r0, r3
	bl	avi_read
	mov	r3, r0
	cmp	r3, #8
	beq	.L389
	ldr	r0, [fp, #-416]
	bl	AVI_close
	ldr	r3, .L437+56
	mov	r2, #3
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-360]
	b	.L430
.L389:
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-412]
	lsl	r3, r3, #4
	add	r1, r2, r3
	sub	r3, fp, #272
	mov	r2, #4
	mov	r0, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L390
	sub	r3, fp, #272
	add	r3, r3, #4
	mov	r0, r3
	bl	str2ulong
	mov	r2, r0
	ldr	r3, [fp, #-352]
	cmp	r2, r3
	bne	.L390
	mov	r3, #1
	str	r3, [fp, #-408]
	b	.L383
.L390:
	ldr	r3, [fp, #-416]
	ldr	r0, [r3]
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #548]
	ldr	r3, [fp, #-356]
	add	r3, r2, r3
	sub	r3, r3, #4
	mov	r2, #0
	mov	r1, r3
	bl	lseek
	ldr	r3, [fp, #-416]
	ldr	r3, [r3]
	sub	r1, fp, #272
	mov	r2, #8
	mov	r0, r3
	bl	avi_read
	mov	r3, r0
	cmp	r3, #8
	beq	.L391
	ldr	r0, [fp, #-416]
	bl	AVI_close
	ldr	r3, .L437+56
	mov	r2, #3
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-360]
	b	.L430
.L438:
	.align	2
.L437:
	.word	.LC4
	.word	.LC5
	.word	.LC7
	.word	.LC19
	.word	.LC21
	.word	.LC10
	.word	.LC11
	.word	.LC13
	.word	stderr
	.word	.LC3
	.word	.LC12
	.word	274877907
	.word	1717986919
	.word	.LC6
	.word	AVI_errno
	.word	.LC29
.L391:
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-412]
	lsl	r3, r3, #4
	add	r1, r2, r3
	sub	r3, fp, #272
	mov	r2, #4
	mov	r0, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L383
	sub	r3, fp, #272
	add	r3, r3, #4
	mov	r0, r3
	bl	str2ulong
	mov	r2, r0
	ldr	r3, [fp, #-352]
	cmp	r2, r3
	bne	.L383
	mov	r3, #2
	str	r3, [fp, #-408]
.L383:
	ldr	r3, [fp, #-408]
	cmp	r3, #0
	bne	.L392
	ldr	r3, [fp, #-416]
	ldr	r0, [r3]
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #548]
	mov	r2, #0
	mov	r1, r3
	bl	lseek
	ldr	r3, [fp, #-416]
	mov	r2, #0
	str	r2, [r3, #512]
.L402:
	ldr	r3, [fp, #-416]
	ldr	r3, [r3]
	sub	r1, fp, #272
	mov	r2, #8
	mov	r0, r3
	bl	avi_read
	mov	r3, r0
	cmp	r3, #8
	bne	.L436
	sub	r3, fp, #272
	add	r3, r3, #4
	mov	r0, r3
	bl	str2ulong
	mov	r3, r0
	str	r3, [fp, #-364]
	sub	r3, fp, #272
	mov	r2, #4
	ldr	r1, .L437+52
	mov	r0, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L395
	ldr	r3, [fp, #-416]
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #4
	mov	r0, r3
	bl	lseek
	b	.L396
.L395:
	ldrb	r3, [fp, #-270]	@ zero_extendqisi2
	cmp	r3, #100
	beq	.L397
	ldrb	r3, [fp, #-270]	@ zero_extendqisi2
	cmp	r3, #68
	bne	.L398
.L397:
	ldrb	r3, [fp, #-269]	@ zero_extendqisi2
	cmp	r3, #98
	beq	.L399
	ldrb	r3, [fp, #-269]	@ zero_extendqisi2
	cmp	r3, #66
	beq	.L399
	ldrb	r3, [fp, #-269]	@ zero_extendqisi2
	cmp	r3, #99
	beq	.L399
	ldrb	r3, [fp, #-269]	@ zero_extendqisi2
	cmp	r3, #67
	beq	.L399
.L398:
	ldrb	r3, [fp, #-270]	@ zero_extendqisi2
	cmp	r3, #119
	beq	.L400
	ldrb	r3, [fp, #-270]	@ zero_extendqisi2
	cmp	r3, #87
	bne	.L401
.L400:
	ldrb	r3, [fp, #-269]	@ zero_extendqisi2
	cmp	r3, #98
	beq	.L399
	ldrb	r3, [fp, #-269]	@ zero_extendqisi2
	cmp	r3, #66
	bne	.L401
.L399:
	ldr	r3, [fp, #-416]
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #0
	mov	r0, r3
	bl	lseek
	mov	r3, r0
	sub	r3, r3, #8
	mov	r2, r3
	ldr	r3, [fp, #-364]
	sub	r1, fp, #272
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #0
	ldr	r0, [fp, #-416]
	bl	avi_add_index_entry
.L401:
	ldr	r3, [fp, #-416]
	ldr	r0, [r3]
	ldr	r3, [fp, #-364]
	add	r3, r3, #1
	bic	r3, r3, #1
	mov	r2, #1
	mov	r1, r3
	bl	lseek
.L396:
	b	.L402
.L436:
	nop
	mov	r3, #1
	str	r3, [fp, #-408]
.L392:
	mov	r3, #0
	str	r3, [fp, #-392]
	mov	r3, #0
	str	r3, [fp, #-388]
	b	.L403
.L404:
	ldr	r3, [fp, #-388]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-324]
	ldr	r3, [fp, #-388]
	add	r3, r3, #1
	str	r3, [fp, #-388]
.L403:
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #552]
	ldr	r2, [fp, #-388]
	cmp	r2, r3
	blt	.L404
	mov	r3, #0
	str	r3, [fp, #-412]
	b	.L405
.L410:
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-412]
	lsl	r3, r3, #4
	add	r0, r2, r3
	ldr	r3, [fp, #-416]
	add	r3, r3, #48
	mov	r2, #3
	mov	r1, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L406
	ldr	r3, [fp, #-392]
	add	r3, r3, #1
	str	r3, [fp, #-392]
.L406:
	mov	r3, #0
	str	r3, [fp, #-388]
	b	.L407
.L409:
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-412]
	lsl	r3, r3, #4
	add	r0, r2, r3
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #88
	ldr	r2, [fp, #-416]
	add	r3, r2, r3
	add	r3, r3, #4
	mov	r2, #4
	mov	r1, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L408
	ldr	r3, [fp, #-388]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-324]
	add	r2, r3, #1
	ldr	r3, [fp, #-388]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-324]
.L408:
	ldr	r3, [fp, #-388]
	add	r3, r3, #1
	str	r3, [fp, #-388]
.L407:
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #552]
	ldr	r2, [fp, #-388]
	cmp	r2, r3
	blt	.L409
	ldr	r3, [fp, #-412]
	add	r3, r3, #1
	str	r3, [fp, #-412]
.L405:
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #512]
	ldr	r2, [fp, #-412]
	cmp	r2, r3
	blt	.L410
	ldr	r3, [fp, #-416]
	ldr	r2, [fp, #-392]
	str	r2, [r3, #44]
	mov	r3, #0
	str	r3, [fp, #-388]
	b	.L411
.L412:
	ldr	r3, [fp, #-388]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r1, [r3, #-324]
	ldr	r0, [fp, #-416]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #88
	str	r1, [r3]
	ldr	r3, [fp, #-388]
	add	r3, r3, #1
	str	r3, [fp, #-388]
.L411:
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #552]
	ldr	r2, [fp, #-388]
	cmp	r2, r3
	blt	.L412
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #44]
	cmp	r3, #0
	bne	.L413
	ldr	r0, [fp, #-416]
	bl	AVI_close
	ldr	r3, .L437+56
	mov	r2, #12
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-360]
	b	.L430
.L413:
	ldr	r2, [fp, #-392]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-416]
	str	r2, [r3, #532]
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #532]
	cmp	r3, #0
	bne	.L414
	ldr	r0, [fp, #-416]
	bl	AVI_close
	ldr	r3, .L437+56
	mov	r2, #8
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-360]
	b	.L430
.L414:
	mov	r3, #0
	str	r3, [fp, #-388]
	b	.L415
.L417:
	ldr	r1, [fp, #-416]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #88
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L416
	ldr	r3, [fp, #-388]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-324]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r0, r3
	ldr	r1, [fp, #-416]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #112
	str	r0, [r3]
	ldr	r1, [fp, #-416]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #112
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L416
	ldr	r0, [fp, #-416]
	bl	AVI_close
	ldr	r3, .L437+56
	mov	r2, #8
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-360]
	b	.L430
.L416:
	ldr	r3, [fp, #-388]
	add	r3, r3, #1
	str	r3, [fp, #-388]
.L415:
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #552]
	ldr	r2, [fp, #-388]
	cmp	r2, r3
	blt	.L417
	mov	r3, #0
	str	r3, [fp, #-392]
	mov	r3, #0
	str	r3, [fp, #-388]
	b	.L418
.L419:
	ldr	r3, [fp, #-388]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-292]
	ldr	r3, [fp, #-388]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-292]
	ldr	r3, [fp, #-388]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-324]
	ldr	r3, [fp, #-388]
	add	r3, r3, #1
	str	r3, [fp, #-388]
.L418:
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #552]
	ldr	r2, [fp, #-388]
	cmp	r2, r3
	blt	.L419
	ldr	r3, [fp, #-408]
	cmp	r3, #1
	beq	.L420
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #548]
	add	r3, r3, #4
	b	.L421
.L420:
	mov	r3, #8
.L421:
	str	r3, [fp, #-348]
	mov	r3, #0
	str	r3, [fp, #-412]
	b	.L422
.L427:
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-412]
	lsl	r3, r3, #4
	add	r0, r2, r3
	ldr	r3, [fp, #-416]
	add	r3, r3, #48
	mov	r2, #3
	mov	r1, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L423
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-412]
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r0, r3, #4
	ldr	r3, [fp, #-416]
	ldr	r1, [r3, #532]
	ldr	r2, [fp, #-392]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r4, r1, r3
	bl	str2ulong
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-412]
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r3, r3, #8
	mov	r0, r3
	bl	str2ulong
	mov	ip, r0
	ldr	r1, [fp, #-348]
	ldr	r3, [fp, #-416]
	ldr	r0, [r3, #532]
	ldr	r2, [fp, #-392]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r2, ip, r1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-412]
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r0, r3, #12
	ldr	r3, [fp, #-416]
	ldr	r1, [r3, #532]
	ldr	r2, [fp, #-392]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r4, r1, r3
	bl	str2ulong
	mov	r3, r0
	str	r3, [r4, #8]
	ldr	r3, [fp, #-392]
	add	r3, r3, #1
	str	r3, [fp, #-392]
.L423:
	mov	r3, #0
	str	r3, [fp, #-388]
	b	.L424
.L426:
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-412]
	lsl	r3, r3, #4
	add	r0, r2, r3
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #88
	ldr	r2, [fp, #-416]
	add	r3, r2, r3
	add	r3, r3, #4
	mov	r2, #4
	mov	r1, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L425
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-412]
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r3, r3, #8
	mov	r0, r3
	bl	str2ulong
	mov	ip, r0
	ldr	r1, [fp, #-348]
	ldr	r0, [fp, #-416]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #112
	ldr	r2, [r3]
	ldr	r3, [fp, #-388]
	lsl	r3, r3, #2
	sub	r0, fp, #12
	add	r3, r0, r3
	ldr	r3, [r3, #-324]
	mov	r0, r3
	mov	r3, r0
	lsl	r3, r3, #1
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r2, r3
	add	r2, ip, r1
	str	r2, [r3]
	ldr	r3, [fp, #-416]
	ldr	r2, [r3, #528]
	ldr	r3, [fp, #-412]
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r0, r3, #12
	ldr	r1, [fp, #-416]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #112
	ldr	r2, [r3]
	ldr	r3, [fp, #-388]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-324]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r4, r2, r3
	bl	str2ulong
	mov	r3, r0
	str	r3, [r4, #4]
	ldr	r3, [fp, #-388]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r0, [r3, #-292]
	ldr	r1, [fp, #-416]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #112
	ldr	r2, [r3]
	ldr	r3, [fp, #-388]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-324]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-388]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-292]
	mov	r0, r3
	ldr	r1, [fp, #-416]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #112
	ldr	r2, [r3]
	ldr	r3, [fp, #-388]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-324]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	add	r3, r0, r3
	mov	r2, r3
	ldr	r3, [fp, #-388]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-292]
	ldr	r3, [fp, #-388]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-324]
	add	r2, r3, #1
	ldr	r3, [fp, #-388]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-324]
.L425:
	ldr	r3, [fp, #-388]
	add	r3, r3, #1
	str	r3, [fp, #-388]
.L424:
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #552]
	ldr	r2, [fp, #-388]
	cmp	r2, r3
	blt	.L426
	ldr	r3, [fp, #-412]
	add	r3, r3, #1
	str	r3, [fp, #-412]
.L422:
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #512]
	ldr	r2, [fp, #-412]
	cmp	r2, r3
	blt	.L427
	mov	r3, #0
	str	r3, [fp, #-388]
	b	.L428
.L429:
	ldr	r3, [fp, #-388]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r1, [r3, #-292]
	ldr	r0, [fp, #-416]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #84
	str	r1, [r3]
	ldr	r3, [fp, #-388]
	add	r3, r3, #1
	str	r3, [fp, #-388]
.L428:
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #552]
	ldr	r2, [fp, #-388]
	cmp	r2, r3
	blt	.L429
	ldr	r3, [fp, #-416]
	ldr	r0, [r3]
	ldr	r3, [fp, #-416]
	ldr	r3, [r3, #548]
	mov	r2, #0
	mov	r1, r3
	bl	lseek
	ldr	r3, [fp, #-416]
	mov	r2, #0
	str	r2, [r3, #52]
	mov	r3, #0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-360]
.L430:
	ldr	r2, .L437+60
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L431
	bl	__stack_chk_fail
.L431:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	avi_parse_input_file, .-avi_parse_input_file
	.align	2
	.global	AVI_video_frames
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_video_frames, %function
AVI_video_frames:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #44]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AVI_video_frames, .-AVI_video_frames
	.align	2
	.global	AVI_video_width
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_video_width, %function
AVI_video_width:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AVI_video_width, .-AVI_video_width
	.align	2
	.global	AVI_video_height
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_video_height, %function
AVI_video_height:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AVI_video_height, .-AVI_video_height
	.align	2
	.global	AVI_frame_rate
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_frame_rate, %function
AVI_frame_rate:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AVI_frame_rate, .-AVI_frame_rate
	.align	2
	.global	AVI_video_compressor
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_video_compressor, %function
AVI_video_compressor:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #32
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AVI_video_compressor, .-AVI_video_compressor
	.align	2
	.global	AVI_max_video_chunk
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_max_video_chunk, %function
AVI_max_video_chunk:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #56]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AVI_max_video_chunk, .-AVI_max_video_chunk
	.align	2
	.global	AVI_audio_tracks
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_audio_tracks, %function
AVI_audio_tracks:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #552]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AVI_audio_tracks, .-AVI_audio_tracks
	.align	2
	.global	AVI_audio_channels
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_audio_channels, %function
AVI_audio_channels:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #556]
	ldr	r1, [fp, #-16]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AVI_audio_channels, .-AVI_audio_channels
	.align	2
	.global	AVI_audio_mp3rate
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_audio_mp3rate, %function
AVI_audio_mp3rate:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #76
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AVI_audio_mp3rate, .-AVI_audio_mp3rate
	.align	2
	.global	AVI_audio_bits
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_audio_bits, %function
AVI_audio_bits:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #72
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AVI_audio_bits, .-AVI_audio_bits
	.align	2
	.global	AVI_audio_format
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_audio_format, %function
AVI_audio_format:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #556]
	ldr	r1, [fp, #-16]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AVI_audio_format, .-AVI_audio_format
	.align	2
	.global	AVI_audio_rate
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_audio_rate, %function
AVI_audio_rate:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #68
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AVI_audio_rate, .-AVI_audio_rate
	.align	2
	.global	AVI_audio_bytes
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_audio_bytes, %function
AVI_audio_bytes:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #84
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AVI_audio_bytes, .-AVI_audio_bytes
	.align	2
	.global	AVI_audio_chunks
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_audio_chunks, %function
AVI_audio_chunks:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #88
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AVI_audio_chunks, .-AVI_audio_chunks
	.align	2
	.global	AVI_audio_codech_offset
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_audio_codech_offset, %function
AVI_audio_codech_offset:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #104
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AVI_audio_codech_offset, .-AVI_audio_codech_offset
	.align	2
	.global	AVI_audio_codecf_offset
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_audio_codecf_offset, %function
AVI_audio_codecf_offset:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #108
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AVI_audio_codecf_offset, .-AVI_audio_codecf_offset
	.align	2
	.global	AVI_video_codech_offset
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_video_codech_offset, %function
AVI_video_codech_offset:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #520]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AVI_video_codech_offset, .-AVI_video_codech_offset
	.align	2
	.global	AVI_video_codecf_offset
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_video_codecf_offset, %function
AVI_video_codecf_offset:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #524]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	AVI_video_codecf_offset, .-AVI_video_codecf_offset
	.align	2
	.global	AVI_frame_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_frame_size, %function
AVI_frame_size:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L476
	ldr	r3, .L481
	mov	r2, #7
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L477
.L476:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #532]
	cmp	r3, #0
	bne	.L478
	ldr	r3, .L481
	mov	r2, #13
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L477
.L478:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L479
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #44]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L480
.L479:
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L477
.L480:
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #532]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
.L477:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L482:
	.align	2
.L481:
	.word	AVI_errno
	.size	AVI_frame_size, .-AVI_frame_size
	.align	2
	.global	AVI_audio_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_audio_size, %function
AVI_audio_size:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L484
	ldr	r3, .L489
	mov	r2, #7
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L485
.L484:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #112
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L486
	ldr	r3, .L489
	mov	r2, #13
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L485
.L486:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L487
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #88
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L488
.L487:
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L485
.L488:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #112
	ldr	r1, [r3]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
.L485:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L490:
	.align	2
.L489:
	.word	AVI_errno
	.size	AVI_audio_size, .-AVI_audio_size
	.align	2
	.global	AVI_get_video_position
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_get_video_position, %function
AVI_get_video_position:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L492
	ldr	r3, .L497
	mov	r2, #7
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L493
.L492:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #532]
	cmp	r3, #0
	bne	.L494
	ldr	r3, .L497
	mov	r2, #13
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L493
.L494:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L495
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #44]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L496
.L495:
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L493
.L496:
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #532]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
.L493:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L498:
	.align	2
.L497:
	.word	AVI_errno
	.size	AVI_get_video_position, .-AVI_get_video_position
	.align	2
	.global	AVI_seek_start
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_seek_start, %function
AVI_seek_start:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L500
	ldr	r3, .L502
	mov	r2, #7
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L501
.L500:
	ldr	r3, [fp, #-16]
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #548]
	mov	r2, #0
	mov	r1, r3
	bl	lseek
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #52]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
.L501:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L503:
	.align	2
.L502:
	.word	AVI_errno
	.size	AVI_seek_start, .-AVI_seek_start
	.align	2
	.global	AVI_set_video_position
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_set_video_position, %function
AVI_set_video_position:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L505
	ldr	r3, .L509
	mov	r2, #7
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L506
.L505:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #532]
	cmp	r3, #0
	bne	.L507
	ldr	r3, .L509
	mov	r2, #13
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L506
.L507:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L508
	mov	r3, #0
	str	r3, [fp, #-20]
.L508:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #52]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
.L506:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L510:
	.align	2
.L509:
	.word	AVI_errno
	.size	AVI_set_video_position, .-AVI_set_video_position
	.align	2
	.global	AVI_set_audio_bitrate
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_set_audio_bitrate, %function
AVI_set_audio_bitrate:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #1
	bne	.L512
	ldr	r3, .L514
	mov	r2, #7
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L513
.L512:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #76
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
.L513:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L515:
	.align	2
.L514:
	.word	AVI_errno
	.size	AVI_set_audio_bitrate, .-AVI_set_audio_bitrate
	.align	2
	.global	AVI_read_frame
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_read_frame, %function
AVI_read_frame:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L517
	ldr	r3, .L523
	mov	r2, #7
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L518
.L517:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #532]
	cmp	r3, #0
	bne	.L519
	ldr	r3, .L523
	mov	r2, #13
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L518
.L519:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #52]
	cmp	r3, #0
	blt	.L520
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #52]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #44]
	cmp	r2, r3
	blt	.L521
.L520:
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L518
.L521:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #532]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #52]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #532]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #52]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #16
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #532]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #52]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r2, #0
	mov	r1, r3
	bl	lseek
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	avi_read
	mov	r2, r0
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	beq	.L522
	ldr	r3, .L523
	mov	r2, #3
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L518
.L522:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #52]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #52]
	ldr	r3, [fp, #-12]
.L518:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L524:
	.align	2
.L523:
	.word	AVI_errno
	.size	AVI_read_frame, .-AVI_read_frame
	.align	2
	.global	AVI_set_audio_position
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_set_audio_position, %function
AVI_set_audio_position:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L526
	ldr	r3, .L533
	mov	r2, #7
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	b	.L527
.L526:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #112
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L528
	ldr	r3, .L533
	mov	r2, #13
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	b	.L527
.L528:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L529
	mov	r3, #0
	str	r3, [fp, #-28]
.L529:
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #88
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	b	.L530
.L532:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #112
	ldr	r1, [r3]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bls	.L531
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
	b	.L530
.L531:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-20]
.L530:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L532
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #96
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #556]
	ldr	r0, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #112
	ldr	r0, [r3]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r3, [r3, #8]
	sub	r1, r1, r3
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #556]
	mov	r0, r1
	ldr	r1, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #100
	str	r0, [r3]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
.L527:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L534:
	.align	2
.L533:
	.word	AVI_errno
	.size	AVI_set_audio_position, .-AVI_set_audio_position
	.align	2
	.global	AVI_read_audio
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_read_audio, %function
AVI_read_audio:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L536
	ldr	r3, .L546
	mov	r2, #7
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L537
.L536:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #112
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L538
	ldr	r3, .L546
	mov	r2, #13
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L537
.L538:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L539
.L545:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #112
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #556]
	ldr	r0, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #96
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #556]
	ldr	r0, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #100
	ldr	r3, [r3]
	sub	r3, r1, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L540
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #96
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #556]
	ldr	r0, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #88
	ldr	r3, [r3]
	sub	r3, r3, #1
	cmp	r1, r3
	blt	.L541
	ldr	r3, [fp, #-24]
	b	.L537
.L541:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #96
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r0, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #96
	str	r1, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #100
	mov	r2, #0
	str	r2, [r3]
	b	.L539
.L540:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bge	.L542
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-20]
	b	.L543
.L542:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-20]
.L543:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #112
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #556]
	ldr	r0, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #96
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #556]
	ldr	r0, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #100
	ldr	r3, [r3]
	add	r3, r1, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	lseek
	ldr	r3, [fp, #-32]
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	mov	r1, r3
	bl	avi_read
	mov	r2, r0
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	beq	.L544
	ldr	r3, .L546
	mov	r2, #3
	str	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L537
.L544:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #556]
	ldr	r1, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #100
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #556]
	ldr	r3, [fp, #-20]
	add	r1, r1, r3
	ldr	r0, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r3, r3, #100
	str	r1, [r3]
.L539:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bgt	.L545
	ldr	r3, [fp, #-24]
.L537:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L547:
	.align	2
.L546:
	.word	AVI_errno
	.size	AVI_read_audio, .-AVI_read_audio
	.section	.rodata
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	AVI_read_data
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_read_data, %function
AVI_read_data:
	@ args = 8, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-48]
	ldr	r3, .L562
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L549
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	b	.L560
.L549:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	sub	r1, fp, #16
	mov	r2, #8
	mov	r0, r3
	bl	avi_read
	mov	r3, r0
	cmp	r3, #8
	beq	.L551
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	b	.L560
.L551:
	sub	r3, fp, #16
	mov	r2, #4
	ldr	r1, .L562+4
	mov	r0, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L552
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #4
	mov	r0, r3
	bl	lseek
	b	.L553
.L552:
	sub	r3, fp, #16
	add	r3, r3, #4
	mov	r0, r3
	bl	str2ulong
	mov	r3, r0
	add	r3, r3, #1
	bic	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	add	r1, r3, #48
	sub	r3, fp, #16
	mov	r2, #3
	mov	r0, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L554
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #52]
	add	r2, r3, #1
	ldr	r3, [fp, #-32]
	str	r2, [r3, #52]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	ble	.L555
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	lseek
	mvn	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	b	.L560
.L555:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	avi_read
	mov	r2, r0
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	beq	.L556
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	b	.L560
.L556:
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	b	.L560
.L554:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #556]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #88
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	add	r1, r3, #4
	sub	r3, fp, #16
	mov	r2, #4
	mov	r0, r3
	bl	strncasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L557
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	ble	.L558
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	lseek
	mvn	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	b	.L560
.L558:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	avi_read
	mov	r2, r0
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	beq	.L559
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	b	.L560
.L559:
	mov	r3, #2
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	b	.L560
.L557:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	lseek
	mov	r3, r0
	cmp	r3, #0
	bge	.L549
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	b	.L560
.L553:
	b	.L549
.L560:
	ldr	r2, .L562
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L561
	bl	__stack_chk_fail
.L561:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L563:
	.align	2
.L562:
	.word	.LC30
	.word	.LC6
	.size	AVI_read_data, .-AVI_read_data
	.global	avi_errors
	.section	.rodata
	.align	2
.LC31:
	.ascii	"avilib - No Error\000"
	.align	2
.LC32:
	.ascii	"avilib - AVI file size limit reached\000"
	.align	2
.LC33:
	.ascii	"avilib - Error opening AVI file\000"
	.align	2
.LC34:
	.ascii	"avilib - Error reading from AVI file\000"
	.align	2
.LC35:
	.ascii	"avilib - Error writing to AVI file\000"
	.align	2
.LC36:
	.ascii	"avilib - Error writing index (file may still be use"
	.ascii	"able)\000"
	.align	2
.LC37:
	.ascii	"avilib - Error closing AVI file\000"
	.align	2
.LC38:
	.ascii	"avilib - Operation (read/write) not permitted\000"
	.align	2
.LC39:
	.ascii	"avilib - Out of memory (malloc failed)\000"
	.align	2
.LC40:
	.ascii	"avilib - Not an AVI file\000"
	.align	2
.LC41:
	.ascii	"avilib - AVI file has no header list (corrupted?)\000"
	.align	2
.LC42:
	.ascii	"avilib - AVI file has no MOVI list (corrupted?)\000"
	.align	2
.LC43:
	.ascii	"avilib - AVI file has no video data\000"
	.align	2
.LC44:
	.ascii	"avilib - operation needs an index\000"
	.align	2
.LC45:
	.ascii	"avilib - Unkown Error\000"
	.data
	.align	2
	.type	avi_errors, %object
	.size	avi_errors, 60
avi_errors:
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.align	2
	.type	num_avi_errors, %object
	.size	num_avi_errors, 4
num_avi_errors:
	.word	15
	.local	error_string
	.comm	error_string,4096,4
	.section	.rodata
	.align	2
.LC46:
	.ascii	"%s: %s\012\000"
	.align	2
.LC47:
	.ascii	"REASON\000"
	.text
	.align	2
	.global	AVI_print_error
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_print_error, %function
AVI_print_error:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L572
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L565
	ldr	r3, .L572
	ldr	r2, [r3]
	ldr	r3, .L572+4
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L566
.L565:
	ldr	r3, .L572+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	b	.L567
.L566:
	ldr	r3, .L572
	ldr	r3, [r3]
.L567:
	str	r3, [fp, #-8]
	ldr	r3, .L572+8
	ldr	r0, [r3]
	ldr	r2, .L572+12
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	ldr	r1, .L572+16
	bl	fprintf
	ldr	r3, .L572
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L568
	ldr	r3, .L572
	ldr	r3, [r3]
	cmp	r3, #3
	beq	.L568
	ldr	r3, .L572
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L568
	ldr	r3, .L572
	ldr	r3, [r3]
	cmp	r3, #5
	beq	.L568
	ldr	r3, .L572
	ldr	r3, [r3]
	cmp	r3, #6
	bne	.L571
.L568:
	ldr	r0, .L572+20
	bl	perror
	nop
.L571:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L573:
	.align	2
.L572:
	.word	AVI_errno
	.word	num_avi_errors
	.word	stderr
	.word	avi_errors
	.word	.LC46
	.word	.LC47
	.size	AVI_print_error, .-AVI_print_error
	.section	.rodata
	.align	2
.LC48:
	.ascii	"%s - %s\000"
	.text
	.align	2
	.global	AVI_strerror
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_strerror, %function
AVI_strerror:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	ldr	r3, .L581
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L575
	ldr	r3, .L581
	ldr	r2, [r3]
	ldr	r3, .L581+4
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L576
.L575:
	ldr	r3, .L581+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	b	.L577
.L576:
	ldr	r3, .L581
	ldr	r3, [r3]
.L577:
	str	r3, [fp, #-20]
	ldr	r3, .L581
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L578
	ldr	r3, .L581
	ldr	r3, [r3]
	cmp	r3, #3
	beq	.L578
	ldr	r3, .L581
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L578
	ldr	r3, .L581
	ldr	r3, [r3]
	cmp	r3, #5
	beq	.L578
	ldr	r3, .L581
	ldr	r3, [r3]
	cmp	r3, #6
	bne	.L579
.L578:
	ldr	r2, .L581+8
	ldr	r3, [fp, #-20]
	ldr	r4, [r2, r3, lsl #2]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r4
	ldr	r1, .L581+12
	ldr	r0, .L581+16
	bl	sprintf
	ldr	r3, .L581+16
	b	.L580
.L579:
	ldr	r2, .L581+8
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
.L580:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L582:
	.align	2
.L581:
	.word	AVI_errno
	.word	num_avi_errors
	.word	avi_errors
	.word	.LC48
	.word	error_string
	.size	AVI_strerror, .-AVI_strerror
	.align	2
	.global	AVI_max_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVI_max_size, %function
AVI_max_size:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	ldr	r3, .L585
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L586:
	.align	2
.L585:
	.word	-16779265
	.size	AVI_max_size, .-AVI_max_size
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
