// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/reko.c
// Function: de_run_reko
static void de_run_reko(deark *c, de_module_params *mparams)
{
	lctx *d = NULL;
	const char *fmtname;

	d = de_malloc(c, sizeof(lctx));
	d->combine_images = (u8)de_get_ext_option_bool(c, "reko:combine", 1);

	d->fmt = reko_fmt_from_sig(c);
	if(d->fmt==0) {
		de_err(c, "Unsupported REKO version");
		goto done;
	}
	if(d->fmt==RKFMT_RKP8) fmtname = "RKP 8";
	else if(d->fmt==RKFMT_RKP16) fmtname = "RKP 16";
	else if(d->fmt==RKFMT_RKP24) fmtname = "RKP 24";
	else fmtname = "Amiga";
	de_declare_fmtf(c, "REKO cardset (%s)", fmtname);

	if(d->fmt==RKFMT_RKP8 || d->fmt==RKFMT_RKP16 || d->fmt==RKFMT_RKP24) {
		d->is_pc = 1;
	}

	if(d->is_pc) {
		d->idx_of_first_main_card = 1;
	}
	else {
		d->idx_of_first_main_card = 3;
	}

	if(d->fmt==RKFMT_RKP24) {
		read_header_rkp24(c, d);
	}
	else if(d->is_pc) {
		read_header_pc(c, d);
	}
	else {
		read_header_amiga(c, d);
	}
	if(d->fatalerrflag) goto done;

	if(!d->is_pc) {
		read_palette_amiga(c, d);
	}
	if(d->fatalerrflag) goto done;
	if(d->fmt==RKFMT_RKP24) {
		reko_main_rkp24(c, d);
	}
	else {
		reko_main(c, d);
	}

done:
	if(d) {
		if(d->need_errmsg) {
			de_err(c, "Bad or unsupported file");
		}
		de_free(c, d);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rdi, %r15
movl $0x470, %esi            # imm = 0x470
callq 0xdecaf
movq %rax, %r13
movq %rax, %r12
leaq 0x5dd33(%rip), %rsi     # 0x13854d
pushq $0x1
popq %rdx
movq %r15, %rdi
callq 0xdfae5
movb %al, 0x5(%r13)
movq %r15, %rdi
callq 0xdbd0d
movb %al, (%r13)
cmpb $0x6, %al
ja 0xda87d
movzbl %al, %eax
leaq 0x5dcb5(%rip), %rcx     # 0x1384f8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x5dd07(%rip), %rsi     # 0x13855a
movq %r15, %rdi
xorl %eax, %eax
callq 0xdf2a5
jmp 0xdab16
leaq 0x5dd10(%rip), %rdx     # 0x138579
jmp 0xda884
leaq 0x5dd01(%rip), %rdx     # 0x138573
jmp 0xda884
leaq 0x5dd05(%rip), %rdx     # 0x138580
jmp 0xda884
leaq 0x30b3b(%rip), %rdx     # 0x10b3bf
leaq 0x5dcfc(%rip), %rsi     # 0x138587
movq %r15, %rdi
xorl %eax, %eax
callq 0xe0824
movb (%r12), %al
leal -0x4(%rax), %ecx
leaq 0x1(%r13), %rbp
cmpb $0x3, %cl
jae 0xda9da
movb $0x1, 0x1(%r12)
movq $0x1, 0x68(%r12)
cmpb $0x6, %al
jne 0xda9ef
leaq 0x28(%rsp), %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0xdebae
leaq 0x3b8e8(%rip), %rsi     # 0x1161bf
movq %r15, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %r15, %rdi
callq 0xdeba7
leaq 0x100(%rsp), %r14
movq $0x8, (%r14)
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xe40bf
movq %rax, 0x10(%r12)
leaq 0x5dc8b(%rip), %rsi     # 0x1385a0
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xe40bf
movq %rax, 0x8(%r12)
leaq 0x5dc75(%rip), %rsi     # 0x1385af
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xe40bf
movq %rax, 0x18(%r12)
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xe40bf
movq %rax, 0x20(%r12)
movq 0x18(%r12), %rsi
movq %r15, %rdi
movq %rax, %rdx
callq 0xdf038
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xe40bf
movl %eax, 0x38(%r12)
leaq 0x3c609(%rip), %rsi     # 0x116f9a
movq %r15, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movl 0x38(%r12), %eax
movl %eax, 0x3c(%r12)
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xe40bf
movq %rax, 0x48(%r12)
leaq 0x5dbff(%rip), %rsi     # 0x1385be
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq $0x450, 0x50(%r12)      # imm = 0x450
jmp 0xdab04
cmpb $0x0, 0x1(%r12)
je 0xdac17
movq $0x1, 0x68(%r12)
leaq 0x28(%rsp), %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0xdebae
leaq 0x3b7b9(%rip), %rsi     # 0x1161bf
movq %r15, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %r15, %rdi
callq 0xdeba7
leaq 0x100(%rsp), %r14
movq $0x8, (%r14)
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xe40bf
movq %rax, 0x8(%r12)
leaq 0x5db6b(%rip), %rsi     # 0x1385af
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xe40bf
movq %rax, 0x10(%r12)
leaq 0x5db37(%rip), %rsi     # 0x1385a0
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xe3fc4
movq %rax, 0x18(%r12)
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xe3fc4
movq %rax, 0x20(%r12)
movq 0x18(%r12), %rsi
movq %r15, %rdi
movq %rax, %rdx
callq 0xdf038
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xe3f2a
movzbl %al, %edx
movl %edx, 0x38(%r12)
leaq 0x3c4d7(%rip), %rsi     # 0x116f9a
movq %r15, %rdi
xorl %eax, %eax
callq 0xde896
movl 0x38(%r12), %eax
movl %eax, 0x3c(%r12)
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xe3f2a
movzbl %al, %edx
movq %rdx, 0x48(%r12)
leaq 0x5dacc(%rip), %rsi     # 0x1385be
movq %r15, %rdi
xorl %eax, %eax
callq 0xde896
movq (%r14), %rax
movq %rax, 0x50(%r12)
movl (%rbx), %esi
movq %r15, %rdi
callq 0xdebb7
cmpb $0x0, 0x2(%r12)
je 0xdab4c
cmpb $0x0, 0x3(%r12)
je 0xdab2f
leaq 0x3137a(%rip), %rsi     # 0x10be9f
movq %r15, %rdi
xorl %eax, %eax
callq 0xdf2a5
movq %r15, %rdi
movq %r12, %rsi
callq 0xded32
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpb $0x0, (%rbp)
je 0xdae8b
cmpb $0x6, (%r12)
movq %r15, 0x18(%rsp)
movq %r12, 0x10(%rsp)
jne 0xdadb2
leaq 0x100(%rsp), %rsi
movq %r15, %rdi
callq 0xdebae
movq 0x50(%r12), %rbx
leaq 0x5da9c(%rip), %rsi     # 0x138623
movq %r15, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %r15, %rdi
callq 0xdeba7
movq %r15, %rdi
callq 0xdfd1a
movq %rax, 0x20(%rsp)
movq 0x10(%r12), %rcx
movq 0x48(%r12), %rax
movq %rcx, 0x88(%rsp)
testq %rcx, %rcx
leaq 0x4ba12(%rip), %rcx     # 0x1265da
leaq 0x394a3(%rip), %rdx     # 0x114072
cmoveq %rcx, %rdx
movq %rdx, 0x8(%rsp)
leaq -0x51(%rax), %rcx
cmpq $-0x50, %rcx
jae 0xdaf87
movq 0x10(%rsp), %rax
movw $0x101, 0x2(%rax)       # imm = 0x101
movq %r15, %rdi
movq 0x20(%rsp), %rsi
callq 0xdfd24
movl 0x100(%rsp), %esi
movq %r15, %rdi
callq 0xdebb7
movq 0x10(%rsp), %r12
jmp 0xdab16
movq $0x3, 0x68(%r12)
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0xdebae
leaq 0x3b58b(%rip), %rsi     # 0x1161bf
movq %r15, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %r15, %rdi
callq 0xdeba7
leaq 0x100(%rsp), %rbx
movq $0x4, (%rbx)
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xe4071
movq %rax, 0x8(%r12)
leaq 0x5d93d(%rip), %rsi     # 0x1385af
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xe4071
movq %rax, 0x10(%r12)
leaq 0x5d909(%rip), %rsi     # 0x1385a0
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xe3f6e
movq %rax, 0x20(%r12)
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xe3f6e
movq %rax, 0x18(%r12)
movq 0x20(%r12), %rdx
movq %r15, %rdi
movq %rax, %rsi
callq 0xdf038
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xe4071
movl %eax, 0x40(%r12)
leaq 0x5d8df(%rip), %rsi     # 0x1385cd
movq %r15, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
testb $0x8, 0x41(%r12)
je 0xdad08
movb $0x1, 0x44(%r12)
pushq $0x1
popq %rsi
movq %r15, %rdi
callq 0xdeba7
movzbl 0x44(%r12), %edx
leaq 0x29222(%rip), %rsi     # 0x103f42
movq %r15, %rdi
xorl %eax, %eax
callq 0xde896
pushq $-0x1
popq %rsi
movq %r15, %rdi
callq 0xdeba7
movq 0x18(%r15), %rdi
leaq 0x100(%rsp), %rbx
movq %rbx, %rsi
callq 0xe3f2a
movzbl %al, %edx
movl %edx, 0x38(%r12)
leaq 0x3c242(%rip), %rsi     # 0x116f9a
movq %r15, %rdi
xorl %eax, %eax
callq 0xde896
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xe3f2a
movzbl %al, %edx
movq %rdx, 0x48(%r12)
leaq 0x5d841(%rip), %rsi     # 0x1385be
movq %r15, %rdi
xorl %eax, %eax
callq 0xde896
movq (%rbx), %rax
movq %rax, 0x50(%r12)
movq 0x18(%r12), %rdx
cmpq $0x60, %rdx
jne 0xdaf1e
cmpl $0x4, 0x38(%r12)
jne 0xdaf28
pushq $0x4
popq %rax
jmp 0xdaf55
movq %rbp, 0xa0(%rsp)
leaq 0x94(%rsp), %rsi
movq %r15, %rdi
callq 0xdebae
movq 0x58(%r12), %rdx
addq 0x50(%r12), %rdx
leaq 0x5d848(%rip), %rsi     # 0x138623
movq %r15, %rdi
movq %rdx, 0x98(%rsp)
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rbp
movq %r15, %rdi
movl %ebp, %esi
callq 0xdeba7
movq %r15, %rdi
callq 0xdfd1a
movq %rax, %rbx
movb 0x1(%r12), %dil
testb %dil, %dil
je 0xdae1e
movl 0x38(%r12), %eax
cmpl $0x8, %eax
je 0xdae1e
cmpl $0x10, %eax
jne 0xdae52
movq 0x48(%r12), %rcx
leaq -0x51(%rcx), %rax
cmpq $-0x50, %rax
jb 0xdae52
movq 0x18(%r12), %rsi
leaq -0x65(%rsi), %rax
cmpq $-0x25, %rax
jb 0xdae52
movq $-0x97, %rax
addq 0x20(%r12), %rax
cmpq $-0x34, %rax
ja 0xdb0af
movw $0x101, 0x2(%r12)       # imm = 0x101
xorl %r14d, %r14d
xorl %edi, %edi
callq 0xe7084
movq %r14, %rdi
callq 0xe7084
movq %r15, %rdi
movq %rbx, %rsi
callq 0xdfd24
movl 0x94(%rsp), %esi
movq %r15, %rdi
callq 0xdebb7
jmp 0xdab16
leaq 0x100(%rsp), %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0xdebae
movq 0x50(%r12), %r14
leaq 0x5d763(%rip), %rsi     # 0x13860d
movq %r15, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %r15, %rdi
callq 0xdeba7
movb 0x3c(%r12), %cl
pushq $0x1
popq %rax
shlq %cl, %rax
pushq $0x3
popq %r8
movq %r8, %rdx
shlq %cl, %rdx
movq %rdx, 0x58(%r12)
movq 0x18(%r15), %rsi
leaq 0x70(%r13), %r9
subq $0x8, %rsp
movq %r15, %rdi
movq %r14, %rdx
movq %rax, %rcx
pushq $0x8
pushq $0x1
pushq $0x100                  # imm = 0x100
callq 0xe79ca
addq $0x20, %rsp
movl (%rbx), %esi
movq %r15, %rdi
callq 0xdebb7
cmpb $0x0, 0x2(%r12)
jne 0xdab16
jmp 0xdab56
leaq -0x59(%rdx), %rax
cmpq $0x7, %rax
ja 0xdaf48
leaq 0x5d6b0(%rip), %rsi     # 0x1385df
movq %r15, %rdi
xorl %eax, %eax
callq 0xdf05a
movq $0x58, 0x18(%r12)
movb $0x1, 0x4(%r12)
movl 0x38(%r12), %eax
leal -0x9(%rax), %ecx
cmpl $-0x9, %ecx
jbe 0xdaf76
movl %eax, 0x3c(%r12)
cmpb $0x0, 0x44(%r12)
je 0xdaf7e
cmpl $0x6, %eax
je 0xdaf6c
cmpl $0x8, %eax
jne 0xdaf76
addl $-0x2, %eax
movl %eax, 0x3c(%r12)
jmp 0xdaf7e
movw $0x101, 0x2(%r12)       # imm = 0x101
movl 0x28(%rsp), %esi
jmp 0xdab06
movq %rbx, %r12
xorl %r13d, %r13d
cmpq %rax, %r13
jge 0xdabf1
movq %r15, %rdi
leaq 0x5d690(%rip), %rsi     # 0x138630
movq %r13, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0xde896
movq %r15, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
cmpq $0x0, 0x88(%rsp)
je 0xdafec
movq 0x18(%r15), %rdi
movq %r12, %rsi
callq 0xe3f46
cmpq $0x424d, %rax           # imm = 0x424D
jne 0xdabe6
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rbp
movq %r12, %rbx
movq %rbp, %rdx
jmp 0xdb01f
leaq 0x4(%r12), %rbx
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xe3f46
cmpq $0xffd8, %rax           # imm = 0xFFD8
jne 0xdabe6
movq 0x18(%r15), %rdi
movq %r12, %rsi
callq 0xe409f
movq %rax, %rbp
movq %rax, %rdx
addq $0x4, %rdx
leaq (%rbx,%rbp), %rax
movq 0x18(%r15), %rcx
cmpq 0x18(%rcx), %rax
jg 0xdabe6
movq 0x10(%rsp), %rax
movq 0x68(%rax), %rsi
movq %r15, %rdi
movq %rdx, 0x58(%rsp)
movq %r13, %rdx
movq %r15, %r14
movq 0x20(%rsp), %r15
movq %r15, %rcx
callq 0xdbda2
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0xe4e62
movq %rax, %r15
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rdi
movq %rbx, %rsi
movq %rbp, %rdx
movq %r15, %rcx
callq 0xe45f4
movq %r15, %rdi
movq 0x18(%rsp), %r15
callq 0xe5591
addq 0x58(%rsp), %r12
movq %r15, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
incq %r13
movq 0x10(%rsp), %rax
movq 0x48(%rax), %rax
jmp 0xdaf8d
movq 0x68(%r12), %rdx
addq $0x34, %rdx
cmpq %rdx, %rcx
jge 0xdb0d8
leaq 0x5d595(%rip), %rsi     # 0x138659
movq %r15, %rdi
xorl %eax, %eax
callq 0xdf05a
movb 0x1(%r12), %dil
movq 0x18(%r12), %rsi
pushq $0x8
popq %r8
testb %dil, %dil
je 0xdb0f5
imulq 0x20(%r12), %rsi
movl 0x38(%r12), %eax
shrl $0x3, %eax
imulq %rsi, %rax
jmp 0xdb122
movq %rsi, %rax
cqto
idivq %r8
movq %rax, 0x30(%r12)
movl 0x38(%r12), %ecx
imulq %rcx, %rax
movq %rax, 0x28(%r12)
imulq %rcx, %rsi
imulq 0x20(%r12), %rsi
movq %rsi, %rax
cqto
idivq %r8
movq 0x10(%r12), %rdx
cmpq %rax, %rdx
je 0xdb153
cmpb $0x0, 0x4(%r12)
jne 0xdb153
leaq 0x5d54a(%rip), %rsi     # 0x138685
movq %r15, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0xdf05a
movb $0x1, 0x4(%r12)
movb 0x1(%r12), %dil
andq $0x0, 0x60(%r12)
testb %dil, %dil
movq %rbx, 0x60(%rsp)
je 0xdb17f
pushq $0x4
popq %rax
cmpl $0x8, 0x38(%r12)
jne 0xdb186
movq $0x200, 0x60(%r12)      # imm = 0x200
movl $0x200, %r14d           # imm = 0x200
jmp 0xdb189
xorl %r14d, %r14d
xorl %eax, %eax
jmp 0xdb189
xorl %r14d, %r14d
movq %rax, 0x68(%rsp)
orq %r14, %rax
movq %rax, 0x70(%rsp)
movq 0x10(%r12), %rbx
movq 0x18(%r12), %rsi
cmpb $0x0, 0x5(%r12)
movq 0x20(%r12), %r8
je 0xdb1fc
movq 0x48(%r12), %rax
addq $0xc, %rax
pushq $0xd
popq %rcx
cqto
idivq %rcx
cmpq $0x6, %rax
pushq $0x5
popq %rcx
cmovgeq %rax, %rcx
addq $0x2, %r8
imulq %rcx, %r8
addq $-0x2, %r8
imulq $0xd, %rsi, %rsi
addq $0x18, %rsi
pushq $0x4
popq %rcx
movq %r15, %rdi
movq %r8, %rdx
callq 0xe7437
movq %rax, 0x38(%rsp)
movq 0x18(%r12), %rsi
movq 0x20(%r12), %r8
jmp 0xdb205
movq $0x0, 0x38(%rsp)
addq %rbx, 0x70(%rsp)
pushq $0x3
popq %rcx
movq %r15, %rdi
movq %r8, %rdx
callq 0xe7437
movq %rax, 0x8(%rsp)
addq $0x70, %r13
addq 0x68(%rsp), %r14
addq %rbx, %r14
movq %r14, 0xd0(%rsp)
pushq $0x4
popq %r14
movq 0x98(%rsp), %rax
movq %rax, 0x80(%rsp)
movq $0x0, 0x48(%rsp)
xorl %eax, %eax
movq $0x0, 0x78(%rsp)
xorl %edx, %edx
movq %r13, 0xc0(%rsp)
cmpq 0x48(%r12), %rdx
jge 0xdb982
movq %rax, 0xa8(%rsp)
movq %r14, 0xb0(%rsp)
movq %rdx, %rcx
imulq 0x70(%rsp), %rcx
addq 0x98(%rsp), %rcx
movq 0x18(%rsp), %r15
movq %r15, %rdi
leaq 0x5d392(%rip), %rsi     # 0x138630
movq %rdx, 0x50(%rsp)
movq %rcx, 0x40(%rsp)
xorl %eax, %eax
callq 0xde896
movq %r15, %rdi
movl %ebp, %esi
callq 0xdeba7
movq 0xa0(%rsp), %rax
cmpb $0x0, (%rax)
je 0xdb332
cmpb $0x0, 0x2(%r12)
jne 0xdb332
movq 0x68(%rsp), %rax
movq 0x40(%rsp), %rcx
addq %rcx, %rax
movq 0x18(%r15), %rdi
cmpq 0x18(%rdi), %rax
jg 0xdb332
movq 0x40(%rsp), %r14
movq %r14, %rsi
callq 0xe3fa3
movq %rax, %rbx
movq 0x18(%r15), %rdi
leaq 0x2(%r14), %rsi
callq 0xe3fa3
incq %rbx
cmpq 0x18(%r12), %rbx
jne 0xdb316
incq %rax
cmpq 0x20(%r12), %rax
je 0xdb332
movq %r15, %rdi
leaq 0x5d38c(%rip), %rsi     # 0x1386ac
movq 0x50(%rsp), %rdx
xorl %eax, %eax
callq 0xdf2a5
movb $0x1, 0x2(%r12)
movq 0x18(%r12), %rcx
movq 0x20(%r12), %r8
subq $0x8, %rsp
movq 0x10(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
movl $0xff000000, %r9d       # imm = 0xFF000000
pushq $0x0
callq 0xe8292
popq %rax
popq %rcx
cmpb $0x0, 0x2(%r12)
je 0xdb443
movq 0x68(%r12), %rsi
movq 0x50(%rsp), %rdx
cmpq %rsi, %rdx
setl %al
leaq 0x34(%rsi), %rcx
cmpq %rcx, %rdx
setge %cl
orb %al, %cl
je 0xdb3bf
movq 0xa8(%rsp), %rdx
leaq 0x1(%rdx), %rax
xorl %r14d, %r14d
cmpq $0xc, %rdx
setge %r14b
movl $0x0, %r12d
cmovlq %rax, %r12
movq 0xb0(%rsp), %rax
addq %rax, %r14
movq 0x48(%rsp), %r15
movq 0x78(%rsp), %rbx
movq %rax, 0x48(%rsp)
jmp 0xdb3f3
movq 0x48(%rsp), %rcx
leaq 0x1(%rcx), %rax
xorl %ebx, %ebx
cmpq $0x3, %rcx
movl $0x0, %r15d
cmovlq %rax, %r15
setge %bl
movq 0x78(%rsp), %rdx
addq %rdx, %rbx
movq 0xa8(%rsp), %r12
movq 0xb0(%rsp), %r14
movq 0x38(%rsp), %rcx
testq %rcx, %rcx
je 0xdb50f
movq 0x10(%rsp), %r13
movq 0x18(%r13), %r8
movq 0x20(%r13), %r9
leaq 0x2(%r9), %rax
imulq 0x48(%rsp), %rax
leaq 0x2(%r8), %r10
imulq %rdx, %r10
subq $0x8, %rsp
movq 0x10(%rsp), %rdi
movq %rcx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
pushq $0x0
pushq %rax
pushq %r10
callq 0xe8314
addq $0x20, %rsp
jmp 0xdb53a
movq 0xa0(%rsp), %rax
cmpb $0x0, (%rax)
je 0xdb5ce
movq 0x68(%rsp), %rax
movq 0x40(%rsp), %rcx
leaq (%rcx,%rax), %rdx
cmpl $0x8, 0x38(%r12)
jne 0xdb61a
movq %rdx, 0x28(%rsp)
movq %r15, %rdi
leaq 0x4de6e(%rip), %rsi     # 0x1292eb
xorl %eax, %eax
callq 0xde896
movq %r15, %rdi
movl %ebp, %esi
callq 0xdeba7
movl $0x400, %edx            # imm = 0x400
movq %r13, %rdi
xorl %esi, %esi
callq 0x18140
xorl %ebx, %ebx
cmpq $0x100, %rbx            # imm = 0x100
je 0xdb681
movq 0x18(%r15), %rdi
leaq 0x28(%rsp), %rsi
callq 0xe3fc4
movq %rax, %r14
movl %r14d, %edi
callq 0xe1ea3
movl %eax, (%r13,%rbx,4)
cmpl $0x2, (%r15)
jl 0xdb50a
leaq 0x100(%rsp), %rdi
pushq $0x40
popq %rsi
leaq 0x576cb(%rip), %rdx     # 0x132bad
movl %r14d, %ecx
xorl %eax, %eax
callq 0xde40c
movl (%r13,%rbx,4), %edx
movq %r15, %rdi
movq %rbx, %rsi
leaq 0x100(%rsp), %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xdf153
incq %rbx
jmp 0xdb49f
movq 0x18(%rsp), %rdi
movq 0x50(%rsp), %rdx
movq 0x60(%rsp), %r13
movq %r13, %rcx
callq 0xdbda2
movq 0x8(%rsp), %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0xe70ab
movq 0x10(%rsp), %r13
cmpb $0x0, 0x2(%r13)
movq 0xc0(%rsp), %r13
jne 0xdb57e
movq 0x40(%rsp), %rcx
addq 0x70(%rsp), %rcx
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rax
cmpq 0x18(%rax), %rcx
jle 0xdb58a
movq 0x18(%rsp), %rdi
leaq 0x5d158(%rip), %rsi     # 0x1386c6
xorl %eax, %eax
callq 0xdf2a5
movq 0x10(%rsp), %rax
movb $0x1, 0x2(%rax)
cmpq $0x0, 0x38(%rsp)
je 0xdb9a4
movq 0x18(%rsp), %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
movq 0x50(%rsp), %rdx
incq %rdx
movq 0x80(%rsp), %rax
addq 0xd0(%rsp), %rax
movq %rax, 0x80(%rsp)
movq %r15, 0x48(%rsp)
movq %r12, %rax
movq %rbx, 0x78(%rsp)
movq 0x10(%rsp), %r12
jmp 0xdb263
cmpb $0x0, 0x44(%r12)
movq 0x18(%r15), %rdi
movq %r12, %rax
movl 0x38(%r12), %r12d
movq 0x28(%rax), %r9
movq 0x30(%rax), %r8
je 0xdb6cd
movq %r8, 0xf8(%rsp)
andq $0x0, 0x100(%rsp)
cmpl $0x6, %r12d
jne 0xdb6ed
movb $0x4, 0x7(%rsp)
movb $0xf, 0x6(%rsp)
pushq $0x4
jmp 0xdb703
movq %rdx, 0x100(%rsp)
movq %r15, %rdi
leaq 0x45f74(%rip), %rsi     # 0x1215a0
xorl %eax, %eax
callq 0xde896
xorl %ebx, %ebx
movq 0x8(%rsp), %r13
cmpq 0x20(%r12), %rbx
jge 0xdb364
xorl %r14d, %r14d
cmpq 0x18(%r12), %r14
jge 0xdb67c
movq 0x18(%r15), %rdi
leaq 0x100(%rsp), %rsi
callq 0xe3fc4
movl %eax, %edi
callq 0xe1ea3
movq %r13, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl %eax, %ecx
callq 0xe7287
incq %r14
jmp 0xdb648
incq %rbx
jmp 0xdb63a
movq %r15, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
movq 0x28(%rsp), %rdx
movq %r15, %rdi
leaq 0x45f05(%rip), %rsi     # 0x1215a0
xorl %eax, %eax
callq 0xde896
movq 0x18(%r15), %rdi
movq 0x28(%rsp), %rsi
movq 0x18(%r12), %rcx
subq $0x8, %rsp
pushq $0x8
popq %rdx
movq %r13, %r8
movq 0x10(%rsp), %r9
pushq $0x0
callq 0xe7cbc
popq %rax
popq %rcx
jmp 0xdb364
movq 0x40(%rsp), %rsi
movq %r12, %rdx
movq %r9, %rcx
movq %r13, %r9
pushq $0x2
pushq 0x10(%rsp)
callq 0xe7de1
popq %rax
popq %rcx
jmp 0xdb978
cmpl $0x8, %r12d
jne 0xdb978
movb $0x6, 0x7(%rsp)
movb $0x3f, 0x6(%rsp)
pushq $0x2
popq %rax
movl %eax, 0x34(%rsp)
pushq $0x8
popq %rcx
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
addq $0x7, %rax
cqto
idivq %rcx
movq %rax, %rcx
testq %rax, %rax
movl $0x0, %eax
cmovleq %rax, %rcx
movq %rcx, 0xe0(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0xb8(%rsp)
xorl %ecx, %ecx
movq %rdi, 0xf0(%rsp)
movq %r9, 0xd8(%rsp)
movq 0x8(%rsp), %rax
cmpq 0x10(%rax), %rcx
jge 0xdb978
movq %rcx, 0xc8(%rsp)
movl (%r13), %edx
movl %edx, %r14d
shrl $0x10, %r14d
movl $0xff, %eax
andl %eax, %r14d
movl 0x34(%rsp), %ecx
shrl %cl, %r14d
movl %edx, %r15d
shrl $0x8, %r15d
andl %eax, %r15d
shrl %cl, %r15d
andl %eax, %edx
shrl %cl, %edx
movq %rdx, 0x20(%rsp)
movq 0xb8(%rsp), %rbx
xorl %eax, %eax
cmpq 0xe0(%rsp), %rax
je 0xdb958
movq %rbx, 0xe8(%rsp)
xorl %r13d, %r13d
movq %rax, 0x58(%rsp)
cmpq %r13, %r12
je 0xdb7f4
movq 0xf0(%rsp), %rdi
movq %rbx, %rsi
callq 0xe3eb4
movb %al, 0x100(%rsp,%r13)
movq 0x58(%rsp), %rax
incq %r13
addq 0xf8(%rsp), %rbx
jmp 0xdb7c5
leaq (,%rax,8), %rcx
movq %rcx, 0x88(%rsp)
xorl %ebx, %ebx
movq 0xc0(%rsp), %r13
cmpq $0x8, %rbx
je 0xdb945
movb $0x7, %cl
subb %bl, %cl
movl %ebp, %edx
shll %cl, %edx
xorl %ecx, %ecx
xorl %eax, %eax
cmpq %rcx, %r12
je 0xdb846
movzbl 0x100(%rsp,%rcx), %esi
movl %ebp, %edi
shll %cl, %edi
andl %edx, %esi
testl %esi, %esi
cmovel %esi, %edi
orb %al, %dil
incq %rcx
movl %edi, %eax
jmp 0xdb824
movl %eax, %edx
movb 0x7(%rsp), %cl
shrb %cl, %dl
andb 0x6(%rsp), %al
cmpb $0x1, %dl
je 0xdb86e
movzbl %dl, %ecx
cmpl $0x3, %ecx
je 0xdb869
cmpl $0x2, %ecx
jne 0xdb875
movl %eax, %r14d
jmp 0xdb8a9
movl %eax, %r15d
jmp 0xdb8a9
movq %rax, 0x20(%rsp)
jmp 0xdb8a9
movzbl %al, %eax
movl (%r13,%rax,4), %edx
movl %edx, %r14d
shrl $0x10, %r14d
movl $0xff, %eax
andl %eax, %r14d
movl 0x34(%rsp), %ecx
shrl %cl, %r14d
movl %edx, %r15d
shrl $0x8, %r15d
andl %eax, %r15d
shrl %cl, %r15d
andl %eax, %edx
shrl %cl, %edx
movq %rdx, 0x20(%rsp)
cmpl $0x6, %r12d
jne 0xdb8d0
movl %r14d, %eax
shlb $0x4, %al
orb %r14b, %al
movl %r15d, %ecx
shlb $0x4, %cl
orb %r15b, %cl
movq 0x20(%rsp), %rsi
movl %esi, %edx
shlb $0x4, %dl
orb %sil, %dl
jmp 0xdb902
leal (,%r14,4), %ecx
movl %r14d, %eax
shrb $0x4, %al
orb %cl, %al
leal (,%r15,4), %edx
movl %r15d, %ecx
shrb $0x4, %cl
orb %dl, %cl
movq 0x20(%rsp), %rdx
leal (,%rdx,4), %esi
shrb $0x4, %dl
orb %sil, %dl
movq 0x88(%rsp), %rsi
addq %rbx, %rsi
movzbl %al, %eax
shll $0x10, %eax
movzbl %cl, %edi
shll $0x8, %edi
orl %eax, %edi
movzbl %dl, %ecx
orl %edi, %ecx
orl $0xff000000, %ecx       # imm = 0xFF000000
movq 0x8(%rsp), %rdi
movq 0xc8(%rsp), %rdx
callq 0xe728c
incq %rbx
movq 0x58(%rsp), %rax
jmp 0xdb80e
incq %rax
movq 0xe8(%rsp), %rbx
incq %rbx
jmp 0xdb7a7
movq 0xc8(%rsp), %rcx
incq %rcx
movq 0xd8(%rsp), %r9
addq %r9, 0xb8(%rsp)
jmp 0xdb756
movq 0x10(%rsp), %r12
jmp 0xdb364
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
movq 0x18(%rsp), %r15
movq 0x60(%rsp), %rbx
je 0xdb9b8
xorl %esi, %esi
xorl %edx, %edx
movq %rdi, %r14
callq 0xe70b7
jmp 0xdb9bb
xorl %r14d, %r14d
movq 0x18(%rsp), %r15
movq 0x10(%rsp), %r12
movq 0x60(%rsp), %rbx
jmp 0xdb9bb
xorl %r14d, %r14d
movq 0x8(%rsp), %rdi
jmp 0xdae5f