LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/hinrikHelga[P]Botnet/client.cpp
// Function: listenServer(int)
void listenServer(int serverSocket)
{
    int nread;                                  // Bytes read from socket
    char buffer[1025];                          // Buffer for reading input

    while(true)
    {
       memset(buffer, 0, sizeof(buffer));
       nread = read(serverSocket, buffer, sizeof(buffer));

       if(nread < 0)                      // Server has dropped us
       {
          printf("Over and Out\n");
          exit(0);
       }
       else if(nread > 0)
       {

          printf("%s\n", buffer);
       }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x410, %rsp            # imm = 0x410
movl %edi, %ebx
leaq -0x420(%rbp), %r14
movl $0x401, %edx            # imm = 0x401
movq %r14, %rdi
xorl %esi, %esi
callq 0x1090
movl $0x401, %edx            # imm = 0x401
movl %ebx, %edi
movq %r14, %rsi
callq 0x1120
testl %eax, %eax
js 0x1301
je 0x12d3
movq %r14, %rdi
callq 0x1140
jmp 0x12d3
leaq 0xd9d(%rip), %rdi       # 0x20a5
callq 0x1140
xorl %edi, %edi
callq 0x1100
// File: /workspace/github_cpp_makefile_star2_O2/maclellant[P]ReliableGoBackN/./timers.h
// Function: diff(timespec const&, timespec const&)
timespec diff(const timespec& start, const timespec& end)
{
	timespec temp;
	if ((end.tv_nsec-start.tv_nsec) < 0)
	{
		temp.tv_sec = end.tv_sec-start.tv_sec - 1;
		temp.tv_nsec = NANO_PER_SEC + end.tv_nsec - start.tv_nsec;
	}
	else
	{
		temp.tv_sec = end.tv_sec-start.tv_sec;
		temp.tv_nsec = end.tv_nsec-start.tv_nsec;
	}
	return temp;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rsi), %rax
movq 0x8(%rsi), %rcx
movq (%rdi), %rsi
movq 0x8(%rdi), %rdi
movq %rcx, %rdx
subq %rdi, %rdx
js 0x241b
subq %rsi, %rax
jmp 0x242e
notq %rsi
addq %rsi, %rax
subq %rdi, %rcx
addq $0x3b9aca00, %rcx       # imm = 0x3B9ACA00
movq %rcx, %rdx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/maclellant[P]ReliableGoBackN/server.cpp
// Function: packet_string[abi:cxx11](Packet&)
std::string packet_string(Packet& packet)
{
    char temp[PACKET_SIZE];
    memset(temp, '\0', PACKET_SIZE);
    memcpy(temp, packet.data(), packet.size());
    std::string result(temp);
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x220(%rbp), %r15
movl $0x200, %edx            # imm = 0x200
movq %r15, %rdi
xorl %esi, %esi
callq 0x2110
movzwl 0x4(%rbx), %edx
addq $0x6, %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2160
leaq -0x19(%rbp), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x32c4
movq %r14, %rax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/maclellant[P]ReliableGoBackN/server.cpp
// Function: packet_string[abi:cxx11](Packet&, unsigned long)
std::string packet_string(Packet& packet, size_t size)
{
    size_t amount = packet.size();
    if (amount > size)
        amount = size;
    char temp[PACKET_SIZE];
    memset(temp, '\0', PACKET_SIZE);
    memcpy(temp, packet.data(), amount);
    std::string result(temp);
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x210, %rsp            # imm = 0x210
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movzwl 0x4(%rsi), %eax
cmpq %rdx, %rax
cmovbq %rax, %r14
leaq -0x230(%rbp), %r12
movl $0x200, %edx            # imm = 0x200
movq %r12, %rdi
xorl %esi, %esi
callq 0x2110
addq $0x6, %r15
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2160
leaq -0x21(%rbp), %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x32c4
movq %rbx, %rax
addq $0x210, %rsp            # imm = 0x210
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/maclellant[P]ReliableGoBackN/server.cpp
// Function: receive_success_msg(int, sockaddr_in)
void receive_success_msg(int sockfd, struct sockaddr_in client_addr)
{
    Packet received;
    struct sockaddr_in client_rec;
    socklen_t slen_rec = sizeof(client_addr);
    Timer final_timer = Timer();
    final_timer.start();

    while (1)
    {
        if (final_timer.timeout(SERVER_CLOSE_TIMEOUT_MSEC))
        {
            break;
        }
        int receiver = recvfrom(sockfd, received.buffer, PACKET_SIZE, 0, (struct sockaddr*)&client_rec, &slen_rec);
        if (receiver < 0)
        {          
            if (errno == EWOULDBLOCK)
            {
                errno = 0;
            }
            else
            {
                std::cerr << "Error: Could not receive from client" << std::endl;
                close(sockfd);
                exit(EXIT_FAILURE);
            }
        }
        else if (receiver > 0)
        {
            if (received.type() == GET)
            {
                break;
            }
        }
    }

    std::cout << "FINISHED: Successful GET command completed" << std::endl << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movl %edi, %ebx
leaq -0x250(%rbp), %r14
movq %r14, %rdi
callq 0x37f4
leaq -0x2c(%rbp), %r15
movl $0x10, (%r15)
xorps %xmm0, %xmm0
leaq -0x40(%rbp), %r12
movaps %xmm0, (%r12)
movq %r12, %rdi
callq 0x33ca
leaq -0x50(%rbp), %r13
movq %r12, %rdi
movl $0x7d0, %esi            # imm = 0x7D0
callq 0x337a
testb %al, %al
jne 0x2d09
movl $0x200, %edx            # imm = 0x200
movl %ebx, %edi
movq %r14, %rsi
xorl %ecx, %ecx
movq %r13, %r8
movq %r15, %r9
callq 0x2140
testl %eax, %eax
js 0x2cfa
je 0x2cc1
cmpb $0x2, -0x250(%rbp)
jne 0x2cc1
jmp 0x2d09
callq 0x2030
cmpl $0xb, (%rax)
jne 0x2d3e
andl $0x0, (%rax)
jmp 0x2cc1
movq 0x32b8(%rip), %rdi      # 0x5fc8
leaq 0x1532(%rip), %rsi      # 0x4249
callq 0x21b0
movq %rax, %rdi
callq 0x20f0
movq %rax, %rdi
callq 0x20f0
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x32ab(%rip), %rdi      # 0x5ff0
leaq 0x14aa(%rip), %rsi      # 0x41f6
callq 0x21b0
movq %rax, %rdi
callq 0x20f0
movl %ebx, %edi
callq 0x22b0
pushq $0x1
popq %rdi
callq 0x2200
// File: /workspace/github_cpp_makefile_star2_O2/maclellant[P]ReliableGoBackN/server.cpp
// Function: send_packet(int, sockaddr_in, Packet&, GremlinInfo&)
int send_packet(int sockfd, struct sockaddr_in client_addr, Packet& packet, GremlinInfo& info)
{
    int result = gremlin(packet.data(), info.corrupt_chance, info.loss_chance, info.delay_chance);
    if (result == FINE)
    {
        std::cout << "SENDING: sequence " << (int)packet.sequence() << "\n";
        std::cout << "DATA:\n";
        std::cout << packet_string(packet, 48);
        std::cout << "\n\n";
        if (sendto(sockfd, packet.buffer, PACKET_SIZE, 0, (struct sockaddr*) &client_addr, sizeof(client_addr)) == -1)
        {
            std::cerr << "Error: could not send packet to client" << std::endl;
            close(sockfd);
            exit(EXIT_FAILURE);
        }
    }

    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %r14
movl %edi, %ebx
movq %rsi, -0x38(%rbp)
movq %rdx, -0x30(%rbp)
leaq 0x6(%rcx), %rdi
movl 0x8(%r8), %esi
movl (%r8), %ecx
movl 0x4(%r8), %edx
callq 0x3039
movl %eax, %r15d
testl %eax, %eax
jne 0x2fe9
movq 0x3071(%rip), %r12      # 0x5fc8
leaq 0x122e(%rip), %rsi      # 0x418c
movq %r12, %rdi
callq 0x21b0
movzbl 0x1(%r14), %esi
movq %rax, %rdi
callq 0x2270
leaq 0x11ca(%rip), %rsi      # 0x4144
movq %rax, %rdi
callq 0x21b0
leaq 0x1216(%rip), %rsi      # 0x419f
movq %r12, %rdi
callq 0x21b0
leaq -0x58(%rbp), %r13
pushq $0x30
popq %rdx
movq %r13, %rdi
movq %r14, %rsi
callq 0x24a0
movq %r12, %rdi
movq %r13, %rsi
callq 0x2190
leaq -0x58(%rbp), %rdi
callq 0x20e0
movq 0x300a(%rip), %rdi      # 0x5fc8
leaq 0x117e(%rip), %rsi      # 0x4143
callq 0x21b0
leaq -0x38(%rbp), %r8
pushq $0x10
popq %r9
movl $0x200, %edx            # imm = 0x200
movl %ebx, %edi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x2050
cmpq $-0x1, %rax
je 0x2ffb
movl %r15d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2fee(%rip), %rdi      # 0x5ff0
leaq 0x119d(%rip), %rsi      # 0x41a6
callq 0x21b0
movq %rax, %rdi
callq 0x20f0
movl %ebx, %edi
callq 0x22b0
pushq $0x1
popq %rdi
callq 0x2200
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20e0
movq %rbx, %rdi
callq 0x2280
// File: /workspace/github_cpp_makefile_star2_O2/maclellant[P]ReliableGoBackN/./timers.h
// Function: Timer::timeout(unsigned int)
bool timeout(unsigned int milli_timeout)
	{
		timespec end;
		clock_gettime(CLOCK_REALTIME, &end);
		nano_t nano_timeout = (nano_t)milli_timeout * NANO_PER_MILLI;

		if (nano_convert(diff(_start, end)) > nano_timeout)
			return true;

		return false;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %esi, %ebx
movq %rdi, %r14
leaq -0x28(%rbp), %r15
xorl %edi, %edi
movq %r15, %rsi
callq 0x21a0
movl %ebx, %eax
imulq $0xf4240, %rax, %rbx    # imm = 0xF4240
movq %r14, %rdi
movq %r15, %rsi
callq 0x23fc
imulq $0x3b9aca00, %rax, %rax # imm = 0x3B9ACA00
addq %rdx, %rax
cmpq %rbx, %rax
seta %al
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/maclellant[P]ReliableGoBackN/util.cpp
// Function: Packet::Packet(unsigned char, unsigned char)
Packet::Packet(uint8_t sequence, uint8_t type)
{
	bzero(buffer, PACKET_SIZE);

	char* segment = (char*)(buffer + 6);
	uint16_t* size = (uint16_t*)(buffer + 4);
	uint16_t* chksum = (uint16_t*)(buffer + 2);
	uint8_t* seq = (uint8_t*)(buffer + 1);
	uint8_t* packet_type = (uint8_t*)(buffer + 0);

	*size = 0;
	*seq = sequence;
	*packet_type = type;
	*chksum = calc_checksum(segment, (uint16_t)*size);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebx
movl %esi, %r14d
movq %rdi, %r15
leaq 0x6(%rdi), %r12
addq $0x2, %rdi
movl $0x1fe, %edx            # imm = 0x1FE
xorl %esi, %esi
callq 0x2110
movb %r14b, 0x1(%r15)
movb %bl, (%r15)
movq %r12, %rdi
xorl %esi, %esi
callq 0x3840
movw %ax, 0x2(%r15)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/maclellant[P]ReliableGoBackN/util.cpp
// Function: Packet::Packet(char*, unsigned short, unsigned char, unsigned char)
Packet::Packet(char* segment, uint16_t length, uint8_t sequence, uint8_t type)
{
	char* pack = (char*)(buffer + 6);
	uint16_t* size = (uint16_t*)(buffer + 4);
	uint16_t* chksum = (uint16_t*)(buffer + 2);
	uint8_t* seq = (uint8_t*)(buffer + 1);
	uint8_t* packet_type = (uint8_t*)(buffer + 0);

	bzero(buffer, PACKET_SIZE);
	memcpy(pack, segment, length);
	*size = length;
	*seq = sequence;
	*packet_type = type;
	*chksum = calc_checksum(pack, (uint16_t)*size);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, -0x30(%rbp)
movl %ecx, -0x2c(%rbp)
movl %edx, %r12d
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x6(%rdi), %r14
movl $0x200, %edx            # imm = 0x200
xorl %esi, %esi
callq 0x2110
movl %r12d, %r15d
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x2160
movw %r12w, 0x4(%rbx)
movl -0x2c(%rbp), %eax
movb %al, 0x1(%rbx)
movl -0x30(%rbp), %eax
movb %al, (%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3840
movw %ax, 0x2(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/joncampbell123[P]floppytools/kryocomm.cpp
// Function: kryoflux_bits_refill(flux_bits&, kryoflux_event&, _IO_FILE*)
bool kryoflux_bits_refill(flux_bits &fb,struct kryoflux_event &ev,FILE *fp) {
    while (fb.avail() <= 24) {
        if (!kryoflux_read(ev,fp))
            return false;

        if (ev.message == MSG_FLUX) {
            long len;

            len = ((((long)ev.flux_interval - (long)fb.shortest) + (long)(fb.dist / 2l)) / (long)fb.dist) + 1l;
            if (len < 1) len = 1;
            if (len > 8) len = 8;

            fb.add((unsigned int)len);
        }
    }

    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
pushq $0x7
popq %r12
movl 0x4(%r15), %r13d
cmpl $0x18, %r13d
ja 0x3c03
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3a28
testb %al, %al
je 0x3c03
cmpb $0x1, 0x4(%r14)
jne 0x3bab
movl (%r14), %ecx
movl 0x8(%r15), %eax
movl 0xc(%r15), %esi
subq %rax, %rcx
movl %esi, %eax
shrl %eax
addq %rcx, %rax
cqto
idivq %rsi
testq %rax, %rax
jg 0x3bec
xorl %eax, %eax
cmpq $0x7, %rax
jl 0x3bf5
movq %r12, %rax
incl %eax
movq %r15, %rdi
movl %eax, %esi
callq 0x3c24
jmp 0x3bab
cmpl $0x19, %r13d
setae %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/joncampbell123[P]floppytools/kryocomm.cpp
// Function: flux_bits::add(unsigned int)
void flux_bits::add(unsigned int len) {
    if (len != 0) {
        left  += len;
        if (left > (sizeof(unsigned int) * 8u)) fprintf(stderr,"flux_bits::add() overrun\n");
        bits <<= len;
        bits  += 1u << (len - 1u);
    }
}

// Assembly:
testl %esi, %esi
je 0x3c5c
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
movl 0x4(%rdi), %eax
addl %esi, %eax
movl %eax, 0x4(%rdi)
cmpl $0x21, %eax
jae 0x3c5d
movl (%rbx), %eax
movl %r14d, %ecx
shll %cl, %eax
decb %r14b
pushq $0x1
popq %rdx
movl %r14d, %ecx
shll %cl, %edx
addl %eax, %edx
movl %edx, (%rbx)
popq %rbx
popq %r14
popq %rbp
retq
movq 0x437c(%rip), %rax      # 0x7fe0
movq (%rax), %rcx
leaq 0x18f2(%rip), %rdi      # 0x5560
pushq $0x19
popq %rsi
pushq $0x1
popq %rdx
callq 0x2240
jmp 0x3c42
nop
// File: /workspace/github_cpp_makefile_star2_O2/joncampbell123[P]floppytools/kryocomm.cpp
// Function: flux_bits::peek(unsigned int) const
unsigned int flux_bits::peek(unsigned int bc) const {
    if (left >= bc)
        return (bits >> (left-bc)) & ((1u << bc) - 1u);

    fprintf(stderr,"flux_bits::peek() overrun\n");
    return 0;
}

// Assembly:
movl 0x4(%rdi), %ecx
subl %esi, %ecx
jb 0x3c9d
movl (%rdi), %edx
shrl %cl, %edx
pushq $-0x1
popq %rax
movl %esi, %ecx
shll %cl, %eax
notl %eax
andl %edx, %eax
retq
pushq %rbp
movq %rsp, %rbp
movq 0x4338(%rip), %rax      # 0x7fe0
movq (%rax), %rcx
leaq 0x18c8(%rip), %rdi      # 0x557a
pushq $0x1a
popq %rsi
pushq $0x1
popq %rdx
callq 0x2240
xorl %eax, %eax
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/joncampbell123[P]floppytools/kryocomm.cpp
// Function: flux_bits::get(unsigned int)
unsigned int flux_bits::get(unsigned int bc) {
    if (left >= bc) {
        unsigned int r = peek(bc);
        left -= bc;
        return r;
    }
    else {
        fprintf(stderr,"flux_bits::get() overrun\n");
    }

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
cmpl %esi, 0x4(%rdi)
jb 0x3ce1
movl %esi, %ebx
movq %rdi, %r14
callq 0x3c86
subl %ebx, 0x4(%r14)
popq %rbx
popq %r14
popq %rbp
retq
movq 0x42f8(%rip), %rax      # 0x7fe0
movq (%rax), %rcx
leaq 0x18a3(%rip), %rdi      # 0x5595
pushq $0x19
popq %rsi
pushq $0x1
popq %rdx
callq 0x2240
xorl %eax, %eax
jmp 0x3cdc
// File: /workspace/github_cpp_makefile_star2_O2/joncampbell123[P]floppytools/kryocomm.cpp
// Function: flux_bits_mfm_decode_bit(flux_bits&, kryoflux_event&, _IO_FILE*)
int flux_bits_mfm_decode_bit(struct flux_bits &fb,struct kryoflux_event &ev,FILE *fp) {
    unsigned int raw,bit;

    if (fb.avail() < 2) {
        if (!kryoflux_bits_refill(fb,ev,fp))
            return -1;
    }

    raw = fb.peek(2);
    if (raw == 1/*01*/) {
        bit = 1;
    }
    else if (raw == 3/*11*/) {
        fb.get(1);
        return -1;
    }
    else {
        /* 10 if previous bit 0
         * 00 if previous bit 1 */
        raw ^= (1u ^ flux_bits_pbit) << 1u;
        if (raw != 0) {
            fb.get(1);
            return -1;
        }
        bit = 0;
    }

    fb.get(2);
    flux_bits_pbit = bit;
    return bit;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
cmpl $0x1, 0x4(%rdi)
pushq $-0x1
popq %rbx
ja 0x3eee
movq %r14, %rdi
callq 0x3b90
testb %al, %al
je 0x3f3c
pushq $0x2
popq %rsi
movq %r14, %rdi
callq 0x3c86
movl %eax, %r15d
cmpl $0x1, %eax
je 0x3f1a
cmpl $0x3, %r15d
je 0x3f31
movl 0x828b(%rip), %eax      # 0xc198
addl %eax, %eax
xorl %r15d, %eax
xorl %r15d, %r15d
cmpl $0x2, %eax
jne 0x3f31
pushq $0x2
popq %rsi
movq %r14, %rdi
callq 0x3cc2
movl %r15d, 0x826c(%rip)     # 0xc198
movl %r15d, %ebx
jmp 0x3f3c
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x3cc2
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/joncampbell123[P]floppytools/kryocomm.cpp
// Function: flux_bits_mfm_decode(flux_bits&, kryoflux_event&, _IO_FILE*)
int flux_bits_mfm_decode(struct flux_bits &fb,struct kryoflux_event &ev,FILE *fp) {
    unsigned int byte = 0,i;
    int c;

    if (fb.avail() < 16) {
        if (!kryoflux_bits_refill(fb,ev,fp))
            return -1;
    }

    if (fb.peek(MFM_A1_SYNC_LENGTH) == MFM_A1_SYNC) {
        fb.get(MFM_A1_SYNC_LENGTH);
        flux_bits_pbit = 1; /* last bit of 0xA1 is 1 */
        return -MFM_A1_SYNC_BYTE;
    }

    for (i=0;i < 8;i++) {
        c = flux_bits_mfm_decode_bit(fb,ev,fp);
        if (c < 0 || c >= 2) return -1;
        byte |= (unsigned int)c << (7u - i);
    }

    return byte;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
cmpl $0xf, 0x4(%rdi)
pushq $-0x1
popq %rbx
ja 0x3f7b
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3b90
testb %al, %al
je 0x3fd6
pushq $0x10
popq %rsi
movq %r14, %rdi
callq 0x3c86
cmpl $0x4489, %eax           # imm = 0x4489
jne 0x3fa9
pushq $0x10
popq %rsi
movq %r14, %rdi
callq 0x3cc2
movl $0x1, 0x81f6(%rip)      # 0xc198
movl $0xffffff5f, %ebx       # imm = 0xFFFFFF5F
jmp 0x3fd6
xorl %ebx, %ebx
pushq $0x7
popq %r13
cmpl $-0x1, %r13d
je 0x3fd6
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3ecc
testl %eax, %eax
js 0x3fd3
movl %r13d, %ecx
shll %cl, %eax
orl %eax, %ebx
decl %r13d
jmp 0x3faf
pushq $-0x1
popq %rbx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/joncampbell123[P]floppytools/kryocomm.cpp
// Function: mfm_crc16fd_update(unsigned short, void const*, unsigned long)
mfm_crc16fd_t mfm_crc16fd_update(mfm_crc16fd_t crc, const void *data, size_t data_len)
{
    const unsigned char *d = (const unsigned char *)data;
    unsigned int tbl_idx;

    while (data_len--) {
        tbl_idx = ((crc >> 8) ^ *d) & 0xff;
        crc = (mfm_crc16fd_table[tbl_idx] ^ (crc << 8)) & 0xffff;
        d++;
    }
    return crc & 0xffff;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, %eax
xorl %ecx, %ecx
leaq 0x136a(%rip), %rdi      # 0x5360
cmpq %rcx, %rdx
je 0x4018
movzwl %ax, %r8d
shrl $0x8, %r8d
movzbl (%rsi,%rcx), %r9d
xorl %r8d, %r9d
shll $0x8, %eax
xorw (%rdi,%r9,2), %ax
incq %rcx
jmp 0x3ff6
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/joncampbell123[P]floppytools/kryocomm.cpp
// Function: kryoflux_parse_stream_nv_pair(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, __gnu_cxx::__normal_iterator<unsigned char*, std::vector<unsigned char, std::allocator<unsigned char>>>&, __gnu_cxx::__normal_iterator<unsigned char*, std::vector<unsigned char, std::allocator<unsigned char>>>)
void kryoflux_parse_stream_nv_pair(std::string &name,std::string &value,std::vector<unsigned char>::iterator &mi,const std::vector<unsigned char>::iterator mend) {
    name.clear();
    value.clear();

    /* leading space */
    while (mi != mend && *mi == ' ') mi++;

    /* name */
    while (mi != mend) {
        if (*mi == 0) return; /* end of string, return now */
        if (*mi == '=') {
            mi++; /* skip it and break to next loop */
            break;
        }
        if (*mi == ',') {
            mi++; /* skip it and return */
            return;
        }

        name += *mi;
        mi++;
    }

    /* value */
    while (mi != mend) {
        if (*mi == 0) return; /* end of string, return now */
        if (*mi == ',') {
            mi++; /* skip it and return */
            return;
        }

        value += *mi;
        mi++;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r12
andq $0x0, 0x8(%rdi)
movq %rcx, %rbx
movq %rsi, %r15
movq (%rdi), %rax
xorl %ecx, %ecx
movb %cl, (%rax)
andq $0x0, 0x8(%rsi)
movq %rdx, %r14
movq (%rsi), %rax
movb %cl, (%rax)
movq (%rdx), %rax
cmpq %rbx, %rax
je 0x40e0
cmpb $0x20, (%rax)
jne 0x40e0
incq %rax
movq %rax, (%r14)
jmp 0x40a9
movzbl (%rax), %ecx
testl %ecx, %ecx
je 0x4114
cmpl $0x2c, %ecx
je 0x410e
cmpl $0x3d, %ecx
je 0x40e7
movsbl %cl, %esi
movq %r12, %rdi
callq 0x2110
movq (%r14), %rax
incq %rax
movq %rax, (%r14)
cmpq %rbx, %rax
jne 0x40bb
jmp 0x40ed
incq %rax
movq %rax, (%r14)
cmpq %rbx, %rax
je 0x4114
movzbl (%rax), %ecx
testl %ecx, %ecx
je 0x4114
cmpl $0x2c, %ecx
je 0x410e
movsbl %cl, %esi
movq %r15, %rdi
callq 0x2110
movq (%r14), %rax
jmp 0x40e7
incq %rax
movq %rax, (%r14)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/joncampbell123[P]floppytools/kryocomm.cpp
// Function: kryoflux_update_stream_info(kryoflux_stream_info&, std::vector<unsigned char, std::allocator<unsigned char>>&)
bool kryoflux_update_stream_info(struct kryoflux_stream_info &si,std::vector<unsigned char> &msg) {
    std::string name,value;

    std::vector<unsigned char>::iterator mi = msg.begin();
    while (mi != msg.end() && *mi != 0) {
        kryoflux_parse_stream_nv_pair(name,value,mi,msg.end());

        if (name == "name")
            si.name = value;
        else if (name == "sck")
            si.sck = atof(value.c_str());
        else if (name == "ick")
            si.ick = atof(value.c_str());
    }

    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
leaq -0x70(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movq %rsi, %rbx
movq %rdi, %r14
xorl %ecx, %ecx
leaq -0x50(%rbp), %rdx
movq %rdx, -0x10(%rdx)
andq $0x0, -0x8(%rdx)
movb %cl, (%rax)
movb %cl, (%rdx)
movq (%rsi), %rax
leaq -0x30(%rbp), %rcx
movq %rax, (%rcx)
leaq 0x28(%rdi), %rcx
movq %rcx, -0x38(%rbp)
leaq 0x20(%rdi), %rcx
movq %rcx, -0x40(%rbp)
leaq -0x80(%rbp), %r12
leaq -0x60(%rbp), %r13
movq 0x8(%rbx), %rcx
cmpq %rcx, %rax
je 0x41f5
cmpb $0x0, (%rax)
je 0x41f5
movq %r12, %rdi
movq %r13, %rsi
leaq -0x30(%rbp), %rdx
callq 0x4079
movq %r12, %rdi
leaq 0x1412(%rip), %rsi      # 0x55af
callq 0x4704
testb %al, %al
je 0x41b3
movq %r14, %rdi
movq %r13, %rsi
callq 0x20d0
jmp 0x41ef
movq %r12, %rdi
leaq 0x13f7(%rip), %rsi      # 0x55b4
callq 0x4704
movq -0x40(%rbp), %r15
testb %al, %al
jne 0x41e1
movq %r12, %rdi
leaq 0x13e4(%rip), %rsi      # 0x55b8
callq 0x4704
movq -0x38(%rbp), %r15
testb %al, %al
je 0x41ef
movq -0x60(%rbp), %rdi
callq 0x2190
movsd %xmm0, (%r15)
movq -0x30(%rbp), %rax
jmp 0x4176
leaq -0x60(%rbp), %rdi
callq 0x20b0
leaq -0x80(%rbp), %rdi
callq 0x20b0
movb $0x1, %al
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x20b0
leaq -0x80(%rbp), %rdi
callq 0x20b0
movq %rbx, %rdi
callq 0x2220
// File: /workspace/github_cpp_makefile_star2_O2/joncampbell123[P]floppytools/kryocomm.cpp
// Function: kryo_fopen(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned int, unsigned int)
FILE *kryo_fopen(const std::string &cappath,unsigned int track,unsigned int head) {
    std::string path;
    char tmp[128];

    sprintf(tmp,"track%02u.%u.raw",track,head);
    path = cappath + "/" + tmp;

    return fopen(path.c_str(),"rb");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xe0, %rsp
movl %edx, %ecx
movl %esi, %edx
movq %rdi, %rbx
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0xee0(%rip), %rsi       # 0x5141
leaq -0xf0(%rbp), %rdi
xorl %eax, %eax
callq 0x2050
leaq 0xedc(%rip), %rdx       # 0x5152
leaq -0x30(%rbp), %rdi
movq %rbx, %rsi
callq 0x30ea
leaq -0x70(%rbp), %rdi
leaq -0x30(%rbp), %rsi
leaq -0xf0(%rbp), %rdx
callq 0x30c1
leaq -0x50(%rbp), %rbx
leaq -0x70(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2180
movq %r14, %rdi
callq 0x20b0
leaq -0x30(%rbp), %rdi
callq 0x20b0
movq (%rbx), %rdi
leaq 0xe97(%rip), %rsi       # 0x515b
callq 0x2170
movq %rax, %r14
movq %rbx, %rdi
callq 0x20b0
movq %r14, %rax
addq $0xe0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x20b0
jmp 0x42f4
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x20b0
movq %rbx, %rdi
callq 0x2220
// File: /workspace/github_cpp_makefile_star2_O2/joncampbell123[P]floppytools/kryocomm.cpp
// Function: mfm_find_sync(flux_bits&, kryoflux_event, _IO_FILE*)
bool mfm_find_sync(flux_bits &fb,struct kryoflux_event ev,FILE *fp) {
    do {
        kryoflux_bits_refill(fb,ev,fp);

        while (fb.avail() >= MFM_A1_SYNC_LENGTH) {
            if (fb.peek(MFM_A1_SYNC_LENGTH) == MFM_A1_SYNC) {
                return true;
            }
            else {
                fb.get(1);
            }
        }

        if (!kryoflux_bits_refill(fb,ev,fp))
            break;
    } while (fb.avail() > 0);

    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, -0x30(%rbp)
movq %rsi, %r14
movq %rdi, %r15
pushq $0x10
popq %r12
pushq $0x1
popq %r13
movq %r15, %rdi
movq %r14, %rsi
movq -0x30(%rbp), %rdx
callq 0x3b90
movl 0x4(%r15), %ebx
movq %r15, %rdi
cmpl $0x10, %ebx
jb 0x435c
movl %r12d, %esi
callq 0x3c86
cmpl $0x4489, %eax           # imm = 0x4489
je 0x4373
movq %r15, %rdi
movl %r13d, %esi
callq 0x3cc2
jmp 0x4334
movq %r14, %rsi
movq -0x30(%rbp), %rdx
callq 0x3b90
testb %al, %al
je 0x4373
cmpl $0x0, 0x4(%r15)
jne 0x4325
cmpl $0x10, %ebx
setae %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/joncampbell123[P]floppytools/kryocomm.cpp
// Function: flux_bits_mfm_skip_sync(flux_bits&, kryoflux_event&, _IO_FILE*)
int flux_bits_mfm_skip_sync(struct flux_bits &fb,struct kryoflux_event &ev,FILE *fp) {
    int count=0,c;

    kryoflux_bits_refill(fb,ev,fp);
    while (fb.avail() >= MFM_A1_SYNC_LENGTH && fb.peek(MFM_A1_SYNC_LENGTH) == MFM_A1_SYNC) {
        c=flux_bits_mfm_decode(fb,ev,fp);
        if (c != -MFM_A1_SYNC_BYTE) {
            if (c < 0) break;
        }

        kryoflux_bits_refill(fb,ev,fp);
        count++;
    }

    return count;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x3b90
xorl %r12d, %r12d
pushq $0x10
popq %r13
cmpl $0x10, 0x4(%r15)
jb 0x444e
movq %r15, %rdi
movl %r13d, %esi
callq 0x3c86
cmpl $0x4489, %eax           # imm = 0x4489
jne 0x444e
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x3f49
cmpl $0xffffff5f, %eax       # imm = 0xFFFFFF5F
setne %cl
testl %eax, %eax
sets %al
testb %al, %cl
jne 0x444e
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x3b90
incl %r12d
jmp 0x4403
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/joncampbell123[P]floppytools/kryocomm.cpp
// Function: flux_bits_mfm_read_sector_id(mfm_sector_id&, flux_bits&, kryoflux_event&, _IO_FILE*)
int flux_bits_mfm_read_sector_id(mfm_sector_id &sid,struct flux_bits &fb,struct kryoflux_event &ev,FILE *fp) {
    unsigned char tmp[8];
    mfm_crc16fd_t check;
    int c;

    sid.clear();

    tmp[0] = (unsigned char)MFM_A1_SYNC_BYTE;
    tmp[1] = (unsigned char)MFM_A1_SYNC_BYTE;
    tmp[2] = (unsigned char)MFM_A1_SYNC_BYTE;
    tmp[3] = (unsigned char)0xFE;

    int track = flux_bits_mfm_decode(fb,ev,fp);
    if (track < 0)
        return -MFM_READ_DECODE_ERROR;
    tmp[4] = sid.track = (unsigned char)track;

    int side = flux_bits_mfm_decode(fb,ev,fp);
    if (side < 0)
        return -MFM_READ_DECODE_ERROR;
    tmp[5] = sid.side = (unsigned char)side;

    int sector = flux_bits_mfm_decode(fb,ev,fp);
    if (sector < 0)
        return -MFM_READ_DECODE_ERROR;
    tmp[6] = sid.sector = (unsigned char)sector;

    int ssize = flux_bits_mfm_decode(fb,ev,fp);
    if (ssize < 0)
        return -MFM_READ_DECODE_ERROR;
    tmp[7] = sid.sector_size_code = (unsigned char)ssize;

    unsigned int crc;
    if ((c=flux_bits_mfm_decode(fb,ev,fp)) < 0)
        return -MFM_READ_DECODE_ERROR;
    crc  = (unsigned int)c << 8;

    if ((c=flux_bits_mfm_decode(fb,ev,fp)) < 0)
        return -MFM_READ_DECODE_ERROR;
    crc += (unsigned int)c;

    check = mfm_crc16fd_update(0xffff,tmp,8);
    if (check != crc)
        return -MFM_CRC_ERROR;

    sid.crc_ok = true;
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
movb $0x0, 0x4(%rdi)
andl $0x0, (%rdi)
movl $0xfea1a1a1, -0x30(%rbp) # imm = 0xFEA1A1A1
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x3f49
movl $0xfffffeff, %r14d      # imm = 0xFFFFFEFF
testl %eax, %eax
js 0x45cb
movb %al, (%rbx)
movb %al, -0x2c(%rbp)
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3f49
testl %eax, %eax
js 0x45cb
movb %al, 0x1(%rbx)
movb %al, -0x2b(%rbp)
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3f49
testl %eax, %eax
js 0x45cb
movb %al, 0x2(%rbx)
movb %al, -0x2a(%rbp)
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3f49
testl %eax, %eax
js 0x45cb
movb %al, 0x3(%rbx)
movb %al, -0x29(%rbp)
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3f49
testl %eax, %eax
js 0x45cb
movl %eax, -0x34(%rbp)
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3f49
testl %eax, %eax
js 0x45cb
movl %eax, %r15d
movl -0x34(%rbp), %eax
shll $0x8, %eax
addl %eax, %r15d
leaq -0x30(%rbp), %rsi
pushq $0x8
popq %rdx
movl $0xffff, %edi           # imm = 0xFFFF
callq 0x3fe7
movzwl %ax, %eax
movl $0xffffff00, %r14d      # imm = 0xFFFFFF00
cmpl %eax, %r15d
jne 0x45cb
movb $0x1, 0x4(%rbx)
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/joncampbell123[P]floppytools/kryocomm.cpp
// Function: flux_bits_mfm_read_sector_data(unsigned char*, unsigned int, flux_bits&, kryoflux_event&, _IO_FILE*, int)
int flux_bits_mfm_read_sector_data(unsigned char *buf,unsigned int sector_size,struct flux_bits &fb,struct kryoflux_event &ev,FILE *fp,int c) {
    mfm_crc16fd_t check;
    unsigned char tmp[4];

    // A1 A1 A1 FA/FB
    tmp[0] = (unsigned char)MFM_A1_SYNC_BYTE;
    tmp[1] = (unsigned char)MFM_A1_SYNC_BYTE;
    tmp[2] = (unsigned char)MFM_A1_SYNC_BYTE;
    tmp[3] = (unsigned char)c;

    /* begin checksum */
    check = mfm_crc16fd_update(0xffff,tmp,4);

    // sector data follows
    for (unsigned int b=0;b < sector_size;b++) {
        kryoflux_bits_refill(fb,ev,fp);

        if ((c=flux_bits_mfm_decode(fb,ev,fp)) < 0)
            return -MFM_READ_DECODE_ERROR;

        buf[b] = (unsigned char)c;
    }
    check = mfm_crc16fd_update(check,buf,sector_size);

    // followed by checksum
    for (unsigned int b=0;b < 2;b++) {
        kryoflux_bits_refill(fb,ev,fp);

        if ((c=flux_bits_mfm_decode(fb,ev,fp)) < 0)
            return -MFM_READ_DECODE_ERROR;

        tmp[b] = (unsigned char)c;
    }

    unsigned int crc;
    crc  = (unsigned int)tmp[0u] << 8u;
    crc += (unsigned int)tmp[1u];

    if (check != crc)
        return -MFM_CRC_ERROR;

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movl %esi, %r13d
movq %rdi, -0x38(%rbp)
leaq -0x2e(%rbp), %rsi
movw $0xa1a1, (%rsi)         # imm = 0xA1A1
movb $-0x5f, 0x2(%rsi)
movb %r9b, 0x3(%rsi)
pushq $0x4
popq %rdx
movl $0xffff, %edi           # imm = 0xFFFF
callq 0x3fe7
movw %ax, -0x2a(%rbp)
movl %r13d, %r13d
xorl %r12d, %r12d
cmpq %r12, %r13
je 0x4658
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x3b90
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x3f49
testl %eax, %eax
js 0x469e
movq -0x38(%rbp), %rcx
movb %al, (%rcx,%r12)
incq %r12
jmp 0x4626
movzwl -0x2a(%rbp), %edi
movq -0x38(%rbp), %rsi
movq %r13, %rdx
callq 0x3fe7
movl %eax, %r12d
xorl %r13d, %r13d
cmpq $0x2, %r13
je 0x46a5
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x3b90
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x3f49
testl %eax, %eax
js 0x469e
movb %al, -0x2e(%rbp,%r13)
incq %r13
jmp 0x466e
movl $0xfffffeff, %eax       # imm = 0xFFFFFEFF
jmp 0x46c3
movzwl -0x2e(%rbp), %eax
rolw $0x8, %ax
movzwl %ax, %ecx
movzwl %r12w, %edx
xorl %eax, %eax
cmpl %edx, %ecx
sete %al
shll $0x8, %eax
addl $0xffffff00, %eax       # imm = 0xFFFFFF00
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/pranavmodx[P]modlang/rlpl.cpp
// Function: RLPL()
void RLPL()
{
	const std::string PROMPT = ">> ";

	Token token;
	Lexer lexer;
	
	std::string line;

	while (true)
	{
		std::cout << PROMPT;

		std::getline(std::cin, line);

		lexer.New(line);
		token = lexer.nextToken();

		while (token.type != END)
		{
			std::cout << "Type: " << token.type << ", Literal: " << token.literal << std::endl;
			token = lexer.nextToken();
		}

		line.clear();
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
leaq 0x26c8(%rip), %rsi      # 0x60ac
leaq 0x28(%rsp), %rdi
leaq 0x48(%rsp), %r14
movq %r14, %rdx
callq 0x3b56
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
leaq 0x78(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
leaq 0x98(%rsp), %rdx
movq %rdx, -0x10(%rdx)
andq $0x0, -0x8(%rdx)
movb %cl, (%rax)
movb %cl, (%rdx)
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
leaq 0x88(%rsp), %rbx
leaq 0xb8(%rsp), %r13
leaq 0x56f8(%rip), %rbp      # 0x9148
leaq 0x2659(%rip), %r15      # 0x60b0
leaq 0x2659(%rip), %r12      # 0x60b7
movb $0x0, (%rax)
movq 0x5568(%rip), %rdi      # 0x8fd0
leaq 0x28(%rsp), %rsi
callq 0x2120
movq 0x5567(%rip), %rdi      # 0x8fe0
leaq 0x8(%rsp), %rsi
callq 0x2030
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
callq 0x4642
movq %r13, %rdi
movq %rbx, %rsi
callq 0x467a
movq %r14, %rdi
movq %r13, %rsi
callq 0x3b92
movq %r13, %rdi
callq 0x3bbc
movq %r14, %rdi
movq %rbp, %rsi
callq 0x3bd2
testb %al, %al
je 0x3b04
movq 0x550c(%rip), %rdi      # 0x8fd0
movq %r15, %rsi
callq 0x2130
movq %rax, %rdi
movq %r14, %rsi
callq 0x2120
movq %rax, %rdi
movq %r12, %rsi
callq 0x2130
movq %rax, %rdi
leaq 0x68(%rsp), %rsi
callq 0x2120
movq %rax, %rdi
callq 0x20a0
movq %r13, %rdi
movq %rbx, %rsi
callq 0x467a
jmp 0x3a9b
andq $0x0, 0x10(%rsp)
movq 0x8(%rsp), %rax
jmp 0x3a5e
jmp 0x3b1a
jmp 0x3b1a
jmp 0x3b1a
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2218
leaq 0x88(%rsp), %rdi
callq 0x2218
leaq 0x48(%rsp), %rdi
callq 0x3bbc
leaq 0x28(%rsp), %rdi
callq 0x2218
movq %rbx, %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O2/pranavmodx[P]modlang/src/lexer.cpp
// Function: Lexer::readChar()
void Lexer::readChar()
{
	if (readPos >= input.size())
		curChar = 0; // 0 -> end of file
	else
		curChar = input[readPos];

	pos = readPos;
	readPos++;
}

// Assembly:
movl 0x24(%rdi), %eax
movslq %eax, %rcx
cmpq %rcx, 0x8(%rdi)
jbe 0x466c
movq (%rdi), %rdx
movb (%rdx,%rcx), %cl
jmp 0x466e
xorl %ecx, %ecx
movb %cl, 0x28(%rdi)
movl %eax, 0x20(%rdi)
incl %eax
movl %eax, 0x24(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O2/pranavmodx[P]modlang/src/lexer.cpp
// Function: Lexer::readString[abi:cxx11]()
std::string Lexer::readString()
{
	int start = pos + 1;

	do
	{
		readChar();
	} while (curChar != '"' && curChar != 0);

	// todo: throw error if ending " not found

	return input.substr(start, pos - start);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movslq 0x20(%rsi), %r15
movq %r14, %rdi
callq 0x4658
movzbl 0x28(%r14), %eax
cmpl $0x22, %eax
je 0x53d7
testl %eax, %eax
jne 0x53c1
incq %r15
movslq 0x20(%r14), %rcx
movslq %r15d, %rax
subq %rax, %rcx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2160
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/pranavmodx[P]modlang/src/lexer.cpp
// Function: Lexer::readIdentifier[abi:cxx11]()
std::string Lexer::readIdentifier()
{
	int start = pos;

	while (isLetter(curChar))
		readChar();

	return input.substr(start, pos - start);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movslq 0x20(%rsi), %r15
movsbl 0x28(%r14), %edi
callq 0x4620
testb %al, %al
je 0x5423
movq %r14, %rdi
callq 0x4658
jmp 0x540b
movslq 0x20(%r14), %rcx
subq %r15, %rcx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2160
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/pranavmodx[P]modlang/src/lexer.cpp
// Function: Lexer::readNumber[abi:cxx11]()
std::string Lexer::readNumber()
{
	int start = pos;

	while (isDigit(curChar))
		readChar();

	return input.substr(start, pos - start); // check
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movslq 0x20(%rsi), %r15
movsbl 0x28(%r14), %eax
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0x5468
movq %r14, %rdi
callq 0x4658
jmp 0x5451
movslq 0x20(%r14), %rcx
subq %r15, %rcx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2160
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/xnevs[P]bullimp/examples/../graph/ullimp_sub_graph_iso.hpp
// Function: ullimp::detail::UllImp<boost::adjacency_list<boost::setS, boost::vecS, boost::bidirectionalS, boost::no_property, Color, boost::no_property, boost::listS>, boost::adjacency_list<boost::setS, boost::vecS, boost::bidirectionalS, boost::no_property, Color, boost::no_property, boost::listS>, boost::vec_adj_list_vertex_id_map<boost::no_property, unsigned long>, boost::vec_adj_list_vertex_id_map<boost::no_property, unsigned long>, std::vector<unsigned long, std::allocator<unsigned long>>, main::$_0, boost::always_equivalent, main::$_1>::checkEdges(unsigned long, unsigned long)
bool checkEdges(vertex_small_type row, vertex_large_type col) {
            BGL_FORALL_OUTEDGES_T(row, e, g, GraphSmall) {
                auto u = target(e, g);
                auto v = iso[u];
                if(v != graph_traits<GraphLarge>::null_vertex()) {
                    auto pe = edge(col, v, h);
                    if(!pe.second || !edge_comp(e, pe.first))
                        return false;
                }
            }
            BGL_FORALL_INEDGES_T(row, e, g, GraphSmall) {
                auto u = source(e, g);
                auto v = iso[u];
                if(v != graph_traits<GraphLarge>::null_vertex()) {
                    auto pe = edge(v, col, h);
                    if(!pe.second || !edge_comp(e, pe.first))
                        return false;
                }
            }
            return true;
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq (%rdi), %rax
imulq $0x68, %rsi, %rcx
leaq 0x8(%rsp), %r15
movq %rdx, %rbx
movq %rdi, %r14
movq %rcx, (%rsp)
movq 0x18(%rax), %rax
leaq 0x8(%rax,%rcx), %rbp
movq 0x10(%rbp), %r12
cmpq %rbp, %r12
je 0x38d1
cmpq %rbp, %r12
je 0x38cc
movq 0x20(%r12), %rax
movq 0x2c0(%r14), %rcx
movq (%rcx,%rax,8), %rdx
cmpq $-0x1, %rdx
je 0x38bf
movq 0x8(%r14), %rcx
movq 0x28(%r12), %r13
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4ca9
cmpb $0x1, 0x20(%rsp)
jne 0x394c
movq 0x18(%rsp), %rsi
addq $0x20, %r13
movq %r13, %rdi
callq 0x57a9
testb %al, %al
je 0x394c
movq %r12, %rdi
callq 0x2150
movq %rax, %r12
jmp 0x386c
movq %rbp, %r12
jmp 0x3867
movq (%r14), %rax
movq (%rsp), %rcx
leaq 0x8(%rsp), %r15
movq 0x18(%rax), %rax
leaq 0x38(%rax,%rcx), %rbp
movq 0x10(%rbp), %r12
cmpq %rbp, %r12
je 0x395d
cmpq %rbp, %r12
je 0x3947
movq 0x20(%r12), %rax
movq 0x2c0(%r14), %rcx
movq (%rcx,%rax,8), %rsi
cmpq $-0x1, %rsi
je 0x393a
movq 0x8(%r14), %rcx
movq 0x28(%r12), %r13
movq %r15, %rdi
movq %rbx, %rdx
callq 0x4ca9
cmpb $0x1, 0x20(%rsp)
jne 0x394c
movq 0x18(%rsp), %rsi
addq $0x20, %r13
movq %r13, %rdi
callq 0x57a9
testb %al, %al
je 0x394c
movq %r12, %rdi
callq 0x2150
movq %rax, %r12
jmp 0x38ef
movq %rbp, %r12
jmp 0x38ea
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %al
jmp 0x394e
nop
// File: /workspace/github_cpp_makefile_star2_O2/aempirei[P]Chat-Art/pgmtobrailedux.c
// Function: getmean
int getmean(int *data, size_t sz) {
	int mean = 0;
	for(size_t z = 0; z < sz; z++)
	mean += data[sz];
	return mean / sz;
}

// Assembly:
xorl %eax, %eax
movq %rsi, %rcx
subq $0x1, %rcx
jb 0x122c
addl (%rdi,%rsi,4), %eax
jmp 0x1221
cltq
xorl %edx, %edx
divq %rsi
retq
// File: /workspace/github_cpp_makefile_star2_O2/aempirei[P]Chat-Art/pgmtobrailedux.c
// Function: dither
void dither(int *data, int *error, size_t width, size_t height) {

	int *front;

	size_t sz = width * height;

	front = malloc(sizeof(int) * sz);
	error = malloc(sizeof(int) * sz);

	memset(error, 0, sizeof(int) * sz);

	for(size_t z = 0; z < sz; z++)
		front[z] = ((data[z] >= mid) ? upper : lower) - data[z];

	for(size_t y = 0; y < height; y++) {
		for(size_t x = 0; x < width; x++) {

			int used = (x<width-1)+(y<height-1)+1;
			int e = BIT(front,x,y,width) / used;

			if(x < width - 1) 
				BIT(error,x+1,y,width) += e;
			if(y < height - 1) 
				BIT(error,x,y+1,width) += e;

			//	BIT(error,x,y,width) -= e * used;

		}
	}

	int max = lower;
	int min = upper;

	for(size_t z = 0; z < sz; z++) {
		data[z] += error[z];
		if(data[z] > max)
			max = data[z];
		if(data[z] < min)
			min = data[z];
	}

	for(size_t z = 0; z < sz; z++) {
		data[z] = ((upper - lower) * (data[z] - min) / (max - min)) + lower;
	}

	free(front);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r12
movq %rdi, %rbx
movq %rcx, (%rsp)
movq %rcx, %r14
imulq %rdx, %r14
leaq (,%r14,4), %r13
movq %r13, %rdi
callq 0x10b0
pushq $0x1
popq %rdi
movq %r13, %rsi
movq %rax, %r13
callq 0x1080
xorl %r8d, %r8d
movl 0x2e26(%rip), %ecx      # 0x40a0
pushq $0x1
popq %rsi
cmpq %r8, %r14
je 0x129c
movl (%rbx,%r8,4), %edx
cmpl %ecx, %edx
movl $0xff, %edi
cmovll %esi, %edi
subl %edx, %edi
movl %edi, (%r13,%r8,4)
incq %r8
jmp 0x127d
movq %r14, 0x18(%rsp)
movq %rbx, 0x20(%rsp)
leaq -0x1(%r12), %rdi
movq (%rsp), %rcx
leaq -0x1(%rcx), %r8
leaq (,%r12,4), %r9
leaq (%rax,%r12,4), %r10
movq %rax, 0x8(%rsp)
movq %rax, %r11
addq $0x4, %r11
xorl %r14d, %r14d
movq %r13, 0x10(%rsp)
cmpq (%rsp), %r14
je 0x1327
cmpq %r8, %r14
movl $0x0, %ebx
adcl $0x1, %ebx
leaq 0x1(%r14), %rcx
xorl %ebp, %ebp
cmpq %rbp, %r12
je 0x1319
cmpq %rdi, %rbp
movl %ebx, %r15d
adcl $0x0, %r15d
movl (%r13,%rbp,4), %eax
cltd
idivl %r15d
cmpq %rdi, %rbp
jae 0x130b
addl %eax, (%r11,%rbp,4)
cmpq %r8, %r14
jae 0x1314
addl %eax, (%r10,%rbp,4)
incq %rbp
jmp 0x12ea
addq %r9, %r10
addq %r9, %r11
addq %r9, %r13
movq %rcx, %r14
jmp 0x12d3
movl $0xff, %r10d
xorl %eax, %eax
movq 0x20(%rsp), %r8
movq 0x18(%rsp), %r9
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rdx
cmpq %rax, %r9
je 0x1364
movl (%r8,%rax,4), %ecx
addl (%rdx,%rax,4), %ecx
movl %ecx, (%r8,%rax,4)
cmpl %esi, %ecx
cmovgl %ecx, %esi
cmpl %r10d, %ecx
cmovll %ecx, %r10d
incq %rax
jmp 0x1343
subl %r10d, %esi
xorl %ecx, %ecx
cmpq %rcx, %r9
je 0x1389
movl (%r8,%rcx,4), %eax
subl %r10d, %eax
imull $0xfe, %eax, %eax
cltd
idivl %esi
incl %eax
movl %eax, (%r8,%rcx,4)
incq %rcx
jmp 0x1369
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_cpp_makefile_star2_O2/aempirei[P]Chat-Art/pgmtobrailedux.c
// Function: braileencode
void braileencode(FILE *fpout, int *data, size_t width, size_t height) {
	for(size_t y = 0; y < height; y += 4) {
		for(size_t x = 0; x < width; x += 2) {
			wint_t wch = 0x2800;
			if(BIT0(data,x,y,width)>mid) wch |= 0x01;
			if(BIT1(data,x,y,width)>mid) wch |= 0x02;
			if(BIT2(data,x,y,width)>mid) wch |= 0x04;
			if(BIT3(data,x,y,width)>mid) wch |= 0x08;
			if(BIT4(data,x,y,width)>mid) wch |= 0x10;
			if(BIT5(data,x,y,width)>mid) wch |= 0x20;
			if(BIT6(data,x,y,width)>mid) wch |= 0x40;
			if(BIT7(data,x,y,width)>mid) wch |= 0x80;
			fputwc(wch, fpout);
		}
		fputwc(L'\n', fpout);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, 0x18(%rsp)
movq %rsi, %r15
movq %rdi, 0x8(%rsp)
imulq $0xc, %rdx, %rax
leaq (%rsi,%rax), %r13
addq $0x4, %r13
movq %rdx, %rax
shlq $0x4, %rax
movq %rax, 0x10(%rsp)
leaq (%rsi,%rdx,8), %rbx
addq $0x4, %rbx
movq %rdx, %r12
leaq (%rsi,%rdx,4), %rbp
addq $0x4, %rbp
addq $0x4, %r15
xorl %ecx, %ecx
cmpq 0x18(%rsp), %rcx
jae 0x14bd
movq %rcx, 0x20(%rsp)
xorl %r14d, %r14d
cmpq %r12, %r14
jae 0x1491
movl 0x2c96(%rip), %eax      # 0x40a0
xorl %ecx, %ecx
cmpl %eax, -0x4(%r15,%r14,4)
setg %cl
xorl %edx, %edx
cmpl %eax, -0x4(%rbp,%r14,4)
setg %dl
leal (%rcx,%rdx,2), %ecx
xorl %edx, %edx
cmpl %eax, -0x4(%rbx,%r14,4)
setg %dl
leal (%rcx,%rdx,4), %edx
xorl %esi, %esi
cmpl %eax, (%r15,%r14,4)
setg %sil
xorl %ecx, %ecx
cmpl %eax, (%rbp,%r14,4)
leal (%rdx,%rsi,8), %edx
setg %cl
shll $0x4, %ecx
orl %edx, %ecx
xorl %edx, %edx
cmpl %eax, (%rbx,%r14,4)
setg %dl
shll $0x5, %edx
xorl %esi, %esi
cmpl %eax, -0x4(%r13,%r14,4)
setg %sil
shll $0x6, %esi
orl %edx, %esi
xorl %edi, %edi
cmpl %eax, (%r13,%r14,4)
setg %dil
shll $0x7, %edi
orl %esi, %edi
orl %ecx, %edi
orl $0x2800, %edi           # imm = 0x2800
movq 0x8(%rsp), %rsi
callq 0x1060
addq $0x2, %r14
jmp 0x13fb
pushq $0xa
popq %rdi
movq 0x8(%rsp), %rsi
callq 0x1060
movq 0x20(%rsp), %rcx
addq $0x4, %rcx
movq 0x10(%rsp), %rax
addq %rax, %r13
addq %rax, %rbx
addq %rax, %rbp
addq %rax, %r15
jmp 0x13e8
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/jliesch[P]ofxget/ofxget.cc
// Function: ofxget::OfxGetContext::AddApp(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
OfxGetContext& OfxGetContext::AddApp(const string& name) {
  if (is_error()) return *this;
  auto apps = OfxApps();
  for (std::size_t i = 0; i < apps.size(); i++) {
    if (apps[i].name == name) {
      vars_map_["APPID"] = apps[i].appid;
      vars_map_["APPVER"] = apps[i].appver;
      return *this;
    }
  }
  error_string_ = "Unknown app " + name;
  return *this;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
cmpq $0x0, 0x38(%rdi)
jne 0x72a4
movq %rsi, %r15
leaq 0x28(%rsp), %rdi
callq 0x6a9c
pushq $0x40
popq %r14
xorl %r12d, %r12d
pushq $0x60
popq %r13
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %rax
subq %rcx, %rax
cqto
idivq %r13
cmpq %rax, %r12
jae 0x71f1
leaq (%rcx,%r14), %rdi
addq $-0x40, %rdi
movq %r15, %rsi
callq 0x80e3
testb %al, %al
jne 0x721b
incq %r12
addq $0x60, %r14
jmp 0x71bd
leaq 0x22e90(%rip), %rsi     # 0x2a088
leaq 0x8(%rsp), %rdi
movq %r15, %rdx
callq 0x816c
leaq 0x30(%rbx), %rdi
leaq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0x6380
movq %r14, %rdi
jmp 0x7295
movq 0x28(%rsp), %r15
leaq 0x22e54(%rip), %rsi     # 0x2a07b
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x66e0
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x8106
leaq (%r15,%r14), %rsi
addq $-0x20, %rsi
movq %rax, %rdi
callq 0x67e0
leaq 0x8(%rsp), %rdi
callq 0x6890
addq 0x28(%rsp), %r14
leaq 0x22e18(%rip), %rsi     # 0x2a081
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x66e0
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x8106
movq %rax, %rdi
movq %r14, %rsi
callq 0x67e0
leaq 0x8(%rsp), %rdi
callq 0x6890
leaq 0x28(%rsp), %rdi
callq 0x80c2
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x72b9
jmp 0x72b9
movq %rax, %rbx
jmp 0x72cd
jmp 0x72c0
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6890
leaq 0x28(%rsp), %rdi
callq 0x80c2
movq %rbx, %rdi
callq 0x6460
nop