// File: /workspace/github_c_makefile_star2_O2/samtools[P]htslib/vcfutils.c
// Function: bcf_remove_allele_set
int bcf_remove_allele_set(const bcf_hdr_t *header, bcf1_t *line, const struct kbitset_t *rm_set)
{
    int *map = (int*) calloc(line->n_allele, sizeof(int));
    uint8_t *dat = NULL;

    bcf_unpack(line, BCF_UN_ALL);

    // create map of indexes from old to new ALT numbering and modify ALT
    kstring_t str = {0,0,0};
    kputs(line->d.allele[0], &str);

    int nrm = 0, i,j;  // i: ori alleles, j: new alleles
    for (i=1, j=1; i<line->n_allele; i++)
    {
        if ( kbs_exists(rm_set, i) )
        {
            // remove this allele
            line->d.allele[i] = NULL;
            nrm++;
            continue;
        }
        kputc(',', &str);
        kputs(line->d.allele[i], &str);
        map[i] = j;
        j++;
    }
    if ( !nrm ) goto clean;

    int nR_ori = line->n_allele;
    int nR_new = line->n_allele-nrm;
    if ( nR_new<=0 ) // should not be able to remove reference allele
    {
        hts_log_error("Cannot remove reference allele at %s:%"PRIhts_pos" [%d]",
            bcf_seqname_safe(header,line), line->pos+1, nR_new);
        goto err;
    }
    int nA_ori = nR_ori-1;
    int nA_new = nR_new-1;

    int nG_ori = nR_ori*(nR_ori + 1)/2;
    int nG_new = nR_new*(nR_new + 1)/2;

    bcf_update_alleles_str(header, line, str.s);

    // remove from Number=G, Number=R and Number=A INFO fields.
    int mdat = 0, ndat = 0, mdat_bytes = 0, nret;
    for (i=0; i<line->n_info; i++)
    {
        bcf_info_t *info = &line->d.info[i];
        int vlen = bcf_hdr_id2length(header,BCF_HL_INFO,info->key);

        if ( vlen!=BCF_VL_A && vlen!=BCF_VL_G && vlen!=BCF_VL_R ) continue; // no need to change

        int type = bcf_hdr_id2type(header,BCF_HL_INFO,info->key);
        if ( type==BCF_HT_FLAG ) continue;
        int size = 1;
        if ( type==BCF_HT_REAL || type==BCF_HT_INT ) size = 4;

        mdat = mdat_bytes / size;
        nret = bcf_get_info_values(header, line, bcf_hdr_int2id(header,BCF_DT_ID,info->key), (void**)&dat, &mdat, type);
        mdat_bytes = mdat * size;
        if ( nret<0 )
        {
            hts_log_error("Could not access INFO/%s at %s:%"PRIhts_pos" [%d]",
                bcf_hdr_int2id(header,BCF_DT_ID,info->key), bcf_seqname_safe(header,line), line->pos+1, nret);
            goto err;
        }
        if ( nret==0 ) continue; // no data for this tag

        if ( type==BCF_HT_STR )
        {
            str.l = 0;
            char *ss = (char*) dat, *se = (char*) dat, s = ss[0];
            if ( vlen==BCF_VL_A || vlen==BCF_VL_R )
            {
                int nexp, inc = 0;
                if ( vlen==BCF_VL_A )
                {
                    nexp = nA_ori;
                    inc  = 1;
                }
                else
                    nexp = nR_ori;
                for (j=0; j<nexp; j++)
                {
                    if ( !*se ) break;
                    while ( *se && *se!=',' ) se++;
                    if ( kbs_exists(rm_set, j+inc) )
                    {
                        if ( *se ) se++;
                        ss = se;
                        continue;
                    }
                    if ( str.l ) kputc(',',&str);
                    kputsn(ss,se-ss,&str);
                    if ( *se ) se++;
                    ss = se;
                }
                if ( j==1 && s == '.' ) continue; // missing
                if ( j!=nexp )
                {
                    hts_log_error("Unexpected number of values in INFO/%s at %s:%"PRIhts_pos"; expected Number=%c=%d, but found %d",
                        bcf_hdr_int2id(header,BCF_DT_ID,info->key), bcf_seqname_safe(header,line), line->pos+1, vlen==BCF_VL_A ? 'A' : 'R', nexp, j);
                    goto err;
                }
            }
            else    // Number=G, assuming diploid genotype
            {
                int k = 0, n = 0;
                for (j=0; j<nR_ori; j++)
                {
                    for (k=0; k<=j; k++)
                    {
                        if ( !*se ) break;
                        while ( *se && *se!=',' ) se++;
                        n++;
                        if ( kbs_exists(rm_set, j) || kbs_exists(rm_set, k) )
                        {
                            if ( *se ) se++;
                            ss = se;
                            continue;
                        }
                        if ( str.l ) kputc(',',&str);
                        kputsn(ss,se-ss,&str);
                        if ( *se ) se++;
                        ss = se;
                    }
                    if ( !*se ) break;
                }
                if ( n==1 && s == '.' ) continue; // missing
                if ( n!=nG_ori )
                {
                    hts_log_error("Unexpected number of values in INFO/%s at %s:%"PRIhts_pos"; expected Number=G=%d, but found %d",
                        bcf_hdr_int2id(header,BCF_DT_ID,info->key), bcf_seqname_safe(header,line), line->pos+1, nG_ori, n);
                    goto err;
                }
            }

            nret = bcf_update_info(header, line, bcf_hdr_int2id(header,BCF_DT_ID,info->key), (void*)str.s, str.l, type);
            if ( nret<0 )
            {
                hts_log_error("Could not update INFO/%s at %s:%"PRIhts_pos" [%d]",
                    bcf_hdr_int2id(header,BCF_DT_ID,info->key), bcf_seqname_safe(header,line), line->pos+1, nret);
                goto err;
            }
            continue;
        }

        if (nret==1) // could be missing - check
        {
            int missing = 0;
            #define BRANCH(type_t, convert, is_missing) { \
                type_t val = convert(info->vptr); \
                if ( is_missing ) missing = 1; \
            }
            switch (info->type) {
                case BCF_BT_INT8:  BRANCH(int8_t, le_to_i8,  val==bcf_int8_missing); break;
                case BCF_BT_INT16: BRANCH(int16_t, le_to_i16, val==bcf_int16_missing); break;
                case BCF_BT_INT32: BRANCH(int32_t, le_to_i32, val==bcf_int32_missing); break;
                case BCF_BT_FLOAT: BRANCH(float,   le_to_float, bcf_float_is_missing(val)); break;
                default: hts_log_error("Unexpected type %d", info->type); goto err;
            }
            #undef BRANCH
            if (missing) continue; // could remove this INFO tag?
        }

        if ( vlen==BCF_VL_A || vlen==BCF_VL_R )
        {
            int inc = 0, ntop;
            if ( vlen==BCF_VL_A )
            {
                if ( nret!=nA_ori )
                {
                    hts_log_error("Unexpected number of values in INFO/%s at %s:%"PRIhts_pos"; expected Number=A=%d, but found %d",
                        bcf_hdr_int2id(header,BCF_DT_ID,info->key), bcf_seqname_safe(header,line), line->pos+1, nA_ori, nret);
                    goto err;
                }
                ntop = nA_ori;
                ndat = nA_new;
                inc  = 1;
            }
            else
            {
                if ( nret!=nR_ori )
                {
                    hts_log_error("Unexpected number of values in INFO/%s at %s:%"PRIhts_pos"; expected Number=R=%d, but found %d",
                        bcf_hdr_int2id(header,BCF_DT_ID,info->key), bcf_seqname_safe(header,line), line->pos+1, nR_ori, nret);
                    goto err;
                }
                ntop = nR_ori;
                ndat = nR_new;
            }
            int k = 0;

            #define BRANCH(type_t,is_vector_end) \
            { \
                type_t *ptr = (type_t*) dat; \
                int size = sizeof(type_t); \
                for (j=0; j<ntop; j++) /* j:ori, k:new */ \
                { \
                    if ( is_vector_end ) { memcpy(dat+k*size, dat+j*size, size); break; } \
                    if ( kbs_exists(rm_set, j+inc) ) continue; \
                    if ( j!=k ) memcpy(dat+k*size, dat+j*size, size); \
                    k++; \
                } \
            }
            switch (type)
            {
                case BCF_HT_INT:  BRANCH(int32_t,ptr[j]==bcf_int32_vector_end); break;
                case BCF_HT_REAL: BRANCH(float,bcf_float_is_vector_end(ptr[j])); break;
            }
            #undef BRANCH
        }
        else    // Number=G
        {
            if ( nret!=nG_ori )
            {
                hts_log_error("Unexpected number of values in INFO/%s at %s:%"PRIhts_pos"; expected Number=G=%d, but found %d",
                    bcf_hdr_int2id(header,BCF_DT_ID,info->key), bcf_seqname_safe(header,line), line->pos+1, nG_ori, nret);
                goto err;
            }
            int k, l_ori = -1, l_new = 0;
            ndat = nG_new;

            #define BRANCH(type_t,is_vector_end) \
            { \
                type_t *ptr = (type_t*) dat; \
                int size = sizeof(type_t); \
                for (j=0; j<nR_ori; j++) \
                { \
                    for (k=0; k<=j; k++) \
                    { \
                        l_ori++; \
                        if ( is_vector_end ) { memcpy(dat+l_new*size, dat+l_ori*size, size); break; } \
                        if ( kbs_exists(rm_set, j) || kbs_exists(rm_set, k) ) continue; \
                        if ( l_ori!=l_new ) memcpy(dat+l_new*size, dat+l_ori*size, size); \
                        l_new++; \
                    } \
                } \
            }
            switch (type)
            {
                case BCF_HT_INT:  BRANCH(int32_t,ptr[l_ori]==bcf_int32_vector_end); break;
                case BCF_HT_REAL: BRANCH(float,bcf_float_is_vector_end(ptr[l_ori])); break;
            }
            #undef BRANCH
        }

        nret = bcf_update_info(header, line, bcf_hdr_int2id(header,BCF_DT_ID,info->key), (void*)dat, ndat, type);
        if ( nret<0 )
        {
            hts_log_error("Could not update INFO/%s at %s:%"PRIhts_pos" [%d]",
                bcf_hdr_int2id(header,BCF_DT_ID,info->key), bcf_seqname_safe(header,line), line->pos+1, nret);
            goto err;
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, 0x8(%rsp)
movzwl 0x1a(%rsi), %edi
pushq $0x4
popq %rsi
callq 0x15f40
movq %rax, 0xc8(%rsp)
andq $0x0, 0x10(%rsp)
pushq $0xf
popq %rsi
movq %r14, %rdi
callq 0x14890
leaq 0x60(%rsp), %rbx
andq $0x0, 0x10(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, (%rbx)
movq %r14, (%rsp)
movq 0x88(%r14), %rax
movq (%rax), %rdi
movq %rbx, %rsi
callq 0x5f445
movq %r15, %rcx
xorl %r14d, %r14d
pushq $0x1
popq %r15
pushq $0x1
popq %r12
pushq $0x2c
popq %rbp
movq %rcx, 0x20(%rsp)
movq (%rsp), %rax
movq 0x18(%rax), %rsi
movl %esi, %eax
shrl $0x10, %eax
cmpq %rax, %r12
jae 0x5d992
movq %r12, %rax
shrq $0x6, %rax
movq 0x10(%rcx,%rax,8), %rax
btq %r12, %rax
jae 0x5d958
movq (%rsp), %rax
movq 0x88(%rax), %rax
andq $0x0, (%rax,%r12,8)
incl %r14d
jmp 0x5d98d
movl %ebp, %edi
movq %rbx, %rsi
callq 0x5f481
movq (%rsp), %rax
movq 0x88(%rax), %rax
movq (%rax,%r12,8), %rdi
movq %rbx, %rsi
callq 0x5f445
movq 0x20(%rsp), %rcx
movq 0xc8(%rsp), %rax
movl %r15d, (%rax,%r12,4)
incl %r15d
incq %r12
jmp 0x5d91f
testl %r14d, %r14d
je 0x5ef1b
movl %eax, %ecx
subl %r14d, %ecx
jle 0x5e296
leal -0x1(%rax), %r14d
leal -0x1(%rcx), %edx
movl %edx, 0xc0(%rsp)
leal 0x1(%rax), %edi
movq %rcx, %rdx
movl %edi, 0xc4(%rsp)
movl %edi, %ecx
imull %eax, %ecx
shrl %ecx
movq %rcx, 0x58(%rsp)
leal 0x1(%rdx), %ecx
movq %rdx, 0xd0(%rsp)
imull %edx, %ecx
shrl %ecx
movl %ecx, 0x44(%rsp)
leaq 0x60(%rsp), %rcx
movq 0x10(%rcx), %rdx
movq %rax, 0x18(%rsp)
movq 0x8(%rsp), %rdi
movq (%rsp), %rbx
movq %rsi, %r15
movq %rbx, %rsi
callq 0x15f60
movq 0x18(%rsp), %rsi
leaq 0x48(%rsp), %rax
andl $0x0, (%rax)
movq %r15, 0xb8(%rsp)
movl %r15d, %eax
shrl $0x10, %eax
movq %r14, 0x88(%rsp)
imulq %rax, %r14
shrq %r14
addl %esi, %r14d
movq %r14, 0xa0(%rsp)
xorl %r14d, %r14d
movl $0x0, 0x4c(%rsp)
movzwl 0x18(%rbx), %eax
cmpq %rax, %r14
jae 0x5e194
movq 0x90(%rbx), %rdx
imulq $0x28, %r14, %rax
movq 0x8(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq %rdx, %rdi
movslq (%rdx,%rax), %rdx
shlq $0x4, %rdx
movq 0x8(%rcx,%rdx), %rdx
movl 0x8(%rdx), %ebp
movl %ebp, %ebx
shrl $0x8, %ebx
andl $0xf, %ebx
leal -0x5(%rbx), %edx
cmpl $-0x3, %edx
jb 0x5e179
shrl $0x4, %ebp
andl $0xf, %ebp
je 0x5e179
addq %rax, %rdi
xorl %r13d, %r13d
cmpl $0x3, %ebp
setb %r13b
leal 0x1(%r13,%r13,2), %esi
movl 0x4c(%rsp), %eax
cltd
idivl %esi
movl %eax, 0x48(%rsp)
movq %rdi, 0x28(%rsp)
movslq (%rdi), %rax
shlq $0x4, %rax
movq (%rcx,%rax), %rdx
movq 0x8(%rsp), %rdi
movq (%rsp), %rsi
leaq 0x10(%rsp), %rcx
leaq 0x48(%rsp), %r8
movl %ebp, %r9d
callq 0x158a0
movl %eax, %r15d
movl 0x48(%rsp), %eax
addb %r13b, %r13b
movl %r13d, %ecx
shll %cl, %eax
testl %r15d, %r15d
js 0x5e2d3
movl %eax, 0x4c(%rsp)
movq 0x18(%rsp), %rsi
je 0x5e179
cmpl $0x3, %ebp
jne 0x5dbed
movq %r14, 0x30(%rsp)
andq $0x0, 0x60(%rsp)
movq 0x10(%rsp), %rbp
movb (%rbp), %al
cmpl $0x2, %ebx
movb %al, 0x50(%rsp)
je 0x5db34
cmpl $0x4, %ebx
jne 0x5dc33
xorl %r13d, %r13d
cmpl $0x2, %ebx
sete %r13b
movl %esi, %eax
cmovel 0x88(%rsp), %eax
testl %eax, %eax
movl $0x0, %r14d
movq %rax, 0x90(%rsp)
cmovgl %eax, %r14d
xorl %r12d, %r12d
cmpq %r14, %r12
je 0x5dd43
movb (%rbp), %al
testb %al, %al
je 0x5dd40
xorl %r15d, %r15d
testb %al, %al
je 0x5db8c
movzbl %al, %ecx
cmpl $0x2c, %ecx
je 0x5db8c
movb 0x1(%rbp,%r15), %al
incq %r15
jmp 0x5db76
leaq (%r12,%r13), %rcx
movq %rcx, %rdx
shrq $0x6, %rdx
movq 0x20(%rsp), %rdi
movq 0x10(%rdi,%rdx,8), %rdx
btq %rcx, %rdx
jb 0x5dbdc
cmpq $0x0, 0x60(%rsp)
leaq 0x60(%rsp), %rax
je 0x5dbc4
pushq $0x2c
popq %rdi
movq %rax, %rsi
callq 0x5f481
leaq 0x60(%rsp), %rax
movq %rbp, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x5f4fd
movb (%rbp,%r15), %al
movq 0x18(%rsp), %rsi
cmpb $0x1, %al
sbbq $-0x1, %rbp
addq %r15, %rbp
incq %r12
jmp 0x5db5f
cmpl $0x1, %r15d
jne 0x5de20
movq 0x28(%rsp), %rax
movl 0x4(%rax), %ecx
leal -0x1(%rcx), %eax
cmpl $0x4, %eax
ja 0x5f2d3
leaq 0x4c132(%rip), %rdx     # 0xa9d44
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rax
xorl %ecx, %ecx
cmpb (%rax), %cl
jno 0x5de20
jmp 0x5e179
xorl %ecx, %ecx
pushq $0x1
popq %r12
xorl %r14d, %r14d
movq %rbp, %r13
cmpq %rsi, %rcx
je 0x5e185
pushq $0x1
popq %r8
shlq %cl, %r8
movq %rcx, 0xa8(%rsp)
movq %rcx, %r9
shrq $0x6, %r9
leal (%r14,%r12), %eax
movq %rax, 0x38(%rsp)
xorl %r15d, %r15d
movq %r8, 0x90(%rsp)
movq %r9, 0xb0(%rsp)
movb (%rbp), %al
cmpq %r12, %r15
je 0x5dd20
testb %al, %al
je 0x5dd6d
movq %rbp, %rbx
subq %r13, %rbx
testb %al, %al
je 0x5dcab
movzbl %al, %ecx
cmpl $0x2c, %ecx
je 0x5dcab
movb 0x1(%rbp), %al
incq %rbp
incq %rbx
jmp 0x5dc94
movq 0x20(%rsp), %rdx
testq %r8, 0x10(%rdx,%r9,8)
jne 0x5dd0c
movq %r15, %rcx
shrq $0x6, %rcx
movq 0x10(%rdx,%rcx,8), %rcx
btq %r15, %rcx
jb 0x5dd0c
cmpq $0x0, 0x60(%rsp)
leaq 0x60(%rsp), %rax
je 0x5dce6
pushq $0x2c
popq %rdi
movq %rax, %rsi
callq 0x5f481
leaq 0x60(%rsp), %rax
movq %r13, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x5f4fd
movb (%rbp), %al
movq 0x18(%rsp), %rsi
movq 0x90(%rsp), %r8
movq 0xb0(%rsp), %r9
incl %r14d
cmpb $0x1, %al
sbbq $-0x1, %rbp
incq %r15
movq %rbp, %r13
jmp 0x5dc7a
movq 0xa8(%rsp), %rcx
incq %rcx
incq %r12
movq 0x38(%rsp), %rdx
movl %edx, %r14d
testb %al, %al
jne 0x5dc3f
jmp 0x5dd70
movl %r12d, %r14d
cmpl $0x1, %r14d
sete %al
cmpb $0x2e, 0x50(%rsp)
sete %cl
testb %cl, %al
movq 0x28(%rsp), %r15
jne 0x5dd82
movq 0x90(%rsp), %r13
cmpl %r13d, %r14d
je 0x5dd9b
jmp 0x5f088
movl %r14d, %edx
cmpl $0x1, %edx
sete %al
cmpb $0x2e, 0x50(%rsp)
sete %cl
testb %cl, %al
je 0x5dd8c
movq 0x30(%rsp), %r14
jmp 0x5e179
cmpl 0x58(%rsp), %edx
movq 0x28(%rsp), %r15
jne 0x5f251
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
movslq (%r15), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rdx
movq 0x70(%rsp), %rcx
movl 0x60(%rsp), %r8d
movq (%rsp), %rsi
pushq $0x3
popq %r9
callq 0x15930
movq 0x18(%rsp), %rsi
testl %eax, %eax
movq 0x30(%rsp), %r14
jns 0x5e179
jmp 0x5e357
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rax
xorl %ecx, %ecx
cmpw (%rax), %cx
jno 0x5de20
jmp 0x5e179
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x73ef6(%rip), %rcx     # 0xd1cf8
movl (%rcx), %ecx
cmpl (%rax), %ecx
jne 0x5de20
jmp 0x5e179
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rax
xorl %ecx, %ecx
cmpl (%rax), %ecx
jo 0x5e179
cmpl $0x4, %ebx
je 0x5de4d
cmpl $0x2, %ebx
jne 0x5ded6
movq 0x88(%rsp), %rdx
movl %edx, %ecx
pushq $0x1
popq %rax
movl 0xc0(%rsp), %r8d
cmpl %edx, %r15d
je 0x5de65
jmp 0x5f16e
cmpl %esi, %r15d
jne 0x5f11e
movl %esi, %ecx
xorl %eax, %eax
movq 0xd0(%rsp), %rdx
movl %edx, %r8d
movl %ecx, %edx
cmpl $0x2, %ebp
je 0x5dfde
cmpl $0x1, %ebp
movq (%rsp), %rsi
jne 0x5e146
movq 0x10(%rsp), %rdi
xorl %ecx, %ecx
xorl %ebx, %ebx
cmpq %rcx, %rdx
je 0x5e146
cmpl $0x80000001, (%rdi,%rcx,4) # imm = 0x80000001
je 0x5e03e
leaq (%rax,%rcx), %r9
movq %r9, %r10
shrq $0x6, %r10
movq 0x20(%rsp), %r11
movq 0x10(%r11,%r10,8), %r10
btq %r9, %r10
jb 0x5ded1
movl %ebx, %r9d
cmpq %r9, %rcx
je 0x5decf
movq 0x10(%rsp), %r9
movslq %ebx, %r10
movl (%r9,%rcx,4), %r11d
movl %r11d, (%r9,%r10,4)
incl %ebx
incq %rcx
jmp 0x5de86
movq 0x58(%rsp), %r12
cmpl %r12d, %r15d
jne 0x5f0e3
cmpl $0x2, %ebp
je 0x5e05e
movl 0x44(%rsp), %r8d
cmpl $0x1, %ebp
movq (%rsp), %rsi
jne 0x5e146
movq 0x10(%rsp), %rax
addq $0x4, %rax
movq %rax, 0x50(%rsp)
xorl %ecx, %ecx
pushq $0x1
popq %rdx
xorl %r11d, %r11d
pushq $-0x1
popq %rdi
movq %r14, 0x30(%rsp)
cmpq 0x18(%rsp), %rcx
je 0x5e054
pushq $0x1
popq %r8
shlq %cl, %r8
movq %rcx, %r9
shrq $0x6, %r9
movslq %edi, %rdi
leal 0x4(,%rdi,4), %r10d
leaq (,%rdi,4), %rsi
leal 0x1(%rdi), %r14d
movq 0x50(%rsp), %rax
leaq (%rax,%rdi,4), %r15
xorl %ebx, %ebx
cmpq %rbx, %rdx
je 0x5dfaf
cmpl $0x80000001, (%r15,%rbx,4) # imm = 0x80000001
movslq %r11d, %r12
je 0x5dfb4
movq 0x20(%rsp), %rax
testq %r8, 0x10(%rax,%r9,8)
jne 0x5dfa6
movq %rbx, %r13
shrq $0x6, %r13
movq 0x10(%rax,%r13,8), %r13
btq %rbx, %r13
jb 0x5dfa6
leal (%r14,%rbx), %r13d
cmpl %r11d, %r13d
je 0x5dfa3
movq 0x10(%rsp), %r13
leaq (%rsi,%r13), %rax
movl 0x4(%rax,%rbx,4), %eax
movl %eax, (%r13,%r12,4)
incl %r11d
incq %rbx
addl $0x4, %r10d
jmp 0x5df58
addq %rbx, %rdi
jmp 0x5dfca
movq 0x10(%rsp), %r8
movslq %r10d, %r9
movl (%r8,%r9), %r9d
movl %r9d, (%r8,%r12,4)
addq %rbx, %rdi
incq %rdi
incq %rcx
incq %rdx
movq (%rsp), %rsi
movq 0x30(%rsp), %r14
jmp 0x5df1d
movq 0x10(%rsp), %rdi
xorl %ecx, %ecx
xorl %ebx, %ebx
movq (%rsp), %rsi
cmpq %rcx, %rdx
je 0x5e146
movq 0x73da5(%rip), %r9      # 0xd1da0
movl (%r9), %r9d
cmpl (%rdi,%rcx,4), %r9d
je 0x5e03e
leaq (%rax,%rcx), %r9
movq %r9, %r10
shrq $0x6, %r10
movq 0x20(%rsp), %r11
movq 0x10(%r11,%r10,8), %r10
btq %r9, %r10
jb 0x5e039
movl %ebx, %r9d
cmpq %r9, %rcx
je 0x5e037
movq 0x10(%rsp), %r9
movslq %ebx, %r10
movl (%r9,%rcx,4), %r11d
movl %r11d, (%r9,%r10,4)
incl %ebx
incq %rcx
jmp 0x5dfeb
movq 0x10(%rsp), %rax
movslq %ebx, %rdx
shll $0x2, %ecx
movl (%rax,%rcx), %ecx
movl %ecx, (%rax,%rdx,4)
jmp 0x5e146
movl 0x44(%rsp), %r8d
jmp 0x5e146
movq %r14, 0x30(%rsp)
movq 0x10(%rsp), %rax
addq $0x4, %rax
movq %rax, 0x50(%rsp)
xorl %ecx, %ecx
pushq $0x1
popq %rdx
xorl %esi, %esi
pushq $-0x1
popq %rdi
cmpq 0x18(%rsp), %rcx
je 0x5e138
pushq $0x1
popq %r8
shlq %cl, %r8
movq %rcx, %r9
shrq $0x6, %r9
movslq %edi, %rdi
leal 0x4(,%rdi,4), %r10d
leaq (,%rdi,4), %r11
leal 0x1(%rdi), %r14d
movq 0x50(%rsp), %rax
leaq (%rax,%rdi,4), %r15
xorl %ebx, %ebx
cmpq %rbx, %rdx
je 0x5e112
movq 0x73cde(%rip), %rax     # 0xd1da0
movl (%rax), %r13d
movslq %esi, %r12
cmpl (%r15,%rbx,4), %r13d
je 0x5e117
movq 0x20(%rsp), %rax
testq %r8, 0x10(%rax,%r9,8)
jne 0x5e109
movq %rbx, %r13
shrq $0x6, %r13
movq 0x10(%rax,%r13,8), %r13
btq %rbx, %r13
jb 0x5e109
leal (%r14,%rbx), %r13d
cmpl %esi, %r13d
je 0x5e107
movq 0x10(%rsp), %r13
leaq (%r11,%r13), %rax
movl 0x4(%rax,%rbx,4), %eax
movl %eax, (%r13,%r12,4)
incl %esi
incq %rbx
addl $0x4, %r10d
jmp 0x5e0b6
addq %rbx, %rdi
jmp 0x5e12d
movq 0x10(%rsp), %r8
movslq %r10d, %r9
movl (%r8,%r9), %r9d
movl %r9d, (%r8,%r12,4)
addq %rbx, %rdi
incq %rdi
incq %rcx
incq %rdx
jmp 0x5e07b
movl 0x44(%rsp), %r8d
movq (%rsp), %rsi
movq 0x30(%rsp), %r14
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
movq 0x28(%rsp), %r15
movslq (%r15), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rdx
movq 0x10(%rsp), %rcx
movl %ebp, %r9d
callq 0x15930
testl %eax, %eax
movq 0x18(%rsp), %rsi
js 0x5e357
incq %r14
movq (%rsp), %rbx
jmp 0x5da43
movq 0xa0(%rsp), %rax
movl %eax, %edx
jmp 0x5dd70
pushq $0x1
popq %rax
cmpq %rsi, %rax
jae 0x5e3ba
movq 0xc8(%rsp), %rcx
movl (%rcx,%rax,4), %ecx
leaq 0x1(%rax), %rdx
cmpq %rcx, %rax
movq %rdx, %rax
je 0x5e197
pushq $0x4
popq %rcx
movl 0x4c(%rsp), %eax
cltd
idivl %ecx
movq %rbx, %r14
leaq 0x48(%rsp), %rbx
movl %eax, (%rbx)
leaq 0x4d6a2(%rip), %rdx     # 0xab874
leaq 0x10(%rsp), %rcx
pushq $0x1
popq %r9
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %rbx, %r8
callq 0x14780
movl (%rbx), %ecx
shll $0x2, %ecx
movl %ecx, 0x4c(%rsp)
testl %eax, %eax
jle 0x5e3ba
movq 0x18(%r14), %r8
movq %r8, %rcx
shrq $0x28, %rcx
xorl %r11d, %r11d
xorl %edx, %edx
divl %ecx
movq 0x10(%rsp), %rcx
movq %rcx, %rdx
movq 0xc8(%rsp), %r10
shrq $0x28, %r8
cmpl %r8d, %r11d
jae 0x5e396
xorl %edi, %edi
cmpq %rax, %rdi
jae 0x5e289
movl (%rdx,%rdi,4), %r8d
cmpl $0x2, %r8d
jb 0x5e284
cmpl $0x80000001, %r8d       # imm = 0x80000001
je 0x5e289
movl %r8d, %ebx
sarl %ebx
movslq %ebx, %r9
movl -0x4(%r10,%r9,4), %r14d
cmpl 0x18(%rsp), %ebx
jg 0x5e315
testl %r14d, %r14d
js 0x5e315
leal 0x2(%r14,%r14), %r9d
cmovnel %r9d, %r14d
cmpl $0x2, %ebx
cmovll %r9d, %r14d
andl $0x1, %r8d
orl %r14d, %r8d
movl %r8d, (%rdx,%rdi,4)
movq (%rsp), %r14
incq %rdi
jmp 0x5e22d
leaq (%rdx,%rax,4), %rdx
incl %r11d
movq 0x18(%r14), %r8
jmp 0x5e21e
movq 0x8(%rsp), %rdi
movq (%rsp), %rbx
movq %rbx, %rsi
movq %rcx, %r14
callq 0x5f4c0
movq (%rbx), %r8
incq %r8
leaq 0x4bba8(%rip), %rsi     # 0xa9e5f
leaq 0x4bbb7(%rip), %rdx     # 0xa9e75
pushq $0x1
popq %rdi
movq %rax, %rcx
movl %r14d, %r9d
xorl %eax, %eax
callq 0x15830
jmp 0x5f219
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
movq 0x28(%rsp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rbx
movq (%rsp), %r14
movq %r14, %rsi
callq 0x5f4c0
movq (%r14), %r9
incq %r9
subq $0x8, %rsp
leaq 0x4bb56(%rip), %rsi     # 0xa9e5f
leaq 0x4bb93(%rip), %rdx     # 0xa9ea3
jmp 0x5efca
decl %ebx
movq 0x8(%rsp), %rdi
movq (%rsp), %r15
movq %r15, %rsi
callq 0x5f4c0
movq (%r15), %r8
incq %r8
leaq 0x4bb2a(%rip), %rsi     # 0xa9e5f
leaq 0x4bd0c(%rip), %rdx     # 0xaa048
pushq $0x1
popq %rdi
movq %rax, %rcx
movl %ebx, %r9d
xorl %eax, %eax
pushq %r14
pushq 0x20(%rsp)
callq 0x15830
jmp 0x5f217
movl %eax, %ebx
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
movslq (%r15), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %r15
movq (%rsp), %r14
movq %r14, %rsi
callq 0x5f4c0
movq (%r14), %r9
incq %r9
subq $0x8, %rsp
leaq 0x4bad5(%rip), %rsi     # 0xa9e5f
leaq 0x4bbe5(%rip), %rdx     # 0xa9f76
jmp 0x5f206
imull %eax, %r8d
leaq 0x4d4d3(%rip), %rdx     # 0xab874
pushq $0x1
popq %r9
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x14590
testl %eax, %eax
js 0x5f29e
movl 0x44(%rsp), %eax
movq %rax, 0xe0(%rsp)
movl 0x58(%rsp), %eax
movq %rax, 0x50(%rsp)
leaq (,%rax,4), %rax
movq %rax, 0xd8(%rsp)
movq 0xb8(%rsp), %rsi
shrl $0x10, %esi
xorl %edi, %edi
movq %rsi, 0xb8(%rsp)
movq (%rsp), %rcx
movzbl 0x1c(%rcx), %eax
cmpq %rax, %rdi
jae 0x5ef1b
movq 0x98(%rcx), %rdx
movq %rdi, %rax
shlq $0x5, %rax
movq 0x8(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq %rdx, %r8
movslq (%rdx,%rax), %rdx
shlq $0x4, %rdx
movq 0x8(%rcx,%rdx), %rdx
movl 0x10(%rdx), %ebx
movl %ebx, %r9d
shrl $0x8, %r9d
andl $0xf, %r9d
leal -0x5(%r9), %edx
cmpl $-0x3, %edx
jb 0x5ef13
shrl $0x4, %ebx
andl $0xf, %ebx
je 0x5ef13
movq %r9, 0x98(%rsp)
movq %rdi, 0x80(%rsp)
xorl %r14d, %r14d
addq %rax, %r8
xorl %r13d, %r13d
cmpl $0x3, %ebx
setb %r13b
leal 0x1(%r13,%r13,2), %esi
movl 0x4c(%rsp), %eax
cltd
idivl %esi
movl %eax, 0x48(%rsp)
movq %r8, 0x38(%rsp)
movslq (%r8), %rax
shlq $0x4, %rax
movq (%rcx,%rax), %rdx
movq 0x8(%rsp), %rdi
movq (%rsp), %rsi
leaq 0x10(%rsp), %rcx
leaq 0x48(%rsp), %r8
movl %ebx, %r9d
callq 0x14780
movl %eax, %r15d
movl 0x48(%rsp), %eax
addb %r13b, %r13b
movl %r13d, %ecx
shll %cl, %eax
testl %r15d, %r15d
js 0x5ef8d
movl %eax, 0x4c(%rsp)
je 0x5ea74
movq (%rsp), %rax
movq 0x18(%rax), %rdi
movq %rdi, %rcx
shrq $0x28, %rcx
movl %r15d, %eax
xorl %edx, %edx
divl %ecx
movl %eax, %r12d
movl %eax, %r13d
cmpl $0x3, %ebx
jne 0x5e699
andq $0x0, 0x60(%rsp)
movq 0x98(%rsp), %rax
cmpl $0x2, %eax
movq %r13, 0x90(%rsp)
movq %r12, 0xf0(%rsp)
je 0x5e521
cmpl $0x4, %eax
jne 0x5e710
xorl %r8d, %r8d
cmpl $0x2, %eax
sete %r8b
movq 0x18(%rsp), %rax
cmovel 0x88(%rsp), %eax
movq %rax, 0xe8(%rsp)
movslq %eax, %r9
xorl %ecx, %ecx
movq (%rsp), %rsi
movq 0x38(%rsp), %rbx
movq %r8, 0x28(%rsp)
movq %r9, 0x30(%rsp)
shrq $0x28, %rdi
cmpq %rdi, %rcx
jae 0x5e976
movq 0x10(%rsp), %rax
movq %rcx, 0xb0(%rsp)
imulq %r13, %rcx
leaq (%rax,%rcx), %rbx
leaq (%rbx,%r13), %r12
movb (%rax,%rcx), %al
movb %al, 0xa8(%rsp)
xorl %r14d, %r14d
movq 0x60(%rsp), %rax
movq %rax, 0xa0(%rsp)
xorl %r13d, %r13d
movq 0x20(%rsp), %rdx
cmpq %r9, %r14
jge 0x5e624
cmpq %r12, %rbx
jae 0x5e624
cmpb $0x0, (%rbx)
je 0x5e624
xorl %ebp, %ebp
leaq (%rbx,%rbp), %rax
cmpq %r12, %rax
jae 0x5e5cb
movzbl (%rax), %eax
testl %eax, %eax
je 0x5e5cb
cmpl $0x2c, %eax
je 0x5e5cb
incq %rbp
jmp 0x5e5b1
leaq (%r14,%r8), %rax
movq %rax, %rcx
shrq $0x6, %rcx
movq 0x10(%rdx,%rcx,8), %rcx
btq %rax, %rcx
jb 0x5e616
testl %r13d, %r13d
leaq 0x60(%rsp), %r15
je 0x5e5f6
pushq $0x2c
popq %rdi
movq %r15, %rsi
callq 0x5f481
movq %rbx, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x5f4fd
incl %r13d
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %r8
movq 0x30(%rsp), %r9
addq %rbp, %rbx
incq %rbx
incq %r14
jmp 0x5e5a0
cmpq $0x1, %r14
movq 0x90(%rsp), %r13
movq 0xf0(%rsp), %r15
jne 0x5e66b
cmpb $0x2e, 0xa8(%rsp)
jne 0x5e66b
movq 0xb0(%rsp), %rcx
incq %rcx
movq (%rsp), %rsi
movq 0x18(%rsi), %rdi
movq 0x38(%rsp), %rbx
movq 0x28(%rsp), %r8
movq 0x30(%rsp), %r9
jmp 0x5e558
cmpl %r14d, 0xe8(%rsp)
jne 0x5ef22
movl 0x60(%rsp), %ebx
subl 0xa0(%rsp), %ebx
cmpl %r15d, %ebx
jge 0x5e644
xorl %edi, %edi
leaq 0x60(%rsp), %rsi
callq 0x5f481
incl %ebx
jmp 0x5e684
movq %rcx, 0x30(%rsp)
cmpl $0x1, %r12d
jne 0x5ea2f
cmpl $0x2, 0x98(%rsp)
jne 0x5e6c0
cmpl $0x1, 0x88(%rsp)
je 0x5ea81
movq 0x38(%rsp), %rax
movl 0xc(%rax), %ecx
leal -0x1(%rcx), %eax
cmpl $0x4, %eax
ja 0x5f2d3
leaq 0x4b655(%rip), %rdx     # 0xa9d30
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rcx
movslq 0x8(%rax), %rax
movq 0x30(%rsp), %rdx
incq %rdx
decq %rdx
je 0x5ea74
cmpb (%rcx), %r14b
leaq (%rcx,%rax), %rcx
jo 0x5e6f9
jmp 0x5ea2f
xorl %ecx, %ecx
movq (%rsp), %rsi
movq 0x38(%rsp), %rbx
shrq $0x28, %rdi
cmpq %rdi, %rcx
jae 0x5e976
movq 0x10(%rsp), %rax
movq %rcx, 0x28(%rsp)
imulq %r13, %rcx
leaq (%rax,%rcx), %rbx
leaq (%rbx,%r13), %r15
movb (%rax,%rcx), %al
xorl %r14d, %r14d
movq 0x60(%rsp), %rdi
movq %rbx, %rcx
movq 0x18(%rsp), %rsi
cmpq %r15, %rcx
jae 0x5e76c
movzbl (%rcx), %edx
cmpl $0x2c, %edx
je 0x5e764
testl %edx, %edx
jne 0x5e767
jmp 0x5e76c
incl %r14d
incq %rcx
jmp 0x5e751
xorl %edx, %edx
cmpq %rbx, %rcx
setne %dl
addl %edx, %r14d
cmpl $0x1, %r14d
jne 0x5e793
cmpb $0x2e, %al
jne 0x5e793
movq 0x28(%rsp), %rcx
incq %rcx
movq (%rsp), %rsi
movq 0x18(%rsi), %rdi
jmp 0x5e716
movq 0x58(%rsp), %rbp
cmpl %ebp, %r14d
sete %al
cmpl %esi, %r14d
sete %cl
orb %al, %cl
je 0x5efdc
cmpl %ebp, %r14d
jne 0x5e8b9
xorl %ecx, %ecx
movq %rbx, %r14
xorl %edi, %edi
cmpq %rsi, %rcx
je 0x5e781
movq %rcx, %r8
shrq $0x6, %r8
pushq $0x1
popq %r9
shlq %cl, %r9
xorl %ebp, %ebp
movq %rcx, 0xb0(%rsp)
movq %r8, 0xa8(%rsp)
movq %r9, 0xa0(%rsp)
cmpq %rcx, %rbp
ja 0x5e89e
cmpq %r15, %r14
jae 0x5e89e
cmpb $0x0, (%r14)
je 0x5e781
movq %r14, %r13
subq %rbx, %r13
cmpq %r15, %r14
jae 0x5e821
movzbl (%r14), %eax
testl %eax, %eax
je 0x5e821
cmpl $0x2c, %eax
je 0x5e821
incq %r14
incq %r13
jmp 0x5e807
movq 0x20(%rsp), %rdx
testq %r9, 0x10(%rdx,%r8,8)
jne 0x5e888
movq %rbp, %rax
shrq $0x6, %rax
movq 0x10(%rdx,%rax,8), %rax
btq %rbp, %rax
jb 0x5e888
movl %edi, 0x30(%rsp)
testl %edi, %edi
leaq 0x60(%rsp), %r12
je 0x5e857
pushq $0x2c
popq %rdi
movq %r12, %rsi
callq 0x5f481
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x5f4fd
movl 0x30(%rsp), %edi
incl %edi
movq 0x18(%rsp), %rsi
movq 0xb0(%rsp), %rcx
movq 0xa8(%rsp), %r8
movq 0xa0(%rsp), %r9
incq %r14
incq %rbp
movq %r14, %rbx
movq 0x90(%rsp), %r13
jmp 0x5e7e9
cmpq %r15, %r14
jae 0x5e781
incq %rcx
cmpb $0x0, (%r14)
jne 0x5e7bc
jmp 0x5e781
movq %rdi, 0x30(%rsp)
xorl %r14d, %r14d
xorl %r12d, %r12d
cmpq %rsi, %r14
jae 0x5e944
cmpq %r15, %rbx
jae 0x5e944
cmpb $0x0, (%rbx)
je 0x5e944
xorl %ebp, %ebp
leaq (%rbx,%rbp), %rax
cmpq %r15, %rax
jae 0x5e8ef
movzbl (%rax), %eax
testl %eax, %eax
je 0x5e8ef
cmpl $0x2c, %eax
je 0x5e8ef
incq %rbp
jmp 0x5e8d5
movq %r14, %rax
shrq $0x6, %rax
movq 0x20(%rsp), %rcx
movq 0x10(%rcx,%rax,8), %rax
btq %r14, %rax
jb 0x5e939
testl %r12d, %r12d
leaq 0x60(%rsp), %r13
je 0x5e91b
pushq $0x2c
popq %rdi
movq %r13, %rsi
callq 0x5f481
movq %rbx, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x5f4fd
incl %r12d
movq 0x18(%rsp), %rsi
movq 0x90(%rsp), %r13
addq %rbp, %rbx
incq %rbx
incq %r14
jmp 0x5e8c4
cmpl %r14d, %esi
jne 0x5f03a
movl 0x60(%rsp), %ebx
subl 0x30(%rsp), %ebx
movq 0xf0(%rsp), %r14
cmpl %r14d, %ebx
jge 0x5e781
xorl %edi, %edi
leaq 0x60(%rsp), %rsi
callq 0x5f481
incl %ebx
jmp 0x5e95d
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
movslq (%rbx), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rdx
movq 0x70(%rsp), %rcx
movl 0x60(%rsp), %r8d
pushq $0x3
popq %r9
callq 0x14590
testl %eax, %eax
movq 0x80(%rsp), %rdi
jns 0x5ef13
jmp 0x5f1c9
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rcx
movslq 0x8(%rax), %rax
movq 0x30(%rsp), %rdx
incq %rdx
decq %rdx
je 0x5ea74
cmpw (%rcx), %r14w
leaq (%rcx,%rax), %rcx
jo 0x5e9c7
jmp 0x5ea2f
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rcx
movslq 0x8(%rax), %rax
movq 0x73308(%rip), %rdx     # 0xd1cf8
movl (%rdx), %edx
movq 0x30(%rsp), %r8
incq %r8
decq %r8
je 0x5ea74
leaq (%rcx,%rax), %r9
cmpl (%rcx), %edx
movq %r9, %rcx
je 0x5e9fa
jmp 0x5ea2f
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rcx
movslq 0x8(%rax), %rax
movq 0x30(%rsp), %rdx
incq %rdx
decq %rdx
je 0x5ea74
cmpl (%rcx), %r14d
leaq (%rcx,%rax), %rcx
jo 0x5ea21
cmpl $0x2, 0x98(%rsp)
je 0x5ea81
movq 0x98(%rsp), %rax
cmpl $0x4, %eax
je 0x5ea5a
cmpl $0x3, %eax
jne 0x5eb49
cmpl 0x18(%rsp), %r12d
jne 0x5eb49
cmpl 0x18(%rsp), %r12d
movq 0xd0(%rsp), %rcx
jne 0x5f38d
xorl %eax, %eax
movl %ecx, %r8d
jmp 0x5ea9a
movq 0x80(%rsp), %rdi
jmp 0x5ef13
pushq $0x1
popq %rax
movl 0xc0(%rsp), %r8d
cmpl 0x88(%rsp), %r12d
jne 0x5f2f0
movslq %r8d, %rcx
cmpl $0x1, %ebx
je 0x5ecd7
cmpl $0x2, %ebx
jne 0x5eed3
xorl %edx, %edx
shrq $0x28, %rdi
cmpq %rdi, %rdx
jae 0x5eed3
movq 0x10(%rsp), %rdi
movq %rdx, %r9
imulq %r13, %r9
leaq (%rdi,%r9,4), %r9
movq %rdx, %r10
imulq %rcx, %r10
leaq (%rdi,%r10,4), %rdi
xorl %r10d, %r10d
xorl %r11d, %r11d
movq 0x20(%rsp), %rsi
cmpq %r13, %r10
jae 0x5eb39
movl (%r9,%r10,4), %ebp
movslq %r11d, %r14
movq 0x732a9(%rip), %r15     # 0xd1da0
cmpl %ebp, (%r15)
je 0x5eb21
leaq (%rax,%r10), %r15
movq %r15, %r12
shrq $0x6, %r12
movq 0x10(%rsi,%r12,8), %r12
btq %r15, %r12
jb 0x5eb1c
movl %ebp, (%rdi,%r14,4)
incl %r14d
movl %r14d, %r11d
incq %r10
jmp 0x5eae4
testl %r11d, %r11d
je 0x5eb2c
movl %ebp, (%rdi,%r14,4)
jmp 0x5eb39
movq 0x731c5(%rip), %rsi     # 0xd1cf8
movl (%rsi), %r9d
movl %r9d, (%rdi)
incq %rdx
movq (%rsp), %rsi
movq 0x18(%rsi), %rdi
jmp 0x5eab1
movq 0x58(%rsp), %r15
cmpl %r15d, %r12d
jne 0x5f342
cmpl $0x1, %ebx
je 0x5ed6a
movl 0x44(%rsp), %r8d
cmpl $0x2, %ebx
jne 0x5eed3
xorl %r9d, %r9d
xorl %edx, %edx
shrq $0x28, %rdi
cmpq %rdi, %rdx
jae 0x5eece
movq 0x10(%rsp), %rdi
movq %rdx, %rcx
imulq 0x50(%rsp), %rcx
leaq (%rdi,%rcx,4), %rcx
movq %rdx, %rsi
imulq 0xe0(%rsp), %rsi
leaq (%rdi,%rsi,4), %r8
movq 0x731f7(%rip), %rax     # 0xd1da0
movl (%rax), %r10d
movq %r9, 0x28(%rsp)
addq %r9, %rdi
xorl %r9d, %r9d
movq 0x20(%rsp), %rsi
cmpq %r9, 0x50(%rsp)
je 0x5ebce
cmpl (%rdi,%r9,4), %r10d
je 0x5ebd3
incq %r9
jmp 0x5ebbc
movq 0x58(%rsp), %r9
cmpl 0x18(%rsp), %r9d
jne 0x5ec1e
xorl %r9d, %r9d
xorl %r10d, %r10d
movq 0xb8(%rsp), %rax
movslq %r10d, %r11
cmpq %r9, %rax
je 0x5ecae
movq %r9, %rsi
shrq $0x6, %rsi
movq 0x20(%rsp), %rax
movq 0x10(%rax,%rsi,8), %rsi
btq %r9, %rsi
jb 0x5ec19
movl (%rdi,%r9,4), %esi
movl %esi, (%r8,%r11,4)
incl %r11d
movl %r11d, %r10d
incq %r9
jmp 0x5ebe0
xorl %ecx, %ecx
xorl %r10d, %r10d
pushq $-0x1
popq %r9
cmpl 0x18(%rsp), %ecx
jge 0x5ecba
movslq %ecx, %r11
movq %r11, %r14
pushq $0x1
popq %r15
shlq %cl, %r15
shrq $0x6, %r14
movslq %r9d, %r9
incq %r9
xorl %r12d, %r12d
cmpq %r11, %r12
jg 0x5ec97
movl (%rdi,%r9,4), %ebp
movslq %r10d, %r13
movq 0x73142(%rip), %rax     # 0xd1da0
cmpl %ebp, (%rax)
je 0x5ec9e
testq %r15, 0x10(%rsi,%r14,8)
jne 0x5ec8f
movq %r12, %rsi
shrq $0x6, %rsi
movq 0x20(%rsp), %rax
movq 0x10(%rax,%rsi,8), %rsi
btq %r12, %rsi
movq 0x20(%rsp), %rsi
jb 0x5ec8f
movl %ebp, (%r8,%r13,4)
incl %r13d
movl %r13d, %r10d
incq %r12
incq %r9
jmp 0x5ec4b
incl %ecx
decq %r9
jmp 0x5ec27
movl %ebp, (%r8,%r13,4)
movl 0xc4(%rsp), %ecx
jmp 0x5ec27
movq 0x18(%rsp), %rsi
movl (%rcx,%rsi,4), %ecx
movl %ecx, (%r8,%r11,4)
incq %rdx
movq (%rsp), %rcx
movq 0x18(%rcx), %rdi
movq 0x28(%rsp), %r9
addq 0xd8(%rsp), %r9
jmp 0x5eb73
xorl %edx, %edx
shrq $0x28, %rdi
cmpq %rdi, %rdx
jae 0x5eed3
movq 0x10(%rsp), %rdi
movq %rdx, %r9
imulq %r13, %r9
leaq (%rdi,%r9,4), %r9
movq %rdx, %r10
imulq %rcx, %r10
leaq (%rdi,%r10,4), %rdi
xorl %r10d, %r10d
xorl %r11d, %r11d
movq 0x20(%rsp), %rsi
cmpq %r13, %r10
jae 0x5ed5a
movl (%r9,%r10,4), %ebp
movslq %r11d, %r14
cmpl $0x80000001, %ebp       # imm = 0x80000001
je 0x5ed45
leaq (%rax,%r10), %r15
movq %r15, %r12
shrq $0x6, %r12
movq 0x10(%rsi,%r12,8), %r12
btq %r15, %r12
jb 0x5ed40
movl %ebp, (%rdi,%r14,4)
incl %r14d
movl %r14d, %r11d
incq %r10
jmp 0x5ed0c
testl %r11d, %r11d
je 0x5ed54
movl $0x80000001, (%rdi,%r14,4) # imm = 0x80000001
jmp 0x5ed5a
movl $0x80000000, (%rdi)     # imm = 0x80000000
incq %rdx
movq (%rsp), %rsi
movq 0x18(%rsi), %rdi
jmp 0x5ecd9
xorl %eax, %eax
xorl %edx, %edx
movq 0x20(%rsp), %rsi
shrq $0x28, %rdi
cmpq %rdi, %rdx
jae 0x5eece
movq 0x10(%rsp), %rdi
movq %rdx, %rcx
imulq 0x50(%rsp), %rcx
leaq (%rdi,%rcx,4), %rcx
movq %rdx, %r8
imulq 0xe0(%rsp), %r8
leaq (%rdi,%r8,4), %r8
movq %rax, 0x28(%rsp)
addq %rax, %rdi
xorl %r9d, %r9d
cmpq %r9, 0x50(%rsp)
je 0x5edc3
cmpl $0x80000001, (%rdi,%r9,4) # imm = 0x80000001
je 0x5edc8
incq %r9
jmp 0x5edad
movq 0x58(%rsp), %r9
cmpl 0x18(%rsp), %r9d
jne 0x5ee0b
xorl %r9d, %r9d
xorl %r10d, %r10d
movslq %r10d, %r11
cmpq %r9, 0xb8(%rsp)
je 0x5eea0
movq %r9, %r14
shrq $0x6, %r14
movq 0x10(%rsi,%r14,8), %r14
btq %r9, %r14
jb 0x5ee06
movl (%rdi,%r9,4), %r10d
movl %r10d, (%r8,%r11,4)
incl %r11d
movl %r11d, %r10d
incq %r9
jmp 0x5edd5
xorl %ecx, %ecx
xorl %r10d, %r10d
pushq $-0x1
popq %r9
cmpl 0x18(%rsp), %ecx
jge 0x5eeb1
movslq %ecx, %r11
movq %r11, %r14
pushq $0x1
popq %r15
shlq %cl, %r15
shrq $0x6, %r14
movslq %r9d, %r9
incq %r9
xorl %esi, %esi
cmpq %r11, %rsi
jg 0x5ee7b
movl (%rdi,%r9,4), %ebp
movslq %r10d, %r13
cmpl $0x80000001, %ebp       # imm = 0x80000001
je 0x5ee87
movq 0x20(%rsp), %rax
testq %r15, 0x10(%rax,%r14,8)
jne 0x5ee73
movq %rsi, %r12
shrq $0x6, %r12
movq 0x10(%rax,%r12,8), %r12
btq %rsi, %r12
jb 0x5ee73
movl %ebp, (%r8,%r13,4)
incl %r13d
movl %r13d, %r10d
incq %rsi
incq %r9
jmp 0x5ee37
incl %ecx
decq %r9
movq 0x20(%rsp), %rsi
jmp 0x5ee14
movl $0x80000001, (%r8,%r13,4) # imm = 0x80000001
movl 0xc4(%rsp), %ecx
movq 0x20(%rsp), %rsi
jmp 0x5ee14
movq 0x18(%rsp), %rsi
movl (%rcx,%rsi,4), %ecx
movq 0x20(%rsp), %rsi
movl %ecx, (%r8,%r11,4)
incq %rdx
movq (%rsp), %rcx
movq 0x18(%rcx), %rdi
movq 0x28(%rsp), %rax
addq 0xd8(%rsp), %rax
jmp 0x5ed73
movl 0x44(%rsp), %r8d
imull 0x30(%rsp), %r8d
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
movq 0x38(%rsp), %r14
movslq (%r14), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rdx
movq 0x10(%rsp), %rcx
movq (%rsp), %rsi
movl %ebx, %r9d
callq 0x14590
testl %eax, %eax
movq 0x80(%rsp), %rdi
js 0x5f1b9
incq %rdi
jmp 0x5e3f4
xorl %ebx, %ebx
jmp 0x5f21c
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
movq 0x38(%rsp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rbx
movq (%rsp), %r15
movq %r15, %rsi
callq 0x5f4c0
movq (%r15), %r9
incq %r9
cmpl $0x2, 0x98(%rsp)
pushq $0x41
popq %rcx
pushq $0x52
popq %r10
cmovel %ecx, %r10d
subq $0x8, %rsp
leaq 0x4aef4(%rip), %rsi     # 0xa9e5f
leaq 0x4b189(%rip), %rdx     # 0xaa0fb
pushq $0x1
popq %rdi
movq %rbx, %rcx
movq %rax, %r8
xorl %eax, %eax
pushq %r14
pushq 0xf8(%rsp)
pushq %r10
jmp 0x5f02c
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
movq 0x38(%rsp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rbx
movq (%rsp), %r14
movq %r14, %rsi
callq 0x5f4c0
movq (%r14), %r9
incq %r9
subq $0x8, %rsp
leaq 0x4ae9c(%rip), %rsi     # 0xa9e5f
leaq 0x4b107(%rip), %rdx     # 0xaa0d1
pushq $0x1
popq %rdi
movq %rbx, %rcx
movq %rax, %r8
xorl %eax, %eax
pushq %r15
jmp 0x5f212
movq %rsi, %r12
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
movq 0x38(%rsp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rbx
movq (%rsp), %r15
movq %r15, %rsi
callq 0x5f4c0
movq (%r15), %r9
incq %r9
subq $0x8, %rsp
leaq 0x4ae4a(%rip), %rsi     # 0xa9e5f
leaq 0x4b137(%rip), %rdx     # 0xaa153
pushq $0x1
popq %rdi
movq %rbx, %rcx
movq %rax, %r8
xorl %eax, %eax
pushq %r14
pushq %r12
pushq %rbp
callq 0x15830
addq $0x20, %rsp
jmp 0x5f219
movq %rsi, %r12
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
movq 0x38(%rsp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rbx
movq (%rsp), %r15
movq %r15, %rsi
callq 0x5f4c0
movq (%r15), %r9
incq %r9
leaq 0x4adf0(%rip), %rsi     # 0xa9e5f
leaq 0x4b14c(%rip), %rdx     # 0xaa1c2
pushq $0x1
popq %rdi
movq %rbx, %rcx
movq %rax, %r8
xorl %eax, %eax
pushq %r14
jmp 0x5f167
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
movslq (%r15), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %r15
movq (%rsp), %r12
movq %r12, %rsi
callq 0x5f4c0
movq (%r12), %r9
incq %r9
cmpl $0x2, %ebx
pushq $0x41
popq %rcx
pushq $0x52
popq %r10
cmovel %ecx, %r10d
subq $0x8, %rsp
leaq 0x4ad97(%rip), %rsi     # 0xa9e5f
leaq 0x4adfc(%rip), %rdx     # 0xa9ecb
pushq $0x1
popq %rdi
movq %r15, %rcx
movq %rax, %r8
xorl %eax, %eax
pushq %r14
pushq %r13
jmp 0x5ef86
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
movq 0x28(%rsp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rbx
movq (%rsp), %r14
movq %r14, %rsi
callq 0x5f4c0
movq (%r14), %r9
incq %r9
leaq 0x4ad4a(%rip), %rsi     # 0xa9e5f
leaq 0x4ae05(%rip), %rdx     # 0xa9f21
jmp 0x5f15a
movq %rsi, %r12
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
movq 0x28(%rsp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rbx
movq (%rsp), %r14
movq %r14, %rsi
callq 0x5f4c0
movq (%r14), %r9
incq %r9
leaq 0x4ad0c(%rip), %rsi     # 0xa9e5f
leaq 0x4ae99(%rip), %rdx     # 0xa9ff3
pushq $0x1
popq %rdi
movq %rbx, %rcx
movq %rax, %r8
xorl %eax, %eax
pushq %r15
pushq %r12
jmp 0x5f212
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
movq 0x28(%rsp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rbx
movq (%rsp), %r14
movq %r14, %rsi
callq 0x5f4c0
movq (%r14), %r9
incq %r9
leaq 0x4acbf(%rip), %rsi     # 0xa9e5f
leaq 0x4adf7(%rip), %rdx     # 0xa9f9e
pushq $0x1
popq %rdi
movq %rbx, %rcx
movq %rax, %r8
xorl %eax, %eax
pushq %r15
jmp 0x5f336
movl %eax, %ebx
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
movslq (%r14), %rcx
jmp 0x5f1da
movq %rbx, %rcx
movl %eax, %ebx
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
movslq (%rcx), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %r15
movq (%rsp), %r14
movq %r14, %rsi
callq 0x5f4c0
movq (%r14), %r9
incq %r9
subq $0x8, %rsp
leaq 0x4ac60(%rip), %rsi     # 0xa9e5f
leaq 0x4b01c(%rip), %rdx     # 0xaa222
pushq $0x1
popq %rdi
movq %r15, %rcx
movq %rax, %r8
xorl %eax, %eax
pushq %rbx
callq 0x15830
popq %rax
popq %rcx
pushq $-0x1
popq %rbx
movq 0x70(%rsp), %rdi
callq 0x14e30
movq 0xc8(%rsp), %rdi
callq 0x14e30
movq 0x10(%rsp), %rdi
callq 0x14e30
movl %ebx, %eax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %r12
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
movslq (%r15), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rbx
movq (%rsp), %r14
movq %r14, %rsi
callq 0x5f4c0
movq (%r14), %r9
incq %r9
leaq 0x4abde(%rip), %rsi     # 0xa9e5f
leaq 0x4ac99(%rip), %rdx     # 0xa9f21
pushq $0x1
popq %rdi
movq %rbx, %rcx
movq %rax, %r8
xorl %eax, %eax
pushq %r12
pushq 0x60(%rsp)
jmp 0x5f212
movl %eax, %ebx
movq 0x8(%rsp), %rdi
movq (%rsp), %r14
movq %r14, %rsi
callq 0x5f4c0
movq (%r14), %r8
incq %r8
leaq 0x4aba1(%rip), %rsi     # 0xa9e5f
leaq 0x4ade2(%rip), %rdx     # 0xaa0a7
pushq $0x1
popq %rdi
movq %rax, %rcx
movl %ebx, %r9d
jmp 0x5e2c7
leaq 0x4ab85(%rip), %rsi     # 0xa9e5f
leaq 0x495d1(%rip), %rdx     # 0xa88b2
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x15830
jmp 0x5f219
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
movq 0x38(%rsp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rbx
movq (%rsp), %r14
movq %r14, %rsi
callq 0x5f4c0
movq (%r14), %r9
incq %r9
leaq 0x4ab3d(%rip), %rsi     # 0xa9e5f
leaq 0x4af23(%rip), %rdx     # 0xaa24c
pushq $0x1
popq %rdi
movq %rbx, %rcx
movq %rax, %r8
xorl %eax, %eax
pushq %r12
pushq 0x90(%rsp)
jmp 0x5f212
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
movq 0x38(%rsp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rbx
movq (%rsp), %r14
movq %r14, %rsi
callq 0x5f4c0
movq (%r14), %r9
incq %r9
leaq 0x4aaeb(%rip), %rsi     # 0xa9e5f
leaq 0x4af7f(%rip), %rdx     # 0xaa2fa
pushq $0x1
popq %rdi
movq %rbx, %rcx
movq %rax, %r8
xorl %eax, %eax
pushq %r12
jmp 0x5efd5
movq 0x8(%rsp), %rdi
movq 0x10(%rdi), %rax
movq 0x38(%rsp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rbx
movq (%rsp), %r14
movq %r14, %rsi
callq 0x5f4c0
movq (%r14), %r9
incq %r9
leaq 0x4aaa0(%rip), %rsi     # 0xa9e5f
leaq 0x4aedd(%rip), %rdx     # 0xaa2a3
pushq $0x1
popq %rdi
movq %rbx, %rcx
movq %rax, %r8
xorl %eax, %eax
pushq %r12
pushq 0x20(%rsp)
jmp 0x5f212