LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/joncampbell123[P]haxcc/haxpp.cpp
// Function: do_macro_expand_read_invoke_param(__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, bool)
string do_macro_expand_read_invoke_param(string::iterator &li,const string::iterator lie,bool final_variadic=false) {
    int paren = 0;
    string r;

    do {
        if (li == lie)
            throw invalid_argument("string terminated unexpectedly");
        if (*li == '(') {
            paren++;
        }
        else if (*li == ')') {
            if (paren > 0)
                paren--;
            else
                break;
        }
        else if (*li == ',' && !final_variadic) {
            break;
        }

        r += *(li++);
    } while (1);

    return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
xorl %r13d, %r13d
xorb $0x1, %bpl
movq (%r15), %rax
cmpq %r14, %rax
je 0x69c5
movzbl (%rax), %ecx
cmpl $0x29, %ecx
je 0x698a
cmpl $0x28, %ecx
jne 0x6994
incl %r13d
jmp 0x699f
testl %r13d, %r13d
jle 0x69b3
decl %r13d
jmp 0x699f
cmpb $0x2c, %cl
sete %cl
testb %bpl, %cl
jne 0x69b3
leaq 0x1(%rax), %rcx
movq %rcx, (%r15)
movsbl (%rax), %esi
movq %rbx, %rdi
callq 0x2190
jmp 0x6970
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x20e0
movq %rax, %r15
leaq 0xd4b1(%rip), %rsi      # 0x13e8a
movq %rax, %rdi
callq 0x23a0
movq 0x135f0(%rip), %rsi     # 0x19fd8
movq 0x135d1(%rip), %rdx     # 0x19fc0
movq %r15, %rdi
callq 0x2330
jmp 0x6a06
movq %rax, %r14
movq %r15, %rdi
callq 0x2160
jmp 0x6a09
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x6a1d
movq (%r12), %rsi
incq %rsi
callq 0x21d0
movq %r14, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/joncampbell123[P]haxcc/haxpp.cpp
// Function: pp_stringify(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
string pp_stringify(const string &s) {
    string r;

    r += '\"';
    for (auto si=s.begin();si!=s.end();si++) {
        if (*si == '\'' || *si == '\"' || *si == '\\') r += '\\';
        r += *si;
    }
    r += '\"';

    return r;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movl $0x22, %esi
callq 0x2190
cmpq $0x0, 0x8(%r14)
je 0x6aa1
movq (%r14), %r12
movabsq $0x400000000000021, %r13 # imm = 0x400000000000021
movzbl (%r12), %eax
addl $-0x22, %eax
cmpl $0x3a, %eax
ja 0x6a85
btq %rax, %r13
jae 0x6a85
movq %rbx, %rdi
movl $0x5c, %esi
callq 0x2190
movsbl (%r12), %esi
movq %rbx, %rdi
callq 0x2190
incq %r12
movq (%r14), %rax
addq 0x8(%r14), %rax
cmpq %rax, %r12
jne 0x6a65
movq %rbx, %rdi
movl $0x22, %esi
callq 0x2190
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x6abd
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x6ad3
movq (%r15), %rsi
incq %rsi
callq 0x21d0
movq %r14, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/joncampbell123[P]haxcc/haxpp.cpp
// Function: expression::newnode(token const&)
expression::node::node_t expression::newnode(const token &nt) {
    const node::node_t r = nodelist.size();
    nodelist.resize(r+size_t(1));
    nodelist[r].tval = nt;
    return r;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %r12
subq (%rdi), %r12
movq %r12, %rax
sarq $0x4, %rax
movabsq $-0x71c71c71c71c71c7, %r15 # imm = 0x8E38E38E38E38E39
imulq %rax, %r15
leaq 0x1(%r15), %rsi
callq 0xf17c
movq (%r14), %rax
leaq (%rax,%r12), %rdi
movl $0x9, %ecx
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq (%rax,%r12), %rdi
addq $0x48, %rdi
addq $0x48, %rbx
movq %rbx, %rsi
callq 0x2100
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/joncampbell123[P]haxcc/haxpp.cpp
// Function: expression::newnode(token const&, token::token_t)
expression::node::node_t expression::newnode(const token &nt,const token::token_t ntval) {
    const node::node_t r = nodelist.size();
    nodelist.resize(r+size_t(1));
    nodelist[r].tval = nt;
    nodelist[r].tval.tval = ntval;
    return r;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movq 0x8(%rdi), %r13
subq (%rdi), %r13
movq %r13, %rax
sarq $0x4, %rax
movabsq $-0x71c71c71c71c71c7, %r12 # imm = 0x8E38E38E38E38E39
imulq %rax, %r12
leaq 0x1(%r12), %rsi
callq 0xf17c
movq (%r15), %rax
leaq (%rax,%r13), %rdi
movl $0x9, %ecx
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq (%rax,%r13), %rdi
addq $0x48, %rdi
addq $0x48, %r14
movq %r14, %rsi
callq 0x2100
movq (%r15), %rax
movl %ebx, (%rax,%r13)
movq %r12, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/joncampbell123[P]haxcc/haxpp.cpp
// Function: match_token_list(token::token_t&, token const&, tokenlist_entry const*)
bool match_token_list(token::token_t &repl,const token &t,const tokenlist_entry *tokens) {
    while (tokens->match != token::NONE) {
        if (t.tval == tokens->match) {
            repl = tokens->replace;
            return true;
        }

        tokens++;
    }

    return false;
}

// Assembly:
movl (%rdx), %r8d
testl %r8d, %r8d
setne %al
je 0xaf30
movl (%rsi), %ecx
cmpl %r8d, %ecx
je 0xaf2b
movl 0x8(%rdx), %esi
testl %esi, %esi
setne %al
je 0xaf30
addq $0x8, %rdx
cmpl %esi, %ecx
jne 0xaf19
movl 0x4(%rdx), %ecx
movl %ecx, (%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O1/joncampbell123[P]haxcc/haxpp.cpp
// Function: parse_expr_ltr_unary(expression&, __gnu_cxx::__normal_iterator<token*, std::vector<token, std::allocator<token>>>&, __gnu_cxx::__normal_iterator<token*, std::vector<token, std::allocator<token>>> const&, unsigned int, tokenlist_entry const*, unsigned long)
expression::node::node_t parse_expr_ltr_unary(expression &expr,token_string::iterator &ti,const token_string::iterator &tie,unsigned int min_prec,const tokenlist_entry *match_token,expression::node::node_t headnode) {
    token::token_t repl;
    unsigned int prec;

    while (ti != tie && match_token_list(/*&*/repl,*ti,match_token) && (prec=token::precedence(*ti,false)) <= min_prec) {
        const expression::node::node_t opnode = expr.newnode(*(ti++),repl);

        expr.getnode(opnode).children.resize(1);
        expr.getnode(opnode).children[0] = headnode;
        headnode = opnode;
    }

    return headnode;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %rbp
movl %ecx, (%rsp)
movq %rsi, 0x8(%rsp)
movq (%rsi), %r15
movq %rdx, 0x10(%rsp)
cmpq (%rdx), %r15
je 0xb876
movq %r8, %r12
movq %rdi, %r13
movabsq $-0x71c71c71c71c71c7, %r14 # imm = 0x8E38E38E38E38E39
movl (%r12), %esi
testl %esi, %esi
setne %al
je 0xb7d0
movl (%r15), %ecx
movb $0x1, %al
movq %r12, %rdx
cmpl %esi, %ecx
je 0xb7c9
movl 0x8(%rdx), %esi
testl %esi, %esi
setne %al
je 0xb7d0
addq $0x8, %rdx
jmp 0xb7b5
movl 0x4(%rdx), %ecx
movl %ecx, 0x4(%rsp)
testb %al, %al
je 0xb876
movq %r15, %rdi
xorl %esi, %esi
callq 0x291e
cmpl (%rsp), %eax
ja 0xb876
leaq 0x70(%r15), %rax
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
movq %r13, %rdi
movq %r15, %rsi
movl 0x4(%rsp), %edx
callq 0xae96
movq %rax, %rbx
movq (%r13), %rax
movq 0x8(%r13), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
imulq %r14, %rcx
cmpq %rcx, %rbx
jae 0xb88b
leaq (%rbx,%rbx,8), %r15
shlq $0x4, %r15
leaq (%rax,%r15), %rdi
addq $0x70, %rdi
movl $0x1, %esi
callq 0xf1be
movq (%r13), %rax
movq 0x8(%r13), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
imulq %r14, %rcx
cmpq %rcx, %rbx
jae 0xb8a9
movq 0x70(%rax,%r15), %rax
movq %rbp, (%rax)
movq 0x8(%rsp), %rax
movq (%rax), %r15
movq %rbx, %rbp
movq 0x10(%rsp), %rax
cmpq (%rax), %r15
jne 0xb7a2
jmp 0xb879
movq %rbp, %rbx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x20e0
movq %rax, %rbx
leaq 0x8e18(%rip), %rsi      # 0x146b7
movq %rax, %rdi
callq 0x20b0
jmp 0xb8c5
movl $0x10, %edi
callq 0x20e0
movq %rax, %rbx
leaq 0x8dfa(%rip), %rsi      # 0x146b7
movq %rax, %rdi
callq 0x20b0
movq 0xe72c(%rip), %rsi      # 0x19ff8
movq 0xe6dd(%rip), %rdx      # 0x19fb0
movq %rbx, %rdi
callq 0x2330
jmp 0xb8dd
movq %rax, %r14
movq %rbx, %rdi
callq 0x2160
movq %r14, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/joncampbell123[P]haxcc/haxpp.cpp
// Function: dump_expr_node(_IO_FILE*, expression const&, unsigned long, unsigned int)
void dump_expr_node(FILE *fp,const expression &expr,const expression::node::node_t node,unsigned int depth) {
    if (fp == NULL)
        fp = stderr;

    for (unsigned int c=0;c < depth;c++)
        fprintf(fp,"| ");

    fprintf(fp,"node[%zu]: %s\n",node,to_string(expr.getnode(node).tval).c_str());
    for (size_t i=0;i < expr.getnode(node).children.size();i++)
        dump_expr_node(fp,expr,expr.getnode(node).children[i],depth+1u);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
testq %rdi, %rdi
jne 0xc3b4
movq 0xdc07(%rip), %rax      # 0x19fb8
movq (%rax), %r12
testl %ebx, %ebx
je 0xc3da
leaq 0x7960(%rip), %r13      # 0x13d1f
movl %ebx, %ebp
movl $0x2, %esi
movl $0x1, %edx
movq %r13, %rdi
movq %r12, %rcx
callq 0x23c0
decl %ebp
jne 0xc3c1
movq (%r15), %rsi
movq 0x8(%r15), %rax
subq %rsi, %rax
sarq $0x4, %rax
movabsq $-0x71c71c71c71c71c7, %rcx # imm = 0x8E38E38E38E38E39
imulq %rcx, %rax
cmpq %r14, %rax
jbe 0xc4fb
leaq (%r14,%r14,8), %r13
shlq $0x4, %r13
addq %r13, %rsi
leaq 0x8(%rsp), %rbp
movq %rbp, %rdi
callq 0x5221
movq (%rbp), %rcx
leaq 0x7dd3(%rip), %rsi      # 0x141f5
movq %r12, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x2280
movq (%rbp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xc44a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq (%r15), %rax
movq 0x8(%r15), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
movabsq $-0x71c71c71c71c71c7, %rdx # imm = 0x8E38E38E38E38E39
imulq %rdx, %rcx
cmpq %r14, %rcx
jbe 0xc4ba
incl %ebx
xorl %ebp, %ebp
movq 0x70(%rax,%r13), %rcx
movq 0x78(%rax,%r13), %rax
subq %rcx, %rax
sarq $0x3, %rax
cmpq %rax, %rbp
jae 0xc4ec
movq (%rcx,%rbp,8), %rdx
movq %r12, %rdi
movq %r15, %rsi
movl %ebx, %ecx
callq 0xc38c
incq %rbp
movq (%r15), %rax
movq 0x8(%r15), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
movabsq $-0x71c71c71c71c71c7, %rdx # imm = 0x8E38E38E38E38E39
imulq %rdx, %rcx
cmpq %r14, %rcx
ja 0xc46f
movl $0x10, %edi
callq 0x20e0
movq %rax, %rbx
leaq 0x81e9(%rip), %rsi      # 0x146b7
movq %rax, %rdi
callq 0x20b0
movq 0xdb1b(%rip), %rsi      # 0x19ff8
movq 0xdacc(%rip), %rdx      # 0x19fb0
movq %rbx, %rdi
callq 0x2330
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x20e0
movq %rax, %rbx
leaq 0x81a8(%rip), %rsi      # 0x146b7
movq %rax, %rdi
callq 0x20b0
jmp 0xc4d6
jmp 0xc51b
movq %rax, %r14
movq %rbx, %rdi
callq 0x2160
movq %r14, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/joncampbell123[P]haxcc/haxpp.cpp
// Function: dump_expr(_IO_FILE*, expression const&)
void dump_expr(FILE *fp,const expression &expr) {
    if (fp == NULL)
        fp = stderr;

    fprintf(fp,"expression:\n");
    if (expr.root != expression::node::none)
        dump_expr_node(fp,expr,expr.root,1);
    fprintf(fp,"END\n");
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
testq %rdi, %rdi
jne 0xc547
movq 0xda74(%rip), %rax      # 0x19fb8
movq (%rax), %rbx
leaq 0x7cb6(%rip), %rdi      # 0x14204
movl $0xc, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x23c0
movq 0x18(%r14), %rdx
cmpq $-0x1, %rdx
je 0xc57a
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %ecx
callq 0xc38c
leaq 0x7c90(%rip), %rdi      # 0x14211
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x23c0
// File: /workspace/github_cpp_makefile_star2_O1/joncampbell123[P]haxcc/haxpp.cpp
// Function: FileSourceStack::pop()
void pop() {
        if (stkpos >= 0) {
            src[stkpos].close();
            stkpos--;
        }
        else {
            throw underflow_error("FileSourceStack stack underflow");
        }
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x18(%rdi), %rax
testq %rax, %rax
js 0xf436
movq %rdi, %rbx
movq (%rdi), %rcx
imulq $0x38, %rax, %rax
leaq (%rcx,%rax), %r14
movq (%rcx,%rax), %rdi
testq %rdi, %rdi
je 0xf425
cmpb $0x1, 0x8(%r14)
jne 0xf41e
callq 0x21b0
movq $0x0, (%r14)
movb $0x0, 0x8(%r14)
decq 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0x10, %edi
callq 0x20e0
movq %rax, %rbx
leaq 0x535f(%rip), %rsi      # 0x147a9
movq %rax, %rdi
callq 0x23d0
movq 0xab4f(%rip), %rsi      # 0x19fa8
movq 0xab90(%rip), %rdx      # 0x19ff0
movq %rbx, %rdi
callq 0x2330
movq %rax, %r14
movq %rbx, %rdi
callq 0x2160
movq %r14, %rdi
callq 0x2360
nop
// File: /workspace/github_cpp_makefile_star2_O1/ashlall[P]StreamStats/Test/./../SourceCode/BasicStats/BasicStats.cpp
// Function: BasicStats::copy(BasicStats const&)
void BasicStats::copy(const BasicStats& other)
{
  sum = other.sum;
  squaredsum = other.squaredsum;
  stream_size = other.stream_size;
  min = other.min;
  max = other.max;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movsd (%rsi), %xmm0
movsd %xmm0, (%rdi)
movsd 0x8(%rsi), %xmm0
movsd %xmm0, 0x8(%rdi)
movq 0x20(%rsi), %rax
movq %rax, 0x20(%rdi)
movsd 0x10(%rsi), %xmm0
movsd %xmm0, 0x10(%rdi)
movsd 0x18(%rsi), %xmm0
movsd %xmm0, 0x18(%rdi)
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/ashlall[P]StreamStats/Test/./../SourceCode/BasicStats/BasicStats.cpp
// Function: BasicStats::insert(double)
void BasicStats::insert(double num)
{
  stream_size++; 
  sum = sum + num;
  squaredsum += num * num;
  min = if_MIN(num);
  max = if_MAX(num);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x20(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x20(%rdi)
movsd (%rdi), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rdi)
movapd %xmm0, %xmm1
mulsd %xmm0, %xmm1
addsd 0x8(%rdi), %xmm1
movsd %xmm1, 0x8(%rdi)
testq %rax, %rax
je 0x12b7
movapd %xmm0, %xmm1
minsd 0x10(%rdi), %xmm1
movsd %xmm1, 0x10(%rdi)
jmp 0x12c1
movsd %xmm0, 0x10(%rdi)
movsd %xmm0, 0x18(%rdi)
movsd 0x18(%rdi), %xmm1
movapd %xmm1, %xmm2
cmplesd %xmm0, %xmm2
andpd %xmm2, %xmm0
andnpd %xmm1, %xmm2
orpd %xmm0, %xmm2
movlpd %xmm2, 0x18(%rdi)
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/ashlall[P]StreamStats/Test/BasicStats_test.cpp
// Function: test_Average()
void test_Average()
{
  BasicStats a;
  a.insert(50);
  assert(a.Average()==50); //tests when there is only one number in the stream.       
        
  BasicStats b;
  for (int i=1;i<=100;i++) //tests for ascending number from 1 to 100. 
    b.insert(i);
  assert(b.Average()==50.5);
  
  BasicStats c; // tests with one million items in the stream in descending order 
  for (int i=1000000;i>=1;i--)
    c.insert(i);
  assert(c.Average()==500000.5);
  
  BasicStats d;
  double sum=0;
  int random_num;
  for(int i=0;i<100000;i++)
  {
     random_num=(rand()%1000+250);
     d.insert(random_num); //tests for a randomly generated stream
     sum=sum+random_num;
  }
   assert(d.Average()==sum/100000);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
xorpd %xmm0, %xmm0
movsd 0x7dc(%rip), %xmm1      # 0x2008
movl $0x64, %eax
movapd %xmm1, %xmm2
addsd %xmm2, %xmm0
addsd %xmm1, %xmm2
decq %rax
jne 0x1835
divsd 0x7ce(%rip), %xmm0      # 0x2018
ucomisd 0x7ee(%rip), %xmm0      # 0x2040
jne 0x1911
jp 0x1911
xorpd %xmm0, %xmm0
movl $0xf4240, %eax          # imm = 0xF4240
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
addsd %xmm1, %xmm0
decq %rax
jne 0x1867
divsd 0x7a9(%rip), %xmm0      # 0x2028
ucomisd 0x7c1(%rip), %xmm0      # 0x2048
jne 0x1930
jp 0x1930
xorpd %xmm1, %xmm1
movl $0x186a0, %ebx          # imm = 0x186A0
xorpd %xmm2, %xmm2
movsd %xmm2, -0x10(%rbp)
movsd %xmm1, -0x18(%rbp)
callq 0x1030
movsd -0x10(%rbp), %xmm2
movsd -0x18(%rbp), %xmm1
cltq
imulq $0x10624dd3, %rax, %rcx # imm = 0x10624DD3
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x26, %rcx
addl %edx, %ecx
imull $0x3e8, %ecx, %ecx      # imm = 0x3E8
negl %ecx
addl %ecx, %eax
addl $0xfa, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
addsd %xmm0, %xmm2
addsd %xmm0, %xmm1
decq %rbx
jne 0x18a0
movsd 0x756(%rip), %xmm0      # 0x2050
divsd %xmm0, %xmm2
divsd %xmm0, %xmm1
ucomisd %xmm1, %xmm2
jne 0x194f
jp 0x194f
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
leaq 0x859(%rip), %rdi       # 0x2171
leaq 0x7a1(%rip), %rsi       # 0x20c0
leaq 0x837(%rip), %rcx       # 0x215d
movl $0x50, %edx
callq 0x1040
leaq 0x84c(%rip), %rdi       # 0x2183
leaq 0x782(%rip), %rsi       # 0x20c0
leaq 0x818(%rip), %rcx       # 0x215d
movl $0x55, %edx
callq 0x1040
leaq 0x843(%rip), %rdi       # 0x2199
leaq 0x763(%rip), %rsi       # 0x20c0
leaq 0x7f9(%rip), %rcx       # 0x215d
movl $0x60, %edx
callq 0x1040
// File: /workspace/github_cpp_makefile_star2_O1/ashlall[P]StreamStats/Test/BasicStats_test.cpp
// Function: main
int main()
{
  test_Average();
  test_MIN();
  test_MAX();
  test_SD();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
callq 0x1817
callq 0x13a1
callq 0x159f
callq 0x196e
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/ncbi[P]amr/./common.hpp
// Function: Common_sp::ONumber::ONumber(std::ostream&, long, bool)
ONumber (ostream &o_arg,
	         streamsize precision,
	         bool scientific_arg)
	  : o (o_arg)
	  , prec_old (o. precision ())
	  , flags_old (o. flags ())
	  { if (scientific_arg)
	  	  o << scientific;
	  	else
	  		o << fixed;
      o. precision (precision);
	  }

// Assembly:
movq %rsi, (%rdi)
movq (%rsi), %rax
movq -0x18(%rax), %r8
movq 0x8(%rsi,%r8), %r8
movq %r8, 0x8(%rdi)
movq -0x18(%rax), %r8
movl 0x18(%rsi,%r8), %r8d
movl %r8d, 0x10(%rdi)
movq -0x18(%rax), %rdi
movl $0xfffffefb, %r8d       # imm = 0xFFFFFEFB
andl 0x18(%rsi,%rdi), %r8d
testl %ecx, %ecx
movl $0x100, %ecx            # imm = 0x100
movl $0x4, %r9d
cmovnel %ecx, %r9d
orl %r8d, %r9d
movl %r9d, 0x18(%rsi,%rdi)
movq -0x18(%rax), %rax
movq %rdx, 0x8(%rsi,%rax)
retq
// File: /workspace/github_cpp_makefile_star2_O1/ncbi[P]amr/./tsv.hpp
// Function: Common_sp::TsvOut& Common_sp::TsvOut::operator<<<char const*>(char const* const&)
TsvOut& operator<< (const T &field)
      { if (os)
        { if (lines && fields >= fields_max)
            throw runtime_error ("TsvOut: fields_max = " + to_string (fields_max));
          if (fields)  
            *os << '\t'; 
          else if (! lines && usePound)
            *os << '#';
          *os << field; 
          fields++;
        }
        return *this; 
      }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r14
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x136bd
movq %rsi, %rbx
movq 0x10(%r14), %rax
testq %rax, %rax
je 0x1364d
movq 0x20(%r14), %rcx
cmpq 0x18(%r14), %rcx
jae 0x136cb
cmpq $0x0, 0x20(%r14)
je 0x13668
leaq 0x8(%rsp), %rsi
movb $0x9, (%rsi)
movl $0x1, %edx
callq 0xa5e0
jmp 0x1367e
testq %rax, %rax
jne 0x1367e
cmpb $0x1, 0x28(%r14)
jne 0x1367e
leaq 0x8(%rsp), %rsi
movb $0x23, (%rsi)
jmp 0x1365c
movq (%r14), %r15
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x136a1
movq %rbx, %rdi
callq 0xa250
movq %r15, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0xa5e0
jmp 0x136b9
movq (%r15), %rax
movq -0x18(%rax), %rax
leaq (%r15,%rax), %rdi
movl 0x20(%r15,%rax), %esi
orl $0x1, %esi
callq 0xa920
incq 0x20(%r14)
movq %r14, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0xa2a0
movq %rax, %rbx
movq 0x18(%r14), %rsi
leaq 0x28(%rsp), %rdi
callq 0x12e58
leaq 0x5bece(%rip), %rsi     # 0x6f5bb
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x1399a
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xa8b0
xorl %ebp, %ebp
movq 0x798db(%rip), %rsi     # 0x8cff0
movq 0x79854(%rip), %rdx     # 0x8cf70
movq %rbx, %rdi
callq 0xa940
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1374a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa540
jmp 0x1374a
movq %rax, %r14
movb $0x1, %bpl
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1376d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa540
jmp 0x1376d
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x1377a
movq %rbx, %rdi
callq 0xa400
movq %r14, %rdi
callq 0xa9a0
// File: /workspace/github_cpp_makefile_star2_O1/ncbi[P]amr/./tsv.hpp
// Function: Common_sp::TsvOut::newLn()
void newLn ()
    { if (! os)
        return;
      *os << endl;
      if (! lines)
        fields_max = fields;
      lines++;
      if (fields != fields_max)
        throw runtime_error ("TsvOut: fields_max = " + to_string (fields_max) + ", but fields = " + to_string (fields));
      fields = 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xa8, %rsp
movq (%rdi), %rbx
testq %rbx, %rbx
je 0x137eb
movq %rdi, %r14
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0xa510
movsbl %al, %esi
movq %rbx, %rdi
callq 0xa040
movq %rax, %rdi
callq 0xa3c0
movq 0x10(%r14), %rax
testq %rax, %rax
jne 0x137d2
movq 0x20(%r14), %rcx
movq %rcx, 0x18(%r14)
incq %rax
movq %rax, 0x10(%r14)
movq 0x20(%r14), %rax
cmpq 0x18(%r14), %rax
jne 0x137f9
movq $0x0, 0x20(%r14)
addq $0xa8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0xa2a0
movq %rax, %rbx
movq 0x18(%r14), %rsi
leaq 0x48(%rsp), %rdi
callq 0x12e58
leaq 0x5bda0(%rip), %rsi     # 0x6f5bb
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x1399a
leaq 0x5bec8(%rip), %rsi     # 0x6f6f9
leaq 0x68(%rsp), %rdi
callq 0xaa50
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x1385c
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x13869
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%r14), %rsi
leaq 0x28(%rsp), %rdi
callq 0x12e58
leaq 0x88(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
callq 0x1100c
movb $0x1, %bpl
leaq 0x88(%rsp), %rsi
movq %rbx, %rdi
callq 0xa8b0
xorl %ebp, %ebp
movq 0x7972e(%rip), %rsi     # 0x8cff0
movq 0x796a7(%rip), %rdx     # 0x8cf70
movq %rbx, %rdi
callq 0xa940
movq %rax, %r14
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x138fd
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xa540
jmp 0x138fd
movq %rax, %r14
movb $0x1, %bpl
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13920
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa540
jmp 0x13920
movq %rax, %r14
movb $0x1, %bpl
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x1393f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa540
jmp 0x1393f
movq %rax, %r14
movb $0x1, %bpl
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13962
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xa540
jmp 0x13962
movq %rax, %r14
movb $0x1, %bpl
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13985
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa540
jmp 0x13985
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x13992
movq %rbx, %rdi
callq 0xa400
movq %r14, %rdi
callq 0xa9a0
// File: /workspace/github_cpp_makefile_star2_O1/mburhanpurkar[P]fast_xorshift_plus/./fast_rng.hpp
// Function: fast_rng::vec_xorshift_plus::vec_xorshift_plus()
vec_xorshift_plus()
    {
        if (!is_aligned(&s0,32) || !is_aligned(&s1,32))
	    throw std::runtime_error("Fatal: unaligned vec_xorshift_plus!  See discussion in fast_rng.hpp");
      
        std::random_device rd;
        s0 = _mm256_setr_epi64x(rng_helpers::rd64(rd), rng_helpers::rd64(rd), rng_helpers::rd64(rd), rng_helpers::rd64(rd));
	s1 = _mm256_setr_epi64x(rng_helpers::rd64(rd), rng_helpers::rd64(rd), rng_helpers::rd64(rd), rng_helpers::rd64(rd));
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1398, %rsp           # imm = 0x1398
movq %rdi, 0x8(%rsp)
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x28e0
movq %rbx, %rdi
callq 0x2170
movl %eax, 0x4(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x2170
movl %eax, %r14d
leaq 0x10(%rsp), %rdi
callq 0x2170
movl %eax, %r15d
leaq 0x10(%rsp), %rdi
callq 0x2170
movl %eax, %r12d
leaq 0x10(%rsp), %rdi
callq 0x2170
movl %eax, %r13d
leaq 0x10(%rsp), %rdi
callq 0x2170
movl %eax, %ebx
leaq 0x10(%rsp), %rdi
callq 0x2170
movl %eax, %ebp
leaq 0x10(%rsp), %rdi
callq 0x2170
shlq $0x20, %r14
movl 0x4(%rsp), %ecx
orq %r14, %rcx
shlq $0x20, %r12
movl %r15d, %edx
orq %r12, %rdx
shlq $0x20, %rbx
movl %r13d, %esi
orq %rbx, %rsi
shlq $0x20, %rax
movl %ebp, %edi
orq %rax, %rdi
vmovq %rdi, %xmm0
vmovq %rsi, %xmm1
vpunpcklqdq %xmm0, %xmm1, %xmm0 # xmm0 = xmm1[0],xmm0[0]
vmovq %rdx, %xmm1
vmovq %rcx, %xmm2
vpunpcklqdq %xmm1, %xmm2, %xmm1 # xmm1 = xmm2[0],xmm1[0]
movq 0x8(%rsp), %rax
vmovdqa %xmm1, (%rax)
vmovdqa %xmm0, 0x10(%rax)
leaq 0x10(%rsp), %rdi
callq 0x2170
movl %eax, 0x4(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x2170
movl %eax, %r14d
leaq 0x10(%rsp), %rdi
callq 0x2170
movl %eax, %r15d
leaq 0x10(%rsp), %rdi
callq 0x2170
movl %eax, %r12d
leaq 0x10(%rsp), %rdi
callq 0x2170
movl %eax, %r13d
leaq 0x10(%rsp), %rdi
callq 0x2170
movl %eax, %ebx
leaq 0x10(%rsp), %rdi
callq 0x2170
movl %eax, %ebp
leaq 0x10(%rsp), %rdi
callq 0x2170
shlq $0x20, %r14
movl 0x4(%rsp), %ecx
orq %r14, %rcx
shlq $0x20, %r12
movl %r15d, %edx
orq %r12, %rdx
shlq $0x20, %rbx
movl %r13d, %esi
orq %rbx, %rsi
shlq $0x20, %rax
movl %ebp, %edi
orq %rax, %rdi
vmovq %rdi, %xmm0
vmovq %rsi, %xmm1
vpunpcklqdq %xmm0, %xmm1, %xmm0 # xmm0 = xmm1[0],xmm0[0]
vmovq %rdx, %xmm1
vmovq %rcx, %xmm2
vpunpcklqdq %xmm1, %xmm2, %xmm1 # xmm1 = xmm2[0],xmm1[0]
movq 0x8(%rsp), %rax
vmovdqa %xmm1, 0x20(%rax)
vmovdqa %xmm0, 0x30(%rax)
leaq 0x10(%rsp), %rdi
callq 0x2120
addq $0x1398, %rsp           # imm = 0x1398
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x310d
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2120
movq %rbx, %rdi
callq 0x21e0
movq %rax, %rdi
callq 0x29da
// File: /workspace/github_cpp_makefile_star2_O1/ksherlock[P]wdc-utils/dumpobj.cpp
// Function: read_sections(std::vector<unsigned char, std::allocator<unsigned char>> const&)
std::vector<section> read_sections(const std::vector<uint8_t> &section_data) {

	std::vector<section> sections;
	auto iter = section_data.begin();
	while (iter != section_data.end()) {

		section s;

		s.number = read_8(iter);
		s.flags = read_8(iter);
		s.size = read_32(iter);
		s.org = read_32(iter);

		if (!(s.flags & SEC_NONAME)) s.name = read_cstring(iter);

		sections.emplace_back(std::move(s));
	}
	return sections;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq (%rsi), %rax
movq %rax, (%rsp)
cmpq 0x8(%rsi), %rax
je 0x2748
movq %rsi, %r14
leaq 0x18(%rsp), %rbp
xorl %r12d, %r12d
leaq 0x38(%rsp), %r15
leaq 0x8(%rsp), %r13
movq %rbp, 0x8(%rsp)
movq %r12, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movw $0x0, 0x28(%rsp)
movq %r12, 0x2c(%rsp)
movb (%rax), %cl
leaq 0x1(%rax), %rdx
movq %rdx, (%rsp)
movb %cl, 0x28(%rsp)
movb 0x1(%rax), %cl
leaq 0x2(%rax), %rdx
movq %rdx, (%rsp)
movb %cl, 0x29(%rsp)
movzbl 0x2(%rax), %edx
leaq 0x3(%rax), %rsi
movq %rsi, (%rsp)
movzbl 0x3(%rax), %esi
shll $0x8, %esi
orl %edx, %esi
leaq 0x4(%rax), %rdx
movq %rdx, (%rsp)
movzbl 0x4(%rax), %edx
shll $0x10, %edx
orl %esi, %edx
leaq 0x5(%rax), %rsi
movq %rsi, (%rsp)
movzbl 0x5(%rax), %esi
shll $0x18, %esi
orl %edx, %esi
leaq 0x6(%rax), %rdx
movq %rdx, (%rsp)
movl %esi, 0x2c(%rsp)
movzbl 0x6(%rax), %edx
leaq 0x7(%rax), %rsi
movq %rsi, (%rsp)
movzbl 0x7(%rax), %esi
shll $0x8, %esi
orl %edx, %esi
leaq 0x8(%rax), %rdx
movq %rdx, (%rsp)
movzbl 0x8(%rax), %edx
shll $0x10, %edx
orl %esi, %edx
leaq 0x9(%rax), %rsi
movq %rsi, (%rsp)
movzbl 0x9(%rax), %esi
shll $0x18, %esi
orl %edx, %esi
addq $0xa, %rax
movq %rax, (%rsp)
movl %esi, 0x30(%rsp)
testb $0x40, %cl
jne 0x2718
movq %r15, %rdi
movq %rsp, %rsi
callq 0x65e7
movq %r13, %rdi
movq %r15, %rsi
callq 0x2220
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x2718
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x6656
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x273a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21c0
movq (%rsp), %rax
cmpq 0x8(%r14), %rax
jne 0x2623
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x275c
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2776
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x66ca
movq %r14, %rdi
callq 0x22c0
// File: /workspace/github_cpp_makefile_star2_O1/ksherlock[P]wdc-utils/dumpobj.cpp
// Function: read_symbols(std::vector<unsigned char, std::allocator<unsigned char>> const&)
std::vector<symbol> read_symbols(const std::vector<uint8_t> &symbol_data) {

	std::vector<symbol> symbols;

	auto iter = symbol_data.begin();
	while (iter != symbol_data.end()) {
		symbol s;
		s.type = read_8(iter);
		s.flags = read_8(iter);
		s.section = read_8(iter);
		s.offset = s.type == S_UND ? 0 : read_32(iter);
		s.name = read_cstring(iter);


		symbols.emplace_back(std::move(s));
	}

	return symbols;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq (%rsi), %rax
movq %rax, 0x8(%rsp)
cmpq 0x8(%rsi), %rax
je 0x28d6
movq %rsi, %r14
leaq 0x20(%rsp), %rbp
leaq 0x38(%rsp), %r15
leaq 0x8(%rsp), %r12
leaq 0x10(%rsp), %r13
movq %rbp, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
movw $0x0, 0x30(%rsp)
movb $-0x1, 0x32(%rsp)
movl $0x0, 0x34(%rsp)
movb (%rax), %cl
leaq 0x1(%rax), %rdx
movq %rdx, 0x8(%rsp)
movb %cl, 0x30(%rsp)
movb 0x1(%rax), %dl
leaq 0x2(%rax), %rsi
movq %rsi, 0x8(%rsp)
movb %dl, 0x31(%rsp)
movb 0x2(%rax), %dl
leaq 0x3(%rax), %rsi
movq %rsi, 0x8(%rsp)
movb %dl, 0x32(%rsp)
testb %cl, %cl
je 0x286d
movzbl 0x3(%rax), %ecx
leaq 0x4(%rax), %rdx
movq %rdx, 0x8(%rsp)
movzbl 0x4(%rax), %edx
shll $0x8, %edx
orl %ecx, %edx
leaq 0x5(%rax), %rcx
movq %rcx, 0x8(%rsp)
movzbl 0x5(%rax), %esi
shll $0x10, %esi
orl %edx, %esi
leaq 0x6(%rax), %rcx
movq %rcx, 0x8(%rsp)
movzbl 0x6(%rax), %ecx
shll $0x18, %ecx
orl %esi, %ecx
addq $0x7, %rax
movq %rax, 0x8(%rsp)
jmp 0x286f
xorl %ecx, %ecx
movl %ecx, 0x34(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x65e7
movq %r13, %rdi
movq %r15, %rsi
callq 0x2220
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x28a5
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x6726
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x28c7
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x8(%rsp), %rax
cmpq 0x8(%r14), %rax
jne 0x27ce
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x28ea
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2904
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x6794
movq %r14, %rdi
callq 0x22c0
// File: /workspace/github_cpp_makefile_star2_O1/ksherlock[P]wdc-utils/dumpobj.cpp
// Function: dump(char const*)
void dump(const char *name) {
	Header h;
	int fd;
	ssize_t ok;

	fd = open(name, O_RDONLY | O_BINARY);
	if (fd < 0) err(EX_NOINPUT, "Unable to open %s", name);


	ok = read(fd, &h, sizeof(h));
	if (ok != sizeof(h))
		errx(EX_DATAERR, "%s is not an object file", name);

	le_to_host(h.magic);
	le_to_host(h.version);
	le_to_host(h.filetype);

	if (h.magic != MOD_MAGIC || h.version != 1 || h.filetype > 2)
		errx(EX_DATAERR, "%s is not an object file", name);

	lseek(fd, 0, SEEK_SET);
	if (h.filetype == 2) dump_lib(name, fd);

	// files may contain multiple modules.
	while (dump_obj(name, fd)) /* ... */;

	close(fd);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
xorl %esi, %esi
xorl %eax, %eax
callq 0x2150
testl %eax, %eax
js 0x6539
movl %eax, %ebp
leaq 0x8(%rsp), %rsi
movl $0x7, %edx
movl %eax, %edi
callq 0x2250
cmpq $0x7, %rax
jne 0x6523
cmpl $0x5a44525a, 0x8(%rsp)  # imm = 0x5A44525A
jne 0x6523
cmpw $0x1, 0xc(%rsp)
jne 0x6523
movb 0xe(%rsp), %r14b
cmpb $0x3, %r14b
jae 0x6523
movl %ebp, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2300
cmpb $0x2, %r14b
jne 0x6506
movq %rbx, %rdi
movl %ebp, %esi
callq 0x61c2
movq %rbx, %rdi
movl %ebp, %esi
callq 0x2914
testb %al, %al
jne 0x6506
movl %ebp, %edi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x2330
leaq 0x8b92(%rip), %rsi      # 0xf0bc
movl $0x41, %edi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2310
leaq 0x8e2a(%rip), %rsi      # 0xf36a
movl $0x42, %edi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x21a0
// File: /workspace/github_cpp_makefile_star2_O1/ksherlock[P]wdc-utils/dumpobj.cpp
// Function: main
int main(int argc, char **argv) {

	int c;
	while ((c = getopt(argc, argv, "Sgn")) != -1) {
			switch(c) {
				case 'S': flags.S = true; break;
				case 'g': flags.g = true; break;
				case 'n': flags.n = true; break;
				default: exit(EX_USAGE); break;
			}
	}

	argv += optind;
	argc -= optind;

	if (argc == 0) usage();

	for (int i = 0; i < argc; ++i) {
		dump(argv[i]);
	}

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movl %edi, %ebx
leaq 0x8e18(%rip), %r15      # 0xf37c
leaq 0xec65(%rip), %r12      # 0x151d0
leaq 0xec5f(%rip), %r13      # 0x151d1
movl %ebx, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2060
cmpl $0x66, %eax
jle 0x6593
cmpl $0x67, %eax
je 0x6572
cmpl $0x6e, %eax
jne 0x65dd
movq %r13, %rcx
jmp 0x659b
movq %r12, %rcx
cmpl $0x53, %eax
jne 0x65a0
movb $0x1, (%rcx)
jmp 0x6572
cmpl $-0x1, %eax
jne 0x65dd
movq 0xea34(%rip), %rax      # 0x14fe0
movslq (%rax), %rax
subl %eax, %ebx
je 0x65dd
testl %ebx, %ebx
jle 0x65d1
leaq (%r14,%rax,8), %r14
movl %ebx, %ebx
xorl %r15d, %r15d
movq (%r14,%r15,8), %rdi
callq 0x6499
incq %r15
cmpq %r15, %rbx
jne 0x65c0
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movl $0x40, %edi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O1/ksherlock[P]wdc-utils/dumpobj.cpp
// Function: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> read_cstring<__gnu_cxx::__normal_iterator<unsigned char const*, std::vector<unsigned char, std::allocator<unsigned char>>>>(__gnu_cxx::__normal_iterator<unsigned char const*, std::vector<unsigned char, std::allocator<unsigned char>>>&)
std::string read_cstring(T &iter) {
	std::string s;
	for(;;) {
		uint8_t c = *iter;
		++iter;
		if (!c) break;
		s.push_back(c);
	}
	return s;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq (%r14), %rax
movb (%rax), %bpl
incq %rax
movq %rax, (%r14)
testb %bpl, %bpl
je 0x6629
movsbl %bpl, %esi
movq %rbx, %rdi
callq 0x2180
testb %bpl, %bpl
jne 0x6607
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x664d
movq (%r15), %rsi
incq %rsi
callq 0x21c0
movq %r14, %rdi
callq 0x22c0
nop
// File: /workspace/github_cpp_makefile_star2_O1/ksherlock[P]wdc-utils/dumpobj.cpp
// Function: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> read_pstring<__gnu_cxx::__normal_iterator<unsigned char*, std::vector<unsigned char, std::allocator<unsigned char>>>>(__gnu_cxx::__normal_iterator<unsigned char*, std::vector<unsigned char, std::allocator<unsigned char>>>&)
std::string read_pstring(T &iter) {
	std::string s;
	unsigned  size = *iter;
	++iter;
	s.reserve(size);
	while (size--) {
		uint8_t c = *iter;
		++iter;
		s.push_back(c);
	}
	return s;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq (%rsi), %rax
movzbl (%rax), %r15d
incq %rax
movq %rax, (%rsi)
movq %r15, %rsi
callq 0x2290
incl %r15d
decl %r15d
je 0x6a63
movq (%r14), %rax
movsbl (%rax), %esi
incq %rax
movq %rax, (%r14)
movq %rbx, %rdi
callq 0x2180
jmp 0x6a48
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x6a74
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x6a8b
movq (%r12), %rsi
incq %rsi
callq 0x21c0
movq %r14, %rdi
callq 0x22c0
// File: /workspace/github_cpp_makefile_star2_O1/ksherlock[P]wdc-utils/disassembler.cpp
// Function: disassembler::to_x[abi:cxx11](unsigned int, unsigned int, char)
std::string disassembler::to_x(uint32_t x, unsigned bytes, char prefix) {
	std::string s;
	char buffer[16];
	if (prefix) s.push_back(prefix);

	if (x > 0xff && bytes < 4) bytes = 4;
	if (x > 0xffff && bytes < 6) bytes = 6;
	if (x > 0xffffff && bytes < 8) bytes = 8;

	memset(buffer, '0', sizeof(buffer));
	int i = 16;
	while (x) {
		buffer[--i] = "0123456789abcdef"[x & 0x0f];
		x >>= 4;
	}

	s.append(buffer + 16 - bytes, buffer + 16);

	return s;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %edx, %r14d
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
testb %cl, %cl
je 0x756c
movsbl %cl, %esi
movq %rbx, %rdi
callq 0x2180
cmpl $0x5, %r14d
movl $0x4, %eax
cmovael %r14d, %eax
cmpl $0x100, %ebp            # imm = 0x100
cmovbl %r14d, %eax
cmpl $0x7, %eax
movl $0x6, %ecx
cmovael %eax, %ecx
cmpl $0x10000, %ebp          # imm = 0x10000
cmovbl %eax, %ecx
cmpl $0x9, %ecx
movl $0x8, %eax
cmovael %ecx, %eax
cmpl $0x1000000, %ebp        # imm = 0x1000000
cmovbl %ecx, %eax
movaps 0x7f1e(%rip), %xmm0     # 0xf4d0
movaps %xmm0, (%rsp)
testl %ebp, %ebp
je 0x75e1
leaq 0xf(%rsp), %rcx
leaq 0x86b2(%rip), %rdx      # 0xfc78
movl %ebp, %esi
movl %ebp, %edi
andl $0xf, %edi
movb (%rdi,%rdx), %dil
movb %dil, (%rcx)
shrl $0x4, %esi
decq %rcx
cmpl $0xf, %ebp
movl %esi, %ebp
ja 0x75c8
movl %eax, %r8d
movq %rsp, %rcx
subq %r8, %rcx
addq $0x10, %rcx
movq 0x8(%rbx), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x21f0
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x760c
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x7622
movq (%r15), %rsi
incq %rsi
callq 0x21c0
movq %r14, %rdi
callq 0x22c0
// File: /workspace/github_cpp_makefile_star2_O1/ksherlock[P]wdc-utils/disassembler.cpp
// Function: disassembler::operand_size(unsigned char, bool, bool)
int disassembler::operand_size(uint8_t op, bool m, bool x) {
	unsigned mode = modes[op];
	unsigned size = mode & 0x0f;
	if ((mode & m_I) && x) size++; 
	if ((mode & m_M) && m) size++;
	return size;
}

// Assembly:
movl %edi, %eax
leaq 0x7f1d(%rip), %rcx      # 0xf550
movl (%rcx,%rax,4), %eax
movl %eax, %ecx
andl $0xf, %ecx
movl %eax, %edi
shrl $0x4, %edi
andl %edx, %edi
addl %ecx, %edi
shrl $0x5, %eax
andl %esi, %eax
addl %edi, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/ksherlock[P]wdc-utils/disassembler.cpp
// Function: disassembler::emit(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void disassembler::emit(const std::string &label, const std::string &opcode) {
	std::string tmp;
	tmp = label;

	if (!opcode.empty()) {
		indent_to(tmp, kOpcodeTab);
		tmp += opcode;
	}

	tmp.push_back('\n');
	fputs(tmp.c_str(), stdout);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %rsi
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb $0x0, (%r14)
leaq 0x8(%rsp), %rdi
callq 0x20e0
cmpq $0x0, 0x8(%rbx)
je 0x76ce
cmpq $0x13, 0x10(%rsp)
ja 0x76bd
leaq 0x8(%rsp), %rdi
movl $0x14, %esi
movl $0x20, %edx
callq 0x2080
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
leaq 0x8(%rsp), %rdi
callq 0x2090
leaq 0x8(%rsp), %rdi
movl $0xa, %esi
callq 0x2180
movq 0x8(%rsp), %rdi
movq 0xd8df(%rip), %rax      # 0x14fc8
movq (%rax), %rsi
callq 0x21e0
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x7708
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21c0
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x772a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x22c0
// File: /workspace/github_cpp_makefile_star2_O1/ksherlock[P]wdc-utils/disassembler.cpp
// Function: disassembler::emit(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void disassembler::emit(const std::string &label, const std::string &opcode, const std::string &operand) {

	std::string tmp;
	tmp = label;


	if (!opcode.empty()) {
		indent_to(tmp, kOpcodeTab);
		tmp += opcode;
	}

	if (!operand.empty()) {
		indent_to(tmp, kOperandTab);
		tmp += operand;
	}

	tmp.push_back('\n');
	fputs(tmp.c_str(), stdout);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %rsi
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
movq %rsp, %rdi
callq 0x20e0
cmpq $0x0, 0x8(%r14)
je 0x7791
cmpq $0x13, 0x8(%rsp)
ja 0x7782
movq %rsp, %rdi
movl $0x14, %esi
movl $0x20, %edx
callq 0x2080
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rsp, %rdi
callq 0x2090
cmpq $0x0, 0x8(%rbx)
je 0x77c1
cmpq $0x1d, 0x8(%rsp)
ja 0x77b2
movq %rsp, %rdi
movl $0x1e, %esi
movl $0x20, %edx
callq 0x2080
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %rsp, %rdi
callq 0x2090
movq %rsp, %rdi
movl $0xa, %esi
callq 0x2180
movq (%rsp), %rdi
movq 0xd7ef(%rip), %rax      # 0x14fc8
movq (%rax), %rsi
callq 0x21e0
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x77f7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21c0
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x781a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x22c0
// File: /workspace/github_cpp_makefile_star2_O1/ksherlock[P]wdc-utils/disassembler.cpp
// Function: disassembler::emit(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void disassembler::emit(const std::string &label, const std::string &opcode, const std::string &operand, const std::string &comment) {

	std::string tmp;
	tmp = label;

	if (!opcode.empty()) {
		indent_to(tmp, kOpcodeTab);
		tmp += opcode;
	}

	if (!operand.empty()) {
		indent_to(tmp, kOperandTab);
		tmp += operand;
	}

	if (!comment.empty()) {
		indent_to(tmp, kCommentTab);
		tmp += "; ";
		tmp += comment;	
	}

	tmp.push_back('\n');
	fputs(tmp.c_str(), stdout);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rsi
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
leaq 0x8(%rsp), %rdi
callq 0x20e0
cmpq $0x0, 0x8(%r15)
je 0x788f
cmpq $0x13, 0x10(%rsp)
ja 0x787e
leaq 0x8(%rsp), %rdi
movl $0x14, %esi
movl $0x20, %edx
callq 0x2080
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x8(%rsp), %rdi
callq 0x2090
cmpq $0x0, 0x8(%r14)
je 0x78c3
cmpq $0x1d, 0x10(%rsp)
ja 0x78b2
leaq 0x8(%rsp), %rdi
movl $0x1e, %esi
movl $0x20, %edx
callq 0x2080
movq (%r14), %rsi
movq 0x8(%r14), %rdx
leaq 0x8(%rsp), %rdi
callq 0x2090
cmpq $0x0, 0x8(%rbx)
je 0x7908
cmpq $0x4f, 0x10(%rsp)
ja 0x78e6
leaq 0x8(%rsp), %rdi
movl $0x50, %esi
movl $0x20, %edx
callq 0x2080
leaq 0x839c(%rip), %rsi      # 0xfc89
leaq 0x8(%rsp), %rdi
callq 0x2320
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
leaq 0x8(%rsp), %rdi
callq 0x2090
leaq 0x8(%rsp), %rdi
movl $0xa, %esi
callq 0x2180
movq 0x8(%rsp), %rdi
movq 0xd6a5(%rip), %rax      # 0x14fc8
movq (%rax), %rsi
callq 0x21e0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x7942
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21c0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x7968
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x22c0
// File: /workspace/github_cpp_makefile_star2_O1/ksherlock[P]wdc-utils/disassembler.cpp
// Function: disassembler::format_data[abi:cxx11](unsigned int, unsigned char const*)
std::pair<std::string, std::string> 
disassembler::format_data(unsigned size, const uint8_t *data) {

	std::string tmp;

	for (unsigned i = 0; i < size; ++i) {
		if (i > 0) tmp += ", ";
		tmp += to_x(data[i], 2, '$');
	}

	return std::make_pair("db", tmp);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
leaq 0x40(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
testl %edx, %edx
je 0x7a18
movq %rcx, %r14
leaq 0x18(%rsp), %rbp
movl %edx, %ebx
xorl %r13d, %r13d
leaq 0x8(%rsp), %r15
leaq 0x30(%rsp), %r12
testq %r13, %r13
je 0x79d0
movq %r12, %rdi
leaq 0x7847(%rip), %rsi      # 0xf212
callq 0x2320
movzbl (%r14,%r13), %esi
movq %r15, %rdi
movl $0x2, %edx
movl $0x24, %ecx
callq 0x7538
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r12, %rdi
callq 0x2090
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7a10
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21c0
incq %r13
cmpq %r13, %rbx
jne 0x79bc
leaq 0x826d(%rip), %rax      # 0xfc8c
leaq 0x10(%rsp), %rdi
movq %rax, -0x8(%rdi)
leaq 0x20(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
callq 0x6b00
movq 0x8(%rsp), %rsi
leaq 0x7(%rsp), %rdx
movq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0x6848
leaq 0x30(%rbx), %rax
movq %rax, 0x20(%rbx)
movq 0x10(%rsp), %rcx
cmpq %r14, %rcx
je 0x7a7b
movq %rcx, 0x20(%rbx)
movq 0x20(%rsp), %rax
movq %rax, 0x30(%rbx)
jmp 0x7a82
movups (%r14), %xmm0
movups %xmm0, (%rax)
movq 0x18(%rsp), %rax
movq %rax, 0x28(%rbx)
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x7aa7
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x7af0
movq 0x20(%rsp), %rsi
jmp 0x7ae8
jmp 0x7ad1
jmp 0x7ad1
movq %rax, %rbx
jmp 0x7af0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7af0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x7b0c
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x22c0