// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Purge_Dups.cpp
// Function: hap_alignment_advance_worker(void*, long, int)
static void hap_alignment_advance_worker(void *_data, long eid, int tid)
{
    hap_alignment_struct_pip* hap_buf = (hap_alignment_struct_pip*)_data;
    ma_ug_t *ug = hap_buf->ug;
    asg_t *read_g = hap_buf->read_g;
    ma_hit_t_alloc* sources = hap_buf->sources;
    ma_hit_t_alloc* reverse_sources = hap_buf->reverse_sources;
    R_to_U* ruIndex = hap_buf->ruIndex;
    ma_sub_t *coverage_cut = hap_buf->coverage_cut;
    uint64_t* position_index = hap_buf->position_index;
    float Hap_rate = hap_buf->Hap_rate/**MIN(hap_buf->Hap_rate, 0.2)**/, sim;
    int max_hang = hap_buf->max_hang;
    int min_ovlp = hap_buf->min_ovlp;
    float chain_rate = hap_buf->chain_rate;
    hap_overlaps_list* all_ovlp = hap_buf->all_ovlp;
    uint32_t Input_uId = eid;
    uint64_t* vote_counting = hap_buf->buf[tid].vote_counting;
    uint8_t* visit = hap_buf->buf[tid].visit;
    kvec_t_u64_warp* u_vecs = &(hap_buf->buf[tid].u_vecs);
    kvec_asg_arc_t_offset* u_buffer = &(hap_buf->buf[tid].u_buffer);
    kvec_hap_candidates* u_can = &(hap_buf->buf[tid].u_can);
    kvec_t_i32_warp* score_vc = &(hap_buf->buf[tid].u_buffer_tailIndex);
    kvec_t_i32_warp* prevIndex_vec = &(hap_buf->buf[tid].u_buffer_prevIndex);
    kvec_t_i32_warp* begIndex_vec = &(hap_buf->buf[tid].u_buffer_beg);
    kvec_t_u8_warp* flag_vec = &(hap_buf->buf[tid].u_buffer_flag);
    uint64_t cov_threshold = hap_buf->cov_threshold;
    hap_cov_t *cov = hap_buf->cov;
    uint8_t *hh = hap_buf->hh, hhc;
    if(hap_buf->cov_threshold < 0) cov_threshold = (uint64_t)-1;
    ma_utg_t *xReads = NULL, *yReads = NULL;
    ma_hit_t_alloc *xR = NULL;
    ma_hit_t *h = NULL;
    ma_sub_t *sq = NULL, *st = NULL;
    asg_t* nsg = ug->g;
    uint32_t i, j, v, rId, k, is_Unitig, Hap_uId, xUid, yUid, seedOcc;
    uint64_t tmp, max_weight, m;
    long long r_x_pos_beg, r_x_pos_end, r_y_pos_beg, r_y_pos_end, max_score;
    int32_t r;
    asg_arc_t t;
    asg_arc_t_offset t_offset;
    hap_overlaps hap_align;
    hap_overlaps *hap_align_x = NULL;
    xUid = Input_uId;
    if(nsg->seq[xUid].del || nsg->seq[xUid].c == ALTER_LABLE) return;
    memset(vote_counting, 0, sizeof(uint64_t)*nsg->n_seq);
    memset(visit, 0, nsg->n_seq);
    u_vecs->a.n = 0;
    u_can->a.n = 0;

    xReads = &(ug->u.a[xUid]);
    for (i = 0; i < xReads->n; i++)
    {
        xR = &(reverse_sources[xReads->a[i]>>33]);
        
        for (k = 0; k < xR->length; k++)
        {
            rId = Get_tn(xR->buffer[k]);
        
            if(read_g->seq[rId].del == 1)
            {
                ///get the id of read that contains it 
                get_R_to_U(ruIndex, rId, &rId, &is_Unitig);
                if(rId == (uint32_t)-1 || is_Unitig == 1 || read_g->seq[rId].del == 1) continue;
            }

            ///there are two cases: 
            ///1. read at primary contigs, get_R_to_U() return its corresponding contig Id  
            ///2. read at alternative contigs, get_R_to_U() return (uint32_t)-1
            get_R_to_U(ruIndex, rId, &Hap_uId, &is_Unitig);
            if(is_Unitig == 0 || Hap_uId == (uint32_t)-1) continue;
            ///here rId is the id of the read coming from the different haplotype
            ///Hap_cId is the id of the corresponding contig (note here is the contig, instead of untig)
            if(visit[Hap_uId]!=0) continue; ///one read only has one vote for one hap unitig
            visit[Hap_uId] = 1;
            if(vote_counting[Hap_uId] < UINT64_MAX) vote_counting[Hap_uId]++;
        }

        clean_visit_flag(visit, read_g, ruIndex, nsg->n_seq, xR);
    }



    u_vecs->a.n = 0;
    for (i = 0; i < nsg->n_seq; i++)
    {
        if(i == xUid) continue;
        if(vote_counting[i] == 0) continue;
        tmp = vote_counting[i]; tmp = tmp << 32; tmp = tmp | (uint64_t)i;
        kv_push(uint64_t, u_vecs->a, tmp);
    }

    if(u_vecs->a.n == 0) return;
    sort_kvec_t_u64_warp(u_vecs, 1);


    ///scan each candidate unitig
    for (i = 0; i < u_vecs->a.n; i++)
    {
        yUid = (uint32_t)u_vecs->a.a[i];
        seedOcc = u_vecs->a.a[i]>>32;
        xReads = &(ug->u.a[xUid]);
        yReads = &(ug->u.a[yUid]);
        u_buffer->a.n = 0;

        for (k = 0; k < xReads->n; k++)
        {
            xR = &(reverse_sources[xReads->a[k]>>33]);
            hhc = hh[xReads->a[k]>>33];
            for (j = 0; j < xR->length; j++)
            {
                h = &(xR->buffer[j]);
                sq = &(coverage_cut[Get_qn(*h)]);
                st = &(coverage_cut[Get_tn(*h)]);
                if(st->del || read_g->seq[Get_tn(*h)].del) continue;

                r = ma_hit2arc(h, sq->e - sq->s, st->e - st->s, max_hang, 
                                asm_opt.max_hang_rate, min_ovlp, &t);
                ///if it is a contained overlap, skip
                if(r < 0) continue;

                rId = t.v>>1;
                if(read_g->seq[rId].del == 1) continue;
                ///there are two cases: 
                ///1. read at primary contigs, get_R_to_U() return its corresponding contig Id  
                ///2. read at alternative contigs, get_R_to_U() return (uint32_t)-1
                get_R_to_U(ruIndex, rId, &Hap_uId, &is_Unitig);
                if(is_Unitig == 0 || Hap_uId == (uint32_t)-1) continue;
                if(Hap_uId != yUid) continue;

                v = xReads->a[k]>>32;
                get_R_to_U(ruIndex, v>>1, &Hap_uId, &is_Unitig);
                if(is_Unitig == 0 || Hap_uId == (uint32_t)-1) continue;
                if(Hap_uId != xUid) continue;
                if((uint32_t)(position_index[v>>1]) != k) continue;

                if(asm_opt.purge_level_primary <= 2 &&
                    (prefilter((uint32_t)(position_index[v>>1]), (uint32_t)(position_index[rId]), 
                    xReads->n, yReads->n, 0, Hap_rate, seedOcc)==NON_PLOID) && 
                   (prefilter((uint32_t)(position_index[v>>1]), (uint32_t)(position_index[rId]), 
                    xReads->n, yReads->n, 1, Hap_rate, seedOcc)==NON_PLOID))
                {
                    continue;
                }
            
                t_offset.Off = get_xy_pos(read_g, &t, v, (yReads->a[(uint32_t)(position_index[rId])])>>32, 
                xReads->len, yReads->len, position_index, &(t.el));
                if(((t_offset.Off>>32) == (uint32_t)-1) || (((uint32_t)t_offset.Off) == (uint32_t)-1)) continue;

                t_offset.x = t;
                t_offset.weight = hhc;

                kv_push(asg_arc_t_offset, u_buffer->a, t_offset);
            }

            deduplicate_edge(u_buffer);
        }

        if(u_buffer->a.n == 0) continue;

        
        get_candidate_hap_alignment(u_can, u_buffer, score_vc, prevIndex_vec, begIndex_vec,
        flag_vec, chain_rate, 50, xReads->len, yReads->len);

        if(u_can->a.n == 0) continue;
        
        qsort(u_can->a.a, u_can->a.n, sizeof(hap_candidates), cmp_hap_candidates);

        memset(&hap_align, 0, sizeof(hap_overlaps));    
        m = all_ovlp->x[xUid].a.n;     
        max_weight = 0; max_score = 0;
        for (k = 0; k < u_can->a.n; k++)
        {
            if(u_can->a.a[k].weight < max_weight*0.33) continue;
            if(calculate_pair_hap_similarity_advance(&(u_can->a.a[k]), position_index, xUid, yUid, 
            xReads, yReads, sources, reverse_sources, read_g, ruIndex, coverage_cut, Hap_rate,
            (asm_opt.purge_level_primary<=2? 0:1), max_hang, min_ovlp, cov_threshold, u_buffer, 
            score_vc, prevIndex_vec, cov, &r_x_pos_beg, &r_x_pos_end, &r_y_pos_beg, &r_y_pos_end, &sim)!=PLOID)
            {
                continue;
            }
            ///max_weight == 0 means the first matched chain
            if(max_weight == 0 || max_score < u_can->a.a[k].score) max_score = u_can->a.a[k].score;
            if(max_weight < u_can->a.a[k].weight) max_weight = u_can->a.a[k].weight;
            ///if one is positive and another one is negative, it is wrong
            if(!filter_secondary_chain(max_score, u_can->a.a[k].score, CHAIN_FILTER_RATE)) continue;
                            
            hap_align.rev = Get_rev(u_can->a.a[k]);
            hap_align.type = Get_type(u_can->a.a[k]);
            hap_align.x_beg_id = Get_x_beg(u_can->a.a[k]);
            hap_align.x_end_id = Get_x_end(u_can->a.a[k]) + 1;
            hap_align.y_beg_id = Get_y_beg(u_can->a.a[k]);
            hap_align.y_end_id = Get_y_end(u_can->a.a[k]) + 1;
            hap_align.weight = Get_match(u_can->a.a[k]);
            hap_align.score = u_can->a.a[k].score;
            hap_align.x_beg_pos = r_x_pos_beg;
            hap_align.x_end_pos = r_x_pos_end + 1;
            if(hap_align.rev == 0)
            {
                hap_align.y_beg_pos = r_y_pos_beg;
                hap_align.y_end_pos = r_y_pos_end + 1;
            }
            else
            {
                hap_align.y_beg_pos = yReads->len - r_y_pos_end - 1;
                hap_align.y_end_pos = yReads->len - r_y_pos_beg - 1 + 1;
            }
            hap_align.xUid = xUid;
            hap_align.yUid = yUid;
            hap_align.status = SELF_EXIST;
            hap_align.s = sim;
            kv_push(hap_overlaps, all_ovlp->x[hap_align.xUid].a, hap_align);
        }
        /**
        ///chains with same xUid && yUid
        for (k = m; k < all_ovlp->x[xUid].a.n; k++)
        {
            if(!filter_secondary_chain(max_score, 
                        all_ovlp->x[xUid].a.a[k].score, CHAIN_FILTER_RATE))
            {
                continue;
            } 
            all_ovlp->x[xUid].a.a[m] = all_ovlp->x[xUid].a.a[k];
            m++;
        }
        all_ovlp->x[xUid].a.n = m;
        **/

        hap_align_x = NULL;
        for (k = m; k < all_ovlp->x[xUid].a.n; k++)
        {
            if(all_ovlp->x[xUid].a.a[k].score != max_score) continue;
            if(hap_align_x == NULL || all_ovlp->x[xUid].a.a[k].weight > hap_align_x->weight)
            {
                hap_align_x = &(all_ovlp->x[xUid].a.a[k]);
            }
            else if(all_ovlp->x[xUid].a.a[k].weight == hap_align_x->weight)
            {
                if((all_ovlp->x[xUid].a.a[k].x_end_pos 
                            - all_ovlp->x[xUid].a.a[k].x_beg_pos) < 
                    (hap_align_x->x_end_pos - hap_align_x->x_beg_pos))
                {
                    hap_align_x = &(all_ovlp->x[xUid].a.a[k]);
                }
            }
        }
        if(hap_align_x)
        {
            all_ovlp->x[xUid].a.a[m] = (*hap_align_x);
            all_ovlp->x[xUid].a.n = m + 1;
        }
    }
    // filter_secondary_ovlp(&all_ovlp->x[xUid], u_vecs, hap_buf->Hap_rate, 0.7);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq 0x18(%rdi), %rcx
movq 0x68(%rdi), %rax
testq %rax, %rax
movq $-0x1, %r8
cmovnsq %rax, %r8
movq %r8, 0x200(%rsp)
movq %rcx, 0x1c8(%rsp)
movq 0x18(%rcx), %rax
movq %rax, 0x98(%rsp)
movq 0x20(%rax), %rax
movq %rsi, 0x190(%rsp)
movl %esi, %r12d
cmpl $0x0, (%rax,%r12,8)
js 0x1176c0
cmpb $0x1, 0x4(%rax,%r12,8)
je 0x1176c0
movq 0x20(%rdi), %rax
movq %rax, 0x90(%rsp)
movq 0x30(%rdi), %rax
movq %rax, 0x140(%rsp)
movq 0x38(%rdi), %rax
movq %rax, 0x100(%rsp)
movq 0x40(%rdi), %rax
movq %rax, 0xf8(%rsp)
movq 0x48(%rdi), %rax
movq %rax, 0x188(%rsp)
movss 0x50(%rdi), %xmm0
movss %xmm0, 0x108(%rsp)
movl 0x54(%rdi), %eax
movl %eax, 0xd4(%rsp)
movl 0x58(%rdi), %eax
movl %eax, 0xd0(%rsp)
movss 0x5c(%rdi), %xmm0
movss %xmm0, 0x1b0(%rsp)
movq 0x60(%rdi), %rax
movq %rax, 0x168(%rsp)
movslq %edx, %rax
imulq $0xf0, %rax, %rcx
movq (%rdi), %rsi
movq 0x10(%rdi), %rax
movq %rax, 0x208(%rsp)
leaq (%rsi,%rcx), %r13
addq $0x10, %r13
movq 0x70(%rdi), %rax
movq %rax, 0x1f8(%rsp)
movq 0x98(%rsp), %rbx
movl 0x14(%rbx), %edx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andq %rax, %rdx
shlq $0x3, %rdx
movq -0x10(%r13), %rdi
movq -0x8(%r13), %r15
movq %rcx, 0xb0(%rsp)
movq %rsi, 0xc0(%rsp)
leaq (%rsi,%rcx), %rbp
addq $0xd0, %rbp
xorl %r14d, %r14d
movq %rdi, 0xc8(%rsp)
xorl %esi, %esi
callq 0x20e0
movl 0x14(%rbx), %edx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andq %rax, %rdx
movq %r15, %rdi
xorl %esi, %esi
callq 0x20e0
movq %r13, 0x160(%rsp)
movq %r14, (%r13)
movq %rbp, 0x1e0(%rsp)
movq %r14, (%rbp)
movq 0x1c8(%rsp), %rax
movq 0x10(%rax), %rax
movq %r12, 0x1c0(%rsp)
leaq (%r12,%r12,4), %rcx
movq %rcx, 0x120(%rsp)
cmpl $0x0, 0x10(%rax,%rcx,8)
je 0x116694
movq 0x120(%rsp), %rcx
leaq (%rax,%rcx,8), %rcx
xorl %r13d, %r13d
leaq 0xa4(%rsp), %rbp
movq %rcx, 0xb8(%rsp)
movq 0x18(%rcx), %rax
movq (%rax,%r13,8), %rax
shrq $0x21, %rax
leaq (%rax,%rax,2), %rax
movq 0x140(%rsp), %rcx
cmpl $0x0, 0xc(%rcx,%rax,8)
je 0x11667d
leaq (%rcx,%rax,8), %rbx
movl $0xc, %r14d
xorl %r12d, %r12d
movq (%rbx), %rax
movl (%rax,%r14), %esi
movl %esi, 0xdc(%rsp)
movq 0x90(%rsp), %rax
movq 0x20(%rax), %rax
cmpl $0x0, (%rax,%rsi,8)
js 0x116526
movq 0x100(%rsp), %rdi
leaq 0xd8(%rsp), %rdx
movq %rbp, %rcx
callq 0xa3c62
cmpl $0x0, 0xa4(%rsp)
sete %cl
movl 0xd8(%rsp), %eax
cmpl $-0x1, %eax
sete %dl
orb %cl, %dl
jne 0x11656f
movl %eax, %eax
cmpb $0x0, (%r15,%rax)
jne 0x11656f
movb $0x1, (%r15,%rax)
movq 0xc8(%rsp), %rcx
movq (%rcx,%rax,8), %rcx
cmpq $-0x1, %rcx
je 0x11656f
incq %rcx
movq 0xc8(%rsp), %rdx
movq %rcx, (%rdx,%rax,8)
jmp 0x11656f
movq 0x100(%rsp), %rdi
leaq 0xdc(%rsp), %rdx
movq %rbp, %rcx
callq 0xa3c62
movl 0xdc(%rsp), %esi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, %rsi
je 0x11656f
cmpl $0x1, 0xa4(%rsp)
je 0x11656f
movq 0x90(%rsp), %rax
movq 0x20(%rax), %rax
cmpl $0x0, (%rax,%rsi,8)
jns 0x1164c1
incq %r12
movl 0xc(%rbx), %eax
addq $0x28, %r14
cmpq %rax, %r12
jb 0x1164a1
movq 0x98(%rsp), %rcx
movl 0x14(%rcx), %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
leal (%rax,%rax), %ecx
cmpl %edx, %ecx
jbe 0x1165a9
movq %r15, %rdi
xorl %esi, %esi
callq 0x20e0
jmp 0x11667d
testl %eax, %eax
je 0x11667d
movl $0xc, %r14d
xorl %r12d, %r12d
movq (%rbx), %rax
movl (%rax,%r14), %esi
movl %esi, 0x180(%rsp)
movq 0x90(%rsp), %rax
movq 0x20(%rax), %rax
cmpl $0x0, (%rax,%rsi,8)
js 0x11661c
movq 0x100(%rsp), %rdi
leaq 0x178(%rsp), %rdx
leaq 0x150(%rsp), %rcx
callq 0xa3c62
cmpl $0x0, 0x150(%rsp)
sete %cl
movl 0x178(%rsp), %eax
cmpl $-0x1, %eax
sete %dl
orb %cl, %dl
jne 0x11666a
movl %eax, %eax
movb $0x0, (%r15,%rax)
jmp 0x11666a
movq 0x100(%rsp), %rdi
leaq 0x180(%rsp), %rdx
leaq 0x150(%rsp), %rcx
callq 0xa3c62
movl 0x180(%rsp), %esi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, %rsi
je 0x11666a
cmpl $0x1, 0x150(%rsp)
je 0x11666a
movq 0x90(%rsp), %rax
movq 0x20(%rax), %rax
cmpl $0x0, (%rax,%rsi,8)
jns 0x1165da
incq %r12
movl 0xc(%rbx), %eax
addq $0x28, %r14
cmpq %rax, %r12
jb 0x1165ba
incq %r13
movq 0xb8(%rsp), %rcx
movl 0x10(%rcx), %eax
cmpq %rax, %r13
jb 0x116471
movq 0x160(%rsp), %r13
movq $0x0, (%r13)
movq 0x98(%rsp), %rax
movl 0x14(%rax), %eax
testl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq 0x1c0(%rsp), %r12
movq 0x120(%rsp), %rbp
je 0x1176c0
movq 0xb0(%rsp), %rdx
movq 0xc0(%rsp), %rsi
leaq (%rsi,%rdx), %rcx
movq %rcx, 0xa8(%rsp)
leaq (%rsi,%rdx), %rcx
addq $0x30, %rcx
movq %rcx, 0x1a0(%rsp)
leaq 0x50(%rsi,%rdx), %rcx
movq %rcx, 0x1d8(%rsp)
leaq 0x70(%rsi,%rdx), %rcx
movq %rcx, 0x1d0(%rsp)
leaq 0xb0(%rsi,%rdx), %rcx
movq %rcx, 0x1f0(%rsp)
leaq (%rsi,%rdx), %rcx
addq $0x90, %rcx
movq %rcx, 0x1e8(%rsp)
xorl %ebx, %ebx
movq 0xa8(%rsp), %r14
cmpq %rbx, %r12
je 0x1167a7
movq 0xc8(%rsp), %rcx
movq (%rcx,%rbx,8), %r15
testq %r15, %r15
je 0x1167a7
movq 0x10(%r14), %rcx
movq 0x20(%r14), %rax
cmpq 0x18(%r14), %rcx
jne 0x116789
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
movl $0x2, %ecx
cmoveq %rcx, %rsi
movq %rsi, 0x18(%r14)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0x20(%r14)
movq 0x10(%r14), %rcx
shlq $0x20, %r15
addq %rbx, %r15
leaq 0x1(%rcx), %rdx
movq %rdx, (%r13)
movq %r15, (%rax,%rcx,8)
movq 0x98(%rsp), %rax
movl 0x14(%rax), %eax
incq %rbx
movl %eax, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpq %rcx, %rbx
jb 0x11673d
cmpq $0x0, (%r13)
movq 0x90(%rsp), %r15
movq 0x140(%rsp), %rbx
movq 0xa8(%rsp), %r14
je 0x1176c0
movq %r13, %rdi
movl $0x1, %esi
callq 0xa041c
cmpq $0x0, (%r13)
je 0x1176c0
xorl %ecx, %ecx
leaq (%r12,%r12,2), %r11
movl %eax, 0x10c(%rsp)
movq %r11, 0x130(%rsp)
movq 0x20(%r14), %rax
movq (%rax,%rcx,8), %rdx
movq 0x1c8(%rsp), %rax
movq 0x10(%rax), %rax
movq $0x0, 0x30(%r14)
cmpl $0x0, 0x10(%rax,%rbp,8)
je 0x1176b4
movq %rcx, 0x128(%rsp)
leaq (%rax,%rbp,8), %rsi
movl %edx, %ecx
leaq (%rcx,%rcx,4), %rcx
leaq (%rax,%rcx,8), %rax
movq %rax, 0x138(%rsp)
movq %rdx, 0x170(%rsp)
movq %rdx, %rax
shrq $0x20, %rax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movss %xmm0, 0x158(%rsp)
xorl %ecx, %ecx
movq 0xf8(%rsp), %rbp
movq %rsi, 0x118(%rsp)
movq 0x18(%rsi), %rax
movq %rcx, 0x148(%rsp)
movq (%rax,%rcx,8), %rax
shrq $0x21, %rax
leaq (%rax,%rax,2), %rcx
cmpl $0x0, 0xc(%rbx,%rcx,8)
je 0x117008
leaq (%rbx,%rcx,8), %r13
movq 0x208(%rsp), %rcx
movzbl (%rcx,%rax), %eax
movq %rax, 0x198(%rsp)
movl $0x21, %r12d
xorl %r14d, %r14d
movq %r13, 0x98(%rsp)
movq (%r13), %rcx
movl -0x15(%rcx,%r12), %ebx
leaq (%rbx,%rbx,2), %rsi
movl (%rbp,%rsi,4), %edx
testl %edx, %edx
js 0x116a2e
movq 0x20(%r15), %rax
cmpl $0x0, (%rax,%rbx,8)
js 0x116a2e
movq %rax, 0xc0(%rsp)
leaq (,%rsi,4), %rsi
addq %rbp, %rsi
movl 0x4(%rsi), %esi
subl %edx, %esi
movq -0x9(%rcx,%r12), %rax
movq %rax, 0xb0(%rsp)
testl %eax, %eax
js 0x116931
movq %r15, %rax
movl -0x11(%rcx,%r12), %r10d
movl -0xd(%rcx,%r12), %r8d
subl %r8d, %esi
movl %esi, %edi
movl %r10d, %esi
jmp 0x116944
movq %r15, %rax
movl -0x11(%rcx,%r12), %r10d
movl -0xd(%rcx,%r12), %r8d
subl %r8d, %esi
movl %r10d, %edi
movq -0x21(%rcx,%r12), %r15
movq %r15, %r9
shrq $0x20, %r9
leaq (%r9,%r9,2), %r9
leaq (,%r9,4), %r9
addq %rbp, %r9
movl 0x4(%r9), %r11d
movl (%r9), %r9d
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl %edx, %r9d
subl %r9d, %r11d
cmpl %r15d, %esi
movq %r15, 0xc8(%rsp)
movl %r15d, %ebp
cmovll %esi, %ebp
movl -0x19(%rcx,%r12), %r9d
movq %r11, 0xb8(%rsp)
movl %r11d, %r13d
subl %r9d, %r13d
cmpl %edi, %r13d
movl %edi, %r11d
cmovll %r13d, %r11d
movl 0xd4(%rsp), %r15d
cmpl %r15d, %ebp
jg 0x116a1b
cmpl %r15d, %r11d
jg 0x116a1b
movl %r9d, %r15d
movq 0xc8(%rsp), %rax
subl %eax, %r15d
cvtsi2ss %r15, %xmm1
addl %ebp, %r15d
addl %r11d, %r15d
cvtsi2ss %r15, %xmm2
leaq 0x17ed82(%rip), %rdx    # 0x295758
movss 0x158(%rdx), %xmm0
mulss %xmm0, %xmm2
ucomiss %xmm1, %xmm2
ja 0x116a09
subl %r10d, %r8d
xorps %xmm1, %xmm1
cvtsi2ss %r8, %xmm1
addl %ebp, %r11d
addl %r8d, %r11d
xorps %xmm2, %xmm2
cvtsi2ss %r11, %xmm2
mulss %xmm2, %xmm0
ucomiss %xmm1, %xmm0
jbe 0x116a47
movq 0x90(%rsp), %r15
movq 0xf8(%rsp), %rbp
jmp 0x116a26
movq 0xf8(%rsp), %rbp
movq %rax, %r15
movq 0x98(%rsp), %r13
incq %r14
movl 0xc(%r13), %eax
addq $0x28, %r12
cmpq %rax, %r14
jb 0x1168ca
jmp 0x117008
cmpl %edi, %r13d
setl %r8b
setg %bpl
cmpl %esi, %eax
setg %r13b
setl %r10b
orb %bpl, %r13b
cmpb $0x1, %r13b
jne 0x116a09
orb %r8b, %r10b
movq 0xf8(%rsp), %rbp
movq 0x98(%rsp), %r13
je 0x116d73
movl 0xd0(%rsp), %r8d
cmpl %r8d, %r15d
jl 0x116d73
cmpl %r8d, %r11d
movq 0x90(%rsp), %r15
jl 0x116a2e
movq 0xb0(%rsp), %r11
testl %r11d, %r11d
setns %r10b
addl %r9d, %edi
movq 0xb8(%rsp), %rax
movl %eax, %r8d
subl %edi, %r8d
movq 0xc8(%rsp), %rax
subl %esi, %eax
setle %r9b
setg %dil
cmovlel %r8d, %eax
shrl $0x10, %r11d
andl $0x4000, %r11d          # imm = 0x4000
movl 0x10c(%rsp), %edx
andl $0x3fff, %edx           # imm = 0x3FFF
orl %r11d, %edx
movzbl (%rcx,%r12), %ecx
shll $0xf, %ecx
orl %edx, %ecx
movl %ecx, 0x10c(%rsp)
testl %eax, %eax
js 0x116a2e
movl %ebx, %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movl %esi, 0xdc(%rsp)
movq 0xc0(%rsp), %rcx
cmpl $0x0, (%rcx,%rsi,8)
js 0x116a2e
movb %r9b, 0xe8(%rsp)
movb %dil, 0xf0(%rsp)
movb %r10b, 0xb0(%rsp)
movq %rax, 0xc0(%rsp)
movq 0x100(%rsp), %rdi
leaq 0xd8(%rsp), %rdx
leaq 0xa4(%rsp), %rcx
callq 0xa3c62
cmpl $0x0, 0xa4(%rsp)
je 0x116a2e
movl 0xd8(%rsp), %eax
cmpl $-0x1, %eax
je 0x116a2e
cmpl 0x170(%rsp), %eax
jne 0x116a2e
movq 0x118(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x148(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x110(%rsp)
movq %rax, %rsi
shrq $0x21, %rsi
movq 0x100(%rsp), %rdi
movq %rsi, 0xe0(%rsp)
leaq 0xd8(%rsp), %rdx
leaq 0xa4(%rsp), %rcx
callq 0xa3c62
cmpl $0x0, 0xa4(%rsp)
je 0x116a2e
movl 0xd8(%rsp), %eax
cmpl $-0x1, %eax
je 0x116a2e
cmpl 0x190(%rsp), %eax
jne 0x116a2e
movq 0x188(%rsp), %rcx
movq 0xe0(%rsp), %rax
movq (%rcx,%rax,8), %r9
movl %r9d, %eax
cmpq %rax, 0x148(%rsp)
jne 0x116a2e
leaq 0x17eb26(%rip), %rax    # 0x295758
cmpl $0x2, 0x130(%rax)
movl 0xdc(%rsp), %eax
movl (%rcx,%rax,8), %eax
movq 0xb8(%rsp), %r8
movb 0xb0(%rsp), %r10b
jg 0x116cdc
movq 0x118(%rsp), %rcx
movl 0x10(%rcx), %edx
movq 0x138(%rsp), %rcx
movl 0x10(%rcx), %ecx
movl %ecx, %esi
subl %eax, %esi
subl %r9d, %edx
cmpl %r9d, %eax
movl %r9d, %edi
cmovbl %eax, %edi
cmpl %esi, %edx
cmovbl %edx, %esi
addl %edi, %esi
je 0x116ca2
movl %esi, %esi
cvtsi2ss %rsi, %xmm0
mulss 0x108(%rsp), %xmm0
ucomiss 0x158(%rsp), %xmm0
jb 0x116cdc
leal 0x1(%rax), %esi
subl %esi, %ecx
cmpl %r9d, %ecx
cmovael %r9d, %ecx
cmpl %esi, %edx
cmovbl %edx, %esi
addl %ecx, %esi
je 0x116a2e
movl %esi, %ecx
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
mulss 0x108(%rsp), %xmm0
ucomiss 0x158(%rsp), %xmm0
jae 0x116a2e
xorl %ecx, %ecx
movb 0xe8(%rsp), %dl
movb %dl, %cl
movq 0xc8(%rsp), %rsi
shrq $0x1f, %rsi
andl $-0x2, %esi
orq %rcx, %rsi
movq 0x110(%rsp), %rdi
shrq $0x20, %rdi
movq 0x138(%rsp), %rdx
movq 0x18(%rdx), %rcx
movq (%rcx,%rax,8), %rax
movq %rax, 0x110(%rsp)
movq 0x118(%rsp), %rax
movl (%rax), %r11d
movq %rsi, %rax
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %r11d
movl (%rdx), %edx
andl %ecx, %edx
cmpl %edi, %eax
movq %rsi, 0xc8(%rsp)
jne 0x116d80
shrq $0x20, %r9
movq 0x20(%r15), %rax
movq 0xe0(%rsp), %rsi
movl (%rax,%rsi,8), %eax
andl %ecx, %eax
addl %eax, %r9d
decl %r9d
movl $0x0, 0xe8(%rsp)
movq 0xc0(%rsp), %rdi
jmp 0x116da0
movq 0x90(%rsp), %r15
jmp 0x116a2e
xorl %eax, %edi
cmpl $0x1, %edi
movq 0xc0(%rsp), %rdi
jne 0x116f5e
shrq $0x20, %r9
movb $0x1, %al
movl %eax, 0xe8(%rsp)
xorb 0xf0(%rsp), %r10b
movzbl %r10b, %eax
leal (%rax,%rbx,2), %r10d
subl %edi, %r8d
andl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
movq 0x110(%rsp), %rbx
movq %rbx, %rax
shrq $0x20, %rax
cmpl %eax, %r10d
movq 0x188(%rsp), %rcx
jne 0x116de7
shrq $0x21, %rbx
movl 0x4(%rcx,%rbx,8), %eax
addl %r8d, %eax
decl %eax
xorl %ecx, %ecx
jmp 0x116e1c
movl %edx, %ebx
xorl %r10d, %eax
cmpl $0x1, %eax
jne 0x116faf
movq 0x110(%rsp), %rdx
shrq $0x21, %rdx
movl 0x4(%rcx,%rdx,8), %eax
movq 0x20(%r15), %rcx
movl (%rcx,%rdx,8), %ecx
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl %edx, %ecx
subl %r8d, %eax
addl %ecx, %eax
movb $0x1, %cl
movl %ebx, %edx
movl %ecx, 0xb0(%rsp)
cmpb %cl, 0xe8(%rsp)
je 0x116e39
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpl %edx, %eax
jae 0x116e3b
notl %eax
addl %edx, %eax
movl %eax, %ecx
cmpl %r11d, %r9d
movl %r9d, %ebx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmovael %eax, %ebx
cmpl %edx, %ecx
movl %ecx, %esi
cmovael %eax, %esi
movq %rsi, 0xf0(%rsp)
cmpl %r11d, %r9d
jae 0x116a2e
cmpl %edx, %ecx
jae 0x116a2e
movq 0xa8(%rsp), %r15
movq 0x30(%r15), %rcx
movq 0x40(%r15), %rax
cmpq 0x38(%r15), %rcx
jne 0x116ec9
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
movl $0x2, %ecx
cmoveq %rcx, %rdx
movq %rdx, 0x38(%r15)
shlq $0x3, %rdx
leaq (%rdx,%rdx,4), %rsi
movq %rax, %rdi
movq %r8, 0xb8(%rsp)
movl %r10d, %r13d
callq 0x2370
movl %r13d, %r10d
movq 0xc0(%rsp), %rdi
movq 0xb8(%rsp), %r8
movq %rax, 0x40(%r15)
movq 0x30(%r15), %rcx
movq 0x90(%rsp), %r15
movq 0xf0(%rsp), %r11
movq 0xc8(%rsp), %rdx
shlq $0x20, %rdx
orq %rdx, %rdi
movl 0xb0(%rsp), %r9d
xorb 0xe8(%rsp), %r9b
shlq $0x20, %rbx
orq %rbx, %r11
leaq 0x1(%rcx), %rdx
movq 0x1a0(%rsp), %rsi
movq %rdx, (%rsi)
leaq (%rcx,%rcx,4), %rcx
movq %rdi, (%rax,%rcx,8)
movl %r10d, 0x8(%rax,%rcx,8)
movl %r8d, 0xc(%rax,%rcx,8)
movl 0x10c(%rsp), %edx
movw %dx, 0x10(%rax,%rcx,8)
movb %r9b, 0x12(%rax,%rcx,8)
movl 0x1bb(%rsp), %edx
movl %edx, 0x13(%rax,%rcx,8)
movb 0x1bf(%rsp), %dl
movb %dl, 0x17(%rax,%rcx,8)
movq %r11, 0x18(%rax,%rcx,8)
movq 0x198(%rsp), %rdx
movq %rdx, 0x20(%rax,%rcx,8)
jmp 0x116a26
movl %r11d, 0xe0(%rsp)
movl %edx, 0x1ac(%rsp)
callq 0x13682
movl 0x1ac(%rsp), %edx
movl 0xe0(%rsp), %r11d
movb 0xb0(%rsp), %r10b
movq 0xc0(%rsp), %rdi
movq 0xb8(%rsp), %r8
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
movl $0x0, 0xe8(%rsp)
jmp 0x116da0
movq %r8, 0xb8(%rsp)
movq %r9, 0xb0(%rsp)
movl %r11d, 0xe0(%rsp)
movl %r10d, 0xf0(%rsp)
callq 0x136a4
movl 0xf0(%rsp), %r10d
movl 0xe0(%rsp), %r11d
movq 0xb0(%rsp), %r9
movq 0xc0(%rsp), %rdi
movq 0xb8(%rsp), %r8
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
jmp 0x116e1a
movq 0x1a0(%rsp), %r12
movq %r12, %rdi
callq 0x10a4c3
movq 0x148(%rsp), %rcx
incq %rcx
movq 0x118(%rsp), %rsi
movl 0x10(%rsi), %eax
cmpq %rax, %rcx
movq 0x140(%rsp), %rbx
jb 0x11687e
cmpq $0x0, (%r12)
movq 0x168(%rsp), %r14
je 0x117597
movq 0x118(%rsp), %rax
movl (%rax), %eax
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andq %rdx, %rax
movq 0x138(%rsp), %rcx
movl (%rcx), %ecx
andq %rdx, %rcx
movq %rcx, 0x10(%rsp)
movq %rax, 0x8(%rsp)
movq $0x32, (%rsp)
movq 0x1e0(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
movq 0x1d8(%rsp), %rdx
movq 0x1d0(%rsp), %rcx
movq 0x1f0(%rsp), %r8
movq 0x1e8(%rsp), %r9
movss 0x1b0(%rsp), %xmm0
callq 0x110d78
movq (%r15), %rsi
testq %rsi, %rsi
je 0x1175ac
movq 0xa8(%rsp), %r15
movq 0xe0(%r15), %rdi
movl $0x48, %edx
leaq -0xca2d(%rip), %rcx     # 0x10a6b9
callq 0x23f0
movq (%r14), %rcx
movq 0x130(%rsp), %r11
movq (%rcx,%r11,8), %r12
cmpq $0x0, 0xd0(%r15)
je 0x1175d9
movq %r12, 0x158(%rsp)
movl $0x1, %ebx
xorl %ecx, %ecx
xorl %r15d, %r15d
xorl %r12d, %r12d
movl 0xd4(%rsp), %r8d
movl 0xd0(%rsp), %esi
movq 0xa8(%rsp), %rax
movq 0xe0(%rax), %rax
leaq (%rcx,%rcx,8), %r14
movsd (%rax,%r14,8), %xmm0
movsd 0x11a133(%rip), %xmm2   # 0x231280
unpcklps %xmm2, %xmm0            # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
movapd 0x11a138(%rip), %xmm3   # 0x231290
subpd %xmm3, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movq %r12, %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
subpd %xmm3, %xmm0
movapd %xmm0, %xmm2
unpckhpd %xmm0, %xmm2            # xmm2 = xmm2[1],xmm0[1]
addsd %xmm0, %xmm2
mulsd 0x12253f(%rip), %xmm2   # 0x2396c8
ucomisd %xmm1, %xmm2
jbe 0x117197
movq %r12, %r13
jmp 0x11754e
leaq (%rax,%r14,8), %rdi
xorl %eax, %eax
leaq 0x17e5b4(%rip), %rcx    # 0x295758
cmpl $0x3, 0x130(%rcx)
setge %al
leaq 0x1b4(%rsp), %rcx
movq %rcx, 0x88(%rsp)
leaq 0x210(%rsp), %rcx
movq %rcx, 0x80(%rsp)
leaq 0x178(%rsp), %rcx
movq %rcx, 0x78(%rsp)
leaq 0x150(%rsp), %rcx
movq %rcx, 0x70(%rsp)
leaq 0x180(%rsp), %rcx
movq %rcx, 0x68(%rsp)
movq 0x1f8(%rsp), %rcx
movq %rcx, 0x60(%rsp)
movq 0x1d0(%rsp), %rcx
movq %rcx, 0x58(%rsp)
movq 0x1d8(%rsp), %rcx
movq %rcx, 0x50(%rsp)
movq 0x1a0(%rsp), %rcx
movq %rcx, 0x48(%rsp)
movq 0x200(%rsp), %rcx
movq %rcx, 0x40(%rsp)
movl %esi, 0x38(%rsp)
movl %r8d, 0x30(%rsp)
movq %rbp, 0x20(%rsp)
movq 0x100(%rsp), %rcx
movq %rcx, 0x18(%rsp)
movq 0x90(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movq 0x140(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movl %eax, 0x28(%rsp)
movq 0x188(%rsp), %rsi
movq 0x190(%rsp), %rdx
movq 0x170(%rsp), %rcx
movq 0x118(%rsp), %r8
movq 0x138(%rsp), %r9
movss 0x108(%rsp), %xmm0
callq 0x10ff63
testl %eax, %eax
je 0x1172b9
movq %r12, %r13
movl 0xd4(%rsp), %r8d
jmp 0x117547
movq 0xa8(%rsp), %rax
movq 0xe0(%rax), %rax
movq (%rax,%r14,8), %r11
cmpq %r11, %r12
movq %r11, %r13
cmovaq %r12, %r13
movq 0x20(%rax,%r14,8), %r10
movq %r10, %rdx
testq %r12, %r12
movq 0x1c0(%rsp), %rdi
movl 0xd4(%rsp), %r8d
movl 0xd0(%rsp), %esi
movq 0x168(%rsp), %r9
je 0x11733f
movq %r15, %rcx
movq %r10, %rdx
subq %r10, %rcx
jl 0x11733f
jle 0x11733c
movq %r15, %rdx
negq %rdx
cmovsq %r15, %rdx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
cvtsi2sd %rdx, %xmm1
mulsd 0x1223a2(%rip), %xmm1   # 0x2396d0
ucomisd %xmm1, %xmm0
movq %r15, %rdx
jb 0x11733f
jmp 0x11754e
movq %r15, %rdx
movq %rdx, 0x98(%rsp)
movq %r10, 0xc8(%rsp)
leaq (%rax,%r14,8), %rax
movb 0x28(%rax), %r12b
movl 0x210(%rsp), %r14d
testb %r12b, %r12b
je 0x11738f
movq 0x138(%rsp), %rcx
movl (%rcx), %ecx
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl %edx, %ecx
notl %r14d
addl %ecx, %r14d
subl 0x178(%rsp), %ecx
movl %r14d, 0xb8(%rsp)
movl %ecx, %r14d
jmp 0x1173a0
movl 0x178(%rsp), %ecx
movl %ecx, 0xb8(%rsp)
incl %r14d
movq 0x130(%rsp), %r10
movb 0x1c(%rax), %cl
movb %cl, 0x198(%rsp)
movl 0x8(%rax), %ecx
movl %ecx, 0x148(%rsp)
movl 0xc(%rax), %r15d
movl 0x10(%rax), %ecx
movl %ecx, 0xc0(%rsp)
movl 0x14(%rax), %eax
movl %eax, 0xb0(%rsp)
movl 0x180(%rsp), %eax
movl %eax, 0xf0(%rsp)
movl 0x150(%rsp), %ebp
movss 0x1b4(%rsp), %xmm0
movq (%r9), %rcx
movq (%rcx,%r10,8), %rax
cmpq 0x8(%rcx,%r10,8), %rax
jne 0x11748c
leaq (%rcx,%r10,8), %rdx
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
leaq (,%rdi,8), %rax
movb %r12b, 0xe0(%rsp)
leaq (%rax,%rax,2), %r12
movq %rsi, 0x8(%rcx,%r12)
movq 0x10(%rdx), %rdi
shlq $0x6, %rsi
movq %r11, 0xe8(%rsp)
movss %xmm0, 0x110(%rsp)
callq 0x2370
movss 0x110(%rsp), %xmm0
movq 0xe8(%rsp), %r11
movl 0xd4(%rsp), %r8d
movq 0x168(%rsp), %rcx
movq (%rcx), %rcx
movq %rax, 0x10(%rcx,%r12)
movq (%rcx,%r12), %rax
movb 0xe0(%rsp), %r12b
movq 0x130(%rsp), %r10
movq 0x170(%rsp), %rdi
movq 0x10(%rcx,%r10,8), %rdx
leaq 0x1(%rax), %rsi
movq %rsi, (%rcx,%r10,8)
shlq $0x6, %rax
movb %r12b, (%rdx,%rax)
movb 0x198(%rsp), %cl
movb %cl, 0x1(%rdx,%rax)
movw $0x0, 0x2(%rdx,%rax)
movl 0xf0(%rsp), %ecx
movl %ecx, 0x4(%rdx,%rax)
incl %ebp
movl %ebp, 0x8(%rdx,%rax)
movl 0xb8(%rsp), %ecx
movl %ecx, 0xc(%rdx,%rax)
movl %r14d, 0x10(%rdx,%rax)
movl 0x148(%rsp), %ecx
movl %ecx, 0x14(%rdx,%rax)
incl %r15d
movl %r15d, 0x18(%rdx,%rax)
movl 0xc0(%rsp), %ecx
movl %ecx, 0x1c(%rdx,%rax)
movl 0xb0(%rsp), %ecx
incl %ecx
movl %ecx, 0x20(%rdx,%rax)
movq 0x190(%rsp), %rcx
movl %ecx, 0x24(%rdx,%rax)
movl %edi, 0x28(%rdx,%rax)
movl %r11d, 0x2c(%rdx,%rax)
movq 0xc8(%rsp), %rcx
movq %rcx, 0x30(%rdx,%rax)
movss %xmm0, 0x38(%rdx,%rax)
movl $0x0, 0x3c(%rdx,%rax)
movq 0x98(%rsp), %r15
movq 0xf8(%rsp), %rbp
movl 0xd0(%rsp), %esi
movl %ebx, %ecx
incl %ebx
movq %r13, %r12
movq 0x1e0(%rsp), %rax
cmpq %rcx, (%rax)
movq 0xa8(%rsp), %rax
ja 0x117134
movq 0x168(%rsp), %r14
movq (%r14), %rcx
movq 0x130(%rsp), %r11
movq (%rcx,%r11,8), %rax
movq 0x140(%rsp), %rbx
movq 0x158(%rsp), %r12
jmp 0x1175df
movq 0x160(%rsp), %r13
movq 0x120(%rsp), %rbp
jmp 0x1176a4
movq 0x160(%rsp), %r13
movq 0x120(%rsp), %rbp
movq 0xa8(%rsp), %r14
movq 0x128(%rsp), %rcx
movq 0x90(%rsp), %r15
jmp 0x1176b4
movq %r12, %rax
xorl %r15d, %r15d
movl %r12d, %r8d
cmpq %r8, %rax
movq 0x160(%rsp), %r13
movq 0x120(%rsp), %rbp
jbe 0x11764e
leaq (%rcx,%r11,8), %rcx
movq 0x10(%rcx), %rdx
leal 0x1(%r12), %edi
xorl %esi, %esi
shlq $0x6, %r8
cmpq %r15, 0x30(%rdx,%r8)
jne 0x117626
addq %rdx, %r8
testq %rsi, %rsi
je 0x117623
movl 0x2c(%rsi), %r9d
cmpl %r9d, 0x2c(%r8)
jbe 0x117632
movq %r8, %rsi
movl %edi, %r8d
incl %edi
cmpq %r8, %rax
ja 0x117606
jmp 0x117658
jne 0x117626
movl 0x8(%r8), %r9d
subl 0x4(%r8), %r9d
movl 0x8(%rsi), %r10d
subl 0x4(%rsi), %r10d
cmpl %r10d, %r9d
jb 0x117623
movq %rsi, %r8
jmp 0x117623
movq 0x90(%rsp), %r15
jmp 0x1176a4
testq %rsi, %rsi
movq 0x90(%rsp), %r15
je 0x1176a4
movq 0x10(%rcx), %rax
movq %r12, %rcx
shlq $0x6, %rcx
movupd (%rsi), %xmm0
movupd 0x10(%rsi), %xmm1
movupd 0x20(%rsi), %xmm2
movupd 0x30(%rsi), %xmm3
movupd %xmm3, 0x30(%rax,%rcx)
movupd %xmm2, 0x20(%rax,%rcx)
movupd %xmm1, 0x10(%rax,%rcx)
movupd %xmm0, (%rax,%rcx)
incq %r12
movq (%r14), %rax
movq %r12, (%rax,%r11,8)
movq 0xa8(%rsp), %r14
movq 0x128(%rsp), %rcx
incl %ecx
cmpq %rcx, (%r13)
ja 0x116807
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq