	.file	"927974.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"error: %s failed\n"
	.text
	.globl	try
	.type	try, @function
try:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	cmp	DWORD PTR -12[rbp], 0
	je	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	try, .-try
	.globl	read32
	.type	read32, @function
read32:
.LFB7:
	.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	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	read32, .-read32
	.globl	read16
	.type	read16, @function
read16:
.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	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	read16, .-read16
	.section	.rodata
.LC1:
	.string	"%02x "
	.text
	.globl	hexprint
	.type	hexprint, @function
hexprint:
.LFB9:
	.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	DWORD PTR -4[rbp], 0
	jmp	.L11
.L13:
	cmp	DWORD PTR -4[rbp], 0
	jle	.L12
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 15
	test	eax, eax
	jne	.L12
	mov	edi, 10
	call	putchar@PLT
.L12:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L11:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L13
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	hexprint, .-hexprint
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 8192
buf:
	.zero	8192
	.section	.rodata
	.align 8
.LC2:
	.string	"usage: %s blah.srt [2 blah02.ssd out.zwdsp]\n"
.LC3:
	.string	"rb"
.LC4:
	.string	"open input"
.LC5:
	.string	"seek to file end"
.LC6:
	.string	"get file size"
.LC7:
	.string	"get back to file start"
.LC8:
	.string	"read header"
.LC9:
	.string	"%s...\n"
.LC10:
	.string	"seek to RND block"
.LC11:
	.string	"read RND block header "
.LC12:
	.string	"RND"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	"\020"
	.string	""
	.string	""
	.string	""
	.string	""
.LC13:
	.string	"check RND block header"
.LC14:
	.string	"seek to SSD block"
.LC15:
	.string	"read SSD block header"
.LC16:
	.string	"SSD"
	.string	""
.LC17:
	.string	""
	.string	""
	.string	""
	.string	"\020"
	.string	""
	.string	""
	.string	""
	.string	""
.LC18:
	.string	"check SSD block header"
.LC19:
	.string	"%d streams\n"
.LC20:
	.string	"seek to SSD entry index"
.LC21:
	.string	"read SSD entry index"
.LC22:
	.string	"seek to SSD entry"
.LC23:
	.string	"read SSD entry"
.LC24:
	.string	"seek to SRT block"
.LC25:
	.string	"read SRT block header"
.LC26:
	.string	"SRT"
	.string	""
.LC27:
	.string	"check SRT block header"
.LC28:
	.string	"seek to SRT entry index"
.LC29:
	.string	"read SRT entry index"
.LC30:
	.string	"seek to SRT entry"
.LC31:
	.string	"read SRT entry"
.LC32:
	.string	"seek to DSP block"
.LC33:
	.string	"read DSP block header"
.LC34:
	.string	"DSP"
	.string	""
.LC35:
	.string	"check DSP block header"
.LC36:
	.string	"seek to DSP entry index"
.LC37:
	.string	"read DSP entry index"
.LC38:
	.string	"seek to DSP entry"
.LC39:
	.string	"read DSP entry"
.LC40:
	.string	"BAD SIZE"
.LC41:
	.string	"%3d:\t%d\n"
.LC42:
	.string	"open input ssd file"
.LC43:
	.string	"seek to ssd file end"
.LC44:
	.string	"get ssd file size"
.LC45:
	.string	"seek back to ssd file start"
.LC46:
	.string	"wb"
.LC47:
	.string	"open output file"
.LC48:
	.string	"%d"
.LC49:
	.string	"parse stream # to dump"
.LC50:
	.string	"%s[%d]+%s->%s...\n"
	.align 8
.LC51:
	.string	"bad stream number, there are %d stream headers in this .srt\n"
.LC52:
	.string	"write DSP entry"
.LC53:
	.string	"read ssd"
