// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: asg_arc_cut_inexact_debug(asg_t*, ma_hit_t_alloc*, asg64_v*, int, unsigned int, unsigned int, asg64_v*)
void asg_arc_cut_inexact_debug(asg_t *g, ma_hit_t_alloc* src, asg64_v *in, int32_t max_ext, uint32_t is_ou, uint32_t is_trio, asg64_v *dbg)
{
    asg64_v tx = {0,0,0}, *b = NULL;
    uint32_t v, w, i, k, nv, nw, kv, kw, iv, iw, n_vtx = g->n_seq<<1, to_del, cnt = 0, ov_max = 0, ow_max = 0, ov_max_i = 0;
    asg_arc_t *av = NULL, *aw = NULL, *a = NULL;
    if(in) b = in;
    else b = &tx;
    b->n = 0;

    for (v = 0; v < n_vtx; ++v)  {
        if(g->seq[v>>1].del) continue;
        if(g->seq_vis[v] == 0) {
            av = asg_arc_a(g, v); nv = asg_arc_n(g, v);
            if (nv < 2) continue;
            for (i = kv = 0; i < nv; ++i) {
                if(av[i].del) continue;
                kv++;
            }
            if(kv < 2) continue;

            for (i = 0; i < nv; ++i) {
                if(av[i].del || av[i].el) continue;
                kv_push(uint64_t, *b, (uint64_t)((uint64_t)av[i].ol << 32 | (av - g->arc + i)));   
            }
        }
	}
    radix_sort_srt64(b->a, b->a + b->n);

    for (k = 0; k < b->n; k++) {
        a = &g->arc[(uint32_t)b->a[k]];
        if(a->del) continue;
        v = (a->ul)>>32, w = a->v^1; to_del = 0;
        nv = asg_arc_n(g, v), nw = asg_arc_n(g, w);
        if(((v>>1) == 50356 && (w>>1) == 1276292)||((v>>1) == 1276292 && (w>>1) == 50356)) {
            fprintf(stderr, "[0]v->%u, w->%u, nv->%u, nw->%u\n", v, w, nv, nw);
        }
        if (nv == 1 && nw == 1) continue;
        av = asg_arc_a(g, v), aw = asg_arc_a(g, w);
        ov_max = ow_max = ov_max_i = 0;

        for (i = 0, kv = 0; i < nv; ++i) {
			if (av[i].del) continue;
			if (ov_max < av[i].ol) {
                ov_max = av[i].ol;
                ov_max_i = i;
            }
			++kv;
		}
        if(((v>>1) == 50356 && (w>>1) == 1276292)||((v>>1) == 1276292 && (w>>1) == 50356)) {
            fprintf(stderr, "[1]v->%u, w->%u, kv->%u, a->ol->%u, ov_max->%u\n", v, w, kv, a->ol, ov_max);
        }
		if (kv >= 2 && a->ol == ov_max) continue;

        for (i = 0, kw = 0; i < nw; ++i) {
			if (aw[i].del) continue;
			if (ow_max < aw[i].ol) {
                ow_max = aw[i].ol;
            }
			++kw;
		}
        if(((v>>1) == 50356 && (w>>1) == 1276292)||((v>>1) == 1276292 && (w>>1) == 50356)) {
            fprintf(stderr, "[2]v->%u, w->%u, kw->%u, a->ol->%u, ow_max->%u\n", v, w, kw, a->ol, ow_max);
        }
		if (kw >= 2 && a->ol == ow_max) continue;

        if (kv <= 1 && kw <= 1) continue;

        ///to see which one is the current edge (from v and w)
		for (iv = 0; iv < nv; ++iv)
			if (av[iv].v == (w^1)) break;
		for (iw = 0; iw < nw; ++iw)
			if (aw[iw].v == (v^1)) break;
        ///if one edge has been deleted, it should be deleted in both direction
        if (av[iv].del && aw[iw].del) continue;

        ///if this edge is an inexact edge
        if(a->el == 0 && src[v>>1].is_fully_corrected == 1 && src[w>>1].is_fully_corrected == 1) {
            if (kv > 1 && kw > 1) {
				to_del = 1;
            } else if (kw == 1) {
                if (asg_topocut_aux(g, w^1, max_ext) < max_ext) to_del = 1;
            } else if (kv == 1) {
                if (asg_topocut_aux(g, v^1, max_ext) < max_ext) to_del = 1;
            }
        }

        if(a->el == 0 && src[v>>1].is_fully_corrected == 1 && src[w>>1].is_fully_corrected == 0) {
            if(av[ov_max_i].el == 1 && src[av[ov_max_i].v>>1].is_fully_corrected == 1) {
                if (kv > 1 && kw > 1) {
                    to_del = 1;
                } else if (kw == 1) {
                    if (asg_topocut_aux(g, w^1, max_ext) < max_ext) to_del = 1;
                } else if (kv == 1) {
                    if (asg_topocut_aux(g, v^1, max_ext) < max_ext) to_del = 1;
                }
            }
        }

        if(((v>>1) == 50356 && (w>>1) == 1276292)||((v>>1) == 1276292 && (w>>1) == 50356)) {
            fprintf(stderr, "[3]v->%u, w->%u, to_del->%u, el->%u, src[v>>1].is_fully_corrected->%u, src[w>>1].is_fully_corrected->%u\n", 
                    v, w, to_del, a->el, src[v>>1].is_fully_corrected, src[w>>1].is_fully_corrected);
            fprintf(stderr, "[4]v->%u, w->%u, to_del->%u, av[ov_max_i].v->%u, av[ov_max_i].el->%u, src[av[ov_max_i].v>>1].is_fully_corrected->%u\n", 
                    v, w, to_del, av[ov_max_i].v, av[ov_max_i].el, src[av[ov_max_i].v>>1].is_fully_corrected);
        }

        if (to_del) {
            av[iv].del = aw[iw].del = 1, ++cnt;
            if(dbg) {
                kv_push(uint64_t, *dbg, (av - g->arc + iv)); 
                kv_push(uint64_t, *dbg, (aw - g->arc + iw)); 
                if(((v>>1) == 50356 && (w>>1) == 1276292)||((v>>1) == 1276292 && (w>>1) == 50356)) {
                    fprintf(stderr, "[5]v->%u, w->%u, (av-g->arc+iv)->%u, (aw-g->arc+iw)->%u\n", 
                    v, w, (uint32_t)(av - g->arc + iv), (uint32_t)(aw - g->arc + iw));
                }
            }
        }
    }

    if(!in) free(tx.a);
    if(dbg) {
        for (i = 0; i < dbg->n; i++) g->arc[dbg->a[i]].del = 0;
    }
    // if (cnt > 0) asg_cleanup(g);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %ecx, 0x54(%rsp)
movq %rdx, %r12
movq %rsi, 0x58(%rsp)
movl 0x14(%rdi), %eax
addl %eax, %eax
testq %rdx, %rdx
je 0x1a73c5
andq $0x0, (%r12)
movl %eax, %r8d
xorl %r14d, %r14d
movl $0x7fffffff, %r11d      # imm = 0x7FFFFFFF
xorl %r10d, %r10d
movq $0x0, 0x40(%rsp)
movq $0x0, 0x68(%rsp)
movq %rdi, 0x8(%rsp)
movq %r8, 0x48(%rsp)
cmpq %r8, %r14
je 0x1a7565
movq 0x20(%rdi), %rax
movl %r14d, %ecx
shrl %ecx
cmpl $0x0, (%rax,%rcx,8)
js 0x1a7413
movq 0x30(%rdi), %rax
cmpb $0x0, (%rax,%r14)
je 0x1a7418
incq %r14
jmp 0x1a73f0
movq 0x28(%rdi), %rax
movq (%rax,%r14,8), %rax
testl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
je 0x1a7413
movq 0x8(%rdi), %rcx
movq %rax, %rdx
shrq $0x20, %rdx
imulq $0x18, %rdx, %rdx
leaq (%rcx,%rdx), %rbx
movl %eax, %r13d
imulq $0x18, %r13, %rax
leaq (%rcx,%rdx), %rbp
addq $0xc, %rbp
xorl %ecx, %ecx
xorl %edx, %edx
cmpq %rcx, %rax
je 0x1a7463
movl (%rbp,%rcx), %esi
notl %esi
shrl $0x1f, %esi
addl %esi, %edx
addq $0x18, %rcx
jmp 0x1a744d
cmpl $0x2, %edx
jb 0x1a7413
xorl %r15d, %r15d
movq %rbx, 0x28(%rsp)
cmpq %r15, %r13
je 0x1a755b
cmpl $0x0, (%rbp)
js 0x1a754f
cmpb $0x0, 0x6(%rbp)
jne 0x1a754f
testq %r12, %r12
je 0x1a74ba
movq (%r12), %rax
cmpq 0x8(%r12), %rax
jne 0x1a7509
movq %r10, %rbx
leaq (%rax,%rax), %rsi
testq %rax, %rax
pushq $0x2
popq %rax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r12)
movq 0x10(%r12), %rdi
jmp 0x1a74dc
cmpq 0x40(%rsp), %r10
jne 0x1a7509
leaq (%r10,%r10), %rsi
movq %r10, %rbx
testq %r10, %r10
pushq $0x2
popq %rax
cmoveq %rax, %rsi
movq %rsi, 0x40(%rsp)
movq 0x68(%rsp), %rdi
shlq $0x3, %rsi
callq 0x2370
testq %r12, %r12
je 0x1a74f1
movq %rax, 0x10(%r12)
jmp 0x1a74f6
movq %rax, 0x68(%rsp)
movq 0x8(%rsp), %rdi
movq %rbx, %r10
movl $0x7fffffff, %r11d      # imm = 0x7FFFFFFF
movq 0x28(%rsp), %rbx
movl (%rbp), %ecx
andl %r11d, %ecx
movq %rbx, %rax
subq 0x8(%rdi), %rax
cqto
pushq $0x18
popq %rsi
idivq %rsi
testq %r12, %r12
je 0x1a7536
movq (%r12), %rdx
movq 0x10(%r12), %rsi
leaq 0x1(%rdx), %r8
movq %r8, (%r12)
jmp 0x1a7541
movq %r10, %rdx
incq %r10
movq 0x68(%rsp), %rsi
shlq $0x20, %rcx
addq %r15, %rax
orq %rcx, %rax
movq %rax, (%rsi,%rdx,8)
incq %r15
addq $0x18, %rbp
jmp 0x1a7470
movq 0x48(%rsp), %r8
jmp 0x1a7413
movq 0x68(%rsp), %rdi
movq %r10, 0x10(%rsp)
movq %r10, %rax
testq %r12, %r12
je 0x1a7580
movq (%r12), %rax
movq 0x10(%r12), %rdi
leaq (%rdi,%rax,8), %rsi
movq %r12, 0x18(%rsp)
callq 0x1a3def
movq 0x18(%rsp), %r10
xorl %ebx, %ebx
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %r11
movl %ebx, %ebx
testq %r10, %r10
je 0x1a75b5
cmpq %rbx, (%r10)
jbe 0x1a7dfc
movq 0x10(%r10), %rax
jmp 0x1a75c3
movq 0x68(%rsp), %rax
cmpq %rbx, %r11
jbe 0x1a7ded
movq 0x8(%rdi), %r14
movl (%rax,%rbx,8), %eax
imulq $0x18, %rax, %rax
cmpl $0x0, 0xc(%r14,%rax)
js 0x1a766a
addq %rax, %r14
movq (%r14), %rbp
movq %rbp, %r15
shrq $0x20, %r15
movl 0x8(%r14), %edx
movq %rdx, %rcx
xorq $0x1, %rcx
movq 0x28(%rdi), %rax
movq (%rax,%r15,8), %r12
movq %rcx, 0x70(%rsp)
movq (%rax,%rcx,8), %r13
shrq $0x21, %rbp
movl %ebp, %eax
xorl $0xc4b4, %eax           # imm = 0xC4B4
movq %rdx, 0x28(%rsp)
andl $-0x2, %edx
movl %edx, %ecx
xorl $0x26f308, %ecx         # imm = 0x26F308
orl %eax, %ecx
sete 0x3(%rsp)
movl %edx, 0x4(%rsp)
je 0x1a783a
movl %ebp, %eax
xorl $0x137984, %eax         # imm = 0x137984
movl %edx, %ecx
xorl $0x18968, %ecx          # imm = 0x18968
orl %eax, %ecx
je 0x1a783a
movq %rbp, 0x48(%rsp)
movq %r13, 0x40(%rsp)
movq %r15, 0x38(%rsp)
movq %r12, 0x90(%rsp)
cmpl $0x1, %r12d
jne 0x1a7671
cmpl $0x1, 0x40(%rsp)
jne 0x1a7671
incl %ebx
jmp 0x1a759f
movq 0x28(%rsp), %rax
movq %rax, 0x98(%rsp)
movl 0x90(%rsp), %r13d
movl 0x40(%rsp), %eax
movq %rax, 0x20(%rsp)
movq 0x8(%rdi), %rdx
movq 0x28(%rdi), %rax
movq 0x38(%rsp), %rcx
movl 0x4(%rax,%rcx,8), %ecx
imulq $0x18, %rcx, %rsi
leaq (%rdx,%rsi), %rcx
movq %rcx, 0x60(%rsp)
movq 0x70(%rsp), %rcx
movl 0x4(%rax,%rcx,8), %eax
movq %rax, 0x80(%rsp)
movq %rdx, 0x88(%rsp)
movq %rsi, 0x78(%rsp)
leaq (%rdx,%rsi), %rax
addq $0xc, %rax
xorl %ecx, %ecx
xorl %r15d, %r15d
xorl %r12d, %r12d
xorl %ebp, %ebp
cmpq %rcx, %r13
je 0x1a7711
movl (%rax), %edx
cmpl %edx, %r12d
movl %edx, %esi
cmoval %r12d, %esi
movl %ebp, %r9d
cmovbl %ecx, %r9d
xorl %r8d, %r8d
testl %edx, %edx
cmovnsl %esi, %r12d
cmovnsl %r9d, %ebp
setns %r8b
addl %r8d, %r15d
incq %rcx
addq $0x18, %rax
jmp 0x1a76dd
cmpb $0x0, 0x3(%rsp)
jne 0x1a7aad
movq 0x48(%rsp), %rax
xorl $0x137984, %eax         # imm = 0x137984
movl 0x4(%rsp), %ecx
xorl $0x18968, %ecx          # imm = 0x18968
orl %eax, %ecx
je 0x1a7aad
cmpl $0x2, %r15d
jb 0x1a7752
movl 0xc(%r14), %eax
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %eax
cmpl %r12d, %eax
je 0x1a766a
movq %rbx, 0x30(%rsp)
imulq $0x18, 0x80(%rsp), %rdx
movq 0x88(%rsp), %rcx
leaq (%rcx,%rdx), %rax
movq %rax, 0x80(%rsp)
imulq $0x18, 0x20(%rsp), %rax
movq %rdx, 0xa0(%rsp)
addq %rdx, %rcx
addq $0xc, %rcx
xorl %edx, %edx
xorl %r12d, %r12d
xorl %ebx, %ebx
cmpq %rdx, %rax
je 0x1a77b7
movl (%rcx,%rdx), %esi
cmpl %esi, %ebx
movl %esi, %r9d
cmoval %ebx, %r9d
xorl %r8d, %r8d
testl %esi, %esi
setns %r8b
cmovnsl %r9d, %ebx
addl %r8d, %r12d
addq $0x18, %rdx
jmp 0x1a7790
cmpb $0x0, 0x3(%rsp)
movl 0x4(%rsp), %ecx
jne 0x1a7bb8
movq 0x48(%rsp), %rax
xorl $0x137984, %eax         # imm = 0x137984
xorl $0x18968, %ecx          # imm = 0x18968
orl %eax, %ecx
je 0x1a7bb8
cmpl $0x2, %r12d
jb 0x1a77fe
movl 0xc(%r14), %eax
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %eax
cmpl %ebx, %eax
movq 0x30(%rsp), %rbx
je 0x1a766a
jmp 0x1a780d
cmpl $0x2, %r15d
movq 0x30(%rsp), %rbx
jb 0x1a766a
movq 0x88(%rsp), %rax
movq 0x78(%rsp), %rcx
addq %rcx, %rax
addq $0x8, %rax
xorl %ecx, %ecx
cmpq %rcx, %r13
je 0x1a7874
movq 0x28(%rsp), %rdx
cmpl %edx, (%rax)
je 0x1a787e
incq %rcx
addq $0x18, %rax
jmp 0x1a7823
movq 0xab79f(%rip), %rax     # 0x252fe0
movq (%rax), %rdi
leaq 0x4fd7e(%rip), %rsi     # 0x1f75c9
movl %r15d, %edx
movq 0x70(%rsp), %rcx
movl %r12d, %r8d
movl %r13d, %r9d
xorl %eax, %eax
callq 0x22b0
movq 0x10(%rsp), %r11
movq 0x18(%rsp), %r10
movq 0x8(%rsp), %rdi
jmp 0x1a7646
movq 0x90(%rsp), %r8
jmp 0x1a7881
movl %ecx, %r8d
movq 0x88(%rsp), %rax
movq 0xa0(%rsp), %rcx
addq %rcx, %rax
addq $0x8, %rax
xorl %ecx, %ecx
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %r9
movq 0x20(%rsp), %r13
cmpq %rcx, %r13
je 0x1a78c3
movl (%rax), %edx
xorl %esi, %edx
cmpl $0x1, %edx
je 0x1a78c0
incq %rcx
addq $0x18, %rax
jmp 0x1a78a9
movl %ecx, %r9d
movq %r8, 0x90(%rsp)
movl %r8d, %esi
imulq $0x18, %rsi, %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x88(%rsp)
cmpl $0x0, 0xc(%rax,%rcx)
movq %r9, 0x40(%rsp)
movl %r9d, %r8d
jns 0x1a7905
imulq $0x18, %r8, %rax
movq 0x80(%rsp), %rcx
cmpl $0x0, 0xc(%rcx,%rax)
js 0x1a766a
xorl %eax, %eax
cmpb $0x0, 0x12(%r14)
movl 0x48(%rsp), %r13d
movl %ebp, %r9d
movl 0x4(%rsp), %edx
jne 0x1a7b03
imulq $0x18, %r13, %rbx
xorl %ebp, %ebp
movq 0x58(%rsp), %rax
cmpb $0x1, 0x10(%rax,%rbx)
jne 0x1a79cf
movq 0x28(%rsp), %rax
shrl %eax
imulq $0x18, %rax, %rax
movq 0x58(%rsp), %rcx
cmpb $0x1, 0x10(%rcx,%rax)
movq 0x58(%rsp), %rax
jne 0x1a79cf
cmpl $0x2, %r15d
jb 0x1a795f
pushq $0x1
popq %rbp
cmpl $0x1, %r12d
ja 0x1a79cf
movq %rsi, 0x20(%rsp)
movq 0x28(%rsp), %rcx
movl %ecx, %esi
cmpl $0x1, %r12d
je 0x1a798f
movl $0x0, %ebp
cmpl $0x1, %r15d
movl 0x4(%rsp), %edx
movq 0x20(%rsp), %rsi
jne 0x1a79cf
movq 0x38(%rsp), %rax
movl %eax, %esi
xorl $0x1, %esi
movl 0x54(%rsp), %edx
movq %r8, 0x78(%rsp)
movq %r9, %rbp
callq 0x71a0e
movq %rbp, %r9
movq 0x78(%rsp), %r8
movq 0x10(%rsp), %r11
movq 0x18(%rsp), %r10
movq 0x8(%rsp), %rdi
xorl %ebp, %ebp
cmpl 0x54(%rsp), %eax
movq 0x58(%rsp), %rax
setl %bpl
movl 0x4(%rsp), %edx
movq 0x20(%rsp), %rsi
cmpb $0x0, 0x12(%r14)
jne 0x1a7afc
movq %rax, %rcx
addq %rbx, %rax
addq $0x10, %rax
cmpb $0x1, (%rax)
jne 0x1a7afc
movq 0x98(%rsp), %rax
shrl %eax
imulq $0x18, %rax, %rax
cmpb $0x0, 0x10(%rcx,%rax)
movq 0x30(%rsp), %rbx
jne 0x1a7aa9
imulq $0x18, %r9, %rax
movq 0x60(%rsp), %rcx
cmpb $0x1, 0x12(%rcx,%rax)
jne 0x1a7aa9
addq %rcx, %rax
movl 0x8(%rax), %eax
shrl %eax
imulq $0x18, %rax, %rax
movq 0x58(%rsp), %rcx
cmpb $0x1, 0x10(%rcx,%rax)
jne 0x1a7aa9
cmpl $0x2, %r15d
jb 0x1a7a4a
pushq $0x1
popq %rax
cmpl $0x1, %r12d
ja 0x1a7b03
cmpl $0x1, %r12d
je 0x1a7a63
cmpl $0x1, %r15d
jne 0x1a7aa9
movq 0x38(%rsp), %rax
xorl $0x1, %eax
movq %rax, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq 0x28(%rsp), %rsi
movl 0x54(%rsp), %ebx
movl %ebx, %edx
movq %r8, %r15
movq %r9, %r12
callq 0x71a0e
movq %r12, %r9
movq 0x20(%rsp), %rsi
movq %r15, %r8
movl 0x4(%rsp), %edx
movq 0x10(%rsp), %r11
movq 0x18(%rsp), %r10
movq 0x8(%rsp), %rdi
cmpl %ebx, %eax
movq 0x30(%rsp), %rbx
pushq $0x1
popq %rax
cmovll %eax, %ebp
movl %ebp, %eax
jmp 0x1a7b03
movq 0xab52c(%rip), %rax     # 0x252fe0
movq (%rax), %rdi
movl 0xc(%r14), %r9d
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %r9d
subq $0x8, %rsp
leaq 0x4fb1c(%rip), %rsi     # 0x1f75ea
movq 0x40(%rsp), %rdx
movq 0x78(%rsp), %rcx
movl %r15d, %r8d
xorl %eax, %eax
pushq %r12
callq 0x22b0
movq 0x20(%rsp), %r11
movq 0x28(%rsp), %r10
movq 0x18(%rsp), %rdi
addq $0x10, %rsp
jmp 0x1a7738
movl %ebp, %eax
movq 0x30(%rsp), %rbx
movl %eax, %ebp
cmpb $0x0, 0x3(%rsp)
jne 0x1a7d15
movq 0x48(%rsp), %rax
xorl $0x137984, %eax         # imm = 0x137984
movl %edx, %ecx
xorl $0x18968, %ecx          # imm = 0x18968
orl %eax, %ecx
je 0x1a7d15
testl %ebp, %ebp
je 0x1a766a
movq 0x60(%rsp), %rax
movq 0x88(%rsp), %rcx
addq %rcx, %rax
addq $0xc, %rax
imulq $0x18, %r8, %rcx
movq 0x80(%rsp), %rdx
orb $-0x80, 0xf(%rdx,%rcx)
orb $-0x80, 0x3(%rax)
cmpq $0x0, 0xe0(%rsp)
je 0x1a766a
movq %rsi, %r15
movq 0xe0(%rsp), %rbx
movq (%rbx), %rcx
movq 0x10(%rbx), %r9
cmpq 0x8(%rbx), %rcx
jne 0x1a7c06
movq %r8, %r14
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rax
cmoveq %rax, %rsi
movq %rsi, 0x8(%rbx)
shlq $0x3, %rsi
movq %r9, %rdi
callq 0x2370
movq 0x8(%rsp), %rdi
movq %rax, %r9
movq %rax, 0x10(%rbx)
movq (%rbx), %rcx
jmp 0x1a7c09
movq 0xab421(%rip), %rax     # 0x252fe0
movq (%rax), %rdi
movl 0xc(%r14), %r9d
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %r9d
subq $0x8, %rsp
leaq 0x4fa41(%rip), %rsi     # 0x1f761a
movq 0x40(%rsp), %rdx
movq 0x78(%rsp), %rcx
movl %r12d, %r8d
xorl %eax, %eax
pushq %rbx
callq 0x22b0
movq 0x20(%rsp), %r11
movq 0x28(%rsp), %r10
movq 0x18(%rsp), %rdi
addq $0x10, %rsp
jmp 0x1a77de
movq %r8, %r14
movq 0x8(%rdi), %rsi
movq 0x60(%rsp), %rax
subq %rsi, %rax
cqto
pushq $0x18
popq %r8
idivq %r8
addq %r15, %rax
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movq %rax, (%r9,%rcx,8)
movq (%rbx), %r8
cmpq 0x8(%rbx), %r8
jne 0x1a7c66
leaq (%r8,%r8), %rsi
testq %r8, %r8
pushq $0x2
popq %rax
cmoveq %rax, %rsi
movq %rsi, 0x8(%rbx)
shlq $0x3, %rsi
movq %r9, %rdi
callq 0x2370
movq 0x8(%rsp), %rdi
movq %rax, %r9
movq %rax, 0x10(%rbx)
movq 0x8(%rdi), %rsi
movq (%rbx), %r8
movq 0x18(%rsp), %r10
movq 0x10(%rsp), %r11
movq 0x80(%rsp), %rax
subq %rsi, %rax
cqto
pushq $0x18
popq %rcx
idivq %rcx
movq %rax, %rcx
addq %rax, %r14
leaq 0x1(%r8), %rax
movq %rax, (%rbx)
movq %r14, (%r9,%r8,8)
cmpb $0x0, 0x3(%rsp)
movq 0x30(%rsp), %rbx
jne 0x1a7cbc
movq 0x48(%rsp), %rax
xorl $0x137984, %eax         # imm = 0x137984
movl 0x4(%rsp), %edx
xorl $0x18968, %edx          # imm = 0x18968
orl %eax, %edx
jne 0x1a766a
movq 0xab31d(%rip), %rax     # 0x252fe0
movq (%rax), %rdi
movq 0x60(%rsp), %rax
subq %rsi, %rax
cqto
pushq $0x18
popq %rsi
idivq %rsi
movq 0x90(%rsp), %r8
addl %eax, %r8d
movq 0x40(%rsp), %r9
addl %ecx, %r9d
leaq 0x4fa38(%rip), %rsi     # 0x1f7728
movq 0x38(%rsp), %rdx
movq 0x70(%rsp), %rcx
xorl %eax, %eax
callq 0x22b0
movq 0x10(%rsp), %r11
movq 0x18(%rsp), %r10
movq 0x8(%rsp), %rdi
jmp 0x1a766a
movq 0xab2c4(%rip), %rax     # 0x252fe0
movq (%rax), %rdi
movq %r9, %r15
movzbl 0x12(%r14), %r9d
imulq $0x18, %r13, %rax
movq 0x58(%rsp), %rbx
movzbl 0x10(%rbx,%rax), %r10d
movq 0x98(%rsp), %rax
shrl %eax
imulq $0x18, %rax, %rax
movzbl 0x10(%rbx,%rax), %r11d
movq %rsi, 0x20(%rsp)
leaq 0x4f8f4(%rip), %rsi     # 0x1f764a
movq 0x38(%rsp), %r14
movl %r14d, %edx
movq 0x70(%rsp), %r12
movl %r12d, %ecx
movq %r8, 0x78(%rsp)
movl %ebp, %r8d
xorl %eax, %eax
pushq %r11
pushq %r10
callq 0x22b0
popq %rcx
popq %rdx
movq 0xab25e(%rip), %rax     # 0x252fe0
movq (%rax), %rdi
imulq $0x18, %r15, %rax
movq 0x60(%rsp), %rcx
movl 0x8(%rcx,%rax), %r9d
movzbl 0x12(%rcx,%rax), %r10d
movl %r9d, %eax
shrl %eax
imulq $0x18, %rax, %rax
movzbl 0x10(%rbx,%rax), %r11d
movq 0x30(%rsp), %rbx
leaq 0x4f8ff(%rip), %rsi     # 0x1f76b3
movl %r14d, %edx
movl %r12d, %ecx
movl %ebp, %r8d
xorl %eax, %eax
pushq %r11
pushq %r10
callq 0x22b0
movq 0x30(%rsp), %rsi
movq 0x88(%rsp), %r8
movq 0x20(%rsp), %r11
movq 0x28(%rsp), %r10
movq 0x18(%rsp), %rdi
addq $0x10, %rsp
jmp 0x1a7b2a
movq 0x68(%rsp), %rdi
callq 0x2220
movq 0x8(%rsp), %rdi
movq 0xe0(%rsp), %rsi
testq %rsi, %rsi
je 0x1a7e2b
xorl %eax, %eax
movl %eax, %eax
cmpq %rax, (%rsi)
jbe 0x1a7e2b
movq 0x8(%rdi), %rcx
movq 0x10(%rsi), %rdx
imulq $0x18, (%rdx,%rax,8), %rdx
andl $0x7fffffff, 0xc(%rcx,%rdx) # imm = 0x7FFFFFFF
incl %eax
jmp 0x1a7e0b
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq