LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/theuni[P]libbtcnet/src/bareproxy.cpp
// Function: CBareProxy::write_auth(bufferevent*, CProxyAuth const&)
bool CBareProxy::write_auth(bufferevent* bev, const CProxyAuth& auth)
{
    const std::string& username = auth.GetUsername();
    const std::string& password = auth.GetPassword();
    // Perform username/password authentication (as described in RFC1929)
    std::vector<uint8_t> vAuth;
    vAuth.push_back(0x01);
    if (username.size() > 255 || password.size() > 255)
        return false;
    vAuth.push_back(username.size());
    vAuth.insert(vAuth.end(), username.begin(), username.end());
    vAuth.push_back(password.size());
    vAuth.insert(vAuth.end(), password.begin(), password.end());
    bufferevent_setwatermark(bev, EV_READ, 2, 0);
    bufferevent_write(bev, &vAuth[0], vAuth.size());
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x599c
movq %rax, %r15
movq %r14, %rdi
callq 0x59a0
movq %rax, %r14
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0xf(%rsp), %rdx
movb $0x1, (%rdx)
xorl %esi, %esi
callq 0x7ea6
movq 0x8(%r15), %rax
cmpq $0xff, %rax
ja 0xfd8a
cmpq $0xff, 0x8(%r14)
jbe 0xfd91
xorl %ebp, %ebp
jmp 0xfe53
movb %al, 0xf(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0xfdb2
movb %al, (%rsi)
movq 0x18(%rsp), %rsi
incq %rsi
movq %rsi, 0x18(%rsp)
jmp 0xfdc6
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x7ea6
movq 0x18(%rsp), %rsi
movq (%r15), %rdx
movq 0x8(%r15), %rcx
addq %rdx, %rcx
leaq 0x10(%rsp), %rdi
callq 0x108de
movb 0x8(%r14), %al
movb %al, 0xf(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0xfdff
movb %al, (%rsi)
movq 0x18(%rsp), %rsi
incq %rsi
movq %rsi, 0x18(%rsp)
jmp 0xfe13
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x7ea6
movq 0x18(%rsp), %rsi
movq (%r14), %rdx
movq 0x8(%r14), %rcx
addq %rdx, %rcx
leaq 0x10(%rsp), %rdi
callq 0x108de
movl $0x2, %edx
movq %rbx, %rdi
movl $0x2, %esi
xorl %ecx, %ecx
callq 0x40c0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
subq %rsi, %rdx
movb $0x1, %bpl
movq %rbx, %rdi
callq 0x41f0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xfe62
callq 0x4340
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0xfe79
jmp 0xfe79
jmp 0xfe79
jmp 0xfe79
jmp 0xfe79
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xfe8b
callq 0x4340
movq %rbx, %rdi
callq 0x4640
nop
// File: /workspace/github_cpp_makefile_star2_O3/theuni[P]libbtcnet/src/bareproxy.cpp
// Function: CBareProxy::check_auth_response(bufferevent*, void*)
void CBareProxy::check_auth_response(bufferevent* bev, void* ctx)
{
    CBareProxy* data = static_cast<CBareProxy*>(ctx);
    const CConnection& conn(data->m_proxy_connection);
    char pchRetA[2];

    if (bufferevent_read(bev, pchRetA, sizeof(pchRetA)) != sizeof(pchRetA)) {
        data->ProxyFailure(0);
        return;
    }

    if (pchRetA[0] != 0x01 && pchRetA[1] != 0x00) {
        data->ProxyFailure(0);
        return;
    }

    bufferevent_setcb(bev, read_final, nullptr, event_cb, ctx);

    if (!writeproto(bev, conn)) {
        data->ProxyFailure(0);
        return;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r15
movq 0x8(%rsi), %r14
leaq 0xe(%rsp), %rsi
movl $0x2, %edx
callq 0x46f0
cmpq $0x2, %rax
jne 0x10706
cmpb $0x1, 0xe(%rsp)
je 0x106dc
cmpb $0x0, 0xf(%rsp)
jne 0x10706
leaq -0x84f(%rip), %rsi      # 0xfe94
leaq -0xf12(%rip), %rcx      # 0xf7d8
movq %r15, %rdi
xorl %edx, %edx
movq %rbx, %r8
callq 0x4360
movq %r15, %rdi
movq %r14, %rsi
callq 0xf83c
testb %al, %al
jne 0x10727
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x10714
callq 0x10d46
movq $0x0, 0x10(%rbx)
movq (%rbx), %rax
movq %rbx, %rdi
xorl %esi, %esi
callq *0x10(%rax)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/theuni[P]libbtcnet/src/listener.cpp
// Function: CConnListener::listen_error_cb(evconnlistener*, void*)
void CConnListener::listen_error_cb(evconnlistener* /*unused*/, void* ctx)
{
    assert(ctx != nullptr);
    CConnListener* bind = static_cast<CConnListener*>(ctx);
    bind->m_listener.free();
    bind->m_handler.OnListenFailure(bind->m_id, bind->m_connection);
}

// Assembly:
pushq %rbx
testq %rsi, %rsi
je 0x11017
movq %rsi, %rbx
movq 0x190(%rsi), %rdi
testq %rdi, %rdi
je 0x10ff8
callq 0x10d62
movq $0x0, 0x190(%rbx)
movq (%rbx), %rdi
movq 0x10(%rbx), %rsi
addq $0x18, %rbx
movq %rbx, %rdx
popq %rbx
jmp 0x93e0
leaq 0x24dc(%rip), %rdi      # 0x134fa
leaq 0x30a1(%rip), %rsi      # 0x140c6
leaq 0x3119(%rip), %rcx      # 0x14145
movl $0x44, %edx
callq 0x4260
// File: /workspace/github_cpp_makefile_star2_O3/theuni[P]libbtcnet/src/resolveonly.cpp
// Function: CResolveOnly::OnResolveSuccess(CDNSResponse&&)
void CResolveOnly::OnResolveSuccess(CDNSResponse&& response)
{
    m_request.reset(nullptr);
    std::list<CConnection> connections;
    for (auto it = response.begin(); it != response.end(); ++it)
        connections.emplace_back(m_connection.GetOptions(), m_connection.GetNetConfig(), it->ai_addr, it->ai_addrlen);
    m_retries = m_connection.GetOptions().nRetries;
    m_handler.OnResolveComplete(m_id, m_connection, std::move(connections));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r12
movq %rdi, %rbx
xorl %eax, %eax
movq %rax, 0x190(%rdi)
movq %rsp, %rcx
movq %rcx, 0x8(%rcx)
movq %rcx, (%rcx)
movq %rax, 0x10(%rcx)
movq %rsi, %rdi
callq 0xb882
leaq 0x40(%rsp), %r13
movq %rax, (%r13)
movq %rbx, 0x30(%rsp)
addq $0x10, %rbx
movq %r12, %rdi
callq 0xb886
movq %rax, 0x38(%rsp)
movq %r13, %rdi
leaq 0x38(%rsp), %rsi
callq 0xb830
testb %al, %al
je 0x114ea
movq %rbx, %rdi
callq 0x6fa8
movq %rax, %r14
movq %rbx, %rdi
callq 0x6fb0
movq %rax, %rbp
movq %r13, %rdi
callq 0xb7fc
movq %rax, %r15
movq %r13, %rdi
callq 0xb7fc
addq $0x18, %r15
addq $0x10, %rax
movq %rsp, %rdi
movq %r14, %rsi
movq %rbp, %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x11674
movq %rax, %rdi
movq %rsp, %rsi
callq 0x4070
incq 0x10(%rsp)
movq %r13, %rdi
callq 0xb798
jmp 0x1146d
movq %rbx, %rdi
callq 0x6fa8
movl 0x8(%rax), %eax
movq 0x30(%rsp), %rcx
movl %eax, 0x188(%rcx)
movq 0x8(%rcx), %rsi
movq 0x198(%rcx), %rdi
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
movq %rax, 0x18(%rsp)
movq %rcx, 0x20(%rsp)
movq 0x10(%rsp), %rdx
movq %rdx, 0x28(%rsp)
movq %rsp, %r8
cmpq %r8, %rax
je 0x11550
leaq 0x18(%rsp), %rdx
movq %rdx, (%rcx)
movq %rdx, 0x8(%rax)
movq %r8, 0x8(%rsp)
movq %r8, (%rsp)
movq $0x0, 0x10(%rsp)
jmp 0x1155c
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rax)
movq %rax, (%rax)
leaq 0x18(%rsp), %rcx
movq %rbx, %rdx
callq 0x8df0
leaq 0x18(%rsp), %rdi
callq 0x4e16
movq %rsp, %rdi
callq 0x4e16
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x4e16
jmp 0x115a2
jmp 0x1159f
jmp 0x1159f
jmp 0x1159f
movq %rax, %rbx
movq %rsp, %rdi
callq 0x4e16
movq %rbx, %rdi
callq 0x4640
// File: /workspace/github_cpp_makefile_star2_O3/iZhangHui[P]CppPrimer/CH10_GenericAlgorithms/examples/ostreamIter2.cc
// Function: main
int main() {
	vector<int> vec;
	istream_iterator<int> in_iter(cin);  // read ints from cin
	istream_iterator<int> eof;           // istream ``end'' iterator
	
	while (in_iter != eof)
		vec.push_back(*in_iter++);
	ostream_iterator<int> out_iter(cout, " ");
	
	for (auto e : vec)
		out_iter = e;  // the assignment writes this element to cout
	cout << endl;

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movq $0x0, -0x40(%rbp)
movq 0x2d3f(%rip), %rax      # 0x3fe0
leaq -0x68(%rbp), %rdi
movq %rax, (%rdi)
movb $0x1, 0xc(%rdi)
callq 0x142a
cmpb $0x0, -0x5c(%rbp)
je 0x1352
leaq -0x28(%rbp), %rbx
leaq -0x68(%rbp), %r14
leaq -0x50(%rbp), %r15
movq -0x68(%rbp), %rax
movq %rax, -0x30(%rbp)
movl -0x60(%rbp), %eax
movl %eax, -0x28(%rbp)
movb $0x1, -0x24(%rbp)
movq %r14, %rdi
callq 0x142a
movq -0x48(%rbp), %rsi
cmpq -0x40(%rbp), %rsi
je 0x12fa
movl -0x28(%rbp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x48(%rbp)
jmp 0x1305
movq %r15, %rdi
movq %rbx, %rdx
callq 0x1464
cmpb $0x0, -0x5c(%rbp)
jne 0x12c7
movq -0x50(%rbp), %r15
movq -0x48(%rbp), %r12
movq 0x2cb6(%rip), %rax      # 0x3fd0
movq %rax, -0x30(%rbp)
leaq 0xcdf(%rip), %rax       # 0x2004
movq %rax, -0x28(%rbp)
cmpq %r12, %r15
je 0x1368
leaq -0x30(%rbp), %rbx
leaq -0x54(%rbp), %r14
movl (%r15), %eax
movl %eax, -0x54(%rbp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13e2
addq $0x4, %r15
cmpq %r12, %r15
jne 0x1336
jmp 0x1368
movq 0x2c77(%rip), %rax      # 0x3fd0
movq %rax, -0x30(%rbp)
leaq 0xca0(%rip), %rax       # 0x2004
movq %rax, -0x28(%rbp)
movq 0x2c61(%rip), %rdi      # 0x3fd0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x10b0
movsbl %al, %esi
movq 0x2c46(%rip), %rdi      # 0x3fd0
callq 0x1030
movq %rax, %rdi
callq 0x1080
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x13ac
movq -0x40(%rbp), %rsi
subq %rdi, %rsi
callq 0x10d0
xorl %eax, %eax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x13c1
jmp 0x13c1
jmp 0x13c1
movq %rax, %rbx
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x13d9
movq -0x40(%rbp), %rsi
subq %rdi, %rsi
callq 0x10d0
movq %rbx, %rdi
callq 0x1120
nop
// File: /workspace/github_cpp_makefile_star2_O3/Couragewang[P]50_clss/./TcpClient.hpp
// Function: TcpClient::Start()
void Start()
        {
            struct sockaddr_in peer;
            bzero(&peer, sizeof(peer));
            peer.sin_family = AF_INET;
            peer.sin_port = htons(port);
            peer.sin_addr.s_addr = inet_addr(ip.c_str());

            if(connect(sock, (struct sockaddr*)&peer, sizeof(peer)) < 0){
                std::cerr << "connect error" << std::endl;
                exit(3);
            }
            char buf[1024];
            std::string in;
            while(1){
                std::cout << "Please Enter# ";
                std::cin >> in;
                write(sock, in.c_str(), in.size());
                ssize_t s = read(sock, buf, sizeof(buf)-1);
                if(s > 0){
                    buf[s] = 0;
                    std::cout << "Server Echo# " << buf << std::endl;
                }
            }
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x438, %rsp            # imm = 0x438
movq %rdi, %rbx
leaq -0x58(%rbp), %r14
movq $0x0, 0x8(%r14)
movw $0x2, (%r14)
movzwl 0x28(%rdi), %eax
rolw $0x8, %ax
movw %ax, 0x2(%r14)
movq 0x8(%rdi), %rdi
callq 0x52f450
movl %eax, 0x4(%r14)
movl (%rbx), %edi
movq %r14, %rsi
movl $0x10, %edx
callq 0x52e7c0
testl %eax, %eax
jns 0x4049af
movq $0x5e4320, %rdi         # imm = 0x5E4320
leaq 0x172698(%rip), %rsi    # 0x577030
callq 0x46e5c0
movq %rax, %rdi
callq 0x46dea0
movl $0x3, %edi
callq 0x4c18e0
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq $0x5e4440, %r14         # imm = 0x5E4440
movq $0x5e4560, %r12         # imm = 0x5E4560
leaq -0x48(%rbp), %r13
leaq -0x460(%rbp), %r15
movl $0xe, %edx
movq %r14, %rdi
leaq 0x172654(%rip), %rsi    # 0x57703e
callq 0x46e090
movq %r12, %rdi
movq %r13, %rsi
callq 0x406590
movl (%rbx), %edi
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq 0x52b990
movl (%rbx), %edi
movl $0x3ff, %edx            # imm = 0x3FF
movq %r15, %rsi
callq 0x52b8f0
testq %rax, %rax
jle 0x4049db
movb $0x0, -0x460(%rbp,%rax)
movl $0xd, %edx
movq %r14, %rdi
leaq 0x172619(%rip), %rsi    # 0x57704d
callq 0x46e090
movq %r15, %rdi
callq 0x401110
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x46e090
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x44f1e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x46db90
movq %rax, %rdi
callq 0x46d160
jmp 0x4049db
jmp 0x404a7d
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x404a99
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x404be0
movq %rbx, %rdi
callq 0x4a6010
nop
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/apps/msh2prp/msh2prp.cpp
// Function: Sigma(gaps::R3Mesh*)
RNScalar
Sigma(R3Mesh *mesh)
{
  // Compute smallest sigma
  static RNScalar sigma = 0;
  static R3Mesh *last_mesh = NULL;
  if (mesh != last_mesh) {
    sigma = 0.005 * sqrt(mesh->Area());
    last_mesh = mesh;
  }

  // Return sigma
  return sigma;
}

// Assembly:
cmpq %rdi, 0xfddcd(%rip)     # 0x110d30
je 0x12f7e
pushq %rbx
movq %rdi, %rbx
callq 0x1fe6a
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x12f87
sqrtsd %xmm0, %xmm0
jmp 0x12f8c
movsd 0xfdda2(%rip), %xmm0    # 0x110d28
retq
callq 0x10420
mulsd 0xaf074(%rip), %xmm0    # 0xc2008
movsd %xmm0, 0xfdd8c(%rip)    # 0x110d28
movq %rbx, 0xfdd8d(%rip)     # 0x110d30
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/apps/msh2prp/msh2prp.cpp
// Function: InsertProperty(gaps::R3MeshPropertySet*, gaps::R3MeshProperty*, int)
int 
InsertProperty(R3MeshPropertySet *properties, R3MeshProperty *property, int num_blurs = 0)
{
  // Insert property
  properties->Insert(property);

  // Insert coies of property with increasing blur
  if (num_blurs > 0) {
    char buffer[4096];
    RNScalar sigma = Sigma(properties->Mesh());
    R3MeshProperty *p = property;
    for (int i = 1; i < num_blurs; i++) {
      p = new R3MeshProperty(*p);
      sprintf(buffer, "%s%d", property->Name(), i);
      p->SetName(buffer);
      p->Blur(sigma);
      properties->Insert(p);
      sigma *= 2;
    }
  }

  // Return success
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1018, %rsp           # imm = 0x1018
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
callq 0x1a3d4
movl %ebx, 0x4(%rsp)
testl %ebx, %ebx
jle 0x1309b
movq (%r15), %r12
cmpq %r12, 0xfdd57(%rip)     # 0x110d30
je 0x12ff3
movq %r12, %rdi
callq 0x1fe6a
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x12ffd
sqrtsd %xmm0, %xmm0
jmp 0x13002
movsd 0xfdd2d(%rip), %xmm0    # 0x110d28
jmp 0x13019
callq 0x10420
mulsd 0xaeffe(%rip), %xmm0    # 0xc2008
movsd %xmm0, 0xfdd16(%rip)    # 0x110d28
movq %r12, 0xfdd17(%rip)     # 0x110d30
cmpl $0x1, 0x4(%rsp)
je 0x1309b
leaq 0x8(%r14), %r12
movl $0x1, %ebp
leaq 0x10(%rsp), %r13
movsd %xmm0, 0x8(%rsp)
movq %r14, %rbx
movl $0x448, %edi            # imm = 0x448
callq 0x10550
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1be0c
movq %r13, %rdi
leaq 0xaf0e7(%rip), %rsi     # 0xc2140
movq %r12, %rdx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x10100
movq %r14, %rdi
movq %r13, %rsi
callq 0x1d8ee
movq %r14, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x1dee2
movq %r15, %rdi
movq %r14, %rsi
callq 0x1a3d4
movsd 0x8(%rsp), %xmm0
addsd %xmm0, %xmm0
incl %ebp
cmpl %ebp, 0x4(%rsp)
jne 0x1302e
movl $0x1, %eax
addq $0x1018, %rsp           # imm = 0x1018
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x448, %esi            # imm = 0x448
movq %r14, %rdi
callq 0x10560
movq %rbx, %rdi
callq 0x109e0
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/apps/msh2prp/msh2prp.cpp
// Function: Percentile(double*, int, double)
static RNScalar
Percentile(RNScalar *values, int nvalues, RNScalar percentile)
{
  // Return value at given percentile (0-100)
  if (nvalues == 0) return 0;
  RNScalar *copy = new RNScalar [ nvalues ];
  for (int i = 0; i < nvalues; i++) copy[i] = values[i];
  qsort(copy, nvalues, sizeof(RNScalar), RNCompareScalars);
  int index = (int) (percentile * nvalues / 100.0);
  if (index >= nvalues) index = nvalues-1;
  RNScalar result = copy[index];
  delete [] copy;
  return result;
}

// Assembly:
testl %esi, %esi
je 0x18c97
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r12
movsd %xmm0, (%rsp)
movslq %esi, %r15
leaq (,%r15,8), %rax
testl %esi, %esi
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x10040
movq %rax, %r14
testl %ebx, %ebx
jle 0x18c39
movl %ebx, %edx
shlq $0x3, %rdx
movq %r14, %rdi
movq %r12, %rsi
callq 0x10460
leaq 0x6639d(%rip), %rcx     # 0x7efdd
movl $0x8, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x10ab0
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
mulsd (%rsp), %xmm0
divsd 0xa9454(%rip), %xmm0    # 0xc20b8
cvttsd2si %xmm0, %eax
leal -0x1(%rbx), %ecx
cmpl %ebx, %eax
cmovll %eax, %ecx
movslq %ecx, %rax
movsd (%r14,%rax,8), %xmm0
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x10720
movsd (%rsp), %xmm0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
xorps %xmm0, %xmm0
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/marknelson[P]LZW/./lzw-d.h
// Function: lzw::output_code_stream<std::ostream>::operator<<(unsigned int const&)
void operator<<( const unsigned int &i )
    {
        m_pending_output |= i << m_pending_bits;
        m_pending_bits += m_code_size;
        flush( 8 );
        if ( m_current_code < m_max_code ) {
            m_current_code++;
            if ( m_current_code == m_next_bump ) {
                m_next_bump *= 2;
                m_code_size++;
            }
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl (%rsi), %eax
movl 0x10(%rdi), %ecx
shll %cl, %eax
orl %eax, 0x14(%rdi)
addl (%rdi), %ecx
movl %ecx, 0x10(%rdi)
movl $0x8, %esi
callq 0x346e
movl 0x18(%rbx), %eax
cmpl 0x20(%rbx), %eax
jae 0x2cc9
incl %eax
movl %eax, 0x18(%rbx)
cmpl 0x1c(%rbx), %eax
jne 0x2cc9
addl %eax, %eax
movl %eax, 0x1c(%rbx)
incl (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/marknelson[P]LZW/./lzw-d.h
// Function: lzw::output_code_stream<std::ostream>::flush(int)
void flush( const int val )
    {
        while ( m_pending_bits >= val ) {
            m_output.put( m_pending_output & 0xff );
            m_pending_output >>= 8;
            m_pending_bits -= 8;
        }
    }

// Assembly:
cmpl %esi, 0x10(%rdi)
jl 0x34ac
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
movl 0x14(%rdi), %eax
movq 0x8(%r14), %rdi
movsbl %al, %esi
callq 0x2030
movl 0x10(%r14), %ecx
movl 0x14(%r14), %eax
shrl $0x8, %eax
movl %eax, 0x14(%r14)
addl $-0x8, %ecx
movl %ecx, 0x10(%r14)
cmpl %ebx, %ecx
jge 0x3482
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/marknelson[P]LZW/./lzw-d.h
// Function: lzw::input_code_stream<std::istream>::operator>>(unsigned int&)
bool operator>>( unsigned int &i )
    {
        while ( m_available_bits < m_code_size )
        {
            char c;
            if ( !m_input.get(c) )
                return false;
            m_pending_input |= (c & 0xff) << m_available_bits;
            m_available_bits += 8;
        }
        i = m_pending_input & ~(~0 << m_code_size);
        m_pending_input >>= m_code_size;
        m_available_bits -= m_code_size;
        if ( m_current_code < m_max_code ) {
            m_current_code++;
            if ( m_current_code == m_next_bump ) {
                m_next_bump *= 2;
                m_code_size++;
            }
        }
        if ( i == EOF_CODE )
            return false;
        else
            return true;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl (%rdi), %ecx
cmpl %ecx, 0x10(%rdi)
jge 0x352f
leaq -0x19(%rbp), %r15
movq 0x8(%r14), %rdi
movq %r15, %rsi
callq 0x21b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3577
movzbl -0x19(%rbp), %edx
movl 0x10(%r14), %eax
movl %eax, %ecx
shll %cl, %edx
orl 0x14(%r14), %edx
movl %edx, 0x14(%r14)
addl $0x8, %eax
movl %eax, 0x10(%r14)
movl (%r14), %ecx
cmpl %ecx, %eax
jl 0x34f1
jmp 0x3533
movl 0x14(%r14), %edx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
shll %cl, %eax
notl %eax
andl %edx, %eax
movl %eax, (%rbx)
movl (%r14), %ecx
movl 0x18(%r14), %eax
shrl %cl, 0x14(%r14)
subl %ecx, 0x10(%r14)
cmpl 0x20(%r14), %eax
jae 0x356c
incl %eax
movl %eax, 0x18(%r14)
cmpl 0x1c(%r14), %eax
jne 0x356c
addl %eax, %eax
movl %eax, 0x1c(%r14)
incl %ecx
movl %ecx, (%r14)
cmpl $0x100, (%rbx)          # imm = 0x100
setne %al
jmp 0x3579
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Saevon[P]node-diskfree/build/../src/disk-gyp.cpp
// Function: diskfree::checkArgs(v8::FunctionCallbackInfo<v8::Value> const&)
bool checkArgs(const FunctionCallbackInfo<Value> &args) {
        Isolate *isolate = args.GetIsolate();

        // Check the args
        if (args.Length() != 2) {
            isolate->ThrowException(Exception::TypeError(
                String::NewFromUtf8(isolate, "diskPath and callback are required", NewStringType::kNormal).ToLocalChecked()
            ));
            return false;
        } else if (!args[0]->IsString()) {
            isolate->ThrowException(Exception::TypeError(
                String::NewFromUtf8(isolate, "diskPath should be a string", NewStringType::kNormal).ToLocalChecked()
            ));
            return false;
        } else if (!args[1]->IsFunction()) {
            isolate->ThrowException(Exception::TypeError(
                String::NewFromUtf8(isolate, "diskPath should be a function", NewStringType::kNormal).ToLocalChecked()
            ));
            return false;
        }

        return true;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq (%rdi), %rax
movq 0x8(%rax), %rbx
cmpl $0x2, 0x10(%rdi)
jne 0x261b
movq 0x8(%rdi), %rdi
movq (%rdi), %rax
movl %eax, %ecx
andl $0x3, %ecx
cmpl $0x1, %ecx
jne 0x2624
movq -0x1(%rax), %rax
cmpw $0x40, 0xb(%rax)
jae 0x2624
addq $-0x8, %rdi
callq 0x2050
movl %eax, %ecx
movb $0x1, %al
testb %cl, %cl
jne 0x2657
leaq 0xa72(%rip), %rsi       # 0x308b
jmp 0x262b
leaq 0xa2a(%rip), %rsi       # 0x304c
jmp 0x262b
leaq 0xa44(%rip), %rsi       # 0x306f
movq %rbx, %rdi
xorl %edx, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0x2290
movq %rax, %r14
testq %rax, %rax
je 0x265c
movq %r14, %rdi
callq 0x2220
movq %rbx, %rdi
movq %rax, %rsi
callq 0x21b0
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
callq 0x2120
jmp 0x2642
// File: /workspace/github_cpp_makefile_star2_O3/Saevon[P]node-diskfree/build/../src/disk-gyp.cpp
// Function: diskfree::DiskSpace(v8::FunctionCallbackInfo<v8::Value> const&)
void DiskSpace(const FunctionCallbackInfo<Value> &args) {
        Isolate *isolate = args.GetIsolate();

        // Check the input args
        bool shouldRun = checkArgs(args);
        if (!shouldRun) {
            return;
        }

        // Get the Args
        String::Utf8Value diskPath(isolate, args[0]);
        Local<Function> callback = Local<Function>::Cast(args[1]);

        // Copy the string into a C String (+1 or the null char)
        char *diskPathC = (char *) calloc(diskPath.length() + 1, sizeof(char));
        strcpy(diskPathC, *diskPath);

        // Store the args in a request
        reqData_t *requestData = new reqData_t();
        requestData->callback.Reset(isolate, callback);
        requestData->diskPath = diskPathC;

        // Run the worker
        uv_work_t *request = new uv_work_t();
        request->data = requestData;

        uv_queue_work(uv_default_loop(), request, &DiskSpaceWorker, &AfterDiskSpaceWorker);

        // Return to the parent early
        args.GetReturnValue().Set(Undefined(isolate));
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movq (%rdi), %rax
movq 0x8(%rax), %rbx
callq 0x2160
testb %al, %al
je 0x2788
cmpl $0x0, 0x10(%r14)
jle 0x2698
movq 0x8(%r14), %rdx
jmp 0x26a3
movq (%r14), %rax
movq 0x8(%rax), %rdx
addq $0x58, %rdx
leaq -0x38(%rbp), %rdi
movq %rbx, %rsi
callq 0x20b0
cmpl $0x1, 0x10(%r14)
jle 0x26c0
movq 0x8(%r14), %r15
addq $-0x8, %r15
jmp 0x26cb
movq (%r14), %rax
movq 0x8(%rax), %r15
addq $0x58, %r15
movslq -0x30(%rbp), %rdi
incq %rdi
movl $0x1, %esi
callq 0x21d0
movq %rax, %r13
movq -0x38(%rbp), %rsi
movq %rax, %rdi
callq 0x2150
movl $0x30, %edi
callq 0x2080
movq %rax, %r12
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
testq %r15, %r15
je 0x271a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x20d0
movq %rax, (%r12)
movq %r13, 0x8(%r12)
movl $0x80, %edi
callq 0x2080
movq %rax, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movaps %xmm0, 0x20(%rax)
movaps %xmm0, 0x30(%rax)
movaps %xmm0, 0x40(%rax)
movaps %xmm0, 0x50(%rax)
movaps %xmm0, 0x60(%rax)
movaps %xmm0, 0x70(%rax)
movq %r12, (%rax)
callq 0x2230
movq 0x286b(%rip), %rdx      # 0x4fc8
movq 0x2884(%rip), %rcx      # 0x4fe8
movq %rax, %rdi
movq %r15, %rsi
callq 0x20f0
movq (%r14), %rax
addq $0x58, %rbx
je 0x2797
movq (%rbx), %rcx
movq %rcx, 0x18(%rax)
leaq -0x38(%rbp), %rdi
callq 0x21c0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10(%rax), %rbx
jmp 0x2778
// File: /workspace/github_cpp_makefile_star2_O3/Saevon[P]node-diskfree/build/../src/disk-gyp.cpp
// Function: diskfree::checkErrorcodeArgs(v8::FunctionCallbackInfo<v8::Value> const&)
bool checkErrorcodeArgs(const FunctionCallbackInfo<Value> &args) {
        Isolate *isolate = args.GetIsolate();

        // Check the args
        if (args.Length() != 1) {
            isolate->ThrowException(Exception::TypeError(
                String::NewFromUtf8(isolate, "errno is required", NewStringType::kNormal).ToLocalChecked()
            ));
            return false;
        } else if (!args[0]->IsNumber()) {
            isolate->ThrowException(Exception::TypeError(
                String::NewFromUtf8(isolate, "errno should be a Number", NewStringType::kNormal).ToLocalChecked()
            ));
            return false;
        }

        return true;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq (%rdi), %rax
movq 0x8(%rax), %rbx
cmpl $0x1, 0x10(%rdi)
jne 0x27cb
movq 0x8(%rdi), %rdi
callq 0x2170
movl %eax, %ecx
movb $0x1, %al
testb %cl, %cl
jne 0x27fe
leaq 0x8f2(%rip), %rsi       # 0x30bb
jmp 0x27d2
leaq 0x8d7(%rip), %rsi       # 0x30a9
movq %rbx, %rdi
xorl %edx, %edx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0x2290
movq %rax, %r14
testq %rax, %rax
je 0x2803
movq %r14, %rdi
callq 0x2220
movq %rbx, %rdi
movq %rax, %rsi
callq 0x21b0
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
callq 0x2120
jmp 0x27e9
// File: /workspace/github_cpp_makefile_star2_O3/Saevon[P]node-diskfree/build/../src/disk-gyp.cpp
// Function: diskfree::checkErr(v8::FunctionCallbackInfo<v8::Value> const&, bool (*)(unsigned long))
void checkErr(const FunctionCallbackInfo<Value> &args, diskErrFunc_t errChecker) {
        Isolate *isolate = args.GetIsolate();
        Local<Context> context = isolate->GetCurrentContext();

        // Check the input args
        bool shouldRun = checkErrorcodeArgs(args);
        if (!shouldRun) {
            return;
        }

        // Get the args
        double error;
        if (args[0]->IsUndefined()) {
            error = 0;
        } else {
            error = args[0]->NumberValue(context).FromMaybe(0);
        }

        // Convert to proper type
        args.GetReturnValue().Set(
            static_cast<double>(errChecker(static_cast<uint64_t>(error)))
        );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rax
movq 0x8(%rax), %rdi
callq 0x2130
movq %rax, %r15
movq %r14, %rdi
callq 0x2110
testb %al, %al
je 0x28dc
movl 0x10(%r14), %eax
testl %eax, %eax
jle 0x2847
movq 0x8(%r14), %rcx
jmp 0x2852
movq (%r14), %rcx
movq 0x8(%rcx), %rcx
addq $0x58, %rcx
movq (%rcx), %rcx
movl %ecx, %edx
andl $0x3, %edx
cmpl $0x1, %edx
jne 0x2874
movq -0x1(%rcx), %rdx
cmpw $0x43, 0xb(%rdx)
jne 0x2874
cmpl $0x5, 0x2b(%rcx)
jne 0x2874
xorl %edi, %edi
jmp 0x28b8
testl %eax, %eax
jle 0x287e
movq 0x8(%r14), %rdi
jmp 0x2889
movq (%r14), %rax
movq 0x8(%rax), %rdi
addq $0x58, %rdi
movq %r15, %rsi
callq 0x2100
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
subsd 0x783(%rip), %xmm0      # 0x3028
cvttsd2si %xmm0, %rsi
andq %rdx, %rsi
orq %rcx, %rsi
xorl %edi, %edi
testb $0x1, %al
cmovneq %rsi, %rdi
movq (%r14), %r14
callq *%rbx
movzbl %al, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movq 0x8(%r14), %rdi
callq 0x2200
testq %rax, %rax
je 0x28e7
movq (%rax), %rax
movq %rax, 0x18(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10(%r14), %rax
jmp 0x28d5
// File: /workspace/github_cpp_makefile_star2_O3/Saevon[P]node-diskfree/build/../src/disk-gyp.cpp
// Function: diskfree::init(v8::Local<v8::Object>)
void init(Local<Object> exports) {
        NODE_SET_METHOD(exports, "check", DiskSpace);
        NODE_SET_METHOD(exports, "isErrDenied", nodeIsErrDenied);
        NODE_SET_METHOD(exports, "isErrBadPath", nodeIsErrBadPath);
        NODE_SET_METHOD(exports, "isErrIO", nodeIsErrIO);
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x7a4(%rip), %rsi       # 0x30d4
movq 0x2689(%rip), %rdx      # 0x4fc0
callq 0x22a0
leaq 0x797(%rip), %rsi       # 0x30da
movq 0x266e(%rip), %rdx      # 0x4fb8
movq %rbx, %rdi
callq 0x22a0
leaq 0x78d(%rip), %rsi       # 0x30e6
movq 0x2698(%rip), %rdx      # 0x4ff8
movq %rbx, %rdi
callq 0x22a0
leaq 0x784(%rip), %rsi       # 0x30f3
movq 0x2622(%rip), %rdx      # 0x4f98
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x22a0
// File: /workspace/github_cpp_makefile_star2_O3/fiveseven-lambda[P]michaelis-menten/a.cpp
// Function: in_polygon(Vector<short> const&, std::vector<XPoint, std::allocator<XPoint>> const&)
bool in_polygon(const Vector<short> &p, const std::vector<XPoint> &v){
	bool ret = false;
	for(std::size_t i = 0; i < v.size(); ++i){
		std::size_t j = i + 1;
		if(j == v.size()) j = 0;
		bool tmp = (p.x - v[i].x) * (v[j].y - v[i].y) < (p.y - v[i].y) * (v[j].x - v[i].x);
		if(v[i].y <= p.y && v[j].y > p.y){
			ret ^= tmp;
		}else if(v[i].y > p.y && v[j].y <= p.y){
			ret ^= !tmp;
		}
	}
	return ret;
}

// Assembly:
movq (%rsi), %rcx
movq 0x8(%rsi), %rdx
subq %rcx, %rdx
je 0x283c
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
sarq $0x2, %rdx
movswl (%rdi), %esi
movswl 0x2(%rdi), %edi
xorl %eax, %eax
cmpq $0x1, %rdx
movl $0x0, %r8d
sbbq %rdx, %r8
movl $0x1, %r9d
cmpq %r9, %rdx
movl $0x0, %ebx
cmovneq %r9, %rbx
movswl -0x4(%rcx,%r9,4), %r14d
movl %esi, %r15d
subl %r14d, %r15d
movswl 0x2(%rcx,%rbx,4), %r11d
movswl -0x2(%rcx,%r9,4), %r12d
movl %r11d, %r10d
subl %r12d, %r10d
imull %r15d, %r10d
movl %edi, %r15d
subl %r12d, %r15d
movswl (%rcx,%rbx,4), %ebx
subl %r14d, %ebx
imull %r15d, %ebx
cmpw %di, %r12w
jle 0x2807
cmpw %di, %r11w
jg 0x281e
cmpl %ebx, %r10d
setl %r10b
xorb %al, %r10b
notb %r10b
jmp 0x2817
cmpw %di, %r11w
jle 0x281e
cmpl %ebx, %r10d
setl %r10b
xorb %al, %r10b
andb $0x1, %r10b
movl %r10d, %eax
leaq (%r8,%r9), %r10
incq %r10
incq %r9
cmpq $0x1, %r10
jne 0x27ad
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x283e
xorl %eax, %eax
andb $0x1, %al
retq
// File: /workspace/github_cpp_makefile_star2_O3/sbingner[P]kerneldec/lzfse/src/lzfse_encode.c
// Function: lzfse_encode_buffer
size_t lzfse_encode_buffer(uint8_t *__restrict dst_buffer, size_t dst_size,
                           const uint8_t *__restrict src_buffer,
                           size_t src_size, void *__restrict scratch_buffer) {
  int has_malloc = 0;
  size_t ret = 0;

  // Deal with the possible NULL pointer
  if (scratch_buffer == NULL) {
    // +1 in case scratch size could be zero
    scratch_buffer = malloc(lzfse_encode_scratch_size() + 1);
    has_malloc = 1;
  }
  if (scratch_buffer == NULL)
    return 0;
  ret = lzfse_encode_buffer_with_scratch(dst_buffer, 
                        dst_size, src_buffer, 
                        src_size, scratch_buffer);
  if (has_malloc)
    free(scratch_buffer);
  return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
testq %r8, %r8
je 0x3870
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x3687
callq 0x704b
cmpq $0xa7161, %rax          # imm = 0xA7161
movl $0xa7160, %edi          # imm = 0xA7160
cmovaeq %rax, %rdi
incq %rdi
callq 0x30d0
testq %rax, %rax
je 0x38b8
movq %rax, %r13
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
movq %rax, %r8
callq 0x3687
movq %rax, %rbx
movq %r13, %rdi
callq 0x3030
movq %rbx, %rax
jmp 0x38ba
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/sbingner[P]kerneldec/lzfse/src/lzfse_decode.c
// Function: lzfse_decode_buffer_with_scratch
size_t lzfse_decode_buffer_with_scratch(uint8_t *__restrict dst_buffer, 
                         size_t dst_size, const uint8_t *__restrict src_buffer,
                         size_t src_size, void *__restrict scratch_buffer) {
  lzfse_decoder_state *s = (lzfse_decoder_state *)scratch_buffer;
  memset(s, 0x00, sizeof(*s));

  // Initialize state
  s->src = src_buffer;
  s->src_begin = src_buffer;
  s->src_end = s->src + src_size;
  s->dst = dst_buffer;
  s->dst_begin = dst_buffer;
  s->dst_end = dst_buffer + dst_size;

  // Decode
  int status = lzfse_decode(s);
  if (status == LZFSE_STATUS_DST_FULL)
    return dst_size;
  if (status != LZFSE_STATUS_OK)
    return 0;                           // failed
  return (size_t)(s->dst - dst_buffer); // bytes written
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r8, %r14
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x30(%r8), %rdi
movl $0xb8f0, %edx           # imm = 0xB8F0
xorl %esi, %esi
callq 0x3080
movq %r13, (%r14)
movq %r13, 0x8(%r14)
addq %r13, %r12
movq %r12, 0x10(%r14)
movq %r15, 0x18(%r14)
movq %r15, 0x20(%r14)
leaq (%r15,%rbx), %rax
movq %rax, 0x28(%r14)
movq %r14, %rdi
callq 0x532c
cmpl $-0x2, %eax
je 0x392c
testl %eax, %eax
jne 0x392a
movq 0x18(%r14), %rbx
subq %r15, %rbx
jmp 0x392c
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/sbingner[P]kerneldec/lzfse/src/lzfse_decode.c
// Function: lzfse_decode_buffer
size_t lzfse_decode_buffer(uint8_t *__restrict dst_buffer, size_t dst_size,
                           const uint8_t *__restrict src_buffer,
                           size_t src_size, void *__restrict scratch_buffer) {
  int has_malloc = 0;
  size_t ret = 0;

  // Deal with the possible NULL pointer
  if (scratch_buffer == NULL) {
    // +1 in case scratch size could be zero
    scratch_buffer = malloc(lzfse_decode_scratch_size() + 1);
    has_malloc = 1;
  }
  if (scratch_buffer == NULL)
    return 0;
  ret = lzfse_decode_buffer_with_scratch(dst_buffer, 
                               dst_size, src_buffer, 
                               src_size, scratch_buffer);
  if (has_malloc)
    free(scratch_buffer);
  return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
testq %r8, %r8
je 0x3bc8
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x38ca
movl $0xb921, %edi           # imm = 0xB921
callq 0x30d0
testq %rax, %rax
je 0x3bfe
movq %rax, %r13
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
movq %rax, %r8
callq 0x38ca
movq %rax, %rbx
movq %r13, %rdi
callq 0x3030
movq %rbx, %rax
jmp 0x3c00
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/sbingner[P]kerneldec/lzfse/src/lzfse_decode.c
// Function: lzfse_decode_file
size_t lzfse_decode_file(FILE *dst_file, FILE *src_file, size_t src_size,
                         int *error, void *__restrict scratch_buffer) {
  int has_malloc = 0;
  size_t ret = 0;

  // Deal with the possible NULL pointer
  if (scratch_buffer == NULL) {
    // +1 in case scratch size could be zero
    scratch_buffer = malloc(lzfse_decode_scratch_size() + 1);
    has_malloc = 1;
  }
  if (scratch_buffer == NULL) {
    if (error != NULL) *error = 1;
    return 0;
  }
  ret = lzfse_decode_file_with_scratch(dst_file, src_file, src_size, error, scratch_buffer);
  if (has_malloc)
    free(scratch_buffer);
  return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
testq %r8, %r8
je 0x3c3e
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x3939
movl $0xb921, %edi           # imm = 0xB921
callq 0x30d0
testq %rax, %rax
je 0x3c74
movq %rax, %r13
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
movq %rax, %r8
callq 0x3939
movq %rax, %rbx
movq %r13, %rdi
callq 0x3030
movq %rbx, %rax
jmp 0x3c81
testq %rbx, %rbx
je 0x3c7f
movl $0x1, (%rbx)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/sbingner[P]kerneldec/lzfse/src/lzfse_encode_base.c
// Function: lzfse_encode_init
int lzfse_encode_init(lzfse_encoder_state *s) {
  const lzfse_match NO_MATCH = {0};
  lzfse_history_set line;
  for (int i = 0; i < LZFSE_ENCODE_HASH_WIDTH; i++) {
    line.pos[i] = -4 * LZFSE_ENCODE_MAX_D_VALUE; // invalid pos
    line.value[i] = 0;
  }
  // Fill table
  for (int i = 0; i < LZFSE_ENCODE_HASH_VALUES; i++)
    s->history_table[i] = line;
  s->pending = NO_MATCH;
  s->src_literal = 0;

  return LZFSE_STATUS_OK; // OK
}

// Assembly:
xorl %eax, %eax
movaps 0x5ddb(%rip), %xmm0     # 0x9a70
xorps %xmm1, %xmm1
movups %xmm0, 0x27160(%rdi,%rax)
movups %xmm1, 0x27170(%rdi,%rax)
addq $0x20, %rax
cmpq $0x80000, %rax          # imm = 0x80000
jne 0x3c98
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rdi)
xorl %eax, %eax
movq %rax, 0x50(%rdi)
movq %rax, 0x10(%rdi)
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/sbingner[P]kerneldec/lzfse/src/lzfse_encode_base.c
// Function: lzfse_encode_translate
int lzfse_encode_translate(lzfse_encoder_state *s, lzfse_offset delta) {
  assert(delta >= 0);
  if (delta == 0)
    return LZFSE_STATUS_OK; // OK

  // SRC
  s->src += delta;

  // Offsets in SRC
  s->src_end -= delta;
  s->src_encode_i -= delta;
  s->src_encode_end -= delta;
  s->src_literal -= delta;

  // Pending match
  s->pending.pos -= delta;
  s->pending.ref -= delta;

  // history_table positions, translated, and clamped to invalid pos
  int32_t invalidPos = -4 * LZFSE_ENCODE_MAX_D_VALUE;
  for (int i = 0; i < LZFSE_ENCODE_HASH_VALUES; i++) {
    int32_t *p = &(s->history_table[i].pos[0]);
    for (int j = 0; j < LZFSE_ENCODE_HASH_WIDTH; j++) {
      lzfse_offset newPos = p[j] - delta; // translate
      p[j] = (int32_t)((newPos < invalidPos) ? invalidPos : newPos); // clamp
    }
  }

  return LZFSE_STATUS_OK; // OK
}

// Assembly:
testq %rsi, %rsi
js 0x3dea
je 0x3de7
addq %rsi, (%rdi)
movdqu 0x8(%rdi), %xmm1
movdqu 0x18(%rdi), %xmm2
movdqu 0x40(%rdi), %xmm3
movq %rsi, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
psubq %xmm0, %xmm2
movdqu %xmm2, 0x18(%rdi)
psubq %xmm0, %xmm1
movdqu %xmm1, 0x8(%rdi)
psubq %xmm0, %xmm3
movdqu %xmm3, 0x40(%rdi)
xorl %eax, %eax
movdqa 0x5d68(%rip), %xmm1     # 0x9a80
movdqa 0x5d70(%rip), %xmm2     # 0x9a90
pshufd $0xf5, %xmm2, %xmm3     # xmm3 = xmm2[1,1,3,3]
movdqa 0x5d73(%rip), %xmm4     # 0x9aa0
movdqu 0x27160(%rdi,%rax), %xmm6
pxor %xmm7, %xmm7
pcmpgtd %xmm6, %xmm7
pshufd $0xee, %xmm6, %xmm5     # xmm5 = xmm6[2,3,2,3]
punpckldq %xmm7, %xmm6    # xmm6 = xmm6[0],xmm7[0],xmm6[1],xmm7[1]
pxor %xmm7, %xmm7
pcmpgtd %xmm5, %xmm7
punpckldq %xmm7, %xmm5    # xmm5 = xmm5[0],xmm7[0],xmm5[1],xmm7[1]
psubq %xmm0, %xmm5
psubq %xmm0, %xmm6
movdqa %xmm6, %xmm7
pxor %xmm1, %xmm7
pshufd $0xf5, %xmm7, %xmm8     # xmm8 = xmm7[1,1,3,3]
pcmpeqd %xmm3, %xmm8
pcmpgtd %xmm2, %xmm7
pshufd $0xa0, %xmm7, %xmm9     # xmm9 = xmm7[0,0,2,2]
pand %xmm8, %xmm9
pshufd $0xf5, %xmm7, %xmm7     # xmm7 = xmm7[1,1,3,3]
por %xmm9, %xmm7
pand %xmm7, %xmm6
pandn %xmm4, %xmm7
por %xmm6, %xmm7
movdqa %xmm5, %xmm6
pxor %xmm1, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pcmpeqd %xmm3, %xmm8
pcmpgtd %xmm2, %xmm6
pshufd $0xa0, %xmm6, %xmm9     # xmm9 = xmm6[0,0,2,2]
pand %xmm8, %xmm9
pshufd $0xf5, %xmm6, %xmm6     # xmm6 = xmm6[1,1,3,3]
por %xmm9, %xmm6
pand %xmm6, %xmm5
pandn %xmm4, %xmm6
por %xmm5, %xmm6
shufps $0x88, %xmm6, %xmm7     # xmm7 = xmm7[0,2],xmm6[0,2]
movups %xmm7, 0x27160(%rdi,%rax)
addq $0x20, %rax
cmpq $0x80000, %rax          # imm = 0x80000
jne 0x3d2d
xorl %eax, %eax
retq
pushq %rax
leaq 0x574b(%rip), %rdi      # 0x953d
leaq 0x574f(%rip), %rsi      # 0x9548
leaq 0x5760(%rip), %rcx      # 0x9560
movl $0x262, %edx            # imm = 0x262
callq 0x3070
// File: /workspace/github_cpp_makefile_star2_O3/sbingner[P]kerneldec/lzfse/src/lzfse_encode_base.c
// Function: lzfse_backend_match
static int lzfse_backend_match(lzfse_encoder_state *s,
                               const lzfse_match *match) {
  // Try to push the match in state
  if (lzfse_push_match(s, match) == LZFSE_STATUS_OK)
    return LZFSE_STATUS_OK; // OK, match added to state

  // Here state tables are full, try to emit block
  if (lzfse_encode_matches(s) != LZFSE_STATUS_OK)
    return LZFSE_STATUS_DST_FULL; // DST full, match not added

  // Here block has been emitted, re-try to push the match in state
  return lzfse_push_match(s, match);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x421e
testl %eax, %eax
je 0x4174
movq %r14, %rdi
callq 0x4542
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0x4176
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x421e
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/sbingner[P]kerneldec/lzfse/src/lzfse_encode_base.c
// Function: lzfse_encode_finish
int lzfse_encode_finish(lzfse_encoder_state *s) {
  const lzfse_match NO_MATCH = {0};

  // Emit pending match
  if (s->pending.length > 0) {
    if (lzfse_backend_match(s, &s->pending) != LZFSE_STATUS_OK)
      return LZFSE_STATUS_DST_FULL;
    s->pending = NO_MATCH;
  }

  // Emit final literals if any
  lzfse_offset L = s->src_end - s->src_literal;
  if (L > 0) {
    if (lzfse_backend_literals(s, L) != LZFSE_STATUS_OK)
      return LZFSE_STATUS_DST_FULL;
  }

  // Emit all matches, and end-of-stream block
  if (lzfse_backend_end_of_stream(s) != LZFSE_STATUS_OK)
    return LZFSE_STATUS_DST_FULL;

  return LZFSE_STATUS_OK;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
cmpl $0x0, 0x50(%rdi)
je 0x41b7
leaq 0x40(%rbx), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x413c
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0x4216
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq $0x0, 0x10(%r14)
movq 0x8(%rbx), %rax
cmpq 0x10(%rbx), %rax
jle 0x41e8
movq %rsp, %rsi
movq %rax, (%rsi)
decq %rax
movq %rax, 0x8(%rsi)
movl $0x0, 0x10(%rsi)
movq %rbx, %rdi
callq 0x413c
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0x4216
movq %rbx, %rdi
callq 0x4542
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0x4216
movq 0x28(%rbx), %rcx
leaq 0x4(%rcx), %rdx
cmpq 0x38(%rbx), %rdx
ja 0x4216
movl $0x24787662, (%rcx)     # imm = 0x24787662
addq $0x4, 0x28(%rbx)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/sbingner[P]kerneldec/lzfse/src/lzfse_fse.c
// Function: fse_init_encoder_table
void fse_init_encoder_table(int nstates, int nsymbols,
                            const uint16_t *__restrict freq,
                            fse_encoder_entry *__restrict t) {
  int offset = 0; // current offset
  int n_clz = __builtin_clz(nstates);
  for (int i = 0; i < nsymbols; i++) {
    int f = (int)freq[i];
    if (f == 0)
      continue; // skip this symbol, no occurrences
    int k =
        __builtin_clz(f) - n_clz; // shift needed to ensure N <= (F<<K) < 2*N
    t[i].s0 = (int16_t)((f << k) - nstates);
    t[i].k = (int16_t)k;
    t[i].delta0 = (int16_t)(offset - f + (nstates >> k));
    t[i].delta1 = (int16_t)(offset - f + (nstates >> (k - 1)));
    offset += f;
  }
}

// Assembly:
testl %esi, %esi
jle 0x772f
pushq %rbp
pushq %r14
pushq %rbx
movq %rcx, %rax
bsrl %edi, %r8d
xorl $0x1f, %r8d
movl %esi, %esi
xorl %r9d, %r9d
xorl %r10d, %r10d
movzwl (%rdx,%r9,2), %r11d
testl %r11d, %r11d
je 0x7723
bsrl %r11d, %ecx
xorl $0x1f, %ecx
subl %r8d, %ecx
movl %r11d, %ebx
shll %cl, %ebx
subl %edi, %ebx
movw %bx, (%rax,%r9,8)
movw %cx, 0x2(%rax,%r9,8)
movl %r10d, %ebx
movl %edi, %ebp
sarl %cl, %ebp
subl %r11d, %ebx
addl %ebx, %ebp
decl %ecx
movl %edi, %r14d
sarl %cl, %r14d
movw %bp, 0x4(%rax,%r9,8)
addl %ebx, %r14d
movw %r14w, 0x6(%rax,%r9,8)
addl %r11d, %r10d
incq %r9
cmpq %r9, %rsi
jne 0x76d7
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/sbingner[P]kerneldec/lzfse/src/lzfse_fse.c
// Function: fse_init_decoder_table
int fse_init_decoder_table(int nstates, int nsymbols,
                           const uint16_t *__restrict freq,
                           int32_t *__restrict t) {
  assert(nsymbols <= 256);
  assert(fse_check_freq(freq, nsymbols, nstates) == 0);
  int n_clz = __builtin_clz(nstates);
  int sum_of_freq = 0;
  for (int i = 0; i < nsymbols; i++) {
    int f = (int)freq[i];
    if (f == 0)
      continue; // skip this symbol, no occurrences

    sum_of_freq += f;

    if (sum_of_freq > nstates) {
      return -1;
    }

    int k =
        __builtin_clz(f) - n_clz; // shift needed to ensure N <= (F<<K) < 2*N
    int j0 = ((2 * nstates) >> k) - f;

    // Initialize all states S reached by this symbol: OFFSET <= S < OFFSET + F
    for (int j = 0; j < f; j++) {
      fse_decoder_entry e;

      e.symbol = (uint8_t)i;
      if (j < j0) {
        e.k = (int8_t)k;
        e.delta = (int16_t)(((f + j) << k) - nstates);
      } else {
        e.k = (int8_t)(k - 1);
        e.delta = (int16_t)((j - j0) << (k - 1));
      }

      memcpy(t, &e, sizeof(e));
      t++;
    }
  }

  return 0; // OK
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x101, %esi            # imm = 0x101
jge 0x7827
testl %esi, %esi
je 0x7816
movq %rcx, %rax
movslq %edi, %rcx
movl %esi, %r9d
xorl %r8d, %r8d
xorl %r10d, %r10d
movzwl (%rdx,%r8,2), %r11d
addq %r11, %r10
incq %r8
cmpq %r8, %r9
jne 0x775e
cmpq %rcx, %r10
ja 0x7846
testl %esi, %esi
jle 0x7816
bsrl %edi, %r10d
xorl $0x1f, %r10d
leal (%rdi,%rdi), %ecx
movl %ecx, 0x4(%rsp)
xorl %ebx, %ebx
movb $0x1, %cl
xorl %ebp, %ebp
movzwl (%rdx,%rbx,2), %r14d
testl %r14d, %r14d
je 0x7801
addl %r14d, %ebp
cmpl %edi, %ebp
jg 0x780c
bsrl %r14d, %esi
xorl $0x1f, %esi
subl %r10d, %esi
movl 0x4(%rsp), %r15d
movl %esi, %ecx
sarl %cl, %r15d
leal -0x1(%rsi), %r8d
movl %r14d, %r12d
subl %r15d, %r12d
subl %r14d, %r15d
xorl %r13d, %r13d
cmpl %r15d, %r13d
jge 0x77de
leal (%r14,%r13), %r11d
movl %esi, %ecx
shll %cl, %r11d
subl %edi, %r11d
movl %esi, %ecx
jmp 0x77eb
leal (%r12,%r13), %r11d
movl %r8d, %ecx
shll %cl, %r11d
movl %r8d, %ecx
movb %cl, (%rax)
movb %bl, 0x1(%rax)
movw %r11w, 0x2(%rax)
addq $0x4, %rax
incl %r13d
cmpl %r13d, %r14d
jne 0x77c9
incq %rbx
cmpq %r9, %rbx
setb %cl
jne 0x7794
movzbl %cl, %eax
andl $0x1, %eax
negl %eax
jmp 0x7818
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2105(%rip), %rdi      # 0x9933
leaq 0x210e(%rip), %rsi      # 0x9943
leaq 0x2117(%rip), %rcx      # 0x9953
movl $0x3c, %edx
callq 0x3070
leaq 0x2158(%rip), %rdi      # 0x99a5
leaq 0x20ef(%rip), %rsi      # 0x9943
leaq 0x20f8(%rip), %rcx      # 0x9953
movl $0x3d, %edx
callq 0x3070