// File: /workspace/github_cpp_makefile_star2_O3/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 $0xd8, %rsp
movq %rdx, %rbx
movq %rsi, %r10
movups 0x1fff1a(%rip), %xmm0   # 0x230608
movaps %xmm0, 0x40(%rsp)
movups 0x1ffefe(%rip), %xmm0   # 0x2305f8
movaps %xmm0, 0x30(%rsp)
cmpl $0x2, %edi
jl 0x317e9
movabsq $0x100000000, %r11      # imm = 0x100000000
leal -0x1(%rdi), %eax
movl %eax, 0x6c(%rsp)
leaq 0x70(%rbx), %rax
movq %rax, 0xb0(%rsp)
leaq 0x68(%rbx), %rax
movq %rax, 0xa8(%rsp)
leaq 0x60(%rbx), %rax
movq %rax, 0xa0(%rsp)
leaq 0x58(%rbx), %rax
movq %rax, 0x98(%rsp)
movq %rbx, (%rsp)
leaq 0x50(%rbx), %rax
movq %rax, 0x90(%rsp)
movl 0x4c(%rsp), %r9d
movl 0x44(%rsp), %r13d
movl 0x48(%rsp), %r8d
movl %edi, %ecx
negl %ecx
movl $0x1, %edx
movq %rcx, 0xb8(%rsp)
movq %rdx, 0x28(%rsp)
movslq %edx, %rbx
movq %rbx, %r12
shlq $0x20, %r12
movl %ebx, %eax
addq %rax, %rcx
leaq (%r10,%rbx,8), %rdx
movq %rdx, %rbp
xorl %r14d, %r14d
movl %r9d, %r15d
movq %rbx, 0xc0(%rsp)
movq (%rdx,%r14,8), %rsi
cmpb $0x2d, (%rsi)
jne 0x307b1
cmpb $0x0, 0x1(%rsi)
jne 0x307d0
incq %rbx
incl %r15d
incq %r14
addq %r11, %r12
addq $0x8, %rbp
movl %ecx, %esi
movl %ebx, %r13d
addl %r14d, %esi
jne 0x307a2
jmp 0x317f3
movl %r13d, 0x44(%rsp)
movl %r9d, %ecx
leaq (%rcx,%r14), %rdx
movq %rdx, 0x8(%rsp)
movl %edx, 0x4c(%rsp)
movq $0x0, 0x38(%rsp)
movl $0xffffffff, 0x40(%rsp) # imm = 0xFFFFFFFF
sarq $0x1d, %r12
movq (%r10,%r12), %rsi
cmpb $0x2d, (%rsi)
jne 0x318d6
leaq (%rax,%r14), %rdx
movq %rdx, 0x58(%rsp)
movzbl 0x1(%rsi), %edx
cmpl $0x2d, %edx
movq %rdi, 0x80(%rsp)
je 0x308c3
testl %edx, %edx
je 0x318d6
movl %r9d, 0x10(%rsp)
movq %r10, 0x20(%rsp)
cmpl $0x1, %r8d
adcl $0x0, %r8d
movl %r8d, 0x60(%rsp)
movslq %r8d, %rax
leaq 0x1(%rax), %rbx
movl %ebx, 0x48(%rsp)
movq %rsi, 0x70(%rsp)
movsbl (%rsi,%rax), %esi
movl %esi, 0x34(%rsp)
movl $0x40, %edx
leaq 0x1ffa05(%rip), %rdi    # 0x23026d
movq %rsi, 0x18(%rsp)
callq 0x21c0
testq %rax, %rax
je 0x30a25
cmpb $0x3a, 0x1(%rax)
movq 0x58(%rsp), %r8
jne 0x30a45
movq 0x70(%rsp), %rdi
cmpb $0x0, (%rdi,%rbx)
movq 0x20(%rsp), %r10
movabsq $0x100000000, %r11      # imm = 0x100000000
movl 0x10(%rsp), %r9d
movq 0x18(%rsp), %rsi
je 0x30b1a
addq %rbx, %rdi
movq (%rsp), %rbx
movq 0x8(%rsp), %r12
jmp 0x30b41
cmpb $0x0, 0x2(%rsi)
movq %rsi, %r13
je 0x31907
leaq 0x2(%r13), %rax
movq %rax, 0xc8(%rsp)
movl $0x0, 0x34(%rsp)
addq $0x3, %r13
xorl %ecx, %ecx
movq 0x8(%rsp), %r12
movq 0x58(%rsp), %r8
movzbl -0x1(%r13), %eax
testl %eax, %eax
je 0x3090a
cmpl $0x3d, %eax
je 0x3090a
incq %r13
addq %r11, %rcx
jmp 0x308f4
movq %r13, 0x70(%rsp)
movq 0x26490a(%rip), %rsi    # 0x295220
testq %rsi, %rsi
je 0x30ae2
movl %r9d, 0x10(%rsp)
movq %r10, 0x20(%rsp)
sarq $0x20, %rcx
movq $0x0, 0x88(%rsp)
leaq 0x2648e0(%rip), %r12    # 0x295220
movq $0x0, 0x78(%rsp)
xorl %edi, %edi
movl $0x0, 0x14(%rsp)
movq %rsi, 0x60(%rsp)
movl %edi, 0x18(%rsp)
movq 0xc8(%rsp), %rdi
movq %rcx, %r13
movq %rcx, %rdx
callq 0x20a0
testl %eax, %eax
je 0x30986
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r13, %rcx
movl 0x18(%rsp), %edi
jmp 0x309b8
movq 0x60(%rsp), %rax
cmpb $0x0, (%rax,%r13)
movq %r13, %rcx
movl 0x18(%rsp), %edi
je 0x309a5
incl %edi
movq %r12, 0x88(%rsp)
jmp 0x309ae
incl 0x14(%rsp)
movq %r12, 0x78(%rsp)
movabsq $0x100000000, %r11      # imm = 0x100000000
movq 0x10(%r12), %rsi
addq $0x10, %r12
testq %rsi, %rsi
jne 0x30953
movl 0x14(%rsp), %eax
cmpl $0x2, %eax
movq 0x8(%rsp), %r12
jge 0x31978
testl %eax, %eax
sete %al
cmpl $0x2, %edi
setge %cl
testb %cl, %al
movq 0x20(%rsp), %r10
movq 0x28(%rsp), %rdx
jne 0x31985
cmpl $0x1, %edi
jne 0x30a91
cmpl $0x1, 0x14(%rsp)
movq 0x78(%rsp), %rax
cmovneq 0x88(%rsp), %rax
movl 0x10(%rsp), %r9d
movq 0x58(%rsp), %r8
movq 0x70(%rsp), %r13
jmp 0x30aac
movl $0x3f, %esi
movq 0x20(%rsp), %r10
movabsq $0x100000000, %r11      # imm = 0x100000000
movl 0x10(%rsp), %r9d
movq 0x58(%rsp), %r8
jmp 0x30a5e
movq 0x20(%rsp), %r10
movabsq $0x100000000, %r11      # imm = 0x100000000
movl 0x10(%rsp), %r9d
movq 0x18(%rsp), %rsi
cmpl $-0x2, 0x60(%rsp)
jle 0x30a86
movq (%r10,%r12), %rax
movl %ebx, %ecx
cmpb $0x0, (%rax,%rcx)
je 0x30a86
movl %ebx, %ecx
movl %r8d, %edx
xorl %edi, %edi
movq (%rsp), %rbx
movq 0x8(%rsp), %r12
jmp 0x30bd7
xorl %edi, %edi
movq (%rsp), %rbx
jmp 0x30b13
cmpl $0x1, 0x14(%rsp)
movl 0x10(%rsp), %r9d
movq 0x58(%rsp), %r8
movq 0x70(%rsp), %r13
movq 0x78(%rsp), %rax
jne 0x30ae2
testq %rax, %rax
je 0x30ae2
movl 0xc(%rax), %esi
movl %esi, 0x34(%rsp)
movq %rax, %r12
leaq 0x26475e(%rip), %rcx    # 0x295220
subq %rcx, %rax
shrq $0x4, %rax
movl %eax, 0x40(%rsp)
cmpb $0x3d, -0x1(%r13)
movq (%rsp), %rbx
jne 0x30aef
movq %r13, 0x38(%rsp)
movq %r13, %rdi
jmp 0x30af1
movl $0x3f, %esi
xorl %edi, %edi
movq (%rsp), %rbx
jmp 0x30b46
xorl %edi, %edi
cmpl $0x1, 0x8(%r12)
jne 0x30b13
cmpb $0x0, -0x1(%r13)
movq 0x8(%rsp), %r12
jne 0x30b46
cmpl %r8d, 0x6c(%rsp)
jg 0x30b33
movl $0x3a, %esi
jmp 0x30b46
movq 0x8(%rsp), %r12
jmp 0x30b46
cmpl %r8d, 0x6c(%rsp)
movq (%rsp), %rbx
movq 0x8(%rsp), %r12
movq 0x28(%rsp), %rdx
jle 0x30e21
leal (%rdx,%r14), %r8d
incl %r8d
movslq %r8d, %rax
movq (%r10,%rax,8), %rdi
movq %rdi, 0x38(%rsp)
leal 0x1(%r8), %r13d
movl %r13d, 0x44(%rsp)
movl $0x0, 0x48(%rsp)
xorl %ecx, %ecx
testl %r12d, %r12d
jle 0x30bd1
movq %rsi, 0x18(%rsp)
movq %rdi, 0x60(%rsp)
movq %r12, %rax
movl %r9d, %edi
movq 0xc0(%rsp), %rsi
addq %r14, %rsi
movl %eax, %eax
movslq %r8d, %rcx
movl %r15d, %edx
movq %rsi, %r15
negq %rdx
movq (%r10,%r15,8), %rsi
xorl %r8d, %r8d
movq -0x8(%rbp,%r8,8), %r9
movq %r9, (%rbp,%r8,8)
decq %r8
cmpq %r8, %rdx
jne 0x30b8e
movq %r15, %r8
subq %rax, %r8
movq %rsi, (%r10,%r8,8)
leaq 0x1(%r15), %rsi
addq $0x8, %rbp
cmpq %rcx, %r15
movq %rsi, %r15
jl 0x30b87
movl %r13d, %edx
movl %r13d, %r8d
xorl %ecx, %ecx
movl %edi, %r9d
movq 0x60(%rsp), %rdi
movq 0x18(%rsp), %rsi
jmp 0x30bd7
movl %r13d, %edx
movl %r13d, %r8d
subl %r9d, %r8d
movl %r8d, %eax
subl %r14d, %eax
movl %eax, 0x30(%rsp)
testl %esi, %esi
js 0x318ea
movl %ecx, %ebp
cmpl $0x4f, %esi
jle 0x30c35
leal -0x61(%rsi), %eax
cmpl $0x19, %eax
ja 0x30cac
leaq 0x1fd4ce(%rip), %rcx    # 0x22e0d4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r10, %r14
movq %rdx, %r15
callq 0x2330
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0x104(%rbx)
jmp 0x30dfe
cmpl $0x45, %esi
jg 0x30c70
cmpl $0x31, %esi
je 0x30cb5
cmpl $0x44, %esi
jne 0x30e39
movq %r10, %r14
movq %rdx, %r15
callq 0x2260
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movsd %xmm0, 0xb8(%rbx)
jmp 0x30dfe
cmpl $0x46, %esi
je 0x30ca4
cmpl $0x4e, %esi
jne 0x30e39
movq %r10, %r14
movq %rdx, %r15
callq 0x2330
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0xe8(%rbx)
jmp 0x30dfe
orb $0x2, (%rbx)
jmp 0x30dfe
cmpl $0x50, %esi
jne 0x30e2d
movq %rdi, 0x20(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2330
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0x100(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2330
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0x94(%rbx)
jmp 0x30dfe
movl $0x0, 0xf0(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2330
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0x128(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2330
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0x7c(%rbx)
jmp 0x30dfe
movq %rdi, 0x18(%rbx)
jmp 0x30dfe
movq %rdi, 0x10(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2330
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0x12c(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2330
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0xac(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2330
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0xf8(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2330
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0x80(%rbx)
movl %r12d, %r9d
movq 0x80(%rsp), %rdi
cmpl %edi, %edx
movq 0xb8(%rsp), %rcx
movl %ebp, %r8d
jl 0x30779
jmp 0x318fd
movl $0x3a, %esi
xorl %edi, %edi
jmp 0x30b46
cmpl $0x12c, %esi            # imm = 0x12C
je 0x31967
cmpl $0x12c, %esi            # imm = 0x12C
jle 0x30e65
leal -0x12d(%rsi), %eax
cmpl $0x34, %eax
ja 0x3161d
leaq 0x1fd329(%rip), %rcx    # 0x22e180
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
orb $0x4, (%rbx)
jmp 0x30dfe
cmpl $0x6c, %esi
jg 0x30e8b
leal -0x32(%rsi), %eax
cmpl $0x3, %eax
ja 0x30ece
leaq 0x1fd2c3(%rip), %rcx    # 0x22e13c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rdi, 0x30(%rbx)
jmp 0x30dfe
leal -0x6d(%rsi), %eax
cmpl $0xc, %eax
ja 0x3161d
leaq 0x1fd2ae(%rip), %rcx    # 0x22e14c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r10, %r14
movq %rdx, %r15
callq 0x2140
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movq %rax, 0x188(%rbx)
jmp 0x30dfe
cmpl $0x4d, %esi
je 0x30ee5
cmpl $0x65, %esi
jne 0x3161d
orb $0x2, 0x1(%rbx)
jmp 0x30dfe
movq %rdi, 0x28(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2140
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movq %rax, 0x180(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2260
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x15c(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2140
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0x11c(%rbx)
jmp 0x30dfe
movq %rdx, %r15
movq %r10, %r14
callq 0x2140
testq %rax, %rax
je 0x3164c
movw $0x101, 0x25d(%rbx)     # imm = 0x101
jmp 0x31655
movq %r10, %r14
movq %rdx, %r15
callq 0x2260
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x160(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2230
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movq %rax, 0x280(%rbx)
jmp 0x30dfe
movb $0x1, 0x25c(%rbx)
jmp 0x30dfe
movl $0x1, 0x254(%rbx)
jmp 0x30dfe
movb $0x1, 0x248(%rbx)
jmp 0x30dfe
movq %rdx, %r15
movq %r10, %r14
callq 0x2260
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x174(%rbx)
xorps %xmm1, %xmm1
ucomiss %xmm0, %xmm1
jbe 0x31655
movb $0x0, 0x24a(%rbx)
jmp 0x31655
movq %r10, %r14
movq %rdx, %r15
callq 0x2260
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x178(%rbx)
jmp 0x30dfe
movb $0x1, 0x264(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2230
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0x260(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2260
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x17c(%rbx)
jmp 0x30dfe
movq $0x1, 0x220(%rbx)
jmp 0x30dfe
movq 0xa8(%rsp), %rsi
jmp 0x315e9
movb $0x1, 0x24e(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2330
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0x1bc(%rbx)
jmp 0x30dfe
orb $0x10, 0x1(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2330
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0x1d0(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2260
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x208(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2330
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0xd8(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2330
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0x1c0(%rbx)
jmp 0x30dfe
movb $0x1, 0x249(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2260
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movsd %xmm0, 0x228(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2330
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0x1e0(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2260
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x1fc(%rbx)
jmp 0x30dfe
orb $0x20, 0x1(%rbx)
jmp 0x30dfe
addl $0xfffff800, (%rbx)     # imm = 0xFFFFF800
movl $0x1, 0x1e4(%rbx)
jmp 0x30dfe
movq 0xa0(%rsp), %rsi
movq %rdx, %r14
movl $0x1, %edx
jmp 0x315ee
movq %r10, %r14
leaq 0xd0(%rsp), %r15
movq $0x0, (%r15)
movq %r15, %rsi
movl $0xa, %edx
callq 0x22a0
movl %eax, 0x13c(%rbx)
movq (%r15), %rdi
cmpb $0x2c, (%rdi)
jne 0x312b9
incq %rdi
leaq 0xd0(%rsp), %rsi
movl $0xa, %edx
callq 0x22a0
movl %eax, 0x140(%rbx)
movl 0x13c(%rbx), %eax
cmpl $-0x1, %eax
je 0x312c7
cmpl $-0x1, 0x140(%rbx)
jne 0x312d2
movq $-0x1, 0x13c(%rbx)
movl %r13d, %edx
movq %r14, %r10
movabsq $0x100000000, %r11      # imm = 0x100000000
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2330
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0xdc(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2330
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0x150(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2330
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0xec(%rbx)
jmp 0x30dfe
movq 0x90(%rsp), %rsi
jmp 0x315e9
orb $0x10, (%rbx)
jmp 0x30dfe
orb $0x20, (%rbx)
jmp 0x30dfe
orb $0x8, (%rbx)
jmp 0x30dfe
movq %rdi, 0x48(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2260
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movsd %xmm0, 0xc8(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2330
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0x78(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2260
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movsd %xmm0, 0xc0(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2230
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0x250(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2230
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movq %rax, 0x1e8(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2230
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0x120(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2260
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movsd %xmm0, 0xe0(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2230
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0xb0(%rbx)
jmp 0x30dfe
movq 0x98(%rsp), %rsi
jmp 0x315e9
movq %r10, %r14
movq %rdx, %r15
callq 0x2330
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0x144(%rbx)
movl $0x1, 0x148(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x305ee
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movq %rax, 0x200(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2230
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0x258(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2330
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movl %eax, 0x14c(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2230
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movq %rax, 0x1c8(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2260
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movsd %xmm0, 0x1d8(%rbx)
jmp 0x30dfe
movq %r10, %r14
movq %rdx, %r15
callq 0x2230
movq %r15, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r14, %r10
movq %rax, 0x278(%rbx)
jmp 0x30dfe
movq 0xb0(%rsp), %rsi
movq %rdx, %r14
xorl %edx, %edx
movq %r10, %rbx
callq 0x303fb
movq %r14, %rdx
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %rbx, %r10
jmp 0x30dfe
movq %rdi, 0x38(%rbx)
jmp 0x30dfe
movq %rdi, 0x40(%rbx)
jmp 0x30dfe
cmpl $0x6b, %esi
jle 0x3166a
leal -0x162(%rsi), %eax
cmpl $0xb, %eax
ja 0x3169e
movq %rdx, %r15
movq %r10, %r14
leaq 0x1fcc1a(%rip), %rcx    # 0x22e254
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rdi, 0x288(%rbx)
jmp 0x31655
movw $0x0, 0x25d(%rbx)
movq %r14, %r10
movabsq $0x100000000, %r11      # imm = 0x100000000
movq %r15, %rdx
jmp 0x30dfe
movq %rdx, %rbx
movq %r10, %r14
cmpl $0x4f, %esi
jne 0x316db
callq 0x2140
movq (%rsp), %rcx
movl %eax, 0x138(%rcx)
movq %r14, %r10
movabsq $0x100000000, %r11      # imm = 0x100000000
movq 0x8(%rsp), %r12
movq %rbx, %rdx
jmp 0x30dfe
movq %rdx, %r14
movq %r10, %rbx
cmpl $0x6c, %esi
je 0x317ba
movq %rsi, %rax
cmpl $0x73, %eax
jne 0x317cf
callq 0x2260
cvtsd2ss %xmm0, %xmm0
movq (%rsp), %rax
movss %xmm0, 0x168(%rax)
movss %xmm0, 0x164(%rax)
jmp 0x317cf
movq %rsi, %rax
cmpl $0x3a, %eax
je 0x319af
movq %rbx, %rdx
cmpl $0x3f, %eax
movq %r14, %r10
movabsq $0x100000000, %r11      # imm = 0x100000000
movq 0x8(%rsp), %r12
jne 0x30dfe
jmp 0x31985
callq 0x2230
movq %rax, 0x2b8(%rbx)
jmp 0x31655
callq 0x2230
movq %rax, 0x298(%rbx)
jmp 0x31655
callq 0x2230
movl %eax, 0x124(%rbx)
jmp 0x31655
callq 0x2230
movq %rax, 0x290(%rbx)
jmp 0x31655
callq 0x2230
movq %rax, 0x2a0(%rbx)
jmp 0x31655
callq 0x2230
movq %rax, 0x2c0(%rbx)
jmp 0x31655
callq 0x2230
movq %rax, 0x2c8(%rbx)
jmp 0x31655
callq 0x2230
movq %rax, 0x2d0(%rbx)
jmp 0x31655
movl $0x1, %eax
movq %rax, 0x2a8(%rbx)
movabsq $0x3fb1eb851eb851ec, %rcx # imm = 0x3FB1EB851EB851EC
movq %rcx, 0xc0(%rbx)
movq %rax, 0x2b0(%rbx)
jmp 0x31655
callq 0x2330
movq (%rsp), %rcx
movl %eax, 0x134(%rcx)
movl %eax, 0x130(%rcx)
movq %rbx, %r10
movabsq $0x100000000, %r11      # imm = 0x100000000
movq 0x8(%rsp), %r12
movq %r14, %rdx
jmp 0x30dfe
movl $0x1, %edx
xorl %r9d, %r9d
jmp 0x3180d
movq 0x28(%rsp), %rax
addl %r14d, %eax
movl %eax, 0x44(%rsp)
addl %r14d, %r9d
movl %r9d, 0x4c(%rsp)
movl %edi, %edx
movq (%rsp), %rbx
movq $0x0, 0x38(%rsp)
movl $0xffffffff, 0x40(%rsp) # imm = 0xFFFFFFFF
subl %r9d, %edx
movl %edx, 0x30(%rsp)
xorl %eax, %eax
cmpl $0x3, 0x130(%rbx)
setge %al
movss 0x164(%rbx,%rax,4), %xmm0
movss %xmm0, 0x16c(%rbx)
cmpl %edi, %edx
je 0x318ba
leaq 0x30(%rsp), %rdx
movq %r10, %rsi
movq %rbx, %rcx
callq 0x2fef1
cmpq $0x1, 0x68(%rbx)
movq %rbx, %rax
sbbq $0x0, %rax
cmpb $0x0, 0x25e(%rax)
movl (%rbx), %eax
je 0x3187a
btl $0x8, %eax
jae 0x31881
addl $0xffffff00, %eax       # imm = 0xFFFFFF00
jmp 0x3187f
orl $0x100, %eax            # imm = 0x100
movl %eax, (%rbx)
cmpq $0x0, 0x2a8(%rbx)
jne 0x318a1
movq $-0x1, 0x2c8(%rbx)
movq $0x1, 0x2d0(%rbx)
movq %rbx, %rdi
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2f7fe
movq %rbx, %rdi
callq 0x2430
xorl %eax, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x28(%rsp), %rdx
addl %r14d, %edx
addl %r14d, %r9d
movq (%rsp), %rbx
jmp 0x3181e
subl %r14d, %r8d
movl %r8d, %edx
movq 0x80(%rsp), %rdi
jmp 0x31825
movl 0x4c(%rsp), %r9d
jmp 0x31809
addq %r14, %rcx
testl %ecx, %ecx
jle 0x3192f
addq %r14, %rax
movl %ecx, %edx
negq %rdx
cltq
leaq (%r10,%rax,8), %rax
xorl %esi, %esi
movq -0x8(%rax,%rsi,8), %rdi
movq %rdi, (%rax,%rsi,8)
decq %rsi
cmpq %rsi, %rdx
jne 0x3191e
xorl %eax, %eax
testl %r15d, %r15d
cmovgl %r15d, %eax
movq 0x28(%rsp), %rsi
leal (%rsi,%r14), %edx
subl %eax, %edx
movslq %edx, %rax
movq %r13, (%r10,%rax,8)
leal (%rsi,%r14), %edx
incl %edx
movl %edx, 0x44(%rsp)
subl %ecx, %edx
movq (%rsp), %rbx
movq 0x80(%rsp), %rdi
jmp 0x31821
leaq 0x1fe93f(%rip), %rdi    # 0x2302ad
callq 0x2310
jmp 0x318c2
movq 0x28(%rsp), %rbx
addl %r14d, %ebx
movq 0x20(%rsp), %r10
movq 0x263654(%rip), %rax    # 0x294fe0
movq (%rax), %rdi
movslq %ebx, %rax
movq -0x8(%r10,%rax,8), %rdx
leaq 0x1fe944(%rip), %rsi    # 0x2302e2
xorl %eax, %eax
callq 0x22b0
movl $0x1, %eax
jmp 0x318c4
movq 0x26362a(%rip), %rax    # 0x294fe0
movq (%rax), %rdi
movslq %ebx, %rax
movq -0x8(%r14,%rax,8), %rdx
leaq 0x1fe8f1(%rip), %rsi    # 0x2302b9
jmp 0x3199e