.LC54:
	.string	"write output"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -100[rbp], 5
	je	.L15
	cmp	DWORD PTR -100[rbp], 2
	je	.L15
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L16
.L15:
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	sete	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC4[rip]
	call	try
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	esi, eax
	lea	rdi, .LC5[rip]
	call	try
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], -1
	sete	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC6[rip]
	call	try
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	esi, eax
	lea	rdi, .LC7[rip]
	call	try
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, buf[rip]
	call	fread@PLT
	cmp	rax, 16
	setne	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC8[rip]
	call	try
	lea	rdi, buf[rip]
	call	read32
	mov	DWORD PTR -64[rbp], eax
	lea	rax, buf[rip+4]
	mov	rdi, rax
	call	read32
	mov	DWORD PTR -60[rbp], eax
	lea	rax, buf[rip+8]
	mov	rdi, rax
	call	read32
	mov	DWORD PTR -56[rbp], eax
	lea	rax, buf[rip+12]
	mov	rdi, rax
	call	read32
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -100[rbp], 2
	jne	.L17
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -64[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	esi, eax
	lea	rdi, .LC10[rip]
	call	try
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, buf[rip]
	call	fread@PLT
	cmp	rax, 16
	setne	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC11[rip]
	call	try
	mov	edx, 16
	lea	rsi, buf[rip]
	lea	rdi, .LC12[rip]
	call	memcmp@PLT
	mov	esi, eax
	lea	rdi, .LC13[rip]
	call	try
	mov	eax, DWORD PTR -60[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	esi, eax
	lea	rdi, .LC14[rip]
	call	try
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, buf[rip]
	call	fread@PLT
	cmp	rax, 16
	setne	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC15[rip]
	call	try
	mov	edx, 4
	lea	rsi, buf[rip]
	lea	rdi, .LC16[rip]
	call	memcmp@PLT
	test	eax, eax
	jne	.L18
	lea	rax, buf[rip+8]
	mov	edx, 8
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	call	memcmp@PLT
	test	eax, eax
	je	.L19
.L18:
	mov	eax, 1
	jmp	.L20
.L19:
	mov	eax, 0
.L20:
	mov	esi, eax
	lea	rdi, .LC18[rip]
	call	try
	lea	rax, buf[rip+4]
	mov	rdi, rax
	call	read32
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -80[rbp], 0
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -60[rbp]
	lea	edx, 16[rax]
	mov	eax, DWORD PTR -80[rbp]
	sal	eax, 2
	add	eax, edx
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	esi, eax
	lea	rdi, .LC20[rip]
	call	try
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, 4
	mov	esi, 1
	lea	rdi, buf[rip]
	call	fread@PLT
	cmp	rax, 4
	setne	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC21[rip]
	call	try
	lea	rdi, buf[rip]
	call	read32
	mov	edx, DWORD PTR -60[rbp]
	add	eax, edx
	add	eax, 16
	mov	ecx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	esi, eax
	lea	rdi, .LC22[rip]
	call	try
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, buf[rip]
	call	fread@PLT
	cmp	rax, 16
	setne	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC23[rip]
	call	try
	add	DWORD PTR -80[rbp], 1
.L21:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L22
	mov	eax, DWORD PTR -56[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	esi, eax
	lea	rdi, .LC24[rip]
	call	try
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, buf[rip]
	call	fread@PLT
	cmp	rax, 16
	setne	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC25[rip]
	call	try
	mov	edx, 4
	lea	rsi, buf[rip]
	lea	rdi, .LC26[rip]
	call	memcmp@PLT
	test	eax, eax
	jne	.L23
	lea	rax, buf[rip+8]
	mov	edx, 8
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	call	memcmp@PLT
	test	eax, eax
	je	.L24
.L23:
	mov	eax, 1
	jmp	.L25
.L24:
	mov	eax, 0
.L25:
	mov	esi, eax
	lea	rdi, .LC27[rip]
	call	try
	lea	rax, buf[rip+4]
	mov	rdi, rax
	call	read32
	mov	DWORD PTR -40[rbp], eax
	mov	DWORD PTR -80[rbp], 0
	jmp	.L26
.L28:
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, 16[rax]
	mov	eax, DWORD PTR -80[rbp]
	sal	eax, 2
	add	eax, edx
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	esi, eax
	lea	rdi, .LC28[rip]
	call	try
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, 4
	mov	esi, 1
	lea	rdi, buf[rip]
	call	fread@PLT
	cmp	rax, 4
	setne	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC29[rip]
	call	try
	lea	rdi, buf[rip]
	call	read32
	mov	edx, DWORD PTR -56[rbp]
	add	eax, edx
	add	eax, 16
	mov	ecx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	esi, eax
	lea	rdi, .LC30[rip]
	call	try
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, 48
	mov	esi, 1
	lea	rdi, buf[rip]
	call	fread@PLT
	cmp	rax, 48
	setne	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC31[rip]
	call	try
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	add	DWORD PTR -80[rbp], 1
.L26:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L28
	mov	eax, DWORD PTR -52[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	esi, eax
	lea	rdi, .LC32[rip]
	call	try
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, buf[rip]
	call	fread@PLT
	cmp	rax, 16
	setne	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC33[rip]
	call	try
	mov	edx, 4
	lea	rsi, buf[rip]
	lea	rdi, .LC34[rip]
	call	memcmp@PLT
	test	eax, eax
	jne	.L29
	lea	rax, buf[rip+4]
	mov	rdi, rax
	call	read32
	mov	edx, DWORD PTR -48[rbp]
	cmp	eax, edx
	jne	.L29
	lea	rax, buf[rip+8]
	mov	edx, 8
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	call	memcmp@PLT
	test	eax, eax
	je	.L30
.L29:
	mov	eax, 1
	jmp	.L31
.L30:
	mov	eax, 0
.L31:
	mov	esi, eax
	lea	rdi, .LC35[rip]
	call	try
	mov	DWORD PTR -76[rbp], -1
	mov	DWORD PTR -80[rbp], 0
	jmp	.L32
.L36:
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 16[rax]
	mov	eax, DWORD PTR -80[rbp]
	sal	eax, 2
	add	eax, edx
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	esi, eax
	lea	rdi, .LC36[rip]
	call	try
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, 4
	mov	esi, 1
	lea	rdi, buf[rip]
	call	fread@PLT
	cmp	rax, 4
	setne	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC37[rip]
	call	try
	lea	rdi, buf[rip]
	call	read32
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 16[rax]
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	esi, eax
	lea	rdi, .LC38[rip]
	call	try
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, 144
	mov	esi, 1
	lea	rdi, buf[rip]
	call	fread@PLT
	cmp	rax, 144
	setne	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC39[rip]
	call	try
	cmp	DWORD PTR -80[rbp], 0
	jne	.L33
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -76[rbp], eax
	jmp	.L34
.L33:
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, DWORD PTR -76[rbp]
	cmp	eax, 144
	je	.L35
	lea	rdi, .LC40[rip]
	call	puts@PLT
.L35:
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -76[rbp], eax
.L34:
	lea	rax, buf[rip+88]
	mov	rdi, rax
	call	read32
	mov	edx, eax
	mov	eax, DWORD PTR -80[rbp]
	mov	esi, eax
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -80[rbp], 1
.L32:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L36
	mov	edx, DWORD PTR -76[rbp]
	mov	eax, DWORD PTR -52[rbp]
	add	eax, edx
	lea	edx, 16[rax]
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, edx
	cmp	eax, 144
	je	.L37
	lea	rdi, .LC40[rip]
	call	puts@PLT
.L37:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	jmp	.L16
.L17:
	cmp	DWORD PTR -100[rbp], 5
	jne	.L38
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	sete	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC42[rip]
	call	try
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	esi, eax
	lea	rdi, .LC43[rip]
	call	try
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], -1
	sete	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC44[rip]
	call	try
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	esi, eax
	lea	rdi, .LC45[rip]
	call	try
	mov	eax, DWORD PTR -60[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	esi, eax
	lea	rdi, .LC14[rip]
	call	try
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, buf[rip]
	call	fread@PLT
	cmp	rax, 16
	setne	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC15[rip]
	call	try
	mov	edx, 4
	lea	rsi, buf[rip]
	lea	rdi, .LC16[rip]
	call	memcmp@PLT
	test	eax, eax
	jne	.L39
	lea	rax, buf[rip+8]
	mov	edx, 8
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	call	memcmp@PLT
	test	eax, eax
	je	.L40
.L39:
	mov	eax, 1
	jmp	.L41
.L40:
	mov	eax, 0
.L41:
	mov	esi, eax
	lea	rdi, .LC18[rip]
	call	try
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC46[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	sete	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC47[rip]
	call	try
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, -84[rbp]
	lea	rsi, .LC48[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	setne	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC49[rip]
	call	try
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 32
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 24
	mov	rcx, QWORD PTR [rax]
	mov	edx, DWORD PTR -84[rbp]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC50[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, buf[rip+4]
	mov	rdi, rax
	call	read32
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	test	eax, eax
	js	.L42
	mov	eax, DWORD PTR -84[rbp]
	cmp	DWORD PTR -48[rbp], eax
	jg	.L43
.L42:
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, eax
	lea	rdi, .LC51[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L43:
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 16[rax]
	mov	eax, DWORD PTR -84[rbp]
	sal	eax, 2
	add	eax, edx
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	esi, eax
	lea	rdi, .LC36[rip]
	call	try
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, 4
	mov	esi, 1
	lea	rdi, buf[rip]
	call	fread@PLT
	cmp	rax, 4
	setne	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC37[rip]
	call	try
	lea	rdi, buf[rip]
	call	read32
	mov	edx, DWORD PTR -52[rbp]
	add	eax, edx
	add	eax, 16
	mov	ecx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	esi, eax
	lea	rdi, .LC38[rip]
	call	try
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, 144
	mov	esi, 1
	lea	rdi, buf[rip]
	call	fread@PLT
	cmp	rax, 144
	setne	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC39[rip]
	call	try
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	edx, 144
	mov	esi, 1
	lea	rdi, buf[rip]
	call	fwrite@PLT
	cmp	rax, 144
	setne	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC52[rip]
	call	try
	jmp	.L44
.L45:
	mov	eax, 8192
	cmp	DWORD PTR -72[rbp], 8192
	cmovle	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 1
	lea	rdi, buf[rip]
	call	fread@PLT
	mov	edx, DWORD PTR -44[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	setne	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC53[rip]
	call	try
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	mov	rdx, QWORD PTR -16[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 1
	lea	rdi, buf[rip]
	call	fwrite@PLT
	mov	edx, DWORD PTR -44[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	setne	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC54[rip]
	call	try
	mov	eax, DWORD PTR -44[rbp]
	sub	DWORD PTR -72[rbp], eax
.L44:
	cmp	DWORD PTR -72[rbp], 0
	jg	.L45
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	jmp	.L16
.L38:
	mov	eax, 1
.L16:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L46
	call	__stack_chk_fail@PLT
.L46:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.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	"927974.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"error: %s failed\012\000"
	.text
	.align	2
	.global	try
	.syntax unified
	.arm
	.fpu softvfp
	.type	try, %function
try:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L6
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L6+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L5:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	stderr
	.word	.LC0
	.size	try, .-try
	.align	2
	.global	read32
	.syntax unified
	.arm
	.fpu softvfp
	.type	read32, %function
read32:
	@ 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]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r2, r3, #24
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	ldr	r2, [fp, #-8]
	add	r2, r2, #3
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	read32, .-read32
	.align	2
	.global	read16
	.syntax unified
	.arm
	.fpu softvfp
	.type	read16, %function
read16:
	@ 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]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldr	r2, [fp, #-8]
	add	r2, r2, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	read16, .-read16
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%02x \000"
	.text
	.align	2
	.global	hexprint
	.syntax unified
	.arm
	.fpu softvfp
	.type	hexprint, %function
hexprint:
	@ 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, #-8]
	b	.L13
.L15:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L14
	ldr	r3, [fp, #-8]
	and	r3, r3, #15
	cmp	r3, #0
	bne	.L14
	mov	r0, #10
	bl	putchar
.L14:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L16
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L13:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L15
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC1
	.size	hexprint, .-hexprint
	.comm	buf,8192,4
	.section	.rodata
	.align	2
.LC2:
	.ascii	"usage: %s blah.srt [2 blah02.ssd out.zwdsp]\012\000"
	.align	2
.LC3:
	.ascii	"rb\000"
	.align	2
.LC4:
	.ascii	"open input\000"
	.align	2
.LC5:
	.ascii	"seek to file end\000"
	.align	2
.LC6:
	.ascii	"get file size\000"
	.align	2
.LC7:
	.ascii	"get back to file start\000"
	.align	2
.LC8:
	.ascii	"read header\000"
	.align	2
.LC9:
	.ascii	"%s...\012\000"
	.align	2
.LC10:
	.ascii	"seek to RND block\000"
	.align	2
.LC11:
	.ascii	"read RND block header \000"
	.align	2
.LC12:
	.ascii	"RND\000\000\000\000\000\000\000\000\020\000\000\000"
	.ascii	"\000\000"
	.align	2
.LC13:
	.ascii	"check RND block header\000"
	.align	2
.LC14:
	.ascii	"seek to SSD block\000"
	.align	2
.LC15:
	.ascii	"read SSD block header\000"
	.align	2
.LC16:
	.ascii	"SSD\000\000"
	.align	2
.LC17:
	.ascii	"\000\000\000\020\000\000\000\000\000"
	.align	2
.LC18:
	.ascii	"check SSD block header\000"
	.align	2
.LC19:
	.ascii	"%d streams\012\000"
	.align	2
.LC20:
	.ascii	"seek to SSD entry index\000"
	.align	2
.LC21:
	.ascii	"read SSD entry index\000"
	.align	2
.LC22:
	.ascii	"seek to SSD entry\000"
	.align	2
.LC23:
	.ascii	"read SSD entry\000"
	.align	2
.LC24:
	.ascii	"seek to SRT block\000"
	.align	2
.LC25:
	.ascii	"read SRT block header\000"
	.align	2
.LC26:
	.ascii	"SRT\000\000"
	.align	2
.LC27:
	.ascii	"check SRT block header\000"
	.align	2
.LC28:
	.ascii	"seek to SRT entry index\000"
	.align	2
.LC29:
	.ascii	"read SRT entry index\000"
	.align	2
.LC30:
	.ascii	"seek to SRT entry\000"
	.align	2
.LC31:
	.ascii	"read SRT entry\000"
	.align	2
.LC32:
	.ascii	"seek to DSP block\000"
	.align	2
.LC33:
	.ascii	"read DSP block header\000"
	.align	2
.LC34:
	.ascii	"DSP\000\000"
	.align	2
.LC35:
	.ascii	"check DSP block header\000"
	.align	2
.LC36:
	.ascii	"seek to DSP entry index\000"
	.align	2
.LC37:
	.ascii	"read DSP entry index\000"
	.align	2
.LC38:
	.ascii	"seek to DSP entry\000"
	.align	2
.LC39:
	.ascii	"read DSP entry\000"
	.align	2
.LC40:
	.ascii	"BAD SIZE\000"
	.align	2
.LC41:
	.ascii	"%3d:\011%d\012\000"
	.align	2
.LC42:
	.ascii	"open input ssd file\000"
	.align	2
.LC43:
	.ascii	"seek to ssd file end\000"
	.align	2
.LC44:
	.ascii	"get ssd file size\000"
	.align	2
.LC45:
	.ascii	"seek back to ssd file start\000"
	.align	2
.LC46:
	.ascii	"wb\000"
	.align	2
.LC47:
	.ascii	"open output file\000"
	.align	2
.LC48:
	.ascii	"%d\000"
	.align	2
.LC49:
	.ascii	"parse stream # to dump\000"
	.align	2
.LC50:
	.ascii	"%s[%d]+%s->%s...\012\000"
	.align	2
.LC51:
	.ascii	"bad stream number, there are %d stream headers in t"
	.ascii	"his .srt\012\000"
	.align	2
.LC52:
	.ascii	"write DSP entry\000"
	.align	2
.LC53:
	.ascii	"read ssd\000"
	.align	2
.LC54:
	.ascii	"write output\000"
	.align	2
.LC55:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L51
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-80]
	cmp	r3, #5
	beq	.L19
	ldr	r3, [fp, #-80]
	cmp	r3, #2
	beq	.L19
	ldr	r3, [fp, #-84]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L51+4
	bl	printf
	mov	r3, #1
	b	.L20
.L19:
	ldr	r3, [fp, #-84]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L51+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+12
	bl	try
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-56]
	bl	fseek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L51+16
	bl	try
	ldr	r0, [fp, #-56]
	bl	ftell
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmn	r3, #1
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+20
	bl	try
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-56]
	bl	fseek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L51+24
	bl	try
	ldr	r3, [fp, #-56]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L51+28
	bl	fread
	mov	r3, r0
	cmp	r3, #16
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+32
	bl	try
	ldr	r0, .L51+28
	bl	read32
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, .L51+36
	mov	r0, r3
	bl	read32
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, .L51+40
	mov	r0, r3
	bl	read32
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, .L51+44
	mov	r0, r3
	bl	read32
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-80]
	cmp	r3, #2
	bne	.L21
	ldr	r3, [fp, #-84]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L51+48
	bl	printf
	mov	r2, #0
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-56]
	bl	fseek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L51+52
	bl	try
	ldr	r3, [fp, #-56]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L51+28
	bl	fread
	mov	r3, r0
	cmp	r3, #16
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+56
	bl	try
	mov	r2, #16
	ldr	r1, .L51+28
	ldr	r0, .L51+60
	bl	memcmp
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L51+64
	bl	try
	mov	r2, #0
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-56]
	bl	fseek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L51+68
	bl	try
	ldr	r3, [fp, #-56]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L51+28
	bl	fread
	mov	r3, r0
	cmp	r3, #16
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+72
	bl	try
	mov	r2, #4
	ldr	r1, .L51+28
	ldr	r0, .L51+76
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	ldr	r3, .L51+40
	mov	r2, #8
	mov	r1, r3
	ldr	r0, .L51+80
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
.L22:
	mov	r3, #1
	b	.L24
.L23:
	mov	r3, #0
.L24:
	mov	r1, r3
	ldr	r0, .L51+84
	bl	try
	ldr	r3, .L51+36
	mov	r0, r3
	bl	read32
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-24]
	ldr	r0, .L51+88
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L25
.L26:
	ldr	r3, [fp, #-44]
	add	r2, r3, #16
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	fseek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L51+92
	bl	try
	ldr	r3, [fp, #-56]
	mov	r2, #4
	mov	r1, #1
	ldr	r0, .L51+28
	bl	fread
	mov	r3, r0
	cmp	r3, #4
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+96
	bl	try
	ldr	r0, .L51+28
	bl	read32
	mov	r2, r0
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	add	r3, r3, #16
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	fseek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L51+100
	bl	try
	ldr	r3, [fp, #-56]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L51+28
	bl	fread
	mov	r3, r0
	cmp	r3, #16
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+104
	bl	try
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L25:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L26
	mov	r2, #0
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-56]
	bl	fseek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L51+108
	bl	try
	ldr	r3, [fp, #-56]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L51+28
	bl	fread
	mov	r3, r0
	cmp	r3, #16
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+112
	bl	try
	mov	r2, #4
	ldr	r1, .L51+28
	ldr	r0, .L51+116
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	ldr	r3, .L51+40
	mov	r2, #8
	mov	r1, r3
	ldr	r0, .L51+80
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
.L27:
	mov	r3, #1
	b	.L29
.L28:
	mov	r3, #0
.L29:
	mov	r1, r3
	ldr	r0, .L51+120
	bl	try
	ldr	r3, .L51+36
	mov	r0, r3
	bl	read32
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L30
.L32:
	ldr	r3, [fp, #-40]
	add	r2, r3, #16
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	fseek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L51+124
	bl	try
	ldr	r3, [fp, #-56]
	mov	r2, #4
	mov	r1, #1
	ldr	r0, .L51+28
	bl	fread
	mov	r3, r0
	cmp	r3, #4
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+128
	bl	try
	ldr	r0, .L51+28
	bl	read32
	mov	r2, r0
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	add	r3, r3, #16
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	fseek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L51+132
	bl	try
	ldr	r3, [fp, #-56]
	mov	r2, #48
	mov	r1, #1
	ldr	r0, .L51+28
	bl	fread
	mov	r3, r0
	cmp	r3, #48
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+136
	bl	try
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L30:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L32
	mov	r2, #0
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-56]
	bl	fseek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L51+140
	bl	try
	ldr	r3, [fp, #-56]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L51+28
	bl	fread
	mov	r3, r0
	cmp	r3, #16
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+144
	bl	try
	mov	r2, #4
	ldr	r1, .L51+28
	ldr	r0, .L51+148
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	ldr	r3, .L51+36
	mov	r0, r3
	bl	read32
	mov	r2, r0
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L33
	ldr	r3, .L51+40
	mov	r2, #8
	mov	r1, r3
	ldr	r0, .L51+80
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
.L33:
	mov	r3, #1
	b	.L35
.L34:
	mov	r3, #0
.L35:
	mov	r1, r3
	ldr	r0, .L51+152
	bl	try
	mvn	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L36
.L40:
	ldr	r3, [fp, #-36]
	add	r2, r3, #16
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	fseek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L51+156
	bl	try
	ldr	r3, [fp, #-56]
	mov	r2, #4
	mov	r1, #1
	ldr	r0, .L51+28
	bl	fread
	mov	r3, r0
	cmp	r3, #4
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+160
	bl	try
	ldr	r0, .L51+28
	bl	read32
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-36]
	add	r2, r3, #16
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	fseek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L51+164
	bl	try
	ldr	r3, [fp, #-56]
	mov	r2, #144
	mov	r1, #1
	ldr	r0, .L51+28
	bl	fread
	mov	r3, r0
	cmp	r3, #144
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+168
	bl	try
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L37
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-64]
	b	.L38
.L37:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-64]
	sub	r3, r2, r3
	cmp	r3, #144
	beq	.L39
	ldr	r0, .L51+172
	bl	puts
.L39:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-64]
.L38:
	ldr	r3, .L51+176
	mov	r0, r3
	bl	read32
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-68]
	ldr	r0, .L51+180
	bl	printf
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L36:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L40
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	add	r3, r3, #16
	ldr	r2, [fp, #-52]
	sub	r3, r2, r3
	cmp	r3, #144
	beq	.L41
	ldr	r0, .L51+172
	bl	puts
.L41:
	ldr	r0, [fp, #-56]
	bl	fclose
	mov	r3, #0
	b	.L20
.L21:
	ldr	r3, [fp, #-80]
	cmp	r3, #5
	bne	.L42
	ldr	r3, [fp, #-84]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L51+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+184
	bl	try
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	fseek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L51+188
	bl	try
	ldr	r0, [fp, #-32]
	bl	ftell
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmn	r3, #1
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+192
	bl	try
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	fseek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L51+196
	bl	try
	mov	r2, #0
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-56]
	bl	fseek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L51+68
	bl	try
	ldr	r3, [fp, #-56]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L51+28
	bl	fread
	mov	r3, r0
	cmp	r3, #16
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+72
	bl	try
	mov	r2, #4
	ldr	r1, .L51+28
	ldr	r0, .L51+76
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
	ldr	r3, .L51+40
	mov	r2, #8
	mov	r1, r3
	ldr	r0, .L51+80
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L44
.L43:
	mov	r3, #1
	b	.L45
.L44:
	mov	r3, #0
.L45:
	mov	r1, r3
	ldr	r0, .L51+84
	bl	try
	ldr	r3, [fp, #-84]
	add	r3, r3, #16
	ldr	r3, [r3]
	ldr	r1, .L51+200
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+204
	bl	try
	ldr	r3, [fp, #-84]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #72
	ldr	r1, .L51+208
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+212
	bl	try
	ldr	r3, [fp, #-84]
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-84]
	add	r3, r3, #12
	ldr	r0, [r3]
	ldr	r3, [fp, #-84]
	add	r3, r3, #16
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L51+216
	bl	printf
	ldr	r3, .L51+36
	mov	r0, r3
	bl	read32
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	blt	.L46
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bgt	.L47
.L46:
	ldr	r1, [fp, #-24]
	ldr	r0, .L51+220
	bl	printf
	mov	r0, #1
	bl	exit
.L47:
	ldr	r3, [fp, #-36]
	add	r2, r3, #16
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	fseek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L51+156
	bl	try
	ldr	r3, [fp, #-56]
	mov	r2, #4
	mov	r1, #1
	ldr	r0, .L51+28
	bl	fread
	mov	r3, r0
	cmp	r3, #4
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+160
	bl	try
	ldr	r0, .L51+28
	bl	read32
	mov	r2, r0
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	add	r3, r3, #16
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	fseek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L51+164
	bl	try
	ldr	r3, [fp, #-56]
	mov	r2, #144
	mov	r1, #1
	ldr	r0, .L51+28
	bl	fread
	mov	r3, r0
	cmp	r3, #144
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+168
	bl	try
	ldr	r3, [fp, #-28]
	mov	r2, #144
	mov	r1, #1
	ldr	r0, .L51+28
	bl	fwrite
	mov	r3, r0
	cmp	r3, #144
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+224
	bl	try
	b	.L48
.L49:
	ldr	r3, [fp, #-60]
	cmp	r3, #8192
	movlt	r3, r3
	movge	r3, #8192
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	mov	r1, #1
	ldr	r0, .L51+28
	bl	fread
	mov	r2, r0
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+228
	bl	try
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	mov	r1, #1
	ldr	r0, .L51+28
	bl	fwrite
	mov	r2, r0
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L51+232
	bl	try
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-60]
.L48:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bgt	.L49
	ldr	r0, [fp, #-28]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-56]
	bl	fclose
	mov	r3, #0
	b	.L20
.L42:
	mov	r3, #1
.L20:
	ldr	r2, .L51
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L50
	bl	__stack_chk_fail
.L50:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC55
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	buf
	.word	.LC8
	.word	buf+4
	.word	buf+8
	.word	buf+12
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	buf+88
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.word	.LC54
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
