LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/ticky[P]ps2iconsys/src/ps2icon_to_obj.cpp
// Function: ParseCommandLine(int, char**)
void ParseCommandLine(int argc, char* argv[])
{
	for(int i=1; i<argc; i++) {
		//Flag parameters:
		if( (strcmp( argv[i], "-h" ) == 0) || (strcmp( argv[i], "--help" ) == 0) ) {
			PrintHelp(argv[0]);
			exit(0);
		} else if( (strcmp( argv[i], "-v" ) == 0) || (strcmp( argv[i], "--verbose" ) == 0) ) {
			verbose_output = true;
		} else if(i < argc-1) {
		//Parameters with 1 argument
			if( (strcmp( argv[i], "-f" ) == 0) || (strcmp( argv[i], "--input-file" ) == 0) ) {
				ps2_input_file = argv[++i];
			} else if( (strcmp( argv[i], "-o" ) == 0) || (strcmp( argv[i], "--output-file" ) == 0) ) {
				obj_output_file = argv[++i];
			} else if( (strcmp( argv[i], "-ot" ) == 0) || (strcmp( argv[i], "--output-texture" ) == 0) ) {
				texture_output_file = argv[++i];
			} else {
				std::cout << "Invalid argument.\n" << std::endl;
				PrintHelp(argv[0]);
				exit(1);
			}
		} else {
			std::cout << "Invalid argument.\n" << std::endl;
			PrintHelp(argv[0]);
			exit(1);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x2, %edi
jl 0x89b4
movq %rsi, %rbx
movl %edi, %r14d
leal -0x1(%r14), %eax
movl %eax, 0x4(%rsp)
movl $0x1, %r12d
movslq %r12d, %r15
movq (%rbx,%r15,8), %rbp
movb (%rbp), %r13b
cmpb $0x2d, %r13b
jne 0x88b6
cmpb $0x68, 0x1(%rbp)
jne 0x8891
cmpb $0x0, 0x2(%rbp)
je 0x89c3
movq %rbp, %rdi
leaq 0x212a(%rip), %rsi      # 0xa9c5
callq 0x2270
testl %eax, %eax
je 0x89c3
cmpb $0x76, 0x1(%rbp)
jne 0x88cd
cmpb $0x0, 0x2(%rbp)
jne 0x88cd
jmp 0x8922
movq %rbp, %rdi
leaq 0x2105(%rip), %rsi      # 0xa9c5
callq 0x2270
testl %eax, %eax
je 0x89c3
movq %rbp, %rdi
leaq 0x20f5(%rip), %rsi      # 0xa9cc
callq 0x2270
testl %eax, %eax
je 0x8922
cmpl 0x4(%rsp), %r12d
jge 0x89d2
cmpb $0x2d, %r13b
jne 0x892b
cmpb $0x66, 0x1(%rbp)
jne 0x8901
cmpb $0x0, 0x2(%rbp)
je 0x8988
movq %rbp, %rdi
leaq 0x20cb(%rip), %rsi      # 0xa9d6
callq 0x2270
testl %eax, %eax
je 0x8988
cmpb $0x6f, 0x1(%rbp)
jne 0x893e
cmpb $0x0, 0x2(%rbp)
jne 0x893e
jmp 0x8999
movb $0x1, 0x6947(%rip)      # 0xf270
jmp 0x89a8
movq %rbp, %rdi
leaq 0x20a1(%rip), %rsi      # 0xa9d6
callq 0x2270
testl %eax, %eax
je 0x8988
movq %rbp, %rdi
leaq 0x209b(%rip), %rsi      # 0xa9e3
callq 0x2270
testl %eax, %eax
je 0x8999
movq %rbp, %rdi
leaq 0x2096(%rip), %rsi      # 0xa9f1
callq 0x2270
testl %eax, %eax
je 0x8977
movq %rbp, %rdi
leaq 0x2087(%rip), %rsi      # 0xa9f5
callq 0x2270
testl %eax, %eax
jne 0x89d2
incl %r12d
movq 0x8(%rbx,%r15,8), %rax
movq %rax, 0x68e2(%rip)      # 0xf268
jmp 0x89a8
incl %r12d
movq 0x8(%rbx,%r15,8), %rax
movq %rax, 0x68c1(%rip)      # 0xf258
jmp 0x89a8
incl %r12d
movq 0x8(%rbx,%r15,8), %rax
movq %rax, 0x68b8(%rip)      # 0xf260
incl %r12d
cmpl %r14d, %r12d
jl 0x8870
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rbx), %rdi
callq 0x8434
xorl %edi, %edi
callq 0x2210
movq 0x65ff(%rip), %rdi      # 0xefd8
leaq 0x2026(%rip), %rsi      # 0xaa06
callq 0x21b0
movq %rax, %rdi
callq 0x20d0
movq (%rbx), %rdi
callq 0x8434
movl $0x1, %edi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O3/ticky[P]ps2iconsys/src/ps2icon_to_obj.cpp
// Function: main
int main(int argc, char* argv[])
{
	ParseCommandLine(argc, argv);

	if(!ps2_input_file) {
		std::cout << "No input file specified.\n" << std::endl;
		PrintHelp(argv[0]);
		exit(1);
	}
	std::cout << "PS2Icon to OBJ Converter  V-1.0\n by Ghulbus Inc.  (http://www.ghulbus-inc.de/)\n" << std::endl;
	if(!obj_output_file)     { obj_output_file = "default.obj"; }
	if(!texture_output_file) { texture_output_file = "default.tga"; }

	PS2Icon* ps2_icon = LoadPS2Icon();

	WriteOBJFile(ps2_icon);

	WriteTextureFile(ps2_icon);
	
	std::cout << "Success :)" << std::endl;

	return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
callq 0x8848
cmpq $0x0, 0x5fe9(%rip)      # 0xf258
je 0x9344
movq 0x5d5c(%rip), %rbx      # 0xefd8
leaq 0x18da(%rip), %rsi      # 0xab5d
movl $0x4f, %edx
movq %rbx, %rdi
callq 0x21f0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2120
cmpq $0x0, 0x5fa1(%rip)      # 0xf260
jne 0x92cf
leaq 0x18e5(%rip), %rax      # 0xabad
movq %rax, 0x5f91(%rip)      # 0xf260
cmpq $0x0, 0x5f91(%rip)      # 0xf268
jne 0x92e7
leaq 0x18d9(%rip), %rax      # 0xabb9
movq %rax, 0x5f81(%rip)      # 0xf268
callq 0x89ff
movq %rax, %r14
movq %rax, %rdi
callq 0x8ccb
movq %r14, %rdi
callq 0x8f97
leaq 0x18bf(%rip), %rsi      # 0xabc5
movl $0xa, %edx
movq %rbx, %rdi
callq 0x21f0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2120
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x5c8d(%rip), %rdi      # 0xefd8
leaq 0x17f1(%rip), %rsi      # 0xab43
callq 0x21b0
movq %rax, %rdi
callq 0x20d0
movq (%rbx), %rdi
callq 0x8434
movl $0x1, %edi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O3/AlgoLab[P]bwt-lcp-parallel/./io.hpp
// Function: template_generator(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned int, unsigned int)
fnames_t
template_generator(const fname_t& tmpl, const suint_t imin, const suint_t imax) {
  fnames_t names;
  char *filepath;
  for (size_t i = imin; i < imax; ++i) {
    asprintf(&filepath, tmpl.c_str(), i);
    names.emplace_back(filepath);
    free(filepath);
  }
  return names;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
cmpl %ecx, %edx
jae 0x2729
movq %rsi, %r14
movl %ecx, %r13d
movl %edx, %r15d
leaq 0x8(%rsp), %r12
movq (%r14), %rsi
movq %r12, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2080
movq %rbx, %rdi
movq %r12, %rsi
callq 0x5740
movq 0x8(%rsp), %rdi
callq 0x22b0
incq %r15
cmpq %r15, %r13
jne 0x26fc
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x578c
movq %r14, %rdi
callq 0x23d0
// File: /workspace/github_cpp_makefile_star2_O3/AlgoLab[P]bwt-lcp-parallel/./io.hpp
// Function: copy_file(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 copy_file(const fname_t& from, const fname_t& to) {
  const std::size_t buf_sz = 32768;
  char* buf = new char[buf_sz];

  int infile = ::open(from.c_str(), O_RDONLY, 0);
  int outfile = ::open(to.c_str(), O_CREAT | O_WRONLY | O_TRUNC, 0666);

  ssize_t sz, sz_read=1, sz_write;
  while ((sz_read > 0) &&
         (sz_read = ::read(infile, buf, buf_sz)) > 0) {
    sz_write = 0;
    do {
      if ((sz = ::write(outfile, buf + sz_write,
                        static_cast<size_t>(sz_read - sz_write))) < 0) {
        sz_read = sz; // cause read loop termination
        break;        //  and error reported after closes
      }
      sz_write += sz;
    } while (sz_write < sz_read);
  }

  delete [] buf;
  ::close(infile);
  ::close(outfile);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0x8000, %edi           # imm = 0x8000
callq 0x2030
movq %rax, %rbx
movq (%r15), %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x21a0
movl %eax, %ebp
movq (%r14), %rdi
movl $0x241, %esi            # imm = 0x241
movl $0x1b6, %edx            # imm = 0x1B6
xorl %eax, %eax
callq 0x21a0
movl %eax, %r14d
movl $0x8000, %edx           # imm = 0x8000
movl %ebp, %edi
movq %rbx, %rsi
callq 0x2300
testq %rax, %rax
jle 0x27df
movq %rax, %r15
xorl %r12d, %r12d
leaq (%rbx,%r12), %rsi
movq %r15, %rdx
subq %r12, %rdx
movl %r14d, %edi
callq 0x2090
testq %rax, %rax
js 0x27df
addq %rax, %r12
cmpq %r15, %r12
jl 0x27a9
movl $0x8000, %edx           # imm = 0x8000
movl %ebp, %edi
movq %rbx, %rsi
callq 0x2300
movq %rax, %r15
testq %rax, %rax
jg 0x27a6
movq %rbx, %rdi
callq 0x22c0
movl %ebp, %edi
callq 0x2430
movl %r14d, %edi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2430
// File: /workspace/github_cpp_makefile_star2_O3/AlgoLab[P]bwt-lcp-parallel/bwt_lcp.cpp
// Function: update_LCP(mmap_swriter_t<unsigned char, 4194304ul>&, unsigned char, unsigned long, unsigned long const*)
void update_LCP(
  lcp_writer_t& LCP,
  const strlen_t p,
  const luint_t base_pos,
  const luint_t* Lcount
) {
  LCP.seek(base_pos);
  for (enc_nucl_t sigma = 1; sigma<ALPHSIZE; ++sigma) {
    if (Lcount[sigma]==0) continue;
    LCP.skip();
    for (luint_t rh = 1; rh < Lcount[sigma]; ++rh) {
      LCP.write(p);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movq %rdx, %rsi
callq 0x5a1e
movl $0x1, %r15d
movzbl %bpl, %ebp
cmpq $0x0, (%rbx,%r15,8)
je 0x2dce
movq 0x10(%r14), %rsi
incq %rsi
movq %rsi, 0x10(%r14)
cmpq $0x400000, %rsi         # imm = 0x400000
jb 0x2dae
addq 0x8(%r14), %rsi
movq %r14, %rdi
callq 0x5a1e
cmpq $0x2, (%rbx,%r15,8)
jb 0x2dce
movl $0x1, %r12d
movq %r14, %rdi
movl %ebp, %esi
callq 0x5ab8
incq %r12
cmpq (%rbx,%r15,8), %r12
jb 0x2dbb
incq %r15
cmpq $0x6, %r15
jne 0x2d87
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/AlgoLab[P]bwt-lcp-parallel/bwt_lcp.cpp
// Function: compute_Q1_l(unsigned char, std::vector<std::array<unsigned long, 6ul>, std::allocator<std::array<unsigned long, 6ul>>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)
void compute_Q1_l(
    const strlen_t k,
    const occ_countv_t& occv,
    const fnames_t& Q_tpls
) {
  for (strlen_t l = 1; l <= k; ++l) {
    plain_fasta_writer_t Ql(Q_tpls[l]);
    for (enc_nucl_t sigma = 0; sigma < ALPHSIZE; ++sigma) {
      for (luint_t i = 0; i < occv[l][sigma]; ++i) {
        Ql.write(sigma);
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, 0x10(%rsp)
movl %edi, 0xc(%rsp)
testl %edi, %edi
je 0x2e7a
movq %rsi, %r14
movb $0x1, %al
movzbl %al, %r15d
movq 0x10(%rsp), %rax
movq (%rax), %rax
movl %r15d, %ecx
shll $0x5, %ecx
movq (%rax,%rcx), %rdi
leaq 0x626f(%rip), %rsi      # 0x908c
callq 0x22a0
movq %rax, %r12
movq (%r14), %rax
leaq (%r15,%r15,2), %rbx
shll $0x4, %ebx
xorl %r13d, %r13d
leaq (%rax,%rbx), %rcx
cmpq $0x0, (%rcx,%r13,8)
je 0x2e5a
xorl %ebp, %ebp
movl %r13d, %edi
movq %r12, %rsi
callq 0x20b0
incq %rbp
movq (%r14), %rax
leaq (%rbx,%rax), %rcx
cmpq (%rcx,%r13,8), %rbp
jb 0x2e3f
incq %r13
cmpq $0x6, %r13
jne 0x2e32
testq %r12, %r12
je 0x2e70
movq %r12, %rdi
callq 0x2240
leal 0x1(%r15), %eax
cmpb 0xc(%rsp), %al
jbe 0x2e00
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/AlgoLab[P]bwt-lcp-parallel/bwt_lcp.cpp
// Function: compute_BWT(unsigned char, unsigned int, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<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 compute_BWT(
    const strlen_t k, const strnum_t m,
    const fnames_t& B_tpl,
    const fname_t& IXk_name
) {
  const strlen_t k1 = k+1;
  const luint_t tot = static_cast<luint_t>(m)*k1;
  strlen_reader_t IXk(IXk_name);
  std::vector<enc_fasta_reader_t> Bl;
  for (const fname_t& fname: B_tpl) {
    Bl.emplace_back(fname);
  }
  enc_fasta_writer_t B("outfile-BWT.bin");

  for (luint_t i = 0; i < tot; ++i) {
    const strlen_t l = IXk.read();
    const enc_nucl_t c = Bl[(l+1)%k1].read();
    B.write(c);
  }
  remove_files(B_tpl);
  remove_file(IXk_name);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movl %esi, %r15d
movl %edi, %ebp
leaq 0x4a41(%rip), %rdx      # 0x908f
leaq 0x10(%rsp), %rdi
movq %rcx, 0x40(%rsp)
movq %rcx, %rsi
callq 0x6052
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
movq (%r14), %r12
movq 0x8(%r14), %rbx
cmpq %rbx, %r12
je 0x4696
leaq 0x20(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x6b10
addq $0x20, %r12
cmpq %rbx, %r12
jne 0x4682
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x4a97(%rip), %rsi      # 0x913d
leaq 0x4a9f(%rip), %rdx      # 0x914c
leaq 0x48(%rsp), %rdi
callq 0x711e
incb %bpl
movl %r15d, %eax
movzbl %bpl, %r15d
movq %r15, %r12
imulq %rax, %r12
movq 0x48(%rsp), %rdi
leaq 0x49b8(%rip), %rsi      # 0x908c
callq 0x22a0
movq %rax, (%rsp)
movl $0x0, 0x8(%rsp)
movb $0x0, 0xc(%rsp)
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x4701
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2260
testq %r12, %r12
je 0x477a
movzbl 0x18(%rsp), %ebp
movq 0x10(%rsp), %rdi
callq 0x2420
movb %al, 0x18(%rsp)
incl %ebp
movl %ebp, %eax
xorl %edx, %edx
divw %r15w
movzwl %dx, %eax
movq 0x20(%rsp), %rcx
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rdi
movzbl 0x15(%rdi), %ebx
callq 0x75b0
movb 0xc(%rsp), %al
shlb $0x4, %al
andl $0xf, %ebx
movzbl %al, %edi
orl %ebx, %edi
movb %dil, 0xc(%rsp)
movl 0x8(%rsp), %eax
incl %eax
movl %eax, 0x8(%rsp)
cmpl $0x2, %eax
jne 0x4775
movq (%rsp), %rsi
callq 0x20b0
movl $0x0, 0x8(%rsp)
movb $0x0, 0xc(%rsp)
decq %r12
jne 0x4706
movq (%r14), %rbx
movq 0x8(%r14), %r14
cmpq %r14, %rbx
je 0x4794
movq (%rbx), %rdi
callq 0x2400
addq $0x20, %rbx
jmp 0x4781
movq 0x40(%rsp), %rax
movq (%rax), %rdi
callq 0x2400
movq %rsp, %rdi
callq 0x59ba
leaq 0x20(%rsp), %rdi
callq 0x6b56
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x47c2
callq 0x2240
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x47e0
movq %rax, %rbx
movq %rsp, %rdi
callq 0x59ba
jmp 0x47e3
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x6b56
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x47fc
callq 0x2240
movq %rbx, %rdi
callq 0x23d0
// File: /workspace/github_cpp_makefile_star2_O3/AlgoLab[P]bwt-lcp-parallel/./io.hpp
// Function: optifasta_writer_t<unsigned char, 2u>::~optifasta_writer_t()
~optifasta_writer_t() {
    if (nel > 0) {
      while (nel < NEL) {
        to_write = static_cast<io_nucl_t>((to_write << SHIFT) | MASK);
        ++nel;
      }
      writer.write(to_write);
    }
  }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0x8(%rdi), %eax
testl %eax, %eax
je 0x59ec
cmpl $0x1, %eax
jne 0x59de
movb 0xc(%rbx), %al
shlb $0x4, %al
orb $0xf, %al
movb %al, 0xc(%rbx)
movl $0x2, 0x8(%rbx)
jmp 0x59e1
movb 0xc(%rbx), %al
movzbl %al, %edi
movq (%rbx), %rsi
callq 0x20b0
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x59fa
popq %rbx
jmp 0x2240
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/AlgoLab[P]bwt-lcp-parallel/./io.hpp
// Function: mmap_swriter_t<unsigned char, 4194304ul>::seek(unsigned long)
void seek(const luint_t new_pos) {
    if ((base == nullptr) | (new_pos < pos) | (new_pos >= pos+L)) {
      if (base != nullptr) munmap(base, L);
      pos = new_pos - (new_pos % L);
      base = static_cast<T*>(
          mmap(nullptr, sizeof(T)*L, PROT_READ | PROT_WRITE, MAP_SHARED, fno,
               static_cast<__off_t>(pos))
      );
      assert(base != MAP_FAILED);
    }
    off = new_pos - pos;
  }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rdi), %rdi
testq %rdi, %rdi
je 0x5a46
movq 0x8(%r14), %rax
cmpq %rbx, %rax
ja 0x5a46
leaq 0x400000(%rax), %rcx
cmpq %rbx, %rcx
ja 0x5a8a
testq %rdi, %rdi
je 0x5a55
movl $0x400000, %esi         # imm = 0x400000
callq 0x2110
movq %rbx, %r9
andq $-0x400000, %r9         # imm = 0xFFC00000
movq %r9, 0x8(%r14)
movl (%r14), %r8d
movl $0x400000, %esi         # imm = 0x400000
xorl %edi, %edi
movl $0x3, %edx
movl $0x1, %ecx
callq 0x23e0
movq %rax, 0x18(%r14)
cmpq $-0x1, %rax
je 0x5a99
movq 0x8(%r14), %rax
subq %rax, %rbx
movq %rbx, 0x10(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x38bf(%rip), %rdi      # 0x935f
leaq 0x3854(%rip), %rsi      # 0x92fb
leaq 0x38c4(%rip), %rcx      # 0x9372
movl $0xd8, %edx
callq 0x2130
// File: /workspace/github_cpp_makefile_star2_O3/AlgoLab[P]bwt-lcp-parallel/./io.hpp
// Function: mmap_swriter_t<unsigned char, 4194304ul>::write(unsigned char)
void write(const T el) {
    assert(base != nullptr);
    assert(off < L);
    if (base[off] != el) base[off] = el;
    ++off;
    if (off>=L) seek(pos+off);
  }

// Assembly:
pushq %rax
movq 0x18(%rdi), %rcx
testq %rcx, %rcx
je 0x5af9
movl %esi, %eax
movq 0x10(%rdi), %rsi
cmpq $0x400000, %rsi         # imm = 0x400000
jae 0x5b18
cmpb %al, (%rcx,%rsi)
je 0x5add
movb %al, (%rcx,%rsi)
movq 0x10(%rdi), %rsi
incq %rsi
movq %rsi, 0x10(%rdi)
cmpq $0x400000, %rsi         # imm = 0x400000
jb 0x5af7
addq 0x8(%rdi), %rsi
popq %rax
jmp 0x5a1e
popq %rax
retq
leaq 0x38cb(%rip), %rdi      # 0x93cb
leaq 0x37f4(%rip), %rsi      # 0x92fb
leaq 0x38cd(%rip), %rcx      # 0x93db
movl $0xde, %edx
callq 0x2130
leaq 0x3910(%rip), %rdi      # 0x942f
leaq 0x37d5(%rip), %rsi      # 0x92fb
leaq 0x38ae(%rip), %rcx      # 0x93db
movl $0xdf, %edx
callq 0x2130
nop
// File: /workspace/github_cpp_makefile_star2_O3/AlgoLab[P]bwt-lcp-parallel/./io.hpp
// Function: mmap_writer_t<unsigned char, 6u, 4194304ul>::mmap_writer_t(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long const*)
mmap_writer_t(const fname_t& fname, const luint_t* new_pos = nullptr) {
    fno = open(fname.c_str(), O_RDWR, 0);
    std::fill_n(pos, N, 0);
    std::fill_n(off, N, 0);
    std::fill_n(bases, N, nullptr);
    seek(new_pos != nullptr ? new_pos : pos);
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r14
movq (%rsi), %rdi
xorl %r15d, %r15d
movl $0x2, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x21a0
movl %eax, (%r14)
leaq 0x8(%r14), %rdi
testq %rbx, %rbx
cmoveq %rdi, %rbx
movl $0x90, %edx
xorl %esi, %esi
callq 0x2100
movq (%rbx,%r15,8), %rdx
movq %r14, %rdi
movl %r15d, %esi
callq 0x5dc6
incq %r15
cmpq $0x6, %r15
jne 0x5c35
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/AlgoLab[P]bwt-lcp-parallel/./io.hpp
// Function: mmap_reader_t<unsigned char, 4194304ul>::seek(unsigned long)
void seek(const luint_t new_pos) {
    if (base == nullptr || new_pos < pos || new_pos >= pos+L) {
      if (base != nullptr) {
        munmap(base, L);
      }
      pos = new_pos - (new_pos % L);
      base = static_cast<t*>(
        mmap(nullptr, sizeof(t)*L, PROT_READ, MAP_PRIVATE, fno, static_cast<__off_t>(pos))
      );
      assert(base != MAP_FAILED);
    }
    off = new_pos - pos;
  }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rdi), %rdi
testq %rdi, %rdi
je 0x5d62
movq 0x8(%r14), %rax
cmpq %rbx, %rax
setbe %cl
leaq 0x400000(%rax), %rdx
cmpq %rbx, %rdx
seta %dl
testb %dl, %cl
jne 0x5d97
movl $0x400000, %esi         # imm = 0x400000
callq 0x2110
movq %rbx, %r9
andq $-0x400000, %r9         # imm = 0xFFC00000
movq %r9, 0x8(%r14)
movl (%r14), %r8d
movl $0x400000, %esi         # imm = 0x400000
xorl %edi, %edi
movl $0x1, %edx
movl $0x2, %ecx
callq 0x23e0
movq %rax, 0x18(%r14)
cmpq $-0x1, %rax
je 0x5da6
movq 0x8(%r14), %rax
subq %rax, %rbx
movq %rbx, 0x10(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x35b2(%rip), %rdi      # 0x935f
leaq 0x3547(%rip), %rsi      # 0x92fb
leaq 0x3757(%rip), %rcx      # 0x9512
movl $0x133, %edx            # imm = 0x133
callq 0x2130
nop
// File: /workspace/github_cpp_makefile_star2_O3/AlgoLab[P]bwt-lcp-parallel/./io.hpp
// Function: mmap_writer_t<unsigned char, 6u, 4194304ul>::seek(unsigned int, unsigned long)
void seek(const suint_t i, const luint_t new_pos) {
    if (bases[i] == nullptr || new_pos < pos[i] || new_pos >= pos[i]+L) {
      if (bases[i] != nullptr) {
        munmap(bases[i], L);
      }
      pos[i] = new_pos - (new_pos % L);
      bases[i] = static_cast<t*>(
          mmap(nullptr, sizeof(t)*L, PROT_READ | PROT_WRITE, MAP_SHARED, fno,
               static_cast<__off_t>(pos[i]))
      );
      assert(bases[i] != MAP_FAILED);
    }
    off[i] = new_pos - pos[i];
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r14
movl %esi, %r15d
movq 0x68(%rdi,%r15,8), %rdi
testq %rdi, %rdi
je 0x5e04
movq 0x8(%r14,%r15,8), %rax
cmpq %rbx, %rax
setbe %cl
leaq 0x400000(%rax), %rdx
cmpq %rbx, %rdx
seta %dl
testb %dl, %cl
jne 0x5e3c
movl $0x400000, %esi         # imm = 0x400000
callq 0x2110
movq %rbx, %r9
andq $-0x400000, %r9         # imm = 0xFFC00000
movq %r9, 0x8(%r14,%r15,8)
movl (%r14), %r8d
movl $0x400000, %esi         # imm = 0x400000
xorl %edi, %edi
movl $0x3, %edx
movl $0x1, %ecx
callq 0x23e0
movq %rax, 0x68(%r14,%r15,8)
cmpq $-0x1, %rax
je 0x5e4a
movq 0x8(%r14,%r15,8), %rax
subq %rax, %rbx
movq %rbx, 0x38(%r14,%r15,8)
popq %rbx
popq %r14
popq %r15
retq
leaq 0x3719(%rip), %rdi      # 0x956a
leaq 0x34a3(%rip), %rsi      # 0x92fb
leaq 0x3722(%rip), %rcx      # 0x9581
movl $0x93, %edx
callq 0x2130
nop
// File: /workspace/github_cpp_makefile_star2_O3/AlgoLab[P]bwt-lcp-parallel/./io.hpp
// Function: mmap_reader_t<unsigned char, 4194304ul>::read()
T read() {
    assert(base != nullptr);
    assert(off < L);
    const T res = base[off];
    ++off;
    if (off>=L) seek(pos+off);
    return res;
  }

// Assembly:
pushq %rbx
movq 0x18(%rdi), %rax
testq %rax, %rax
je 0x5ea7
movq 0x10(%rdi), %rcx
cmpq $0x400000, %rcx         # imm = 0x400000
jae 0x5ec6
movb (%rax,%rcx), %bl
leaq 0x1(%rcx), %rax
movq %rax, 0x10(%rdi)
cmpq $0x3fffff, %rcx         # imm = 0x3FFFFF
jne 0x5ea3
movl $0x400000, %esi         # imm = 0x400000
addq 0x8(%rdi), %rsi
callq 0x5d2a
movl %ebx, %eax
popq %rbx
retq
leaq 0x351d(%rip), %rdi      # 0x93cb
leaq 0x3446(%rip), %rsi      # 0x92fb
leaq 0x3736(%rip), %rcx      # 0x95f2
movl $0x11d, %edx            # imm = 0x11D
callq 0x2130
leaq 0x3562(%rip), %rdi      # 0x942f
leaq 0x3427(%rip), %rsi      # 0x92fb
leaq 0x3717(%rip), %rcx      # 0x95f2
movl $0x11e, %edx            # imm = 0x11E
callq 0x2130
nop
// File: /workspace/github_cpp_makefile_star2_O3/AlgoLab[P]bwt-lcp-parallel/./io.hpp
// Function: mmap_writer_t<unsigned char, 6u, 4194304ul>::write(unsigned int, unsigned char)
void write(const suint_t i, const T el) {
    assert(i<N);
    assert(bases[i] != nullptr);
    assert(off[i] < L);
    if (bases[i][off[i]] != el) bases[i][off[i]] = el;
    ++off[i];
    if (off[i]>=L) seek(i, pos[i]+off[i]);
  }

// Assembly:
pushq %rax
cmpl $0x6, %esi
jae 0x5f61
movl %esi, %ecx
movq 0x68(%rdi,%rcx,8), %r8
testq %r8, %r8
je 0x5f80
movl %edx, %eax
movq 0x38(%rdi,%rcx,8), %rdx
cmpq $0x400000, %rdx         # imm = 0x400000
jae 0x5f9f
cmpb %al, (%r8,%rdx)
je 0x5f43
movb %al, (%r8,%rdx)
movq 0x38(%rdi,%rcx,8), %rdx
incq %rdx
movq %rdx, 0x38(%rdi,%rcx,8)
cmpq $0x400000, %rdx         # imm = 0x400000
jb 0x5f5f
addq 0x8(%rdi,%rcx,8), %rdx
popq %rax
jmp 0x5dc6
popq %rax
retq
leaq 0x36d2(%rip), %rdi      # 0x963a
leaq 0x338c(%rip), %rsi      # 0x92fb
leaq 0x36c8(%rip), %rcx      # 0x963e
movl $0x9f, %edx
callq 0x2130
leaq 0x3723(%rip), %rdi      # 0x96aa
leaq 0x336d(%rip), %rsi      # 0x92fb
leaq 0x36a9(%rip), %rcx      # 0x963e
movl $0xa0, %edx
callq 0x2130
leaq 0x3718(%rip), %rdi      # 0x96be
leaq 0x334e(%rip), %rsi      # 0x92fb
leaq 0x368a(%rip), %rcx      # 0x963e
movl $0xa1, %edx
callq 0x2130
// File: /workspace/github_cpp_makefile_star2_O3/AlgoLab[P]bwt-lcp-parallel/./io.hpp
// Function: mmap_writer_t<unsigned char, 6u, 4194304ul>::~mmap_writer_t()
~mmap_writer_t() {
    for (suint_t i= 0; i < N; ++i) {
      if (bases[i] != nullptr) munmap(bases[i], L);
      bases[i] = nullptr;
    }
    if (fno >= 0) close(fno);
  }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0xd, %r14d
movq (%rbx,%r14,8), %rdi
testq %rdi, %rdi
je 0x6026
movl $0x400000, %esi         # imm = 0x400000
callq 0x2110
movq $0x0, (%rbx,%r14,8)
incq %r14
cmpq $0x13, %r14
jne 0x6013
movl (%rbx), %edi
testl %edi, %edi
js 0x6042
callq 0x2430
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rdi
callq 0x6d0c
// File: /workspace/github_cpp_makefile_star2_O3/AlgoLab[P]bwt-lcp-parallel/./io.hpp
// Function: seq_reader_t<unsigned int>::seq_reader_t(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char const*)
seq_reader_t(const fname_t& fname, const char* mode = "rb") {
    f = fopen(fname.c_str(), mode);
    assert(f != nullptr);
    int fno = fileno(f);
    posix_fadvise(fno, 0, 0, POSIX_FADV_SEQUENTIAL);
    posix_fadvise(fno, 0, 0, POSIX_FADV_WILLNEED);
    read();
  }

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rsi), %rdi
movq %rdx, %rsi
callq 0x22a0
movq %rax, (%rbx)
testq %rax, %rax
je 0x7682
movq %rax, %rdi
callq 0x2270
movl %eax, %ebp
movl %eax, %edi
xorl %esi, %esi
xorl %edx, %edx
movl $0x2, %ecx
callq 0x21b0
movl %ebp, %edi
xorl %esi, %esi
xorl %edx, %edx
movl $0x3, %ecx
callq 0x21b0
movq (%rbx), %rcx
addq $0x8, %rbx
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x22e0
leaq 0x1c65(%rip), %rdi      # 0x92ee
leaq 0x1c6b(%rip), %rsi      # 0x92fb
leaq 0x1c6d(%rip), %rcx      # 0x9304
movl $0x20, %edx
callq 0x2130
nop
// File: /workspace/github_cpp_makefile_star2_O3/AlgoLab[P]bwt-lcp-parallel/./io.hpp
// Function: optifasta_reader_t<unsigned char, 2u>::advance()
void advance() {
    if (nel == 0 && !iseof) {
      if (reader.has_next()) {
        io_el = reader.read();
        nel = NEL;
      } else {
        iseof = true;
      }
    }
    if (!iseof) {
      result = (io_el & MASK) >> ((NEL - 1) * SHIFT);
      io_el <<= SHIFT;
      --nel;
      if (result == EOFEL) {
        nel = 0;
        iseof = true;
      }
    }
  }

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0x10(%rdi)
jne 0x75ee
cmpb $0x0, 0x16(%rbx)
jne 0x75ee
movq (%rbx), %rdi
callq 0x2230
testl %eax, %eax
je 0x75d4
movb $0x1, 0x16(%rbx)
jmp 0x75ee
movb 0x8(%rbx), %bpl
movq (%rbx), %rdi
callq 0x2420
movb %al, 0x8(%rbx)
movb %bpl, 0x14(%rbx)
movl $0x2, 0x10(%rbx)
cmpb $0x0, 0x16(%rbx)
jne 0x7618
movb 0x14(%rbx), %al
movl %eax, %ecx
shrb $0x4, %cl
movb %cl, 0x15(%rbx)
shlb $0x4, %al
movb %al, 0x14(%rbx)
decl 0x10(%rbx)
cmpb $0xf, %cl
jne 0x7618
movl $0x0, 0x10(%rbx)
movb $0x1, 0x16(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/walker-xian[P]teisye/heapperf/heapperf.cpp
// Function: main
int main(int argc, char **argv)
{
    try
    {
        application app;

        app.parse_args(argc, argv);
        app.run();
    }
    catch (const std::exception& e)
    {
        cerr << e.what() << endl;
    }

    return 0;
}

// Assembly:
pushq %rbx
subq $0x90, %rsp
movq %rsi, %rdx
movl %edi, %eax
leaq 0x1aff4(%rip), %rsi     # 0x1fa30
leaq 0x8(%rsp), %r8
movl $0xf, %ecx
movq %r8, %rdi
rep  movsq (%rsi), %es:(%rdi)
movaps 0x115bd(%rip), %xmm0    # 0x16010
movups %xmm0, 0x78(%r8)
movq %r8, %rdi
movl %eax, %esi
callq 0x4ac6
leaq 0x8(%rsp), %rdi
callq 0x4fc8
xorl %eax, %eax
addq $0x90, %rsp
popq %rbx
retq
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x4ab6
movq %rbx, %rdi
callq 0x4110
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
movq 0x1b551(%rip), %rdi     # 0x1ffe8
movq %rax, %rsi
callq 0x4300
movq %rax, %rdi
callq 0x4160
callq 0x4450
jmp 0x4a6c
movq %rax, %rbx
callq 0x4450
movq %rbx, %rdi
callq 0x44d0
movq %rax, %rdi
callq 0x5803
// File: /workspace/github_cpp_makefile_star2_O3/walker-xian[P]teisye/src/teisye.cpp
// Function: tsvalidate
bool tsvalidate(const void* ptr)
{
    using namespace teisye;
    if (!ptr) return false;
    auto unit = reinterpret_cast<memory_unit*>(reinterpret_cast<size_t>(ptr) - sizeof(memory_unit::header));
    return _heap.validate(unit);
}

// Assembly:
testq %rdi, %rdi
je 0x14345
cmpw $0x6871, -0x8(%rdi)     # imm = 0x6871
jne 0x14345
movb -0x6(%rdi), %cl
movl -0x4(%rdi), %edi
cmpq $0x9, %rdi
jae 0x14348
xorl %esi, %esi
jmp 0x1438d
xorl %eax, %eax
retq
leaq 0x7(%rdi), %rsi
cmpl $0x78, %edi
ja 0x14356
shrl $0x4, %esi
jmp 0x1438d
movq %rsi, %rax
shrq $0x5, %rax
addq $-0x4, %rax
cmpq $0x3, %rax
ja 0x1436d
orb $0x8, %al
movl %eax, %esi
jmp 0x1438d
leaq 0x27(%rdi), %rax
movabsq $0x555555555555556, %rdx # imm = 0x555555555555556
mulq %rdx
addq $-0x6, %rdx
cmpq $0x3, %rdx
ja 0x14394
orb $0xc, %dl
movl %edx, %esi
cmpb %sil, %cl
sete %al
retq
movq %rsi, %rax
shrq $0x6, %rax
addq $-0x7, %rax
cmpq $0x8, %rax
ja 0x143a9
orb $0x10, %al
jmp 0x14369
movq %rsi, %rax
shrq $0x7, %rax
addq $-0x8, %rax
cmpq $0x7, %rax
ja 0x143be
addb $0x19, %al
jmp 0x14369
movq %rsi, %rax
shrq $0x8, %rax
addq $-0x8, %rax
cmpq $0x7, %rax
ja 0x143d3
addb $0x21, %al
jmp 0x14369
shrq $0x9, %rsi
addq $-0x8, %rsi
cmpq $0x7, %rsi
ja 0x143e7
addb $0x29, %sil
jmp 0x1438d
cmpl $0xffff9, %edi          # imm = 0xFFFF9
movb $0x31, %sil
sbbb $-0x1, %sil
jmp 0x1438d
// File: /workspace/github_cpp_makefile_star2_O3/walker-xian[P]teisye/src/teisye.cpp
// Function: tssize
size_t tssize(const void* ptr)
{
    using namespace teisye;
    if (!ptr) return static_cast<size_t>(-1);
    auto unit = reinterpret_cast<memory_unit*>(reinterpret_cast<size_t>(ptr) - sizeof(memory_unit::header));
    if (!_heap.validate(unit)) return static_cast<size_t>(-1);
    return unit->_header._size;
}

// Assembly:
movq $-0x1, %rax
testq %rdi, %rdi
je 0x1446e
cmpw $0x6871, -0x8(%rdi)     # imm = 0x6871
jne 0x1446e
movb -0x6(%rdi), %sil
movl -0x4(%rdi), %ecx
cmpq $0x9, %rcx
jae 0x1441b
xorl %edi, %edi
jmp 0x14460
leaq 0x7(%rcx), %rdi
cmpl $0x78, %ecx
ja 0x14429
shrl $0x4, %edi
jmp 0x14460
movq %rdi, %rax
shrq $0x5, %rax
addq $-0x4, %rax
cmpq $0x3, %rax
ja 0x14440
orb $0x8, %al
movl %eax, %edi
jmp 0x14460
leaq 0x27(%rcx), %rax
movabsq $0x555555555555556, %rdx # imm = 0x555555555555556
mulq %rdx
addq $-0x6, %rdx
cmpq $0x3, %rdx
ja 0x1446f
orb $0xc, %dl
movl %edx, %edi
cmpb %dil, %sil
movq $-0x1, %rax
cmoveq %rcx, %rax
retq
movq %rdi, %rax
shrq $0x6, %rax
addq $-0x7, %rax
cmpq $0x8, %rax
ja 0x14484
orb $0x10, %al
jmp 0x1443c
movq %rdi, %rax
shrq $0x7, %rax
addq $-0x8, %rax
cmpq $0x7, %rax
ja 0x14499
addb $0x19, %al
jmp 0x1443c
movq %rdi, %rax
shrq $0x8, %rax
addq $-0x8, %rax
cmpq $0x7, %rax
ja 0x144ae
addb $0x21, %al
jmp 0x1443c
shrq $0x9, %rdi
addq $-0x8, %rdi
cmpq $0x7, %rdi
ja 0x144c2
addb $0x29, %dil
jmp 0x14460
cmpl $0xffff9, %ecx          # imm = 0xFFFF9
movb $0x31, %dil
sbbb $-0x1, %dil
jmp 0x14460
// File: /workspace/github_cpp_makefile_star2_O3/iZhangHui[P]CppPrimer/CH12_DynamicMemory/exercises/ex12_13.cc
// Function: main
int main(int argc, char const *argv[])
{
	{
		auto sp = std::make_shared<int>();
		auto p = sp.get();
		delete p;
	}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl $0x18, %edi
callq 0x1030
movq %rax, %rbx
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x8(%rbx)
leaq 0x2bd4(%rip), %rax      # 0x3d58
movq %rax, (%rbx)
leaq 0x10(%rbx), %rdi
movl $0x0, 0x10(%rbx)
movl $0x4, %esi
callq 0x1040
movq %rbx, %rdi
callq 0x11ae
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/iZhangHui[P]CppPrimer/CH12_DynamicMemory/exercises/ex12_16.cc
// Function: main
int main(int argc, char const *argv[])
{
	unique_ptr<string> p1 (new string("Henry"));

	/* error: call to deleted constructor of 'unique_ptr<string>' */
	// unique_ptr<string> p2(p1); // copy

	/**
	 * error: overload resolution selected deleted operator '='
	 * note: candidate function has been explicitly deleted
     * unique_ptr& operator=(const unique_ptr&) = delete;
     */
	// unique_ptr<string> p3;
	// p3 = p1; //assign

	cout << *p1 << endl;
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl $0x20, %edi
callq 0x1090
movq %rax, %r14
addq $0x10, %rax
movq %rax, (%r14)
leaq 0xdb2(%rip), %rsi       # 0x2004
leaq 0xdb0(%rip), %rdx       # 0x2009
movq %r14, %rdi
callq 0x12ee
movq %r14, -0x18(%rbp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x2d65(%rip), %rdi      # 0x3fd8
callq 0x10b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1080
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1040
movq -0x18(%rbp), %rsi
testq %rsi, %rsi
je 0x12b4
leaq -0x18(%rbp), %rdi
callq 0x138c
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movl $0x20, %esi
movq %r14, %rdi
callq 0x10a0
jmp 0x12e6
movq %rax, %rbx
movq -0x18(%rbp), %rsi
testq %rsi, %rsi
je 0x12e6
leaq -0x18(%rbp), %rdi
callq 0x138c
movq %rbx, %rdi
callq 0x10d0
// File: /workspace/github_cpp_makefile_star2_O3/olahol[P]cpp-csp/examples/primes.cpp
// Function: generate(csp::Channel<int>*)
void generate(csp::Channel<int>* chan) {
  int i = 2;
  for (;;) {
    chan->put(i);
    i++;
  }
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x2, %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x26dc
incl %ebp
jmp 0x24e5
// File: /workspace/github_cpp_makefile_star2_O3/olahol[P]cpp-csp/examples/primes.cpp
// Function: filter(csp::Channel<int>*, csp::Channel<int>*, int)
void filter(csp::Channel<int>* in, csp::Channel<int>* out, int prime) {
  for (;;) {
    int i = in->get();
    if (i % prime != 0) {
      out->put(i);
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movq %r15, %rdi
callq 0x2584
movl %eax, %esi
cltd
idivl %ebx
testl %edx, %edx
je 0x2500
movq %r14, %rdi
callq 0x26dc
jmp 0x2500
nop
// File: /workspace/github_cpp_makefile_star2_O3/NichtJens[P]lmf2txt/./conio.h
// Function: fopen_s(_IO_FILE**, char const*, char const*)
int fopen_s(FILE **f, const char *name, const char *mode) {
    int ret = 0;
    assert(f);
    *f = fopen(name, mode);
    if (! *f)
        ret = errno;
    return ret;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x1271a
movq %rdi, %rbx
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x1150
movq %rax, %rcx
movq %rax, (%rbx)
xorl %eax, %eax
testq %rcx, %rcx
jne 0x12718
callq 0x1040
movl (%rax), %eax
popq %rbx
retq
leaq 0xe75(%rip), %rdi       # 0x13596
leaq 0xdb0(%rip), %rsi       # 0x134d8
leaq 0xdb3(%rip), %rcx       # 0x134e2
movl $0xb, %edx
callq 0x10c0
// File: /workspace/github_cpp_makefile_star2_O3/aalto-speech[P]ftk/src/defs.hh
// Function: trim(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, char)
static void trim(std::string &str, char to_trim)
{
    std::string::size_type pos = str.find_last_not_of(to_trim);
    if(pos != std::string::npos) {
        str.erase(pos + 1);
        pos = str.find_first_not_of(to_trim);
        if(pos != std::string::npos) str.erase(0, pos);
    }
    else str.erase(str.begin(), str.end());
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
movq $-0x1, %rdx
callq 0x4280
cmpq $-0x1, %rax
je 0x69cf
leaq 0x1(%rax), %rdx
movq 0x8(%rbx), %rcx
cmpq %rax, %rcx
jbe 0x69e2
movq %rdx, 0x8(%rbx)
movq (%rbx), %rax
movb $0x0, (%rax,%rdx)
movsbl %r14b, %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x4350
cmpq $-0x1, %rax
je 0x69dd
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rdx
popq %rbx
popq %r14
popq %rbp
jmp 0x40c0
movq (%rbx), %rax
movq $0x0, 0x8(%rbx)
movb $0x0, (%rax)
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x20899(%rip), %rdi     # 0x27282
leaq 0x2087e(%rip), %rsi     # 0x2726e
xorl %eax, %eax
callq 0x4550
nop
// File: /workspace/github_cpp_makefile_star2_O3/kerolloz[P]os/shell.cc
// Function: command::command(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
command(string s) : command_string(s) {
    vector<string> args;
    split(args);
    for (const string &arg : args) {
      char *str = const_cast<char *>(arg.c_str());
      argschar.push_back(str);
    }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, -0x30(%rbp)
movq %rax, (%rdi)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rax, %rsi
callq 0x2c2e
leaq 0x20(%rbx), %r14
xorl %eax, %eax
movq %rax, 0x30(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
leaq -0x50(%rbp), %rsi
movq %rax, 0x10(%rsi)
movaps %xmm0, (%rsi)
movq %rbx, %rdi
callq 0x2666
movq -0x50(%rbp), %r13
movq -0x48(%rbp), %r12
cmpq %r12, %r13
je 0x25b8
leaq -0x38(%rbp), %r15
movq (%r13), %rax
movq %rax, -0x38(%rbp)
movq 0x28(%rbx), %rsi
cmpq 0x30(%rbx), %rsi
je 0x25a4
movq %rax, (%rsi)
addq $0x8, 0x28(%rbx)
jmp 0x25af
movq %r14, %rdi
movq %r15, %rdx
callq 0x2aee
addq $0x20, %r13
cmpq %r12, %r13
jne 0x2588
leaq -0x50(%rbp), %rdi
callq 0x2762
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x25d2
movq %rax, %r15
leaq -0x50(%rbp), %rdi
callq 0x2762
movq (%r14), %rdi
testq %rdi, %rdi
je 0x25f2
movq 0x30(%rbx), %rsi
subq %rdi, %rsi
callq 0x2130
movq (%rbx), %rdi
cmpq -0x30(%rbp), %rdi
je 0x260a
movq -0x30(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x2130
movq %r15, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O3/kerolloz[P]os/shell.cc
// Function: command::split(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
void split(vector<string> &commands) {
    // just like python split
    // intput(string): "ls -la --color"
    // output(array of strings): ["ls", "-la", "--color"]
    string tmp_str = "";
    for (char c : command_string) {
      if (isspace(c)) {
        if (tmp_str.size())
          commands.push_back(tmp_str);
        tmp_str = "";
      } else
        tmp_str += c;
    }
    if (tmp_str.size())
      commands.push_back(tmp_str);
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, -0x50(%rbp)
movq %rdi, %r14
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x9af(%rip), %rdx       # 0x303c
leaq -0x48(%rbp), %rdi
movq %rdx, %rsi
callq 0x281c
movq 0x8(%r14), %r13
testq %r13, %r13
je 0x2700
movq (%r14), %r15
xorl %ebx, %ebx
leaq -0x48(%rbp), %r14
movsbl (%r15,%rbx), %r12d
movl %r12d, %edi
callq 0x2040
testl %eax, %eax
je 0x26d5
cmpq $0x0, -0x40(%rbp)
je 0x26e2
movq -0x50(%rbp), %rdi
movq %r14, %rsi
callq 0x27d0
movq -0x40(%rbp), %rdx
jmp 0x26e4
movq %r14, %rdi
movl %r12d, %esi
callq 0x20f0
jmp 0x26f8
xorl %edx, %edx
movq %r14, %rdi
xorl %esi, %esi
leaq 0x94c(%rip), %rcx       # 0x303c
xorl %r8d, %r8d
callq 0x2190
incq %rbx
cmpq %rbx, %r13
jne 0x26ab
cmpq $0x0, -0x40(%rbp)
je 0x2714
leaq -0x48(%rbp), %rsi
movq -0x50(%rbp), %rdi
callq 0x27d0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x272d
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2130
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x273e
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x275a
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2130
movq %rbx, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O3/WinChua[P]MLDemo/DecisionTree.cpp
// Function: TreeNode::TreeNode(File&)
TreeNode::TreeNode(File & file):data(file), feature_sets(file.featureset), lchild(nullptr), rchild(nullptr)
{
    for(int i=0; i < data.records.size(); ++i)
    {
        record_index.push_back(i);
    }
    set_label();
    divide_node();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsi, (%rdi)
leaq 0x8(%rdi), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
xorl %eax, %eax
movq %rax, 0x18(%rdi)
leaq 0x30(%rdi), %r13
movq %r13, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movb $0x0, 0x30(%rdi)
leaq 0x48(%rdi), %r15
addq $0x38, %rsi
movq %r15, %rdi
callq 0x3654
xorps %xmm0, %xmm0
movups %xmm0, 0x80(%rbx)
movl $0x0, 0x4(%rsp)
movq (%rbx), %rax
movq 0x28(%rax), %rcx
cmpq 0x20(%rax), %rcx
je 0x2553
xorl %ecx, %ecx
leaq 0x4(%rsp), %r12
movabsq $0x6db6db6db6db6db7, %rbp # imm = 0x6DB6DB6DB6DB6DB7
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0x2524
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x10(%rbx)
jmp 0x2532
movq %r14, %rdi
movq %r12, %rdx
callq 0x3c24
movq (%rbx), %rax
movslq 0x4(%rsp), %rcx
incq %rcx
movl %ecx, 0x4(%rsp)
movq 0x28(%rax), %rdx
subq 0x20(%rax), %rdx
sarq $0x3, %rdx
imulq %rbp, %rdx
cmpq %rcx, %rdx
ja 0x250e
movq %rbx, %rdi
callq 0x25b6
movq %rbx, %rdi
callq 0x2610
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2579
movq %rax, %r12
jmp 0x2584
movq %rax, %r12
movq %r15, %rdi
callq 0x38d8
movq 0x20(%rbx), %rdi
cmpq %r13, %rdi
je 0x2599
movq (%r13), %rsi
incq %rsi
callq 0x21a0
movq (%r14), %rdi
testq %rdi, %rdi
je 0x25ad
movq 0x18(%rbx), %rsi
subq %rdi, %rsi
callq 0x21a0
movq %r12, %rdi
callq 0x2290
nop
// File: /workspace/github_cpp_makefile_star2_O3/WinChua[P]MLDemo/DecisionTree.cpp
// Function: TreeNode::test(Record&)
int TreeNode::test(Record &record)
{
    TreeNode * node = this;
    std::string feature = node->attr;
    while(feature != "no divided")
    {
        if(record.data.find(feature) == record.data.end())
        {
            node = node->rchild;
        }
        else node = node->lchild;
        feature = node->attr;
    }
    return node->label;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x20(%rdi), %rsi
movq 0x28(%rdi), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x3b8e
leaq 0x8(%r14), %r12
addq $0x10, %r14
leaq 0x32dc(%rip), %r13      # 0x6044
movq %r15, %rdi
movq %r13, %rsi
callq 0x2080
testl %eax, %eax
je 0x2da0
movq %r12, %rdi
movq %r15, %rsi
callq 0x3f42
xorl %ecx, %ecx
cmpq %r14, %rax
sete %cl
movq 0x80(%rbx,%rcx,8), %rbx
leaq 0x20(%rbx), %rsi
movq %r15, %rdi
callq 0x20e0
jmp 0x2d68
movl 0x78(%rbx), %ebx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2dba
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21a0
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2dcd
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2de7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21a0
movq %rbx, %rdi
callq 0x2290
nop
// File: /workspace/github_cpp_makefile_star2_O3/WinChua[P]MLDemo/DecisionTree.cpp
// Function: TreeNode::gain_of_attr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<int, std::allocator<int>>&, std::vector<int, std::allocator<int>>&)
double TreeNode::gain_of_attr(std::string attr, std::vector<int> &l_index, std::vector<int> &r_index)
{
    double en = entropy();
    float index_size = record_index.size();
    for(auto ri : record_index)
    {
        if(data.records[ri].data.find(attr) == data.records[ri].data.end())
        {
            r_index.push_back(ri);
        }
        else l_index.push_back(ri);
    }
    double r_entropy = _entropy(r_index);
    double l_entropy = _entropy(l_index);
    double div = r_index.size()/index_size* r_entropy + l_index.size() / index_size* l_entropy;
    double gain = en - div;
    return gain;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r15
leaq 0x8(%rdi), %rsi
callq 0x353a
movsd %xmm0, 0x18(%rsp)
movq 0x8(%r15), %rax
movq 0x10(%r15), %rbp
movq %rax, 0x10(%rsp)
cmpq %rbp, %rax
je 0x33d2
movq 0x10(%rsp), %r13
movslq (%r13), %rax
movl %eax, 0xc(%rsp)
movq (%r15), %rcx
movq 0x20(%rcx), %rcx
imulq $0x38, %rax, %rax
leaq (%rcx,%rax), %rdi
addq $0x8, %rdi
movq %r12, %rsi
callq 0x3f42
movq (%r15), %rdx
movslq 0xc(%rsp), %rcx
movq 0x20(%rdx), %rdx
imulq $0x38, %rcx, %rsi
addq %rsi, %rdx
addq $0x10, %rdx
cmpq %rdx, %rax
je 0x339d
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x33b3
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x33c5
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x33b8
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r14)
jmp 0x33c5
movq %rbx, %rdi
jmp 0x33bb
movq %r14, %rdi
leaq 0xc(%rsp), %rdx
callq 0x3c24
addq $0x4, %r13
cmpq %rbp, %r13
jne 0x3348
subq 0x10(%rsp), %rbp
sarq $0x2, %rbp
js 0x33e7
xorps %xmm0, %xmm0
cvtsi2ss %rbp, %xmm0
jmp 0x33ff
movq %rbp, %rax
shrq %rax
andl $0x1, %ebp
orq %rax, %rbp
xorps %xmm0, %xmm0
cvtsi2ss %rbp, %xmm0
addss %xmm0, %xmm0
movss %xmm0, 0x10(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x353a
movsd %xmm0, 0x20(%rsp)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x353a
movq 0x8(%r14), %rax
subq (%r14), %rax
sarq $0x2, %rax
js 0x3435
cvtsi2ss %rax, %xmm1
jmp 0x344a
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm1
addss %xmm1, %xmm1
movsd 0x18(%rsp), %xmm3
movss 0x10(%rsp), %xmm4
divss %xmm4, %xmm1
cvtss2sd %xmm1, %xmm1
movq 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x2, %rax
js 0x3472
cvtsi2ss %rax, %xmm2
jmp 0x3487
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm2
addss %xmm2, %xmm2
divss %xmm4, %xmm2
cvtss2sd %xmm2, %xmm2
mulsd %xmm2, %xmm0
mulsd 0x20(%rsp), %xmm1
addsd %xmm0, %xmm1
subsd %xmm1, %xmm3
movapd %xmm3, %xmm0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/WinChua[P]MLDemo/DecisionTree.cpp
// Function: get_entropy(double, double)
double get_entropy(double pos, double neg)
{
    if(pos == 0 || neg == 0) return 0.0;
    pos = pos/(pos+neg);
    neg = 1 - pos;
    return -pos*std::log2(pos)-neg*std::log2(neg);
}

// Assembly:
xorpd %xmm2, %xmm2
ucomisd %xmm2, %xmm0
jne 0x34c0
jnp 0x352a
ucomisd %xmm2, %xmm1
jne 0x34c8
jnp 0x352a
subq $0x28, %rsp
addsd %xmm0, %xmm1
divsd %xmm1, %xmm0
movsd 0x2b5c(%rip), %xmm1     # 0x6038
subsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movapd 0x2b33(%rip), %xmm1     # 0x6020
xorpd %xmm0, %xmm1
movapd %xmm1, 0x10(%rsp)
callq 0x22a0
movsd %xmm0, 0x8(%rsp)
movsd (%rsp), %xmm0
callq 0x22a0
mulsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
mulsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movapd %xmm1, %xmm0
addq $0x28, %rsp
retq
xorpd %xmm0, %xmm0
retq
nop