LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/MaoKo[P]FGFX/fgfl/src/gen_dfa.c
// Function: gen_token_enum
void
gen_token_enum(int filde, lexical_spec_t const* spec) {
    size_t size_entry = SIZE_VECTOR(spec->entry_vect);
    dprintf(filde, ENUM SP BEG_BLOCK NL);

    for (size_t i = 0; i < size_entry; ++i) {
        spec_entry_t* entry = (spec_entry_t*)AT_VECTOR(spec->entry_vect, i);
        ENUM_TOKEN_LINE(filde, entry->name);
    }

    ENUM_TOKEN_LINE(filde, "ERROR");
    ENUM_TOKEN_LINE(filde, "EOF");

    dprintf(filde, END_BLOCK SEMI NL NL);
    dprintf(filde, DEFINE(%s, %zu) NL NL, MACRO_TOKEN, size_entry + 2);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movl %edi, %r14d
movq 0x8(%rsi), %rax
movq 0x10(%rax), %rbx
leaq 0x2d6b(%rip), %rsi      # 0xbe4c
xorl %eax, %eax
callq 0x2110
testq %rbx, %rbx
je 0x911b
leaq 0x2db2(%rip), %r12      # 0xbea6
xorl %r13d, %r13d
movq 0x8(%r15), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rax
movq 0x10(%rax), %rdx
movl %r14d, %edi
movq %r12, %rsi
xorl %eax, %eax
callq 0x2110
incq %r13
cmpq %r13, %rbx
jne 0x90f7
leaq 0x2d84(%rip), %r15      # 0xbea6
leaq 0x1e69(%rip), %rdx      # 0xaf92
movl %r14d, %edi
movq %r15, %rsi
xorl %eax, %eax
callq 0x2110
leaq 0x20dd(%rip), %rdx      # 0xb21a
movl %r14d, %edi
movq %r15, %rsi
xorl %eax, %eax
callq 0x2110
leaq 0x2f04(%rip), %rsi      # 0xc055
movl %r14d, %edi
xorl %eax, %eax
callq 0x2110
addq $0x2, %rbx
leaq 0x2d48(%rip), %rsi      # 0xbeae
leaq 0x2d52(%rip), %rdx      # 0xbebf
movl %r14d, %edi
movq %rbx, %rcx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2110
// File: /workspace/github_c_makefile_star2_O1/MaoKo[P]FGFX/fgfl/src/gen_dfa.c
// Function: gen_token_name
void
gen_token_name(int filde, lexical_spec_t const* spec, char const* header) {
    PRINT_IF_0(filde);
    size_t size_entry = SIZE_VECTOR(spec->entry_vect);

    dprintf(filde, STATIC SP CHAR SP CONST STAR NL);
    gen_verbatim_file(filde, header);

    dprintf(filde, SEP "token_name_table[%zu] = " BEG_BLOCK NL, size_entry + 2);
    for (size_t i = 0; i < size_entry; ++i) {
        spec_entry_t* crt_entry = (spec_entry_t*)AT_VECTOR(spec->entry_vect, i);
        dprintf(filde, TAB "\"%s\"" COMMA NL, crt_entry->name);
    }

    dprintf(filde, TAB "\"ERROR\"" COMMA NL);
    dprintf(filde, TAB "\"EOF\"" COMMA NL);

    dprintf(filde, END_BLOCK SEMI NL NL);
    PRINT_END_IF(filde);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r14
movl %edi, %ebx
leaq 0x2d26(%rip), %rsi      # 0xbecb
xorl %eax, %eax
callq 0x2110
movq 0x8(%r14), %rax
movq 0x10(%rax), %r12
leaq 0x2d18(%rip), %rsi      # 0xbed3
movl %ebx, %edi
xorl %eax, %eax
callq 0x2110
movl %ebx, %edi
movq %r15, %rsi
callq 0x3fe6
leaq 0x2(%r12), %rdx
leaq 0x2d0d(%rip), %rsi      # 0xbee7
movl %ebx, %edi
xorl %eax, %eax
callq 0x2110
testq %r12, %r12
je 0x9215
leaq 0x2d14(%rip), %r15      # 0xbf03
xorl %r13d, %r13d
movq 0x8(%r14), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rax
movq 0x10(%rax), %rdx
movl %ebx, %edi
movq %r15, %rsi
xorl %eax, %eax
callq 0x2110
incq %r13
cmpq %r13, %r12
jne 0x91f2
leaq 0x2cef(%rip), %rsi      # 0xbf0b
movl %ebx, %edi
xorl %eax, %eax
callq 0x2110
leaq 0x2cea(%rip), %rsi      # 0xbf16
movl %ebx, %edi
xorl %eax, %eax
callq 0x2110
leaq 0x2e19(%rip), %rsi      # 0xc055
movl %ebx, %edi
xorl %eax, %eax
callq 0x2110
leaq 0x2cd3(%rip), %rsi      # 0xbf1f
movl %ebx, %edi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2110
// File: /workspace/github_c_makefile_star2_O1/MaoKo[P]FGFX/fgfl/src/gen_dfa.c
// Function: gen_ahead_table
void
gen_ahead_table(int filde, lexical_spec_t const* spec,
                            char const* header, spec_entry_t const* state) {
    bool first_seen = false;
    size_t size_states = SIZE_VECTOR(spec->states);

    for (size_t i = 1; i < size_states; ++i) {
        dfa_state_t* crt_state = (dfa_state_t*)AT_VECTOR(spec->states, i);
        if (!crt_state->must_ahead)
            { continue; }
        else if (!first_seen) {
            dprintf(filde, STATIC SP "uint8_t" NL);
            gen_verbatim_file(filde, header);

            dprintf(filde, SEP);
            gen_state_name(filde, state);

            dprintf(filde, "ahead_table[%zu][2] = " BEG_BLOCK NL, size_states);
            first_seen = true;
        }
        dprintf(filde, TAB "[%ld]" SP "=" SP BEG_BLOCK SP "true" COMMA SP
                        "%s" COMMA SP END_BLOCK COMMA NL, i,
                        (crt_state->must_reload) ? SP "true" : "false");
    }
    if (first_seen)
        { dprintf(filde, END_BLOCK SEMI NL NL); }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, -0x48(%rbp)
movq 0x28(%rsi), %rax
movq 0x10(%rax), %r13
cmpq $0x2, %r13
jb 0x952a
movl %edi, %ebx
movq %rcx, -0x40(%rbp)
movl $0x1, %r15d
movl $0x0, -0x2c(%rbp)
leaq 0x1b0e(%rip), %r14      # 0xaf46
movq %rsi, -0x50(%rbp)
movq %r13, -0x38(%rbp)
movq 0x28(%rsi), %rax
movq (%rax), %rax
movq (%rax,%r15,8), %r12
cmpb $0x1, 0x20(%r12)
jne 0x94fa
testb $0x1, -0x2c(%rbp)
jne 0x94cd
movl %ebx, %edi
leaq 0x2b03(%rip), %rsi      # 0xbf69
xorl %eax, %eax
callq 0x2110
movl %ebx, %edi
movq -0x48(%rbp), %rsi
callq 0x3fe6
movl %ebx, %edi
movq %r14, %r13
movq %r14, %rsi
xorl %eax, %eax
callq 0x2110
leaq 0x2c67(%rip), %rdx      # 0xc0f5
movq %rdx, %rcx
movq -0x40(%rbp), %rax
testq %rax, %rax
je 0x94a1
movq 0x10(%rax), %rdx
movq %r13, %rcx
movl %ebx, %edi
leaq 0x2bd4(%rip), %rsi      # 0xc07e
xorl %eax, %eax
callq 0x2110
movl %ebx, %edi
leaq 0x2abf(%rip), %rsi      # 0xbf79
movq -0x38(%rbp), %r13
movq %r13, %rdx
xorl %eax, %eax
callq 0x2110
movb $0x1, %al
movl %eax, -0x2c(%rbp)
cmpb $0x0, 0x21(%r12)
leaq 0x2ad1(%rip), %rcx      # 0xbfab
jne 0x94e3
leaq 0x2ace(%rip), %rcx      # 0xbfb1
movl %ebx, %edi
leaq 0x2aa6(%rip), %rsi      # 0xbf92
movq %r15, %rdx
xorl %eax, %eax
callq 0x2110
movq -0x50(%rbp), %rsi
incq %r15
cmpq %r15, %r13
jne 0x9440
testb $0x1, -0x2c(%rbp)
je 0x952a
leaq 0x2b42(%rip), %rsi      # 0xc055
movl %ebx, %edi
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2110
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lucvoo[P]sparse-dev/test-parsing.c
// Function: main
int main(int argc, char **argv)
{
	struct symbol_list * list;
	struct string_list * filelist = NULL;
	char *file;

	list = sparse_initialize(argc, argv, &filelist);

	// Simplification
	clean_up_symbols(list);

#if 1
	show_symbol_list(list);
	printf("\n\n");
#endif

	FOR_EACH_PTR(filelist, file) {
		list = sparse(file);

		// Simplification
		clean_up_symbols(list);

#if 1
		// Show the end result.
		show_symbol_list(list);
		printf("\n\n");
#endif
	} END_FOR_EACH_PTR(file);

#if 0
	// And show the allocation statistics
	show_ident_alloc();
	show_token_alloc();
	show_symbol_alloc();
	show_expression_alloc();
	show_statement_alloc();
	show_string_alloc();
	show_bytes_alloc();
#endif
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
leaq 0x8(%rsp), %rbx
movq $0x0, (%rbx)
movq %rbx, %rdx
callq 0x11daa
movq %rax, %r14
movq %rax, %rdi
callq 0xea58
movq %r14, %rdi
callq 0x1cede
leaq 0x331f8(%rip), %rdi     # 0x41bcf
callq 0xe0a0
movq (%rbx), %r15
testq %r15, %r15
je 0xea48
leaq 0x331e4(%rip), %rbx     # 0x41bcf
movq %r15, %r12
movzwl (%r12), %eax
testb %al, %al
jle 0xea3e
xorl %r13d, %r13d
movq 0x18(%r12,%r13,8), %rdi
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0xea0e
testq %rdi, %rdi
je 0xea2e
callq 0x120ea
movq %rax, %r14
movq %rax, %rdi
callq 0xea58
movq %r14, %rdi
callq 0x1cede
movq %rbx, %rdi
callq 0xe0a0
incq %r13
movl (%r12), %eax
movsbq %al, %rcx
cmpq %rcx, %r13
jl 0xe9fa
movq 0x10(%r12), %r12
cmpq %r15, %r12
jne 0xe9ee
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/lucvoo[P]sparse-dev/test-parsing.c
// Function: clean_up_symbols
static void clean_up_symbols(struct symbol_list *list)
{
	struct symbol *sym;

	FOR_EACH_PTR(list, sym) {
		expand_symbol(sym);
	} END_FOR_EACH_PTR(sym);
}

// Assembly:
testq %rdi, %rdi
je 0xeaa9
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq %rdi, %r14
movzwl (%r14), %eax
testb %al, %al
jle 0xea9b
xorl %r15d, %r15d
movq 0x18(%r14,%r15,8), %rdi
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0xea87
testq %rdi, %rdi
je 0xea8c
callq 0xed44
incq %r15
movl (%r14), %eax
movsbq %al, %rcx
cmpq %rcx, %r15
jl 0xea73
movq 0x10(%r14), %r14
cmpq %rbx, %r14
jne 0xea68
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O1/ammarfaizi2[P]hashtable/src/no_hash.c
// Function: tdiff
long long tdiff(struct timespec clock1, struct timespec clock2)
{
  clock2.tv_sec -= clock1.tv_sec;
  clock2.tv_nsec -= clock1.tv_nsec;
  if (clock2.tv_nsec < 0) {
    clock2.tv_sec -= 1;
    clock2.tv_nsec += 1000000000;
  }
  return 1000000000*clock2.tv_sec + clock2.tv_nsec;
}

// Assembly:
subq %rdi, %rdx
subq %rsi, %rcx
leaq 0x3b9aca00(%rcx), %rsi
testq %rcx, %rcx
cmovnsq %rcx, %rsi
sarq $0x3f, %rcx
addq %rdx, %rcx
imulq $0x3b9aca00, %rcx, %rax # imm = 0x3B9ACA00
addq %rsi, %rax
retq
// File: /workspace/github_c_makefile_star2_O1/ammarfaizi2[P]hashtable/src/no_hash.c
// Function: main
int
main()
{
  const char *data = NULL;
  struct timespec clock1, clock2;

  clock_gettime(CLOCK_MONOTONIC, &clock1);
  for (size_t i = 0; i < (sizeof(list)/sizeof(list[0])); i++) {
    if (!strcmp(list[i][0], "SutNmukuaOWUZJaHtaayfBrwXkEvyURBdwiTXneTIvsVSkPlhWbYBxRmUhWaFnbdWqyAnqsxXqifoZsJIDiFqWVvlBrilzUbqcgR")) {
      data = list[i][1];
      break;
    }
  }
  clock_gettime(CLOCK_MONOTONIC, &clock2);
  printf("%8lli ms\n", tdiff(clock1, clock2)/1000000);

  if (data != NULL) {
    printf("%s\n", data);
  } else {
    printf("Not Found\n");
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsp, %rsi
movl $0x1, %edi
callq 0x1040
movq 0x2e37(%rip), %rbx      # 0x3fe8
xorl %r15d, %r15d
leaq 0xe49(%rip), %r14       # 0x2004
xorl %r12d, %r12d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1060
testl %eax, %eax
je 0x11e6
addq $-0x190, %r12           # imm = 0xFE70
addq $0x190, %rbx            # imm = 0x190
cmpq $-0x2625a00, %r12       # imm = 0xFD9DA600
jne 0x11be
jmp 0x11f7
movq 0x2dfb(%rip), %r15      # 0x3fe8
subq %r12, %r15
addq $0xc8, %r15
leaq 0x10(%rsp), %rbx
movl $0x1, %edi
movq %rbx, %rsi
callq 0x1040
vmovdqa (%rbx), %xmm0
vpsubq (%rsp), %xmm0, %xmm0
vpextrq $0x1, %xmm0, %rax
leaq 0x3b9aca00(%rax), %rcx
testq %rax, %rax
cmovnsq %rax, %rcx
sarq $0x3f, %rax
vmovq %xmm0, %rdx
addq %rax, %rdx
imulq $0x3b9aca00, %rdx, %rax # imm = 0x3B9ACA00
addq %rcx, %rax
movabsq $0x431bde82d7b634db, %rcx # imm = 0x431BDE82D7B634DB
imulq %rcx
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x12, %rdx
addq %rdx, %rsi
leaq 0xe0b(%rip), %rdi       # 0x2069
xorl %eax, %eax
callq 0x1050
testq %r15, %r15
leaq 0xe04(%rip), %rdi       # 0x2073
cmovneq %r15, %rdi
callq 0x1030
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/sharpyfox[P]citrusleaf-client/example/main.c
// Function: usage
void usage(void) {
	fprintf(stderr, "Usage example:\n");
	fprintf(stderr, "-h host [default 127.0.0.1] \n");
	fprintf(stderr, "-p port [default 3000]\n");
	fprintf(stderr, "-n namespace [default test]\n");
	fprintf(stderr, "-b bin [default value]\n");
	fprintf(stderr, "-m milliseconds timeout [default 200]\n");
	fprintf(stderr, "-f do not follow cluster [default do follow]\n");
	fprintf(stderr, "-r use shared memory [default false]\n");
	fprintf(stderr, "-v is verbose\n");
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq 0x13ac4(%rip), %r15     # 0x18fe0
movq (%r15), %rcx
leaq 0xcc95(%rip), %rdi      # 0x121bb
pushq $0xf
popq %rsi
pushq $0x1
popq %rbx
movq %rbx, %rdx
callq 0x54e0
movq (%r15), %rcx
leaq 0xcc8d(%rip), %rdi      # 0x121cb
pushq $0x1d
popq %rsi
movq %rbx, %rdx
callq 0x54e0
movq (%r15), %rcx
leaq 0xcc96(%rip), %rdi      # 0x121e9
pushq $0x17
popq %r14
movq %r14, %rsi
movq %rbx, %rdx
callq 0x54e0
movq (%r15), %rcx
leaq 0xcc95(%rip), %rdi      # 0x12201
pushq $0x1c
popq %rsi
movq %rbx, %rdx
callq 0x54e0
movq (%r15), %rcx
leaq 0xcc9d(%rip), %rdi      # 0x1221e
movq %r14, %rsi
movq %rbx, %rdx
callq 0x54e0
movq (%r15), %rcx
leaq 0xcca0(%rip), %rdi      # 0x12236
pushq $0x26
popq %rsi
movq %rbx, %rdx
callq 0x54e0
movq (%r15), %rcx
leaq 0xccb2(%rip), %rdi      # 0x1225d
pushq $0x2d
popq %rsi
movq %rbx, %rdx
callq 0x54e0
movq (%r15), %rcx
leaq 0xcccb(%rip), %rdi      # 0x1228b
pushq $0x25
popq %rsi
movq %rbx, %rdx
callq 0x54e0
movq (%r15), %rcx
leaq 0xccdc(%rip), %rdi      # 0x122b1
pushq $0xe
popq %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x54e0
// File: /workspace/github_c_makefile_star2_O1/vi[P]simple_cbor_stream_parse/roundtrip.cpp
// Function: main
int main() {
    // Note; on Windows you should also set std::cin to binary mode
    std::ios::sync_with_stdio(false);
    
    scsp::Generator gen(std::cout);
    if (!scsp::parse_from_istream(std::cin, gen)) {
        std::cerr << "Error" << std::endl;
        return 1;
    }
    return 0;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
xorl %ebx, %ebx
xorl %edi, %edi
callq 0x2050
leaq 0x3a5f(%rip), %rax      # 0x5ce0
addq $0x10, %rax
movq %rsp, %rsi
movq %rax, (%rsi)
movq 0x3d36(%rip), %rax      # 0x5fc8
movq %rax, 0x8(%rsi)
movq 0x3d3b(%rip), %rdi      # 0x5fd8
callq 0x2356
testb %al, %al
jne 0x22ed
movq 0x3d43(%rip), %rbx      # 0x5ff0
leaq 0x1d50(%rip), %rsi      # 0x4004
movl $0x5, %edx
movq %rbx, %rdi
callq 0x20c0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2090
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2070
movl $0x1, %ebx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/vi[P]simple_cbor_stream_parse/scsp_cpp.cpp
// Function: scsp::parse_from_istream(std::istream&, scsp::Callbacks&)
bool SCSP_EXPORT parse_from_istream(
            std::istream& is,
            class Callbacks& callbacks)
{
    struct scsp_state     ss;
    ss.cur_depth = 0;
    uint8_t buf[8192];
    
    size_t read_cursor = 0;
    for(;;) {
        if (is.eof()) {
            if (read_cursor == 0) {
                return true;
            } else {
                return false;
            }
        }
        if (is.fail()) {
            return false;
        }
        is.read((char*)(buf+read_cursor), (sizeof buf) - read_cursor);
        size_t len = is.gcount();
       
        if (len == 0) {
            continue;
        }
        
        len += read_cursor;
        read_cursor=0;
        
        size_t write_cursor = 0;
        while(write_cursor < len) {
            int ret2 = scsp_parse_lowlevel(&ss, &tocpp_callbacks, (void*)&callbacks, buf+write_cursor, len-write_cursor);
            if (ret2 == -1) {
                return false;
            }
            if (ret2 == 0) {
                memmove(buf, buf+write_cursor, len-write_cursor);
                read_cursor = len-write_cursor;
                break;
            }
            write_cursor += ret2;
        }
        //fflush(stdout);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2128, %rsp           # imm = 0x2128
movq $0x0, 0x18(%rsp)
movq (%rdi), %rax
movq -0x18(%rax), %rax
movl 0x20(%rdi,%rax), %ecx
movb $0x1, %al
testb $0x2, %cl
jne 0x2487
movq %rsi, %rbx
movq %rdi, %r15
xorl %r12d, %r12d
movq %rdi, 0x8(%rsp)
testb $0x5, %cl
jne 0x2485
leaq (%rsp,%r12), %rsi
addq $0x120, %rsi            # imm = 0x120
movl $0x2000, %edx           # imm = 0x2000
subq %r12, %rdx
movq %r15, %rdi
callq 0x20d0
movq 0x8(%r15), %r14
testq %r14, %r14
je 0x244d
addq %r12, %r14
movq $0x0, 0x10(%rsp)
xorl %r15d, %r15d
xorl %r12d, %r12d
movq %r14, %rbp
subq %r15, %rbp
jbe 0x2446
leaq (%rsp,%r15), %r13
addq $0x120, %r13            # imm = 0x120
leaq 0x18(%rsp), %rdi
leaq 0x3cba(%rip), %rsi      # 0x60b0
movq %rbx, %rdx
movq %r13, %rcx
movq %rbp, %r8
callq 0x2894
cmpl $-0x1, %eax
je 0x242c
testl %eax, %eax
jne 0x2433
leaq 0x120(%rsp), %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x2130
movl $0x5, %eax
movq %rbp, 0x10(%rsp)
jmp 0x243a
movl $0x1, %eax
jmp 0x243a
cltq
addq %rax, %r15
xorl %eax, %eax
testl %eax, %eax
je 0x23d4
cmpl $0x5, %eax
je 0x2446
movl %eax, %r12d
movq 0x8(%rsp), %r15
jmp 0x2458
movq %r12, 0x10(%rsp)
movl $0x3, %r12d
cmpl $0x3, %r12d
je 0x2463
testl %r12d, %r12d
jne 0x2485
movq (%r15), %rax
movq -0x18(%rax), %rax
movl 0x20(%r15,%rax), %ecx
testb $0x2, %cl
movq 0x10(%rsp), %r12
je 0x2394
testq %r12, %r12
sete %al
jmp 0x2487
xorl %eax, %eax
addq $0x2128, %rsp           # imm = 0x2128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/vi[P]simple_cbor_stream_parse/scsp_cpp.cpp
// Function: scsp::Generator::writething(unsigned char, unsigned long)
void Generator::writething(uint8_t maj, uint64_t value) {
    if (value < 24) {
        uint8_t t = value | maj;
        o.write((char*)&t, 1);
    } else
    if (value < 0x100) {
        uint8_t q = value;
        uint8_t t = 0x18 | maj;
        o.write((char*)&t, 1);
        o.write((char*)&q, 1);
    } else
    if (value < 0x10000) {
        uint8_t q[2];
        q[0] = (value & 0xFF00) >> 8;
        q[1] = (value & 0x00FF) >> 0;
        uint8_t t = 0x19 | maj;
        o.write((char*)&t, 1);
        o.write((char*)&q, 2);
    } else
    if (value < 0x100000000LL) {
        uint8_t q[4];
        q[0] = (value & 0xFF000000UL) >> 24;
        q[1] = (value & 0x00FF0000UL) >> 16;
        q[2] = (value & 0x0000FF00UL) >> 8;
        q[3] = (value & 0x000000FFUL) >> 0;
        uint8_t t = 0x1A | maj;
        o.write((char*)&t, 1);
        o.write((char*)&q, 4);
    } else {
        uint8_t t = 0x1B | maj;
        o.write((char*)&t, 1);
        int i;
        for (i=0; i<8; ++i) {
            uint8_t q = (value&0xFF00000000000000ULL) >> 56;
            value<<=8;
            o.write((char*)&q, 1);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rdi, %rbx
cmpq $0x17, %rdx
ja 0x24c9
orb %sil, %r14b
leaq 0x11(%rsp), %rsi
movb %r14b, (%rsi)
movq 0x8(%rbx), %rdi
movl $0x1, %edx
jmp 0x257e
cmpq $0xff, %r14
ja 0x2502
leaq 0x10(%rsp), %r15
movb %r14b, (%r15)
orb $0x18, %sil
leaq 0xf(%rsp), %rax
movb %sil, (%rax)
movq 0x8(%rbx), %rdi
movl $0x1, %edx
movq %rax, %rsi
callq 0x20e0
movq 0x8(%rbx), %rdi
movl $0x1, %edx
jmp 0x257b
cmpq $0xffff, %r14           # imm = 0xFFFF
ja 0x2541
rolw $0x8, %r14w
leaq 0x12(%rsp), %r15
movw %r14w, (%r15)
orb $0x19, %sil
leaq 0xe(%rsp), %rax
movb %sil, (%rax)
movq 0x8(%rbx), %rdi
movl $0x1, %edx
movq %rax, %rsi
callq 0x20e0
movq 0x8(%rbx), %rdi
movl $0x2, %edx
jmp 0x257b
movq %r14, %rax
shrq $0x20, %rax
jne 0x258e
bswapl %r14d
leaq 0x14(%rsp), %r15
movl %r14d, (%r15)
orb $0x1a, %sil
leaq 0xd(%rsp), %rax
movb %sil, (%rax)
movq 0x8(%rbx), %rdi
movl $0x1, %edx
movq %rax, %rsi
callq 0x20e0
movq 0x8(%rbx), %rdi
movl $0x4, %edx
movq %r15, %rsi
callq 0x20e0
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
orb $0x1b, %sil
leaq 0xc(%rsp), %rax
movb %sil, (%rax)
movq 0x8(%rbx), %rdi
movl $0x1, %edx
movq %rax, %rsi
callq 0x20e0
movl $0x8, %ebp
leaq 0xb(%rsp), %r15
movq %r14, %rax
shrq $0x38, %rax
movb %al, 0xb(%rsp)
shlq $0x8, %r14
movq 0x8(%rbx), %rdi
movl $0x1, %edx
movq %r15, %rsi
callq 0x20e0
decl %ebp
jne 0x25b5
jmp 0x2583
nop
// File: /workspace/github_c_makefile_star2_O1/vi[P]simple_cbor_stream_parse/scsp_cpp.cpp
// Function: scsp::Generator::integer(long)
void Generator::integer(SCSP_INT value) {
    if (value >= 0) {
        writething(0x00, value);
    } else {
        writething(0x20, (-value) - 1);
    }
}

// Assembly:
movq %rsi, %rdx
testq %rsi, %rsi
js 0x25eb
xorl %esi, %esi
jmp 0x249a
notq %rdx
movl $0x20, %esi
jmp 0x249a
// File: /workspace/github_c_makefile_star2_O1/vi[P]simple_cbor_stream_parse/scsp_cpp.cpp
// Function: scsp::Generator::noninteger(double)
void Generator::noninteger (double value){
    uint64_t v = *reinterpret_cast<const uint64_t*>(&value);
    o.write("\xFB", 1);
    int i;
    for (i=0; i<8; ++i) {
        uint8_t q = (v&0xFF00000000000000ULL) >> 56;
        v<<=8;
        o.write((char*)&q, 1);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %xmm0, %r15
movq 0x8(%rdi), %rdi
leaq 0x1896(%rip), %rsi      # 0x401c
movl $0x1, %edx
callq 0x20e0
movl $0x8, %ebp
leaq 0x7(%rsp), %r14
movq %r15, %rax
shrq $0x38, %rax
movb %al, 0x7(%rsp)
shlq $0x8, %r15
movq 0x8(%rbx), %rdi
movl $0x1, %edx
movq %r14, %rsi
callq 0x20e0
decl %ebp
jne 0x279a
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/hifi[P]whatever/whatever.c
// Function: die
static void die(const char *fmt, ...)
{
    va_list ap;
    va_start(ap, fmt);
    fprintf(stderr, "[whatever] ");
    vfprintf(stderr, fmt, ap);
    exit(1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xd0, %rsp
movq %rdi, %rbx
leaq 0x20(%rsp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x401c13
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %r14
movq %rdi, 0x10(%r14)
leaq 0xf0(%rsp), %rax
movq %rax, 0x8(%r14)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%r14)
movq $0x4c96e8, %r15         # imm = 0x4C96E8
movq (%r15), %rcx
leaq 0x974a8(%rip), %rdi     # 0x4990ec
movl $0xb, %esi
movl $0x1, %edx
callq 0x4124d0
movq (%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x40bb00
movl $0x1, %edi
callq 0x40afd0
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O1/motet-a[P]libforks/tests/sigstop.c
// Function: main
int main() {
  libforks_ServerConn conn;

  check(libforks_start(&conn) == libforks_OK);

  pid_t child_pid;
  int socket_fd;

  libforks_Result r = libforks_fork(
    conn,
    &child_pid, // pid_ptr
    &socket_fd, // socket_fd_ptr
    NULL, // exit_fd_ptr
    child_main
  );
  check(r == libforks_OK);

  check(kill(child_pid, SIGSTOP) == 0);
  check(kill(child_pid, SIGCONT) == 0);

  check(write(socket_fd, "a", 1) == 1);
  char c;
  check(read(socket_fd, &c, 1) == 1);
  check(c == 'b');

  check(libforks_stop(conn) == libforks_OK);
  return 0;
}

// Assembly:
subq $0x18, %rsp
leaq 0x10(%rsp), %rdi
callq 0x1877
testl %eax, %eax
jne 0x13d3
movq 0x10(%rsp), %rdi
leaq 0x148(%rip), %r8        # 0x1486
leaq 0xc(%rsp), %rsi
leaq 0x8(%rsp), %rdx
xorl %ecx, %ecx
callq 0x22cb
testl %eax, %eax
jne 0x13e4
movl 0xc(%rsp), %edi
movl $0x13, %esi
callq 0x1150
testl %eax, %eax
jne 0x13f5
movl 0xc(%rsp), %edi
movl $0x12, %esi
callq 0x1150
testl %eax, %eax
jne 0x1406
movl 0x8(%rsp), %edi
leaq 0x1cf8(%rip), %rsi      # 0x3086
movl $0x1, %edx
callq 0x1080
cmpq $0x1, %rax
jne 0x1417
movl 0x8(%rsp), %edi
leaq 0x7(%rsp), %rsi
movl $0x1, %edx
callq 0x10f0
cmpq $0x1, %rax
jne 0x1428
cmpb $0x62, 0x7(%rsp)
jne 0x1439
movq 0x10(%rsp), %rdi
callq 0x2486
testl %eax, %eax
jne 0x144a
xorl %eax, %eax
addq $0x18, %rsp
retq
leaq 0x1c2a(%rip), %rdi      # 0x3004
movl $0x12, %esi
callq 0x145b
leaq 0x1c4e(%rip), %rdi      # 0x3039
movl $0x1e, %esi
callq 0x145b
leaq 0x1c4e(%rip), %rdi      # 0x304a
movl $0x20, %esi
callq 0x145b
leaq 0x1c5b(%rip), %rdi      # 0x3068
movl $0x21, %esi
callq 0x145b
leaq 0x1c6a(%rip), %rdi      # 0x3088
movl $0x23, %esi
callq 0x145b
leaq 0x1c77(%rip), %rdi      # 0x30a6
movl $0x25, %esi
callq 0x145b
leaq 0x1c82(%rip), %rdi      # 0x30c2
movl $0x26, %esi
callq 0x145b
leaq 0x1c7a(%rip), %rdi      # 0x30cb
movl $0x28, %esi
callq 0x145b
// File: /workspace/github_c_makefile_star2_O1/motet-a[P]libforks/tests/sigstop.c
// Function: child_main
static void child_main(libforks_ServerConn conn, int socket_fd) {
  (void)conn;

  char c;
  check(read(socket_fd, &c, 1) == 1);
  check(c == 'a');
  check(write(socket_fd, "b", 1) == 1);

  sleep(999);
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
leaq 0xf(%rsp), %rsi
movl $0x1, %edx
movl %ebx, %edi
callq 0x10f0
cmpq $0x1, %rax
jne 0x14d3
cmpb $0x61, 0xf(%rsp)
jne 0x14e4
leaq 0x1c61(%rip), %rsi      # 0x3113
movl $0x1, %edx
movl %ebx, %edi
callq 0x1080
cmpq $0x1, %rax
jne 0x14f5
movl $0x3e7, %edi            # imm = 0x3E7
addq $0x10, %rsp
popq %rbx
jmp 0x11e0
leaq 0x1bcc(%rip), %rdi      # 0x30a6
movl $0x8, %esi
callq 0x145b
leaq 0x1c1f(%rip), %rdi      # 0x310a
movl $0x9, %esi
callq 0x145b
leaq 0x1c19(%rip), %rdi      # 0x3115
movl $0xa, %esi
callq 0x145b
nop
// File: /workspace/github_c_makefile_star2_O1/samtools[P]htslib/test/test_nibbles.c
// Function: fmttime
char *fmttime(long long elapsed) {
    static char buf[64];

#ifdef HAVE_CLOCK_GETTIME_CPUTIME
    long long sec = elapsed / 1000000000;
    long long nsec = elapsed % 1000000000;
    sprintf(buf, "%lld.%09lld processor seconds", sec, nsec);
#else
    long long sec = elapsed / 1000000;
    long long usec = elapsed % 1000000;
    sprintf(buf, "%lld.%06lld wall-time seconds", sec, usec);
#endif

    return buf;
}

// Assembly:
pushq %rbx
movq %rdi, %rcx
movabsq $0x431bde82d7b634db, %rdx # imm = 0x431BDE82D7B634DB
movq %rdi, %rax
imulq %rdx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x12, %rdx
addq %rax, %rdx
imulq $0xf4240, %rdx, %rax    # imm = 0xF4240
subq %rax, %rcx
leaq 0xab6ee(%rip), %rbx     # 0xb1520
leaq 0x8b1cb(%rip), %rsi     # 0x91004
movq %rbx, %rdi
xorl %eax, %eax
callq 0x40d0
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/samtools[P]htslib/test/test_nibbles.c
// Function: validate_nibble2base
int validate_nibble2base(void) {
    char defbuf[500];
    int i, start, len;
    unsigned long long total = 0, failed = 0;

    for (i = 0; i < sizeof nibble; i++)
        nibble[i] = i % 256;

    for (start = 0; start < 80; start++)
        for (len = 0; len < 400; len++) {
            memset(defbuf, '\0', sizeof defbuf);
            nibble2base_single(&nibble[start], defbuf, len);

            memset(buf, '\0', sizeof defbuf);
            nibble2base(&nibble[start], buf, len);

            total++;
            if (strcmp(defbuf, buf) != 0) {
                printf("%s expected\n%s FAIL\n\n", defbuf, buf);
                failed++;
            }
        }

    if (failed > 0) {
        fprintf(stderr, "Failures: %llu (out of %llu tests)\n", failed, total);
        return 1;
    }

    return 0;
}

// Assembly:
xorl %eax, %eax
leaq 0xab6d1(%rip), %rcx     # 0xb1560
movb %al, (%rax,%rcx)
incq %rax
cmpq $0x1388, %rax           # imm = 0x1388
jne 0x5e8f
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
leaq 0x10(%rsp), %r14
leaq 0xaca36(%rip), %r15     # 0xb28f0
leaq 0x8b5bf(%rip), %r12     # 0x91480
xorl %eax, %eax
xorl %ebx, %ebx
movq %rax, 0x8(%rsp)
leaq (%rcx,%rax), %r13
xorl %ebp, %ebp
movl $0x1f4, %edx            # imm = 0x1F4
movq %r14, %rdi
xorl %esi, %esi
callq 0x4280
testq %rbp, %rbp
je 0x5f11
xorl %eax, %eax
xorl %edx, %edx
movl %edx, %ecx
shrl %ecx
movzbl (%r13,%rcx), %esi
movl %eax, %ecx
notb %cl
andb $0x4, %cl
shrl %cl, %esi
andl $0xf, %esi
movb (%r12,%rsi), %cl
movb %cl, 0x10(%rsp,%rdx)
incq %rdx
addl $0x4, %eax
cmpq %rdx, %rbp
jne 0x5ee8
movl $0x1f4, %edx            # imm = 0x1F4
movq %r15, %rdi
xorl %esi, %esi
callq 0x4280
movq %r13, %rdi
movq %r15, %rsi
movl %ebp, %edx
leaq 0xab5d1(%rip), %rax     # 0xb1500
callq *(%rax)
movq %r14, %rdi
movq %r15, %rsi
callq 0x46e0
testl %eax, %eax
je 0x5f57
leaq 0x8b0db(%rip), %rdi     # 0x91022
movq %r14, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x4060
incq %rbx
incq %rbp
cmpq $0x190, %rbp            # imm = 0x190
jne 0x5ed0
movq 0x8(%rsp), %rax
incq %rax
cmpq $0x50, %rax
leaq 0xab5e6(%rip), %rcx     # 0xb1560
jne 0x5ec5
xorl %eax, %eax
testq %rbx, %rbx
jne 0x5f99
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xab038(%rip), %rax     # 0xb0fd8
movq (%rax), %rdi
leaq 0x8b08e(%rip), %rsi     # 0x91038
movl $0x7d00, %ecx           # imm = 0x7D00
movq %rbx, %rdx
xorl %eax, %eax
callq 0x4720
movl $0x1, %eax
jmp 0x5f87
// File: /workspace/github_c_makefile_star2_O1/samtools[P]htslib/test/test_nibbles.c
// Function: time_nibble2base
int time_nibble2base(int length, unsigned long count) {
    unsigned long i, total = 0;

    for (i = 0; i < length; i++)
        nibble[i] = i % 256;

    printf("Timing %lu nibble2base iterations with read length %d...\n", count, length);
    long long start = gettime();

    for (i = 0; i < count; i++) {
        nibble2base(nibble, buf, length);
        total += buf[i % length];
    }

    long long stop = gettime();
    printf("%s (summing to %lu)\n", fmttime(stop - start), total);
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movl %edi, %ebp
movslq %edi, %r12
testl %r12d, %r12d
je 0x5fef
xorl %eax, %eax
leaq 0xab57c(%rip), %rcx     # 0xb1560
movb %al, (%rax,%rcx)
incq %rax
cmpq %rax, %r12
jne 0x5fe4
leaq 0x8b066(%rip), %rdi     # 0x9105c
xorl %ebx, %ebx
movq %r14, %rsi
movl %ebp, %edx
xorl %eax, %eax
callq 0x4060
leaq 0x18(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x4830
movq (%r15), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%r15), %rax
movq %rax, 0x10(%rsp)
testq %r14, %r14
je 0x6062
xorl %r15d, %r15d
leaq 0xac8bd(%rip), %r13     # 0xb28f0
xorl %ebx, %ebx
leaq 0xab524(%rip), %rdi     # 0xb1560
movq %r13, %rsi
movl %ebp, %edx
leaq 0xab4b8(%rip), %rax     # 0xb1500
callq *(%rax)
movq %r15, %rax
xorl %edx, %edx
divq %r12
movsbq (%rdx,%r13), %rax
addq %rax, %rbx
incq %r15
cmpq %r15, %r14
jne 0x6035
leaq 0x18(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x4830
movq (%r14), %rax
subq 0x8(%rsp), %rax
movq 0x8(%r14), %rdx
subq 0x10(%rsp), %rdx
imulq $0xf4240, %rax, %rcx    # imm = 0xF4240
addq %rdx, %rcx
movabsq $0x431bde82d7b634db, %rdx # imm = 0x431BDE82D7B634DB
movq %rcx, %rax
imulq %rdx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x12, %rdx
addq %rax, %rdx
imulq $0xf4240, %rdx, %rax    # imm = 0xF4240
subq %rax, %rcx
leaq 0xab465(%rip), %r14     # 0xb1520
leaq 0x8af42(%rip), %rsi     # 0x91004
movq %r14, %rdi
xorl %eax, %eax
callq 0x40d0
leaq 0x8afc3(%rip), %rdi     # 0x91096
movq %r14, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x4060
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/samtools[P]htslib/test/test_nibbles.c
// Function: main
int main(int argc, char **argv) {
    int readlen = 5000;
    unsigned long count = 1000000;
    int status = 0;
    int c;

    if (argc == 1)
        printf(
"Usage: test_nibbles [-c NUM] [-r NUM] [-n|-v]...\n"
"Options:\n"
"  -c NUM  Specify number of iterations [%lu]\n"
"  -n      Run nibble2base speed tests\n"
"  -r NUM  Specify read length [%d]\n"
"  -v      Run all validation tests\n"
"", count, readlen);

    while ((c = getopt(argc, argv, "c:nr:v")) >= 0)
        switch (c) {
        case 'c':
            count = strtoul(optarg, NULL, 0);
            break;

        case 'n':
            status += time_nibble2base(readlen, count);
            break;

        case 'r':
            readlen = atoi(optarg);
            break;

        case 'v':
            status += validate_nibble2base();
            break;
        }

    return status;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
cmpl $0x1, %edi
jne 0x611e
leaq 0x8af9e(%rip), %rdi     # 0x910ab
movl $0xf4240, %esi          # imm = 0xF4240
movl $0x1388, %edx           # imm = 0x1388
xorl %eax, %eax
callq 0x4060
leaq 0x8b05a(%rip), %rdx     # 0x9117f
movl %ebp, %edi
movq %rbx, %rsi
callq 0x4100
testl %eax, %eax
js 0x61ba
movl $0xf4240, %r13d         # imm = 0xF4240
xorl %r14d, %r14d
movl $0x1388, %r12d          # imm = 0x1388
leaq 0x8b032(%rip), %r15     # 0x9117f
cmpl $0x71, %eax
jg 0x6169
cmpl $0x63, %eax
je 0x617d
cmpl $0x6e, %eax
jne 0x61a7
movl %r12d, %edi
movq %r13, %rsi
callq 0x5fc0
jmp 0x61a7
cmpl $0x72, %eax
je 0x6195
cmpl $0x76, %eax
jne 0x61a7
callq 0x5e86
addl %eax, %r14d
jmp 0x61a7
movq 0xaae3c(%rip), %rax     # 0xb0fc0
movq (%rax), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4150
movq %rax, %r13
jmp 0x61a7
movq 0xaae24(%rip), %rax     # 0xb0fc0
movq (%rax), %rdi
callq 0x4800
movl %eax, %r12d
movl %ebp, %edi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x4100
testl %eax, %eax
jns 0x614d
jmp 0x61bd
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/dxwc[P]sfeed/sfeed_xmlenc.c
// Function: xmlattr
static void
xmlattr(XMLParser *p, const char *t, size_t tl, const char *n,
	size_t nl, const char *v, size_t vl)
{
	if (strcasecmp(t, "?xml") || strcasecmp(n, "encoding"))
		return;

	/* output lowercase, no control characters */
	for (; *v; v++) {
		if (!iscntrl((unsigned char)*v))
			putchar(tolower((unsigned char)*v));
	}
	putchar('\n');
	exit(0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %rcx, %r14
movq %rsi, %rdi
leaq 0x1de4(%rip), %rsi      # 0x3004
callq 0x1040
testl %eax, %eax
jne 0x123c
leaq 0x1dd9(%rip), %rsi      # 0x3009
movq %r14, %rdi
callq 0x1040
testl %eax, %eax
je 0x1247
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movb (%rbx), %bpl
testb %bpl, %bpl
je 0x1284
callq 0x10d0
movq %rax, %r14
incq %rbx
movq (%r14), %rax
movzbl %bpl, %r15d
testb $0x2, (%rax,%r15,2)
jne 0x1279
callq 0x10c0
movq (%rax), %rax
movl (%rax,%r15,4), %edi
callq 0x1030
movb (%rbx), %bpl
incq %rbx
testb %bpl, %bpl
jne 0x125a
movl $0xa, %edi
callq 0x1030
xorl %edi, %edi
callq 0x10b0
// File: /workspace/github_c_makefile_star2_O1/lh3[P]fermi2/correct.c
// Function: fmc_kmer_stat
void fmc_kmer_stat(int suf_len, const fmc64_v *a)
{
	int i, n_suf = 1<<suf_len*2;
	int64_t tot = 0;
	for (i = 0; i < n_suf; ++i)
		tot += a[i].n<<1;
	fprintf(stderr, "[M::%s] %ld k-mers\n", __func__, (long)tot);
}

// Assembly:
movl %edi, %ecx
addl %edi, %ecx
pushq $0x1
popq %rdx
xorl %eax, %eax
movq (%rsi), %rdi
movl %edx, %r8d
shrl %cl, %r8d
leaq (%rax,%rdi,2), %rax
addq $0x18, %rsi
incl %edx
testl %r8d, %r8d
je 0x2428
movq 0x21bb1(%rip), %rcx     # 0x23ff8
movq (%rcx), %rdi
leaq 0x1a0c7(%rip), %rsi     # 0x1c518
leaq 0x1a0d4(%rip), %rdx     # 0x1c52c
movq %rax, %rcx
xorl %eax, %eax
jmp 0x21c0
// File: /workspace/github_c_makefile_star2_O1/lh3[P]fermi2/diff.c
// Function: fm_diff
uint64_t *fm_diff(const rld_t *eqry, const rld_t *eref, int min_k, int max_k, int min_occ, int n_threads)
{
	shared_t d;
	assert(min_k > SUF_LEN && min_k < max_k);
	d.sub = calloc((eqry->mcnt[1] + 63) / 64, 8);
	d.min_k = min_k, d.max_k = max_k, d.min_occ = min_occ, d.eref = eref, d.eqry = eqry;
	kt_for(n_threads, worker, &d, 1<<SUF_LEN*2);
	return d.sub;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r9d, 0xc(%rsp)
cmpl $0x6, %edx
jl 0x521b
movl %ecx, %r12d
movl %edx, %r13d
cmpl %ecx, %edx
jge 0x521b
movl %r8d, %ebp
movq %rsi, %r15
movq %rdi, %r14
movq 0x28(%rdi), %rax
movq 0x8(%rax), %rdi
addq $0x3f, %rdi
shrq $0x6, %rdi
movl $0x8, %esi
callq 0x2190
leaq 0x10(%rsp), %rbx
movq %rax, 0x20(%rbx)
movl %r13d, (%rbx)
movl %r12d, 0x4(%rbx)
movl %ebp, 0x8(%rbx)
movq %r15, 0x10(%rbx)
movq %r14, 0x18(%rbx)
leaq 0x43(%rip), %rsi        # 0x523a
movl $0x400, %ecx            # imm = 0x400
movl 0xc(%rsp), %edi
movq %rbx, %rdx
callq 0x360c
movq 0x20(%rbx), %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x16f4e(%rip), %rdi     # 0x1c170
leaq 0x16f68(%rip), %rsi     # 0x1c191
leaq 0x16f68(%rip), %rcx     # 0x1c198
movl $0x83, %edx
callq 0x2120
// File: /workspace/github_c_makefile_star2_O1/lh3[P]fermi2/diff.c
// Function: descend
static rldintv_t descend(const rld_t *e, int suf_len, int suf)
{
	int i;
	rldintv_t ok[6], ik;
	ik.x[0] = ik.x[1] = 0; ik.x[2] = e->mcnt[0];
	for (i = 0; i < suf_len; ++i) {
		rld_extend(e, &ik, ok, 1);
		ik = ok[(suf>>i*2&3) + 1];
	}
	return ik;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xc0, %rsp
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq 0x28(%rsi), %rax
movq (%rax), %rax
movq %rax, 0x10(%rdi)
xorl %ebp, %ebp
movq %rsp, %r12
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
movl $0x1, %ecx
callq 0x5027
movl %ebx, %eax
movl %ebp, %ecx
sarl %cl, %eax
andl $0x3, %eax
shll $0x5, %eax
movups 0x20(%rax,%r12), %xmm0
movups 0x30(%rax,%r12), %xmm1
movups %xmm0, (%r14)
movups %xmm1, 0x10(%r14)
addl $0x2, %ebp
cmpl $0xa, %ebp
jne 0x59f4
movq %r14, %rax
addq $0xc0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]fermi2/diff.c
// Function: collect_tips
static void collect_tips(const rld_t *e, int min_k, int min_occ, uint64_t *sub, const rldintv_t *_ik, rldintv_v *stack)
{
	stack->n = 0;
	kv_push(rldintv_t, *stack, *_ik);
	while (stack->n) {
		uint64_t k, *p, x;
		rldintv_t ik, ok[6];
		int c;
		ik = kv_pop(*stack);
		if (ik.info <= min_k && ik.x[2] < min_occ) continue;
		rld_extend(e, &ik, ok, 1);
		if (ok[0].x[2] && ik.info >= min_k) {
			for (k = 0; k < ok[0].x[2]; ++k) {
				x = k + ok[0].x[0];
				p = sub + (x>>6);
				x = 1ULL<<(x&0x3f);
				__sync_or_and_fetch(p, x);
			}
		}
		for (c = 1; c <= 4; ++c)
			if (ok[c].x[2]) {
				ok[c].info = ik.info + 1;
				kv_push(rldintv_t, *stack, ok[c]);
			}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %r9, %rbx
movq %r8, %r13
movq %rcx, %r14
movl %edx, %r15d
movl %esi, %r12d
movq %rdi, (%rsp)
movq $0x0, (%r9)
cmpq $0x0, 0x8(%r9)
jne 0x5a8f
movq $0x2, 0x8(%rbx)
movq 0x10(%rbx), %rdi
movl $0x40, %esi
callq 0x2260
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
shlq $0x5, %rax
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movups %xmm1, 0x10(%rcx,%rax)
movups %xmm0, (%rcx,%rax)
movq (%rbx), %rax
testq %rax, %rax
je 0x5be1
movslq %r12d, %rbp
movslq %r15d, %rcx
movq %rcx, 0x8(%rsp)
leaq 0x68(%rsp), %r13
movl $0x2, %r15d
movq 0x10(%rbx), %rcx
decq %rax
movq %rax, (%rbx)
shlq $0x5, %rax
movups (%rcx,%rax), %xmm0
movups 0x10(%rcx,%rax), %xmm1
movaps %xmm1, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
cmpq %rbp, 0x28(%rsp)
ja 0x5b0e
movq 0x8(%rsp), %rax
cmpq %rax, 0x20(%rsp)
jb 0x5bd5
movq (%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movl $0x1, %ecx
callq 0x5027
cmpq $0x0, 0x40(%rsp)
je 0x5b5d
cmpq %rbp, 0x28(%rsp)
jb 0x5b5d
xorl %eax, %eax
movq 0x30(%rsp), %rcx
addq %rax, %rcx
movq %rcx, %rdx
movl $0x1, %esi
shlq %cl, %rsi
shrq $0x6, %rdx
lock
orq %rsi, (%r14,%rdx,8)
incq %rax
cmpq 0x40(%rsp), %rax
jb 0x5b37
xorl %r12d, %r12d
cmpq $0x0, 0x60(%rsp,%r12)
je 0x5bc8
movq 0x28(%rsp), %rax
incq %rax
movq %rax, 0x68(%rsp,%r12)
movq 0x8(%rbx), %rax
cmpq %rax, (%rbx)
jne 0x5b9e
leaq (%rax,%rax), %rsi
testq %rax, %rax
cmoveq %r15, %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
shlq $0x5, %rsi
callq 0x2260
movq %rax, 0x10(%rbx)
leaq (%r12,%r13), %rax
addq $-0x18, %rax
movq (%rbx), %rcx
movq 0x10(%rbx), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%rbx)
shlq $0x5, %rcx
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups %xmm1, 0x10(%rdx,%rcx)
movups %xmm0, (%rdx,%rcx)
addq $0x20, %r12
cmpq $0x80, %r12
jne 0x5b60
movq (%rbx), %rax
testq %rax, %rax
jne 0x5ad6
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/lh3[P]fermi2/sub.c
// Function: worker
static void worker(void *data, long i, int tid)
{
	shared_t *d = (shared_t*)data;
	int64_t x;
	x = set_bits(d->e, d->sub, d->bits, i, d->n_threads, d->is_both);
	__sync_fetch_and_add(&d->n_ss, x);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq (%rdi), %r14
movslq %esi, %r15
movq 0x28(%r14), %rax
cmpq %r15, 0x8(%rax)
movq %rdi, 0x10(%rsp)
jbe 0x60d5
movq 0x8(%rdi), %rbp
movq 0x10(%rdi), %r12
movl 0x24(%rdi), %ebx
movslq 0x20(%rdi), %r13
movq $0x0, 0x8(%rsp)
movq %r15, %rax
shrq $0x6, %rax
movq (%rbp,%rax,8), %rax
btq %r15, %rax
jae 0x60c6
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x6284
testl %ebx, %ebx
je 0x60c6
movq %rax, %rcx
shrq $0x6, %rcx
movq (%rbp,%rcx,8), %rcx
btq %rax, %rcx
jb 0x60c6
movq %r14, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x6284
incq 0x8(%rsp)
addq %r13, %r15
movq 0x28(%r14), %rax
cmpq 0x8(%rax), %r15
jb 0x607d
jmp 0x60de
movq $0x0, 0x8(%rsp)
movq 0x10(%rsp), %rax
movq 0x8(%rsp), %rcx
lock
addq %rcx, 0x18(%rax)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]fermi2/sub.c
// Function: main_sub
int main_sub(int argc, char *argv[])
{
	int c, is_comp = 0, is_both = 1, n_threads = 1;
	rld_t *e;
	uint64_t n_seqs, *sub;
	FILE *fp;

	while ((c = getopt(argc, argv, "sct:")) >= 0) {
		if (c == 'c') is_comp = 1;
		else if (c == 's') is_both = 0;
		else if (c == 't') n_threads = atoi(optarg);
	}
	if (optind + 2 > argc) {
		fprintf(stderr, "Usage: fermi2 sub [-cs] [-t nThreads=1] <reads.rld> <bits.bin>\n");
		return 1;
	}
	e = rld_restore(argv[optind]);
	fp = fopen(argv[optind+1], "rb");
	fread(&n_seqs, 8, 1, fp);
	if (n_seqs != e->mcnt[1]) {
		fprintf(stderr, "[E::%s] unmatched index and the bit array\n", __func__);
		rld_destroy(e);
		return 1;
	}
	sub = malloc((n_seqs + 63) / 64 * 8);
	fread(sub, 8, (n_seqs + 63) / 64, fp);
	fclose(fp);
	e = fm_sub(e, sub, n_threads, is_comp, is_both);
	free(sub);
	rld_dump(e, "-");
	rld_destroy(e);
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r15
movl %edi, %r12d
leaq 0x161b4(%rip), %rdx     # 0x1c2cb
callq 0x22f0
testl %eax, %eax
js 0x6174
movl $0x1, %r14d
xorl %ebx, %ebx
leaq 0x1619c(%rip), %r13     # 0x1c2cb
movl $0x1, %ebp
cmpl $0x63, %eax
je 0x615b
cmpl $0x74, %eax
je 0x6147
cmpl $0x73, %eax
jne 0x6160
xorl %ebp, %ebp
jmp 0x6160
movq 0x1de8a(%rip), %rax     # 0x23fd8
movq (%rax), %rdi
callq 0x2300
movl %eax, %r14d
jmp 0x6160
movl $0x1, %ebx
movl %r12d, %edi
movq %r15, %rsi
movq %r13, %rdx
callq 0x22f0
testl %eax, %eax
jns 0x6134
jmp 0x6181
xorl %ebx, %ebx
movl $0x1, %ebp
movl $0x1, %r14d
movq 0x1de48(%rip), %r13     # 0x23fd0
movslq (%r13), %rax
leal 0x2(%rax), %ecx
cmpl %r12d, %ecx
jg 0x626e
movq (%r15,%rax,8), %rdi
callq 0x436c
movq %rax, %r12
movslq (%r13), %rax
movq 0x8(%r15,%rax,8), %rdi
leaq 0x15e91(%rip), %rsi     # 0x1c045
callq 0x22d0
movq %rax, %r15
leaq 0x10(%rsp), %r13
movl $0x8, %esi
movl $0x1, %edx
movq %r13, %rdi
movq %rax, %rcx
callq 0x2090
movq (%r13), %r13
movq 0x28(%r12), %rax
cmpq 0x8(%rax), %r13
jne 0x6275
addq $0x3f, %r13
movq %r13, %rdi
shrq $0x3, %rdi
andq $-0x8, %rdi
callq 0x2220
movl %ebx, 0xc(%rsp)
movq %r12, %rbx
movq %rax, %r12
shrq $0x6, %r13
movl $0x8, %esi
movq %rax, %rdi
movq %r13, %rdx
movq %r15, %rcx
callq 0x2090
movq %r15, %rdi
callq 0x20d0
movq %rbx, %rdi
movq %r12, %rsi
movl %r14d, %edx
movl 0xc(%rsp), %ecx
movl %ebp, %r8d
callq 0x5bf4
movq %rax, %rbx
movq %r12, %rdi
callq 0x2040
leaq 0x16940(%rip), %rsi     # 0x1cb8d
movq %rbx, %rdi
callq 0x41cc
movq %rbx, %rdi
callq 0x38cc
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x23e7
jmp 0x627d
movq %r12, %rdi
callq 0x23bb
movl $0x1, %eax
jmp 0x625f
// File: /workspace/github_c_makefile_star2_O1/lh3[P]fermi2/sub.c
// Function: set_bits_aux
static inline int64_t set_bits_aux(const rld_t *e, uint64_t *bits, uint64_t k)
{
	int c;
	uint64_t *ok;
	ok = alloca(8 * e->asize);
	do {
		set_bit(bits, k);
		c = rld_rank1a(e, k + 1, ok);
		k = e->cnt[c] + ok[c] - 1;
		if (c == 0) break;
	} while (c);
	return k;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rcx
movq %rsi, %rbx
movq %rdi, %r14
movzbl (%rdi), %eax
leal 0xf(,%rax,8), %eax
andl $-0x10, %eax
movq %rsp, %r15
subq %rax, %r15
movq %r15, %rsp
movq %rcx, %rax
shrq $0x6, %rax
movl $0x1, %edx
shlq %cl, %rdx
lock
orq %rdx, (%rbx,%rax,8)
incq %rcx
movq %r14, %rdi
movq %rcx, %rsi
movq %r15, %rdx
callq 0x4a3f
movq 0x20(%r14), %rcx
cltq
movq (%rcx,%rax,8), %rcx
movq (%r15,%rax,8), %rdx
addq %rdx, %rcx
decq %rcx
testl %eax, %eax
jne 0x62ad
movq %rcx, %rax
leaq -0x18(%rbp), %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lh3[P]fermi2/unpack.c
// Function: fm_retrieve
int64_t fm_retrieve(const rld_t *e, uint64_t x, kstring_t *s)
{
	uint64_t k = x, *ok;
	ok = alloca(8 * e->asize);
	s->l = 0;
	while (1) {
		int c = rld_rank1a(e, k + 1, ok);
		k = e->cnt[c] + ok[c] - 1;
		if (c == 0) return k;
		kputc(c, s);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movzbl (%rdi), %eax
leal 0xf(,%rax,8), %eax
andl $-0x10, %eax
movq %rsp, %r12
subq %rax, %r12
movq %r12, %rsp
movl $0x0, (%rdx)
incq %r15
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x4a3f
movl %eax, %r13d
movq 0x20(%r14), %rax
movslq %r13d, %rcx
movq (%r12,%rcx,8), %r15
addq (%rax,%rcx,8), %r15
testl %r13d, %r13d
je 0x63ab
movl (%rbx), %eax
incl %eax
cmpl 0x4(%rbx), %eax
jb 0x6390
movl %eax, %ecx
shrl %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x2, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x4, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x8, %eax
orl %ecx, %eax
movl %eax, %esi
shrl $0x10, %esi
orl %eax, %esi
incl %esi
movl %esi, 0x4(%rbx)
movq 0x8(%rbx), %rdi
callq 0x2260
movq %rax, 0x8(%rbx)
movq 0x8(%rbx), %rax
movl (%rbx), %ecx
leal 0x1(%rcx), %edx
movl %edx, (%rbx)
movb %r13b, (%rax,%rcx)
movq 0x8(%rbx), %rax
movl (%rbx), %ecx
movb $0x0, (%rax,%rcx)
jmp 0x63b3
leaq -0x1(%r15), %rax
movq %rax, -0x30(%rbp)
testl %r13d, %r13d
jne 0x632e
movq -0x30(%rbp), %rax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq