// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/CommandLines.cpp
// Function: CommandLine_process(int, char**, hifiasm_opt_t*)
int CommandLine_process(int argc, char *argv[], hifiasm_opt_t* asm_opt)
{
    ketopt_t opt = KETOPT_INIT;

    int c;

    while ((c = ketopt(&opt, argc, argv, 1, "hvt:o:k:w:m:n:r:a:b:z:x:y:p:c:d:M:P:if:D:FN:1:2:3:4:5:l:s:O:eu:", long_options)) >= 0) {
        if (c == 'h')
        {
            Print_H(asm_opt);
            return 0;
        } 
        else if (c == 'v' || c == 300)
        {
			puts(HA_VERSION);
            return 0;
        }
		else if (c == 'f') asm_opt->bf_shift = atoi(opt.arg);
        else if (c == 't') asm_opt->thread_num = atoi(opt.arg); 
        else if (c == 'o') asm_opt->output_file_name = opt.arg;
        else if (c == 'r') asm_opt->number_of_round = atoi(opt.arg);
        else if (c == 'k') asm_opt->k_mer_length = atoi(opt.arg);
        else if (c == 'i') asm_opt->load_index_from_disk = 0; 
        else if (c == 'w') asm_opt->mz_win = atoi(opt.arg);
		else if (c == 'D') asm_opt->high_factor = atof(opt.arg);
		else if (c == 'F') asm_opt->flag |= HA_F_NO_KMER_FLT;
		else if (c == 'N') asm_opt->max_n_chain = atoi(opt.arg);
        else if (c == 'a') asm_opt->clean_round = atoi(opt.arg); 
        else if (c == 'z') asm_opt->adapterLen = atoi(opt.arg);
        else if (c == 'b') asm_opt->required_read_name = opt.arg;
        else if (c == 'c') asm_opt->min_cnt = atoi(opt.arg);
        else if (c == 'd') asm_opt->mid_cnt = atoi(opt.arg);
        else if (c == '1' || c == 'P') asm_opt->fn_bin_yak[0] = opt.arg; // -P/-M reserved for backward compatibility
        else if (c == '2' || c == 'M') asm_opt->fn_bin_yak[1] = opt.arg;
        else if (c == '3') asm_opt->fn_bin_list[0] = opt.arg;
        else if (c == '4') asm_opt->fn_bin_list[1] = opt.arg;
        else if (c == '5') asm_opt->fn_bin_poy = opt.arg;
        else if (c == 'x') asm_opt->max_drop_rate = atof(opt.arg);
        else if (c == 'y') asm_opt->min_drop_rate = atof(opt.arg);
        else if (c == 'p') asm_opt->small_pop_bubble_size = atoll(opt.arg);
        else if (c == 'm') asm_opt->large_pop_bubble_size = atoll(opt.arg);
        else if (c == 'n') asm_opt->max_short_tip = atoll(opt.arg);
        else if (c == 'e') asm_opt->flag |= HA_F_BAN_ASSEMBLY;
        else if (c == 'u') {
            if(atoll(opt.arg)) {
                asm_opt->hifi_pst_join = asm_opt->ul_pst_join = 1;
            } else {
                asm_opt->hifi_pst_join = asm_opt->ul_pst_join = 0;
            }
        }
        else if (c == 301) asm_opt->flag |= HA_F_VERBOSE_GFA;
		else if (c == 302) asm_opt->flag |= HA_F_WRITE_PAF;
		else if (c == 303) asm_opt->flag |= HA_F_WRITE_EC;
		else if (c == 304) asm_opt->flag |= HA_F_SKIP_TRIOBIN;
		else if (c == 305) asm_opt->max_ov_diff_ec = atof(opt.arg);
		else if (c == 306) asm_opt->max_ov_diff_final = atof(opt.arg);
		else if (c == 307) asm_opt->extract_list = opt.arg;
		else if (c == 308) asm_opt->extract_iter = atoi(opt.arg);
        else if (c == 309)
        {
            asm_opt->hom_global_coverage = atoi(opt.arg);
            asm_opt->hom_global_coverage_set = 1;
        } 
        else if (c == 310)
        {
            char* s = NULL;
            asm_opt->recover_atg_cov_min = strtol(opt.arg, &s, 10);
			if (*s == ',') asm_opt->recover_atg_cov_max = strtol(s + 1, &s, 10);
            if(asm_opt->recover_atg_cov_min == -1 || asm_opt->recover_atg_cov_max == -1)
            {
                asm_opt->recover_atg_cov_min = asm_opt->recover_atg_cov_max = -1;
            }
        }
        ///else if (c == 311) asm_opt->flag |= HA_F_HIGH_HET;
        else if (c == 312) asm_opt->bed_inconsist_rate = atoi(opt.arg);
        else if (c == 313) asm_opt->min_hist_kmer_cnt = atoi(opt.arg);
        else if (c == 314) get_hic_enzymes(opt.arg, &(asm_opt->hic_reads[0]), 0);
        else if (c == 315) get_hic_enzymes(opt.arg, &(asm_opt->hic_reads[1]), 0);
        else if (c == 316) get_hic_enzymes(opt.arg, &(asm_opt->hic_enzymes), 1);
        else if (c == 317) asm_opt->b_low_cov = atoi(opt.arg);
        else if (c == 318) asm_opt->b_high_cov = atoi(opt.arg);
        else if (c == 319) asm_opt->m_rate = atof(opt.arg);
        else if (c == 320) asm_opt->flag -= HA_F_PARTITION, asm_opt->is_alt = 1;
        else if (c == 321) asm_opt->trio_flag_occ_thres = atoi(opt.arg);
        else if (c == 322) asm_opt->seed = atol(opt.arg);
        else if (c == 323) asm_opt->n_perturb = atoi(opt.arg);
        else if (c == 324) asm_opt->f_perturb = atof(opt.arg);
        else if (c == 325) asm_opt->polyploidy = atoi(opt.arg);
        else if (c == 326) asm_opt->n_weight = atoi(opt.arg);
        else if (c == 327) asm_opt->misjoin_len = atol(opt.arg);
        else if (c == 328) asm_opt->pur_global_coverage = atoi(opt.arg);
        else if (c == 329) asm_opt->flag |= HA_F_FAST;
        else if (c == 330) asm_opt->dp_e = atof(opt.arg);
        else if (c == 331) asm_opt->max_kmer_cnt = atol(opt.arg);
        else if (c == 332) asm_opt->hg_size = inter_gsize(opt.arg);      
        else if (c == 333) get_hic_enzymes(opt.arg, &(asm_opt->ar), 0);
        else if (c == 334) asm_opt->flag |= HA_F_USKEW;
        else if (c == 335) asm_opt->kpt_rate = atof(opt.arg);
        else if (c == 336) asm_opt->ul_error_rate = atof(opt.arg);
        else if (c == 337) asm_opt->is_dbg_het_cnt = 1;
        else if (c == 338) asm_opt->max_short_ul_tip = atol(opt.arg);
        else if (c == 339) asm_opt->is_low_het_ul = 1;
        else if (c == 340) {
            asm_opt->trans_base_rate_sec = atof(opt.arg);
            if(asm_opt->trans_base_rate_sec < 0) asm_opt->is_base_trans = 0;
        } 
        else if (c == 341) asm_opt->bin_only = 1;
        else if (c == 342) asm_opt->ul_clean_round = atol(opt.arg);
        else if (c == 343) asm_opt->prt_dbg_gfa = 1;
        else if (c == 344) asm_opt->integer_correct_round = atol(opt.arg);
        else if (c == 345) asm_opt->dbg_ovec_cal = 1;
        else if (c == 346) asm_opt->max_path_drop_rate = atof(opt.arg);
        else if (c == 347) asm_opt->min_path_drop_rate = atof(opt.arg);
        else if (c == 348) asm_opt->trio_cov_het_ovlp = 1;
        else if (c == 349) asm_opt->ul_min_base = atol(opt.arg);
        else if (c == 350) asm_opt->self_scaf = 1;
        else if (c == 351) asm_opt->self_scaf_gap_max = atol(opt.arg);
        else if (c == 352) get_hic_enzymes(opt.arg, &(asm_opt->sec_in), 0);
        else if (c == 353) asm_opt->somatic_cov = atol(opt.arg);
        else if (c == 354) asm_opt->telo_motif = opt.arg;
        else if (c == 355) asm_opt->telo_pen = atol(opt.arg);
        else if (c == 356) asm_opt->telo_drop = atol(opt.arg);
        else if (c == 357) asm_opt->telo_mic_sc = atol(opt.arg);
        else if (c == 358) asm_opt->max_contig_tip = atol(opt.arg);
        else if (c == 359) {
            asm_opt->is_ont = 1; asm_opt->max_ov_diff_ec = 0.07; asm_opt->is_sc = 1; ///asm_opt->mz_win = 37; asm_opt->k_mer_length = 37;
        } /**else if (c == 360) {
            asm_opt->is_sc = 1; 
        }**/ else if (c == 361) {
            asm_opt->chemical_cov = atol(opt.arg);
        } else if (c == 362) {
            asm_opt->chemical_flank = atol(opt.arg);
        ///pending for integration
        /**        
        } else if (c == 363) {
            asm_opt->ul_mod = atol(opt.arg); 
        **/
        } else if (c == 364) {
            asm_opt->rl_cut = atol(opt.arg);
        } else if (c == 365) {
            asm_opt->sc_cut = atol(opt.arg);
        } else if (c == 'l') {   ///0: disable purge_dup; 1: purge containment; 2: purge overlap
            asm_opt->purge_level_primary = asm_opt->purge_level_trio = atoi(opt.arg);
        }
        else if (c == 's') asm_opt->purge_simi_rate_l2 = asm_opt->purge_simi_rate_l3 = atof(opt.arg);
        else if (c == 'O') asm_opt->purge_overlap_len = atoll(opt.arg);
        else if (c == ':') 
        {
			fprintf(stderr, "[ERROR] missing option argument in \"%s\"\n", argv[opt.i - 1]);
			return 1;
		} 
        else if (c == '?') 
        {
			fprintf(stderr, "[ERROR] unknown option in \"%s\"\n", argv[opt.i - 1]);
			return 1;
		}
    }
    
    if(asm_opt->purge_level_primary > 2) asm_opt->purge_simi_thres = asm_opt->purge_simi_rate_l3;
    else asm_opt->purge_simi_thres = asm_opt->purge_simi_rate_l2;
    
    if (argc == opt.ind)
    {
        Print_H(asm_opt);
        return 0;
    }

    get_queries(argc, argv, &opt, asm_opt);

    c = ((asm_opt->ar)?(asm_opt->ul_pst_join):(asm_opt->hifi_pst_join));
    if(c) {
        if((asm_opt->flag&HA_F_BAN_POST_JOIN)) asm_opt->flag-=HA_F_BAN_POST_JOIN;
    } else {
        asm_opt->flag |= HA_F_BAN_POST_JOIN;
    }

    // fprintf(stderr, "[M::%s::] post join::%u\n", __func__, (uint32_t)(!(asm_opt->flag & HA_F_BAN_POST_JOIN)));
    // exit(1);
    if(!(asm_opt->is_ont)) {
        asm_opt->rl_cut = -1; asm_opt->sc_cut = 1;
    }

    return check_option(asm_opt);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdx, %r13
movq %rsi, %r12
movl %edi, %ebx
movups 0x1f31e9(%rip), %xmm0   # 0x2245f8
movaps %xmm0, 0x10(%rsp)
movups 0x1f31cd(%rip), %xmm0   # 0x2245e8
movaps %xmm0, (%rsp)
movslq %edi, %r14
leal -0x1(%r14), %eax
movl %eax, 0x3c(%rsp)
leaq 0x70(%rdx), %rax
movq %rax, 0x80(%rsp)
leaq 0x68(%rdx), %rax
movq %rax, 0x78(%rsp)
leaq 0x60(%rdx), %rax
movq %rax, 0x70(%rsp)
leaq 0x58(%rdx), %rax
movq %rax, 0x68(%rsp)
leaq 0x50(%rdx), %rax
movq %rax, 0x60(%rsp)
movl %r14d, %eax
negl %eax
movq %rax, 0x88(%rsp)
movq %rsi, 0x30(%rsp)
movl %edi, 0x28(%rsp)
movq %r14, 0x90(%rsp)
movq %rdx, 0x58(%rsp)
movl 0x14(%rsp), %ebp
cmpl %ebx, %ebp
setl %cl
jge 0x314ee
movslq %ebp, %rax
movl 0x1c(%rsp), %edx
incl %edx
movq 0x88(%rsp), %rcx
leaq (%rcx,%rbp), %rsi
leaq (%r12,%rax,8), %rdi
incq %rax
movb $0x1, %cl
xorl %r8d, %r8d
movq (%rdi,%r8,8), %r9
cmpb $0x2d, (%r9)
jne 0x314ba
cmpb $0x0, 0x1(%r9)
jne 0x314e8
leaq (%rax,%r8), %rcx
leal (%r8,%rbp), %r9d
incl %r9d
movl %r9d, 0x14(%rsp)
leal (%rdx,%r8), %r9d
movl %r9d, 0x1c(%rsp)
cmpq %r14, %rcx
setl %cl
incq %r8
movl %esi, %r9d
addl %r8d, %r9d
jne 0x314a9
movl %ebx, %ebp
jmp 0x314ee
addl %ebp, %r8d
movl %r8d, %ebp
movq $0x0, 0x8(%rsp)
movl $0xffffffff, 0x10(%rsp) # imm = 0xFFFFFFFF
testb $0x1, %cl
je 0x31525
movslq %ebp, %r14
movq (%r12,%r14,8), %rbx
cmpb $0x2d, (%rbx)
jne 0x31525
movzbl 0x1(%rbx), %eax
cmpl $0x2d, %eax
je 0x315d3
testl %eax, %eax
jne 0x31627
subl 0x1c(%rsp), %ebp
movl %ebp, (%rsp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl 0x28(%rsp), %ebx
testl %eax, %eax
js 0x321a4
cmpl $0x4f, %eax
movq 0x90(%rsp), %r14
jle 0x3157c
leal -0x61(%rax), %ecx
cmpl $0x19, %ecx
ja 0x31697
leaq 0x1f0b67(%rip), %rdx    # 0x2220c4
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0x104(%r13)
jmp 0x3147d
cmpl $0x45, %eax
jg 0x315ab
cmpl $0x31, %eax
je 0x316a0
cmpl $0x44, %eax
jne 0x31859
movq 0x8(%rsp), %rdi
callq 0x2260
movsd %xmm0, 0xb8(%r13)
jmp 0x3147d
cmpl $0x46, %eax
je 0x3168d
cmpl $0x4e, %eax
jne 0x31859
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0xe8(%r13)
jmp 0x3147d
cmpb $0x0, 0x2(%rbx)
je 0x31812
leaq 0x2(%rbx), %rax
movq %rax, 0x98(%rsp)
movl $0x0, 0x4(%rsp)
movl $0xffffffff, 0x18(%rsp) # imm = 0xFFFFFFFF
addq $0x3, %rbx
xorl %r12d, %r12d
movzbl -0x1(%rbx), %eax
testl %eax, %eax
je 0x316ae
cmpl $0x3d, %eax
je 0x316ae
movabsq $0x100000000, %rax      # imm = 0x100000000
addq %rax, %r12
incq %rbx
jmp 0x31600
cmpl $0x0, 0x18(%rsp)
jne 0x31636
movl $0x1, 0x18(%rsp)
movslq 0x18(%rsp), %rax
leaq 0x1(%rax), %r12
movl %r12d, 0x18(%rsp)
movsbl (%rbx,%rax), %r15d
movl %r15d, 0x4(%rsp)
movl $0x40, %edx
leaq 0x1f2c03(%rip), %rdi    # 0x22425d
movl %r15d, %esi
callq 0x21c0
testq %rax, %rax
je 0x3183e
cmpb $0x3a, 0x1(%rax)
jne 0x31844
cmpb $0x0, (%rbx,%r12)
je 0x319d5
addq %r12, %rbx
movq 0x30(%rsp), %r12
jmp 0x319f4
orb $0x2, (%r13)
jmp 0x3147d
cmpl $0x50, %eax
jne 0x3184e
movq 0x8(%rsp), %rax
movq %rax, 0x20(%r13)
jmp 0x3147d
movq 0x258b6b(%rip), %r13    # 0x28a220
testq %r13, %r13
je 0x3188d
sarq $0x20, %r12
movq $0x0, 0x50(%rsp)
leaq 0x258b4e(%rip), %r15    # 0x28a220
movq $0x0, 0x48(%rsp)
movl $0x0, 0x2c(%rsp)
movq $0x0, 0x40(%rsp)
movq 0x98(%rsp), %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x20a0
testl %eax, %eax
jne 0x31727
cmpb $0x0, (%r13,%r12)
je 0x31716
incl 0x2c(%rsp)
movq %r15, 0x50(%rsp)
jmp 0x31727
movq 0x40(%rsp), %rax
incl %eax
movq %rax, 0x40(%rsp)
movq %r15, 0x48(%rsp)
movq 0x10(%r15), %r13
addq $0x10, %r15
testq %r13, %r13
jne 0x316ec
jmp 0x318b0
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0x100(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0x128(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0x94(%r13)
jmp 0x3147d
movl $0x0, 0xf0(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0x7c(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0xac(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rax
movq %rax, 0x10(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rax
movq %rax, 0x18(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0x12c(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0xf8(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0x80(%r13)
jmp 0x3147d
movslq 0x1c(%rsp), %rax
testq %rax, %rax
jle 0x319bb
leaq (%r12,%r14,8), %rdx
xorl %ecx, %ecx
movq -0x8(%rdx), %rsi
movq %rsi, (%rdx)
addq $-0x8, %rdx
incq %rcx
cmpq %rcx, %rax
jne 0x31826
jmp 0x319bd
movl $0x3f, %r15d
movq 0x30(%rsp), %r12
jmp 0x31a07
cmpl $0x12c, %eax            # imm = 0x12C
je 0x32245
cmpl $0x12c, %eax            # imm = 0x12C
jle 0x31988
leal -0x12d(%rax), %ecx
cmpl $0x34, %ecx
ja 0x31ffa
leaq 0x1f08f6(%rip), %rdx    # 0x222170
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
orb $0x4, (%r13)
jmp 0x3147d
movq $0x0, 0x40(%rsp)
movl $0x0, 0x2c(%rsp)
movq $0x0, 0x48(%rsp)
movq $0x0, 0x50(%rsp)
movl $0x3f, %eax
movq 0x40(%rsp), %rsi
cmpl $0x1, %esi
jle 0x318d6
xorl %ecx, %ecx
movl $0x3f, %r15d
movq 0x58(%rsp), %r13
movq 0x30(%rsp), %r12
jmp 0x31977
testl %esi, %esi
sete %cl
movl 0x2c(%rsp), %edi
cmpl $0x2, %edi
setge %dl
testb %dl, %cl
movq 0x58(%rsp), %r13
movq 0x30(%rsp), %r12
je 0x318f7
xorl %ecx, %ecx
jmp 0x31971
cmpl $0x1, %edi
movl $0x0, %ecx
movq 0x50(%rsp), %rdx
cmovneq %rcx, %rdx
cmpl $0x1, %esi
cmoveq 0x48(%rsp), %rdx
movb $0x1, %cl
testq %rdx, %rdx
je 0x31971
movl 0xc(%rdx), %r15d
movl %r15d, 0x4(%rsp)
movq %rdx, %rdi
leaq 0x2588f5(%rip), %rsi    # 0x28a220
subq %rsi, %rdx
shrq $0x4, %rdx
movl %edx, 0x10(%rsp)
cmpb $0x3d, -0x1(%rbx)
jne 0x31941
movq %rbx, 0x8(%rsp)
cmpl $0x1, 0x8(%rdi)
jne 0x31977
cmpb $0x0, -0x1(%rbx)
jne 0x31977
cmpl 0x3c(%rsp), %ebp
movl 0x28(%rsp), %ebx
jge 0x3202b
leal 0x1(%rbp), %edx
movl %edx, 0x14(%rsp)
movslq %ebp, %rdx
movq 0x8(%r12,%rdx,8), %rdx
movq %rdx, 0x8(%rsp)
jmp 0x3197b
movl $0x3f, %r15d
movl 0x28(%rsp), %ebx
testb %cl, %cl
je 0x31535
jmp 0x31a0b
cmpl $0x6c, %eax
jg 0x31a86
leal -0x32(%rax), %ecx
cmpl $0x3, %ecx
ja 0x31ab8
leaq 0x1f0788(%rip), %rdx    # 0x22212c
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
jmpq *%rax
movq 0x8(%rsp), %rax
movq %rax, 0x30(%r13)
jmp 0x3147d
xorl %ecx, %ecx
movl %ebp, %edx
subl %ecx, %edx
movslq %edx, %rcx
movq %rbx, (%r12,%rcx,8)
incl %ebp
movl %ebp, 0x14(%rsp)
subl %eax, %ebp
jmp 0x31529
movl $0x3a, %eax
cmpl 0x3c(%rsp), %ebp
movq 0x30(%rsp), %r12
jge 0x319fc
leal 0x1(%rbp), %eax
movl %eax, 0x14(%rsp)
movslq %ebp, %rax
movq 0x8(%r12,%rax,8), %rbx
movq %rbx, 0x8(%rsp)
movl %r15d, %eax
movl $0xffffffff, 0x18(%rsp) # imm = 0xFFFFFFFF
movl %eax, %r15d
movl 0x28(%rsp), %ebx
movslq 0x18(%rsp), %rax
testq %rax, %rax
js 0x31a24
movslq 0x14(%rsp), %rcx
movq (%r12,%rcx,8), %rcx
cmpb $0x0, (%rcx,%rax)
jne 0x31a73
movl 0x14(%rsp), %edx
leal 0x1(%rdx), %eax
movl %eax, 0x14(%rsp)
movl $0x0, 0x18(%rsp)
movslq 0x1c(%rsp), %rcx
testq %rcx, %rcx
jle 0x31a73
cmpl %edx, %ebp
jg 0x31a73
leaq (%r12,%r14,8), %rdx
negq %rcx
movq (%r12,%r14,8), %rsi
xorl %edi, %edi
movq -0x8(%rdx,%rdi,8), %r8
movq %r8, (%rdx,%rdi,8)
decq %rdi
cmpq %rdi, %rcx
jne 0x31a52
movq %rsi, (%rdx,%rdi,8)
incq %r14
addq $0x8, %rdx
cmpl %r14d, %eax
jne 0x31a4c
movl 0x14(%rsp), %eax
subl 0x1c(%rsp), %eax
movl %eax, (%rsp)
movl %r15d, %eax
jmp 0x31535
leal -0x6d(%rax), %ecx
cmpl $0xc, %ecx
ja 0x31ffa
leaq 0x1f06a3(%rip), %rdx    # 0x22213c
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq 0x8(%rsp), %rdi
callq 0x2140
movq %rax, 0x188(%r13)
jmp 0x3147d
cmpl $0x4d, %eax
je 0x31ad0
cmpl $0x65, %eax
jne 0x31ffa
orb $0x2, 0x1(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rax
movq %rax, 0x28(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2140
movq %rax, 0x180(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2260
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x15c(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2140
movl %eax, 0x11c(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2140
testq %rax, %rax
je 0x32036
movw $0x101, 0x25d(%r13)     # imm = 0x101
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2260
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x160(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2230
movq %rax, 0x280(%r13)
jmp 0x3147d
movb $0x1, 0x25c(%r13)
jmp 0x3147d
movl $0x1, 0x254(%r13)
jmp 0x3147d
movb $0x1, 0x248(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2260
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x174(%r13)
xorps %xmm1, %xmm1
ucomiss %xmm0, %xmm1
jbe 0x3147d
movb $0x0, 0x24a(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2260
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x178(%r13)
jmp 0x3147d
movb $0x1, 0x264(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2230
movl %eax, 0x260(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2260
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x17c(%r13)
jmp 0x3147d
movq $0x1, 0x220(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
movq 0x78(%rsp), %rsi
jmp 0x31fd2
movb $0x1, 0x24e(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0x1bc(%r13)
jmp 0x3147d
orb $0x10, 0x1(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0x1d0(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2260
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x208(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0xd8(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0x1c0(%r13)
jmp 0x3147d
movb $0x1, 0x249(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2260
movsd %xmm0, 0x228(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0x1e0(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2260
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x1fc(%r13)
jmp 0x3147d
orb $0x20, 0x1(%r13)
jmp 0x3147d
addl $0xfffff800, (%r13)     # imm = 0xFFFFF800
movl $0x1, 0x1e4(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
movq 0x70(%rsp), %rsi
movl $0x1, %edx
callq 0x31126
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0xdc(%r13)
jmp 0x3147d
leaq 0xa0(%rsp), %r15
movq $0x0, (%r15)
movq 0x8(%rsp), %rdi
movq %r15, %rsi
movl $0xa, %edx
callq 0x22a0
movl %eax, 0x13c(%r13)
movq (%r15), %rdi
cmpb $0x2c, (%rdi)
jne 0x31dcd
incq %rdi
leaq 0xa0(%rsp), %rsi
movl $0xa, %edx
callq 0x22a0
movl %eax, 0x140(%r13)
cmpl $-0x1, 0x13c(%r13)
je 0x31de5
cmpl $-0x1, 0x140(%r13)
jne 0x3147d
movq $-0x1, 0x13c(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0x150(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0xec(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
movq 0x60(%rsp), %rsi
jmp 0x31fd2
orb $0x10, (%r13)
jmp 0x3147d
orb $0x20, (%r13)
jmp 0x3147d
orb $0x8, (%r13)
jmp 0x3147d
movq 0x8(%rsp), %rax
movq %rax, 0x48(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2260
movsd %xmm0, 0xc8(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0x78(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2260
movsd %xmm0, 0xc0(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2230
movl %eax, 0x250(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2230
movq %rax, 0x1e8(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2230
movl %eax, 0x120(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2260
movsd %xmm0, 0xe0(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2230
movl %eax, 0xb0(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
movq 0x68(%rsp), %rsi
jmp 0x31fd2
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0x144(%r13)
movl $0x1, 0x148(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x3130d
movq %rax, 0x200(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2230
movl %eax, 0x258(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0x14c(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2230
movq %rax, 0x1c8(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2260
movsd %xmm0, 0x1d8(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2230
movq %rax, 0x278(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
movq 0x80(%rsp), %rsi
xorl %edx, %edx
callq 0x31126
jmp 0x3147d
movq 0x8(%rsp), %rax
movq %rax, 0x38(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rax
movq %rax, 0x40(%r13)
jmp 0x3147d
cmpl $0x6b, %eax
jle 0x32045
leal -0x162(%rax), %ecx
cmpl $0xb, %ecx
ja 0x32060
leaq 0x1f0233(%rip), %rdx    # 0x222244
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
jmpq *%rax
movq 0x8(%rsp), %rax
movq %rax, 0x288(%r13)
jmp 0x3147d
movl $0x3a, %r15d
jmp 0x3197b
movw $0x0, 0x25d(%r13)
jmp 0x3147d
cmpl $0x4f, %eax
jne 0x32097
movq 0x8(%rsp), %rdi
callq 0x2140
movl %eax, 0x138(%r13)
jmp 0x3147d
cmpl $0x6c, %eax
je 0x32187
cmpl $0x73, %eax
jne 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2260
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x168(%r13)
movss %xmm0, 0x164(%r13)
jmp 0x3147d
cmpl $0x3a, %eax
je 0x3226f
cmpl $0x3f, %eax
jne 0x3147d
jmp 0x3228c
movq 0x8(%rsp), %rdi
callq 0x2230
movl %eax, 0x124(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2230
movq %rax, 0x2d0(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2230
movq %rax, 0x298(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2230
movq %rax, 0x2a0(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2230
movq %rax, 0x2c0(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2230
movq %rax, 0x290(%r13)
jmp 0x3147d
movl $0x1, %eax
movq %rax, 0x2a8(%r13)
movabsq $0x3fb1eb851eb851ec, %rcx # imm = 0x3FB1EB851EB851EC
movq %rcx, 0xc0(%r13)
movq %rax, 0x2b0(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2230
movq %rax, 0x2b8(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2230
movq %rax, 0x2c8(%r13)
jmp 0x3147d
movq 0x8(%rsp), %rdi
callq 0x2330
movl %eax, 0x134(%r13)
movl %eax, 0x130(%r13)
jmp 0x3147d
xorl %eax, %eax
cmpl $0x3, 0x130(%r13)
setge %al
movss 0x164(%r13,%rax,4), %xmm0
movss %xmm0, 0x16c(%r13)
cmpl %ebx, (%rsp)
je 0x32253
movq %rsp, %rdx
movl %ebx, %edi
movq %r12, %rsi
movq %r13, %rcx
callq 0x30c12
cmpq $0x1, 0x68(%r13)
movq %r13, %rax
sbbq $0x0, %rax
cmpb $0x0, 0x25e(%rax)
movl (%r13), %eax
je 0x32203
btl $0x8, %eax
jae 0x3220c
addl $0xffffff00, %eax       # imm = 0xFFFFFF00
jmp 0x32208
orl $0x100, %eax            # imm = 0x100
movl %eax, (%r13)
cmpq $0x0, 0x2a8(%r13)
jne 0x3222c
movq $-0x1, 0x2c8(%r13)
movq $0x1, 0x2d0(%r13)
movq %r13, %rdi
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x30532
leaq 0x1f2051(%rip), %rdi    # 0x22429d
callq 0x2310
jmp 0x3225b
movq %r13, %rdi
callq 0x2430
xorl %eax, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x257d6a(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
movslq 0x14(%rsp), %rax
movq -0x8(%r12,%rax,8), %rdx
leaq 0x1f201f(%rip), %rsi    # 0x2242a9
jmp 0x322a7
movq 0x257d4d(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
movslq 0x14(%rsp), %rax
movq -0x8(%r12,%rax,8), %rdx
leaq 0x1f202b(%rip), %rsi    # 0x2242d2
xorl %eax, %eax
callq 0x22b0
movl $0x1, %eax
jmp 0x3225d