// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: ma_ug_gen_phase(asg_t*, unsigned int, double)
ma_ug_t *ma_ug_gen_phase(asg_t *g, uint32_t min_occ, double cutoff)
{
    // fprintf(stderr, "\n-0-[M::%s] min_occ::%u, cutoff::%f\n", __func__, min_occ, cutoff);
    asg_cleanup(g);
	int32_t *mark; 
	uint32_t i, v, n_vtx = g->n_seq * 2, fn, mn, fn0, mn0, fn1, mn1, n1, cn, k, st, pt, ct, sz, ez;
    uint64_t z;
	///is a queue
	kdq_t(uint64_t) *q;
    asg64_v uidx; kv_init(uidx); 
    
	ma_ug_t *ug;

	ug = (ma_ug_t*)calloc(1, sizeof(ma_ug_t));
	ug->g = asg_init();
    ///each node has two directions
	mark = (int32_t*)calloc(n_vtx, 4);

	q = kdq_init(uint64_t);
	for (v = 0; v < n_vtx; ++v) {
		uint32_t w, x, l, start, end, len;
		ma_utg_t *p;
        if (g->seq[v>>1].del || mark[v]) continue;
        if (arc_cnt(g, v) == 0 && arc_cnt(g, (v^1)) != 0) continue;
		mark[v] = 1;
		q->count = 0, start = v, end = v^1, len = 0; fn = mn = 0;
		// forward
		w = v; 
		while (1) {
			/**
			 * w----->x
			 * w<-----x
			 * that means the only suffix of w is x, and the only prefix of x is w
			 **/
			if (arc_cnt(g, w) != 1) break;
			x = arc_first(g, w).v; // w->x
			if (arc_cnt(g, x^1) != 1) break;
			/**
			 * another direction of w would be marked as used (since w has been used)
			**/
			mark[x] = mark[w^1] = 1;
			///l is the edge length, instead of overlap length
            ///note: edge length is different with overlap length
			l = asg_arc_len(arc_first(g, w));
			kdq_push(uint64_t, q, (uint64_t)w<<32 | l);
            if(R_INF.trio_flag[w>>1] == FATHER) fn++;
            if(R_INF.trio_flag[w>>1] == MOTHER) mn++;
			end = x^1, len += l;
			w = x;
			if (x == v) break;
		}
		if (start != (end^1) || kdq_size(q) == 0) { // linear unitig
			///length of seq, instead of edge
			l = g->seq[end>>1].len;
			kdq_push(uint64_t, q, (uint64_t)(end^1)<<32 | l);
            if(R_INF.trio_flag[end>>1] == FATHER) fn++;
            if(R_INF.trio_flag[end>>1] == MOTHER) mn++;
			len += l;
		} else { // circular unitig
			start = end = UINT32_MAX;
			goto add_unitig; // then it is not necessary to do the backward
		}
		// backward
		x = v;
		while (1) { // similar to forward but not the same
			if (arc_cnt(g, x^1) != 1) break;
			w = arc_first(g, x^1).v ^ 1; // w->x
			if (arc_cnt(g, w) != 1) break;
			mark[x] = mark[w^1] = 1;
			l = asg_arc_len(arc_first(g, w));
			///w is the seq id + direction, l is the length of edge
			///push element to the front of a queue
			kdq_unshift(uint64_t, q, (uint64_t)w<<32 | l);
            if(R_INF.trio_flag[w>>1] == FATHER) fn++;
            if(R_INF.trio_flag[w>>1] == MOTHER) mn++;
            // fprintf(stderr, "uId: %u, >%.*s (%u)\n", 
            // ug->u.n, (int)Get_NAME_LENGTH((R_INF), w>>1), Get_NAME((R_INF), w>>1), w>>1);

			start = w, len += l;
			x = w;
		}
add_unitig:
		if (start != UINT32_MAX) mark[start] = mark[end] = 1;
        // fprintf(stderr, "\n-0-[M::%s] fn::%u, mn::%u\n", __func__, fn, mn);
        cn = MIN(fn, mn);
        // if((cn > min_occ) && (cn > ((fn+mn)*cutoff)))
        if((cn <= ((fn+mn)*cutoff)) || (cn <= min_occ)) {
            kv_pushp(ma_utg_t, ug->u, &p);
            p->s = 0, p->start = start, p->end = end, p->len = len, p->n = kdq_size(q), p->circ = (start == UINT32_MAX);
            p->m = p->n;
            kv_roundup32(p->m);
            p->a = (uint64_t*)malloc(8 * p->m);
            //all elements are saved here
            for (i = 0; i < kdq_size(q); ++i) p->a[i] = kdq_at(q, i);
        } else if(kdq_size(q)) {
            ct = R_INF.trio_flag[kdq_at(q, 0)>>33]; 
            if((ct != FATHER) && (ct != MOTHER)) ct = AMBIGU; 
            pt = ct;
            fn0 = fn; mn0 = mn; uidx.n = fn = mn = 0; 
            if(ct == FATHER) fn++; if(ct == MOTHER) mn++;
            for (k = 1, l = 0; k <= kdq_size(q); k++) {
                st = 0; ct = AMBIGU;
                if(k == kdq_size(q)) {
                    st = 1;
                } else {
                    ct = R_INF.trio_flag[kdq_at(q, k)>>33];
                    if((ct != FATHER) && (ct != MOTHER)) ct = AMBIGU; 
                    if((ct != AMBIGU) && (pt != AMBIGU) && (ct != pt)) {
                        st = 1;
                    }
                }
                if(st) {
                    // fprintf(stderr, "-1-[M::%s] l::%u, k::%u, kdq_size(q)::%u, fn::%u, mn::%u, ct::%u, pt::%u\n", 
                    // __func__, l, k, (uint32_t)kdq_size(q), fn, mn, ct, pt);
                    if(k < kdq_size(q)) {
                        assert(fn || mn); assert((!fn) || (!mn));
                    }
                    z = l<<1; z |= (((uint64_t)MAX(fn, mn))<<32);
                    if(mn) z |= 1;
                    kv_push(uint64_t, uidx, z);
                    fn = mn = 0; l = k;
                }
                if(ct != AMBIGU) pt = ct;
                if(ct == FATHER) fn++; if(ct == MOTHER) mn++;
            }


            fn = mn = 0; fn1 = mn1 = n1 = 0;
            if(uidx.a[0]&1) mn += uidx.a[0]>>32;
            else fn += uidx.a[0]>>32;
            for (k = 1, l = 0; k <= uidx.n; k++) {
                st = 0;
                if(k == uidx.n) {
                    st = 1;
                } else {
                    if(uidx.a[k]&1) mn += uidx.a[k]>>32;
                    else fn += uidx.a[k]>>32;
                    cn = MIN(fn, mn);
                    if((cn > min_occ) && (cn > ((fn+mn)*cutoff))) st = 1;
                    // fprintf(stderr, "-2-[M::%s] fn::%u, mn::%u, cn::%u, ((fn+mn)*cutoff)::%u, st::%u\n", 
                    // __func__, fn, mn, cn, (uint32_t)(((fn+mn)*cutoff)), st);
                }
                if(st) {
                    // fprintf(stderr, "-3-[M::%s] fn::%u, mn::%u\n", __func__, fn, mn);
                    sz = ((uint32_t)uidx.a[l])>>1;
                    ez = ((k<uidx.n)?(((uint32_t)uidx.a[k])>>1):(kdq_size(q)));
                    assert(ez > sz); n1 += ez - sz;
                    kv_pushp(ma_utg_t, ug->u, &p);
                    if ((start == UINT32_MAX) && (sz == 0) && (ez == kdq_size(q))) {///circle
                        p->s = 0, p->start = start, p->end = end, p->len = len, p->n = kdq_size(q), p->circ = (start == UINT32_MAX);
                        p->m = p->n;
                        kv_roundup32(p->m);
                        p->a = (uint64_t*)malloc(8 * p->m);
                        //all elements are saved here
                        for (i = 0; i < kdq_size(q); ++i) {
                            p->a[i] = kdq_at(q, i);
                            ct = R_INF.trio_flag[p->a[i]>>33];
                            if((ct != FATHER) && (ct != MOTHER)) ct = AMBIGU; 
                            if(ct == FATHER) fn1++; if(ct == MOTHER) mn1++;
                        }
                    } else {
                        p->s = 0; p->len = 0; p->circ = 0;
                        p->start = kdq_at(q, sz)>>32;
                        p->end = (kdq_at(q, (ez-1))>>32)^1;
                        p->m = p->n = ez - sz; kv_roundup32(p->m);
                        p->a = (uint64_t*)malloc(8 * p->m);

                        for (i = sz, z = 0; i+1 < ez; i++, z++) {
                            p->a[z] = kdq_at(q, i); p->len += (uint32_t)p->a[z];
                            ct = R_INF.trio_flag[p->a[z]>>33];
                            if((ct != FATHER) && (ct != MOTHER)) ct = AMBIGU; 
                            if(ct == FATHER) fn1++; if(ct == MOTHER) mn1++;
                        }
                        p->a[z] = kdq_at(q, i); p->a[z] >>= 32; p->a[z] <<= 32; 
                        p->a[z] |= g->seq[p->a[z]>>33].len; p->len += (uint32_t)p->a[z];
                        ct = R_INF.trio_flag[p->a[z]>>33];
                        if((ct != FATHER) && (ct != MOTHER)) ct = AMBIGU; 
                        if(ct == FATHER) fn1++; if(ct == MOTHER) mn1++;
                    }
                    fn = mn = 0; l = k;
                    if(k < uidx.n) {
                        if(uidx.a[k]&1) mn += uidx.a[k]>>32;
                        else fn += uidx.a[k]>>32;
                    }
                }
            }
            assert(n1 == kdq_size(q));
            assert(fn1 == fn0); assert(mn1 == mn0);
        }
	}
	kdq_destroy(uint64_t, q); kv_destroy(uidx); 

	// add arcs between unitigs; reusing mark for a different purpose
	//ug saves all unitigs
	for (v = 0; v < n_vtx; ++v) mark[v] = -1;

    //mark all start nodes and end nodes of all unitigs
	for (i = 0; i < ug->u.n; ++i) {
		if (ug->u.a[i].circ) continue;
		mark[ug->u.a[i].start] = i<<1 | 0;
		mark[ug->u.a[i].end] = i<<1 | 1;
	}

	//scan all edges
	for (i = 0; i < g->n_arc; ++i) {
		asg_arc_t *p = &g->arc[i];
		if (p->del) continue;
		///to connect two unitigs, we need to connect the end of unitig x to the start of unitig y
		///so we need to ^1 to get the reverse direction of (x's end)?
        ///>=0 means this node is a start/end node of an unitig
        ///means this node is a intersaction node
		if (mark[p->ul>>32^1] >= 0 && mark[p->v] >= 0) {
			asg_arc_t *q;
			uint32_t u = mark[p->ul>>32^1]^1;
			int l = ug->u.a[u>>1].len - p->ol;
			if (l < 0) l = 1;
			q = asg_arc_pushp(ug->g);
			q->ol = p->ol, q->del = 0;
			q->ul = (uint64_t)u<<32 | l;
			q->v = mark[p->v]; q->ou = 0;
            q->el = p->el;
		}
	}
	for (i = 0; i < ug->u.n; ++i)
		asg_seq_set(ug->g, i, ug->u.a[i].len, 0);
	asg_cleanup(ug->g);
	free(mark);
	return ug;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %xmm0, 0x98(%rsp)
movl %esi, 0x64(%rsp)
movq %rdi, %r12
callq 0xa0a7d
movl 0x14(%r12), %r14d
addl %r14d, %r14d
movl $0x1, %edi
movl $0x38, %esi
callq 0x2120
movq %rax, %rbx
movl $0x1, %edi
movl $0x48, %esi
callq 0x2120
movq %rax, 0x18(%rbx)
movl $0x4, %esi
movq %r14, %rdi
callq 0x2120
movq %rax, 0x8(%rsp)
movl $0x1, %edi
movl $0x20, %esi
callq 0x2120
movq %rax, %r15
movabsq $0x800000000000000, %rax # imm = 0x800000000000000
movq %rax, (%r15)
movq $0x3, 0x10(%r15)
movl $0x20, %edi
callq 0x2280
movq %rax, 0x18(%r15)
testl %r14d, %r14d
movq %rbx, 0x28(%rsp)
movq %r12, 0x20(%rsp)
je 0xb27c9
leaq 0x1e4896(%rip), %r9     # 0x296230
xorl %esi, %esi
movq $0x0, 0xa0(%rsp)
xorl %r10d, %r10d
movq 0x8(%rsp), %r11
movq %r14, 0x68(%rsp)
movq %r15, 0x18(%rsp)
movq 0x20(%r12), %rax
movl %esi, %ecx
shrl %ecx
cmpl $0x0, (%rax,%rcx,8)
js 0xb19d0
cmpl $0x0, (%r11,%rsi,4)
je 0xb19dd
incq %rsi
cmpq %r14, %rsi
jne 0xb19ba
jmp 0xb278f
movq 0x28(%r12), %rdi
movq (%rdi,%rsi,8), %rax
movl %esi, %r8d
xorl $0x1, %r8d
movq %rax, %rcx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
andq %rdx, %rcx
movq %r10, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
je 0xb1b9a
movl $0x1, (%r11,%rsi,4)
movq $0x0, 0x8(%r15)
pxor %xmm1, %xmm1
cmpl $0x1, %ecx
movl %r8d, 0x78(%rsp)
jne 0xb1b95
movq 0x8(%r12), %rcx
shrq $0x20, %rax
leaq (%rax,%rax,2), %rdx
movl 0x8(%rcx,%rdx,8), %edx
movq %rdx, %rsi
xorq $0x1, %rsi
cmpl $0x1, (%rdi,%rsi,8)
jne 0xb1b95
movq $0x0, 0x10(%rsp)
movq 0x30(%rsp), %r12
movl %r12d, %r15d
xorl %r13d, %r13d
movl %edx, %edi
movl %esi, 0x4(%rsp)
movl %r15d, %edx
movl $0x1, %esi
xorl %esi, %edx
movl %esi, (%r11,%rdx,4)
movl %edi, 0x80(%rsp)
movl %edi, %r14d
movq %r11, %r8
movl %esi, (%r11,%r14,4)
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %rbp
movq 0x18(%rsp), %rbx
movq (%rbx), %rax
movq %rax, %rcx
shrq $0x3a, %rcx
movl $0x1, %edx
shlq %cl, %rdx
cmpq %rdx, %r13
jne 0xb1ad9
incl %ecx
movq %rbx, %rdi
movl %ecx, %esi
movdqa %xmm1, 0x40(%rsp)
callq 0x105211
movdqa 0x40(%rsp), %xmm1
movq 0x38(%rsp), %r10
leaq 0x1e4763(%rip), %r9     # 0x296230
movq 0x8(%rsp), %r8
movq (%rbx), %rax
movq 0x8(%rbx), %r13
movl %ebp, %edx
shlq $0x20, %r12
orq %rdx, %r12
movq 0x18(%rbx), %rdx
movabsq $0x3ffffffffffffff, %rsi # imm = 0x3FFFFFFFFFFFFFF
andq %rsi, %rax
addq %r13, %rax
leaq 0x1(%r13), %rcx
movq %rcx, %r13
movq %rcx, 0x8(%rbx)
andq 0x10(%rbx), %rax
movq %r12, (%rdx,%rax,8)
movq 0x28(%r9), %rax
shrl %r15d
movzbl (%rax,%r15), %eax
movd %eax, %xmm0
punpcklbw %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
pcmpeqb 0x18414b(%rip), %xmm0   # 0x235c70
punpcklbw %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
pand 0x17f09b(%rip), %xmm0   # 0x230bd0
paddd %xmm0, %xmm1
movq 0x10(%rsp), %rax
addl %ebp, %eax
movq %rax, 0x10(%rsp)
cmpq %r14, 0x30(%rsp)
je 0xb2787
movq 0x20(%rsp), %rcx
movq 0x28(%rcx), %rdi
movq (%rdi,%r14,8), %rax
cmpl $0x1, %eax
movq %r8, %r11
jne 0xb1bd1
movq 0x8(%rcx), %rcx
shrq $0x20, %rax
leaq (%rax,%rax,2), %rdx
movl 0x8(%rcx,%rdx,8), %edx
movq %rdx, %rsi
xorq $0x1, %rsi
cmpl $0x1, (%rdi,%rsi,8)
movl 0x80(%rsp), %edi
movl %edi, %r15d
movq %r14, %r12
je 0xb1a60
jmp 0xb1bd1
xorl %r13d, %r13d
jmp 0xb1bc3
movl %r8d, %eax
cmpl $0x0, (%rdi,%rax,8)
jne 0xb19d0
movl $0x1, (%r11,%rsi,4)
movq $0x0, 0x8(%r15)
pxor %xmm1, %xmm1
xorl %r13d, %r13d
movl %r8d, 0x78(%rsp)
movl %r8d, 0x4(%rsp)
movq $0x0, 0x10(%rsp)
movl 0x4(%rsp), %eax
movl %eax, %r14d
xorl $0x1, %r14d
movb $0x1, %al
movl %eax, 0x54(%rsp)
movq 0x30(%rsp), %rsi
cmpq %r14, %rsi
movq %r13, %rdi
jne 0xb1c06
testq %rdi, %rdi
je 0xb1c06
movl $0xffffffff, 0x4(%rsp)  # imm = 0xFFFFFFFF
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0xb1e9c
movq 0x20(%rsp), %rax
movq 0x20(%rax), %rax
movl 0x4(%rsp), %ecx
movl %ecx, %r12d
shrl %r12d
movl (%rax,%r12,8), %r15d
movq 0x18(%rsp), %rbx
movq (%rbx), %rax
movq %rax, %rcx
shrq $0x3a, %rcx
movl $0x1, %edx
shlq %cl, %rdx
cmpq %rdx, %rdi
jne 0xb1c69
incl %ecx
movq %rbx, %rdi
movl %ecx, %esi
movdqa %xmm1, 0x40(%rsp)
callq 0x105211
movdqa 0x40(%rsp), %xmm1
movq 0x38(%rsp), %r10
leaq 0x1e45d3(%rip), %r9     # 0x296230
movq 0x8(%rsp), %r11
movq (%rbx), %rax
movq 0x8(%rbx), %rdi
movq %rdi, %rcx
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
shlq $0x20, %r14
movq 0x18(%rbx), %r8
movq %rax, %rsi
movabsq $0x3ffffffffffffff, %rdi # imm = 0x3FFFFFFFFFFFFFF
andq %rdi, %rsi
addq %rcx, %rsi
incq %rcx
movq %rcx, %r13
movq %rcx, 0x8(%rbx)
andq 0x10(%rbx), %rsi
orq %r15, %r14
movq %r14, (%r8,%rsi,8)
movq 0x28(%r9), %rsi
movzbl (%rsi,%r12), %ecx
movd %ecx, %xmm0
punpcklbw %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
pcmpeqb 0x183fb4(%rip), %xmm0   # 0x235c70
punpcklbw %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
pand 0x17ef04(%rip), %xmm0   # 0x230bd0
paddd %xmm0, %xmm1
movq 0x10(%rsp), %rcx
addl %r15d, %ecx
movq %rcx, 0x10(%rsp)
movq 0x20(%rsp), %rcx
movq 0x28(%rcx), %rdi
movl 0x78(%rsp), %ecx
movq (%rdi,%rcx,8), %rcx
cmpl $0x1, %ecx
jne 0xb1e5f
movq %r8, %rdx
movq 0x30(%rsp), %r8
movq %rdx, %r12
movq 0x20(%rsp), %rdx
movq 0x8(%rdx), %r9
shrq $0x20, %rcx
leaq (%rcx,%rcx,2), %rcx
movl 0x8(%r9,%rcx,8), %r14d
movq %r14, %rbx
xorq $0x1, %rbx
movq (%rdi,%rbx,8), %rcx
cmpl $0x1, %ecx
jne 0xb1e66
movl $0x1, %r10d
movl %r10d, (%r11,%r14,4)
movl %r8d, %r8d
movl %r10d, (%r11,%r8,4)
shrq $0x20, %rcx
leaq (%rcx,%rcx,2), %rcx
movq (%r9,%rcx,8), %r15
movq %rax, %rcx
shrq $0x3a, %rcx
movl $0x1, %r8d
shlq %cl, %r8
cmpq %r8, %r13
jne 0xb1da6
incl %ecx
movq 0x18(%rsp), %r12
movq %r12, %rdi
movl %ecx, %esi
movdqa %xmm1, 0x40(%rsp)
callq 0x105211
movdqa 0x40(%rsp), %xmm1
movq (%r12), %rax
movq 0x8(%r12), %rbp
movq %rax, %rcx
shrq $0x3a, %rcx
movq 0x18(%r12), %rdx
leaq 0x1e4499(%rip), %rsi    # 0x296230
movq 0x28(%rsi), %rsi
movq 0x20(%rsp), %rdi
movq 0x28(%rdi), %rdi
jmp 0xb1db1
movq %r13, %rbp
movq %r12, %rdx
movq 0x18(%rsp), %r12
movl %r15d, %r8d
movq %rbx, %r9
shlq $0x20, %r9
orq %r8, %r9
incq %rbp
movabsq $0x3ffffffffffffff, %r11 # imm = 0x3FFFFFFFFFFFFFF
leaq (%rax,%r11), %r8
movq $-0x1, %r10
shlq %cl, %r10
testq %r11, %rax
notq %r10
cmovneq %r8, %r10
movq %rbp, %r13
movq %rbp, 0x8(%r12)
andq %r11, %r10
movabsq $-0x400000000000000, %rcx # imm = 0xFC00000000000000
andq %rcx, %rax
orq %r10, %rax
movq %rax, (%r12)
movq %r9, (%rdx,%r10,8)
movl %r14d, %ecx
shrl %ecx
movzbl (%rsi,%rcx), %ecx
movd %ecx, %xmm0
punpcklbw %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
pcmpeqb 0x183e51(%rip), %xmm0   # 0x235c70
punpcklbw %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
pand 0x17eda1(%rip), %xmm0   # 0x230bd0
paddd %xmm0, %xmm1
movq 0x10(%rsp), %rcx
addl %r15d, %ecx
movq %rcx, 0x10(%rsp)
movq (%rdi,%r14,8), %rcx
movl %ebx, %r8d
cmpl $0x1, %ecx
movq 0x38(%rsp), %r10
movq 0x8(%rsp), %r11
movq %rdx, %r12
je 0xb1d02
jmp 0xb1e69
movq 0x30(%rsp), %rbx
jmp 0xb1e69
movl %r8d, %ebx
cmpl $-0x1, %ebx
je 0xb1e8b
movl 0x4(%rsp), %eax
movl $0x1, %ecx
movl %ecx, (%r11,%rax,4)
movl %ebx, %eax
movl %ecx, (%r11,%rax,4)
movl $0x0, 0x54(%rsp)
jmp 0xb1e90
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
leaq 0x1e4399(%rip), %r9     # 0x296230
movq 0x30(%rsp), %rsi
movq 0x18(%rsp), %r15
movd %xmm1, %ecx
pshufd $0x55, %xmm1, %xmm0     # xmm0 = xmm1[1,1,1,1]
movd %xmm0, %edx
cmpl %ecx, %edx
movl %ecx, %eax
cmovbl %edx, %eax
cmpl 0x64(%rsp), %eax
jbe 0xb20ab
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
leal (%rcx,%rdx), %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
mulsd 0x98(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jae 0xb20ab
testq %r13, %r13
je 0xb2728
movq %rdx, 0xb0(%rsp)
movq %rcx, 0xa8(%rsp)
movq 0x28(%r9), %rax
movq 0x18(%r15), %rcx
movq (%r15), %rdx
movabsq $0x3ffffffffffffff, %rsi # imm = 0x3FFFFFFFFFFFFFF
andq %rsi, %rdx
andq 0x10(%r15), %rdx
movq (%rcx,%rdx,8), %rcx
shrq $0x21, %rcx
movzbl (%rax,%rcx), %ecx
leal -0x3(%rcx), %eax
xorl %edx, %edx
cmpb $-0x2, %al
movl $0x0, %eax
movq %rax, 0x40(%rsp)
cmovbl %edx, %ecx
xorl %eax, %eax
cmpb $0x2, %cl
sete %al
xorl %r12d, %r12d
cmpb $0x1, %cl
sete %r12b
movq %r13, %rdx
movzbl %cl, %ebx
movl $0x1, %r14d
movl $0x1, %ecx
xorl %r8d, %r8d
movl $0x0, %ebp
movq %rdx, %r11
cmpq %rcx, %rdx
je 0xb1fc9
movq %r8, %r13
movq 0x28(%r9), %rdx
movq 0x18(%r15), %rsi
movq (%r15), %rdi
movabsq $0x3ffffffffffffff, %r8 # imm = 0x3FFFFFFFFFFFFFF
andq %r8, %rdi
addq %rcx, %rdi
andq 0x10(%r15), %rdi
movq (%rsi,%rdi,8), %rsi
shrq $0x21, %rsi
movzbl (%rdx,%rsi), %edx
leal -0x3(%rdx), %esi
cmpb $-0x2, %sil
movl $0x0, %esi
cmovbl %esi, %edx
movzbl %dl, %ebp
testb %bpl, %bpl
je 0xb209e
testl %ebx, %ebx
movq %r13, %r8
je 0xb20a6
cmpl %ebp, %ebx
je 0xb20a6
cmpq %rcx, %r11
jbe 0xb1fe6
movl %r12d, %ecx
orl %eax, %ecx
je 0xb2a07
testl %r12d, %r12d
je 0xb1fe6
testl %eax, %eax
jne 0xb29fe
cmpl %eax, %r12d
cmovbel %eax, %r12d
xorl %r13d, %r13d
testl %eax, %eax
setne %cl
cmpq 0xa0(%rsp), %r8
jne 0xb203f
movb %cl, 0x38(%rsp)
leaq (%r8,%r8), %rcx
testq %r8, %r8
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0xa0(%rsp)
leaq (,%rcx,8), %rsi
movq %r10, %rdi
movq %r8, %r15
callq 0x2370
movb 0x38(%rsp), %cl
movq %r15, %r8
leaq 0x1e41f4(%rip), %r9     # 0x296230
movq %rax, %r10
movq 0x40(%rsp), %rax
addl %eax, %eax
shlq $0x20, %r12
orq %rax, %r12
movb %cl, %r13b
orq %r12, %r13
movq %r13, (%r10,%r8,8)
incq %r8
movq 0x18(%rsp), %r15
movq 0x8(%r15), %rdx
xorl %eax, %eax
movl %r14d, %ecx
movq %rcx, 0x40(%rsp)
xorl %r12d, %r12d
testl %ebp, %ebp
cmovnel %ebp, %ebx
xorl %ecx, %ecx
cmpl $0x1, %ebp
sete %cl
addl %ecx, %r12d
xorl %ecx, %ecx
cmpl $0x2, %ebp
sete %cl
addl %ecx, %eax
incl %r14d
movq %r14, %rcx
cmpq %r14, %rdx
jae 0xb1f60
jmp 0xb21ce
movq %r11, %rdx
movq %r13, %r8
jmp 0xb2070
movq %r11, %rdx
jmp 0xb2070
movq 0x28(%rsp), %rax
movq (%rax), %r14
movq 0x10(%rax), %r12
cmpq 0x8(%rax), %r14
jne 0xb20ed
leaq (%r14,%r14), %rax
testq %r14, %r14
movl $0x2, %ecx
cmoveq %rcx, %rax
movq 0x28(%rsp), %rbp
movq %rax, 0x8(%rbp)
shlq $0x3, %rax
leaq (%rax,%rax,4), %rsi
movq %r12, %rdi
callq 0x2370
movq %rax, %r12
movq %rax, 0x10(%rbp)
leaq 0x1(%r14), %rax
movq 0x28(%rsp), %rcx
movq %rax, (%rcx)
leaq (%r14,%r14,4), %r14
movq $0x0, 0x20(%r12,%r14,8)
movl %ebx, 0x4(%r12,%r14,8)
movl 0x4(%rsp), %eax
movl %eax, 0x8(%r12,%r14,8)
movq 0x10(%rsp), %rcx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movl %r13d, 0x10(%r12,%r14,8)
movzbl 0x54(%rsp), %eax
shll $0x1f, %eax
orl %ecx, %eax
movl %eax, (%r12,%r14,8)
leal -0x1(%r13), %eax
movl %eax, %ecx
shrl %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x2, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x4, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x8, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x10, %ecx
orl %eax, %ecx
leal 0x1(%rcx), %eax
movl %eax, 0xc(%r12,%r14,8)
leal 0x8(,%rcx,8), %edi
callq 0x2280
movq %rax, 0x18(%r12,%r14,8)
testq %r13, %r13
je 0xb2703
movq 0x10(%r15), %rcx
movq 0x18(%r15), %rdx
movq (%r15), %rsi
movabsq $0x3ffffffffffffff, %rdi # imm = 0x3FFFFFFFFFFFFFF
andq %rdi, %rsi
xorl %edi, %edi
movq 0x8(%rsp), %r11
movq 0x20(%rsp), %r12
movq 0x68(%rsp), %r14
leaq 0x1e4086(%rip), %r9     # 0x296230
movq 0x38(%rsp), %r10
leaq (%rsi,%rdi), %r8
andq %rcx, %r8
movq (%rdx,%r8,8), %r8
movq %r8, (%rax,%rdi,8)
incq %rdi
movl %edi, %r8d
cmpq %r8, %r13
ja 0xb21af
jmp 0xb271e
movq %rdx, 0x58(%rsp)
testq %r8, %r8
je 0xb2737
movq (%r10), %rdx
movq %rdx, %rcx
shrq $0x20, %rcx
xorl %eax, %eax
testb $0x1, %dl
movl $0x0, %edx
cmovel %ecx, %edx
cmovel %eax, %ecx
movq 0x10(%rsp), %rsi
orl $0x80000000, %esi       # imm = 0x80000000
movq %rsi, 0x10(%rsp)
movq 0x58(%rsp), %rbx
leal -0x1(%rbx), %esi
movl %esi, %edi
shrl %edi
orl %esi, %edi
movl %edi, %esi
shrl $0x2, %esi
orl %edi, %esi
movl %esi, %edi
shrl $0x4, %edi
orl %esi, %edi
movl %edi, %esi
shrl $0x8, %esi
orl %edi, %esi
movl %esi, %edi
shrl $0x10, %edi
orl %esi, %edi
leal 0x8(,%rdi,8), %esi
movq %rsi, 0xb8(%rsp)
movl %edi, %esi
incl %esi
movl %esi, 0x94(%rsp)
movl $0x1, %esi
movq %rsi, 0x40(%rsp)
movl $0x1, %r12d
xorl %r15d, %r15d
xorl %r14d, %r14d
movl $0x0, 0x60(%rsp)
movq %r10, 0x38(%rsp)
movq 0x8(%rsp), %r11
movq %r8, 0x88(%rsp)
cmpq %r12, %r8
jne 0xb240e
movl %ebx, %edx
movq %rbx, %rsi
cmpq %r12, %r8
movq %r12, %rcx
jbe 0xb2299
movl (%r10,%rcx,8), %edx
shrl %edx
movq %rdx, %rsi
movl %eax, %eax
movq (%r10,%rax,8), %r12
movl %r12d, %r13d
shrl %r13d
movl %edx, %eax
subl %r13d, %eax
movq %rax, 0x80(%rsp)
jbe 0xb29df
movq 0x28(%rsp), %rdi
movq (%rdi), %rbx
movq 0x10(%rdi), %rax
cmpq 0x8(%rdi), %rbx
movq %rcx, 0x78(%rsp)
movq %rdx, 0xd0(%rsp)
jne 0xb230e
leaq (%rbx,%rbx), %rcx
testq %rbx, %rbx
movl $0x2, %edx
cmoveq %rdx, %rcx
movq 0x28(%rsp), %rbp
movq %rcx, 0x8(%rbp)
shlq $0x3, %rcx
movq %rsi, 0x70(%rsp)
leaq (%rcx,%rcx,4), %rsi
movq %rax, %rdi
callq 0x2370
movq 0x70(%rsp), %rsi
movq %rax, 0x10(%rbp)
leaq 0x1(%rbx), %rcx
movq 0x28(%rsp), %rdx
movq %rcx, (%rdx)
leaq (%rbx,%rbx,4), %rcx
leaq (%rax,%rcx,8), %rbx
cmpl $0x2, %r12d
setb %al
andb 0x54(%rsp), %al
movq $0x0, 0x20(%rbx)
cmpb $0x1, %al
jne 0xb2477
movl %esi, %eax
cmpq 0x58(%rsp), %rax
jne 0xb2477
movl $0xffffffff, 0x4(%rbx)  # imm = 0xFFFFFFFF
movl 0x4(%rsp), %eax
movl %eax, 0x8(%rbx)
movq 0x58(%rsp), %r12
movl %r12d, 0x10(%rbx)
movq 0x10(%rsp), %rax
movl %eax, (%rbx)
movl 0x94(%rsp), %eax
movl %eax, 0xc(%rbx)
movq 0xb8(%rsp), %rdi
callq 0x2280
movq %rax, 0x18(%rbx)
movq %r12, %rbx
testq %r12, %r12
je 0xb266b
movq 0x18(%rsp), %rsi
movq 0x10(%rsi), %rcx
movq 0x18(%rsi), %rdx
movq (%rsi), %rsi
movabsq $0x3ffffffffffffff, %rdi # imm = 0x3FFFFFFFFFFFFFF
andq %rdi, %rsi
leaq 0x1e3e7d(%rip), %rdi    # 0x296230
movq 0x28(%rdi), %rdi
xorl %r8d, %r8d
leaq (%rsi,%r8), %r9
andq %rcx, %r9
movq (%rdx,%r9,8), %r9
movq %r9, (%rax,%r8,8)
shrq $0x21, %r9
movzbl (%rdi,%r9), %r10d
leal -0x3(%r10), %r11d
xorl %r9d, %r9d
cmpb $-0x2, %r11b
jb 0xb23e2
movl %r10d, %r9d
xorl %r10d, %r10d
cmpb $0x1, %r9b
sete %r10b
addl %r10d, %r15d
xorl %r10d, %r10d
cmpb $0x2, %r9b
sete %r10b
addl %r10d, %r14d
incq %r8
movl %r8d, %r9d
cmpq %r9, %rbx
ja 0xb23ba
jmp 0xb266b
movq (%r10,%r12,8), %rsi
movq %rsi, %rdi
shrq $0x20, %rdi
testb $0x1, %sil
movl %edi, %esi
movl $0x0, %r8d
cmovel %r8d, %esi
cmovnel %r8d, %edi
addl %ecx, %esi
addl %edx, %edi
cmpl %esi, %edi
movl %esi, %ecx
cmovbl %edi, %ecx
cmpl 0x64(%rsp), %ecx
jbe 0xb25bf
movl %ecx, %ecx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
leal (%rdi,%rsi), %ecx
xorps %xmm1, %xmm1
cvtsi2sd %rcx, %xmm1
mulsd 0x98(%rsp), %xmm1
ucomisd %xmm1, %xmm0
movq 0x88(%rsp), %r8
ja 0xb2283
jmp 0xb25c7
movl $0x0, (%rbx)
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rdx
movq 0x18(%rax), %rcx
movq (%rax), %rbp
movabsq $0x3ffffffffffffff, %rax # imm = 0x3FFFFFFFFFFFFFF
andq %rax, %rbp
movl %r13d, %eax
addq %rbp, %rax
andq %rdx, %rax
movq %rax, 0xc0(%rsp)
movl 0x4(%rcx,%rax,8), %eax
movl %eax, 0x4(%rbx)
decl %esi
addq %rbp, %rsi
movq %rdx, 0xc8(%rsp)
andq %rdx, %rsi
movq %rcx, 0x70(%rsp)
movl 0x4(%rcx,%rsi,8), %eax
xorl $0x1, %eax
movl %eax, 0x8(%rbx)
movq 0x80(%rsp), %rax
movl %eax, 0x10(%rbx)
decl %eax
movl %eax, %ecx
shrl %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x2, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x4, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x8, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x10, %ecx
orl %eax, %ecx
leal 0x1(%rcx), %eax
movl %eax, 0xc(%rbx)
leal 0x8(,%rcx,8), %edi
callq 0x2280
movq %rax, 0x18(%rbx)
leal 0x1(%r13), %ecx
movq 0xd0(%rsp), %r9
cmpl %r9d, %ecx
jae 0xb25d1
shrl %r12d
movl %r13d, %ecx
notl %ecx
addl %ecx, %r9d
xorl %ecx, %ecx
leaq 0x1e3cf1(%rip), %r8     # 0x296230
movq 0x70(%rsp), %r10
movq 0xc8(%rsp), %r11
movl %r13d, %edx
addq %rbp, %rdx
andq %r11, %rdx
movq (%r10,%rdx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movl (%rbx), %esi
addl %esi, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl $0x80000000, %esi       # imm = 0x80000000
orl %edx, %esi
movl %esi, (%rbx)
movq 0x28(%r8), %rdx
movq (%rax,%rcx,8), %rsi
shrq $0x21, %rsi
movzbl (%rdx,%rsi), %esi
leal -0x3(%rsi), %edi
xorl %edx, %edx
cmpb $-0x2, %dil
jb 0xb258e
movl %esi, %edx
incq %r12
xorl %esi, %esi
cmpb $0x1, %dl
sete %sil
addl %esi, %r15d
xorl %esi, %esi
cmpb $0x2, %dl
sete %sil
addl %esi, %r14d
incq %rcx
movl %r12d, %r13d
cmpq %rcx, %r9
jne 0xb254c
movl %r12d, %ecx
addq %rcx, %rbp
andq %r11, %rbp
jmp 0xb25e8
movq 0x88(%rsp), %r8
movq 0x40(%rsp), %rcx
jmp 0xb26d9
xorl %r9d, %r9d
leaq 0x1e3c55(%rip), %r8     # 0x296230
movq 0x70(%rsp), %r10
movq 0xc0(%rsp), %rbp
movq (%r10,%rbp,8), %rcx
movq %rcx, %rdx
movabsq $-0x100000000, %rsi     # imm = 0xFFFFFFFF00000000
andq %rsi, %rdx
movq %rdx, (%rax,%r9,8)
movq 0x20(%rsp), %r12
movq 0x20(%r12), %rsi
shrq $0x21, %rcx
movl (%rsi,%rcx,8), %ecx
movl %ecx, %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
orq %rdx, %rsi
movq %rsi, (%rax,%r9,8)
movl (%rbx), %edx
addl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl $0x80000000, %edx       # imm = 0x80000000
orl %ecx, %edx
movl %edx, (%rbx)
movq 0x28(%r8), %rcx
movq (%rax,%r9,8), %rax
shrq $0x21, %rax
movzbl (%rcx,%rax), %eax
leal -0x3(%rax), %ecx
cmpb $-0x2, %cl
movl $0x0, %ecx
cmovbl %ecx, %eax
xorl %ecx, %ecx
cmpb $0x1, %al
sete %cl
addl %ecx, %r15d
xorl %ecx, %ecx
cmpb $0x2, %al
sete %cl
addl %ecx, %r14d
movq 0x58(%rsp), %rbx
movq 0x80(%rsp), %rax
addl %eax, 0x60(%rsp)
xorl %esi, %esi
movq 0x88(%rsp), %r8
movq 0x78(%rsp), %rax
cmpq %rax, %r8
jbe 0xb26bf
movq 0x38(%rsp), %r10
movq (%r10,%rax,8), %rax
movq %rax, %rdi
shrq $0x20, %rdi
testb $0x1, %al
movl %edi, %esi
movl $0x0, %eax
cmovel %eax, %esi
cmovnel %eax, %edi
movq 0x40(%rsp), %rcx
movl %ecx, %eax
movq 0x8(%rsp), %r11
leaq 0x1e3b73(%rip), %r9     # 0x296230
jmp 0xb26d9
movq 0x40(%rsp), %rcx
movl %ecx, %eax
xorl %edi, %edi
movq 0x8(%rsp), %r11
leaq 0x1e3b5c(%rip), %r9     # 0x296230
movq 0x38(%rsp), %r10
incl %ecx
movq %rcx, %r12
movl %edi, %edx
movq %rcx, %rdi
movl %esi, %ecx
movq %rdi, 0x40(%rsp)
cmpq %rdi, %r8
jae 0xb227a
movl 0x60(%rsp), %eax
movq 0x30(%rsp), %rsi
movq 0x20(%rsp), %r12
jmp 0xb2753
movq 0x8(%rsp), %r11
movq 0x20(%rsp), %r12
movq 0x68(%rsp), %r14
leaq 0x1e3b17(%rip), %r9     # 0x296230
movq 0x38(%rsp), %r10
movq 0x30(%rsp), %rsi
jmp 0xb19d0
movq 0x68(%rsp), %r14
movq 0x20(%rsp), %r12
jmp 0xb19d0
xorl %eax, %eax
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x20(%rsp), %r12
movq 0x30(%rsp), %rsi
movq 0x58(%rsp), %rbx
movq 0x8(%rsp), %r11
cmpq %rax, %rbx
jne 0xb2a26
cmpl 0xb0(%rsp), %r15d
jne 0xb2a45
cmpl 0xa8(%rsp), %r14d
movq 0x68(%rsp), %r14
movq 0x18(%rsp), %r15
je 0xb19d0
jmp 0xb2a4e
movq %r8, %r11
jmp 0xb1bd1
movq 0x18(%r15), %rdi
movq %r10, %rbx
callq 0x2220
movq %r15, %rdi
callq 0x2220
movq %rbx, %rdi
callq 0x2220
testq %r14, %r14
je 0xb27da
leaq (,%r14,4), %rdx
movq 0x8(%rsp), %rdi
movl $0xff, %esi
callq 0x20e0
jmp 0xb27da
movq 0x18(%r15), %rdi
callq 0x2220
movq %r15, %rdi
callq 0x2220
movq 0x28(%rsp), %rax
movq (%rax), %r9
testq %r9, %r9
movq 0x8(%rsp), %r8
je 0xb2829
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rax
addq $0x8, %rax
movl $0x1, %ecx
movl $0x1, %edx
cmpl $0x0, -0x8(%rax)
js 0xb2819
leal -0x1(%rcx), %esi
movl -0x4(%rax), %edi
movl %esi, (%r8,%rdi,4)
movl (%rax), %esi
movl %ecx, (%r8,%rsi,4)
movl %edx, %esi
addq $0x28, %rax
incl %edx
addl $0x2, %ecx
cmpq %rsi, %r9
ja 0xb2803
movq %r9, 0x18(%rsp)
movl 0x4(%r12), %eax
testl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
je 0xb2974
movl $0x12, %r14d
xorl %r15d, %r15d
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
movl $0x1, %r9d
movq 0x8(%r12), %r13
movl -0x6(%r13,%r14), %ecx
testl %ecx, %ecx
js 0xb2957
movl -0xe(%r13,%r14), %edx
shlq $0x2, %rdx
xorq $0x4, %rdx
movl (%r8,%rdx), %r12d
testl %r12d, %r12d
js 0xb2957
movl -0xa(%r13,%r14), %edx
cmpl $0x0, (%r8,%rdx,4)
js 0xb2957
movl %r12d, %eax
shrl %eax
leaq (%rax,%rax,4), %rax
movq 0x28(%rsp), %rsi
movq 0x10(%rsi), %rdx
movq 0x18(%rsi), %rbx
movl (%rdx,%rax,8), %ebp
andl %edi, %ebp
subl %ecx, %ebp
cmovsl %r9d, %ebp
movl 0x4(%rbx), %edx
movl %edx, %ecx
andl %edi, %ecx
cmpl (%rbx), %ecx
jne 0xb28fb
leal (%rcx,%rcx), %eax
testl %ecx, %ecx
movl $0x10, %ecx
cmovel %ecx, %eax
movl %eax, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movl $0x1, %r9d
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
movq 0x8(%rsp), %r8
movq %rax, 0x8(%rbx)
movl 0x4(%rbx), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
jmp 0xb28ff
movq 0x8(%rbx), %rax
xorl $0x1, %r12d
leal 0x1(%rdx), %esi
andl %edi, %esi
andl $0x80000000, %edx       # imm = 0x80000000
orl %esi, %edx
movl %edx, 0x4(%rbx)
movl %ecx, %ecx
leaq (%rcx,%rcx,2), %rcx
movl -0x6(%r13,%r14), %edx
andl %edi, %edx
movl %edx, 0xc(%rax,%rcx,8)
shlq $0x20, %r12
movslq %ebp, %rdx
orq %r12, %rdx
movq %rdx, (%rax,%rcx,8)
movl -0xa(%r13,%r14), %edx
movl (%r8,%rdx,4), %edx
movl %edx, 0x8(%rax,%rcx,8)
andw $0xc000, 0x10(%rax,%rcx,8) # imm = 0xC000
movb (%r13,%r14), %dl
movb %dl, 0x12(%rax,%rcx,8)
movq 0x20(%rsp), %rax
movl 0x4(%rax), %eax
incq %r15
movl %eax, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
addq $0x18, %r14
cmpq %rcx, %r15
movq 0x20(%rsp), %r12
jb 0xb2852
movq 0x28(%rsp), %rax
movq 0x18(%rax), %r15
movq 0x18(%rsp), %r14
testq %r14, %r14
je 0xb29b6
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rbx
xorl %r12d, %r12d
movl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
leaq (%r12,%r12,4), %rax
movl (%rbx,%rax,8), %edx
andl %ebp, %edx
movq %r15, %rdi
movl %r12d, %esi
xorl %ecx, %ecx
callq 0xa0887
incl %r12d
cmpq %r12, %r14
ja 0xb2998
movq %r15, %rdi
callq 0xa0a7d
movq 0x8(%rsp), %rdi
callq 0x2220
movq 0x28(%rsp), %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x183931(%rip), %rdi    # 0x236317
leaq 0x1834a4(%rip), %rsi    # 0x235e91
leaq 0x1838e0(%rip), %rcx    # 0x2362d4
movl $0x2338, %edx           # imm = 0x2338
callq 0x2110
leaq 0x183903(%rip), %rdi    # 0x236308
jmp 0xb2a0e
leaq 0x1838bd(%rip), %rdi    # 0x2362cb
leaq 0x18347c(%rip), %rsi    # 0x235e91
leaq 0x1838b8(%rip), %rcx    # 0x2362d4
movl $0x2319, %edx           # imm = 0x2319
callq 0x2110
leaq 0x1838f2(%rip), %rdi    # 0x23631f
leaq 0x18345d(%rip), %rsi    # 0x235e91
leaq 0x183899(%rip), %rcx    # 0x2362d4
movl $0x2360, %edx           # imm = 0x2360
callq 0x2110
leaq 0x1838e5(%rip), %rdi    # 0x236331
jmp 0xb2a55
leaq 0x1838e7(%rip), %rdi    # 0x23633c
leaq 0x183435(%rip), %rsi    # 0x235e91
leaq 0x183871(%rip), %rcx    # 0x2362d4
movl $0x2361, %edx           # imm = 0x2361
callq 0x2110