	.file	"201689.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
	.text
	.type	run, @function
run:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 48
	mov	QWORD PTR -8232[rbp], rdi
	mov	QWORD PTR -8240[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -8216[rbp], 0
	mov	DWORD PTR -8224[rbp], 0
	mov	rax, QWORD PTR -8240[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -8232[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	popen@PLT
	mov	QWORD PTR -8216[rbp], rax
	cmp	QWORD PTR -8216[rbp], 0
	je	.L6
	jmp	.L3
.L4:
	mov	rdx, QWORD PTR -8216[rbp]
	lea	rax, -8208[rbp]
	mov	rcx, rdx
	mov	edx, 8192
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -8220[rbp], eax
	mov	edx, DWORD PTR -8224[rbp]
	mov	eax, DWORD PTR -8220[rbp]
	add	eax, edx
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8240[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	rdx, QWORD PTR -8240[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -8220[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8240[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -8224[rbp]
	cdqe
	add	rcx, rax
	lea	rax, -8208[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, DWORD PTR -8220[rbp]
	add	DWORD PTR -8224[rbp], eax
.L3:
	mov	rax, QWORD PTR -8216[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L4
	mov	rax, QWORD PTR -8240[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -8224[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8216[rbp]
	mov	rdi, rax
	call	pclose@PLT
.L6:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	run, .-run
	.type	AddStrings, @function
AddStrings:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -16[rbp], 0
	jmp	.L8
.L9:
	add	DWORD PTR -16[rbp], 1
.L8:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L9
	mov	DWORD PTR -12[rbp], 0
	jmp	.L10
.L11:
	add	DWORD PTR -12[rbp], 1
.L10:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L11
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L12
	mov	edi, -1
	call	exit@PLT
.L12:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	AddStrings, .-AddStrings
	.type	StringsEqual, @function
StringsEqual:
.LFB8:
	.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	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	sete	al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	StringsEqual, .-StringsEqual
	.section	.rodata
	.align 8
.LC1:
	.string	"DefDB Parser v1.02 by Mr_KrzYch00\n\n"
	.align 8
.LC2:
	.ascii	"Reads defdb output"
	.string	" and parses it to be used with Zopfli KrzYmod's\ncustom block split points command.\n\nArguments:\n--b=#       Export info for # block types only (0-2, d: 012)\nThe output can be safely piped to file or command line\n\nExample:\n%s filename.gz --b=0 >filename.cbs\n"
.LC3:
	.string	"defdb "
.LC4:
	.string	" 2>&1"
	.align 8
.LC5:
	.string	"========================\nDEFDB OUTPUT [stderr]:\n========================\n"
	.align 8
.LC6:
	.string	"========================\nCBS OUTPUT [stdout]:\n========================\n"
	.align 8
.LC7:
	.string	"\n\nPlease note that when block types 2 are not selected each block\ntype 0 and 1 will be followed by block type 2 to mark correct\nboundaries of mentioned blocks.\n"
	.align 8
.LC8:
	.string	"Error: No blocks found in defdb output.\n"
.LC9:
	.string	"Unknown error.\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 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
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	DWORD PTR -76[rbp], 1
	mov	DWORD PTR -72[rbp], 1
	mov	DWORD PTR -68[rbp], 1
	mov	DWORD PTR -64[rbp], 0
	mov	BYTE PTR -9[rbp], 51
	mov	DWORD PTR -60[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 35
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	DWORD PTR -88[rbp], 1
	jmp	.L17
.L25:
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L18
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L18
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	cmp	al, 98
	jne	.L18
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	cmp	al, 61
	jne	.L18
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L18
	mov	DWORD PTR -76[rbp], 0
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -84[rbp], 4
	jmp	.L19
.L24:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 50
	je	.L20
	cmp	eax, 50
	jg	.L21
	cmp	eax, 48
	je	.L22
	cmp	eax, 49
	je	.L23
	jmp	.L21
.L22:
	mov	DWORD PTR -76[rbp], 1
	jmp	.L21
.L23:
	mov	DWORD PTR -72[rbp], 1
	jmp	.L21
.L20:
	mov	DWORD PTR -68[rbp], 1
	nop
.L21:
	add	DWORD PTR -84[rbp], 1
.L19:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L24
.L18:
	add	DWORD PTR -88[rbp], 1
.L17:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -100[rbp]
	jl	.L25
	mov	DWORD PTR -88[rbp], 1
	jmp	.L26
.L28:
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L27
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -48[rbp], rax
.L27:
	add	DWORD PTR -88[rbp], 1
.L26:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -100[rbp]
	jl	.L28
	cmp	QWORD PTR -48[rbp], 0
	jne	.L29
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L30
.L29:
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	call	AddStrings
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	AddStrings
	mov	QWORD PTR -32[rbp], rax
	lea	rdx, -56[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	run
	mov	rax, QWORD PTR -56[rbp]
	test	rax, rax
	je	.L31
	mov	DWORD PTR -88[rbp], 0
	jmp	.L32
.L51:
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L33
	mov	eax, DWORD PTR -88[rbp]
	add	eax, 1
	mov	DWORD PTR -84[rbp], eax
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 50
	je	.L34
	cmp	eax, 50
	jg	.L35
	cmp	eax, 48
	je	.L36
	cmp	eax, 49
	je	.L37
	jmp	.L35
.L36:
	cmp	DWORD PTR -76[rbp], 1
	jne	.L38
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	add	rax, 1
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L38
	mov	DWORD PTR -64[rbp], 1
.L38:
	cmp	DWORD PTR -76[rbp], 0
	jne	.L56
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 49
	jne	.L56
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 50
	mov	DWORD PTR -64[rbp], 1
	jmp	.L56
.L37:
	cmp	DWORD PTR -72[rbp], 1
	jne	.L40
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	add	rax, 1
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L40
	mov	DWORD PTR -64[rbp], 1
.L40:
	cmp	DWORD PTR -72[rbp], 0
	jne	.L57
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 48
	jne	.L57
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 50
	mov	DWORD PTR -64[rbp], 1
	jmp	.L57
.L34:
	cmp	DWORD PTR -68[rbp], 1
	jne	.L42
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	add	rax, 1
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L42
	mov	DWORD PTR -64[rbp], 1
.L42:
	cmp	DWORD PTR -68[rbp], 0
	jne	.L58
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 48
	je	.L44
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 49
	jne	.L58
.L44:
	mov	DWORD PTR -64[rbp], 1
	jmp	.L58
.L56:
	nop
	jmp	.L35
.L57:
	nop
	jmp	.L35
.L58:
	nop
.L35:
	cmp	DWORD PTR -64[rbp], 1
	je	.L45
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 51
	jne	.L46
.L45:
	mov	eax, DWORD PTR -84[rbp]
	add	eax, 1
	mov	DWORD PTR -80[rbp], eax
	jmp	.L47
.L48:
	add	DWORD PTR -80[rbp], 1
.L47:
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L48
	jmp	.L49
.L50:
	add	DWORD PTR -60[rbp], 1
	mov	eax, DWORD PTR -60[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	add	rax, rdx
	mov	edx, DWORD PTR -60[rbp]
	sub	edx, 1
	mov	ecx, edx
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -80[rbp], 1
.L49:
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L50
	mov	eax, DWORD PTR -60[rbp]
	add	eax, 1
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -60[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -60[rbp], edx
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 44
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -9[rbp], al
	mov	eax, DWORD PTR -80[rbp]
	mov	DWORD PTR -88[rbp], eax
.L46:
	mov	DWORD PTR -64[rbp], 0
.L33:
	add	DWORD PTR -88[rbp], 1
.L32:
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L51
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 73
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR stderr[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 71
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	cmp	DWORD PTR -60[rbp], 0
	je	.L52
	sub	DWORD PTR -60[rbp], 1
	mov	edx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rdx, QWORD PTR stdout[rip]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	cmp	DWORD PTR -68[rbp], 0
	jne	.L30
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 160
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	jmp	.L30
.L52:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 40
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L54
.L31:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L54
.L30:
	mov	eax, 0
.L54:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L55
	call	__stack_chk_fail@PLT
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"201689.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	run, %function
run:
	@ args = 0, pretend = 0, frame = 8216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8192
	sub	sp, sp, #28
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-20]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-24]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-16]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, .L7+4
	ldr	r0, [r3, #-20]
	bl	popen
	str	r0, [r4, #-12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	beq	.L6
	b	.L3
.L4:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-12]
	mov	r2, #8192
	mov	r1, #1
	bl	fread
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	ldr	r0, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-16]
	ldr	r3, [r3, #-8]
	add	r3, r2, r3
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r1, r3
	bl	realloc
	mov	r2, r0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	str	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	ldr	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r0, r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-16]
	ldr	r3, [r3, #-8]
	add	r3, r2, r3
	str	r3, [r1, #-16]
.L3:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-12]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	ldr	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-12]
	bl	pclose
.L6:
	nop
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC1
	.word	.LC0
	.size	run, .-run
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	AddStrings, %function
AddStrings:
	@ 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, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L10
.L11:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L10:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L11
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L12
.L13:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L12:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L13
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L14
	mvn	r0, #0
	bl	exit
.L14:
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-8]
	bl	strcpy
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-8]
	bl	strcat
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	AddStrings, .-AddStrings
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	StringsEqual, %function
StringsEqual:
	@ 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	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	StringsEqual, .-StringsEqual
	.section	.rodata
	.align	2
.LC2:
	.ascii	"DefDB Parser v1.02 by Mr_KrzYch00\012\012\000"
	.align	2
.LC3:
	.ascii	"Reads defdb output and parses it to be used with Zo"
	.ascii	"pfli KrzYmod's\012custom block split points command"
	.ascii	".\012\012Arguments:\012--b=#       Export info for "
	.ascii	"# block types only (0-2, d: 012)\012The output can "
	.ascii	"be safely piped to file or command line\012\012Exam"
	.ascii	"ple:\012%s filename.gz --b=0 >filename.cbs\012\000"
	.align	2
.LC4:
	.ascii	"defdb \000"
	.align	2
.LC5:
	.ascii	" 2>&1\000"
	.align	2
.LC6:
	.ascii	"========================\012DEFDB OUTPUT [stderr]:\012"
	.ascii	"========================\012\000"
	.align	2
.LC7:
	.ascii	"========================\012CBS OUTPUT [stdout]:\012"
	.ascii	"========================\012\000"
	.align	2
.LC8:
	.ascii	"\012\012Please note that when block types 2 are not"
	.ascii	" selected each block\012type 0 and 1 will be follow"
	.ascii	"ed by block type 2 to mark correct\012boundaries of"
	.ascii	" mentioned blocks.\012\000"
	.align	2
.LC9:
	.ascii	"Error: No blocks found in defdb output.\012\000"
	.align	2
.LC10:
	.ascii	"Unknown error.\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L61
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #1
	str	r3, [fp, #-40]
	mov	r3, #1
	str	r3, [fp, #-36]
	mov	r3, #1
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #51
	strb	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-64]
	ldr	r3, .L61+4
	ldr	r3, [r3]
	mov	r2, #35
	mov	r1, #1
	ldr	r0, .L61+8
	bl	fwrite
	mov	r3, #1
	str	r3, [fp, #-60]
	b	.L19
.L27:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L20
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L20
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L20
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #61
	bne	.L20
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L20
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #4
	str	r3, [fp, #-56]
	b	.L21
.L26:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #50
	beq	.L22
	cmp	r3, #50
	bgt	.L23
	cmp	r3, #48
	beq	.L24
	cmp	r3, #49
	beq	.L25
	b	.L23
.L24:
	mov	r3, #1
	str	r3, [fp, #-40]
	b	.L23
.L25:
	mov	r3, #1
	str	r3, [fp, #-36]
	b	.L23
.L22:
	mov	r3, #1
	str	r3, [fp, #-32]
	nop
.L23:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L21:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L26
.L20:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L19:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L27
	mov	r3, #1
	str	r3, [fp, #-60]
	b	.L28
.L30:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L29
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-48]
.L29:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L28:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L30
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L31
	ldr	r3, .L61+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L61+12
	bl	fprintf
	b	.L32
.L31:
	ldr	r1, [fp, #-48]
	ldr	r0, .L61+16
	bl	AddStrings
	str	r0, [fp, #-20]
	ldr	r1, .L61+20
	ldr	r0, [fp, #-20]
	bl	AddStrings
	str	r0, [fp, #-20]
	sub	r3, fp, #64
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	run
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L33
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L34
.L53:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L35
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #50
	beq	.L36
	cmp	r3, #50
	bgt	.L37
	cmp	r3, #48
	beq	.L38
	cmp	r3, #49
	beq	.L39
	b	.L37
.L38:
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	bne	.L40
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L40
	mov	r3, #1
	str	r3, [fp, #-28]
.L40:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L58
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L58
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	mov	r2, #50
	strb	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L58
.L39:
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	bne	.L42
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L42
	mov	r3, #1
	str	r3, [fp, #-28]
.L42:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L59
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L59
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	mov	r2, #50
	strb	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L59
.L36:
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bne	.L44
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L44
	mov	r3, #1
	str	r3, [fp, #-28]
.L44:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L60
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #48
	beq	.L46
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L60
.L46:
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L60
.L58:
	nop
	b	.L37
.L59:
	nop
	b	.L37
.L60:
	nop
.L37:
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	beq	.L47
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #51
	bne	.L48
.L47:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-52]
	b	.L49
.L50:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L49:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L50
	b	.L51
.L52:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-44]
	bl	realloc
	str	r0, [fp, #-44]
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-52]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldr	r1, [fp, #-44]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L51:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L52
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-44]
	bl	realloc
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	mov	r2, #44
	strb	r2, [r3]
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [fp, #-12]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-60]
.L48:
	mov	r3, #0
	str	r3, [fp, #-28]
.L35:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L34:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L53
	ldr	r3, .L61+4
	ldr	r3, [r3]
	mov	r2, #73
	mov	r1, #1
	ldr	r0, .L61+24
	bl	fwrite
	ldr	r3, .L61+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-64]
	mov	r1, r2
	mov	r0, r3
	bl	fputs
	ldr	r3, .L61+4
	ldr	r3, [r3]
	mov	r2, #71
	mov	r1, #1
	ldr	r0, .L61+28
	bl	fwrite
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L54
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L61+32
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-44]
	bl	fputs
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L32
	ldr	r3, .L61+4
	ldr	r3, [r3]
	mov	r2, #160
	mov	r1, #1
	ldr	r0, .L61+36
	bl	fwrite
	b	.L32
.L54:
	ldr	r3, .L61+4
	ldr	r3, [r3]
	mov	r2, #40
	mov	r1, #1
	ldr	r0, .L61+40
	bl	fwrite
	mov	r3, #1
	b	.L56
.L33:
	ldr	r3, .L61+4
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L61+44
	bl	fwrite
	mov	r3, #1
	b	.L56
.L32:
	mov	r3, #0
.L56:
	ldr	r2, .L61
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L57
	bl	__stack_chk_fail
.L57:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	.LC11
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	stdout
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
