// File: /workspace/github_c_makefile_star2_O3/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 $0x158, %rsp            # imm = 0x158
movq %rdi, %r15
movl $0x470, %esi            # imm = 0x470
callq 0xe8b2b
movq %rax, %r13
leaq 0x61636(%rip), %rsi     # 0x14599d
movq %r15, %rdi
movl $0x1, %edx
callq 0xe9bd0
movb %al, 0x5(%r13)
movq %r15, %rdi
callq 0xe58c2
movb %al, (%r13)
cmpb $0x6, %al
ja 0xe43cc
movzbl %al, %eax
leaq 0x615b6(%rip), %rcx     # 0x145948
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x61608(%rip), %rsi     # 0x1459aa
movq %r15, %rdi
xorl %eax, %eax
callq 0xe9295
jmp 0xe4664
leaq 0x61611(%rip), %rdx     # 0x1459c9
jmp 0xe43d3
leaq 0x61602(%rip), %rdx     # 0x1459c3
jmp 0xe43d3
leaq 0x61606(%rip), %rdx     # 0x1459d0
jmp 0xe43d3
leaq 0x340dc(%rip), %rdx     # 0x1184af
leaq 0x615fd(%rip), %rsi     # 0x1459d7
movq %r15, %rdi
xorl %eax, %eax
callq 0xeb152
movb (%r13), %al
leal -0x4(%rax), %ecx
cmpb $0x3, %cl
jae 0xe4527
leaq 0x1(%r13), %rcx
movq %rcx, 0x80(%rsp)
movb $0x1, 0x1(%r13)
movq $0x1, 0x68(%r13)
cmpb $0x6, %al
jne 0xe4546
leaq 0x38(%rsp), %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0xe8a1c
leaq 0x3ef53(%rip), %rsi     # 0x12337f
movq %r15, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xe8617
movq %r15, %rdi
movl $0x1, %esi
callq 0xe8a15
leaq 0x110(%rsp), %r14
movq $0x8, (%r14)
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xeed83
movq %rax, 0x10(%r13)
leaq 0x61585(%rip), %rsi     # 0x1459f0
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xeed83
movq %rax, 0x8(%r13)
leaq 0x61570(%rip), %rsi     # 0x1459ff
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xeed83
movq %rax, 0x18(%r13)
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xeed83
movq %rax, 0x20(%r13)
movq 0x18(%r13), %rsi
movq %r15, %rdi
movq %rax, %rdx
callq 0xe8f88
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xeed83
movl %eax, 0x38(%r13)
leaq 0x3fcba(%rip), %rsi     # 0x12419c
movq %r15, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movl 0x38(%r13), %eax
movl %eax, 0x3c(%r13)
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xeed83
movq %rax, 0x48(%r13)
leaq 0x61501(%rip), %rsi     # 0x145a0e
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq $0x450, 0x50(%r13)      # imm = 0x450
jmp 0xe4653
leaq 0x1(%r13), %rax
movq %rax, 0x80(%rsp)
cmpb $0x0, 0x1(%r13)
je 0xe4767
movq $0x1, 0x68(%r13)
leaq 0x38(%rsp), %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0xe8a1c
leaq 0x3ee22(%rip), %rsi     # 0x12337f
movq %r15, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xe8617
movq %r15, %rdi
movl $0x1, %esi
callq 0xe8a15
leaq 0x110(%rsp), %r14
movq $0x8, (%r14)
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xeed83
movq %rax, 0x8(%r13)
leaq 0x61463(%rip), %rsi     # 0x1459ff
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xeed83
movq %rax, 0x10(%r13)
leaq 0x61430(%rip), %rsi     # 0x1459f0
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xeebeb
movq %rax, 0x18(%r13)
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xeebeb
movq %rax, 0x20(%r13)
movq 0x18(%r13), %rsi
movq %r15, %rdi
movq %rax, %rdx
callq 0xe8f88
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xeeb4b
movzbl %al, %edx
movl %edx, 0x38(%r13)
leaq 0x3fb86(%rip), %rsi     # 0x12419c
movq %r15, %rdi
xorl %eax, %eax
callq 0xe8617
movl 0x38(%r13), %eax
movl %eax, 0x3c(%r13)
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xeeb4b
movzbl %al, %edx
movq %rdx, 0x48(%r13)
leaq 0x613cc(%rip), %rsi     # 0x145a0e
movq %r15, %rdi
xorl %eax, %eax
callq 0xe8617
movq (%r14), %rax
movq %rax, 0x50(%r13)
movl (%rbx), %esi
movq %r15, %rdi
callq 0xe8a25
cmpb $0x0, 0x2(%r13)
je 0xe4699
cmpb $0x0, 0x3(%r13)
je 0xe467c
leaq 0x3491d(%rip), %rsi     # 0x118f8f
movq %r15, %rdi
xorl %eax, %eax
callq 0xe9295
movq %r15, %rdi
movq %r13, %rsi
callq 0xe8be2
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x80(%rsp), %rax
cmpb $0x0, (%rax)
je 0xe49c7
cmpb $0x6, (%r13)
movq %r15, 0x20(%rsp)
movq %r13, 0x10(%rsp)
jne 0xe48fb
leaq 0x110(%rsp), %rsi
movq %r15, %rdi
callq 0xe8a1c
movq 0x50(%r13), %rbx
leaq 0x61399(%rip), %rsi     # 0x145a73
movq %r15, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xe8617
movq %r15, %rdi
movl $0x1, %esi
callq 0xe8a15
movq %r15, %rdi
callq 0xea504
movq %rax, 0x30(%rsp)
movq 0x10(%r13), %rcx
movq 0x48(%r13), %rax
movq %rcx, 0x18(%rsp)
testq %rcx, %rcx
leaq 0x4f19a(%rip), %rcx     # 0x1338b2
leaq 0x3ca43(%rip), %rdx     # 0x121162
cmoveq %rcx, %rdx
movq %rdx, 0x68(%rsp)
addq $-0x51, %rax
cmpq $-0x50, %rax
jae 0xe4ac0
movq 0x10(%rsp), %rax
movw $0x101, 0x2(%rax)       # imm = 0x101
movq %r15, %rdi
movq 0x30(%rsp), %rsi
callq 0xea50e
movl 0x110(%rsp), %esi
movq %r15, %rdi
callq 0xe8a25
movq 0x10(%rsp), %r13
jmp 0xe4664
movq $0x3, 0x68(%r13)
leaq 0x38(%rsp), %rsi
movq %r15, %rdi
callq 0xe8a1c
leaq 0x3ebfc(%rip), %rsi     # 0x12337f
movq %r15, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xe8617
movq %r15, %rdi
movl $0x1, %esi
callq 0xe8a15
leaq 0x110(%rsp), %rbx
movq $0x4, (%rbx)
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xeed31
movq %rax, 0x8(%r13)
leaq 0x6123d(%rip), %rsi     # 0x1459ff
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xeed31
movq %rax, 0x10(%r13)
leaq 0x6120a(%rip), %rsi     # 0x1459f0
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xeeb91
movq %rax, 0x20(%r13)
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xeeb91
movq %rax, 0x18(%r13)
movq 0x20(%r13), %rdx
movq %r15, %rdi
movq %rax, %rsi
callq 0xe8f88
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xeed31
movl %eax, 0x40(%r13)
leaq 0x611e4(%rip), %rsi     # 0x145a1d
movq %r15, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
testb $0x8, 0x41(%r13)
je 0xe4851
movb $0x1, 0x44(%r13)
movq %r15, %rdi
movl $0x1, %esi
callq 0xe8a15
movzbl 0x44(%r13), %edx
leaq 0x2c6fb(%rip), %rsi     # 0x110f65
movq %r15, %rdi
xorl %eax, %eax
callq 0xe8617
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq 0x18(%r15), %rdi
leaq 0x110(%rsp), %rbx
movq %rbx, %rsi
callq 0xeeb4b
movzbl %al, %edx
movl %edx, 0x38(%r13)
leaq 0x3f8f9(%rip), %rsi     # 0x12419c
movq %r15, %rdi
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xeeb4b
movzbl %al, %edx
movq %rdx, 0x48(%r13)
leaq 0x61147(%rip), %rsi     # 0x145a0e
movq %r15, %rdi
xorl %eax, %eax
callq 0xe8617
movq (%rbx), %rax
movq %rax, 0x50(%r13)
movq 0x18(%r13), %rdx
cmpq $0x60, %rdx
jne 0xe4a5e
movl $0x4, %eax
cmpl $0x4, 0x38(%r13)
jne 0xe4a68
jmp 0xe4a92
leaq 0xa4(%rsp), %rsi
movq %r15, %rdi
callq 0xe8a1c
movq 0x58(%r13), %rdx
addq 0x50(%r13), %rdx
leaq 0x61159(%rip), %rsi     # 0x145a73
movq %r15, %rdi
movq %rdx, 0xb0(%rsp)
xorl %eax, %eax
callq 0xe8617
movq %r15, %rdi
movl $0x1, %esi
callq 0xe8a15
movq %r15, %rdi
callq 0xea504
movq %rax, %rbx
movb 0x1(%r13), %al
testb %al, %al
je 0xe495a
movl 0x38(%r13), %ecx
cmpl $0x8, %ecx
je 0xe495a
cmpl $0x10, %ecx
jne 0xe498b
movq 0x48(%r13), %rcx
leaq -0x51(%rcx), %rdx
cmpq $-0x50, %rdx
jb 0xe498b
movq 0x18(%r13), %rsi
leaq -0x65(%rsi), %rdx
cmpq $-0x25, %rdx
jb 0xe498b
movq $-0x97, %rdx
addq 0x20(%r13), %rdx
cmpq $-0x34, %rdx
ja 0xe4be2
movw $0x101, 0x2(%r13)       # imm = 0x101
xorl %r14d, %r14d
xorl %r12d, %r12d
movq %r12, %rdi
callq 0xf228d
movq %r14, %rdi
callq 0xf228d
movq %r15, %rdi
movq %rbx, %rsi
callq 0xea50e
movl 0xa4(%rsp), %esi
movq %r15, %rdi
callq 0xe8a25
jmp 0xe4664
leaq 0x110(%rsp), %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0xe8a1c
movq 0x50(%r13), %r14
leaq 0x61078(%rip), %rsi     # 0x145a5d
movq %r15, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0xe8617
movq %r15, %rdi
movl $0x1, %esi
callq 0xe8a15
movb 0x3c(%r13), %cl
movl $0x1, %eax
shlq %cl, %rax
movl $0x3, %edx
shlq %cl, %rdx
movq %rdx, 0x58(%r13)
movq 0x18(%r15), %rsi
leaq 0x70(%r13), %r9
subq $0x8, %rsp
movl $0x3, %r8d
movq %r15, %rdi
movq %r14, %rdx
movq %rax, %rcx
pushq $0x8
pushq $0x1
pushq $0x100                  # imm = 0x100
callq 0xf2cb1
addq $0x20, %rsp
movl (%rbx), %esi
movq %r15, %rdi
callq 0xe8a25
cmpb $0x0, 0x2(%r13)
jne 0xe4664
jmp 0xe46aa
leaq -0x59(%rdx), %rax
cmpq $0x7, %rax
ja 0xe4a86
leaq 0x60fc0(%rip), %rsi     # 0x145a2f
movq %r15, %rdi
xorl %eax, %eax
callq 0xe8faa
movq $0x58, 0x18(%r13)
movb $0x1, 0x4(%r13)
movl 0x38(%r13), %eax
leal -0x9(%rax), %ecx
cmpl $-0x9, %ecx
jbe 0xe4ab0
movl %eax, 0x3c(%r13)
cmpb $0x0, 0x44(%r13)
je 0xe4ab7
cmpl $0x6, %eax
je 0xe4aa7
cmpl $0x8, %eax
jne 0xe4ab0
addl $-0x2, %eax
movl %eax, 0x3c(%r13)
jmp 0xe4ab7
movw $0x101, 0x2(%r13)       # imm = 0x101
movl 0x38(%rsp), %esi
jmp 0xe4655
xorl %r13d, %r13d
movq %r15, %rdi
leaq 0x60fb3(%rip), %rsi     # 0x145a80
movq %r13, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0xe8617
movq %r15, %rdi
movl $0x1, %esi
callq 0xe8a15
cmpq $0x0, 0x18(%rsp)
je 0xe4b18
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xeeb67
cmpq $0x424d, %rax           # imm = 0x424D
jne 0xe4736
movq 0x10(%rsp), %rax
movq 0x10(%rax), %r12
movq %rbx, %rbp
movq %r12, %rdx
jmp 0xe4b4a
leaq 0x4(%rbx), %rbp
movq 0x18(%r15), %rdi
movq %rbp, %rsi
callq 0xeeb67
cmpq $0xffd8, %rax           # imm = 0xFFD8
jne 0xe4736
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xeed61
movq %rax, %r12
movq %rax, %rdx
addq $0x4, %rdx
leaq (%r12,%rbp), %rax
movq 0x18(%r15), %rcx
cmpq 0x18(%rcx), %rax
jg 0xe4736
movq 0x10(%rsp), %rax
movq 0x68(%rax), %rsi
movq %r15, %rdi
movq %rdx, 0x50(%rsp)
movq %r13, %rdx
movq %r15, %r14
movq 0x30(%rsp), %r15
movq %r15, %rcx
callq 0xe595c
movq %r14, %rdi
movq 0x68(%rsp), %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0xefda1
movq %rax, %r15
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rdi
movq %rbp, %rsi
movq %r12, %rdx
movq %r15, %rcx
callq 0xef481
movq %r15, %rdi
movq 0x20(%rsp), %r15
callq 0xf052b
addq 0x50(%rsp), %rbx
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
incq %r13
movq 0x10(%rsp), %rax
cmpq 0x48(%rax), %r13
jl 0xe4ac3
jmp 0xe4741
movq 0x68(%r13), %rdx
addq $0x34, %rdx
cmpq %rdx, %rcx
jge 0xe4c08
leaq 0x60eb3(%rip), %rsi     # 0x145aa9
movq %r15, %rdi
xorl %eax, %eax
callq 0xe8faa
movb 0x1(%r13), %al
movq 0x18(%r13), %rsi
testb %al, %al
je 0xe4c1e
imulq 0x20(%r13), %rsi
movl 0x38(%r13), %ecx
shrl $0x3, %ecx
imulq %rsi, %rcx
jmp 0xe4c55
leaq 0x7(%rsi), %rcx
testq %rsi, %rsi
cmovnsq %rsi, %rcx
sarq $0x3, %rcx
movq %rcx, 0x30(%r13)
movl 0x38(%r13), %edx
imulq %rdx, %rcx
movq %rcx, 0x28(%r13)
imulq %rdx, %rsi
imulq 0x20(%r13), %rsi
leaq 0x7(%rsi), %rcx
testq %rsi, %rsi
cmovnsq %rsi, %rcx
sarq $0x3, %rcx
movq 0x10(%r13), %rdx
cmpq %rcx, %rdx
je 0xe4c7f
cmpb $0x0, 0x4(%r13)
jne 0xe4c7f
leaq 0x60e69(%rip), %rsi     # 0x145ad5
movq %r15, %rdi
xorl %eax, %eax
callq 0xe8faa
movb $0x1, 0x4(%r13)
movb 0x1(%r13), %al
movq $0x0, 0x60(%r13)
testb %al, %al
movq %rbx, 0x88(%rsp)
je 0xe4cb4
movl $0x4, %eax
movq %rax, 0x70(%rsp)
cmpl $0x8, 0x38(%r13)
jne 0xe4cc2
movq $0x200, 0x60(%r13)      # imm = 0x200
movl $0x200, %r14d           # imm = 0x200
jmp 0xe4cc5
xorl %r14d, %r14d
movq $0x0, 0x70(%rsp)
jmp 0xe4cc5
xorl %r14d, %r14d
movq 0x10(%r13), %rbx
movq 0x18(%r13), %rsi
cmpb $0x0, 0x5(%r13)
movq 0x20(%r13), %rcx
je 0xe4d3c
movq 0x48(%r13), %rax
addq $0xc, %rax
movabsq $0x4ec4ec4ec4ec4ec5, %rdx # imm = 0x4EC4EC4EC4EC4EC5
imulq %rdx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x2, %rdx
addq %rax, %rdx
cmpq $0x6, %rdx
movl $0x5, %eax
cmovlq %rax, %rdx
addq $0x2, %rcx
imulq %rcx, %rdx
addq $-0x2, %rdx
leaq (%rsi,%rsi,2), %rax
leaq (%rsi,%rax,4), %rsi
addq $0x18, %rsi
movq %r15, %rdi
movl $0x4, %ecx
callq 0xf266a
movq %rax, 0x78(%rsp)
movq 0x18(%r13), %rsi
movq 0x20(%r13), %rcx
jmp 0xe4d45
movq $0x0, 0x78(%rsp)
movq %r15, %rdi
movq %rcx, %rdx
movl $0x3, %ecx
callq 0xf266a
movq %rax, %r12
cmpq $0x0, 0x48(%r13)
jle 0xe553a
movq 0x70(%rsp), %rax
movq %rax, %rcx
orq %r14, %rcx
addq %rbx, %rcx
movq %rcx, 0xa8(%rsp)
movq %r13, %rcx
addq $0x70, %rcx
movq %rcx, 0x28(%rsp)
addq %rax, %r14
addq %rbx, %r14
movq %r14, 0xd8(%rsp)
movl $0x4, %r14d
movq 0xb0(%rsp), %rax
movq %rax, 0x90(%rsp)
xorl %ebx, %ebx
xorl %eax, %eax
xorl %ecx, %ecx
movq $0x0, 0x60(%rsp)
movq %r12, 0x18(%rsp)
movq %rcx, 0xb8(%rsp)
movq %rax, 0xc0(%rsp)
movq %r14, 0xc8(%rsp)
movq %rbx, %rcx
imulq 0xa8(%rsp), %rcx
addq 0xb0(%rsp), %rcx
movq %r15, %rdi
leaq 0x60c8d(%rip), %rsi     # 0x145a80
movq %rbx, %rdx
movq %rcx, 0x58(%rsp)
xorl %eax, %eax
callq 0xe8617
movq %r15, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x80(%rsp), %rax
cmpb $0x0, (%rax)
movq %rbx, 0x48(%rsp)
je 0xe4e8b
cmpb $0x0, 0x2(%r13)
jne 0xe4e8b
movq 0x70(%rsp), %rax
movq 0x58(%rsp), %rcx
addq %rcx, %rax
movq 0x18(%r15), %rdi
cmpq 0x18(%rdi), %rax
jg 0xe4e8b
movq 0x58(%rsp), %r14
movq %r14, %rsi
callq 0xeebc8
movq %rax, %rbx
movq 0x18(%r15), %rdi
leaq 0x2(%r14), %rsi
callq 0xeebc8
incq %rbx
cmpq 0x18(%r13), %rbx
movq 0x48(%rsp), %rbx
jne 0xe4e73
incq %rax
cmpq 0x20(%r13), %rax
je 0xe4e8b
movq %r15, %rdi
leaq 0x60c7f(%rip), %rsi     # 0x145afc
movl %ebx, %edx
xorl %eax, %eax
callq 0xe9295
movb $0x1, 0x2(%r13)
movq 0x18(%r13), %rcx
movq 0x20(%r13), %r8
subq $0x8, %rsp
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
movl $0xff000000, %r9d       # imm = 0xFF000000
pushq $0x0
callq 0xf3654
addq $0x10, %rsp
cmpb $0x0, 0x2(%r13)
jne 0xe539e
movq 0x80(%rsp), %rax
cmpb $0x0, (%rax)
je 0xe4fdb
movq 0x70(%rsp), %rax
movq 0x58(%rsp), %rcx
leaq (%rcx,%rax), %rdx
cmpl $0x8, 0x38(%r13)
jne 0xe5302
movq %rdx, 0x38(%rsp)
movq %r15, %rdi
leaq 0x516f8(%rip), %rsi     # 0x1365eb
xorl %eax, %eax
callq 0xe8617
movq %r15, %rdi
movl $0x1, %esi
callq 0xe8a15
movl $0x400, %edx            # imm = 0x400
movq 0x28(%rsp), %rdi
xorl %esi, %esi
callq 0x18140
xorl %ebx, %ebx
movq 0x18(%r15), %rdi
leaq 0x38(%rsp), %rsi
callq 0xeebeb
movq %rax, %r14
movl %r14d, %edi
callq 0xec947
movq 0x28(%rsp), %rcx
movl %eax, (%rcx,%rbx,4)
cmpl $0x2, (%r15)
jl 0xe4f7e
movl $0x40, %esi
leaq 0x110(%rsp), %rbp
movq %rbp, %rdi
leaq 0x5af85(%rip), %rdx     # 0x13fedd
movl %r14d, %ecx
xorl %eax, %eax
callq 0xe8193
movq 0x28(%rsp), %rax
movl (%rax,%rbx,4), %edx
movq %r15, %rdi
movq %rbx, %rsi
movq %rbp, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xe90a3
incq %rbx
cmpq $0x100, %rbx            # imm = 0x100
jne 0xe4f1a
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq 0x38(%rsp), %rdx
movq %r15, %rdi
leaq 0x4986a(%rip), %rsi     # 0x12e810
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r15), %rdi
movq 0x38(%rsp), %rsi
movq 0x18(%r13), %rcx
subq $0x8, %rsp
movl $0x8, %edx
movq 0x30(%rsp), %r8
movq %r12, %r9
pushq $0x0
callq 0xf2f79
addq $0x10, %rsp
jmp 0xe5375
cmpb $0x0, 0x44(%r13)
movq 0x18(%r15), %rdi
movq %r13, %rax
movl 0x38(%r13), %r13d
movq 0x28(%rax), %r9
movq 0x30(%rax), %r8
je 0xe537c
movq %r8, 0x100(%rsp)
movq $0x0, 0x110(%rsp)
movl $0x4, 0x44(%rsp)
cmpl $0x6, %r13d
je 0xe502d
movl $0x2, 0x44(%rsp)
cmpl $0x8, %r13d
jne 0xe5399
movq 0x10(%r12), %rax
testq %rax, %rax
jle 0xe5399
movq 0x8(%r12), %rdx
leaq 0x7(%rdx), %rcx
movq %rdx, 0xe0(%rsp)
addq $0xe, %rdx
testq %rcx, %rcx
cmovnsq %rcx, %rdx
sarq $0x3, %rdx
cmpq $0x6, %r13
movl $0x3f, %r14d
movl $0xf, %ecx
cmovel %ecx, %r14d
setne %r12b
addb %r12b, %r12b
orb $0x4, %r12b
cmpq $0x2, %rdx
movl $0x1, %ecx
cmovlq %rcx, %rdx
movq %rdx, 0xf0(%rsp)
movq 0x90(%rsp), %rdx
movq $0x0, 0x68(%rsp)
movq %rdi, 0xf8(%rsp)
movq %r9, 0xd0(%rsp)
movl %r14d, 0xa0(%rsp)
movb %r12b, 0xf(%rsp)
cmpq $0x0, 0xe0(%rsp)
jle 0xe52e4
movq 0x28(%rsp), %rax
movl (%rax), %edi
movl %edi, %esi
movl $0xff, %eax
andl %eax, %esi
movl 0x44(%rsp), %ecx
shrl %cl, %esi
movq %rsi, 0x50(%rsp)
movl %edi, %r15d
shrl $0x8, %r15d
andl %eax, %r15d
shrl %cl, %r15d
shrl $0x10, %edi
andl %eax, %edi
shrl %cl, %edi
movq %rdi, 0x30(%rsp)
movq %rdx, 0xe8(%rsp)
movq %rdx, %rbx
movq $0x0, 0x98(%rsp)
movq %rbx, 0x108(%rsp)
xorl %ebp, %ebp
movq 0xf8(%rsp), %r14
movq 0x100(%rsp), %r12
movq %r14, %rdi
movq %rbx, %rsi
callq 0xeead3
movb %al, 0x110(%rsp,%rbp)
incq %rbp
addq %r12, %rbx
cmpq %rbp, %r13
jne 0xe5130
movq 0x98(%rsp), %rax
leaq (,%rax,8), %rbx
xorl %ebp, %ebp
movl 0xa0(%rsp), %r14d
movb 0xf(%rsp), %r12b
movb $0x7, %cl
subb %bpl, %cl
movl $0x1, %edx
shll %cl, %edx
xorl %ecx, %ecx
xorl %eax, %eax
movzbl 0x110(%rsp,%rcx), %esi
movl $0x1, %edi
shll %cl, %edi
andl %edx, %esi
testl %esi, %esi
cmovel %esi, %edi
orb %dil, %al
incq %rcx
cmpq %rcx, %r13
jne 0xe517c
movl %eax, %edx
movl %r12d, %ecx
shrb %cl, %dl
andb %r14b, %al
cmpb $0x1, %dl
je 0xe51c5
movzbl %dl, %ecx
cmpl $0x3, %ecx
je 0xe51c0
cmpl $0x2, %ecx
jne 0xe51cc
movq %rax, 0x30(%rsp)
jmp 0xe5204
movl %eax, %r15d
jmp 0xe5204
movq %rax, 0x50(%rsp)
jmp 0xe5204
movzbl %al, %eax
movq 0x28(%rsp), %rcx
movl (%rcx,%rax,4), %edx
movl %edx, %esi
shrl $0x10, %esi
movl $0xff, %eax
andl %eax, %esi
movl 0x44(%rsp), %ecx
shrl %cl, %esi
movq %rsi, 0x30(%rsp)
movl %edx, %r15d
shrl $0x8, %r15d
andl %eax, %r15d
shrl %cl, %r15d
andl %eax, %edx
shrl %cl, %edx
movq %rdx, 0x50(%rsp)
cmpl $0x6, %r13d
jne 0xe522e
movq 0x30(%rsp), %rcx
movl %ecx, %eax
shlb $0x4, %al
orb %cl, %al
movl %r15d, %ecx
shlb $0x4, %cl
orb %r15b, %cl
movq 0x50(%rsp), %rsi
movl %esi, %edx
shlb $0x4, %dl
orb %sil, %dl
jmp 0xe5261
movq 0x30(%rsp), %rax
leal (,%rax,4), %ecx
shrb $0x4, %al
orb %cl, %al
leal (,%r15,4), %edx
movl %r15d, %ecx
shrb $0x4, %cl
orb %dl, %cl
movq 0x50(%rsp), %rdx
leal (,%rdx,4), %esi
shrb $0x4, %dl
orb %sil, %dl
leaq (%rbx,%rbp), %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 0x18(%rsp), %rdi
movq 0x68(%rsp), %rdx
callq 0xf24bf
incq %rbp
cmpq $0x8, %rbp
jne 0xe516c
movq 0x98(%rsp), %rcx
incq %rcx
movq 0x108(%rsp), %rbx
incq %rbx
movq %rcx, 0x98(%rsp)
cmpq 0xf0(%rsp), %rcx
jne 0xe5116
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x48(%rsp), %rbx
movq 0xd0(%rsp), %r9
movq 0xe8(%rsp), %rdx
movq 0x68(%rsp), %rsi
incq %rsi
addq %r9, %rdx
movq %rsi, 0x68(%rsp)
cmpq %rax, %rsi
jl 0xe50bc
jmp 0xe5399
movq %rdx, 0x110(%rsp)
movq %r15, %rdi
leaq 0x494fc(%rip), %rsi     # 0x12e810
xorl %eax, %eax
callq 0xe8617
movq 0x20(%r13), %rcx
testq %rcx, %rcx
jle 0xe5375
movq 0x18(%r13), %rax
xorl %ebx, %ebx
testq %rax, %rax
jle 0xe536d
xorl %r14d, %r14d
leaq 0x110(%rsp), %rbp
movq 0x18(%r15), %rdi
movq %rbp, %rsi
callq 0xeebeb
movl %eax, %edi
callq 0xec947
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl %eax, %ecx
callq 0xf24ba
incq %r14
movq 0x18(%r13), %rax
cmpq %rax, %r14
jl 0xe533a
movq 0x20(%r13), %rcx
incq %rbx
cmpq %rcx, %rbx
jl 0xe532a
movq 0x48(%rsp), %rbx
jmp 0xe539e
movq 0x58(%rsp), %rsi
movq %r13, %rdx
movq %r9, %rcx
movq 0x28(%rsp), %r9
pushq $0x2
pushq %r12
callq 0xf30b3
addq $0x10, %rsp
movq 0x10(%rsp), %r13
movq 0x68(%r13), %rsi
cmpq %rsi, %rbx
setl %al
leaq 0x34(%rsi), %rcx
cmpq %rcx, %rbx
setge %cl
orb %al, %cl
movq 0x78(%rsp), %rbx
je 0xe53fb
movq 0xb8(%rsp), %rcx
leaq 0x1(%rcx), %rax
xorl %r14d, %r14d
cmpq $0xc, %rcx
setge %r14b
movl $0x0, %r12d
cmovlq %rax, %r12
movq 0xc8(%rsp), %rax
addq %rax, %r14
movq 0x60(%rsp), %rbp
movq 0xc0(%rsp), %r15
movq %rax, 0x60(%rsp)
jmp 0xe5433
movq 0x60(%rsp), %rcx
leaq 0x1(%rcx), %rax
xorl %r15d, %r15d
cmpq $0x3, %rcx
movl $0x0, %ebp
cmovlq %rax, %rbp
setge %r15b
movq 0xc0(%rsp), %rcx
addq %rcx, %r15
movq 0xb8(%rsp), %r12
movq 0xc8(%rsp), %r14
testq %rbx, %rbx
je 0xe5472
movq 0x18(%r13), %r8
movq 0x20(%r13), %r9
leaq 0x2(%r9), %rax
imulq 0x60(%rsp), %rax
leaq 0x2(%r8), %r10
imulq %rcx, %r10
subq $0x8, %rsp
movq 0x20(%rsp), %rdi
movq %rbx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
pushq $0x0
pushq %rax
pushq %r10
callq 0xf36d0
addq $0x20, %rsp
jmp 0xe54a6
movq 0x20(%rsp), %rdi
movq 0x48(%rsp), %rdx
movq %rbp, %rbx
movq 0x88(%rsp), %rbp
movq %rbp, %rcx
callq 0xe595c
movq 0x18(%rsp), %rdi
movq %rbp, %rsi
movq %rbx, %rbp
movq 0x78(%rsp), %rbx
xorl %edx, %edx
callq 0xf22d0
cmpb $0x0, 0x2(%r13)
jne 0xe54e1
movq 0x58(%rsp), %rcx
addq 0xa8(%rsp), %rcx
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rax
cmpq 0x18(%rax), %rcx
jle 0xe54e6
movq 0x20(%rsp), %rdi
leaq 0x60641(%rip), %rsi     # 0x145b16
xorl %eax, %eax
callq 0xe9295
movb $0x1, 0x2(%r13)
testq %rbx, %rbx
je 0xe555d
movq 0x20(%rsp), %r13
movq %r13, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq 0x48(%rsp), %rbx
incq %rbx
movq 0x90(%rsp), %rax
addq 0xd8(%rsp), %rax
movq %rax, 0x90(%rsp)
movq %r15, %rax
movq %r13, %r15
movq 0x10(%rsp), %r13
movq %r12, %rcx
movq %rbp, 0x60(%rsp)
cmpq 0x48(%r13), %rbx
movq 0x18(%rsp), %r12
jl 0xe4dbd
movq 0x78(%rsp), %r14
testq %r14, %r14
movq 0x88(%rsp), %rbx
je 0xe5577
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xf22dc
jmp 0xe4998
xorl %r14d, %r14d
movq 0x20(%rsp), %r15
movq 0x88(%rsp), %rbx
movq 0x18(%rsp), %r12
jmp 0xe4998
xorl %r14d, %r14d
jmp 0xe4998