LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/bchu7796[P]p2p-file-sharing/server_main.cpp
// Function: main
int main(void){
    server server_instance;
    if(server_instance.execute()!= 0){
        perror("server execution fault");
    }
    return 0;
}

// Assembly:
pushq %rax
leaq 0x7(%rsp), %rdi
callq 0x3032
testl %eax, %eax
jne 0x248f
xorl %eax, %eax
popq %rcx
retq
leaq 0x2b6e(%rip), %rdi      # 0x5004
callq 0x2180
jmp 0x248b
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O1/bchu7796[P]p2p-file-sharing/server.cpp
// Function: server::execute()
int server::execute(void){
    server myserver;
    int process_fd;
    int server_fd;
    struct sockaddr_in server_address, client_address;
    //create socket
    if((server_fd = socket(AF_INET, SOCK_STREAM, 0)) < 0){
        perror("Failed to create socket"); 
        exit(0);
    }

    //initailize address structure
    bzero(&server_address, sizeof(server_address));
    server_address.sin_family = PF_INET; 
    server_address.sin_addr.s_addr = INADDR_ANY; 
    server_address.sin_port = htons(SERVER_PORT); 

    //bind socket
    if(bind(server_fd, (struct sockaddr*) &server_address, sizeof(server_address)) < 0){
        perror("Failed to bind"); 
        exit(0);
    }

    //listen socket
    if(listen(server_fd, 5) < 0){
        perror("Failed to listen"); 
        exit(0);
    }


    while(1){
        int client_address_length = sizeof(client_address);
        if((process_fd = accept(server_fd,(struct sockaddr*) &client_address, (socklen_t *) &client_address_length)) < 0){
            perror("Failed to accept"); 
            exit(0);
        }
        uint32_t request_type;
        recv(process_fd, &request_type, sizeof(request_type), 0);
        //use multi-thread to handle requests
        std::thread tid(&server::handle_request, myserver, process_fd, request_type, client_address);
        tid.detach();
        //handle_request(process_fd, request_type, client_address);
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl $0x2, %edi
movl $0x1, %esi
xorl %edx, %edx
callq 0x2050
testl %eax, %eax
jns 0x3061
leaq 0x2033(%rip), %rdi      # 0x508f
jmp 0x315f
movl %eax, %ebx
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %rsi
movaps %xmm0, (%rsi)
movl $0x901f0002, %eax       # imm = 0x901F0002
movq %rax, (%rsi)
movl %ebx, %edi
movl $0x10, %edx
callq 0x2040
testl %eax, %eax
jns 0x3092
leaq 0x201a(%rip), %rdi      # 0x50a7
jmp 0x315f
movl %ebx, %edi
movl $0x5, %esi
callq 0x21f0
testl %eax, %eax
jns 0x30ae
leaq 0x200d(%rip), %rdi      # 0x50b6
jmp 0x315f
leaq 0x8(%rsp), %rdx
movl $0x10, (%rdx)
leaq 0x30(%rsp), %rsi
movl %ebx, %edi
callq 0x2070
movl %eax, 0xc(%rsp)
testl %eax, %eax
js 0x3158
leaq 0x1c(%rsp), %r14
leaq 0x10(%rsp), %r15
leaq 0xc(%rsp), %rbp
leaq 0x30(%rsp), %r12
leaq 0x8(%rsp), %r13
movl $0x4, %edx
movl %eax, %edi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x2080
leaq -0x102(%rip), %rax      # 0x3000
movq %rax, 0x20(%rsp)
movq $0x0, 0x28(%rsp)
movq %r15, %rdi
leaq 0x20(%rsp), %rsi
leaq 0x7(%rsp), %rdx
movq %rbp, %rcx
movq %r14, %r8
movq %r12, %r9
callq 0x3394
movq %r15, %rdi
callq 0x2280
cmpq $0x0, 0x10(%rsp)
jne 0x317b
movl $0x10, 0x8(%rsp)
movl %ebx, %edi
movq %r12, %rsi
movq %r13, %rdx
callq 0x2070
movl %eax, 0xc(%rsp)
testl %eax, %eax
jns 0x30ea
leaq 0x1f68(%rip), %rdi      # 0x50c7
callq 0x2180
xorl %edi, %edi
callq 0x2210
cmpq $0x0, 0x10(%rsp)
jne 0x317b
movq %rax, %rdi
callq 0x2290
callq 0x2060
// File: /workspace/github_cpp_makefile_star2_O1/lemire[P]validateutf8-experiments/tests/unit.cpp
// Function: display(std::vector<unsigned char, std::allocator<unsigned char>> const&)
void display(const std::vector<uint8_t> & string) {
  printf("[");
  for(size_t i = 0; i < string.size(); i++) {
    printf("0x%02x", string[i]);
    if(i + 1 < string.size()) printf(",");
  }
  printf("]");
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl $0x5b, %edi
callq 0x2160
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x5da9
leaq 0x2a11(%rip), %r14      # 0x8780
xorl %r15d, %r15d
movzbl (%rax,%r15), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x2030
incq %r15
movq 0x8(%rbx), %rax
subq (%rbx), %rax
cmpq %rax, %r15
jae 0x5d9a
movl $0x2c, %edi
callq 0x2160
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
cmpq %rcx, %r15
jb 0x5d72
movl $0x5d, %edi
popq %rbx
popq %r14
popq %r15
jmp 0x2160
// File: /workspace/github_cpp_makefile_star2_O1/lemire[P]validateutf8-experiments/tests/unit.cpp
// Function: twobytetest()
void twobytetest() {
  // this should not validate
  const char * twobyte = "\xcf\xcf\xcf";
  if(active_fastvalidate::lookup2::validate(twobyte, 3) != fastvalidate::error_code::UTF8_ERROR) {
        printf("twobytetest bug\n");
        abort();
  }
  if(active_fastvalidate::lookup3::validate(twobyte, 3) != fastvalidate::error_code::UTF8_ERROR) {
        printf("twobytetest bug\n");
        abort();
  }  
  if(active_fastvalidate::lookup4::validate(twobyte, 3) != fastvalidate::error_code::UTF8_ERROR) {
        printf("twobytetest bug\n");
        abort();
  }  
}

// Assembly:
pushq %rax
leaq 0x2007(%rip), %rdi      # 0x888a
movl $0x3, %esi
callq 0x55ec
cmpl $0x1, %eax
jne 0x68c0
leaq 0x1ff1(%rip), %rdi      # 0x888a
movl $0x3, %esi
callq 0x55f1
cmpl $0x1, %eax
jne 0x68c0
leaq 0x1fdb(%rip), %rdi      # 0x888a
movl $0x3, %esi
callq 0x55f6
cmpl $0x1, %eax
jne 0x68c0
popq %rax
retq
leaq 0x2261(%rip), %rdi      # 0x8b28
callq 0x2180
callq 0x20b0
// File: /workspace/github_cpp_makefile_star2_O1/lemire[P]validateutf8-experiments/tests/unit.cpp
// Function: main
int main() {
  brute_force_tests();
  twobytetest();
  test();
  return EXIT_SUCCESS;
}

// Assembly:
pushq %rax
callq 0x5db8
callq 0x687b
callq 0x68d1
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/main.cpp
// Function: usage(char*)
static int usage(char *argv0) {
	fprintf(stderr, "usage: %s [OPTIONS] FILE.asc\n"
	"compiles FILE.asc to FILE.o\n"
	"OPTIONS:\n"
	"-A API version : specify API version. this affects which functions\n"
	"   and data items are made available by global header agsdefns.sh.\n"
	"   supported values are:\n  ",
	argv0);
	for(unsigned i=0;apiv[i];++i) fprintf(stderr, " %s", apiv[i]);
	fprintf(stderr, "\n   default: 350\n"
	"-a ABI version: same as above, but restricts the emitted bytecode\n"
	"-f option=value: set a compiler option. recognized options:\n"
	);
	for(unsigned i=0; i < SCOPT_NUMOPTS; ++i)
		fprintf(stderr, "   %s (1/0) - %s\n",
			ccOptionNameString(1<<i),
			ccOptionHelpString(1<<i));
	for(unsigned i=0; cust_f_opts[i].name; ++i)
		fprintf(stderr, "   %s (---) - %s\n",
			cust_f_opts[i].name, cust_f_opts[i].help);
	fprintf(stderr,
	"-i systemheaderdir : provide path to system headers\n"
	"   this is the path containing implicitly included headers (atm only agsdefns.sh).\n"
	"-H 1.ash[:2.ash...] : colon-separated list of headers to include.\n"
	"   order matters. AGS editor automatically includes all headers\n"
	"   it finds in the game dir, but here you need to specify them.\n"
	"-o filename : explicitily specify output file name\n"
	"-P preprocessor : use `preprocessor` on files before running the built-in\n"
	"   one on them. example: -P \"cpp -P\". note that you if you use a\n"
	"   standard C preprocessor, linenumber directives need to be supressed\n"
	"   as in the example cpp command.\n"
	"-D macro[=val] : define preprocessor macro\n"
	"-E : run preprocessor only (create file with .i extension)\n"
	"-W : warn about non-fatal errors parsing system headers\n"
	"-g : turn on debug info\n"
	"-S : write textual assembly instead of binary (requires agsdisas)\n"
	);
	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rdx
movq 0x219cb(%rip), %r13     # 0x24fc0
movq (%r13), %rdi
leaq 0x16cb5(%rip), %rsi     # 0x1a2b5
xorl %eax, %eax
callq 0x3480
leaq 0x21502(%rip), %r14     # 0x24b10
leaq 0x1911e(%rip), %rbx     # 0x1c733
xorl %r15d, %r15d
movq (%r15,%r14), %rdx
movq (%r13), %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3480
addq $0x8, %r15
cmpq $0x40, %r15
jne 0x3618
movq (%r13), %rcx
leaq 0x16d5a(%rip), %rdi     # 0x1a399
pushq $0x1
popq %rdx
movl $0x8f, %esi
callq 0x35c0
leaq 0x16dd6(%rip), %rbx     # 0x1a429
xorl %ebp, %ebp
movq (%r13), %r14
pushq $0x1
popq %r15
movl %ebp, %ecx
shll %cl, %r15d
movl %r15d, %edi
callq 0x14055
movq %rax, %r12
movl %r15d, %edi
callq 0x1402e
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x3480
incl %ebp
cmpl $0xc, %ebp
jne 0x3655
movq (%r13), %rdi
leaq 0x16da1(%rip), %rsi     # 0x1a43b
leaq 0x16bda(%rip), %rdx     # 0x1a27b
leaq 0x16be1(%rip), %rcx     # 0x1a289
xorl %eax, %eax
callq 0x3480
movq (%r13), %rcx
leaq 0x16d93(%rip), %rdi     # 0x1a44d
pushq $0x1
popq %rdx
movl $0x368, %esi            # imm = 0x368
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x35c0
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/main.cpp
// Function: slurp_file(_IO_FILE*)
char *slurp_file(FILE *f) {
	fseek(f, 0, SEEK_END);
	unsigned len = ftell(f);
	fseek(f, 0, SEEK_SET);
	char *mem = (char*) malloc(len+1);
	fread(mem, 1, len, f);
	mem[len] = 0;
	fclose(f);
	return mem;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorl %esi, %esi
movl $0x2, %edx
callq 0x3370
movq %rbx, %rdi
callq 0x3030
movq %rax, %r14
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3370
leal 0x1(%r14), %edi
callq 0x3440
movq %rax, %r15
movl %r14d, %r14d
movl $0x1, %esi
movq %rax, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x34a0
movb $0x0, (%r15,%r14)
movq %rbx, %rdi
callq 0x3300
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/main.cpp
// Function: add_macro(char const*, char const*)
static void add_macro(const char *name, const char *value) {
	char buf[1024];
	sprintf(buf, "#define %s %s\n", name, value);
	buffer_append(&macrobuf, buf, strlen(buf));
	ccDefineMacro(name, value);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x400, %rsp            # imm = 0x400
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x15ca5(%rip), %rsi     # 0x1a2a6
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x30d0
movq %r15, %rdi
callq 0x31a0
movq %rax, %r15
addq $0xfff, %r15            # imm = 0xFFF
andq $-0x1000, %r15          # imm = 0xF000
movq 0x20d64(%rip), %rdi     # 0x25398
movq %r15, %rsi
callq 0x3520
testq %rax, %rax
je 0x464f
movq %rax, 0x20d50(%rip)     # 0x25398
movq %r15, 0x20d41(%rip)     # 0x25390
movq %r14, %rdi
movq %rbx, %rsi
addq $0x400, %rsp            # imm = 0x400
popq %rbx
popq %r14
popq %r15
jmp 0x16b3d
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/main.cpp
// Function: getbasename(char*)
static char *getbasename(char *filename) {
	char *q = strrchr(filename, '/');
	/* for windoze folks... */
	if(!q) q = strrchr(filename, '\\');
	if(q) q++;
	else q = filename;
	return q;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x2f, %esi
callq 0x3360
testq %rax, %rax
jne 0x4686
movq %rbx, %rdi
movl $0x5c, %esi
callq 0x3360
leaq 0x1(%rax), %rcx
testq %rax, %rax
cmoveq %rbx, %rcx
movq %rcx, %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/main.cpp
// Function: run_cpp(char*, char*)
static char *run_cpp(char *cppcmd, char* fc) {
	char *fn = tempfile();
	if(!fn) return 0;
	FILE *f = fopen(fn, "w");
	if(!f) return 0;
	fwrite(macrobuf.mem, 1, macrobuf.used, f);
	fwrite(fc, 1, strlen(fc), f);
	fclose(f);
	char buf[4096];
	sprintf(buf, "%s %s", cppcmd, fn);
	FILE *p = popen(buf, "r");
	if(!p) {
	cpp_err:
		fprintf(stderr, "error creating cpp process:");
		perror("");
		return 0;
	}
	struct buffer out;
	while(fgets(buf, sizeof buf, p))
		buffer_append(&out, buf, strlen(buf));
	int status = pclose(p);
	if(status == -1 || !WIFEXITED(status)) {
		goto cpp_err;
	}
	unlink(fn);
	free(fn);
	buffer_makestring(&out);
	return out.mem;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1008, %rsp           # imm = 0x1008
movq %rsi, %r15
movq %rdi, %r14
callq 0x3aec
testq %rax, %rax
je 0x472c
movq %rax, %rbx
leaq 0x1832f(%rip), %rsi     # 0x1ca4e
movq %rax, %rdi
callq 0x33b0
testq %rax, %rax
jne 0x473d
xorl %eax, %eax
addq $0x1008, %rsp           # imm = 0x1008
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r12
movq %r15, %rdi
callq 0x31a0
movl $0x1, %esi
movq %r15, %rdi
movq %rax, %rdx
movq %r12, %rcx
callq 0x35c0
movq %r12, %rdi
callq 0x3300
leaq 0x15aa9(%rip), %rsi     # 0x1a213
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x30d0
leaq 0x18c45(%rip), %rsi     # 0x1d3c9
movq %r15, %rdi
callq 0x3130
testq %rax, %rax
je 0x47b0
movq %rax, %r14
movq %rsp, %rdi
movl $0x1000, %esi           # imm = 0x1000
movq %rax, %rdx
callq 0x34e0
movq %r14, %rdi
callq 0x3470
testb $0x7f, %al
je 0x47bd
movq %rsp, %rdi
callq 0x380f
jmp 0x472c
movq %rbx, %rdi
callq 0x31c0
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: yank_chunk(ccCompiledScript*, std::vector<ccChunk, std::allocator<ccChunk>>*, int, int)
void yank_chunk(ccCompiledScript *scrip, std::vector<ccChunk> *list, int codeoffset, int fixupoffset) {
    ccChunk item;
    int index;

    for(index = codeoffset; index < scrip->codesize; index++)
        item.code.push_back(scrip->code[index]);
    for(index = fixupoffset; index < scrip->numfixups; index++) {
        item.fixups.push_back(scrip->fixups[index]);
        item.fixuptypes.push_back(scrip->fixuptypes[index]);
    }
    item.codeoffset = codeoffset;
    item.fixupoffset = fixupoffset;
    list->push_back(item);
    scrip->codesize = codeoffset;
    scrip->numfixups = fixupoffset;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %ecx, %r13d
movl %edx, %ebp
movq %rsi, 0x60(%rsp)
movq %rdi, %r14
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x50(%rsp)
cmpl %edx, 0x20(%rdi)
jle 0x4859
movslq %ebp, %rbx
leaq (,%rbx,4), %r15
leaq 0x10(%rsp), %r12
movq 0x18(%r14), %rdx
addq %r15, %rdx
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x4841
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x4849
movq %r12, %rdi
callq 0xfca8
incq %rbx
movslq 0x20(%r14), %rax
addq $0x4, %r15
cmpq %rax, %rbx
jl 0x481f
movl %r13d, 0xc(%rsp)
cmpl %r13d, 0x48(%r14)
jle 0x48db
leaq 0x28(%rsp), %r12
leaq 0x40(%rsp), %r13
movslq 0xc(%rsp), %r15
leaq (,%r15,4), %rbx
movq 0x40(%r14), %rdx
addq %rbx, %rdx
movq 0x30(%rsp), %rsi
cmpq 0x38(%rsp), %rsi
je 0x489d
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x30(%rsp)
jmp 0x48a5
movq %r12, %rdi
callq 0xfca8
movq 0x38(%r14), %rdx
addq %r15, %rdx
movq 0x48(%rsp), %rsi
cmpq 0x50(%rsp), %rsi
je 0x48c3
movb (%rdx), %al
movb %al, (%rsi)
incq 0x48(%rsp)
jmp 0x48cb
movq %r13, %rdi
callq 0xfdc8
incq %r15
movslq 0x48(%r14), %rax
addq $0x4, %rbx
cmpq %rax, %r15
jl 0x487b
leaq 0x10(%rsp), %rsi
movl %ebp, 0x48(%rsi)
movl 0xc(%rsp), %ebx
movl %ebx, 0x4c(%rsi)
movq 0x60(%rsp), %rdi
callq 0xf980
movl %ebp, 0x20(%r14)
movl %ebx, 0x48(%r14)
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x4913
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x3320
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x492a
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x3320
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4941
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x3320
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4954
jmp 0x4954
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xf9aa
movq %rbx, %rdi
callq 0x3560
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: write_chunk(ccCompiledScript*, ccChunk)
void write_chunk(ccCompiledScript *scrip, ccChunk item) {
    int index;
    int limit;
    int adjust;

    scrip->flush_line_numbers();
    adjust = scrip->codesize - item.codeoffset;
    limit = item.code.size();
    for(index = 0; index < limit; index++) {
        scrip->write_code(item.code[index]);
    }
    limit = item.fixups.size();
    for(index = 0; index < limit; index++)
        scrip->add_fixup(item.fixups[index] + adjust, item.fixuptypes[index]);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x13d98
movl 0x20(%r14), %ebp
subl 0x48(%rbx), %ebp
movq 0x8(%rbx), %r15
subq (%rbx), %r15
shrq $0x2, %r15
testl %r15d, %r15d
jle 0x49b4
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
xorl %r12d, %r12d
movq (%rbx), %rax
movl (%rax,%r12,4), %esi
movq %r14, %rdi
callq 0x135a2
incq %r12
cmpq %r12, %r15
jne 0x499d
movq 0x20(%rbx), %r15
subq 0x18(%rbx), %r15
shrq $0x2, %r15
testl %r15d, %r15d
jle 0x49f2
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
xorl %r12d, %r12d
movq 0x18(%rbx), %rax
movq 0x30(%rbx), %rcx
movl (%rax,%r12,4), %esi
addl %ebp, %esi
movsbl (%rcx,%r12), %edx
movq %r14, %rdi
callq 0x138f8
incq %r12
cmpq %r12, %r15
jne 0x49cf
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: get_member_full_name(int, int)
const char *get_member_full_name(int structSym, int memberSym) {

    const char* memberName = sym.get_name(memberSym);

    // de-mangle name, if appropriate
    if (memberName[0] == '.')
        memberName = &memberName[1];

    sprintf(constructedMemberName, "%s::%s", sym.get_name(structSym), memberName);

    return constructedMemberName;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edi, %ebx
leaq 0x20b7a(%rip), %r14     # 0x256e0
movq %r14, %rdi
callq 0x1263e
xorl %r15d, %r15d
cmpb $0x2e, (%rax)
sete %r15b
addq %rax, %r15
movq %r14, %rdi
movl %ebx, %esi
callq 0x1263e
leaq 0x20824(%rip), %rbx     # 0x253b0
leaq 0x15ddd(%rip), %rsi     # 0x1a970
movq %rbx, %rdi
movq %rax, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x30d0
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: sym_find_or_add(symbolTable&, char const*)
int sym_find_or_add(symbolTable &sym, const char *sname) {
    int symdex = sym.find(sname);
    if (symdex < 0) {
        symdex = sym.add(sname);
    }
    return symdex;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x11f96
testl %eax, %eax
js 0x4bc7
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x12758
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: free_pointer(int, int, int, ccCompiledScript*)
void free_pointer(int spOffset, int zeroCmd, int arraySym, ccCompiledScript *scrip) {

    load_stack_variable(scrip, spOffset);
    scrip->write_cmd(zeroCmd);

    if ((sym.entries[arraySym].flags & (SFLG_ARRAY | SFLG_DYNAMICARRAY)) == SFLG_ARRAY) {
        // array of pointers -- release each one
        for (int ee = 1; ee < sym.entries[arraySym].arrsize; ee++) {
            scrip->write_cmd2(SCMD_ADD, SREG_MAR, 4);
            scrip->write_cmd(zeroCmd);
        }
    }

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movl %edx, %r14d
movl %esi, %ebp
movl %edi, %esi
movq %rcx, %rdi
callq 0x5291
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1359c
movslq %r14d, %rax
leaq 0x204b3(%rip), %r14     # 0x256e0
movq 0x28(%r14), %rcx
imulq $0xb0, %rax, %r15
movl $0x40002, %eax          # imm = 0x40002
andl 0x28(%rcx,%r15), %eax
cmpl $0x2, %eax
jne 0x5288
movq 0x28(%r14), %rax
cmpq $0x2, 0x48(%rax,%r15)
jl 0x5288
movl $0x1, %r12d
movq %rbx, %rdi
movl $0x1, %esi
movl $0x2, %edx
movl $0x4, %ecx
callq 0x1361c
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1359c
incq %r12
movq 0x28(%r14), %rax
cmpq %r12, 0x48(%rax,%r15)
jg 0x5259
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: load_stack_variable(ccCompiledScript*, int)
static void load_stack_variable(ccCompiledScript *scrip, int offset) {
	if(compiler_max_command >= SCMD_LOADSPOFFS) {
		scrip->write_cmd1(SCMD_LOADSPOFFS, offset);
	} else {
		scrip->write_cmd2(SCMD_REGTOREG,SREG_SP,SREG_MAR);
		scrip->write_cmd2(SCMD_SUB,SREG_MAR,offset);
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
cmpl $0x33, 0x2005f(%rip)    # 0x25300
jl 0x52b9
movq %r14, %rdi
movl $0x33, %esi
movl %ebx, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x135fc
movq %r14, %rdi
movl $0x3, %esi
movl $0x1, %edx
movl $0x2, %ecx
callq 0x1361c
movq %r14, %rdi
movl $0x2, %esi
movl $0x2, %edx
movl %ebx, %ecx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1361c
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: deal_with_end_of_do(long*, long*, ccCompiledScript*, ccInternalList*, int*)
int deal_with_end_of_do (long *nested_info, long *nested_start, ccCompiledScript *scrip, ccInternalList *targ, int *nestlevel) {
    int cursym;
    int nested_level;

    cursym = targ->getnext();
    nested_level = nestlevel[0];
    scrip->flush_line_numbers();
    if (sym.get_type(cursym) != SYM_WHILE) {
        cc_error("Do without while");
        return -1;
    }
    if (sym.get_type(targ->peeknext()) != SYM_OPENPARENTHESIS) {
        cc_error("expected '('");
        return -1;
    }
    scrip->flush_line_numbers();
    if (evaluate_expression(targ, scrip, 1, false))
        return -1;
    if (sym.get_type(targ->peeknext()) != SYM_SEMICOLON) {
        cc_error("expected ';'");
        return -1;
    }
    targ->getnext();
    // Jump back to the start of the loop while the condition is true
    scrip->write_cmd1(SCMD_JNZ, -((scrip->codesize + 2) - nested_start[nested_level]));
    // Write the correct location for the end of the loop
    scrip->code[nested_info[nested_level]] = (scrip->codesize - nested_info[nested_level]) - 1;
    nestlevel[0]--;

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r13
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, (%rsp)
movq %rcx, %rdi
callq 0x10f88
movq %rax, %rbp
movslq (%rbx), %r15
movq %r14, %rdi
callq 0x13d98
leaq 0x1fe99(%rip), %rdi     # 0x256e0
movl %ebp, %esi
callq 0x111aa
cmpl $0x1f, %eax
jne 0x58f1
movq %r13, %rdi
callq 0x10f22
leaq 0x1fe7a(%rip), %rdi     # 0x256e0
movl %eax, %esi
callq 0x111aa
cmpl $0x5, %eax
jne 0x58fa
movq %r14, %rdi
callq 0x13d98
movq %r13, %rdi
movq %r14, %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x592e
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x590d
movq %r13, %rdi
callq 0x10f22
leaq 0x1fe38(%rip), %rdi     # 0x256e0
movl %eax, %esi
callq 0x111aa
cmpl $0x28, %eax
jne 0x591e
movq %r13, %rdi
callq 0x10f88
movl (%r12,%r15,8), %edx
subl 0x20(%r14), %edx
addl $-0x2, %edx
movq %r14, %rdi
movl $0x46, %esi
callq 0x135fc
movq (%rsp), %rax
movq (%rax,%r15,8), %rax
movl %eax, %ecx
notl %ecx
addl 0x20(%r14), %ecx
movq 0x18(%r14), %rdx
movl %ecx, (%rdx,%rax,4)
decl (%rbx)
xorl %ebp, %ebp
jmp 0x590d
leaq 0x1512e(%rip), %rdi     # 0x1aa26
jmp 0x5901
leaq 0x15136(%rip), %rdi     # 0x1aa37
xorl %eax, %eax
callq 0x10418
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1511f(%rip), %rdi     # 0x1aa44
xorl %eax, %eax
callq 0x10418
jmp 0x590d
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: find_member_sym(int, long*, int)
int find_member_sym(int structSym, long *memSym, int allowProtected) {
    int oriname = *memSym;
    const char *possname = get_member_full_name(structSym, oriname);

    oriname = sym.find(possname);
    if (oriname < 0) {
        if (sym.entries[structSym].extends > 0) {
            // walk the inheritance tree to find the member
            if (find_member_sym(sym.entries[structSym].extends, memSym, allowProtected) == 0)
                return 0;
            // the inherited member was not found, so fall through to
            // the error message
        }
        cc_error("'%s' is not a public member of '%s'. Are you sure you spelt it correctly (remember, capital letters are important)?",sym.get_friendly_name(*memSym).c_str(),sym.get_friendly_name(structSym).c_str());
        return -1;
    }
    if ((!allowProtected) && (sym.entries[oriname].flags & SFLG_PROTECTED)) {
        cc_error("Cannot access protected member '%s'", sym.get_friendly_name(oriname).c_str());
        return -1;
    }
    *memSym = oriname;
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movl %edx, %r14d
movq %rsi, %rbx
movl %edi, %ebp
movl (%rsi), %esi
callq 0x4b58
leaq 0x1f864(%rip), %r15     # 0x256e0
leaq 0x1f52d(%rip), %rsi     # 0x253b0
movq %r15, %rdi
callq 0x11f96
testl %eax, %eax
js 0x5eb6
movl %eax, %ecx
testl %r14d, %r14d
jne 0x5eac
movq 0x28(%r15), %rdx
imulq $0xb0, %rcx, %rsi
testb $0x40, 0x29(%rdx,%rsi)
jne 0x5f3a
movq %rcx, (%rbx)
xorl %eax, %eax
jmp 0x5f81
movslq %ebp, %rax
movq 0x28(%r15), %rcx
imulq $0xb0, %rax, %rax
movswl 0x50(%rcx,%rax), %edi
testl %edi, %edi
jle 0x5edc
movq %rbx, %rsi
movl %r14d, %edx
callq 0x5e5c
testl %eax, %eax
je 0x5eaf
movl (%rbx), %edx
leaq 0x1f7fb(%rip), %r14     # 0x256e0
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x11fa0
movq (%rbx), %rbx
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x11fa0
movq 0x28(%rsp), %rdx
leaq 0x14b3e(%rip), %rdi     # 0x1aa51
movq %rbx, %rsi
xorl %eax, %eax
callq 0x10418
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5f61
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3320
jmp 0x5f61
leaq 0x1f79f(%rip), %rsi     # 0x256e0
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movl %eax, %edx
callq 0x11fa0
movq (%rbx), %rsi
leaq 0x14b6b(%rip), %rdi     # 0x1aac5
xorl %eax, %eax
callq 0x10418
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5f7c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3320
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5fae
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5fb1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3320
jmp 0x5fb1
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5fcc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3320
movq %rbx, %rdi
callq 0x3560
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: friendly_int_symbol[abi:cxx11](int, bool)
std::string friendly_int_symbol(int symidx, bool isNegative) {
    if (isNegative) {
        return "-" + sym.get_friendly_name(symidx);
    } else {
        return sym.get_friendly_name(symidx);
    }
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl %edx, %eax
movl %esi, %edx
movq %rdi, %rbx
leaq 0x1f6f7(%rip), %rsi     # 0x256e0
testl %eax, %eax
je 0x6035
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x11fa0
leaq 0x16a35(%rip), %rcx     # 0x1ca36
movl $0x1, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3390
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x603f
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x6045
movq %rbx, %rdi
callq 0x11fa0
jmp 0x6077
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6077
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3320
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x60a0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3320
movq %rbx, %rdi
callq 0x3560
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: check_not_eof(ccInternalList&)
int check_not_eof(ccInternalList &targ) {
  if (targ.peeknext() == SCODE_INVALID) {
    // We are past the last symbol in the file
    targ.getnext();
    currentline = targ.lineAtEnd;
    cc_error("Unexpected end of file");
    return -1;
  }
  return 0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x10f22
movq %rax, %rcx
xorl %eax, %eax
cmpq $-0x1, %rcx
jne 0x6330
movq %rbx, %rdi
callq 0x10f88
movl 0x14(%rbx), %eax
leaq 0x1f485(%rip), %rcx     # 0x257a0
movl %eax, (%rcx)
leaq 0x1484d(%rip), %rdi     # 0x1ab71
xorl %eax, %eax
callq 0x10418
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: check_for_default_value(ccInternalList&, int, int)
int check_for_default_value(ccInternalList &targ, int funcsym, int numparams) {

    if (sym.get_type(targ.peeknext()) == SYM_ASSIGN) {
        // parameter has default value
        targ.getnext();
        int defValSym = targ.getnext();
        bool negateIt = false;

        if (sym.get_name(defValSym)[0] == '-') {
            // allow negative default value
            negateIt = true;
            defValSym = targ.getnext();
        }

        int defaultValue;

        // extract the default value
        if (accept_literal_or_constant_value(defValSym, defaultValue, negateIt, "Parameter default value must be literal") < 0) {
            return -1;
        }

        sym.entries[funcsym].funcParamDefaultValues[numparams % 100] = defaultValue;
        sym.entries[funcsym].funcParamHasDefaultValues[numparams % 100] = true;

    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %r15
callq 0x10f22
leaq 0x1f38f(%rip), %rdi     # 0x256e0
movl %eax, %esi
callq 0x111aa
xorl %ebx, %ebx
cmpl $0x19, %eax
jne 0x6448
movq %r15, %rdi
callq 0x10f88
movq %r15, %rdi
callq 0x10f88
movq %rax, %r13
leaq 0x1f363(%rip), %rdi     # 0x256e0
movl %r13d, %esi
callq 0x1263e
movb (%rax), %r12b
cmpb $0x2d, %r12b
jne 0x6399
movq %r15, %rdi
callq 0x10f88
movq %rax, %r13
xorl %edx, %edx
cmpb $0x2d, %r12b
sete %dl
leaq 0x147df(%rip), %rcx     # 0x1ab88
leaq 0x4(%rsp), %rsi
movl %r13d, %edi
callq 0x60a8
testl %eax, %eax
js 0x6443
movl 0x4(%rsp), %eax
movslq %r14d, %rcx
leaq 0x1f314(%rip), %rdx     # 0x256e0
movq 0x28(%rdx), %rdx
imulq $0xb0, %rcx, %rsi
movslq %ebp, %rcx
imulq $0x51eb851f, %rcx, %rdi # imm = 0x51EB851F
movq %rdi, %r8
shrq $0x3f, %r8
sarq $0x25, %rdi
addl %r8d, %edi
imull $0x64, %edi, %edi
subl %edi, %ecx
movslq %ecx, %rcx
movq 0x70(%rdx,%rsi), %rdi
movl %eax, (%rdi,%rcx,4)
leaq 0x3f(%rcx), %rax
testq %rcx, %rcx
cmovnsq %rcx, %rax
sarq $0x6, %rax
shlq $0x3, %rax
addq 0x88(%rdx,%rsi), %rax
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
leaq 0x3f(%rdx), %rsi
andq %rcx, %rsi
xorl %edi, %edi
cmpq %rdx, %rsi
setbe %dil
movl $0x1, %edx
shlq %cl, %rdx
orq %rdx, -0x8(%rax,%rdi,8)
jmp 0x6448
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
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_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: check_for_dynamic_array_declaration(ccInternalList&, int, bool)
int check_for_dynamic_array_declaration(ccInternalList &targ, int typeSym, bool isPointer)
{
  if (sym.get_type(targ.peeknext()) == SYM_OPENBRACKET)
  {
    // dynamic array
    targ.getnext();
    if (sym.get_type(targ.getnext()) != SYM_CLOSEBRACKET)
    {
      cc_error("fixed size array cannot be used in this way");
      return -1;
    }
    if (sym.entries[typeSym].flags & SFLG_STRUCTTYPE) {
        if (!(sym.entries[typeSym].flags & SFLG_MANAGED)) {
            cc_error("cannot pass non-managed struct array");
            return -1;
        }
        if (!isPointer) {
            cc_error("cannot pass non-pointer struct array");
            return -1;
        }
    }
    return 1;
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
callq 0x10f22
leaq 0x1f270(%rip), %rdi     # 0x256e0
movl %eax, %esi
callq 0x111aa
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x7, %ecx
jne 0x64f5
movq %r14, %rdi
callq 0x10f88
movq %r14, %rdi
callq 0x10f88
leaq 0x1f249(%rip), %r14     # 0x256e0
movq %r14, %rdi
movl %eax, %esi
callq 0x111aa
cmpl $0x8, %eax
jne 0x64e2
movslq %ebp, %rax
movq 0x28(%r14), %rcx
imulq $0xb0, %rax, %rax
movq 0x28(%rcx,%rax), %rcx
movl $0x1, %eax
btl $0xa, %ecx
jae 0x64f5
shrl $0xc, %ecx
andl $0x1, %ecx
leaq 0x14730(%rip), %rdx     # 0x1ac01
leaq 0x14704(%rip), %rdi     # 0x1abdc
cmovneq %rdx, %rdi
testb %bl, %cl
je 0x64e9
jmp 0x64f5
leaq 0x146c7(%rip), %rdi     # 0x1abb0
xorl %eax, %eax
callq 0x10418
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: isPartOfExpression(ccInternalList*, int)
int isPartOfExpression(ccInternalList *targ, int j) {
  if (sym.get_type(targ->script[j]) == SYM_NEW)
    return 1;
  if (sym.get_type(targ->script[j]) < NOTEXPRESSION)
    return 1;
  // static member access
  if ((j < targ->length - 1) &&
      (sym.get_type(targ->script[j + 1]) == SYM_DOT) &&
      (sym.get_type(targ->script[j]) == SYM_VARTYPE))
    return 1;
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %r14
movq 0x8(%rdi), %rax
movslq %esi, %r15
movl (%rax,%r15,8), %esi
leaq 0x1e378(%rip), %rdi     # 0x256e0
callq 0x111aa
movl $0x1, %ebx
cmpl $0x35, %eax
je 0x73ce
movq 0x8(%r14), %rax
movl (%rax,%r15,8), %esi
leaq 0x1e35a(%rip), %rdi     # 0x256e0
callq 0x111aa
cmpl $0x17, %eax
jl 0x73ce
movl (%r14), %eax
decl %eax
cmpl %ebp, %eax
jle 0x73cc
movq 0x8(%r14), %rax
movl 0x8(%rax,%r15,8), %esi
leaq 0x1e337(%rip), %rdi     # 0x256e0
callq 0x111aa
cmpl $0x9, %eax
jne 0x73cc
movq 0x8(%r14), %rax
movl (%rax,%r15,8), %esi
leaq 0x1e31e(%rip), %rdi     # 0x256e0
callq 0x111aa
cmpl $0x2e, %eax
je 0x73ce
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: find_lowest_bonding_operator(long*, int)
int find_lowest_bonding_operator(long*slist,int listlen) {
  int k,blevel=0,plevel=0;
  int lowestis = 0,lowestat = -1;
  for (k=0;k<listlen;k++) {
    int thisType = sym.get_type(slist[k]);
    if (thisType == SYM_OPENBRACKET)
      blevel++;
    else if (thisType == SYM_CLOSEBRACKET)
      blevel--;
    else if (thisType == SYM_OPENPARENTHESIS)
      plevel++;
    else if (thisType == SYM_CLOSEPARENTHESIS)
      plevel--;

    if (((thisType == SYM_OPERATOR) || (thisType == SYM_NEW)) &&
        (plevel == 0) && (blevel == 0)) {
      // .ssize stores the precedence
      int thisIsTheOperator = 0;
      if (ccGetOption(SCOPT_LEFTTORIGHT)) {
        // left-to-right; find the right-most operator, then
        // they will be recursively processed left
        if (sym.entries[slist[k]].ssize >= lowestis)
          thisIsTheOperator = 1;
      }
      else {
        // right-to-left; find the left-most operator, then
        // they will be recursively processed right
        if (sym.entries[slist[k]].ssize > lowestis)
          thisIsTheOperator = 1;
      }
      if (thisIsTheOperator) {
        lowestis = sym.entries[slist[k]].ssize;
        lowestat = k;
      }
    }
  }
  return lowestat;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %esi, %esi
jle 0x74bd
movq %rdi, %rbx
movl %esi, %r15d
xorl %r12d, %r12d
movl $0xffffffff, (%rsp)     # imm = 0xFFFFFFFF
leaq 0x1e2db(%rip), %r14     # 0x256e0
movl $0x0, 0x4(%rsp)
xorl %ebp, %ebp
xorl %r13d, %r13d
movl (%rbx,%r12,8), %esi
movq %r14, %rdi
callq 0x111aa
leal -0x5(%rax), %ecx
cmpl $0x3, %ecx
ja 0x7446
leaq 0x13433(%rip), %rdx     # 0x1a860
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
incl %ebp
jmp 0x7446
incl %r13d
jmp 0x7446
decl %r13d
jmp 0x7446
decl %ebp
cmpl $0x3, %eax
setne %cl
cmpl $0x35, %eax
setne %al
testb %al, %cl
jne 0x74af
testl %ebp, %ebp
jne 0x74af
testl %r13d, %r13d
jne 0x74af
movl $0x40, %edi
callq 0x140a4
imulq $0xb0, (%rbx,%r12,8), %rcx
movq 0x28(%r14), %rdx
movslq 0x4(%rsp), %rsi
xorl %edi, %edi
xorl %r8d, %r8d
cmpq %rsi, 0x38(%rdx,%rcx)
setl %dil
setle %r8b
testl %eax, %eax
cmovel %r8d, %edi
testb %dil, %dil
jne 0x74af
movq 0x28(%r14), %rax
imulq $0xb0, (%rbx,%r12,8), %rcx
movl 0x38(%rax,%rcx), %eax
movl %eax, 0x4(%rsp)
movl %r12d, (%rsp)
incq %r12
cmpq %r12, %r15
jne 0x7412
jmp 0x74c4
movl $0xffffffff, (%rsp)     # imm = 0xFFFFFFFF
movl (%rsp), %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: is_string(int)
int is_string(int valtype) {

  if (strcmp(sym.get_name(valtype),"const string")==0)
    return 1;
  if (strcmp(sym.get_name(valtype),"string")==0)
    return 1;
  if (strcmp(sym.get_name(valtype),"char*")==0)
    return 1;

  return 0;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
leaq 0x1e1fe(%rip), %rdi     # 0x256e0
movl %ebx, %esi
callq 0x1263e
leaq 0x13b13(%rip), %rsi     # 0x1b003
movq %rax, %rdi
callq 0x3450
movl $0x1, %ebp
testl %eax, %eax
je 0x7547
leaq 0x1e1d8(%rip), %rdi     # 0x256e0
movl %ebx, %esi
callq 0x1263e
leaq 0x15ee3(%rip), %rsi     # 0x1d3f9
movq %rax, %rdi
callq 0x3450
testl %eax, %eax
je 0x7547
leaq 0x1e1b7(%rip), %rdi     # 0x256e0
movl %ebx, %esi
callq 0x1263e
leaq 0x13ad9(%rip), %rsi     # 0x1b010
movq %rax, %rdi
callq 0x3450
xorl %ebp, %ebp
testl %eax, %eax
sete %bpl
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: DoNullCheckOnStringInAXIfNecessary(ccCompiledScript*, int, int)
void DoNullCheckOnStringInAXIfNecessary(ccCompiledScript *scrip, int valTypeFrom, int valTypeTo) {

  // Convert normal literal string into String object
  if (((valTypeFrom & (~STYPE_POINTER)) == sym.stringStructSym) &&
     ((valTypeTo & (~STYPE_CONST)) == sym.normalStringSym)) {

    scrip->write_cmd1(SCMD_CHECKNULLREG, SREG_AX);
  }

}

// Assembly:
andl $0xbfffffff, %esi       # imm = 0xBFFFFFFF
leaq 0x1d755(%rip), %rax     # 0x256e0
cmpl 0x20(%rax), %esi
jne 0x7faa
andl $0xdfffffff, %edx       # imm = 0xDFFFFFFF
cmpl 0x10(%rax), %edx
jne 0x7faa
movl $0x43, %esi
movl $0x3, %edx
jmp 0x135fc
retq
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: PerformStringConversionInAX(ccCompiledScript*, int*, int)
void PerformStringConversionInAX(ccCompiledScript *scrip, int *valTypeFrom, int valTypeTo) {

  // Convert normal literal string into String object
  if (((*valTypeFrom & (~STYPE_CONST)) == sym.normalStringSym) &&
     ((valTypeTo & (~STYPE_POINTER)) == sym.stringStructSym)) {

    scrip->write_cmd1(SCMD_CREATESTRING, SREG_AX);
    *valTypeFrom = STYPE_POINTER | sym.stringStructSym;
  }

}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl $0xdfffffff, %eax       # imm = 0xDFFFFFFF
andl (%rsi), %eax
leaq 0x1d723(%rip), %r14     # 0x256e0
cmpl 0x10(%r14), %eax
jne 0x7fec
andl $0xbfffffff, %edx       # imm = 0xBFFFFFFF
cmpl 0x20(%r14), %edx
jne 0x7fec
movq %rsi, %rbx
movl $0x40, %esi
movl $0x3, %edx
callq 0x135fc
movl $0x40000000, %eax       # imm = 0x40000000
orl 0x20(%r14), %eax
movl %eax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: set_ax_scope(ccCompiledScript*, int)
void set_ax_scope(ccCompiledScript *scrip, int syoffs) {
  // "null" is a global var
  if (sym.get_type(syoffs) == SYM_NULL)
    scrip->ax_val_scope = SYM_GLOBALVAR;
  // if it's a parameter, pretend it's a global var
  // this allows it to be returned back from the function
  else if (sym.entries[syoffs].flags & SFLG_PARAMETER)
    scrip->ax_val_scope = SYM_GLOBALVAR;
  else
    scrip->ax_val_scope = sym.entries[syoffs].stype;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x1d6dc(%rip), %r14     # 0x256e0
movq %r14, %rdi
callq 0x111aa
movl $0x1, %ecx
cmpl $0x15, %eax
je 0x8032
movslq %ebp, %rdx
movq 0x28(%r14), %rax
imulq $0xb0, %rdx, %rdx
testb $0x1, 0x28(%rax,%rdx)
jne 0x8032
addq %rdx, %rax
movswl 0x20(%rax), %ecx
movl %ecx, 0x8d50(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: findClosingBracketOffs(int, long*, int)
int findClosingBracketOffs(int openBracketOffs, long *symlist, int slilen) {
  int endof,braclevel=0;
  for (endof = openBracketOffs + 1; endof < slilen; endof++) {
    int symtype = sym.get_type(symlist[endof]);
    if ((symtype == SYM_OPENBRACKET) || (symtype == SYM_OPENPARENTHESIS))
      braclevel++;
    if ((symtype == SYM_CLOSEBRACKET) || (symtype == SYM_CLOSEPARENTHESIS)) {
      braclevel--;
      if (braclevel < 0) break;
    }
  }
  return endof;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebx
movslq %edi, %r12
movslq %edx, %r13
leal 0x1(%r12), %eax
cmpl %eax, %r13d
cmovgl %r13d, %eax
movl %eax, 0x4(%rsp)
movq %rsi, %r14
incq %r12
xorl %ebp, %ebp
leaq 0x1d671(%rip), %r15     # 0x256e0
cmpq %r13, %r12
jge 0x80b0
movl (%r14,%r12,8), %esi
movq %r15, %rdi
callq 0x111aa
movl %eax, %ecx
andl $-0x3, %ecx
xorl %edx, %edx
cmpl $0x5, %ecx
sete %dl
addl %edx, %ebp
cmpl $0x8, %eax
je 0x809b
movb $0x1, %cl
cmpl $0x6, %eax
jne 0x80a5
testl %ebp, %ebp
leal -0x1(%rbp), %eax
setg %cl
movl %eax, %ebp
incl %ebx
incq %r12
testb %cl, %cl
jne 0x806f
jmp 0x80b4
movl 0x4(%rsp), %ebx
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_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: findOpeningBracketOffs(int, long*)
int findOpeningBracketOffs(int closeBracketOffs, long *symlist) {
  int endof,braclevel=0;
  for (endof = closeBracketOffs - 1; endof >= 0; endof--) {
    int symtype = sym.get_type(symlist[endof]);
    if ((symtype == SYM_OPENBRACKET) || (symtype == SYM_OPENPARENTHESIS)) {
      braclevel--;
      if (braclevel < 0) break;
    }
    if ((symtype == SYM_CLOSEBRACKET) || (symtype == SYM_CLOSEPARENTHESIS))
      braclevel++;
  }
  return endof;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movl %edi, %r12d
xorl %r13d, %r13d
leaq 0x1d602(%rip), %r14     # 0x256e0
movq %r12, %r15
testl %r15d, %r15d
jle 0x812d
leaq -0x1(%r15), %r12
movl %r12d, %eax
movl (%rbx,%rax,8), %esi
movq %r14, %rdi
callq 0x111aa
movl %eax, %ecx
andl $-0x3, %ecx
cmpl $0x5, %ecx
jne 0x810e
leal -0x1(%r13), %edx
testl %r13d, %r13d
jle 0x8129
movl %edx, %r13d
movb $0x1, %cl
cmpl $0x8, %eax
je 0x811a
cmpl $0x6, %eax
jne 0x811d
incl %r13d
movl %r13d, %edx
movl %edx, %r13d
testb %cl, %cl
jne 0x80de
jmp 0x812d
xorl %ecx, %ecx
jmp 0x8120
decl %r15d
movl %r15d, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: extractPathIntoParts(VariableSymlist*, int, long*)
int extractPathIntoParts(VariableSymlist *variablePath, int slilen, long *syml) {
  int variablePathSize = 0;
  int lastOffs = 0;
  int pp;

  // Separate out syml into a VariablePath for the clause
  // between each dot. If it's just a simple variable access,
  // we will only create one.
  for (pp = 0; pp < slilen; pp++) {
    if ((sym.get_type(syml[pp]) == SYM_OPENBRACKET) ||
        (sym.get_type(syml[pp]) == SYM_OPENPARENTHESIS)) {
      // an array index, skip it
      pp = findClosingBracketOffs(pp, syml, slilen);
    }

    int createPath = 0;

    if (sym.get_type(syml[pp]) == SYM_DOT) {
      createPath = 1;
    }
    else if (pp >= slilen - 1) {
      // end of data stream, store the last bit
      pp++;
      createPath = 1;
    }

    if (createPath) {
      if (variablePathSize >= MAX_VARIABLE_PATH) {
        cc_error("variable path too long");
        return -1;
      }
      VariableSymlist *vpp = &variablePath[variablePathSize];
      vpp->init(pp - lastOffs);
      for (int ee = 0; ee < vpp->len; ee++) {
        vpp->syml[ee] = syml[lastOffs + ee];
      }
      lastOffs = pp + 1;
      variablePathSize++;
    }
  }

  return variablePathSize;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
testl %esi, %esi
jle 0x8284
movq %rdx, %rbx
movl %esi, %r14d
leal -0x1(%r14), %esi
xorl %r13d, %r13d
leaq 0x1d574(%rip), %rbp     # 0x256e0
xorl %r15d, %r15d
movl $0x0, 0x8(%rsp)
movq %r14, 0x18(%rsp)
movl %esi, 0xc(%rsp)
movq %rdx, 0x10(%rsp)
movslq %r13d, %r12
movl (%rbx,%r12,8), %esi
movq %rbp, %rdi
callq 0x111aa
cmpl $0x7, %eax
je 0x81aa
movl (%rbx,%r12,8), %esi
movq %rbp, %rdi
callq 0x111aa
cmpl $0x5, %eax
jne 0x81bb
movl %r13d, %edi
movq %rbx, %rsi
movl %r14d, %edx
callq 0x803d
movl %eax, %r13d
movslq %r13d, %r12
movl (%rbx,%r12,8), %esi
movq %rbp, %rdi
callq 0x111aa
cmpl $0x9, %eax
setne %cl
movl 0xc(%rsp), %esi
cmpl %esi, %r12d
setge %dl
andb %cl, %dl
movzbl %dl, %ebp
addl %r13d, %ebp
movb $0x1, %r12b
cmpl $0x9, %eax
je 0x81ef
cmpl %esi, %r13d
jl 0x8268
movl 0x8(%rsp), %eax
cmpl $0xa, %eax
jl 0x820b
xorl %r12d, %r12d
leaq 0x12fea(%rip), %rdi     # 0x1b1ec
xorl %eax, %eax
callq 0x10418
jmp 0x8268
movslq %eax, %r13
shlq $0x4, %r13
movl %ebp, %eax
subl %r15d, %eax
movq 0x20(%rsp), %r14
movl %eax, (%r14,%r13)
movslq %eax, %rbx
leaq (,%rbx,8), %rdi
callq 0x3440
movq %rax, 0x8(%r14,%r13)
testl %ebx, %ebx
movq 0x10(%rsp), %rbx
jle 0x825b
movslq %r15d, %rcx
leaq (%rbx,%rcx,8), %rsi
notl %r15d
addl %ebp, %r15d
leaq 0x8(,%r15,8), %rdx
movq %rax, %rdi
callq 0x3290
leal 0x1(%rbp), %r15d
incl 0x8(%rsp)
movq 0x18(%rsp), %r14
testb %r12b, %r12b
je 0x828e
incl %ebp
movl %ebp, %r13d
cmpl %r14d, %ebp
leaq 0x1d464(%rip), %rbp     # 0x256e0
jl 0x8185
jmp 0x8296
movl $0x0, 0x8(%rsp)
jmp 0x8296
movl $0xffffffff, 0x8(%rsp)  # imm = 0xFFFFFFFF
movl 0x8(%rsp), %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: get_readcmd_for_size(int, int)
int get_readcmd_for_size(int sizz, int writeinstead) {
  int readcmd = SCMD_MEMREAD;
  if (writeinstead) {
    readcmd = SCMD_MEMWRITE;
    if (sizz == 1)
      readcmd = SCMD_MEMWRITEB;
    else if (sizz == 2)
      readcmd = SCMD_MEMWRITEW;
    }
  else if (sizz == 1)
    readcmd = SCMD_MEMREADB;
  else if (sizz == 2)
    readcmd = SCMD_MEMREADW;

  if (sizz!=0)
    readcmd_lastcalledwith = sizz;
  return readcmd;
  }

// Assembly:
testl %edi, %edi
je 0x82b3
movl %edi, 0x1d3fd(%rip)     # 0x256b0
cmpl $0x2, %edi
movl $0x19, %eax
movl $0x7, %ecx
cmovel %eax, %ecx
movl $0x1b, %eax
movl $0x8, %edx
cmovel %eax, %edx
cmpl $0x1, %edi
movl $0x18, %edi
cmovnel %ecx, %edi
movl $0x1a, %eax
cmovnel %edx, %eax
testl %esi, %esi
cmovel %edi, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: isRawPointer(int)
static int isRawPointer(int n) {
  return sym.entries[n].vartype == sym.normalIntSym &&
         sym.entries[n].flags & SFLG_ARRAY &&
         sym.entries[n].arrsize == 0 &&
         (sym.entries[n].flags & SFLG_DYNAMICARRAY) == 0;
}

// Assembly:
movslq %edi, %rax
leaq 0x1be7a(%rip), %rsi     # 0x256e0
movq 0x28(%rsi), %rcx
imulq $0xb0, %rax, %rdx
movswl 0x30(%rcx,%rdx), %edi
xorl %eax, %eax
cmpl %edi, (%rsi)
jne 0x988f
addq %rdx, %rcx
movq 0x28(%rcx), %rdx
testb $0x2, %dl
je 0x988f
cmpq $0x0, 0x48(%rcx)
je 0x9890
retq
xorl %eax, %eax
btl $0x12, %edx
setae %al
retq
// File: /workspace/github_cpp_makefile_star2_O1/rofl0r[P]ascc/cs_parser.cpp
// Function: cc_compile(char const*, ccCompiledScript*)
int cc_compile(const char*inpl, ccCompiledScript*scrip) {
    int toret = 0;
   /* this block of code until after free() is commented out in upstream ags,
      they replaced it with a C# version */
    /* this malloc might not alloc enough memory */
    char*mainbuf=(char*)malloc(strlen(inpl)+5000);
    ccError = 0;
    // run the preprocessor on the code
    cc_preprocess(inpl, mainbuf);
    if (ccError) return -1;
    // now, compile the preprocessed code
    if (__cc_compile_file(mainbuf,scrip))
    toret=-1;
    free(mainbuf);

    return toret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r15
callq 0x31a0
leaq 0x1388(%rax), %rdi
callq 0x3440
movq %rax, %r14
leaq 0x15d83(%rip), %r12     # 0x256c0
movl $0x0, (%r12)
movq %r15, %rdi
movq %rax, %rsi
callq 0x179a3
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpl $0x0, (%r12)
jne 0xf975
movq %r14, %rdi
movq %rbx, %rsi
callq 0xbadd
xorl %ebp, %ebp
negl %eax
sbbl %ebp, %ebp
movq %r14, %rdi
callq 0x33c0
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq