	.file	"780305.c"
	.intel_syntax noprefix
	.text
	.globl	avi_file_size
	.bss
	.align 8
	.type	avi_file_size, @object
	.size	avi_file_size, 8
avi_file_size:
	.zero	8
	.section	.rodata
.LC0:
	.string	"MP4U"
	.align 8
.LC1:
	.string	"The program is used to extract mp4u (xvid video) and mp3 (audio) files from an avi file (AVI-2 format)."
	.align 8
.LC2:
	.string	"It only supports avi files that multiplexes only one audio stream and only one video stream."
	.align 8
.LC3:
	.string	"\nThe name of the source avi file:"
.LC4:
	.string	"rb"
	.align 8
.LC5:
	.string	"\nWARNING! This file is NOT an RIFF file, do you wish to continue?"
	.align 8
.LC6:
	.string	"0: No. Terminate the program, please."
.LC7:
	.string	"1: Yes. Continue anyway."
.LC8:
	.string	"%d"
	.align 8
.LC9:
	.string	"\nWARNING! (RIFF chunk size) does NOT match (total AVI file size -8), do you wish to continue?"
	.align 8
.LC10:
	.string	"\nDo you want to save the video (*.mp4u) file? [1: yes, 0: no]"
	.align 8
.LC11:
	.string	"\nDo you want to save the audio (*.mp3) file? [1: yes, 0: no]"
.LC12:
	.string	"wb"
	.align 8
.LC13:
	.string	"Can't create the output files. Check whether the media is read-only and the available disk space!"
	.align 8
.LC14:
	.string	"error in audio memory allocation!"
	.align 8
.LC15:
	.string	"error in video memory allocation!"
	.align 8
.LC16:
	.string	"\n ERROR! No 'movi' chunk has been found! No video and audio data can be saved."
	.align 8
.LC17:
	.string	"\n Processing...     Please wait patiently."
.LC18:
	.string	"%d\n"
	.align 8
.LC19:
	.string	"\nWARNING! Encounter a ChunkID can't be handled by this program at adsress 0x%08X. Its content is 0x%08X. Do you wish to continue?\n"
	.align 8
.LC20:
	.string	"2: Yes. Continue anyway, and don't ask anymore! Continue regarless of error!!"
.LC21:
	.string	"\n\n ===  All done!  ===\n"
.LC22:
	.string	"\nPress ENTER to quit."
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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, 1304
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -1224[rbp], rax
	mov	DWORD PTR -1276[rbp], 0
	mov	DWORD PTR -1272[rbp], 0
	mov	DWORD PTR -1268[rbp], 0
	mov	DWORD PTR -1264[rbp], 0
	mov	DWORD PTR -1252[rbp], 1048576
	mov	DWORD PTR -1248[rbp], 16777216
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L2:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -1184[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rax, -1184[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1216[rbp], rax
	cmp	QWORD PTR -1216[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -1216[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -1216[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR avi_file_size[rip], rax
	mov	rax, QWORD PTR -1216[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR -1216[rbp]
	lea	rax, -1304[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -1304[rbp]
	cmp	eax, 1179011410
	je	.L3
.L5:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rax, -1268[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -1268[rbp]
	test	eax, eax
	je	.L4
	mov	eax, DWORD PTR -1268[rbp]
	cmp	eax, 1
	jne	.L5
.L4:
	mov	eax, DWORD PTR -1268[rbp]
	test	eax, eax
	je	.L58
.L3:
	mov	rdx, QWORD PTR -1216[rbp]
	lea	rax, -1304[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -1304[rbp]
	cdqe
	mov	rdx, QWORD PTR avi_file_size[rip]
	sub	rdx, 8
	cmp	rax, rdx
	je	.L11
.L9:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rax, -1268[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -1268[rbp]
	test	eax, eax
	je	.L8
	mov	eax, DWORD PTR -1268[rbp]
	cmp	eax, 1
	jne	.L9
.L8:
	mov	eax, DWORD PTR -1268[rbp]
	test	eax, eax
	je	.L59
.L11:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1276[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -1276[rbp]
	test	eax, eax
	je	.L13
	mov	eax, DWORD PTR -1276[rbp]
	cmp	eax, 1
	jne	.L11
.L13:
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1272[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -1272[rbp]
	test	eax, eax
	je	.L12
	mov	eax, DWORD PTR -1272[rbp]
	cmp	eax, 1
	jne	.L13
.L12:
	mov	eax, DWORD PTR -1276[rbp]
	test	eax, eax
	jne	.L14
	mov	eax, DWORD PTR -1272[rbp]
	test	eax, eax
	je	.L60
.L14:
	mov	DWORD PTR -1260[rbp], 0
	jmp	.L15
.L16:
	add	DWORD PTR -1260[rbp], 1
.L15:
	mov	eax, DWORD PTR -1260[rbp]
	cdqe
	movzx	eax, BYTE PTR -1184[rbp+rax]
	test	al, al
	jne	.L16
	mov	eax, DWORD PTR -1260[rbp]
	mov	DWORD PTR -1244[rbp], eax
	jmp	.L17
.L19:
	sub	DWORD PTR -1260[rbp], 1
.L17:
	mov	eax, DWORD PTR -1260[rbp]
	cdqe
	movzx	eax, BYTE PTR -1184[rbp+rax]
	cmp	al, 46
	je	.L18
	cmp	DWORD PTR -1260[rbp], 0
	jg	.L19
.L18:
	cmp	DWORD PTR -1260[rbp], 0
	jne	.L20
	mov	eax, DWORD PTR -1244[rbp]
	mov	DWORD PTR -1260[rbp], eax
.L20:
	mov	DWORD PTR -1256[rbp], 0
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -1256[rbp]
	cdqe
	movzx	edx, BYTE PTR -1184[rbp+rax]
	mov	eax, DWORD PTR -1256[rbp]
	cdqe
	mov	BYTE PTR -416[rbp+rax], dl
	mov	eax, DWORD PTR -1256[rbp]
	cdqe
	movzx	edx, BYTE PTR -416[rbp+rax]
	mov	eax, DWORD PTR -1256[rbp]
	cdqe
	mov	BYTE PTR -800[rbp+rax], dl
	add	DWORD PTR -1256[rbp], 1
.L21:
	mov	eax, DWORD PTR -1256[rbp]
	cmp	eax, DWORD PTR -1260[rbp]
	jl	.L22
	mov	eax, DWORD PTR -1256[rbp]
	cdqe
	mov	BYTE PTR -416[rbp+rax], 46
	mov	eax, DWORD PTR -1256[rbp]
	cdqe
	movzx	edx, BYTE PTR -416[rbp+rax]
	mov	eax, DWORD PTR -1256[rbp]
	cdqe
	mov	BYTE PTR -800[rbp+rax], dl
	add	DWORD PTR -1256[rbp], 1
	mov	eax, DWORD PTR -1256[rbp]
	cdqe
	mov	BYTE PTR -416[rbp+rax], 109
	mov	eax, DWORD PTR -1256[rbp]
	cdqe
	movzx	edx, BYTE PTR -416[rbp+rax]
	mov	eax, DWORD PTR -1256[rbp]
	cdqe
	mov	BYTE PTR -800[rbp+rax], dl
	add	DWORD PTR -1256[rbp], 1
	mov	eax, DWORD PTR -1256[rbp]
	cdqe
	mov	BYTE PTR -416[rbp+rax], 112
	mov	eax, DWORD PTR -1256[rbp]
	cdqe
	movzx	edx, BYTE PTR -416[rbp+rax]
	mov	eax, DWORD PTR -1256[rbp]
	cdqe
	mov	BYTE PTR -800[rbp+rax], dl
	add	DWORD PTR -1256[rbp], 1
	mov	eax, DWORD PTR -1256[rbp]
	cdqe
	mov	BYTE PTR -800[rbp+rax], 52
	add	DWORD PTR -1256[rbp], 1
	mov	eax, DWORD PTR -1256[rbp]
	cdqe
	mov	BYTE PTR -800[rbp+rax], 117
	add	DWORD PTR -1256[rbp], 1
	mov	eax, DWORD PTR -1256[rbp]
	cdqe
	mov	BYTE PTR -800[rbp+rax], 0
	sub	DWORD PTR -1256[rbp], 2
	mov	eax, DWORD PTR -1256[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -1256[rbp], edx
	cdqe
	mov	BYTE PTR -416[rbp+rax], 51
	mov	eax, DWORD PTR -1256[rbp]
	cdqe
	mov	BYTE PTR -416[rbp+rax], 0
	mov	eax, DWORD PTR -1276[rbp]
	test	eax, eax
	je	.L23
	lea	rax, -800[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1240[rbp], rax
	cmp	QWORD PTR -1240[rbp], 0
	jne	.L23
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L23:
	mov	eax, DWORD PTR -1272[rbp]
	test	eax, eax
	je	.L24
	lea	rax, -416[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1232[rbp], rax
	cmp	QWORD PTR -1232[rbp], 0
	jne	.L24
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L24:
	mov	eax, DWORD PTR -1252[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1208[rbp], rax
	cmp	QWORD PTR -1208[rbp], 0
	jne	.L25
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L25:
	mov	eax, DWORD PTR -1248[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1200[rbp], rax
	cmp	QWORD PTR -1200[rbp], 0
	jne	.L26
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L26:
	mov	eax, DWORD PTR -1276[rbp]
	test	eax, eax
	je	.L27
	mov	rdx, QWORD PTR -1240[rbp]
	mov	rax, QWORD PTR -1224[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
.L27:
	mov	rax, QWORD PTR -1216[rbp]
	mov	edx, 1
	mov	esi, 1769369453
	mov	rdi, rax
	call	Search_FCC
	mov	QWORD PTR -1192[rbp], rax
	mov	rax, QWORD PTR avi_file_size[rip]
	cmp	QWORD PTR -1192[rbp], rax
	jne	.L28
	lea	rdi, .LC16[rip]
	call	puts@PLT
	jmp	.L29
.L28:
	mov	rcx, QWORD PTR -1192[rbp]
	mov	rax, QWORD PTR -1216[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	DWORD PTR -1260[rbp], 0
.L54:
	add	DWORD PTR -1260[rbp], 1
	mov	eax, DWORD PTR -1260[rbp]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -1216[rbp]
	lea	rax, -1304[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -1304[rbp]
	cmp	eax, 1414744396
	jne	.L30
	mov	rdx, QWORD PTR -1216[rbp]
	lea	rax, -1280[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR -1216[rbp]
	lea	rax, -1300[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -1300[rbp]
	cmp	eax, 543384946
	je	.L31
	mov	eax, DWORD PTR -1280[rbp]
	sub	eax, 4
	movsx	rcx, eax
	mov	rax, QWORD PTR -1216[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	jmp	.L32
.L31:
	mov	rdx, QWORD PTR -1216[rbp]
	lea	rax, -1304[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	jmp	.L32
.L30:
	mov	eax, DWORD PTR -1304[rbp]
	sar	eax, 16
	cmp	eax, 25188
	je	.L33
	mov	eax, DWORD PTR -1304[rbp]
	sar	eax, 16
	cmp	eax, 25444
	jne	.L34
.L33:
	mov	rdx, QWORD PTR -1216[rbp]
	lea	rax, -1292[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -1276[rbp]
	test	eax, eax
	je	.L36
	mov	rdx, QWORD PTR -1240[rbp]
	lea	rax, -1292[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	jmp	.L36
.L38:
	mov	eax, DWORD PTR -1248[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -1216[rbp]
	mov	rax, QWORD PTR -1200[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -1276[rbp]
	test	eax, eax
	je	.L37
	mov	eax, DWORD PTR -1248[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -1240[rbp]
	mov	rax, QWORD PTR -1200[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L37:
	mov	eax, DWORD PTR -1292[rbp]
	sub	eax, DWORD PTR -1248[rbp]
	mov	DWORD PTR -1292[rbp], eax
.L36:
	mov	eax, DWORD PTR -1292[rbp]
	cmp	DWORD PTR -1248[rbp], eax
	jle	.L38
	mov	eax, DWORD PTR -1292[rbp]
	test	eax, eax
	jle	.L39
	mov	eax, DWORD PTR -1292[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -1216[rbp]
	mov	rax, QWORD PTR -1200[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -1276[rbp]
	test	eax, eax
	je	.L39
	mov	eax, DWORD PTR -1292[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -1240[rbp]
	mov	rax, QWORD PTR -1200[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L39:
	mov	eax, DWORD PTR -1292[rbp]
	and	eax, 1
	test	eax, eax
	je	.L40
	mov	rax, QWORD PTR -1216[rbp]
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fseek@PLT
.L40:
	mov	DWORD PTR -1292[rbp], 0
	jmp	.L32
.L34:
	mov	eax, DWORD PTR -1304[rbp]
	sar	eax, 16
	cmp	eax, 25207
	jne	.L41
	mov	rdx, QWORD PTR -1216[rbp]
	lea	rax, -1296[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	jmp	.L42
.L44:
	mov	eax, DWORD PTR -1252[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -1216[rbp]
	mov	rax, QWORD PTR -1208[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -1272[rbp]
	test	eax, eax
	je	.L43
	mov	eax, DWORD PTR -1252[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -1232[rbp]
	mov	rax, QWORD PTR -1208[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L43:
	mov	eax, DWORD PTR -1296[rbp]
	sub	eax, DWORD PTR -1252[rbp]
	mov	DWORD PTR -1296[rbp], eax
.L42:
	mov	eax, DWORD PTR -1296[rbp]
	cmp	DWORD PTR -1252[rbp], eax
	jle	.L44
	mov	eax, DWORD PTR -1296[rbp]
	test	eax, eax
	jle	.L45
	mov	eax, DWORD PTR -1296[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -1216[rbp]
	mov	rax, QWORD PTR -1208[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -1272[rbp]
	test	eax, eax
	je	.L45
	mov	eax, DWORD PTR -1296[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -1232[rbp]
	mov	rax, QWORD PTR -1208[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L45:
	mov	eax, DWORD PTR -1296[rbp]
	and	eax, 1
	test	eax, eax
	je	.L46
	mov	rax, QWORD PTR -1216[rbp]
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fseek@PLT
.L46:
	mov	DWORD PTR -1296[rbp], 0
	jmp	.L32
.L41:
	mov	eax, DWORD PTR -1304[rbp]
	sar	eax, 16
	cmp	eax, 30825
	je	.L47
	mov	eax, DWORD PTR -1304[rbp]
	movzx	eax, ax
	cmp	eax, 30825
	jne	.L48
.L47:
	mov	rdx, QWORD PTR -1216[rbp]
	lea	rax, -1284[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -1284[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -1216[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	jmp	.L32
.L48:
	mov	eax, DWORD PTR -1304[rbp]
	cmp	eax, 1263424842
	jne	.L49
	mov	rdx, QWORD PTR -1216[rbp]
	lea	rax, -1288[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -1288[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -1216[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	jmp	.L32
.L49:
	mov	eax, DWORD PTR -1304[rbp]
	cmp	eax, 829973609
	je	.L61
	cmp	DWORD PTR -1264[rbp], 0
	jne	.L32
.L52:
	mov	ebx, DWORD PTR -1304[rbp]
	mov	rax, QWORD PTR -1216[rbp]
	mov	rdi, rax
	call	ftell@PLT
	sub	rax, 4
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC20[rip]
	call	puts@PLT
	lea	rax, -1268[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -1268[rbp]
	test	eax, eax
	je	.L51
	mov	eax, DWORD PTR -1268[rbp]
	cmp	eax, 1
	je	.L51
	mov	eax, DWORD PTR -1268[rbp]
	cmp	eax, 2
	jne	.L52
.L51:
	mov	eax, DWORD PTR -1268[rbp]
	test	eax, eax
	je	.L62
	mov	eax, DWORD PTR -1268[rbp]
	cmp	eax, 2
	jne	.L32
	mov	DWORD PTR -1264[rbp], 1
.L32:
	mov	rax, QWORD PTR -1216[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	rdx, QWORD PTR avi_file_size[rip]
	cmp	rax, rdx
	jl	.L54
	jmp	.L29
.L61:
	nop
	jmp	.L29
.L62:
	nop
.L29:
	mov	rax, QWORD PTR -1208[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -1200[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -1272[rbp]
	test	eax, eax
	je	.L55
	mov	rax, QWORD PTR -1232[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L55:
	mov	eax, DWORD PTR -1276[rbp]
	test	eax, eax
	je	.L56
	mov	rax, QWORD PTR -1240[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L56:
	lea	rdi, .LC21[rip]
	call	puts@PLT
	jmp	.L6
.L58:
	nop
	jmp	.L6
.L59:
	nop
	jmp	.L6
.L60:
	nop
.L6:
	mov	rax, QWORD PTR -1216[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC22[rip]
	call	puts@PLT
	call	getchar@PLT
	call	getchar@PLT
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC23:
	.string	"A LIST chunk with the specified FOURCC (0x%8X) as the 'listType' has been found."
	.align 8
.LC24:
	.string	"An ordinary chunk with the specified FOURCC (0x%8X) as the 'chunkID' has been found."
	.text
	.globl	Search_FCC
	.type	Search_FCC, @function
Search_FCC:
.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	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	eax, edx
	mov	BYTE PTR -48[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 0
	mov	esi, 12
	mov	rdi, rax
	call	fseek@PLT
	cmp	BYTE PTR -48[rbp], 0
	je	.L64
.L69:
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -24[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 1414744396
	jne	.L65
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -20[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -28[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -28[rbp]
	cmp	DWORD PTR -44[rbp], eax
	jne	.L66
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L63
.L66:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 4
	movsx	rcx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	jmp	.L68
.L65:
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -20[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -20[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
.L68:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	rdx, QWORD PTR avi_file_size[rip]
	cmp	rax, rdx
	jl	.L69
	jmp	.L70
.L64:
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -24[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 1414744396
	jne	.L71
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -20[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -20[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	jmp	.L72
.L71:
	mov	eax, DWORD PTR -24[rbp]
	cmp	DWORD PTR -44[rbp], eax
	jne	.L73
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -20[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L63
.L73:
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -20[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -20[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
.L72:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	rdx, QWORD PTR avi_file_size[rip]
	cmp	rax, rdx
	jl	.L64
.L70:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	rdx, QWORD PTR avi_file_size[rip]
	sub	rdx, 8
	cmp	rax, rdx
	jl	.L74
	mov	rax, QWORD PTR avi_file_size[rip]
	jmp	.L63
.L74:
.L63:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L76
	call	__stack_chk_fail@PLT
.L76:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Search_FCC, .-Search_FCC
	.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	"780305.c"
	.text
	.comm	avi_file_size,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"MP4U\000"
	.align	2
.LC1:
	.ascii	"The program is used to extract mp4u (xvid video) an"
	.ascii	"d mp3 (audio) files from an avi file (AVI-2 format)"
	.ascii	".\000"
	.align	2
.LC2:
	.ascii	"It only supports avi files that multiplexes only on"
	.ascii	"e audio stream and only one video stream.\000"
	.align	2
.LC3:
	.ascii	"\012The name of the source avi file:\000"
	.align	2
.LC4:
	.ascii	"rb\000"
	.align	2
.LC5:
	.ascii	"\012WARNING! This file is NOT an RIFF file, do you "
	.ascii	"wish to continue?\000"
	.align	2
.LC6:
	.ascii	"0: No. Terminate the program, please.\000"
	.align	2
.LC7:
	.ascii	"1: Yes. Continue anyway.\000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.align	2
.LC9:
	.ascii	"\012WARNING! (RIFF chunk size) does NOT match (tota"
	.ascii	"l AVI file size -8), do you wish to continue?\000"
	.align	2
.LC10:
	.ascii	"\012Do you want to save the video (*.mp4u) file? [1"
	.ascii	": yes, 0: no]\000"
	.align	2
.LC11:
	.ascii	"\012Do you want to save the audio (*.mp3) file? [1:"
	.ascii	" yes, 0: no]\000"
	.align	2
.LC12:
	.ascii	"wb\000"
	.align	2
.LC13:
	.ascii	"Can't create the output files. Check whether the me"
	.ascii	"dia is read-only and the available disk space!\000"
	.align	2
.LC14:
	.ascii	"error in audio memory allocation!\000"
	.align	2
.LC15:
	.ascii	"error in video memory allocation!\000"
	.align	2
.LC16:
	.ascii	"\012 ERROR! No 'movi' chunk has been found! No vide"
	.ascii	"o and audio data can be saved.\000"
	.align	2
.LC17:
	.ascii	"\012 Processing...     Please wait patiently.\000"
	.align	2
.LC18:
	.ascii	"%d\012\000"
	.align	2
.LC19:
	.ascii	"\012WARNING! Encounter a ChunkID can't be handled b"
	.ascii	"y this program at adsress 0x%08X. Its content is 0x"
	.ascii	"%08X. Do you wish to continue?\012\000"
	.align	2
.LC20:
	.ascii	"2: Yes. Continue anyway, and don't ask anymore! Con"
	.ascii	"tinue regarless of error!!\000"
	.align	2
.LC21:
	.ascii	"\012\012 ===  All done!  ===\012\000"
	.align	2
.LC22:
	.ascii	"\012Press ENTER to quit.\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1248
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1248
	ldr	r3, .L63
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L63+4
	str	r3, [fp, #-1192]
	mov	r3, #0
	str	r3, [fp, #-1224]
	mov	r3, #0
	str	r3, [fp, #-1220]
	mov	r3, #0
	str	r3, [fp, #-1216]
	mov	r3, #0
	str	r3, [fp, #-1204]
	mov	r3, #1048576
	str	r3, [fp, #-1188]
	mov	r3, #16777216
	str	r3, [fp, #-1184]
	ldr	r0, .L63+8
	bl	puts
	ldr	r0, .L63+12
	bl	puts
.L2:
	ldr	r0, .L63+16
	bl	puts
	sub	r3, fp, #1152
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	gets
	sub	r3, fp, #1152
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L63+20
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1180]
	ldr	r3, [fp, #-1180]
	cmp	r3, #0
	beq	.L2
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-1180]
	bl	fseek
	ldr	r0, [fp, #-1180]
	bl	ftell
	mov	r3, r0
	ldr	r2, .L63+24
	str	r3, [r2]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-1180]
	bl	fseek
	sub	r0, fp, #1248
	sub	r0, r0, #4
	ldr	r3, [fp, #-1180]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-1252]
	ldr	r2, .L63+28
	cmp	r3, r2
	beq	.L3
.L5:
	ldr	r0, .L63+32
	bl	puts
	ldr	r0, .L63+36
	bl	puts
	ldr	r0, .L63+40
	bl	puts
	sub	r3, fp, #1200
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L63+44
	bl	__isoc99_scanf
	ldr	r3, [fp, #-1216]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-1216]
	cmp	r3, #1
	bne	.L5
.L4:
	ldr	r3, [fp, #-1216]
	cmp	r3, #0
	beq	.L58
.L3:
	sub	r0, fp, #1248
	sub	r0, r0, #4
	ldr	r3, [fp, #-1180]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, .L63+24
	ldr	r3, [r3]
	sub	r2, r3, #8
	ldr	r3, [fp, #-1252]
	cmp	r2, r3
	beq	.L11
.L9:
	ldr	r0, .L63+48
	bl	puts
	ldr	r0, .L63+36
	bl	puts
	ldr	r0, .L63+40
	bl	puts
	sub	r3, fp, #1200
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L63+44
	bl	__isoc99_scanf
	ldr	r3, [fp, #-1216]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-1216]
	cmp	r3, #1
	bne	.L9
.L8:
	ldr	r3, [fp, #-1216]
	cmp	r3, #0
	beq	.L59
.L11:
	ldr	r0, .L63+52
	bl	printf
	sub	r3, fp, #1216
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L63+44
	bl	__isoc99_scanf
	ldr	r3, [fp, #-1224]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-1224]
	cmp	r3, #1
	bne	.L11
.L13:
	ldr	r0, .L63+56
	bl	printf
	sub	r3, fp, #1216
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L63+44
	bl	__isoc99_scanf
	ldr	r3, [fp, #-1220]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-1220]
	cmp	r3, #1
	bne	.L13
.L12:
	ldr	r3, [fp, #-1224]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-1220]
	cmp	r3, #0
	beq	.L60
.L14:
	mov	r3, #0
	str	r3, [fp, #-1200]
	b	.L15
.L16:
	ldr	r3, [fp, #-1200]
	add	r3, r3, #1
	str	r3, [fp, #-1200]
.L15:
	sub	r3, fp, #1152
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1200]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-1200]
	str	r3, [fp, #-1176]
	b	.L17
.L19:
	ldr	r3, [fp, #-1200]
	sub	r3, r3, #1
	str	r3, [fp, #-1200]
.L17:
	sub	r3, fp, #1152
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1200]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	beq	.L18
	ldr	r3, [fp, #-1200]
	cmp	r3, #0
	bgt	.L19
.L18:
	ldr	r3, [fp, #-1200]
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-1176]
	str	r3, [fp, #-1200]
.L20:
	mov	r3, #0
	str	r3, [fp, #-1196]
	b	.L21
.L22:
	sub	r3, fp, #1152
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1196]
	add	r3, r3, r2
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #392
	ldr	r3, [fp, #-1196]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	sub	r2, fp, #392
	ldr	r3, [fp, #-1196]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #776
	ldr	r3, [fp, #-1196]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-1196]
	add	r3, r3, #1
	str	r3, [fp, #-1196]
.L21:
	ldr	r2, [fp, #-1196]
	ldr	r3, [fp, #-1200]
	cmp	r2, r3
	blt	.L22
	sub	r2, fp, #392
	ldr	r3, [fp, #-1196]
	add	r3, r2, r3
	mov	r2, #46
	strb	r2, [r3]
	sub	r2, fp, #392
	ldr	r3, [fp, #-1196]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #776
	ldr	r3, [fp, #-1196]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-1196]
	add	r3, r3, #1
	str	r3, [fp, #-1196]
	sub	r2, fp, #392
	ldr	r3, [fp, #-1196]
	add	r3, r2, r3
	mov	r2, #109
	strb	r2, [r3]
	sub	r2, fp, #392
	ldr	r3, [fp, #-1196]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #776
	ldr	r3, [fp, #-1196]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-1196]
	add	r3, r3, #1
	str	r3, [fp, #-1196]
	sub	r2, fp, #392
	ldr	r3, [fp, #-1196]
	add	r3, r2, r3
	mov	r2, #112
	strb	r2, [r3]
	sub	r2, fp, #392
	ldr	r3, [fp, #-1196]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #776
	ldr	r3, [fp, #-1196]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-1196]
	add	r3, r3, #1
	str	r3, [fp, #-1196]
	sub	r2, fp, #776
	ldr	r3, [fp, #-1196]
	add	r3, r2, r3
	mov	r2, #52
	strb	r2, [r3]
	ldr	r3, [fp, #-1196]
	add	r3, r3, #1
	str	r3, [fp, #-1196]
	sub	r2, fp, #776
	ldr	r3, [fp, #-1196]
	add	r3, r2, r3
	mov	r2, #117
	strb	r2, [r3]
	ldr	r3, [fp, #-1196]
	add	r3, r3, #1
	str	r3, [fp, #-1196]
	sub	r2, fp, #776
	ldr	r3, [fp, #-1196]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-1196]
	sub	r3, r3, #2
	str	r3, [fp, #-1196]
	ldr	r3, [fp, #-1196]
	add	r2, r3, #1
	str	r2, [fp, #-1196]
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #51
	strb	r2, [r3, #-388]
	sub	r2, fp, #392
	ldr	r3, [fp, #-1196]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-1224]
	cmp	r3, #0
	beq	.L23
	sub	r3, fp, #776
	ldr	r1, .L63+60
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1212]
	ldr	r3, [fp, #-1212]
	cmp	r3, #0
	bne	.L23
	ldr	r0, .L63+64
	bl	puts
	mov	r0, #0
	bl	exit
.L23:
	ldr	r3, [fp, #-1220]
	cmp	r3, #0
	beq	.L24
	sub	r3, fp, #392
	ldr	r1, .L63+60
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1208]
	ldr	r3, [fp, #-1208]
	cmp	r3, #0
	bne	.L24
	ldr	r0, .L63+64
	bl	puts
	mov	r0, #0
	bl	exit
.L24:
	ldr	r3, [fp, #-1188]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1172]
	ldr	r3, [fp, #-1172]
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L63+68
	bl	puts
	mov	r0, #0
	bl	exit
.L25:
	ldr	r3, [fp, #-1184]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1168]
	ldr	r3, [fp, #-1168]
	cmp	r3, #0
	bne	.L26
	ldr	r0, .L63+72
	bl	puts
	mov	r0, #0
	bl	exit
.L26:
	ldr	r3, [fp, #-1224]
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-1212]
	mov	r2, #1
	mov	r1, #4
	ldr	r0, [fp, #-1192]
	bl	fwrite
.L27:
	mov	r2, #1
	ldr	r1, .L63+76
	ldr	r0, [fp, #-1180]
	bl	Search_FCC
	str	r0, [fp, #-1164]
	ldr	r3, .L63+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-1164]
	cmp	r2, r3
	bne	.L28
	ldr	r0, .L63+80
	bl	puts
	b	.L29
.L28:
	mov	r2, #0
	ldr	r1, [fp, #-1164]
	ldr	r0, [fp, #-1180]
	bl	fseek
	ldr	r0, .L63+84
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-1200]
.L54:
	ldr	r3, [fp, #-1200]
	add	r3, r3, #1
	str	r3, [fp, #-1200]
	ldr	r1, [fp, #-1200]
	ldr	r0, .L63+88
	bl	printf
	sub	r0, fp, #1248
	sub	r0, r0, #4
	ldr	r3, [fp, #-1180]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-1252]
	ldr	r2, .L63+92
	cmp	r3, r2
	bne	.L30
	sub	r0, fp, #1216
	sub	r0, r0, #4
	sub	r0, r0, #8
	ldr	r3, [fp, #-1180]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	sub	r0, fp, #1232
	sub	r0, r0, #4
	sub	r0, r0, #12
	ldr	r3, [fp, #-1180]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-1248]
	ldr	r2, .L63+96
	cmp	r3, r2
	beq	.L31
	ldr	r3, [fp, #-1228]
	sub	r3, r3, #4
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-1180]
	bl	fseek
	b	.L32
.L31:
	sub	r0, fp, #1248
	sub	r0, r0, #4
	ldr	r3, [fp, #-1180]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	b	.L32
.L30:
	ldr	r3, [fp, #-1252]
	asr	r3, r3, #16
	ldr	r2, .L63+100
	cmp	r3, r2
	beq	.L33
	ldr	r3, [fp, #-1252]
	asr	r3, r3, #16
	ldr	r2, .L63+104
	cmp	r3, r2
	bne	.L34
.L33:
	sub	r0, fp, #1232
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [fp, #-1180]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-1224]
	cmp	r3, #0
	beq	.L36
	sub	r0, fp, #1232
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [fp, #-1212]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	b	.L36
.L38:
	ldr	r2, [fp, #-1184]
	ldr	r3, [fp, #-1180]
	mov	r1, #1
	ldr	r0, [fp, #-1168]
	bl	fread
	ldr	r3, [fp, #-1224]
	cmp	r3, #0
	beq	.L37
	ldr	r2, [fp, #-1184]
	ldr	r3, [fp, #-1212]
	mov	r1, #1
	ldr	r0, [fp, #-1168]
	bl	fwrite
.L37:
	ldr	r2, [fp, #-1240]
	ldr	r3, [fp, #-1184]
	sub	r3, r2, r3
	str	r3, [fp, #-1240]
.L36:
	ldr	r3, [fp, #-1240]
	ldr	r2, [fp, #-1184]
	cmp	r2, r3
	ble	.L38
	ldr	r3, [fp, #-1240]
	cmp	r3, #0
	ble	.L39
	ldr	r3, [fp, #-1240]
	mov	r2, r3
	ldr	r3, [fp, #-1180]
	mov	r1, #1
	ldr	r0, [fp, #-1168]
	bl	fread
	ldr	r3, [fp, #-1224]
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-1240]
	mov	r2, r3
	ldr	r3, [fp, #-1212]
	mov	r1, #1
	ldr	r0, [fp, #-1168]
	bl	fwrite
.L39:
	ldr	r3, [fp, #-1240]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L40
	mov	r2, #1
	mov	r1, #1
	ldr	r0, [fp, #-1180]
	bl	fseek
.L40:
	mov	r3, #0
	str	r3, [fp, #-1240]
	b	.L32
.L34:
	ldr	r3, [fp, #-1252]
	asr	r3, r3, #16
	ldr	r2, .L63+108
	cmp	r3, r2
	bne	.L41
	sub	r0, fp, #1232
	sub	r0, r0, #4
	sub	r0, r0, #8
	ldr	r3, [fp, #-1180]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	b	.L42
.L44:
	ldr	r2, [fp, #-1188]
	ldr	r3, [fp, #-1180]
	mov	r1, #1
	ldr	r0, [fp, #-1172]
	bl	fread
	ldr	r3, [fp, #-1220]
	cmp	r3, #0
	beq	.L43
	ldr	r2, [fp, #-1188]
	ldr	r3, [fp, #-1208]
	mov	r1, #1
	ldr	r0, [fp, #-1172]
	bl	fwrite
.L43:
	ldr	r2, [fp, #-1244]
	ldr	r3, [fp, #-1188]
	sub	r3, r2, r3
	str	r3, [fp, #-1244]
.L42:
	ldr	r3, [fp, #-1244]
	ldr	r2, [fp, #-1188]
	cmp	r2, r3
	ble	.L44
	ldr	r3, [fp, #-1244]
	cmp	r3, #0
	ble	.L45
	ldr	r3, [fp, #-1244]
	mov	r2, r3
	ldr	r3, [fp, #-1180]
	mov	r1, #1
	ldr	r0, [fp, #-1172]
	bl	fread
	ldr	r3, [fp, #-1220]
	cmp	r3, #0
	beq	.L45
	ldr	r3, [fp, #-1244]
	mov	r2, r3
	ldr	r3, [fp, #-1208]
	mov	r1, #1
	ldr	r0, [fp, #-1172]
	bl	fwrite
.L45:
	ldr	r3, [fp, #-1244]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L46
	mov	r2, #1
	mov	r1, #1
	ldr	r0, [fp, #-1180]
	bl	fseek
.L46:
	mov	r3, #0
	str	r3, [fp, #-1244]
	b	.L32
.L41:
	ldr	r3, [fp, #-1252]
	asr	r3, r3, #16
	ldr	r2, .L63+112
	cmp	r3, r2
	beq	.L47
	ldr	r3, [fp, #-1252]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L63+112
	cmp	r3, r2
	bne	.L48
.L47:
	sub	r0, fp, #1216
	sub	r0, r0, #4
	sub	r0, r0, #12
	ldr	r3, [fp, #-1180]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-1232]
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-1180]
	bl	fseek
	b	.L32
.L48:
	ldr	r3, [fp, #-1252]
	ldr	r2, .L63+116
	cmp	r3, r2
	bne	.L49
	sub	r0, fp, #1232
	sub	r0, r0, #4
	ldr	r3, [fp, #-1180]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-1236]
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-1180]
	bl	fseek
	b	.L32
.L49:
	ldr	r3, [fp, #-1252]
	ldr	r2, .L63+120
	cmp	r3, r2
	beq	.L61
	ldr	r3, [fp, #-1204]
	cmp	r3, #0
	bne	.L32
.L52:
	ldr	r0, [fp, #-1180]
	bl	ftell
	mov	r3, r0
	sub	r3, r3, #4
	ldr	r2, [fp, #-1252]
	mov	r1, r3
	ldr	r0, .L63+124
	bl	printf
	ldr	r0, .L63+36
	bl	puts
	ldr	r0, .L63+40
	bl	puts
	ldr	r0, .L63+128
	bl	puts
	sub	r3, fp, #1200
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L63+44
	bl	__isoc99_scanf
	ldr	r3, [fp, #-1216]
	cmp	r3, #0
	beq	.L51
	ldr	r3, [fp, #-1216]
	cmp	r3, #1
	beq	.L51
	ldr	r3, [fp, #-1216]
	cmp	r3, #2
	bne	.L52
.L51:
	ldr	r3, [fp, #-1216]
	cmp	r3, #0
	beq	.L62
	ldr	r3, [fp, #-1216]
	cmp	r3, #2
	bne	.L32
	mov	r3, #1
	str	r3, [fp, #-1204]
.L32:
	ldr	r0, [fp, #-1180]
	bl	ftell
	mov	r2, r0
	ldr	r3, .L63+24
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L54
	b	.L29
.L61:
	nop
	b	.L29
.L62:
	nop
.L29:
	ldr	r0, [fp, #-1172]
	bl	free
	ldr	r0, [fp, #-1168]
	bl	free
	ldr	r3, [fp, #-1220]
	cmp	r3, #0
	beq	.L55
	ldr	r0, [fp, #-1208]
	bl	fclose
.L55:
	ldr	r3, [fp, #-1224]
	cmp	r3, #0
	beq	.L56
	ldr	r0, [fp, #-1212]
	bl	fclose
.L56:
	ldr	r0, .L63+132
	bl	puts
	b	.L6
.L58:
	nop
	b	.L6
.L59:
	nop
	b	.L6
.L60:
	nop
.L6:
	ldr	r0, [fp, #-1180]
	bl	fclose
	ldr	r0, .L63+136
	bl	puts
	bl	getchar
	bl	getchar
	nop
	ldr	r3, .L63
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L57
	bl	__stack_chk_fail
.L57:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L64:
	.align	2
.L63:
	.word	.LC23
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	avi_file_size
	.word	1179011410
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	1769369453
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	1414744396
	.word	543384946
	.word	25188
	.word	25444
	.word	25207
	.word	30825
	.word	1263424842
	.word	829973609
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	main, .-main
	.section	.rodata
	.align	2
.LC24:
	.ascii	"A LIST chunk with the specified FOURCC (0x%8X) as t"
	.ascii	"he 'listType' has been found.\000"
	.align	2
.LC25:
	.ascii	"An ordinary chunk with the specified FOURCC (0x%8X)"
	.ascii	" as the 'chunkID' has been found.\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Search_FCC
	.syntax unified
	.arm
	.fpu softvfp
	.type	Search_FCC, %function
Search_FCC:
	@ 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]
	mov	r3, r2
	strb	r3, [fp, #-37]
	ldr	r3, .L79
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #12
	ldr	r0, [fp, #-32]
	bl	fseek
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L66
.L71:
	sub	r0, fp, #20
	ldr	r3, [fp, #-32]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-20]
	ldr	r2, .L79+4
	cmp	r3, r2
	bne	.L67
	sub	r0, fp, #16
	ldr	r3, [fp, #-32]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	sub	r0, fp, #24
	ldr	r3, [fp, #-32]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bne	.L68
	ldr	r1, [fp, #-36]
	ldr	r0, .L79+8
	bl	printf
	ldr	r0, [fp, #-32]
	bl	ftell
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	b	.L65
.L68:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #4
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	fseek
	b	.L70
.L67:
	sub	r0, fp, #16
	ldr	r3, [fp, #-32]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-16]
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	fseek
.L70:
	ldr	r0, [fp, #-32]
	bl	ftell
	mov	r2, r0
	ldr	r3, .L79+12
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L71
	b	.L72
.L66:
	sub	r0, fp, #20
	ldr	r3, [fp, #-32]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-20]
	ldr	r2, .L79+4
	cmp	r3, r2
	bne	.L73
	sub	r0, fp, #16
	ldr	r3, [fp, #-32]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-16]
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	fseek
	b	.L74
.L73:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bne	.L75
	ldr	r1, [fp, #-36]
	ldr	r0, .L79+16
	bl	printf
	sub	r0, fp, #16
	ldr	r3, [fp, #-32]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r0, [fp, #-32]
	bl	ftell
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	b	.L65
.L75:
	sub	r0, fp, #16
	ldr	r3, [fp, #-32]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-16]
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	fseek
.L74:
	ldr	r0, [fp, #-32]
	bl	ftell
	mov	r2, r0
	ldr	r3, .L79+12
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L66
.L72:
	ldr	r0, [fp, #-32]
	bl	ftell
	mov	r2, r0
	ldr	r3, .L79+12
	ldr	r3, [r3]
	sub	r3, r3, #8
	cmp	r2, r3
	blt	.L76
	ldr	r3, .L79+12
	ldr	r3, [r3]
	b	.L65
.L76:
.L65:
	ldr	r2, .L79
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L78
	bl	__stack_chk_fail
.L78:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L80:
	.align	2
.L79:
	.word	.LC26
	.word	1414744396
	.word	.LC24
	.word	avi_file_size
	.word	.LC25
	.size	Search_FCC, .-Search_FCC
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
