// File: /workspace/github_cpp_makefile_star2_O1/canzarlab[P]Trajan/src/EditDist.cpp
// Function: EditDist(Graph&, Graph&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void EditDist(Graph& g1, Graph& g2, string & fileName, string & outSolution, std::map<string, string> & t1Label2Node, std::map<string, string> & t2Label2Node, string & outScore)
{
    vn n1, n2;
    int k1 = GetNumTrees(g1.GetRoot(), n1), k2 = GetNumTrees(g2.GetRoot(), n2);
    Tree& t1 = (Tree&)(k1 >= k2 ? g1 : g2), &t2 = (Tree&)(k1 >= k2 ? g2 : g1);
    bool swp = false;
    if (k2 > k1)
    {
        cout << "Swap two tree\n";
        swap(n1, n2), swp = true;
        std::map<string, string> temp;
        temp = t1Label2Node;
        t1Label2Node = t2Label2Node;
        t2Label2Node = temp;
    }

    // read data.
    CSVReader reader(fileName);
    vector<vector<double>> cost_matrix = reader.getDoubleData();
    vector<vector<int>> scale_cost_matrix;
    const double scale = 1000.0;
    scale_cost_matrix.resize(swp ? cost_matrix[0].size() : cost_matrix.size());
    for (int i = 0; i < (int) cost_matrix.size(); ++i)
        for (int j = 0; j < (int) cost_matrix[0].size(); ++j)
            scale_cost_matrix[swp ? j : i].push_back((int) (scale*cost_matrix[i][j]));

    vvvi P;
    vvi S;
    GenPerms(n2, 0, S, P);
    vvvvi BP;
    vvi BL1, BL2;
    vvi BT1, BT2, BD1, BD2;
    int mm = numeric_limits<int>::max();
    for (int i = 0; i < P.size(); ++i)
    {
        newick_node* nroot = new newick_node(n2[0]->taxon);
        MakeTree(n2[0], nroot, 0, P[i]);
        int n = n1.size(), m = n2.size();
        vvi L1(n + 1, vi(n + 1)), L2(m + 1, vi(m + 1));
        vvi T1(n + 1, vi(n + 1, 1)), T2(m + 1, vi(m + 1, 1));
        vvi D1(n + 1, vi(n + 1, -1)), D2(m + 1, vi(m + 1, -1));
        GenTables(t1.GetRoot(), n, L1, T1, D1);
        GenTables(nroot, m, L2, T2, D2);
        vvvvi NP(n + 1, vvvi(n + 1, vvi(m + 1, vi(m + 1, -1))));
        int nm = OrderedEditDist(NP, L1, L2, T1, T2, D1, D2, n, m, scale_cost_matrix);
        if (nm < mm)
        {
            mm = nm, BP = move(NP);
            BL1 = move(L1), BL2 = move(L2);
            BT1 = move(T1), BT2 = move(T2);
            BD1 = move(D1), BD2 = move(D2);
        }
        DeallocTree(nroot);
    }
    ofstream myfile(outSolution);
    PrintMatching(BP, BL1, BL2, BT1, BT2, BD1, BD2, {0, 0, 0, 0}, swp, myfile, t1Label2Node, t2Label2Node);
    myfile.close();
    clog << "DIST: " << (double)mm/scale << endl;
    ofstream score(outScore);
    score << (double)mm/scale << endl;
    score.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x738, %rsp            # imm = 0x738
movq %r9, 0x50(%rsp)
movq %r8, 0x58(%rsp)
movq %rcx, 0x238(%rsp)
movq %rdx, %rbx
movq %rsi, %r14
xorpd %xmm0, %xmm0
leaq 0xd0(%rsp), %rsi
movapd %xmm0, (%rsi)
xorl %eax, %eax
movq %rax, 0x10(%rsi)
movq %rax, 0x30(%rsp)
movapd %xmm0, 0x20(%rsp)
movq %rdi, 0x60(%rsp)
movq 0x68(%rdi), %rdi
callq 0x552ec
movl %eax, 0x4(%rsp)
movq 0x68(%r14), %rdi
leaq 0x20(%rsp), %rsi
callq 0x552ec
movl %eax, 0x18(%rsp)
cmpl %eax, 0x4(%rsp)
movq 0x60(%rsp), %rax
cmovlq %r14, %rax
movq %rax, 0x60(%rsp)
jge 0x56d65
movq 0x31302(%rip), %rdi     # 0x87fc0
leaq 0x1ac54(%rip), %rsi     # 0x71919
movl $0xe, %edx
callq 0x93a0
movapd 0xd0(%rsp), %xmm0
movq 0xe0(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0xd0(%rsp)
movups 0x28(%rsp), %xmm1
movups %xmm1, 0xd8(%rsp)
movapd %xmm0, 0x20(%rsp)
movq %rax, 0x30(%rsp)
leaq 0x2c8(%rsp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
leaq 0x2c0(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0x58214
movq 0x58(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x58214
leaq 0x2c0(%rsp), %rsi
movq 0x50(%rsp), %rdi
callq 0x58214
leaq 0x2c0(%rsp), %rdi
callq 0xd886
leaq 0x298(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x288(%rsp), %rdi
callq 0xda94
leaq 0x278(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x18485(%rip), %rsi     # 0x6f220
leaq 0x1847f(%rip), %rdx     # 0x6f221
leaq 0x268(%rsp), %rdi
callq 0xdb24
leaq 0x4e0(%rsp), %rdi
leaq 0x288(%rsp), %rsi
leaq 0x268(%rsp), %rdx
callq 0xd66e
movq 0x268(%rsp), %rdi
cmpq %r15, %rdi
je 0x56de9
movq 0x278(%rsp), %rsi
incq %rsi
callq 0x9340
movq 0x288(%rsp), %rdi
cmpq %r14, %rdi
je 0x56e06
movq 0x298(%rsp), %rsi
incq %rsi
callq 0x9340
leaq 0xb0(%rsp), %rdi
leaq 0x4e0(%rsp), %rsi
xorl %edx, %edx
movl $0x2710, %ecx           # imm = 0x2710
callq 0x59450
xorpd %xmm0, %xmm0
movapd %xmm0, 0x220(%rsp)
movq $0x0, 0x230(%rsp)
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
movl 0x18(%rsp), %ecx
cmpl %ecx, 0x4(%rsp)
jge 0x56e64
movq 0xb0(%rsp), %rax
movq 0x8(%rax), %rsi
subq (%rax), %rsi
sarq $0x3, %rsi
jmp 0x56e7c
movq 0xb8(%rsp), %rsi
subq 0xb0(%rsp), %rsi
sarq $0x3, %rsi
imulq %rax, %rsi
leaq 0x220(%rsp), %rdi
callq 0x2ffce
movq 0xb8(%rsp), %rax
subq 0xb0(%rsp), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
testl %eax, %eax
jle 0x56f7a
xorl %r14d, %r14d
leaq 0x2c0(%rsp), %rbx
movq 0xb0(%rsp), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
shrq $0x3, %rcx
testl %ecx, %ecx
jle 0x56f52
leaq (%r14,%r14,2), %r15
xorl %r12d, %r12d
movl 0x18(%rsp), %ecx
cmpl %ecx, 0x4(%rsp)
movq %r14, %rcx
cmovlq %r12, %rcx
movl %ecx, %ecx
movq 0x220(%rsp), %rdx
leaq (%rcx,%rcx,2), %rcx
leaq (%rdx,%rcx,8), %rdi
movq (%rax,%r15,8), %rax
movsd (%rax,%r12,8), %xmm0
mulsd 0x1a9ed(%rip), %xmm0    # 0x718f8
cvttsd2si %xmm0, %eax
movl %eax, 0x2c0(%rsp)
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x56f2c
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x56f34
movq %rbx, %rdx
callq 0x310fc
movq 0xb0(%rsp), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
incq %r12
shrq $0x3, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r12
jl 0x56ed8
incq %r14
movq 0xb8(%rsp), %rax
subq 0xb0(%rsp), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
cltq
cmpq %rax, %r14
jl 0x56eb6
xorpd %xmm0, %xmm0
leaq 0x200(%rsp), %rcx
movapd %xmm0, (%rcx)
xorl %eax, %eax
movq %rax, 0x10(%rcx)
leaq 0x4c0(%rsp), %rdx
movq %rax, 0x10(%rdx)
movapd %xmm0, (%rdx)
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
callq 0x55378
xorpd %xmm0, %xmm0
movapd %xmm0, 0x1e0(%rsp)
xorl %eax, %eax
movq %rax, 0x1f0(%rsp)
movq %rax, 0x1d0(%rsp)
movapd %xmm0, 0x1c0(%rsp)
movq %rax, 0x1b0(%rsp)
movapd %xmm0, 0x1a0(%rsp)
movq %rax, 0x190(%rsp)
movapd %xmm0, 0x180(%rsp)
movq %rax, 0x170(%rsp)
movapd %xmm0, 0x160(%rsp)
movq %rax, 0x150(%rsp)
movapd %xmm0, 0x140(%rsp)
movq %rax, 0x130(%rsp)
movapd %xmm0, 0x120(%rsp)
movq 0x208(%rsp), %rax
cmpq 0x200(%rsp), %rax
je 0x577ec
movl $0x7fffffff, 0x14(%rsp) # imm = 0x7FFFFFFF
xorl %ebx, %ebx
xorl %r15d, %r15d
movl $0x38, %edi
callq 0x9330
movq %rax, %r14
movq 0x20(%rsp), %rax
movq (%rax), %rsi
addq $0x8, %rsi
xorpd %xmm0, %xmm0
movq %r14, %rdi
xorl %edx, %edx
callq 0x3d18e
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq 0x200(%rsp), %rcx
addq %rbx, %rcx
movq %r14, %rsi
xorl %edx, %edx
callq 0x5549e
movq %r14, 0x8(%rsp)
movq %r15, 0x240(%rsp)
movq %rbx, 0x248(%rsp)
movq 0xd8(%rsp), %r14
subq 0xd0(%rsp), %r14
movq 0x28(%rsp), %rbx
subq 0x20(%rsp), %rbx
movq %r14, %r15
shlq $0x1d, %r15
movabsq $0x100000000, %rax      # imm = 0x100000000
addq %rax, %r15
sarq $0x20, %r15
leaq 0x2c0(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
leaq 0x108(%rsp), %rdx
callq 0xf540
leaq 0x538(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
leaq 0xf0(%rsp), %rcx
callq 0x57efc
movq 0x2c0(%rsp), %rdi
testq %rdi, %rdi
je 0x5712a
movq 0x2d0(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
movq %rbx, %r12
shlq $0x1d, %r12
movabsq $0x100000000, %rax      # imm = 0x100000000
addq %rax, %r12
sarq $0x20, %r12
leaq 0x2c0(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
leaq 0xf0(%rsp), %rdx
callq 0xf540
leaq 0x108(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
leaq 0x98(%rsp), %rcx
callq 0x57efc
movq 0x2c0(%rsp), %rdi
testq %rdi, %rdi
je 0x57195
movq 0x2d0(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
movl $0x1, 0x98(%rsp)
leaq 0x2c0(%rsp), %rbp
movq %rbp, %rdi
movq %r15, %rsi
leaq 0x98(%rsp), %rdx
leaq 0x80(%rsp), %rcx
callq 0x3697a
leaq 0xf0(%rsp), %rdi
movq %r15, %rsi
movq %rbp, %rdx
leaq 0x38(%rsp), %rcx
callq 0x57efc
movq 0x2c0(%rsp), %rdi
testq %rdi, %rdi
je 0x571f8
movq 0x2d0(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
movl $0x1, 0x80(%rsp)
leaq 0x2c0(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
leaq 0x80(%rsp), %rdx
leaq 0x38(%rsp), %rcx
callq 0x3697a
leaq 0x98(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
leaq 0x68(%rsp), %rcx
callq 0x57efc
movq 0x2c0(%rsp), %rdi
testq %rdi, %rdi
je 0x57258
movq 0x2d0(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
movl $0xffffffff, 0x38(%rsp) # imm = 0xFFFFFFFF
leaq 0x2c0(%rsp), %rbp
movq %rbp, %rdi
movq %r15, %rsi
leaq 0x38(%rsp), %rdx
leaq 0x68(%rsp), %rcx
callq 0x3697a
leaq 0x80(%rsp), %rdi
movq %r15, %rsi
movq %rbp, %rdx
leaq 0x2a8(%rsp), %rcx
callq 0x57efc
movq 0x2c0(%rsp), %rdi
testq %rdi, %rdi
je 0x572b5
movq 0x2d0(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
movl $0xffffffff, 0x68(%rsp) # imm = 0xFFFFFFFF
leaq 0x2c0(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
leaq 0x68(%rsp), %rdx
leaq 0x2a8(%rsp), %rcx
callq 0x3697a
leaq 0x38(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
leaq 0x250(%rsp), %rcx
callq 0x57efc
movq 0x2c0(%rsp), %rdi
testq %rdi, %rdi
je 0x57312
movq 0x2d0(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
shrq $0x3, %r14
movq 0x60(%rsp), %rax
movq 0x68(%rax), %rdi
movl %r14d, %esi
leaq 0x538(%rsp), %rdx
leaq 0xf0(%rsp), %rcx
leaq 0x80(%rsp), %r8
callq 0x55c0e
shrq $0x3, %rbx
movq 0x8(%rsp), %rdi
movl %ebx, %esi
leaq 0x108(%rsp), %rdx
leaq 0x98(%rsp), %rcx
leaq 0x38(%rsp), %r8
callq 0x55c0e
movl $0xffffffff, 0xcc(%rsp) # imm = 0xFFFFFFFF
leaq 0x250(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
leaq 0xcc(%rsp), %rdx
leaq 0x1f(%rsp), %rcx
callq 0x3697a
leaq 0x2a8(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
movq %r13, %rdx
leaq 0x1e(%rsp), %rcx
callq 0x57efc
leaq 0x2c0(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movq %rbp, %rdx
leaq 0x1d(%rsp), %rcx
callq 0x57f94
leaq 0x68(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
leaq 0x1c(%rsp), %rcx
callq 0x5802c
movq %r12, %rdi
callq 0x580c4
leaq 0x2a8(%rsp), %rdi
callq 0x30172
movq 0x250(%rsp), %rdi
testq %rdi, %rdi
je 0x5740c
movq 0x260(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
leaq 0x68(%rsp), %rdi
leaq 0x538(%rsp), %rsi
leaq 0x108(%rsp), %rdx
leaq 0xf0(%rsp), %rcx
leaq 0x98(%rsp), %r8
leaq 0x80(%rsp), %r9
leaq 0x220(%rsp), %rax
pushq %rax
pushq %rbx
pushq %r14
leaq 0x50(%rsp), %rax
pushq %rax
callq 0x55e0a
addq $0x20, %rsp
movl %eax, %ebx
cmpl 0x14(%rsp), %eax
movq 0x240(%rsp), %r15
jge 0x57748
xorpd %xmm0, %xmm0
movapd %xmm0, 0x2c0(%rsp)
movaps 0x1e0(%rsp), %xmm0
movq 0x1f0(%rsp), %rax
movups 0x68(%rsp), %xmm1
movaps %xmm1, 0x1e0(%rsp)
movq 0x78(%rsp), %rcx
movq %rcx, 0x1f0(%rsp)
movaps 0x2c0(%rsp), %xmm1
movaps %xmm0, 0x2c0(%rsp)
movq %rax, 0x2d0(%rsp)
movups %xmm1, 0x68(%rsp)
xorl %r14d, %r14d
movq %r14, 0x78(%rsp)
movq %r12, %rdi
callq 0x58106
xorps %xmm0, %xmm0
movaps %xmm0, 0x2c0(%rsp)
movaps 0x1c0(%rsp), %xmm0
movq 0x1d0(%rsp), %rax
movups 0x538(%rsp), %xmm1
movaps %xmm1, 0x1c0(%rsp)
movq 0x548(%rsp), %rcx
movq %rcx, 0x1d0(%rsp)
movaps 0x2c0(%rsp), %xmm1
movaps %xmm0, 0x2c0(%rsp)
movq %rax, 0x2d0(%rsp)
movups %xmm1, 0x538(%rsp)
movq %r14, 0x548(%rsp)
movq %r12, %rdi
callq 0x30172
xorps %xmm0, %xmm0
movaps %xmm0, 0x2c0(%rsp)
movaps 0x1a0(%rsp), %xmm0
movq 0x1b0(%rsp), %rax
movups 0x108(%rsp), %xmm1
movaps %xmm1, 0x1a0(%rsp)
movq 0x118(%rsp), %rcx
movq %rcx, 0x1b0(%rsp)
movaps 0x2c0(%rsp), %xmm1
movaps %xmm0, 0x2c0(%rsp)
movq %rax, 0x2d0(%rsp)
movups %xmm1, 0x108(%rsp)
movq %r14, 0x118(%rsp)
movq %r12, %rdi
callq 0x30172
xorps %xmm0, %xmm0
movaps %xmm0, 0x2c0(%rsp)
movaps 0x180(%rsp), %xmm0
movq 0x190(%rsp), %rax
movups 0xf0(%rsp), %xmm1
movaps %xmm1, 0x180(%rsp)
movq 0x100(%rsp), %rcx
movq %rcx, 0x190(%rsp)
movaps 0x2c0(%rsp), %xmm1
movaps %xmm0, 0x2c0(%rsp)
movq %rax, 0x2d0(%rsp)
movups %xmm1, 0xf0(%rsp)
movq %r14, 0x100(%rsp)
movq %r12, %rdi
callq 0x30172
xorps %xmm0, %xmm0
movaps %xmm0, 0x2c0(%rsp)
movaps 0x160(%rsp), %xmm0
movq 0x170(%rsp), %rax
movups 0x98(%rsp), %xmm1
movaps %xmm1, 0x160(%rsp)
movq 0xa8(%rsp), %rcx
movq %rcx, 0x170(%rsp)
movaps 0x2c0(%rsp), %xmm1
movaps %xmm0, 0x2c0(%rsp)
movq %rax, 0x2d0(%rsp)
movups %xmm1, 0x98(%rsp)
movq %r14, 0xa8(%rsp)
movq %r12, %rdi
callq 0x30172
xorps %xmm0, %xmm0
movaps %xmm0, 0x2c0(%rsp)
movaps 0x140(%rsp), %xmm0
movq 0x150(%rsp), %rax
movups 0x80(%rsp), %xmm1
movaps %xmm1, 0x140(%rsp)
movq 0x90(%rsp), %rcx
movq %rcx, 0x150(%rsp)
movaps 0x2c0(%rsp), %xmm1
movaps %xmm0, 0x2c0(%rsp)
movq %rax, 0x2d0(%rsp)
movups %xmm1, 0x80(%rsp)
movq %r14, 0x90(%rsp)
movq %r12, %rdi
callq 0x30172
xorps %xmm0, %xmm0
movaps %xmm0, 0x2c0(%rsp)
movapd 0x120(%rsp), %xmm0
movq 0x130(%rsp), %rax
movups 0x38(%rsp), %xmm1
movaps %xmm1, 0x120(%rsp)
movq 0x48(%rsp), %rcx
movq %rcx, 0x130(%rsp)
movaps 0x2c0(%rsp), %xmm1
movapd %xmm0, 0x2c0(%rsp)
movq %rax, 0x2d0(%rsp)
movups %xmm1, 0x38(%rsp)
movq %r14, 0x48(%rsp)
movq %r12, %rdi
callq 0x30172
movl %ebx, 0x14(%rsp)
movq 0x8(%rsp), %rdi
callq 0x560d0
leaq 0x68(%rsp), %rdi
callq 0x58106
leaq 0x38(%rsp), %rdi
callq 0x30172
leaq 0x80(%rsp), %rdi
callq 0x30172
leaq 0x98(%rsp), %rdi
callq 0x30172
leaq 0xf0(%rsp), %rdi
callq 0x30172
leaq 0x108(%rsp), %rdi
callq 0x30172
leaq 0x538(%rsp), %rdi
callq 0x30172
incq %r15
movq 0x208(%rsp), %rax
subq 0x200(%rsp), %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
movq 0x248(%rsp), %rbx
addq $0x18, %rbx
cmpq %r15, %rax
ja 0x5704c
xorps %xmm0, %xmm0
cvtsi2sdl 0x14(%rsp), %xmm0
jmp 0x577f4
movsd 0x1a10c(%rip), %xmm0    # 0x71900
movsd %xmm0, 0x8(%rsp)
leaq 0x2c0(%rsp), %rbx
movq %rbx, %rdi
movq 0x238(%rsp), %rsi
movl $0x10, %edx
callq 0x9700
xorl %eax, %eax
movl 0x18(%rsp), %ecx
cmpl %ecx, 0x4(%rsp)
setl %al
xorpd %xmm0, %xmm0
leaq 0x520(%rsp), %r10
movapd %xmm0, (%r10)
leaq 0x120(%rsp), %r11
leaq 0x1e0(%rsp), %rdi
leaq 0x1c0(%rsp), %rsi
leaq 0x1a0(%rsp), %rdx
leaq 0x180(%rsp), %rcx
leaq 0x160(%rsp), %r8
leaq 0x140(%rsp), %r9
pushq 0x50(%rsp)
pushq 0x60(%rsp)
pushq %rbx
pushq %rax
pushq %r10
pushq %r11
callq 0x56109
addq $0x30, %rsp
leaq 0x2c0(%rsp), %rbx
movq %rbx, %rdi
callq 0x94a0
movq 0x306dd(%rip), %rdi     # 0x87f78
leaq 0x1a086(%rip), %rsi     # 0x71928
movl $0x6, %edx
callq 0x93a0
movsd 0x8(%rsp), %xmm0
divsd 0x1a03e(%rip), %xmm0    # 0x718f8
movq 0x306b7(%rip), %rdi     # 0x87f78
movsd %xmm0, 0x8(%rsp)
callq 0x9560
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq %r14, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9220
movq 0x770(%rsp), %rsi
leaq 0x538(%rsp), %rdi
movl $0x10, %edx
callq 0x9700
leaq 0x538(%rsp), %rdi
movsd 0x8(%rsp), %xmm0
callq 0x9560
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x9320
movsbl %al, %esi
movq %r14, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9220
leaq 0x538(%rsp), %r14
movq %r14, %rdi
callq 0x94a0
movq 0x3063c(%rip), %rax     # 0x87fa0
movq (%rax), %r15
movq 0x18(%rax), %r12
leaq 0x540(%rsp), %rdi
movq %r15, -0x8(%rdi)
movq -0x18(%r15), %rax
movq %r12, 0x538(%rsp,%rax)
callq 0x92c0
movl $0xf8, %r13d
addq %r13, %r14
movq %r14, %rdi
callq 0x9110
leaq 0x2c8(%rsp), %rdi
movq %r15, -0x8(%rdi)
movq -0x18(%r15), %rax
movq %r12, 0x2c0(%rsp,%rax)
callq 0x92c0
addq %r13, %rbx
movq %rbx, %rdi
callq 0x9110
leaq 0x120(%rsp), %rdi
callq 0x30172
leaq 0x140(%rsp), %rdi
callq 0x30172
leaq 0x160(%rsp), %rdi
callq 0x30172
leaq 0x180(%rsp), %rdi
callq 0x30172
leaq 0x1a0(%rsp), %rdi
callq 0x30172
leaq 0x1c0(%rsp), %rdi
callq 0x30172
leaq 0x1e0(%rsp), %rdi
callq 0x58106
leaq 0x4c0(%rsp), %rdi
callq 0x30172
leaq 0x200(%rsp), %rdi
callq 0x580c4
leaq 0x220(%rsp), %rdi
callq 0x30172
leaq 0xb0(%rsp), %rdi
callq 0x30124
leaq 0x510(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x57a71
movq 0x510(%rsp), %rsi
incq %rsi
callq 0x9340
leaq 0x4f0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x57a92
movq 0x4f0(%rsp), %rsi
incq %rsi
callq 0x9340
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x57aa9
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x57ac6
movq 0xe0(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
addq $0x738, %rsp            # imm = 0x738
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x57b4d
jmp 0x57b7c
jmp 0x57b7c
jmp 0x57dd3
movq %rax, %rbx
jmp 0x57db7
jmp 0x57dd8
movq %rax, %rbx
jmp 0x57df5
movq %rax, %rbx
movq 0x268(%rsp), %rdi
cmpq %r15, %rdi
je 0x57b23
movq 0x278(%rsp), %rsi
incq %rsi
callq 0x9340
jmp 0x57b23
movq %rax, %rbx
movq 0x288(%rsp), %rdi
cmpq %r14, %rdi
je 0x57e02
movq 0x298(%rsp), %rsi
incq %rsi
callq 0x9340
jmp 0x57e02
jmp 0x57b4d
jmp 0x57b4d
movq %rax, %rbx
jmp 0x57e02
movq %rax, %rbx
leaq 0x2c0(%rsp), %rdi
callq 0xd886
jmp 0x57e02
movq %rax, %rbx
leaq 0x538(%rsp), %rdi
callq 0x9500
jmp 0x57b7f
movq %rax, %rbx
leaq 0x2c0(%rsp), %rdi
callq 0x9500
jmp 0x57d5c
jmp 0x57d0e
movq %rax, %rbx
jmp 0x57bbd
movq %rax, %rbx
jmp 0x57bb0
movq %rax, %rbx
leaq 0x2c0(%rsp), %rdi
callq 0x580c4
leaq 0x2a8(%rsp), %rdi
callq 0x30172
movq 0x250(%rsp), %rdi
testq %rdi, %rdi
je 0x57d11
movq 0x260(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
jmp 0x57d11
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x58106
jmp 0x57d11
movq %rax, %rbx
movl $0x38, %esi
movq %r14, %rdi
jmp 0x57c26
jmp 0x57dd3
movq %rax, %rbx
movq 0x2c0(%rsp), %rdi
testq %rdi, %rdi
je 0x57d5c
movq 0x2d0(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
jmp 0x57d5c
movq %rax, %rbx
jmp 0x57d4f
movq %rax, %rbx
movq 0x2c0(%rsp), %rdi
testq %rdi, %rdi
je 0x57d4f
movq 0x2d0(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
jmp 0x57d4f
movq %rax, %rbx
jmp 0x57d42
movq %rax, %rbx
movq 0x2c0(%rsp), %rdi
testq %rdi, %rdi
je 0x57d42
movq 0x2d0(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
jmp 0x57d42
movq %rax, %rbx
jmp 0x57d35
movq %rax, %rbx
movq 0x2c0(%rsp), %rdi
testq %rdi, %rdi
je 0x57d35
movq 0x2d0(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
jmp 0x57d35
movq %rax, %rbx
jmp 0x57d28
movq %rax, %rbx
movq 0x2c0(%rsp), %rdi
testq %rdi, %rdi
je 0x57d28
movq 0x2d0(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
jmp 0x57d28
movq %rax, %rbx
jmp 0x57d1b
movq %rax, %rbx
movq 0x2c0(%rsp), %rdi
testq %rdi, %rdi
je 0x57d1b
movq 0x2d0(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
jmp 0x57d1b
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x30172
leaq 0x80(%rsp), %rdi
callq 0x30172
leaq 0x98(%rsp), %rdi
callq 0x30172
leaq 0xf0(%rsp), %rdi
callq 0x30172
leaq 0x108(%rsp), %rdi
callq 0x30172
leaq 0x538(%rsp), %rdi
callq 0x30172
leaq 0x120(%rsp), %rdi
callq 0x30172
leaq 0x140(%rsp), %rdi
callq 0x30172
leaq 0x160(%rsp), %rdi
callq 0x30172
leaq 0x180(%rsp), %rdi
callq 0x30172
leaq 0x1a0(%rsp), %rdi
callq 0x30172
leaq 0x1c0(%rsp), %rdi
callq 0x30172
leaq 0x1e0(%rsp), %rdi
callq 0x58106
leaq 0x4c0(%rsp), %rdi
callq 0x30172
leaq 0x200(%rsp), %rdi
callq 0x580c4
jmp 0x57ddb
movq %rax, %rbx
jmp 0x57d5c
movq %rax, %rbx
leaq 0x220(%rsp), %rdi
callq 0x30172
leaq 0xb0(%rsp), %rdi
callq 0x30124
leaq 0x4e0(%rsp), %rdi
callq 0xd790
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x57e19
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x57e36
movq 0xe0(%rsp), %rsi
subq %rdi, %rsi
callq 0x9340
movq %rbx, %rdi
callq 0x9670