LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/romkatv[P]action-chain/src/action_chain.cc
// Function: romkatv::ActionChain::Work::RunAllSlow(romkatv::ActionChain::Work*, romkatv::ActionChain::Work*)
void ActionChain::Work::RunAllSlow(Work* w, Work* next) {
  do {
    do {
      assert(w != nullptr && w != Sealed());
      assert(next != nullptr && next != Sealed());
      w->Destroy();
      ::operator delete(w, kAllocSize);
      w = next;
      w->invoke_(w);
      next = w->next_.load(std::memory_order_acquire);
    } while (next);
    next = w->next_.exchange(Sealed(), std::memory_order_acq_rel);
  } while (next);
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
testq $-0x9, %rdi
je 0x53a1
testq $-0x9, %rbx
je 0x53c0
movq (%rdi), %rax
testq %rax, %rax
je 0x53df
movl $0x20, %esi
callq 0x21d0
movq %rbx, %rdi
callq *0x8(%rbx)
movq (%rbx), %rax
testq %rax, %rax
jne 0x5397
movl $0x8, %eax
xchgq %rax, (%rbx)
testq %rax, %rax
je 0x539f
movq %rbx, %rdi
movq %rax, %rbx
jmp 0x5358
popq %rbx
retq
leaq 0xf2b(%rip), %rdi       # 0x62d3
leaq 0x1395(%rip), %rsi      # 0x6744
leaq 0x13a2(%rip), %rcx      # 0x6758
movl $0xa, %edx
callq 0x2100
leaq 0x1056(%rip), %rdi      # 0x641d
leaq 0x1376(%rip), %rsi      # 0x6744
leaq 0x1383(%rip), %rcx      # 0x6758
movl $0xb, %edx
callq 0x2100
leaq 0x10a0(%rip), %rdi      # 0x6486
leaq 0xf04(%rip), %rsi       # 0x62f1
leaq 0x10c3(%rip), %rcx      # 0x64b7
movl $0x6e, %edx
callq 0x2100
// File: /workspace/github_cpp_makefile_star2_O3/dianejdan[P]Eclat/./PatternStore.hpp
// Function: PatternStore<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::add_pattern(Pattern<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::vector<int, std::allocator<int>>)
void add_pattern(Pattern<Typ> *parent, Typ item, vector<int> newTidList){
        Pattern<Typ> *new_pat = new Pattern<Typ>(); // create a Pattern node
        new_pat->set_item(item);
        new_pat->set_tid_list(newTidList);
        parent->add_child(new_pat); // add to the children list of its parent
                                    // i.e. I link its parent and its child
        ++numPatterns; // once add a frequent pattern, increase number of frequent
                       // pattern by 1
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, -0x30(%rbp)
movl $0x50, %edi
callq 0x21c0
movq %rax, %r15
addq $0x10, %rax
movq %rax, (%r15)
movq $0x0, 0x8(%r15)
movb $0x0, 0x10(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%r15)
movups %xmm0, 0x30(%r15)
movups %xmm0, 0x40(%r15)
leaq -0x58(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %r13
movq %r13, %rdi
callq 0x4f5a
movq %r15, %rdi
movq %r13, %rsi
callq 0x2100
movq -0x68(%rbp), %rdi
cmpq %rbx, %rdi
je 0x5cca
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21d0
leaq -0x48(%rbp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x400a
movq %r15, %rdi
movq %r13, %rsi
callq 0x6298
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0x5cf9
movq -0x38(%rbp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq %r14, %rdi
movq %r15, %rsi
callq 0x62ee
movq -0x30(%rbp), %rax
incl 0x8(%rax)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0x5d47
movq -0x38(%rbp), %rsi
subq %rdi, %rsi
jmp 0x5d42
movq %rax, %r14
movq -0x68(%rbp), %rdi
cmpq %rbx, %rdi
je 0x5d47
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21d0
movq %r14, %rdi
callq 0x22c0
nop
// File: /workspace/github_cpp_makefile_star2_O3/dianejdan[P]Eclat/./Pattern.hpp
// Function: Pattern<int>::join_tid_list(Pattern<int>*)
vector<int> join_tid_list( Pattern<Typ> *x){
        vector<int> ret; // joined tid list
        vector<int> xTidList = x->tidList; // the "larger" child tid list

        int i = 0; // iterator for one tid list
        int j = 0; // iterator for another tid list

        while (i < xTidList.size()){ // go through one tid list
            while (j < tidList.size()){ // go through second tid list

                if (xTidList[i] == tidList[j]){ // if the tid of two tid lists
                                                // are the same, add this tid to
                                                // joined tid list. The first tid list
                                                // catches up the second
                    ret.push_back(xTidList[i]);
                    ++j; // move iterator of second tid list by one
                    break; // get out of the while loop since I need to compare
                           // this new tid with the next tid in the first tid list
                }

                if (xTidList[i] < tidList[j]){ // if the tid in first tid list is 
                                               // smaller than the second one tid list
                                               // break, the second one needs to catch
                                               // up the first tid list
                    break;
                }
                ++j; // if two tids are unequal, or they are racing, move the iterator
                     // of second tid list by one
            }
            ++i; // move the iterator of the first tid list by one
        }
        return ret;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x8(%rdx), %rsi
leaq -0x38(%rbp), %rdi
callq 0x400a
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rax
cmpq %rdi, %rax
je 0x4beb
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x8(%r14), %rsi
movq 0x10(%r14), %r8
subq %rsi, %r8
sarq $0x2, %r8
movslq %r12d, %rcx
cmpq %rcx, %r8
jbe 0x4bd9
leaq (%rdi,%r15,4), %rdx
movl (%rdx), %r9d
incl %r12d
cmpl (%rsi,%rcx,4), %r9d
je 0x4bb2
jl 0x4bad
incq %rcx
incl %r12d
cmpq %rcx, %r8
ja 0x4b9a
movl %ecx, %r12d
jmp 0x4bd9
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x4bc9
movl %r9d, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x4bd9
movq %rbx, %rdi
callq 0x408a
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rax
incq %r15
movq %rax, %rcx
subq %rdi, %rcx
sarq $0x2, %rcx
cmpq %r15, %rcx
ja 0x4b79
testq %rdi, %rdi
je 0x4bfc
movq -0x28(%rbp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x4c29
movq %rax, %r14
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x4c29
movq -0x28(%rbp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x4c3d
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x21d0
movq %r14, %rdi
callq 0x22c0
nop
// File: /workspace/github_cpp_makefile_star2_O3/miklhh[P]mandelbrot/src/main.cpp
// Function: shutdown(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned char)
void shutdown(std::string str, uint8_t exit_code)
{
    render_destroy();
    std::cout << "Shutdown message: " << str.c_str() << std::endl;
    std::cout << "Returning to system with exit code: " << int(exit_code) << std::endl;
    exit(exit_code);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
callq 0x2f54
movq 0x59ce(%rip), %r15      # 0x7fd0
leaq 0x2a2f(%rip), %rsi      # 0x5038
movq %r15, %rdi
callq 0x2220
movq (%r14), %rsi
movq %rax, %rdi
callq 0x2220
movq %rax, %rdi
callq 0x2110
leaq 0x2a20(%rip), %rsi      # 0x504b
movq %r15, %rdi
callq 0x2220
movq %rax, %rdi
movl %ebx, %esi
callq 0x2330
movq %rax, %rdi
callq 0x2110
movl %ebx, %edi
callq 0x2270
// File: /workspace/github_cpp_makefile_star2_O3/miklhh[P]mandelbrot/src/render.cpp
// Function: render_init(int)
void render_init(int n_threads)
{
    /* Initialize render buffer. */
    for (int y = 0; y < scr_height; y++)
    {
        render_buffer.push_back(std::vector<rgb_t>());
        for (int x = 0; x < scr_width; x++)
        {
            render_buffer.at(y).push_back(rgb_t{ 0, 0, 0, 0 });
        }
    }
    /* Initialize the thread pool. */
    thread_pool = mandelbrot_thread_pool_create(n_threads, render_segment);
    if (thread_pool == NULL)
    {
        std::cerr << "Error initializeing threadpool, exiting." << std::endl;
        #ifdef _WIN32
        system("pause");
        #endif  
        exit(1);
    }
    /* Initialze render data. */
    rendering_complete = false;
    render_initialized = true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %edi, 0xc(%rsp)
leaq 0x2783(%rip), %rax      # 0x5034
movslq (%rax), %r13
testq %r13, %r13
jle 0x2962
leaq 0x276c(%rip), %rax      # 0x5030
movl (%rax), %r15d
xorl %r14d, %r14d
leaq 0x10(%rsp), %r12
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
leaq 0x5937(%rip), %rdi      # 0x8228
movq %r12, %rsi
callq 0x2fbe
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2910
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2240
movl %r15d, %ebp
testl %r15d, %r15d
jle 0x2956
movq 0x5911(%rip), %rdx      # 0x8230
movq 0x5902(%rip), %rax      # 0x8228
subq %rax, %rdx
sarq $0x3, %rdx
imulq %rbx, %rdx
cmpq %r14, %rdx
jbe 0x29da
leaq (%r14,%r14,2), %rcx
leaq (%rax,%rcx,8), %rdi
movl $0x0, 0x10(%rsp)
movq %r12, %rsi
callq 0x31be
decl %ebp
jne 0x2918
incq %r14
cmpq %r13, %r14
jne 0x28d9
leaq 0x28(%rsp), %rsi
movq $0x0, 0x8(%rsi)
leaq 0xe4(%rip), %rax        # 0x2a5a
movq %rax, (%rsi)
leaq 0x9b0(%rip), %rax       # 0x3330
movq %rax, 0x18(%rsi)
leaq 0x9ad(%rip), %rax       # 0x3338
movq %rax, 0x10(%rsi)
movl 0xc(%rsp), %edi
callq 0x3afc
movq %rax, 0x58a9(%rip)      # 0x8248
movq 0x38(%rsp), %rcx
testq %rcx, %rcx
je 0x29bf
leaq 0x28(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rcx
movq 0x5889(%rip), %rax      # 0x8248
testq %rax, %rax
je 0x29eb
movb $0x1, 0x5875(%rip)      # 0x8240
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x27d7(%rip), %rdi      # 0x51b8
movq %r14, %rsi
xorl %eax, %eax
callq 0x22f0
movq 0x55fe(%rip), %rdi      # 0x7ff0
leaq 0x2717(%rip), %rsi      # 0x5110
callq 0x2220
movq %rax, %rdi
callq 0x2110
movl $0x1, %edi
callq 0x2270
jmp 0x2a30
movq %rax, %rbx
movq 0x38(%rsp), %rax
testq %rax, %rax
je 0x2a52
leaq 0x28(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x2a52
movq %rax, %rdi
callq 0x2fb3
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2a52
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2240
movq %rbx, %rdi
callq 0x2350
// File: /workspace/github_cpp_makefile_star2_O3/miklhh[P]mandelbrot/src/render.cpp
// Function: render_draw_to_SDL_Renderer(SDL_Renderer*)
void render_draw_to_SDL_Renderer(SDL_Renderer* renderer)
{
    for (int y = 0; y < scr_height; y++)
    {
        for (int x = 0; x < scr_width; x++)
        {
            SDL_SetRenderDrawColor(
                renderer,
                render_buffer[y][x].red,
                render_buffer[y][x].green,
                render_buffer[y][x].blue,
                render_buffer[y][x].alpha);
            SDL_RenderDrawPoint(renderer, x, y);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x22c1(%rip), %rax      # 0x5034
movslq (%rax), %rax
movq %rax, (%rsp)
testq %rax, %rax
jle 0x2ded
movq %rdi, %rbx
leaq 0x22a7(%rip), %rax      # 0x5030
movl (%rax), %r13d
xorl %r14d, %r14d
movl $0xff, %ebp
testl %r13d, %r13d
jle 0x2de4
leaq (%r14,%r14,2), %r12
xorl %r15d, %r15d
movq 0x5481(%rip), %rax      # 0x8228
movq (%rax,%r12,8), %rax
movl (%rax,%r15,4), %esi
movl %esi, %edx
shrl $0x8, %edx
movl %esi, %ecx
shrl $0x10, %ecx
movl %esi, %r8d
shrl $0x18, %r8d
andl %ebp, %esi
andl %ebp, %edx
andl %ebp, %ecx
movq %rbx, %rdi
callq 0x22c0
movq %rbx, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x2200
incq %r15
cmpq %r15, %r13
jne 0x2da0
incq %r14
cmpq (%rsp), %r14
jne 0x2d94
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/miklhh[P]mandelbrot/src/render.cpp
// Function: render_create_bmp(char const*)
int render_create_bmp(const char* file_name)
{
    /* Create a surface and unlock the pixels*/
    std::cout << "Creating BMP." << std::endl;
    SDL_Surface* surface = SDL_CreateRGBSurface(0, scr_width, scr_height, 32, 0, 0, 0, 0);
    SDL_LockSurface(surface);
    for (int y = 0; y < scr_height; y++)
    {
        for (int x = 0; x < scr_width; x++)
        {
            set_pixel_on_surface(surface, x, y, render_buffer[y][x]);
        }
    }
    SDL_UnlockSurface(surface);
    SDL_SaveBMP(surface, file_name);
    std::cout << "BMP created." << std::endl;
    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %r14
movq 0x51ad(%rip), %rbx      # 0x7fd0
leaq 0x2356(%rip), %rsi      # 0x5180
movl $0xd, %edx
movq %rbx, %rdi
callq 0x2250
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
leaq 0x21cb(%rip), %rax      # 0x5030
movl (%rax), %r15d
leaq 0x21c5(%rip), %rax      # 0x5034
movslq (%rax), %r12
xorl %eax, %eax
xorl %edi, %edi
movl %r15d, %esi
movl %r12d, %edx
movl $0x20, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %rax
pushq %rax
callq 0x22a0
addq $0x10, %rsp
movq %rax, %r13
movq %rax, %rdi
callq 0x2290
testq %r12, %r12
jle 0x2ee6
leaq (,%r15,4), %rax
xorl %ecx, %ecx
xorl %edx, %edx
testl %r15d, %r15d
jle 0x2edb
leaq (%rdx,%rdx,2), %rsi
xorl %edi, %edi
movq 0x5368(%rip), %r8       # 0x8228
movq (%r8,%rsi,8), %r8
movl (%r8,%rdi,4), %r8d
movq 0x20(%r13), %r9
addq %rcx, %r9
movl %r8d, (%r9,%rdi,4)
incq %rdi
cmpq %rdi, %r15
jne 0x2eb9
incq %rdx
addq %rax, %rcx
cmpq %r12, %rdx
jne 0x2eae
movq %r13, %rdi
callq 0x22b0
leaq 0x2299(%rip), %rsi      # 0x518e
movq %r14, %rdi
callq 0x20f0
movq %r13, %rdi
movq %rax, %rsi
movl $0x1, %edx
callq 0x2130
leaq 0x227d(%rip), %rsi      # 0x5191
movl $0xc, %edx
movq %rbx, %rdi
callq 0x2250
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/miklhh[P]mandelbrot/src/supersampling.cpp
// Function: get_px_1x_ss(int, int)
rgb_t get_px_1x_ss(int px_x, int px_y)
{
    using std::complex;
    double x = double((px_x - scr_width / 2) * scale.x + offset.x);
    double y = double((px_y - scr_height / 2) * scale.y + offset.y);
    complex<double> c(x, y);
    complex<double> z(0, 0);
    unsigned int iterations;
    for (iterations = 0; iterations < max_iterations; iterations++)
    {
        z = z * z + c;
        if (test_escape(z, 2.0)) { break; }
    }
    return get_color(iterations, z, c);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
leaq 0x19e9(%rip), %rax      # 0x5030
leaq 0x19e6(%rip), %rcx      # 0x5034
movd (%rcx), %xmm0
movd (%rax), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movdqa %xmm1, %xmm0
psrld $0x1f, %xmm0
paddd %xmm1, %xmm0
psrad $0x1, %xmm0
movd %esi, %xmm1
movd %edi, %xmm2
punpckldq %xmm1, %xmm2    # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
psubd %xmm0, %xmm2
cvtdq2pd %xmm2, %xmm0
mulpd 0x4c08(%rip), %xmm0     # 0x8290
addpd 0x4c10(%rip), %xmm0     # 0x82a0
movapd %xmm0, 0x20(%rsp)
movapd %xmm0, 0x30(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, (%rsp)
leaq 0x4b2c(%rip), %r12      # 0x81d8
cmpl $0x0, (%r12)
je 0x3706
xorl %ebx, %ebx
leaq 0x10(%rsp), %r14
movq %rsp, %r15
movaps (%rsp), %xmm0
movaps %xmm0, 0x10(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x35b2
movapd 0x10(%rsp), %xmm0
addpd 0x20(%rsp), %xmm0
movapd %xmm0, (%rsp)
mulpd %xmm0, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
ucomisd 0x1b7e(%rip), %xmm1     # 0x5278
ja 0x3708
incl %ebx
cmpl (%r12), %ebx
jb 0x36bd
jmp 0x3708
xorl %ebx, %ebx
movq %rsp, %rsi
leaq 0x30(%rsp), %rdx
movl %ebx, %edi
callq 0x335c
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/miklhh[P]mandelbrot/src/thread_pool.cpp
// Function: mandelbrot_thread_pool_create(int, std::function<void (segment_t)>)
mandelbrot_threadpool* mandelbrot_thread_pool_create(
    int threads,
    std::function<void(segment_t)> render_segment_callback)
{
    /* Allocate the threadpool and set it up. */
    mandelbrot_threadpool* threadpool = new mandelbrot_threadpool;
    if (threadpool != NULL) 
    {
        /* Create the proper amount of thread objects. */
        for (int i = 0; i < threads; i++)
        {
            /* No need to lock mutex since no other threads are using resources. */
            threadpool->workers.push_back(std::thread());
            threadpool->worker_busy.push_back(false);
        }
        /* Set threadpool data. */
        threadpool->render_segment = render_segment_callback;
        threadpool->n_threads = threads;
        return threadpool;
    }
    else 
    { 
        return NULL; 
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, 0x10(%rsp)
movl %edi, %r15d
movl $0x108, %edi            # imm = 0x108
callq 0x2230
movq %rax, %rbx
leaq 0x8(%rax), %r14
movq $0x0, 0x58(%rax)
movl $0x0, 0x60(%rax)
leaq 0x98(%rax), %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movups %xmm0, 0x18(%rax)
movups %xmm0, 0x28(%rax)
movups %xmm0, 0x38(%rax)
movups %xmm0, 0x44(%rax)
movups %xmm0, 0x68(%rax)
movups %xmm0, 0x78(%rax)
movups %xmm0, 0x88(%rax)
movups %xmm0, 0x98(%rax)
movups %xmm0, 0xa8(%rax)
movups %xmm0, 0xb8(%rax)
movups %xmm0, 0xc8(%rax)
movups %xmm0, 0xd8(%rax)
xorl %esi, %esi
callq 0x42e2
xorps %xmm0, %xmm0
movups %xmm0, 0xf8(%rbx)
movups %xmm0, 0xe8(%rbx)
testl %r15d, %r15d
jle 0x3bd5
leaq 0x48(%rbx), %r12
leaq 0x8(%rsp), %r13
movl %r15d, %ebp
movq $0x0, 0x8(%rsp)
movq %r14, %rdi
movq %r13, %rsi
callq 0x4616
cmpq $0x0, 0x8(%rsp)
jne 0x3c3f
movq %r12, %rdi
xorl %esi, %esi
callq 0x414e
decl %ebp
jne 0x3bab
movq %rbx, %rdi
addq $0xe8, %rdi
movq 0x10(%rsp), %rsi
callq 0x419c
movl %r15d, (%rbx)
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq %rbx, %rdi
addq $0x48, %rdi
callq 0x445a
movq %r14, %rdi
callq 0x42a6
movl $0x108, %esi            # imm = 0x108
movq %rbx, %rdi
callq 0x2240
jmp 0x3c37
movq %rax, %rdi
callq 0x2fb3
cmpq $0x0, 0x8(%rsp)
jne 0x3c3f
movq %rax, %r15
movq %r15, %rdi
callq 0x2350
callq 0x2070
// File: /workspace/github_cpp_makefile_star2_O3/miklhh[P]mandelbrot/src/thread_pool.cpp
// Function: mandelbrot_thread_pool_add_job(mandelbrot_threadpool*, segment_t)
void mandelbrot_thread_pool_add_job(
    mandelbrot_threadpool* threadpool, 
    segment_t segment)
{
    /* Add the job to the job queue and launch the thread pool. */
    std::unique_lock<std::mutex> jobs_lock(threadpool->jobs_mutex);
    threadpool->jobs.push(segment);
    jobs_lock.unlock();
    mandelbrot_thread_pool_launch(threadpool);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
movq %rsi, 0x30(%rsp)
movq %rdx, 0x38(%rsp)
leaq 0x70(%rdi), %r15
leaq 0x20(%rsp), %r14
movq %r15, (%r14)
movb $0x0, 0x8(%r14)
movq %r14, %rdi
callq 0x450c
movb $0x1, 0x8(%r14)
movq 0xc8(%rbx), %rax
movq 0xd8(%rbx), %rcx
addq $-0x10, %rcx
cmpq %rcx, %rax
je 0x3ca1
movups 0x30(%rsp), %xmm0
movups %xmm0, (%rax)
addq $0x10, 0xc8(%rbx)
jmp 0x3cb2
leaq 0x98(%rbx), %rdi
leaq 0x30(%rsp), %rsi
callq 0x4b9c
leaq 0x20(%rsp), %rdi
callq 0x4202
movq %rbx, 0x10(%rsp)
leaq 0x40(%rsp), %rdi
movq %r15, (%rdi)
movb $0x0, 0x8(%rdi)
callq 0x450c
movb $0x1, 0x48(%rsp)
movl $0xffffffff, 0xc(%rsp)  # imm = 0xFFFFFFFF
cmpl $0x0, (%rbx)
jle 0x3d89
xorl %r14d, %r14d
addq $0x48, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4240
testq %rdx, (%rax)
je 0x3d1c
incq %r14
movq 0x10(%rsp), %rbx
movslq (%rbx), %rax
cmpq %rax, %r14
jl 0x3ceb
movl 0xc(%rsp), %r14d
cmpl $-0x1, %r14d
jne 0x3d26
jmp 0x3d89
movl %r14d, 0xc(%rsp)
movq 0x10(%rsp), %rbx
addq $0x48, %rbx
movslq %r14d, %rsi
movq %rbx, %rdi
callq 0x4240
orq %rdx, (%rax)
leaq 0x241(%rip), %rsi       # 0x3f80
leaq 0x18(%rsp), %rdi
leaq 0x10(%rsp), %rdx
leaq 0xc(%rsp), %rcx
callq 0x4488
movq 0x10(%rsp), %rcx
movslq 0xc(%rsp), %rsi
movq 0x8(%rcx), %rax
movq 0x10(%rcx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x3da7
cmpq $0x0, (%rax,%rsi,8)
jne 0x3dbf
leaq (%rax,%rsi,8), %rdi
movq 0x18(%rsp), %rax
movq %rax, (%rdi)
callq 0x2340
leaq 0x40(%rsp), %rdi
callq 0x422a
leaq 0x20(%rsp), %rdi
callq 0x422a
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x140a(%rip), %rdi      # 0x51b8
xorl %eax, %eax
callq 0x22f0
jmp 0x3dcd
cmpq $0x0, 0x18(%rsp)
je 0x3dcd
callq 0x2070
jmp 0x3dcd
jmp 0x3dcd
movq %rax, %rbx
jmp 0x3dda
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x422a
leaq 0x20(%rsp), %rdi
callq 0x422a
movq %rbx, %rdi
callq 0x2350
// File: /workspace/github_cpp_makefile_star2_O3/miklhh[P]mandelbrot/src/thread_pool.cpp
// Function: mandelbrot_thread_pool_destroy(mandelbrot_threadpool*)
int mandelbrot_thread_pool_destroy(mandelbrot_threadpool * threadpool)
{
    std::cout << "Killing threads." << std::endl;
    std::this_thread::sleep_for(std::chrono::milliseconds(200));
    for (int i = 0; i < threadpool->n_threads; i++)
    {
        threadpool->workers.at(i).~thread();
    }
    delete threadpool;
    return 0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x41d3(%rip), %r14      # 0x7fd0
leaq 0x14cc(%rip), %rsi      # 0x52d0
movl $0x10, %edx
movq %r14, %rdi
callq 0x2250
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
leaq 0x8(%rsp), %r14
movq $0x0, (%r14)
movq $0xbebc200, 0x8(%r14)   # imm = 0xBEBC200
movq %r14, %rdi
movq %r14, %rsi
callq 0x2090
cmpl $-0x1, %eax
jne 0x3e66
callq 0x2050
cmpl $0x4, (%rax)
je 0x3e4c
movslq (%rbx), %rax
testq %rax, %rax
jle 0x3e93
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
xorl %esi, %esi
cmpq %rsi, %rdx
je 0x3ee5
cmpq $0x0, (%rcx,%rsi,8)
jne 0x3ef6
incq %rsi
cmpq %rsi, %rax
jne 0x3e7f
movq 0xf8(%rbx), %rax
testq %rax, %rax
je 0x3eb0
leaq 0xe8(%rbx), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x98(%rbx), %rdi
callq 0x45be
leaq 0x48(%rbx), %rdi
callq 0x445a
leaq 0x8(%rbx), %rdi
callq 0x42a6
movl $0x108, %esi            # imm = 0x108
movq %rbx, %rdi
callq 0x2240
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
leaq 0x12cc(%rip), %rdi      # 0x51b8
movq %rdx, %rsi
xorl %eax, %eax
callq 0x22f0
callq 0x2070
jmp 0x3efd
movq %rax, %rdi
callq 0x2fb3
// File: /workspace/github_cpp_makefile_star2_O3/miklhh[P]mandelbrot/src/thread_pool.cpp
// Function: mandelbrot_thread_pool_get_active_workers(mandelbrot_threadpool*)
int mandelbrot_thread_pool_get_active_workers(mandelbrot_threadpool * threadpool)
{
    std::lock_guard<std::mutex> lock_worker_busy(threadpool->worker_busy_mutex);
    int active_workers = 0;
    for (int i = 0; i < threadpool->n_threads; i++)
    {
        if (threadpool->worker_busy.at(i)) { active_workers++; }
    }
    return active_workers;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r14
leaq 0x20(%rdi), %rbx
movq %rbx, %rdi
callq 0x22e0
testl %eax, %eax
jne 0x3f66
cmpl $0x0, (%r14)
jle 0x3f51
leaq 0x48(%r14), %r15
xorl %r12d, %r12d
xorl %ebp, %ebp
movq %r15, %rdi
movq %r12, %rsi
callq 0x4240
andq (%rax), %rdx
cmpq $0x1, %rdx
sbbl $-0x1, %ebp
incq %r12
movslq (%r14), %rax
cmpq %rax, %r12
jl 0x3f2f
jmp 0x3f53
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x2190
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0x2150
movq %rax, %r14
movq %rbx, %rdi
callq 0x2190
movq %r14, %rdi
callq 0x2350
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/votx/otx.cc
// Function: votx::OTX::setup(int, int, double, double, bool, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool)
void OTX::setup(const int pMaxIterD, const int pMaxIterH, const double pThres,
        const double pLearnRate, const bool pFlagVerb, const double vPlotScale,
        const std::string pPrefix, const bool pFlagDebug) {
        vFlagVerb = pFlagVerb;
        vFlagDebug = pFlagDebug;
        vPrefix = pPrefix;
        vMaxIterD = pMaxIterD;
        vMaxIterH = pMaxIterH;
        vThres = pThres;
        vLearnRate = pLearnRate;

        vNumDiracXs = vDiracXs.size();
        vNumEmpiricalXs = vEmpiricalXs.size();

        // Set h to 1 and gradient to 0
        vHs = std::vector<double>(vNumDiracXs, 1.0);
        vGradient = std::vector<double>(vNumDiracXs, 0.0);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movsd %xmm1, 0x38(%rsp)
movsd %xmm0, 0x30(%rsp)
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movb %cl, 0x70(%rdi)
movb %r9b, 0x71(%rdi)
addq $0x88, %rdi
movq %r8, %rsi
callq 0x71c0
movl %r14d, 0x74(%rbx)
movl %ebp, 0x78(%rbx)
movsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x68(%rbx)
movsd 0x38(%rsp), %xmm0
movsd %xmm0, 0x60(%rbx)
movq 0x8(%rbx), %rax
movq 0x20(%rbx), %rcx
subq (%rbx), %rax
shrq $0x3, %rax
movl %eax, 0x7c(%rbx)
subq 0x18(%rbx), %rcx
shrq $0x3, %rcx
movl %ecx, 0x80(%rbx)
movslq %eax, %rsi
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
leaq 0x40(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x10(%rsp), %r14
leaq 0xf(%rsp), %rcx
movq %r14, %rdi
callq 0x12628
movq 0x30(%rbx), %rdi
movq 0x40(%rbx), %rsi
movaps (%r14), %xmm0
movups %xmm0, 0x30(%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x40(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
movq $0x0, 0x10(%r14)
testq %rdi, %rdi
je 0xfb9f
subq %rdi, %rsi
callq 0x7350
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xfb9f
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x7350
movslq 0x7c(%rbx), %rsi
xorl %r15d, %r15d
leaq 0x40(%rsp), %rdx
movq %r15, (%rdx)
leaq 0x10(%rsp), %r14
leaq 0xf(%rsp), %rcx
movq %r14, %rdi
callq 0x12628
movq 0x48(%rbx), %rdi
movq 0x58(%rbx), %rsi
movaps (%r14), %xmm0
movups %xmm0, 0x48(%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x58(%rbx)
movq %r15, 0x10(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
testq %rdi, %rdi
je 0xfc07
subq %rdi, %rsi
callq 0x7350
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xfc07
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x7350
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/votx/otx.cc
// Function: votx::OTX::import_data(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 OTX::import_data(const std::string pDiracFile, const std::string pEmpiricalFile) {
        std::cout << "--> Importing data... " << std::endl;
        read_diracX_from_file(pDiracFile);
        read_empiricalX_from_file(pEmpiricalFile);
        std::cout << std::endl;
        check_total_mass();
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq 0xb379(%rip), %r14      # 0x1afa8
leaq 0x4f82(%rip), %rsi      # 0x14bb8
movl $0x16, %edx
movq %r14, %rdi
callq 0x73a0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7320
movsbl %al, %esi
movq %r14, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7240
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0x9d5e
movq %rbx, %rdi
movq %r12, %rsi
callq 0xfd54
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0xfcae
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x7350
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
movq %rsp, %r15
movq %r15, %rdi
callq 0x9d5e
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1047c
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0xfced
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x7350
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7320
movsbl %al, %esi
movq %r14, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7240
movq %rbx, %rdi
callq 0x10ba0
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
jmp 0xfd3b
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0xfd4c
movq (%r13), %rsi
incq %rsi
callq 0x7350
movq %rbx, %rdi
callq 0x7620
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/votx/otx.cc
// Function: votx::OTX::cluster()
void OTX::cluster() {
        int iterD = 0;
        while (iterD < vMaxIterD) {
            int iterH = 0;
            while (iterH < vMaxIterH) {
                // break if map converges 
                if (update_map(iterD, iterH)) {
                    if (vFlagVerb) write_results(iterD,iterH);
                    break;
                } 
                if (vFlagVerb) write_results(iterD,iterH);
                iterH++;
            }

            // break if dirac converges
            if (update_dirac()) { write_results(iterD,iterH); break; }
            write_results(iterD,iterH);

            if (vFlagDebug) getchar();
            
            iterD++;
        }
    }

// Assembly:
cmpl $0x0, 0x74(%rdi)
jle 0x10edf
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %ebp, %ebp
cmpl $0x0, 0x78(%rbx)
movl $0x0, %r14d
jle 0x10ea6
xorl %r14d, %r14d
movq %rbx, %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0x10ee0
movb 0x70(%rbx), %cl
testb %al, %al
jne 0x10e95
testb %cl, %cl
je 0x10e8a
movq %rbx, %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0x10fb4
incl %r14d
cmpl 0x78(%rbx), %r14d
jl 0x10e65
jmp 0x10ea6
testb %cl, %cl
je 0x10ea6
movq %rbx, %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0x10fb4
movq %rbx, %rdi
callq 0x11bec
movl %eax, %r15d
movq %rbx, %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0x10fb4
testb %r15b, %r15b
jne 0x10ed5
cmpb $0x1, 0x71(%rbx)
jne 0x10ece
callq 0x7470
incl %ebp
cmpl 0x74(%rbx), %ebp
jl 0x10e56
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/votx/otx.cc
// Function: votx::OTX::update_map(int, int)
bool OTX::update_map(int iterD, int iterH) {
        if (vFlagVerb || vFlagDebug) {
            std::cout << "updating map... iterD: " << iterD 
                                    << ", iterH: " << iterH << std::endl;    
        }
        // If gradient norm less than threshold
        if (compute_gradient() < vThres) { return true; }
        update_h();
        return false;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
cmpb $0x0, 0x70(%rdi)
jne 0x10efe
cmpb $0x1, 0x71(%rbx)
jne 0x10f6f
movq 0xa0a3(%rip), %r15      # 0x1afa8
leaq 0x3e0f(%rip), %rsi      # 0x14d1b
movl $0x17, %edx
movq %r15, %rdi
callq 0x73a0
movq %r15, %rdi
movl %r14d, %esi
callq 0x75f0
movq %rax, %r14
leaq 0x3e05(%rip), %rsi      # 0x14d33
movl $0x9, %edx
movq %rax, %rdi
callq 0x73a0
movq %r14, %rdi
movl %ebp, %esi
callq 0x75f0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7320
movsbl %al, %esi
movq %r14, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7240
movq %rbx, %rdi
callq 0x11d90
movsd 0x68(%rbx), %xmm1
ucomisd %xmm0, %xmm1
ja 0x10fa2
movq %rbx, %rdi
movsd %xmm0, 0x10(%rsp)
movsd %xmm1, 0x8(%rsp)
callq 0x1211c
movsd 0x8(%rsp), %xmm1
movsd 0x10(%rsp), %xmm0
ucomisd %xmm0, %xmm1
seta %al
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/votx/otx.cc
// Function: votx::OTX::update_dirac()
bool OTX::update_dirac() {
        if (vFlagVerb || vFlagDebug) { std::cout << "updating dirac... " << std::endl; }
        int converge = true;
        // Create a new double array to replace the old one.
        for (auto d : vDiracXs) {
            // If index set does not change, no need to update.
            if (!d->update_flag()) { if (vFlagDebug) d->print(); continue; }

            double* coor = new double[d->dim()];
            std::fill(&coor[0], &coor[d->dim()], 0.0);
            std::unordered_set<int>& tmpSet = d->set();
            for (auto idx : tmpSet) for (int i = 0; i < vDim; i++) 
                coor[i] += (*vEmpiricalXs[idx])[i]*vEmpiricalXs[idx]->mass();

            d->update_coor(*coor);
            *d /= d->mass();

            if (vFlagDebug) d->print();
            converge = false;
        }
        // 0 means no dirac points have been updated.
        return converge;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
cmpb $0x0, 0x70(%rdi)
jne 0x11c09
cmpb $0x1, 0x71(%rbx)
jne 0x11c4b
movq 0x9398(%rip), %r14      # 0x1afa8
leaq 0x3126(%rip), %rsi      # 0x14d3d
movl $0x12, %edx
movq %r14, %rdi
callq 0x73a0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7320
movsbl %al, %esi
movq %r14, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7240
movq (%rbx), %r13
movq 0x8(%rbx), %r14
cmpq %r14, %r13
je 0x11d7f
movl $0x1, %ebp
movq %r14, 0x10(%rsp)
movq (%r13), %r15
cmpb $0x1, 0x21(%r15)
jne 0x11d5d
cmpq $0x0, 0x40(%r15)
je 0x11d5d
movslq 0x8(%r15), %rax
leaq (,%rax,8), %rdi
testq %rax, %rax
movq $-0x1, %rax
cmovsq %rax, %rdi
callq 0x7030
movq %r15, %rcx
movq %rax, %r15
movq %rcx, 0x8(%rsp)
movslq 0x8(%rcx), %rdx
testq %rdx, %rdx
je 0x11cc0
shlq $0x3, %rdx
movq %r15, %rdi
xorl %esi, %esi
callq 0x71d0
movq 0x8(%rsp), %rax
movq 0x38(%rax), %rbp
testq %rbp, %rbp
je 0x11d24
movl 0x84(%rbx), %eax
testl %eax, %eax
jle 0x11d1b
movslq 0x8(%rbp), %r14
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rdi
xorl %r12d, %r12d
movl %r12d, %esi
callq 0x128bc
movsd (%rax), %xmm0
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rdi
mulsd 0x10(%rdi), %xmm0
addsd (%r15,%r12,8), %xmm0
movsd %xmm0, (%r15,%r12,8)
incq %r12
movslq 0x84(%rbx), %rax
cmpq %rax, %r12
jl 0x11ce7
movq (%rbp), %rbp
testq %rbp, %rbp
jne 0x11cd4
movq 0x8(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x11d36
callq 0x7410
movq 0x8(%rsp), %rax
movq %r15, (%rax)
movq %rax, %r15
movsd 0x18(%rax), %xmm0
movq %rax, %rdi
callq 0x1293a
xorl %ebp, %ebp
cmpb $0x0, 0x71(%rbx)
movq 0x10(%rsp), %r14
jne 0x11d63
jmp 0x11d6b
cmpb $0x0, 0x71(%rbx)
je 0x11d6b
movq %r15, %rdi
callq 0x1274a
addq $0x8, %r13
cmpq %r14, %r13
jne 0x11c65
testl %ebp, %ebp
setne %al
jmp 0x11d81
movb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/votx/otx.cc
// Function: votx::OTX::update_h()
void OTX::update_h() {
        for (int i = 0; i < vNumDiracXs; i++) {
            vHs[i] -= vLearnRate * vGradient[i];
            if((vFlagVerb || vFlagDebug) && vHs[i] < 0) {
                std::cout << "[warning] H: " << vHs[i] 
                          << ", voro++ cannot plot if h is negative. " << std::endl;
            }
        }
    }

// Assembly:
movl 0x7c(%rdi), %eax
testl %eax, %eax
jle 0x121fe
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %ebp, %ebp
movq 0x8e6a(%rip), %r14      # 0x1afa8
leaq 0x2c8f(%rip), %r15      # 0x14dd4
leaq 0x2c96(%rip), %r12      # 0x14de2
movsd 0x60(%rbx), %xmm1
movq 0x30(%rbx), %rcx
movq 0x48(%rbx), %rdx
movsd (%rcx,%rbp,8), %xmm0
mulsd (%rdx,%rbp,8), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, (%rcx,%rbp,8)
cmpb $0x0, 0x70(%rbx)
jne 0x12178
cmpb $0x1, 0x71(%rbx)
jne 0x121e1
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jbe 0x121e1
movl $0xd, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x73a0
movq 0x30(%rbx), %rax
movsd (%rax,%rbp,8), %xmm0
movq %r14, %rdi
callq 0x7560
movq %rax, %r13
movl $0x27, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x73a0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x7320
movsbl %al, %esi
movq %r13, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7240
movl 0x7c(%rbx), %eax
incq %rbp
movslq %eax, %rcx
cmpq %rcx, %rbp
jl 0x1214c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/votx/otx.cc
// Function: votx::OTX::write_dirac(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void OTX::write_dirac(std::string filename) {
        std::ofstream of(filename);
        of << "dirac " << vNumDiracXs << " " << vDim << std::endl;
        for (int i = 0; i < vNumDiracXs; i++) {
            of << "{ mass: " << vDiracXs[i]->mass() << " dirac: " << vDiracXs[i]->dirac() 
               << " h: " << vHs[i] << " } ";
            for (int j = 0; j < vDim; j++) {
                of << (*vDiracXs[i])[j] << " ";
            }
            of << std::endl;
        }
        of.close();
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl $0x10, %edx
callq 0x76d0
leaq 0x2c10(%rip), %rsi      # 0x14e3d
movl $0x6, %edx
movq %r14, %rdi
callq 0x73a0
movl 0x7c(%rbx), %esi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x75f0
movq %rax, %r15
leaq 0x2b69(%rip), %rsi      # 0x14dbd
movl $0x1, %edx
movq %rax, %rdi
callq 0x73a0
movl 0x84(%rbx), %esi
movq %r15, %rdi
callq 0x75f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x7320
movsbl %al, %esi
movq %r15, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7240
cmpl $0x0, 0x7c(%rbx)
jle 0x123bc
xorl %r13d, %r13d
leaq 0x2ba5(%rip), %rbp      # 0x14e52
leaq 0x2b09(%rip), %r15      # 0x14dbd
movl $0x8, %edx
movq %r14, %rdi
leaq 0x2b81(%rip), %rsi      # 0x14e44
callq 0x73a0
movq (%rbx), %rax
movq (%rax,%r13,8), %rax
movsd 0x18(%rax), %xmm0
movq %r14, %rdi
callq 0x7560
movq %rax, %r12
movl $0x8, %edx
movq %rax, %rdi
leaq 0x2b9e(%rip), %rsi      # 0x14e8c
callq 0x73a0
movq (%rbx), %rax
movq (%rax,%r13,8), %rax
movsd 0x10(%rax), %xmm0
movq %r12, %rdi
callq 0x7560
movq %rax, %r12
movl $0x4, %edx
movq %rax, %rdi
leaq 0x2b34(%rip), %rsi      # 0x14e4d
callq 0x73a0
movq 0x30(%rbx), %rax
movsd (%rax,%r13,8), %xmm0
movq %r12, %rdi
callq 0x7560
movl $0x3, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x73a0
cmpl $0x0, 0x84(%rbx)
jle 0x12383
xorl %r12d, %r12d
movq (%rbx), %rax
movq (%rax,%r13,8), %rdi
movl %r12d, %esi
callq 0x128bc
movsd (%rax), %xmm0
movq %r14, %rdi
callq 0x7560
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x73a0
incl %r12d
cmpl 0x84(%rbx), %r12d
jl 0x1234c
movq 0x8(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7320
movsbl %al, %esi
movq %r14, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7240
incq %r13
movslq 0x7c(%rbx), %rax
cmpq %rax, %r13
jl 0x122b4
leaq 0x8(%rsp), %rdi
callq 0x74b0
movq 0x8bbb(%rip), %rax      # 0x1af88
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x10(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x8(%rsp,%rcx)
callq 0x72d0
leaq 0x100(%rsp), %rdi
callq 0x7120
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1240e
jmp 0x1240e
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x74e0
movq %rbx, %rdi
callq 0x7620
nop
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/votx/otx.cc
// Function: votx::OTX::write_empirical(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void OTX::write_empirical(std::string filename) {
        std::ofstream of(filename);
        of << "empirical " << vNumEmpiricalXs << " " << vDim << std::endl;
        for (int i = 0; i < vNumEmpiricalXs; i++) {
            of << "{ mass: " << vEmpiricalXs[i]->mass() << " dirac index: " << vEmpiricalXs[i]->di() << " } ";
            for (int j = 0; j < vDim; j++) {
                of << (*vEmpiricalXs[i])[j] << " ";
            }
            of << std::endl;
        }
        of.close();
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl $0x10, %edx
callq 0x76d0
leaq 0x2a05(%rip), %rsi      # 0x14e56
movl $0xa, %edx
movq %r14, %rdi
callq 0x73a0
movl 0x80(%rbx), %esi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x75f0
movq %rax, %r15
leaq 0x2942(%rip), %rsi      # 0x14dbd
movl $0x1, %edx
movq %rax, %rdi
callq 0x73a0
movl 0x84(%rbx), %esi
movq %r15, %rdi
callq 0x75f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x7320
movsbl %al, %esi
movq %r15, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7240
cmpl $0x0, 0x80(%rbx)
jle 0x125c1
xorl %r12d, %r12d
leaq 0x297b(%rip), %r13      # 0x14e52
leaq 0x28df(%rip), %rbp      # 0x14dbd
movl $0x8, %edx
movq %r14, %rdi
leaq 0x2957(%rip), %rsi      # 0x14e44
callq 0x73a0
movq 0x18(%rbx), %rax
movq (%rax,%r12,8), %rax
movsd 0x10(%rax), %xmm0
movq %r14, %rdi
callq 0x7560
movq %rax, %r15
movl $0xe, %edx
movq %rax, %rdi
leaq 0x2948(%rip), %rsi      # 0x14e61
callq 0x73a0
movq 0x18(%rbx), %rax
movq (%rax,%r12,8), %rax
movl 0xc(%rax), %esi
movq %r15, %rdi
callq 0x75f0
movl $0x3, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x73a0
cmpl $0x0, 0x84(%rbx)
jle 0x12585
xorl %r15d, %r15d
movq 0x18(%rbx), %rax
movq (%rax,%r12,8), %rdi
movl %r15d, %esi
callq 0x128bc
movsd (%rax), %xmm0
movq %r14, %rdi
callq 0x7560
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x73a0
incl %r15d
cmpl 0x84(%rbx), %r15d
jl 0x1254d
movq 0x8(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7320
movsbl %al, %esi
movq %r14, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x7240
incq %r12
movslq 0x80(%rbx), %rax
cmpq %rax, %r12
jl 0x124de
leaq 0x8(%rsp), %rdi
callq 0x74b0
movq 0x89b6(%rip), %rax      # 0x1af88
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x10(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x8(%rsp,%rcx)
callq 0x72d0
leaq 0x100(%rsp), %rdi
callq 0x7120
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x12613
jmp 0x12613
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x74e0
movq %rbx, %rdi
callq 0x7620
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/votx/./pointX.hh
// Function: votx::DiracX::print()
void print() {
        std::cout << "("  << "update? " << vic <<  "; dim" << vn << "; dirac: " << vd 
                  << "; mass: " << vm << "; coor: ";
        for (int i = 0; i < vn-1; i++) { std::cout << vp[i] << ", "; }
        std::cout << vp[vn-1] << ")" << std::endl;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x884c(%rip), %r14      # 0x1afa8
leaq 0x2717(%rip), %rsi      # 0x14e7a
movl $0x1, %edx
movq %r14, %rdi
callq 0x73a0
leaq 0x2705(%rip), %rsi      # 0x14e7c
movl $0x8, %edx
movq %r14, %rdi
callq 0x73a0
movzbl 0x21(%rbx), %esi
movq %r14, %rdi
callq 0x75b0
movq %rax, %r14
leaq 0x26eb(%rip), %rsi      # 0x14e85
movl $0x5, %edx
movq %rax, %rdi
callq 0x73a0
movl 0x8(%rbx), %esi
movq %r14, %rdi
callq 0x75f0
movq %rax, %r14
leaq 0x26cf(%rip), %rsi      # 0x14e8b
movl $0x9, %edx
movq %rax, %rdi
callq 0x73a0
movsd 0x10(%rbx), %xmm0
movq %r14, %rdi
callq 0x7560
movq %rax, %r14
leaq 0x26b5(%rip), %rsi      # 0x14e95
movl $0x8, %edx
movq %rax, %rdi
callq 0x73a0
movsd 0x18(%rbx), %xmm0
movq %r14, %rdi
callq 0x7560
leaq 0x269d(%rip), %rsi      # 0x14e9e
movl $0x8, %edx
movq %rax, %rdi
callq 0x73a0
movslq 0x8(%rbx), %rax
cmpq $0x2, %rax
jl 0x1285b
xorl %r12d, %r12d
movq 0x8786(%rip), %r14      # 0x1afa8
leaq 0x2593(%rip), %r15      # 0x14dbc
movq (%rbx), %rax
movsd (%rax,%r12,8), %xmm0
movq %r14, %rdi
callq 0x7560
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x73a0
incq %r12
movslq 0x8(%rbx), %rax
decq %rax
cmpq %rax, %r12
jl 0x12829
jmp 0x1285e
decq %rax
movq (%rbx), %rcx
movsd (%rcx,%rax,8), %xmm0
movq 0x873b(%rip), %rdi      # 0x1afa8
callq 0x7560
movq %rax, %rbx
leaq 0x1dfe(%rip), %rsi      # 0x1467a
movl $0x1, %edx
movq %rax, %rdi
callq 0x73a0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x7320
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x7240
nop
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/votx/./pointbaseX.hh
// Function: votx::PointX::distL22(votx::PointX const&) const
double distL22(const PointX &p) const {
        double dist = 0.0;
        for (int i = 0; i < vn; i++) {
            dist += (vp[i]-p[i]) * (vp[i]-p[i]); 
        }
        return dist;
    }

// Assembly:
cmpl $0x0, 0x8(%rdi)
jle 0x12a7e
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
xorpd %xmm0, %xmm0
xorl %r15d, %r15d
movsd %xmm0, 0x18(%rsp)
movq (%r14), %rax
movsd (%rax,%r15,8), %xmm0
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x12be2
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq (%r14), %rax
movsd (%rax,%r15,8), %xmm0
movsd %xmm0, 0x10(%rsp)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x12be2
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd 0x18(%rsp), %xmm0
mulsd 0x8(%rsp), %xmm1
addsd %xmm1, %xmm0
incq %r15
movslq 0x8(%r14), %rax
cmpq %rax, %r15
jl 0x12a04
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
xorps %xmm0, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/votx/./pointX.hh
// Function: votx::EmpiricalX::print() const
void print() const {
        std::cout << "( dirac_idx: " << vdi << "; mass: " << vm << "; coor: ";
        for (int i = 0; i < vn-1; i++) {
            std::cout << vp[i] << ", ";
        }
        std::cout << vp[vn-1] << ")" << std::endl;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8514(%rip), %r14      # 0x1afa8
leaq 0x2487(%rip), %rsi      # 0x14f22
movl $0xd, %edx
movq %r14, %rdi
callq 0x73a0
movl 0xc(%rbx), %esi
movq %r14, %rdi
callq 0x75f0
movq %rax, %r14
leaq 0x23d8(%rip), %rsi      # 0x14e95
movl $0x8, %edx
movq %rax, %rdi
callq 0x73a0
movsd 0x10(%rbx), %xmm0
movq %r14, %rdi
callq 0x7560
leaq 0x23c0(%rip), %rsi      # 0x14e9e
movl $0x8, %edx
movq %rax, %rdi
callq 0x73a0
movslq 0x8(%rbx), %rax
cmpq $0x2, %rax
jl 0x12b38
xorl %r12d, %r12d
movq 0x84a9(%rip), %r14      # 0x1afa8
leaq 0x22b6(%rip), %r15      # 0x14dbc
movq (%rbx), %rax
movsd (%rax,%r12,8), %xmm0
movq %r14, %rdi
callq 0x7560
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x73a0
incq %r12
movslq 0x8(%rbx), %rax
decq %rax
cmpq %rax, %r12
jl 0x12b06
jmp 0x12b3b
decq %rax
movq (%rbx), %rcx
movsd (%rcx,%rax,8), %xmm0
movq 0x845e(%rip), %rdi      # 0x1afa8
callq 0x7560
movq %rax, %rbx
leaq 0x1b21(%rip), %rsi      # 0x1467a
movl $0x1, %edx
movq %rax, %rdi
callq 0x73a0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x7320
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x7240