// File: /workspace/github_cpp_makefile_star2_O3/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 $0x768, %rsp            # imm = 0x768
movq %r9, 0xc0(%rsp)
movq %r8, 0xc8(%rsp)
movq %rcx, 0x268(%rsp)
movq %rdx, %rbx
movq %rsi, %r14
xorpd %xmm0, %xmm0
leaq 0x100(%rsp), %rsi
movapd %xmm0, (%rsi)
xorl %eax, %eax
movq %rax, 0x10(%rsi)
movq %rax, 0x30(%rsp)
movapd %xmm0, 0x20(%rsp)
movq %rdi, 0xd0(%rsp)
movq 0x68(%rdi), %rdi
callq 0x54c80
movl %eax, 0x4(%rsp)
movq 0x68(%r14), %rdi
leaq 0x20(%rsp), %rsi
callq 0x54c80
movl %eax, 0x18(%rsp)
cmpl %eax, 0x4(%rsp)
movq 0xd0(%rsp), %rax
cmovlq %r14, %rax
movq %rax, 0xd0(%rsp)
jge 0x56703
movq 0x2f970(%rip), %rdi     # 0x85fc0
leaq 0x19e22(%rip), %rsi     # 0x70479
movl $0xe, %edx
callq 0x93b0
movq 0x110(%rsp), %rax
movapd 0x20(%rsp), %xmm0
movq 0x30(%rsp), %rcx
movq %rcx, 0x110(%rsp)
movaps 0x100(%rsp), %xmm1
movapd %xmm0, 0x100(%rsp)
movaps %xmm1, 0x20(%rsp)
movq %rax, 0x30(%rsp)
leaq 0x318(%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 0x310(%rsp), %rdi
movq 0xc8(%rsp), %rsi
callq 0x57b5a
movq 0xc8(%rsp), %rdi
movq 0xc0(%rsp), %rsi
callq 0x57b5a
leaq 0x310(%rsp), %rsi
movq 0xc0(%rsp), %rdi
callq 0x57b5a
leaq 0x310(%rsp), %rdi
callq 0xd838
leaq 0x2c8(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x2b8(%rsp), %rdi
callq 0xda46
leaq 0x2a8(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x17687(%rip), %rsi     # 0x6ddc0
leaq 0x17681(%rip), %rdx     # 0x6ddc1
leaq 0x298(%rsp), %rdi
callq 0xdadc
leaq 0x510(%rsp), %rdi
leaq 0x2b8(%rsp), %rsi
leaq 0x298(%rsp), %rdx
callq 0xd61a
movq 0x298(%rsp), %rdi
cmpq %r15, %rdi
je 0x56787
movq 0x2a8(%rsp), %rsi
incq %rsi
callq 0x9350
movq 0x2b8(%rsp), %rdi
cmpq %r14, %rdi
je 0x567a4
movq 0x2c8(%rsp), %rsi
incq %rsi
callq 0x9350
leaq 0x138(%rsp), %rdi
leaq 0x510(%rsp), %rsi
xorl %edx, %edx
movl $0x2710, %ecx           # imm = 0x2710
callq 0x58d30
xorpd %xmm0, %xmm0
movapd %xmm0, 0x250(%rsp)
movq $0x0, 0x260(%rsp)
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
movl 0x18(%rsp), %ecx
cmpl %ecx, 0x4(%rsp)
jge 0x56802
movq 0x138(%rsp), %rax
movq 0x8(%rax), %rsi
subq (%rax), %rsi
sarq $0x3, %rsi
jmp 0x5681a
movq 0x140(%rsp), %rsi
subq 0x138(%rsp), %rsi
sarq $0x3, %rsi
imulq %rax, %rsi
leaq 0x250(%rsp), %rdi
callq 0x2f4fa
movq 0x138(%rsp), %rax
movq 0x140(%rsp), %rdx
movq %rdx, %rcx
subq %rax, %rcx
shrq $0x3, %rcx
imull $0xaaaaaaab, %ecx, %ecx # imm = 0xAAAAAAAB
testl %ecx, %ecx
jle 0x5691b
movq (%rax), %rcx
xorl %r14d, %r14d
leaq 0x310(%rsp), %rbx
movq 0x8(%rax), %rsi
subq %rcx, %rsi
shrq $0x3, %rsi
testl %esi, %esi
jle 0x568fc
leaq (%r14,%r14,2), %r15
xorl %r12d, %r12d
movl 0x18(%rsp), %edx
cmpl %edx, 0x4(%rsp)
movq %r14, %rdx
cmovlq %r12, %rdx
movl %edx, %edx
movq 0x250(%rsp), %rsi
leaq (%rdx,%rdx,2), %rdx
leaq (%rsi,%rdx,8), %rdi
movq (%rax,%r15,8), %rdx
movsd (%rdx,%r12,8), %xmm0
mulsd 0x19bae(%rip), %xmm0    # 0x70458
cvttsd2si %xmm0, %edx
movl %edx, 0x310(%rsp)
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x568cb
movl %edx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x568de
movq %rbx, %rdx
callq 0x305f8
movq 0x138(%rsp), %rax
movq (%rax), %rcx
incq %r12
movq 0x8(%rax), %rdx
subq %rcx, %rdx
shrq $0x3, %rdx
movslq %edx, %rdx
cmpq %rdx, %r12
jl 0x56877
movq 0x140(%rsp), %rdx
incq %r14
movq %rdx, %rsi
subq %rax, %rsi
shrq $0x3, %rsi
imull $0xaaaaaaab, %esi, %esi # imm = 0xAAAAAAAB
movslq %esi, %rsi
cmpq %rsi, %r14
jl 0x5685d
xorpd %xmm0, %xmm0
leaq 0x230(%rsp), %rcx
movapd %xmm0, (%rcx)
xorl %eax, %eax
movq %rax, 0x10(%rcx)
leaq 0x2f0(%rsp), %rdx
movq %rax, 0x10(%rdx)
movapd %xmm0, (%rdx)
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
callq 0x54d0d
xorpd %xmm0, %xmm0
movapd %xmm0, 0x210(%rsp)
xorl %eax, %eax
movq %rax, 0x220(%rsp)
movq %rax, 0x200(%rsp)
movapd %xmm0, 0x1f0(%rsp)
movq %rax, 0x1e0(%rsp)
movapd %xmm0, 0x1d0(%rsp)
movq %rax, 0x1c0(%rsp)
movapd %xmm0, 0x1b0(%rsp)
movq %rax, 0x1a0(%rsp)
movapd %xmm0, 0x190(%rsp)
movq %rax, 0x180(%rsp)
movapd %xmm0, 0x170(%rsp)
movq %rax, 0x160(%rsp)
movapd %xmm0, 0x150(%rsp)
movq 0x238(%rsp), %rax
cmpq 0x230(%rsp), %rax
je 0x57120
movl $0x7fffffff, 0x14(%rsp) # imm = 0x7FFFFFFF
xorl %ebx, %ebx
xorl %r15d, %r15d
movl $0x38, %edi
callq 0x9340
movq %rax, %r14
movq 0x20(%rsp), %rax
movq (%rax), %rsi
addq $0x8, %rsi
xorpd %xmm0, %xmm0
movq %r14, %rdi
xorl %edx, %edx
callq 0x3c894
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq 0x230(%rsp), %rcx
addq %rbx, %rcx
movq %r14, %rsi
xorl %edx, %edx
callq 0x54f23
movq %r14, 0x8(%rsp)
movq %r15, 0x270(%rsp)
movq %rbx, 0x278(%rsp)
movq 0x108(%rsp), %r14
subq 0x100(%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 0x310(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
leaq 0x120(%rsp), %rdx
callq 0xf480
leaq 0x560(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
leaq 0xe0(%rsp), %rcx
callq 0x57836
movq 0x310(%rsp), %rdi
testq %rdi, %rdi
je 0x56acb
movq 0x320(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
movq %rbx, %r12
shlq $0x1d, %r12
movabsq $0x100000000, %rax      # imm = 0x100000000
addq %rax, %r12
sarq $0x20, %r12
leaq 0x310(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
leaq 0xe0(%rsp), %rdx
callq 0xf480
leaq 0x120(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
leaq 0xa0(%rsp), %rcx
callq 0x57836
movq 0x310(%rsp), %rdi
testq %rdi, %rdi
je 0x56b36
movq 0x320(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
movl $0x1, 0xa0(%rsp)
leaq 0x310(%rsp), %rbp
movq %rbp, %rdi
movq %r15, %rsi
leaq 0xa0(%rsp), %rdx
leaq 0x80(%rsp), %rcx
callq 0x35e4a
leaq 0xe0(%rsp), %rdi
movq %r15, %rsi
movq %rbp, %rdx
leaq 0x40(%rsp), %rcx
callq 0x57836
movq 0x310(%rsp), %rdi
testq %rdi, %rdi
je 0x56b99
movq 0x320(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
movl $0x1, 0x80(%rsp)
leaq 0x310(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
leaq 0x80(%rsp), %rdx
leaq 0x40(%rsp), %rcx
callq 0x35e4a
leaq 0xa0(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
leaq 0x60(%rsp), %rcx
callq 0x57836
movq 0x310(%rsp), %rdi
testq %rdi, %rdi
je 0x56bf9
movq 0x320(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
movl $0xffffffff, 0x40(%rsp) # imm = 0xFFFFFFFF
leaq 0x310(%rsp), %rbp
movq %rbp, %rdi
movq %r15, %rsi
leaq 0x40(%rsp), %rdx
leaq 0x60(%rsp), %rcx
callq 0x35e4a
leaq 0x80(%rsp), %rdi
movq %r15, %rsi
movq %rbp, %rdx
leaq 0x2d8(%rsp), %rcx
callq 0x57836
movq 0x310(%rsp), %rdi
testq %rdi, %rdi
je 0x56c56
movq 0x320(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
movl $0xffffffff, 0x60(%rsp) # imm = 0xFFFFFFFF
leaq 0x310(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
leaq 0x60(%rsp), %rdx
leaq 0x2d8(%rsp), %rcx
callq 0x35e4a
leaq 0x40(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
leaq 0x280(%rsp), %rcx
callq 0x57836
movq 0x310(%rsp), %rdi
testq %rdi, %rdi
je 0x56cb3
movq 0x320(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
shrq $0x3, %r14
movq 0xd0(%rsp), %rax
movq 0x68(%rax), %rdi
movl %r14d, %esi
leaq 0x560(%rsp), %rdx
leaq 0xe0(%rsp), %rcx
leaq 0x80(%rsp), %r8
callq 0x5568b
shrq $0x3, %rbx
movq 0x8(%rsp), %rdi
movl %ebx, %esi
leaq 0x120(%rsp), %rdx
leaq 0xa0(%rsp), %rcx
leaq 0x40(%rsp), %r8
callq 0x5568b
movl $0xffffffff, 0xdc(%rsp) # imm = 0xFFFFFFFF
leaq 0x280(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
leaq 0xdc(%rsp), %rdx
leaq 0x1f(%rsp), %rcx
callq 0x35e4a
leaq 0x2d8(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
movq %r13, %rdx
leaq 0x1e(%rsp), %rcx
callq 0x57836
leaq 0x310(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movq %rbp, %rdx
leaq 0x1d(%rsp), %rcx
callq 0x578ce
leaq 0x60(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
leaq 0x1c(%rsp), %rcx
callq 0x57966
movq %r12, %rdi
callq 0x579fe
leaq 0x2d8(%rsp), %rdi
callq 0x2f6ae
movq 0x280(%rsp), %rdi
testq %rdi, %rdi
je 0x56db0
movq 0x290(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
leaq 0x60(%rsp), %rdi
leaq 0x560(%rsp), %rsi
leaq 0x120(%rsp), %rdx
leaq 0xe0(%rsp), %rcx
leaq 0xa0(%rsp), %r8
leaq 0x80(%rsp), %r9
leaq 0x250(%rsp), %rax
pushq %rax
pushq %rbx
pushq %r14
leaq 0x58(%rsp), %rax
pushq %rax
callq 0x5589c
addq $0x20, %rsp
movl %eax, %ebx
cmpl 0x14(%rsp), %eax
movq 0x270(%rsp), %r15
jge 0x5707c
movq 0x220(%rsp), %rax
movaps 0x60(%rsp), %xmm0
movq 0x70(%rsp), %rcx
movq %rcx, 0x220(%rsp)
movaps 0x210(%rsp), %xmm1
movaps %xmm0, 0x210(%rsp)
movaps %xmm1, 0x310(%rsp)
movq %rax, 0x320(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
xorl %r14d, %r14d
movq %r14, 0x70(%rsp)
movq %r12, %rdi
callq 0x57a46
movq 0x200(%rsp), %rax
movaps 0x560(%rsp), %xmm0
movq 0x570(%rsp), %rcx
movq %rcx, 0x200(%rsp)
movaps 0x1f0(%rsp), %xmm1
movaps %xmm0, 0x1f0(%rsp)
movaps %xmm1, 0x310(%rsp)
movq %rax, 0x320(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x560(%rsp)
movq %r14, 0x570(%rsp)
movq %r12, %rdi
callq 0x2f6ae
movq 0x1e0(%rsp), %rax
movaps 0x120(%rsp), %xmm0
movq 0x130(%rsp), %rcx
movq %rcx, 0x1e0(%rsp)
movaps 0x1d0(%rsp), %xmm1
movaps %xmm0, 0x1d0(%rsp)
movaps %xmm1, 0x310(%rsp)
movq %rax, 0x320(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x120(%rsp)
movq %r14, 0x130(%rsp)
movq %r12, %rdi
callq 0x2f6ae
movq 0x1c0(%rsp), %rax
movaps 0xe0(%rsp), %xmm0
movq 0xf0(%rsp), %rcx
movq %rcx, 0x1c0(%rsp)
movaps 0x1b0(%rsp), %xmm1
movaps %xmm0, 0x1b0(%rsp)
movaps %xmm1, 0x310(%rsp)
movq %rax, 0x320(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0xe0(%rsp)
movq %r14, 0xf0(%rsp)
movq %r12, %rdi
callq 0x2f6ae
movq 0x1a0(%rsp), %rax
movaps 0xa0(%rsp), %xmm0
movq 0xb0(%rsp), %rcx
movq %rcx, 0x1a0(%rsp)
movaps 0x190(%rsp), %xmm1
movaps %xmm0, 0x190(%rsp)
movaps %xmm1, 0x310(%rsp)
movq %rax, 0x320(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0xa0(%rsp)
movq %r14, 0xb0(%rsp)
movq %r12, %rdi
callq 0x2f6ae
movq 0x180(%rsp), %rax
movaps 0x80(%rsp), %xmm0
movq 0x90(%rsp), %rcx
movq %rcx, 0x180(%rsp)
movaps 0x170(%rsp), %xmm1
movaps %xmm0, 0x170(%rsp)
movaps %xmm1, 0x310(%rsp)
movq %rax, 0x320(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
movq %r14, 0x90(%rsp)
movq %r12, %rdi
callq 0x2f6ae
movq 0x160(%rsp), %rax
movapd 0x40(%rsp), %xmm0
movq 0x50(%rsp), %rcx
movq %rcx, 0x160(%rsp)
movaps 0x150(%rsp), %xmm1
movapd %xmm0, 0x150(%rsp)
movaps %xmm1, 0x310(%rsp)
movq %rax, 0x320(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x40(%rsp)
movq %r14, 0x50(%rsp)
movq %r12, %rdi
callq 0x2f6ae
movl %ebx, 0x14(%rsp)
movq 0x8(%rsp), %rdi
callq 0x55b62
leaq 0x60(%rsp), %rdi
callq 0x57a46
leaq 0x40(%rsp), %rdi
callq 0x2f6ae
leaq 0x80(%rsp), %rdi
callq 0x2f6ae
leaq 0xa0(%rsp), %rdi
callq 0x2f6ae
leaq 0xe0(%rsp), %rdi
callq 0x2f6ae
leaq 0x120(%rsp), %rdi
callq 0x2f6ae
leaq 0x560(%rsp), %rdi
callq 0x2f6ae
incq %r15
movq 0x238(%rsp), %rax
subq 0x230(%rsp), %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
movq 0x278(%rsp), %rbx
addq $0x18, %rbx
cmpq %r15, %rax
ja 0x569ed
xorps %xmm0, %xmm0
cvtsi2sdl 0x14(%rsp), %xmm0
jmp 0x57128
movsd 0x19338(%rip), %xmm0    # 0x70460
movsd %xmm0, 0x8(%rsp)
leaq 0x310(%rsp), %rbx
movq %rbx, %rdi
movq 0x268(%rsp), %rsi
movl $0x10, %edx
callq 0x9710
xorl %eax, %eax
movl 0x18(%rsp), %ecx
cmpl %ecx, 0x4(%rsp)
setl %al
xorpd %xmm0, %xmm0
leaq 0x550(%rsp), %r10
movapd %xmm0, (%r10)
leaq 0x150(%rsp), %r11
leaq 0x210(%rsp), %rdi
leaq 0x1f0(%rsp), %rsi
leaq 0x1d0(%rsp), %rdx
leaq 0x1b0(%rsp), %rcx
leaq 0x190(%rsp), %r8
leaq 0x170(%rsp), %r9
pushq 0xc0(%rsp)
pushq 0xd0(%rsp)
pushq %rbx
pushq %rax
pushq %r10
pushq %r11
callq 0x55b9b
addq $0x30, %rsp
leaq 0x310(%rsp), %rbx
movq %rbx, %rdi
callq 0x94b0
movq 0x2eda3(%rip), %rdi     # 0x85f78
leaq 0x192ac(%rip), %rsi     # 0x70488
movl $0x6, %edx
callq 0x93b0
movsd 0x8(%rsp), %xmm0
divsd 0x19264(%rip), %xmm0    # 0x70458
movq 0x2ed7d(%rip), %rdi     # 0x85f78
movsd %xmm0, 0x8(%rsp)
callq 0x9570
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x9330
movsbl %al, %esi
movq %r14, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9230
movq 0x7a0(%rsp), %rsi
leaq 0x560(%rsp), %rdi
movl $0x10, %edx
callq 0x9710
leaq 0x560(%rsp), %rdi
movsd 0x8(%rsp), %xmm0
callq 0x9570
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x9330
movsbl %al, %esi
movq %r14, %rdi
callq 0x9040
movq %rax, %rdi
callq 0x9230
leaq 0x560(%rsp), %r14
movq %r14, %rdi
callq 0x94b0
movq 0x2ed02(%rip), %rax     # 0x85fa0
movq (%rax), %r15
movq 0x18(%rax), %r12
leaq 0x568(%rsp), %rdi
movq %r15, -0x8(%rdi)
movq -0x18(%r15), %rax
movq %r12, 0x560(%rsp,%rax)
callq 0x92d0
movl $0xf8, %r13d
addq %r13, %r14
movq %r14, %rdi
callq 0x9110
leaq 0x318(%rsp), %rdi
movq %r15, -0x8(%rdi)
movq -0x18(%r15), %rax
movq %r12, 0x310(%rsp,%rax)
callq 0x92d0
addq %r13, %rbx
movq %rbx, %rdi
callq 0x9110
leaq 0x150(%rsp), %rdi
callq 0x2f6ae
leaq 0x170(%rsp), %rdi
callq 0x2f6ae
leaq 0x190(%rsp), %rdi
callq 0x2f6ae
leaq 0x1b0(%rsp), %rdi
callq 0x2f6ae
leaq 0x1d0(%rsp), %rdi
callq 0x2f6ae
leaq 0x1f0(%rsp), %rdi
callq 0x2f6ae
leaq 0x210(%rsp), %rdi
callq 0x57a46
leaq 0x2f0(%rsp), %rdi
callq 0x2f6ae
leaq 0x230(%rsp), %rdi
callq 0x579fe
leaq 0x250(%rsp), %rdi
callq 0x2f6ae
leaq 0x138(%rsp), %rdi
callq 0x2f65a
leaq 0x540(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x573ab
movq 0x540(%rsp), %rsi
incq %rsi
callq 0x9350
leaq 0x520(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x573cc
movq 0x520(%rsp), %rsi
incq %rsi
callq 0x9350
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x573e3
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x57400
movq 0x110(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
addq $0x768, %rsp            # imm = 0x768
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x57487
jmp 0x574b6
jmp 0x574b6
jmp 0x5770d
movq %rax, %rbx
jmp 0x576f1
jmp 0x57712
movq %rax, %rbx
jmp 0x5772f
movq %rax, %rbx
movq 0x298(%rsp), %rdi
cmpq %r15, %rdi
je 0x5745d
movq 0x2a8(%rsp), %rsi
incq %rsi
callq 0x9350
jmp 0x5745d
movq %rax, %rbx
movq 0x2b8(%rsp), %rdi
cmpq %r14, %rdi
je 0x5773c
movq 0x2c8(%rsp), %rsi
incq %rsi
callq 0x9350
jmp 0x5773c
jmp 0x57487
jmp 0x57487
movq %rax, %rbx
jmp 0x5773c
movq %rax, %rbx
leaq 0x310(%rsp), %rdi
callq 0xd838
jmp 0x5773c
movq %rax, %rbx
leaq 0x560(%rsp), %rdi
callq 0x9510
jmp 0x574b9
movq %rax, %rbx
leaq 0x310(%rsp), %rdi
callq 0x9510
jmp 0x57696
jmp 0x57648
movq %rax, %rbx
jmp 0x574f7
movq %rax, %rbx
jmp 0x574ea
movq %rax, %rbx
leaq 0x310(%rsp), %rdi
callq 0x579fe
leaq 0x2d8(%rsp), %rdi
callq 0x2f6ae
movq 0x280(%rsp), %rdi
testq %rdi, %rdi
je 0x5764b
movq 0x290(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
jmp 0x5764b
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x57a46
jmp 0x5764b
movq %rax, %rbx
movl $0x38, %esi
movq %r14, %rdi
jmp 0x57560
jmp 0x5770d
movq %rax, %rbx
movq 0x310(%rsp), %rdi
testq %rdi, %rdi
je 0x57696
movq 0x320(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
jmp 0x57696
movq %rax, %rbx
jmp 0x57689
movq %rax, %rbx
movq 0x310(%rsp), %rdi
testq %rdi, %rdi
je 0x57689
movq 0x320(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
jmp 0x57689
movq %rax, %rbx
jmp 0x5767c
movq %rax, %rbx
movq 0x310(%rsp), %rdi
testq %rdi, %rdi
je 0x5767c
movq 0x320(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
jmp 0x5767c
movq %rax, %rbx
jmp 0x5766f
movq %rax, %rbx
movq 0x310(%rsp), %rdi
testq %rdi, %rdi
je 0x5766f
movq 0x320(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
jmp 0x5766f
movq %rax, %rbx
jmp 0x57662
movq %rax, %rbx
movq 0x310(%rsp), %rdi
testq %rdi, %rdi
je 0x57662
movq 0x320(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
jmp 0x57662
movq %rax, %rbx
jmp 0x57655
movq %rax, %rbx
movq 0x310(%rsp), %rdi
testq %rdi, %rdi
je 0x57655
movq 0x320(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
jmp 0x57655
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x2f6ae
leaq 0x80(%rsp), %rdi
callq 0x2f6ae
leaq 0xa0(%rsp), %rdi
callq 0x2f6ae
leaq 0xe0(%rsp), %rdi
callq 0x2f6ae
leaq 0x120(%rsp), %rdi
callq 0x2f6ae
leaq 0x560(%rsp), %rdi
callq 0x2f6ae
leaq 0x150(%rsp), %rdi
callq 0x2f6ae
leaq 0x170(%rsp), %rdi
callq 0x2f6ae
leaq 0x190(%rsp), %rdi
callq 0x2f6ae
leaq 0x1b0(%rsp), %rdi
callq 0x2f6ae
leaq 0x1d0(%rsp), %rdi
callq 0x2f6ae
leaq 0x1f0(%rsp), %rdi
callq 0x2f6ae
leaq 0x210(%rsp), %rdi
callq 0x57a46
leaq 0x2f0(%rsp), %rdi
callq 0x2f6ae
leaq 0x230(%rsp), %rdi
callq 0x579fe
jmp 0x57715
movq %rax, %rbx
jmp 0x57696
movq %rax, %rbx
leaq 0x250(%rsp), %rdi
callq 0x2f6ae
leaq 0x138(%rsp), %rdi
callq 0x2f65a
leaq 0x510(%rsp), %rdi
callq 0xd742
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x57753
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x57770
movq 0x110(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
movq %rbx, %rdi
callq 0x9680