// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/path_finder.c
// Function: main
int main(int argc, char *argv[])
{
    const char *opt_str = "c:e:f:g:hl:m:N:o:p:q:s:v:V";
    ketopt_t opt = KETOPT_INIT;
    int c, out_s, out_c, max_copy, max_path, ret = 0;
    FILE *fp_help;
    char *out_pref, *mito_annot, *pltd_annot, *ec_tag, *kc_tag, *sc_tag;
    int no_trn, no_rrn, min_len, ext_p, ext_m, bubble_size, tip_size, do_graph_clean;
    double max_eval, min_score, min_cf, seq_cf, weak_cross;

    sys_init();

    out_s = -1;
    out_c = 0;
    out_pref = "oatk.asm";
    max_copy = 10;
    max_path = 1000000;
    fp_help = stderr;
    mito_annot = 0;
    pltd_annot = 0;
    ec_tag = 0;
    kc_tag = 0;
    sc_tag = 0;
    no_trn = 1;
    no_rrn = 1;
    do_graph_clean = 1;
    bubble_size = 100000;
    tip_size = 10000;
    weak_cross = 0.3;
    max_eval = 1e-6;
    min_len = 10000;
    min_score = 300;
    ext_p = 3;
    ext_m = 1;
    seq_cf = .90;
    min_cf = .20;

    while ((c = ketopt(&opt, argc, argv, 1, opt_str, long_options)) >=0 ) {
        if (c == 'm') mito_annot = opt.arg;
        else if (c == 'p') pltd_annot = opt.arg;
        else if (c == 'f') seq_cf = atof(opt.arg);
        else if (c == 's') min_score = atof(opt.arg);
        else if (c == 'c') max_copy = atoi(opt.arg);
        else if (c == 'N') max_path = atoi(opt.arg);
        else if (c == 'g') {
            char *p;
            ext_p = strtol(opt.arg, &p, 10);
            if (*p == ',') ext_m = strtol(p + 1, &p, 10);
        }
        else if (c == 'q') min_cf = atof(opt.arg);
        else if (c == 'e') max_eval = atof(opt.arg);
        else if (c == 'l') min_len = atoi(opt.arg);
        else if (c == 'o') out_pref = opt.arg;
        else if (c == 301) out_s = 0, ++out_c;
        else if (c == 302) out_s = 1, ++out_c;
        else if (c == 303) out_s = 2, ++out_c;
        else if (c == 304) ec_tag = opt.arg;
        else if (c == 305) kc_tag = opt.arg;
        else if (c == 306) sc_tag = opt.arg;
        else if (c == 307) no_trn = 0;
        else if (c == 308) no_rrn = 1;
        else if (c == 309) bubble_size = atoi(opt.arg);
        else if (c == 310) tip_size = atoi(opt.arg);
        else if (c == 311) weak_cross = atof(opt.arg);
        else if (c == 312) do_graph_clean = 0;
        else if (c == 'v') VERBOSE = atoi(opt.arg);
        else if (c == 'h') fp_help = stdout;
        else if (c == 'V') {
            puts(PATHFINDER_VERSION);
            return 0;
        }
        else if (c == '?') {
            fprintf(stderr, "[E::%s] unknown option: \"%s\"\n", __func__, argv[opt.i - 1]);
            return 1;
        }
        else if (c == ':') {
            fprintf(stderr, "[E::%s] missing option: \"%s\"\n", __func__, argv[opt.i - 1]);
            return 1;
        }
    }

    if (argc == opt.ind || fp_help == stdout) {
        fprintf(fp_help, "\n");
        fprintf(fp_help, "Usage: pathfinder [options] <file>[.gfa[.gz]]\n");
        fprintf(fp_help, "Options:\n");
        fprintf(fp_help, "  Input/Output:\n");
        fprintf(fp_help, "    -m FILE              mitochondria core gene annotation file [NULL]\n");
        fprintf(fp_help, "    -p FILE              plastid core gene annotation file [NULL]\n");
        fprintf(fp_help, "    -o FILE              prefix of output files [%s]\n", out_pref);
        fprintf(fp_help, "    -f FLOAT             prefer circular path to longest if >= FLOAT sequence covered [%.2f]\n", seq_cf);
        //fprintf(fp_help, "    --longest            output only the longest path [default]\n");
        //fprintf(fp_help, "    --circular           output only the longest circular path\n");
        //fprintf(fp_help, "    --all                output all best paths\n");
        fprintf(fp_help, "    --edge-c-tag STR     edge coverage tag in the GFA file [EC:i] \n");
        fprintf(fp_help, "    --kmer-c-tag STR     kmer coverage tag in the GFA file [KC:i] \n");
        fprintf(fp_help, "    --seq-c-tag  STR     sequence coverage tag in the GFA file [SC:f]\n");
        fprintf(fp_help, "    -v INT               verbose level [%d]\n", VERBOSE);
        fprintf(fp_help, "    --version            show version number\n");
        fprintf(fp_help, "  Classification:\n");
        fprintf(fp_help, "    -s FLOAT             minimum annotation score of a core gene [%.1f]\n", min_score);
        fprintf(fp_help, "    -e FLOAT             maximum E-value of a core gene [%.3e]\n", max_eval);
        fprintf(fp_help, "    -g INT[,INT]         minimum number of core gene gain; the second INT for mitochondria [%d,%d]\n", ext_p, ext_m);
        fprintf(fp_help, "    -l INT               minimum length of a singleton sequence to keep [%d]\n", min_len);
        fprintf(fp_help, "    --include-trn        include tRNA genes for sequence classification\n");
        fprintf(fp_help, "    --include-rrn        include rRNA genes for sequence classification\n");
        fprintf(fp_help, "  Path-finding:\n");
        fprintf(fp_help, "    -q FLOAT             minimum coverage of a sequence compared to the subgraph average [%.2f]\n", min_cf);
        fprintf(fp_help, "    -c INT               maximum copy number to consider [%d]\n", max_copy);
        fprintf(fp_help, "    -N INT               maximum number of graph paths to explore [%d]\n", max_path);
        fprintf(fp_help, "    --max-bubble INT     maximum bubble size for assembly graph clean [%d]\n", bubble_size);
        fprintf(fp_help, "    --max-tip    INT     maximum tip size for assembly graph clean [%d]\n", tip_size);
        fprintf(fp_help, "    --weak-cross FLOAT   maximum relative edge coverage for weak crosslink clean [%.2f]\n", weak_cross);
        fprintf(fp_help, "    --no-graph-clean     do not do assembly graph clean\n");
        fprintf(fp_help, "\n");
        fprintf(fp_help, "Example: ./pathfinder -m asm_annot.mito.txt -p asm_annot.pltd.txt -o oatk.asm asm.gfa\n\n");
        return fp_help == stdout? 0 : 1;
    }

    if (argc - opt.ind < 1) {
        fprintf(stderr, "[E::%s] missing input: please specify the GFA file\n", __func__);
        return 1;
    }

    if (out_c > 1) {
        fprintf(stderr, "[E::%s] options --longest, --circular and --all are mutually exclusive\n", __func__);
        return 1;
    }
    
    if (mito_annot == 0 && pltd_annot == 0) {
        fprintf(stderr, "[E::%s] provide at least one HMM profile annotation file (-m and/or -p)\n", __func__);
        return 1;
    }

    if (ec_tag != 0) {
        if(is_valid_gfa_tag(ec_tag)) {
            memcpy(TAG_ARC_COV, ec_tag, 4);
        } else {
            fprintf(stderr, "[E::%s] invalid GFA tag (Regexp: [A-Za-z][A-Za-z0-9]:[A|i|f|Z|B]): %s\n", __func__, ec_tag);
            return 1;
        }
    }

    if (kc_tag != 0) {
        if(is_valid_gfa_tag(kc_tag)) {
            memcpy(TAG_SBP_COV, kc_tag, 4);
        } else {
            fprintf(stderr, "[E::%s] invalid GFA tag (Regexp: [A-Za-z][A-Za-z0-9]:[A|i|f|Z|B]): %s\n", __func__, kc_tag);
            return 1;
        }
    }

    if (sc_tag != 0) {
        if(is_valid_gfa_tag(sc_tag)) {
            memcpy(TAG_SEQ_COV, sc_tag, 4);
        } else {
            fprintf(stderr, "[E::%s] invalid GFA tag (Regexp: [A-Za-z][A-Za-z0-9]:[A|i|f|Z|B]): %s\n", __func__, sc_tag);
            return 1;
        }
    }

    if (out_s < 0) out_s = 0;
    
    ret = pathfinder(argv[opt.ind], mito_annot, pltd_annot, min_len, ext_p, ext_m, max_copy, max_path, 
            max_eval, min_score, min_cf, seq_cf, no_trn, no_rrn, do_graph_clean, bubble_size, tip_size, weak_cross,
            out_s, out_pref, VERBOSE);
    
    if (ret) {
        fprintf(stderr, "[E::%s] failed to analysis the GFA file\n", __func__);
        exit(EXIT_FAILURE);
    }

    if (fflush(stdout) == EOF) {
        fprintf(stderr, "[E::%s] failed to write the results\n", __func__);
        exit(EXIT_FAILURE);
    }

    if (VERBOSE >= 0) {
        fprintf(stderr, "[M::%s] Version: %s\n", __func__, PATHFINDER_VERSION);
        fprintf(stderr, "[M::%s] CMD:", __func__);
        int i;
        for (i = 0; i < argc; ++i)
            fprintf(stderr, " %s", argv[i]);
        fprintf(stderr, "\n[M::%s] Real time: %.3f sec; CPU: %.3f sec; Peak RSS: %.3f GB\n", __func__, realtime() - realtime0, cputime(), peakrss() / 1024.0 / 1024.0 / 1024.0);
    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %r13
movl %edi, %ebp
callq 0x2d39b
movq 0x33170(%rip), %rax     # 0x3aff8
movq (%rax), %rax
movq %rax, 0xd0(%rsp)
movslq %ebp, %r12
leal -0x1(%r12), %eax
movl %eax, 0x24(%rsp)
movl %r12d, %eax
negl %eax
movq %rax, 0x100(%rsp)
movsd 0x281b4(%rip), %xmm0    # 0x30068
movsd %xmm0, 0x50(%rsp)
movsd 0x281ae(%rip), %xmm0    # 0x30070
movsd %xmm0, 0x60(%rsp)
movsd 0x281a8(%rip), %xmm0    # 0x30078
movsd %xmm0, 0x80(%rsp)
movsd 0x2819f(%rip), %xmm0    # 0x30080
movsd %xmm0, 0x68(%rsp)
movsd 0x28199(%rip), %xmm0    # 0x30088
movsd %xmm0, 0x70(%rsp)
movl $0x186a0, %eax          # imm = 0x186A0
movq %rax, 0x48(%rsp)
movl $0x3, %eax
movq %rax, 0x78(%rsp)
movl $0x2710, 0x20(%rsp)     # imm = 0x2710
leaq 0x2830f(%rip), %rax     # 0x30227
movq %rax, 0x58(%rsp)
movl $0xf4240, %eax          # imm = 0xF4240
movq %rax, 0xa0(%rsp)
movl $0xa, %eax
movq %rax, 0x88(%rsp)
movl $0xffffffff, 0x8(%rsp)  # imm = 0xFFFFFFFF
movl $0x1, %r9d
xorl %r10d, %r10d
movq $0x0, (%rsp)
movl $0x0, 0xc(%rsp)
movq $0x0, 0xc8(%rsp)
movq $0x0, 0x38(%rsp)
movq $0x0, 0xc0(%rsp)
movq $0x0, 0xb8(%rsp)
movq $0x0, 0xb0(%rsp)
movl $0x1, %eax
movl $0x1, %ecx
movq %rcx, 0x30(%rsp)
movl $0x2710, %ecx           # imm = 0x2710
movq %rcx, 0x40(%rsp)
movl $0x1, %ecx
movq %rcx, 0xa8(%rsp)
movq %rbp, 0xf0(%rsp)
movq %r13, 0x90(%rsp)
movq %r12, 0x18(%rsp)
movl %eax, %ebx
cmpl %ebp, %r9d
setl %al
jge 0x8025
movslq %r9d, %rcx
leal (%r10,%rbp), %edx
subl %r9d, %edx
incq %rcx
movq 0x100(%rsp), %rax
leal (%rax,%r9), %edi
movb $0x1, %al
xorl %esi, %esi
movq -0x8(%r13,%rcx,8), %r8
cmpb $0x2d, (%r8)
jne 0x8005
cmpb $0x0, 0x1(%r8)
jne 0x801f
cmpq %r12, %rcx
setl %al
decl %esi
incq %rcx
cmpl %esi, %edi
jne 0x7ff3
movl %edx, %r10d
movl %ebp, %r9d
movl %ebp, %r15d
jmp 0x8028
subl %esi, %r10d
subl %esi, %r9d
movl %r9d, %r15d
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
testb $0x1, %al
je 0x8332
movslq %r15d, %r12
movq (%r13,%r12,8), %r8
cmpb $0x2d, (%r8)
jne 0x809e
movzbl 0x1(%r8), %eax
testl %eax, %eax
je 0x809e
cmpl $0x2d, %eax
jne 0x80aa
cmpb $0x0, 0x2(%r8)
je 0x8207
movq %r12, 0xd8(%rsp)
movq %r9, 0x10(%rsp)
leaq 0x2(%r8), %r12
addq $0x3, %r8
xorl %r14d, %r14d
movabsq $0x100000000, %rax      # imm = 0x100000000
movzbl -0x1(%r8), %r13d
testl %r13d, %r13d
je 0x8134
cmpl $0x3d, %r13d
je 0x8134
addq %rax, %r14
incq %r8
jmp 0x807e
xorl %edi, %edi
movq 0x18(%rsp), %r12
jmp 0x8334
movq %r15, %rbp
movq %rbx, %r14
movq %r9, %rbx
movq %r10, %r15
movq (%rsp), %rax
cmpl $0x1, %eax
adcl $0x0, %eax
cltq
movq %r8, 0x98(%rsp)
movsbl (%r8,%rax), %esi
incq %rax
movq %rax, (%rsp)
movl $0x1b, %edx
leaq 0x2812a(%rip), %rdi     # 0x3020c
movl %esi, 0x10(%rsp)
callq 0x3250
testq %rax, %rax
je 0x8238
cmpb $0x3a, 0x1(%rax)
movq %r15, %r10
movq %rbx, %r9
jne 0x827a
movq (%rsp), %rax
movq 0x98(%rsp), %rdi
cmpb $0x0, (%rdi,%rax)
movq %r14, %rbx
je 0x861e
addq %rax, %rdi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, (%rsp)
movl 0x10(%rsp), %eax
movl %eax, %ecx
jmp 0x8285
movq %r15, 0x28(%rsp)
movq %r8, 0x98(%rsp)
movq %rbx, 0xe0(%rsp)
movq %r10, 0xe8(%rsp)
sarq $0x20, %r14
xorl %r15d, %r15d
leaq 0x32831(%rip), %rbx     # 0x3a990
leaq 0x2919d(%rip), %rsi     # 0x31303
xorl %ebp, %ebp
movq %r12, %rdi
movq %r14, %rdx
callq 0x30a0
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
cmoveq %rbx, %r15
addl %ecx, %ebp
movq 0x10(%rbx), %rsi
addq $0x10, %rbx
testq %rsi, %rsi
jne 0x8168
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, (%rsp)
cmpl $0x1, %ebp
jne 0x8247
movl 0xc(%r15), %edx
cmpb $0x3d, %r13b
movl $0x0, %eax
movq 0x98(%rsp), %rdi
cmovneq %rax, %rdi
testb %r13b, %r13b
movq 0xe8(%rsp), %r10
movq 0x10(%rsp), %r9
movq 0xe0(%rsp), %rbx
movq 0xd8(%rsp), %r12
jne 0x8648
cmpl $0x1, 0x8(%r15)
movq 0x90(%rsp), %r13
jne 0x8644
movl $0x3a, %ecx
movq 0x28(%rsp), %rbp
cmpl 0x24(%rsp), %ebp
jl 0x8628
jmp 0x8285
testl %r10d, %r10d
jle 0x8318
movl %r10d, %edx
leaq (,%r12,8), %rsi
addq %r13, %rsi
xorl %eax, %eax
movq -0x8(%rsi), %rdi
movq %rdi, (%rsi)
addq $-0x8, %rsi
incq %rax
cmpq %rax, %rdx
jne 0x8220
jmp 0x831a
movl $0x3f, %ecx
xorl %edi, %edi
movq %r15, %r10
movq %rbx, %r9
jmp 0x8282
movl $0x3f, %ecx
xorl %edi, %edi
movq 0x90(%rsp), %r13
movq 0xe8(%rsp), %r10
movq 0x10(%rsp), %r9
movq 0xe0(%rsp), %rbx
movq 0x28(%rsp), %rbp
movq 0xd8(%rsp), %r12
jmp 0x8285
xorl %edi, %edi
movl 0x10(%rsp), %eax
movl %eax, %ecx
movq %r14, %rbx
movq (%rsp), %rdx
testl %edx, %edx
js 0x82ad
movslq %r9d, %rax
movq (%r13,%rax,8), %rax
movl %edx, %edx
cmpb $0x0, (%rax,%rdx)
je 0x82ad
movl %r9d, %r15d
movq 0xf0(%rsp), %rbp
jmp 0x80a0
leal 0x1(%r9), %eax
testl %r10d, %r10d
setle %dl
cmpl %r9d, %ebp
setg %sil
movq $0x0, (%rsp)
orb %dl, %sil
movq 0xf0(%rsp), %rbp
jne 0x830d
movl %r10d, %edx
leaq (,%r12,8), %rsi
addq %r13, %rsi
negq %rdx
movq (%r13,%r12,8), %r11
xorl %r8d, %r8d
movq -0x8(%rsi,%r8,8), %r9
movq %r9, (%rsi,%r8,8)
decq %r8
cmpq %r8, %rdx
jne 0x82ec
movq %r11, (%rsi,%r8,8)
incq %r12
addq $0x8, %rsi
cmpl %r12d, %eax
jne 0x82e4
movl %eax, %r9d
movl %eax, %r15d
jmp 0x80a0
xorl %eax, %eax
movq 0x18(%rsp), %r12
movl %r15d, %edx
subl %eax, %edx
movslq %edx, %rax
movq %r8, (%r13,%rax,8)
incl %r15d
movl %r15d, %r9d
xorl %edi, %edi
testl %ecx, %ecx
js 0x8671
cmpl $0x62, %ecx
jg 0x8377
cmpl $0x55, %ecx
jg 0x83e7
movq %r10, %r15
cmpl $0x4e, %ecx
jne 0x83f7
movq %rbx, %r14
movq %r9, %rbx
callq 0x34a0
movq %rbx, %r9
movq %rax, 0xa0(%rsp)
movl %r14d, %eax
movq %r15, %r10
jmp 0x7fcc
leal -0x63(%rcx), %eax
cmpl $0x13, %eax
jbe 0x83b3
addl $0xfffffed3, %ecx       # imm = 0xFFFFFED3
movl %ebx, %eax
cmpl $0xb, %ecx
ja 0x7fcc
xorl %eax, %eax
leaq 0x27d4f(%rip), %rdx     # 0x300e8
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
incl 0xc(%rsp)
movl $0x0, 0x8(%rsp)
jmp 0x85f6
leaq 0x27cde(%rip), %rcx     # 0x30098
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r10, %r15
movq %rbx, %r14
movq %r9, %rbx
callq 0x34a0
movq %rbx, %r9
movq %r15, %r10
movq %rax, 0x88(%rsp)
movl %r14d, %eax
jmp 0x7fcc
movl %ebx, %eax
cmpl $0x56, %ecx
jne 0x7fcc
jmp 0x8ad2
cmpl $0x3a, %ecx
je 0x8b14
movl %ebx, %eax
cmpl $0x3f, %ecx
movq %r15, %r10
jne 0x7fcc
jmp 0x8b2f
movq %rdi, 0x58(%rsp)
jmp 0x85f6
movq %r10, %r15
movq %rbx, %r14
movq %r9, %rbx
callq 0x34a0
movq %rbx, %r9
movq %r15, %r10
movl %eax, 0x20(%rsp)
movl %r14d, %eax
jmp 0x7fcc
movq %r10, %r15
movq %rbx, %r14
movq %r9, %rbx
callq 0x3100
movq %rbx, %r9
movq %r15, %r10
movsd %xmm0, 0x70(%rsp)
movl %r14d, %eax
jmp 0x7fcc
movq %r10, %r15
movq %rbx, %r14
movq %r9, %rbx
callq 0x3100
movq %rbx, %r9
movq %r15, %r10
movsd %xmm0, 0x60(%rsp)
movl %r14d, %eax
jmp 0x7fcc
movq 0x32b50(%rip), %rax     # 0x3afd8
movq (%rax), %rax
movq %rax, 0xd0(%rsp)
jmp 0x85f6
movq %r9, 0x10(%rsp)
movq %r10, %r15
leaq 0xf8(%rsp), %rsi
movl $0xa, %edx
callq 0x3300
movq %rax, 0x78(%rsp)
movq 0xf8(%rsp), %rdi
cmpb $0x2c, (%rdi)
jne 0x84de
incq %rdi
leaq 0xf8(%rsp), %rsi
movl $0xa, %edx
callq 0x3300
movq %rax, 0x30(%rsp)
movl %ebx, %eax
movq %r15, %r10
movq 0x10(%rsp), %r9
jmp 0x7fcc
movq %rdi, 0xc8(%rsp)
jmp 0x85f6
movq %r10, %r15
movq %rbx, %r14
movq %r9, %rbx
callq 0x3100
movq %rbx, %r9
movq %r15, %r10
movsd %xmm0, 0x68(%rsp)
movl %r14d, %eax
jmp 0x7fcc
movq %r10, %r15
movq %rbx, %r14
movq %r9, %rbx
callq 0x3100
movq %rbx, %r9
movq %r15, %r10
movsd %xmm0, 0x80(%rsp)
movl %r14d, %eax
jmp 0x7fcc
movq %rdi, 0x38(%rsp)
jmp 0x85f6
movq %r10, %r15
movq %rbx, %r14
movq %r9, %rbx
callq 0x34a0
movq %rbx, %r9
movq %r15, %r10
movl %eax, 0x32da7(%rip)     # 0x3b30c
movl %r14d, %eax
jmp 0x7fcc
movq %rdi, 0xc0(%rsp)
jmp 0x85f6
movq %r10, %r15
movq %rbx, %r14
movq %r9, %rbx
callq 0x3100
movq %rbx, %r9
movq %r15, %r10
movsd %xmm0, 0x50(%rsp)
movl %r14d, %eax
jmp 0x7fcc
incl 0xc(%rsp)
movl $0x1, 0x8(%rsp)
jmp 0x85f6
incl 0xc(%rsp)
movl $0x2, 0x8(%rsp)
jmp 0x85f6
movq %r10, %r15
movq %rbx, %r14
movq %r9, %rbx
callq 0x34a0
movq %rbx, %r9
movq %r15, %r10
movq %rax, 0x48(%rsp)
movl %r14d, %eax
jmp 0x7fcc
movq %rdi, 0xb8(%rsp)
jmp 0x85f6
movq %rdi, 0xb0(%rsp)
jmp 0x85f6
movq $0x0, 0xa8(%rsp)
movl %ebx, %eax
jmp 0x7fcc
movq %r10, %r15
movq %rbx, %r14
movq %r9, %rbx
callq 0x34a0
movq %rbx, %r9
movq %r15, %r10
movq %rax, 0x40(%rsp)
movl %r14d, %eax
jmp 0x7fcc
cmpl 0x24(%rsp), %ebp
movl 0x10(%rsp), %edx
jge 0x865c
leal 0x1(%rbp), %r9d
movslq %ebp, %rax
movq 0x8(%r13,%rax,8), %rdi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, (%rsp)
movl %edx, %ecx
jmp 0x8285
movl %edx, %ecx
jmp 0x8652
movl %edx, %ecx
movq 0x90(%rsp), %r13
movq 0x28(%rsp), %rbp
jmp 0x8285
movl $0x3a, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, (%rsp)
xorl %edi, %edi
jmp 0x8285
subl %r10d, %r15d
cmpl %ebp, %r15d
movq 0xd0(%rsp), %r14
je 0x87fc
movq 0x3294c(%rip), %rax     # 0x3afd8
cmpq (%rax), %r14
je 0x87fc
cmpl %ebp, %r15d
jge 0x8aff
cmpl $0x2, 0xc(%rsp)
jge 0x8b06
movq 0xc8(%rsp), %r14
movq %r14, %rax
orq 0x38(%rsp), %rax
je 0x8b0d
movq 0xc0(%rsp), %r12
testq %r12, %r12
je 0x86e9
movq %r12, %rdi
callq 0x20095
testl %eax, %eax
je 0x8ae2
movl (%r12), %eax
leaq 0x32c51(%rip), %rcx     # 0x3b338
movl %eax, (%rcx)
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x8713
movq %rdi, %r12
callq 0x20095
testl %eax, %eax
je 0x8ae2
movl (%r12), %eax
leaq 0x32c2f(%rip), %rcx     # 0x3b340
movl %eax, (%rcx)
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x873d
movq %rdi, %r12
callq 0x20095
testl %eax, %eax
je 0x8ae2
movl (%r12), %eax
leaq 0x32c01(%rip), %rcx     # 0x3b33c
movl %eax, (%rcx)
xorl %eax, %eax
movl 0x8(%rsp), %ecx
testl %ecx, %ecx
cmovgl %ecx, %eax
movslq %r15d, %rcx
movq (%r13,%rcx,8), %rdi
movl 0x32bb5(%rip), %r10d    # 0x3b30c
movq %r14, %rsi
movq 0x38(%rsp), %rdx
movl 0x20(%rsp), %ecx
movq 0x78(%rsp), %r8
movq 0x30(%rsp), %r9
movsd 0x70(%rsp), %xmm0
movsd 0x68(%rsp), %xmm1
movsd 0x80(%rsp), %xmm2
movsd 0x60(%rsp), %xmm3
movsd 0x50(%rsp), %xmm4
pushq %r10
pushq 0x60(%rsp)
pushq %rax
pushq 0x58(%rsp)
pushq 0x68(%rsp)
pushq 0xd0(%rsp)
pushq $0x1
pushq %rbx
pushq 0xe0(%rsp)
pushq 0xd0(%rsp)
callq 0x5d28
addq $0x50, %rsp
testl %eax, %eax
jne 0x8b6f
movq 0x3280b(%rip), %rax     # 0x3afd8
movq (%rax), %rdi
callq 0x3380
cmpl $-0x1, %eax
je 0x8b74
xorl %ebx, %ebx
cmpl $0x0, 0x32b25(%rip)     # 0x3b30c
js 0x8b5b
movl %ebp, %edi
movq %r13, %rsi
callq 0x39b1
jmp 0x8b5b
movl $0xa, %edi
movq %r14, %rsi
callq 0x3240
leaq 0x27a65(%rip), %rdi     # 0x30275
movl $0x2e, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x34f0
leaq 0x27a7b(%rip), %rdi     # 0x302a4
movl $0x9, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x34f0
leaq 0x27a6c(%rip), %rdi     # 0x302ae
movl $0x10, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x34f0
leaq 0x27a64(%rip), %rdi     # 0x302bf
movl $0x47, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x34f0
leaq 0x27a93(%rip), %rdi     # 0x30307
movl $0x42, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x34f0
leaq 0x27abd(%rip), %rsi     # 0x3034a
movq %r14, %rdi
movq 0x58(%rsp), %rdx
xorl %eax, %eax
callq 0x32e0
leaq 0x27add(%rip), %rsi     # 0x30380
movq %r14, %rdi
movsd 0x60(%rsp), %xmm0
movb $0x1, %al
callq 0x32e0
leaq 0x27b24(%rip), %rdi     # 0x303de
movl $0x43, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x34f0
leaq 0x27b4f(%rip), %rdi     # 0x30422
movl $0x43, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x34f0
leaq 0x27b7a(%rip), %rdi     # 0x30466
movl $0x46, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x34f0
movl 0x32a08(%rip), %edx     # 0x3b30c
leaq 0x27ba2(%rip), %rsi     # 0x304ad
movq %r14, %rdi
xorl %eax, %eax
callq 0x32e0
leaq 0x27bbe(%rip), %rdi     # 0x304da
movl $0x2d, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x34f0
leaq 0x27bd3(%rip), %rdi     # 0x30508
movl $0x12, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x34f0
leaq 0x27bcd(%rip), %rsi     # 0x3051b
movq %r14, %rdi
movsd 0x68(%rsp), %xmm0
movb $0x1, %al
callq 0x32e0
leaq 0x27bff(%rip), %rsi     # 0x30564
movq %r14, %rdi
movsd 0x70(%rsp), %xmm0
movb $0x1, %al
callq 0x32e0
leaq 0x27c28(%rip), %rsi     # 0x305a4
movq %r14, %rdi
movq 0x78(%rsp), %rdx
movq 0x30(%rsp), %rcx
xorl %eax, %eax
callq 0x32e0
leaq 0x27c71(%rip), %rsi     # 0x30608
movq %r14, %rdi
movl 0x20(%rsp), %edx
xorl %eax, %eax
callq 0x32e0
leaq 0x27caa(%rip), %rdi     # 0x30656
movl $0x48, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x34f0
leaq 0x27cda(%rip), %rdi     # 0x3069f
movl $0x48, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x34f0
leaq 0x27d0a(%rip), %rdi     # 0x306e8
movl $0x10, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x34f0
leaq 0x27d02(%rip), %rsi     # 0x306f9
movq %r14, %rdi
movsd 0x80(%rsp), %xmm0
movb $0x1, %al
callq 0x32e0
leaq 0x27d49(%rip), %rsi     # 0x3075a
movq %r14, %rdi
movq 0x88(%rsp), %rdx
xorl %eax, %eax
callq 0x32e0
leaq 0x27d6f(%rip), %rsi     # 0x30799
movq %r14, %rdi
movq 0xa0(%rsp), %rdx
xorl %eax, %eax
callq 0x32e0
leaq 0x27d9e(%rip), %rsi     # 0x307e1
movq %r14, %rdi
movq 0x48(%rsp), %rdx
xorl %eax, %eax
callq 0x32e0
leaq 0x27dd4(%rip), %rsi     # 0x3082d
movq %r14, %rdi
movq 0x40(%rsp), %rdx
xorl %eax, %eax
callq 0x32e0
leaq 0x27e07(%rip), %rsi     # 0x30876
movq %r14, %rdi
movsd 0x50(%rsp), %xmm0
movb $0x1, %al
callq 0x32e0
leaq 0x27e49(%rip), %rdi     # 0x308cf
movl $0x38, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x34f0
movl $0xa, %edi
movq %r14, %rsi
callq 0x3240
leaq 0x27e5c(%rip), %rdi     # 0x30908
movl $0x57, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x34f0
xorl %ebx, %ebx
movq 0x32511(%rip), %rax     # 0x3afd8
cmpq (%rax), %r14
setne %bl
jmp 0x8b5b
leaq 0x27757(%rip), %rdi     # 0x30230
callq 0x30c0
xorl %ebx, %ebx
jmp 0x8b5b
movq 0x3250f(%rip), %rax     # 0x3aff8
movq (%rax), %rdi
leaq 0x27f32(%rip), %rsi     # 0x30a25
leaq 0x27758(%rip), %rdx     # 0x30252
movq %r12, %rcx
jmp 0x8b4f
callq 0x396a
jmp 0x8b56
callq 0x3ae6
jmp 0x8b56
callq 0x3ac7
jmp 0x8b56
movq 0x324dd(%rip), %rax     # 0x3aff8
movq (%rax), %rdi
movslq %r9d, %rax
movq -0x8(%r13,%rax,8), %rcx
leaq 0x2772a(%rip), %rsi     # 0x30257
jmp 0x8b48
movq 0x324c2(%rip), %rax     # 0x3aff8
movq (%rax), %rdi
movslq %r9d, %rax
movq -0x8(%r13,%rax,8), %rcx
leaq 0x276ec(%rip), %rsi     # 0x30234
leaq 0x27703(%rip), %rdx     # 0x30252
xorl %eax, %eax
callq 0x32e0
movl $0x1, %ebx
movl %ebx, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3989
callq 0x3a9f