LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/yuansliu[P]HiRGC/hirgc.cpp
// Function: compressFile(char*, char*)
void compressFile(char *refFile, char *tarFile) {
	char res[100];
	char cmd[200];
	initial(); //important************* must initial before other operation

	sprintf(res, "%s_ref_%s", tarFile, refFile);
	compressFile(refFile, tarFile, res);
	sprintf(cmd, "./7za a %s.7z %s -m0=PPMd", res, res);
	system(cmd);
	sprintf(cmd, "rm %s", res);
	system(cmd);

	clear();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x140, %rsp            # imm = 0x140
movq %rsi, %rbx
movq %rdi, %r14
movl $0x400, %edi            # imm = 0x400
callq 0x2030
movq %rax, 0x4c4d(%rip)      # 0x8178
movl $0x800000, %edi         # imm = 0x800000
callq 0x2030
movq %rax, 0x4c44(%rip)      # 0x8180
movl $0x2000000, %edi        # imm = 0x2000000
callq 0x2030
movq %rax, 0x4c4b(%rip)      # 0x8198
movl $0x800000, %edi         # imm = 0x800000
callq 0x2030
movq %rax, 0x4c2a(%rip)      # 0x8188
movl $0x800000, %edi         # imm = 0x800000
callq 0x2030
movq %rax, 0x4c21(%rip)      # 0x8190
movl $0x40000000, %edi       # imm = 0x40000000
callq 0x2030
movq %rax, 0x4c20(%rip)      # 0x81a0
movl $0x40000000, %edi       # imm = 0x40000000
callq 0x2030
movq %rax, 0x4c17(%rip)      # 0x81a8
movl $0x40000000, %edi       # imm = 0x40000000
callq 0x2030
movq %rax, 0x4c2e(%rip)      # 0x81d0
movabsq $0x100000000, %rdi      # imm = 0x100000000
callq 0x2030
movq %rax, 0x4c20(%rip)      # 0x81d8
movl $0x100000, %edi         # imm = 0x100000
callq 0x2030
movq %rax, 0x4c17(%rip)      # 0x81e0
leaq 0x1ab7(%rip), %rsi      # 0x5087
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x2060
movq %r14, %rdi
callq 0x27c0
callq 0x31eb
movq %rbx, %rdi
callq 0x2932
movq %r15, %rdi
callq 0x328c
leaq 0x1a8a(%rip), %rsi      # 0x5091
leaq 0x70(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x2060
movq %rbx, %rdi
callq 0x2130
leaq 0x1a80(%rip), %rsi      # 0x50ab
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2060
movq %rbx, %rdi
callq 0x2130
callq 0x4243
addq $0x140, %rsp            # imm = 0x140
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/yuansliu[P]HiRGC/hirgc.cpp
// Function: getList(char*, 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>>>>&)
bool getList(char *list_file, vector<string> &name_list) {
	FILE *fp = fopen(list_file, "r");
	if (fp == NULL) {
		printf("%s open fail!\n", list_file);
		return false;
	}
	char str[1024];
	while (fscanf(fp, "%s", str) != EOF) {
		name_list.push_back(string(str));
	}
	fclose(fp);
	if (name_list.size() == 0) {
		printf("%s is empty!\n", list_file);
		return false;
	}
	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x438, %rsp            # imm = 0x438
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1422(%rip), %rsi      # 0x5050
callq 0x2190
testq %rax, %rax
je 0x3ce7
movq %rax, %r15
movq %rbx, 0x8(%rsp)
leaq 0x1463(%rip), %rsi      # 0x50ae
leaq 0x30(%rsp), %rdx
movq %rax, %rdi
xorl %eax, %eax
callq 0x2280
cmpl $-0x1, %eax
je 0x3cc4
leaq 0x20(%rsp), %rbx
leaq 0x30(%rsp), %r12
leaq 0x10(%rsp), %r13
leaq 0x1439(%rip), %rbp      # 0x50ae
movq %rbx, 0x10(%rsp)
movq %r12, %rdi
callq 0x20b0
leaq (%rsp,%rax), %rdx
addq $0x30, %rdx
movq %r13, %rdi
movq %r12, %rsi
callq 0x44f4
movq %r14, %rdi
movq %r13, %rsi
callq 0x4746
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3caf
callq 0x2150
movq %r15, %rdi
movq %rbp, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x2280
cmpl $-0x1, %eax
jne 0x3c75
movq %r15, %rdi
callq 0x2160
movq 0x8(%r14), %rax
cmpq (%r14), %rax
setne %bpl
jne 0x3cfa
leaq 0x1474(%rip), %rdi      # 0x5154
movq 0x8(%rsp), %rsi
jmp 0x3cf3
leaq 0x1457(%rip), %rdi      # 0x5145
xorl %ebp, %ebp
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2040
movl %ebp, %eax
addq $0x438, %rsp            # imm = 0x438
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3d20
callq 0x2150
movq %r14, %rdi
callq 0x2260
// File: /workspace/github_cpp_makefile_star2_O1/yuansliu[P]HiRGC/hirgc.cpp
// Function: clear()
inline void clear() { // free
	delete[] meta_data;
	delete[] pos_vec;
	delete[] line_break_vec;
	delete[] n_vec;
	delete[] other_char_vec;
	delete[] tar_seq_code;
	delete[] ref_seq_code;
	delete[] loc;
	delete[] point;
	delete[] dismatched_str;
}

// Assembly:
pushq %rax
movq 0x3f2d(%rip), %rdi      # 0x8178
testq %rdi, %rdi
je 0x4255
callq 0x21b0
movq 0x3f24(%rip), %rdi      # 0x8180
testq %rdi, %rdi
je 0x4266
callq 0x21b0
movq 0x3f2b(%rip), %rdi      # 0x8198
testq %rdi, %rdi
je 0x4277
callq 0x21b0
movq 0x3f0a(%rip), %rdi      # 0x8188
testq %rdi, %rdi
je 0x4288
callq 0x21b0
movq 0x3f01(%rip), %rdi      # 0x8190
testq %rdi, %rdi
je 0x4299
callq 0x21b0
movq 0x3f00(%rip), %rdi      # 0x81a0
testq %rdi, %rdi
je 0x42aa
callq 0x21b0
movq 0x3ef7(%rip), %rdi      # 0x81a8
testq %rdi, %rdi
je 0x42bb
callq 0x21b0
movq 0x3f0e(%rip), %rdi      # 0x81d0
testq %rdi, %rdi
je 0x42cc
callq 0x21b0
movq 0x3f05(%rip), %rdi      # 0x81d8
testq %rdi, %rdi
je 0x42dd
callq 0x21b0
movq 0x3efc(%rip), %rdi      # 0x81e0
testq %rdi, %rdi
je 0x42ef
popq %rax
jmp 0x21b0
popq %rax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/conversions.cpp
// Function: test(char const*)
void test(const char *str) {
   Reader::Error err;
   int res = 0;
   double x = 0;
   string s;
   short b = 0;

   outs("input")(str)();
   //~ Writer("/tmp/tmp.tmp")(str);
   //~ Reader s1("/tmp/tmp.tmp");
   StrReader s1(str);
   s1 (res)(x)(s)(b)(err);
   outs("output")(res)(x)(s)(b)();
   outs("error")(err.msg)();

}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xb0, %rsp
movq %rdi, %rbx
leaq 0x48(%rsp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb %al, (%r14)
movl $0x0, 0x4(%rsp)
movq %rax, 0x8(%rsp)
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
movq %rax, -0x8(%r15)
movb %al, (%r15)
movw $0x0, 0x2(%rsp)
leaq 0x5b58(%rip), %rdi      # 0x8210
leaq 0x29ce(%rip), %rsi      # 0x508d
leaq 0x296c(%rip), %rcx      # 0x5032
xorl %edx, %edx
xorl %eax, %eax
callq 0x418a
leaq 0x29b7(%rip), %rsi      # 0x508d
movq %rax, %rdi
xorl %edx, %edx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x418a
movq %rax, %rdi
callq 0x4414
leaq 0x60(%rsp), %rdi
movq %rbx, %rsi
callq 0x3d06
leaq 0x60(%rsp), %rdi
leaq 0x4(%rsp), %rsi
xorl %edx, %edx
callq 0x3742
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
xorl %edx, %edx
callq 0x36c2
leaq 0x10(%rsp), %rsi
movq %rax, %rdi
xorl %edx, %edx
callq 0x3172
leaq 0x2(%rsp), %rsi
movq %rax, %rdi
xorl %edx, %edx
callq 0x3800
leaq 0x30(%rsp), %rsi
movq %rax, %rdi
callq 0x3692
leaq 0x5ac4(%rip), %rdi      # 0x8210
leaq 0x293a(%rip), %rsi      # 0x508d
leaq 0x28de(%rip), %rcx      # 0x5038
xorl %edx, %edx
xorl %eax, %eax
callq 0x418a
movl 0x4(%rsp), %ecx
leaq 0x2922(%rip), %rsi      # 0x5090
movq %rax, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0x418a
movsd 0x8(%rsp), %xmm0
leaq 0x290c(%rip), %rsi      # 0x5093
movq %rax, %rdi
xorl %edx, %edx
movb $0x1, %al
callq 0x418a
movq 0x10(%rsp), %rcx
leaq 0x28ee(%rip), %rsi      # 0x508d
movq %rax, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0x418a
movswl 0x2(%rsp), %ecx
leaq 0x28d9(%rip), %rsi      # 0x5090
movq %rax, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0x418a
movq %rax, %rdi
callq 0x4414
leaq 0x5a3e(%rip), %rdi      # 0x8210
leaq 0x28b4(%rip), %rsi      # 0x508d
leaq 0x285f(%rip), %rcx      # 0x503f
xorl %edx, %edx
xorl %eax, %eax
callq 0x418a
movq 0x38(%rsp), %rcx
leaq 0x2898(%rip), %rsi      # 0x508d
movq %rax, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0x418a
movq %rax, %rdi
callq 0x4414
leaq 0x60(%rsp), %rdi
callq 0x2a96
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x282a
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2120
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x2841
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x2120
addq $0xb0, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x2850
movq %rax, %rbx
jmp 0x2862
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x2a96
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x2879
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2120
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x2890
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x2120
movq %rbx, %rdi
callq 0x2200
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/conversions.cpp
// Function: main
int main()
{
   outs.sep(' '); // DEFAULT

   test("10 4.2 boo 34");
   test("10 4.2 boo 344455555");
   test("10 x4.2 boo 23");
   test("x10 4.2 boo 52");
   test("10 4.2");

   return 0;
}

// Assembly:
pushq %rax
leaq 0x5970(%rip), %rdi      # 0x8210
movl $0x20, %esi
callq 0x43d2
leaq 0x2794(%rip), %rdi      # 0x5045
callq 0x266c
leaq 0x2796(%rip), %rdi      # 0x5053
callq 0x266c
leaq 0x279f(%rip), %rdi      # 0x5068
callq 0x266c
leaq 0x27a2(%rip), %rdi      # 0x5077
callq 0x266c
leaq 0x27a5(%rip), %rdi      # 0x5086
callq 0x266c
xorl %eax, %eax
popq %rcx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/instream.cpp
// Function: stream::Reader::open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char const*)
bool Reader::open(const std::string& file, const char *how) {
    in = fopen(file.c_str(),how);
    bad = errno;
    if (bad) {
        err_msg = strerror(errno);
    }
    return ! bad;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rsi), %rdi
movq %rdx, %rsi
callq 0x2170
movq %rax, 0x8(%rbx)
callq 0x2040
movl (%rax), %ecx
movl %ecx, 0x1c(%rbx)
testl %ecx, %ecx
je 0x2a29
movl (%rax), %edi
callq 0x2080
movq %rax, %r14
leaq 0x20(%rbx), %r15
movq 0x28(%rbx), %r12
movq %rax, %rdi
callq 0x2090
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %r14, %rcx
movq %rax, %r8
callq 0x21d0
cmpl $0x0, 0x1c(%rbx)
sete %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/instream.cpp
// Function: stream::Reader::set(_IO_FILE*, bool)
void Reader::set(FILE *new_in, bool own) {
  close();
  in = new_in;
  owner = own;
  pos = 0;
  bad = in == nullptr;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x1, 0x10(%rdi)
jne 0x2b61
cmpq $0x0, 0x8(%rbx)
je 0x2b61
movq (%rbx), %rax
movq %rbx, %rdi
callq *(%rax)
movq $0x0, 0x8(%rbx)
movq %r14, 0x8(%rbx)
movb %bpl, 0x10(%rbx)
movl $0x0, 0x18(%rbx)
xorl %eax, %eax
testq %r14, %r14
sete %al
movl %eax, 0x1c(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/instream.cpp
// Function: stream::Reader::operator()(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, char const*)
Reader& Reader::operator() (std::string &s,const char *fmt) {
  if (fail()) return *this;
  char buff[line_size];
  if (! formatted_read("string","%s%n",fmt,buff,&fpos)) return *this;
  s = buff;
  return *this;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdi, %rbx
cmpl $0x0, 0x1c(%rdi)
jne 0x31d6
movq %rdx, %rcx
movq %rsi, %r14
leaq 0x14(%rbx), %r9
leaq 0x1f8b(%rip), %rsi      # 0x5125
leaq 0x1f8b(%rip), %rdx      # 0x512c
movq %rsp, %r8
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2be4
cmpl $0x0, 0x1c(%rbx)
jne 0x31d6
movq 0x8(%r14), %r15
movq %rsp, %r12
movq %r12, %rdi
callq 0x2090
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %r12, %rcx
movq %rax, %r8
callq 0x21d0
movq %rbx, %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/instream.cpp
// Function: stream::Reader::read_line(char*, int)
int Reader::read_line(char *buff, int buffsize) {
  char *res = read_raw_line(buff,buffsize);
  if (res == nullptr) {
     set_error("EOF",EOF);
     return 0;
  }
  int sz = res != nullptr ? strlen(res) : 0;
  pos += sz;
  return sz;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq (%rdi), %rax
callq *0x10(%rax)
testq %rax, %rax
je 0x359e
movq %rax, %rdi
callq 0x2090
addl %eax, 0x18(%rbx)
jmp 0x35eb
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1b2f(%rip), %rsi      # 0x50dd
leaq 0x1b2b(%rip), %rdx      # 0x50e0
movq %rsp, %r14
movq %r14, %rdi
callq 0x3e7a
leaq 0x20(%rbx), %rdi
movq %r14, %rsi
callq 0x20a0
movl $0xffffffff, 0x1c(%rbx) # imm = 0xFFFFFFFF
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x35e9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2120
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x360e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2120
movq %rbx, %rdi
callq 0x2200
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/instream.cpp
// Function: stream::Reader::readall(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool Reader::readall (std::string& s) {
  char buff[512];
  size_t sz;
  s.clear();
  while ((sz = read(buff,sizeof(buff))) > 0) {
     s.append(buff,sz);
  }
  return errno != 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x200, %rsp            # imm = 0x200
movq %rsi, %rbx
movq %rdi, %r14
movq $0x0, 0x8(%rsi)
movq (%rsi), %rax
movb $0x0, (%rax)
movq (%rdi), %rax
movq %rsp, %rsi
movl $0x200, %edx            # imm = 0x200
callq *0x18(%rax)
testq %rax, %rax
je 0x3670
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2050
movq (%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
movl $0x200, %edx            # imm = 0x200
callq *0x18(%rax)
testq %rax, %rax
jne 0x364c
callq 0x2040
cmpl $0x0, (%rax)
setne %al
addq $0x200, %rsp            # imm = 0x200
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/instream.cpp
// Function: stream::Reader::operator()(stream::Reader::Error&)
Reader& Reader::operator() (Reader::Error& err) {
  err.errcode = bad;
  err.msg = err_msg;
  err.pos = pos;
  return *this;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl 0x1c(%rdi), %eax
movl %eax, (%rsi)
leaq 0x20(%rdi), %rsi
leaq 0x8(%rbx), %rdi
callq 0x20a0
movslq 0x18(%r14), %rax
movq %rax, 0x28(%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/instream.cpp
// Function: stream::Reader::operator()(int&, char const*)
Reader& Reader::operator() (int32_t &i,const char *fmt) {
   int64_t val;
   if (! (*this)(val)) return *this;
   if (val < INT32_MIN || val > INT32_MAX) return conversion_error("int32",val,false);
   i = (int16_t)val;
   return *this;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x14(%rdi), %r9
leaq 0x19a9(%rip), %rsi      # 0x5100
leaq 0x199b(%rip), %rdx      # 0x50f9
movq %rsp, %r8
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x2be4
cmpl $0x0, 0x1c(%rbx)
jne 0x3795
movq (%rsp), %rdx
movslq %edx, %rax
cmpq %rdx, %rax
je 0x378f
leaq 0x198a(%rip), %rsi      # 0x510d
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x31e8
jmp 0x3795
movswl %dx, %eax
movl %eax, (%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/instream.cpp
// Function: stream::Reader::operator()(unsigned int&, char const*)
Reader& Reader::operator() (uint32_t &i,const char *fmt) {
   uint64_t val;
   if (! (*this)(val)) return *this;
   if (val > UINT32_MAX) return conversion_error("uint32",val,true);
   i = (uint32_t)val;
   return *this;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x14(%rdi), %r9
leaq 0x194a(%rip), %rsi      # 0x50ff
leaq 0x194a(%rip), %rdx      # 0x5106
movq %rsp, %r8
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x2be4
cmpl $0x0, 0x1c(%rbx)
jne 0x37f4
movq (%rsp), %rdx
movq %rdx, %rax
shrq $0x20, %rax
je 0x37f1
leaq 0x192a(%rip), %rsi      # 0x510c
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x31e8
jmp 0x37f4
movl %edx, (%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/instream.cpp
// Function: stream::Reader::operator()(short&, char const*)
Reader& Reader::operator() (int16_t &i,const char *fmt) {
   int64_t val;
   if (! (*this)(val)) return *this;
   if (val < INT16_MIN || val > INT16_MAX) return conversion_error("int16",val,false);
   i = (int16_t)val;
   return *this;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x14(%rdi), %r9
leaq 0x18eb(%rip), %rsi      # 0x5100
leaq 0x18dd(%rip), %rdx      # 0x50f9
movq %rsp, %r8
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x2be4
cmpl $0x0, 0x1c(%rbx)
jne 0x3852
movq (%rsp), %rdx
movswq %dx, %rax
cmpq %rdx, %rax
je 0x384e
leaq 0x18d2(%rip), %rsi      # 0x5114
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x31e8
jmp 0x3852
movw %dx, (%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/instream.cpp
// Function: stream::Reader::operator()(unsigned short&, char const*)
Reader& Reader::operator() (uint16_t &i,const char *fmt) {
   uint64_t val;
   if (! (*this)(val)) return *this;
   if (val > UINT16_MAX) return conversion_error("uint16",val,true);
   i = (uint16_t)val;
   return *this;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x14(%rdi), %r9
leaq 0x188c(%rip), %rsi      # 0x50ff
leaq 0x188c(%rip), %rdx      # 0x5106
movq %rsp, %r8
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x2be4
cmpl $0x0, 0x1c(%rbx)
jne 0x38b3
movq (%rsp), %rdx
cmpq $0x10000, %rdx          # imm = 0x10000
jb 0x38af
leaq 0x1873(%rip), %rsi      # 0x5113
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x31e8
jmp 0x38b3
movw %dx, (%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/instream.cpp
// Function: stream::Reader::operator()(unsigned char&, char const*)
Reader& Reader::operator() (uint8_t &i,const char *fmt) {
   uint64_t val;
   if (! (*this)(val)) return *this;
   if (val > UINT8_MAX) return conversion_error("uchar",val,true);
   i = (uint8_t)val;
   return *this;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x14(%rdi), %r9
leaq 0x180c(%rip), %rsi      # 0x50ff
leaq 0x180c(%rip), %rdx      # 0x5106
movq %rsp, %r8
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x2be4
cmpl $0x0, 0x1c(%rbx)
jne 0x3932
movq (%rsp), %rdx
cmpq $0x100, %rdx            # imm = 0x100
jb 0x392f
leaq 0x17ff(%rip), %rsi      # 0x511f
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x31e8
jmp 0x3932
movb %dl, (%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/instream.cpp
// Function: stream::Reader::skip(int)
Reader& Reader::skip(int lines) {
  if (fail()) return *this;
  int i = 0;
  char buff[line_size];
  while (i < lines && read_line(buff,line_size) > 0) {
     ++i;
  }
  return *this;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rdi, %rbx
cmpl $0x0, 0x1c(%rdi)
je 0x3983
movq %rbx, %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r14
popq %rbp
retq
movl %esi, %ebp
testl %esi, %esi
jle 0x3974
decl %ebp
movq %rsp, %r14
movq %rbx, %rdi
movq %r14, %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x357a
subl $0x1, %ebp
setb %cl
testl %eax, %eax
jle 0x3974
testb %cl, %cl
je 0x398e
jmp 0x3974
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/instream.cpp
// Function: stream::Reader::getline(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
Reader& Reader::getline(std::string& s) {
  if (fail()) return *this;
  char buff[line_size];
  s.clear();
  int n = read_line(buff,line_size);
  while (n > 1) {
    if (buff[n-1]=='\n') {
       --n;
       buff[n] = 0; // trim \n
       s.append(buff,n);
       break;
    } else {
       s.append(buff,n);
    }
    n = read_line(buff,line_size);
  }
  return *this;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rdi, %rbx
cmpl $0x0, 0x1c(%rdi)
jne 0x3a28
movq %rsi, %r14
movq $0x0, 0x8(%rsi)
movq (%rsi), %rax
movb $0x0, (%rax)
movq %rsp, %rsi
movq %rbx, %rdi
movl $0x100, %edx            # imm = 0x100
callq 0x357a
cmpl $0x2, %eax
jl 0x3a28
movq %rsp, %r15
leal -0x1(%rax), %edx
cmpb $0xa, (%rsp,%rdx)
je 0x3a19
movl %eax, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2050
movq %rbx, %rdi
movq %r15, %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x357a
cmpl $0x1, %eax
jg 0x39ec
jmp 0x3a28
movb $0x0, (%rsp,%rdx)
movq %rsp, %rsi
movq %r14, %rdi
callq 0x2050
movq %rbx, %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/instream.cpp
// Function: stream::Reader::getlineinfo(long)
Reader::LineInfo Reader::getlineinfo (long p) {
    if (p == -1)
        p = pos;
    setpos(0,'^');
    pos = 0;
    char buff[line_size];
    int last_pos, lineno = 1;
    read_line(buff,line_size);
    while (pos < p) {
        lineno++;
        last_pos = pos;
        read_line(buff,line_size);
    }
    int col = p - last_pos;
    setpos(p,'^');
    return {lineno, col};
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rdi, %rbx
cmpq $-0x1, %rsi
movslq 0x18(%rdi), %r14
cmovneq %rsi, %r14
movq (%rdi), %rax
xorl %esi, %esi
movl $0x5e, %edx
callq *0x28(%rax)
movl $0x0, 0x18(%rbx)
movq %rsp, %rsi
movq %rbx, %rdi
movl $0x100, %edx            # imm = 0x100
callq 0x357a
movslq 0x18(%rbx), %rax
movl $0x1, %r12d
cmpq %rax, %r14
jle 0x3aac
movq %rsp, %r15
movl %eax, %ebp
movq %rbx, %rdi
movq %r15, %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x357a
movslq 0x18(%rbx), %rax
incq %r12
cmpq %rax, %r14
jg 0x3a8c
jmp 0x3aac
movl %r14d, %r15d
subl %ebp, %r15d
movq (%rbx), %rax
movq %rbx, %rdi
movq %r14, %rsi
movl $0x5e, %edx
callq *0x28(%rax)
shlq $0x20, %r15
orq %r12, %r15
movq %r15, %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/instream.cpp
// Function: stream::StrReader::read_raw_line(char*, int)
char *StrReader::read_raw_line(char *buff, int buffsize) {
    char *P = buff;
    const char *Q = pc+pos;
    int i = 1;
    while (*Q != '\n' && i < buffsize && *Q != 0) {
        *P++ = *Q++;
        ++i;
    }
    *P = 0;
    return buff;
}

// Assembly:
movq %rsi, %rax
movq %rsi, %rcx
cmpl $0x2, %edx
jl 0x3d9c
movslq 0x18(%rdi), %rsi
addq 0x40(%rdi), %rsi
decl %edx
xorl %ecx, %ecx
movzbl (%rsi,%rcx), %edi
testl %edi, %edi
je 0x3d99
cmpl $0xa, %edi
je 0x3d99
movb %dil, (%rax,%rcx)
incq %rcx
cmpl %ecx, %edx
jne 0x3d81
addq %rax, %rcx
movb $0x0, (%rcx)
retq
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/outstream.cpp
// Function: stream::Writer::fmt(char const*, ...)
Writer& Writer::fmt(const char *fmtstr,...) {
    va_list ap;
    va_start(ap,fmtstr);
    write_out(fmtstr,ap);
    va_end(ap);
    return *this;
}

// Assembly:
pushq %rbx
subq $0xd0, %rsp
movq %rdi, %rbx
leaq 0x20(%rsp), %rdi
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x411f
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %rdx
movq %rdi, 0x10(%rdx)
leaq 0xe0(%rsp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rdx)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
movq %rbx, %rax
addq $0xd0, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/outstream.cpp
// Function: stream::Writer::sep_out()
void Writer::sep_out() {
    if (eoln) {
        eoln = false;
    } else {
        if (sepc != next_sepc) {
            next_sepc = sepc;
        }
        if (next_sepc) {
            write_char(next_sepc);
        }
        next_sepc = sepc;
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpb $0x1, 0x11(%rdi)
jne 0x4164
movb $0x0, 0x11(%rbx)
jmp 0x4187
movb 0x10(%rbx), %al
cmpb 0x14(%rbx), %al
je 0x416f
movb %al, 0x14(%rbx)
movb 0x14(%rbx), %al
testb %al, %al
je 0x4181
movq (%rbx), %rcx
movsbl %al, %esi
movq %rbx, %rdi
callq *(%rcx)
movb 0x10(%rbx), %al
movb %al, 0x14(%rbx)
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/outstream.cpp
// Function: stream::Writer::formatted_write(char const*, char const*, ...)
Writer& Writer::formatted_write(const char *def, const char *fmt,...) {
    char copy_def[30];
    if (fmt!=nullptr && fmt[1]==0) { // one-character special shortcut format codes
        if (def[1] == 's') { // 'quote' or "quote" strings
            if (fmt[0] == 'q') fmt = "'%s'"; else
            if (fmt[0] == 'Q') fmt = "\"%s\"";
        } else {
            if (fmt[0] == 'x' || fmt[0] == 'X') { // numbers as hex
                const char *in = def;
                char *out = copy_def;
                while (*(in+1))  *out++ = *in++;
                if (*in == 'c') { // special case - characters as bytes
                    *out++ = 'h';   *out++ = 'h';
                }
                *out++ = fmt[0];
                *out = 0;
                fmt = copy_def;
            } else {
                fmt = nullptr;
            }
        }
    }
    sep_out();
    va_list ap;
    va_start(ap,fmt);
    write_out(fmt ? fmt : def,ap);
    va_end(ap);
    return *this;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xf0, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rcx, 0x58(%rsp)
movq %r8, 0x60(%rsp)
movq %r9, 0x68(%rsp)
testb %al, %al
je 0x41ec
movaps %xmm0, 0x70(%rsp)
movaps %xmm1, 0x80(%rsp)
movaps %xmm2, 0x90(%rsp)
movaps %xmm3, 0xa0(%rsp)
movaps %xmm4, 0xb0(%rsp)
movaps %xmm5, 0xc0(%rsp)
movaps %xmm6, 0xd0(%rsp)
movaps %xmm7, 0xe0(%rsp)
testq %rdx, %rdx
je 0x4249
movq %rdx, %r15
cmpb $0x0, 0x1(%rdx)
jne 0x424c
cmpb $0x73, 0x1(%r14)
movb (%r15), %al
jne 0x4215
cmpb $0x71, %al
jne 0x429e
leaq 0x1056(%rip), %r15      # 0x5269
jmp 0x424c
movzbl %al, %ecx
orl $0x20, %ecx
cmpl $0x78, %ecx
jne 0x4249
cmpb $0x0, 0x1(%r14)
je 0x42ad
movq %rsp, %rcx
movq %r14, %rdx
movb (%rdx), %sil
movb %sil, (%rcx)
incq %rcx
leaq 0x1(%rdx), %rsi
cmpb $0x0, 0x2(%rdx)
movq %rsi, %rdx
jne 0x4231
jmp 0x42b3
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x4154
leaq 0x40(%rsp), %rax
leaq 0x20(%rsp), %rdx
movq %rax, 0x10(%rdx)
leaq 0x110(%rsp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000018, %rax     # imm = 0x3000000018
movq %rax, (%rdx)
testq %r15, %r15
cmovneq %r15, %r14
movq (%rbx), %rax
movq %rbx, %rdi
movq %r14, %rsi
callq *0x8(%rax)
movq %rbx, %rax
addq $0xf0, %rsp
popq %rbx
popq %r14
popq %r15
retq
cmpb $0x51, %al
leaq 0xfc7(%rip), %rax       # 0x526e
cmoveq %rax, %r15
jmp 0x424c
movq %rsp, %rcx
movq %r14, %rsi
cmpb $0x63, (%rsi)
jne 0x42c1
movw $0x6868, (%rcx)         # imm = 0x6868
addq $0x2, %rcx
movb %al, (%rcx)
movb $0x0, 0x1(%rcx)
movq %rsp, %r15
jmp 0x424c
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/outstream.cpp
// Function: stream::Writer::sep(int)
Writer& Writer::sep(int ch) {
    if (ch == -1) {
        sepc = old_sepc;
    } else {
        old_sepc = sepc;
        sepc = ch;
    }
    return *this;
}

// Assembly:
movq %rdi, %rax
cmpl $-0x1, %esi
je 0x43e5
movb 0x10(%rax), %cl
movb %cl, 0x13(%rax)
movb %sil, 0x10(%rax)
retq
movb 0x13(%rax), %cl
movb %cl, 0x10(%rax)
retq
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/outstream.cpp
// Function: stream::Writer::operator()()
Writer& Writer::operator() () {
    eoln = true;
    put_eoln();
    next_sepc = 0;
    return *this;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movb $0x1, 0x11(%rdi)
movq (%rdi), %rax
callq *0x10(%rax)
movb $0x0, 0x14(%rbx)
movq %rbx, %rax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/stevedonovan[P]outstreams/outstream.cpp
// Function: stream::BufWriter::write_out(char const*, __va_list_tag*)
void BufWriter::write_out(const char *fmt, va_list ap) {
    int nch = vsnprintf(P,sizeof(buf),fmt,ap);
    char *next = P + nch;
    if (next < P_end) {
        P = next;
    } else {
        out = nullptr;
    }
}

// Assembly:
pushq %rbx
movq %rdx, %rcx
movq %rsi, %rdx
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
movl $0x80, %esi
callq 0x20b0
cltq
addq 0x18(%rbx), %rax
cmpq 0x20(%rbx), %rax
jae 0x45f0
movq %rax, 0x18(%rbx)
jmp 0x45f8
movq $0x0, 0x8(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/wichtounet[P]articles/src/threads/part2/Unsafe.cpp
// Function: main
int main(){
    Counter counter;

    std::vector<std::thread> threads;
    for(int i = 0; i < 5; ++i){
        threads.push_back(std::thread([&counter](){
            for(int i = 0; i < 100; ++i){
                counter.increment();
            }
        }));
    }

    for(auto& thread : threads){
        thread.join();
    }

    std::cout << counter.value << std::endl;

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
vxorps %xmm0, %xmm0, %xmm0
leaq 0x20(%rsp), %rbx
vmovaps %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movl $0x5, %ebp
leaq 0x2aed(%rip), %r12      # 0x3d88
leaq 0x1c(%rsp), %r13
leaq 0x10(%rsp), %r14
leaq 0x8(%rsp), %r15
movq $0x0, 0x10(%rsp)
movl $0x10, %edi
callq 0x10e0
movq %r12, (%rax)
movq %r13, 0x8(%rax)
movq %rax, 0x8(%rsp)
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x10b0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x12e6
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1408
cmpq $0x0, 0x10(%rsp)
jne 0x13b4
decl %ebp
jne 0x12aa
movq 0x20(%rsp), %rbx
movq 0x28(%rsp), %r14
cmpq %r14, %rbx
je 0x131e
movq %rbx, %rdi
callq 0x1100
addq $0x8, %rbx
jmp 0x130b
movl 0x1c(%rsp), %esi
movq 0x2caf(%rip), %rdi      # 0x3fd8
callq 0x1110
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1080
leaq 0x20(%rsp), %rdi
callq 0x13d4
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x139f
jmp 0x139f
jmp 0x139f
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x138c
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
jmp 0x13a2
cmpq $0x0, 0x10(%rsp)
jne 0x13b4
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x13d4
movq %rbx, %rdi
callq 0x1120
callq 0x1040
nop
// File: /workspace/github_cpp_makefile_star2_O1/superblocks[P]superblocks/next.cpp
// Function: main
int main( int argc, char **argv ) 
{

	Superblocks s;
	s.init();	

	if( !argv[1] ) 
	{
		cout << "usage: " << argv[0];
		switch( s.seed_type[1] ) { 
			default: cout << " <input>"; break;
			case 1: cout << " <block height>"; break;
			case 2: cout << " <block hash>"; break;
		}
		cout << " [debug]" << endl;
		return 0; 
	}

	s.debug = 0;
	if( argv[2] ) { s.debug = 1; }

	int reward = s.getnextblockreward( argv[1] );

	cout << reward << endl;

	return 0;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xe0, %rsp
movq %rsi, %rbx
leaq -0xd8(%rbp), %r15
movq %r15, -0x10(%r15)
xorl %eax, %eax
movq %rax, -0x8(%r15)
movb %al, (%r15)
leaq -0xb8(%rbp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
leaq -0x100(%rbp), %rdi
callq 0x2b34
movq 0x8(%rbx), %rsi
testq %rsi, %rsi
je 0x1ec1
leaq -0x100(%rbp), %rdi
movl $0x0, (%rdi)
xorl %eax, %eax
cmpq $0x0, 0x10(%rbx)
setne %al
movl %eax, (%rdi)
callq 0x130c
movq 0x414d(%rip), %rdi      # 0x5fd8
movl %eax, %esi
callq 0x1140
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1080
jmp 0x1fa2
movq 0x4110(%rip), %r14      # 0x5fd8
leaq 0x14a8(%rip), %rsi      # 0x3377
movl $0x7, %edx
movq %r14, %rdi
callq 0x1100
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x1f00
movq %rbx, %rdi
callq 0x1040
movq 0x40e5(%rip), %rdi      # 0x5fd8
movq %rbx, %rsi
movq %rax, %rdx
callq 0x1100
jmp 0x1f18
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x1130
movl -0xa0(%rbp), %eax
cmpl $0x1, %eax
je 0x1f36
cmpl $0x2, %eax
jne 0x1f44
movl $0xd, %edx
leaq 0x1464(%rip), %rsi      # 0x3398
jmp 0x1f50
movl $0xf, %edx
leaq 0x1446(%rip), %rsi      # 0x3388
jmp 0x1f50
movl $0x8, %edx
leaq 0x142f(%rip), %rsi      # 0x337f
movq 0x4081(%rip), %rdi      # 0x5fd8
callq 0x1100
movq 0x4075(%rip), %rbx      # 0x5fd8
leaq 0x143c(%rip), %rsi      # 0x33a6
movl $0x8, %edx
movq %rbx, %rdi
callq 0x1100
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x10d0
movsbl %al, %esi
movq 0x4043(%rip), %rdi      # 0x5fd8
callq 0x1030
movq %rax, %rdi
callq 0x1080
movq -0xc8(%rbp), %rdi
cmpq %r12, %rdi
je 0x1fbd
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x10e0
movq -0xe8(%rbp), %rdi
cmpq %r15, %rdi
je 0x1fd8
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x10e0
xorl %eax, %eax
addq $0xe0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1fec
movq %rax, %rbx
leaq -0x100(%rbp), %rdi
callq 0x20ba
movq %rbx, %rdi
callq 0x1150
nop
// File: /workspace/github_cpp_makefile_star2_O1/superblocks[P]superblocks/./superblocks.hpp
// Function: Superblocks::getlucktype[abi:cxx11](int)
string getlucktype( int type ) 
	{
		switch( type ) {
			case 1: return "LUCK_WITH_LESS_THAN_X";
			case 2: return "LUCK_WITH_MORE_THAN_X";
			case 3: return "LUCK_WITH_MORE_THAN_X_AND_LESS_THAN_Y";
			default: return "error";
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
cmpl $0x3, %edx
je 0x2043
cmpl $0x2, %edx
je 0x2033
cmpl $0x1, %edx
jne 0x2053
leaq 0x1385(%rip), %rsi      # 0x33af
leaq 0x1393(%rip), %rdx      # 0x33c4
jmp 0x2061
leaq 0x138b(%rip), %rsi      # 0x33c5
leaq 0x1399(%rip), %rdx      # 0x33da
jmp 0x2061
leaq 0x1391(%rip), %rsi      # 0x33db
leaq 0x13af(%rip), %rdx      # 0x3400
jmp 0x2061
leaq 0x13a7(%rip), %rsi      # 0x3401
leaq 0x13a5(%rip), %rdx      # 0x3406
movq %rbx, %rdi
callq 0x2100
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/superblocks[P]superblocks/utils.cpp
// Function: Superblocks::generateMTRandom(unsigned int, int, int)
int /*static*/ Superblocks::generateMTRandom(unsigned int s, int range_low, int range_high) 
{
	if( debug ) { 
		cout << "generateMTRandom: seed: " << s << endl;
		cout << "generateMTRandom: range_low: " << range_low << endl;
		cout << "generateMTRandom: range_high: " << range_high << endl;
	}
	random::mt19937 gen(s);
	random::uniform_int_distribution<> dist(range_low, range_high);
	int result = dist(gen);
	if( debug ) { cout << "generateMTRandom: result: " << result << endl; }	
	return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x9d8, %rsp            # imm = 0x9D8
movl %ecx, %r14d
movl %edx, %r15d
movq %rdi, %rbx
movl %esi, -0x2c(%rbp)
cmpl $0x0, (%rdi)
je 0x2791
movq 0x3922(%rip), %r12      # 0x5fd8
leaq 0xea2(%rip), %rsi       # 0x355f
movl $0x18, %edx
movq %r12, %rdi
callq 0x1100
movl -0x2c(%rbp), %esi
movq %r12, %rdi
callq 0x1070
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x10d0
movsbl %al, %esi
movq %r13, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1080
leaq 0xe72(%rip), %rsi       # 0x3578
movl $0x1d, %edx
movq %r12, %rdi
callq 0x1100
movq %r12, %rdi
movl %r15d, %esi
callq 0x1140
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x10d0
movsbl %al, %esi
movq %r13, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1080
leaq 0xe47(%rip), %rsi       # 0x3596
movl $0x1e, %edx
movq %r12, %rdi
callq 0x1100
movq %r12, %rdi
movl %r14d, %esi
callq 0x1140
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x10d0
movsbl %al, %esi
movq %r12, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1080
leaq -0x9f8(%rbp), %rdi
leaq -0x2c(%rbp), %rsi
callq 0x2882
cmpl %r14d, %r15d
jg 0x2825
leaq -0x9f8(%rbp), %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x290a
movl %eax, %r14d
cmpl $0x0, (%rbx)
je 0x2810
movq 0x3811(%rip), %rbx      # 0x5fd8
leaq 0xde7(%rip), %rsi       # 0x35b5
movl $0x1a, %edx
movq %rbx, %rdi
callq 0x1100
movq %rbx, %rdi
movl %r14d, %esi
callq 0x1140
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1080
movl %r14d, %eax
addq $0x9d8, %rsp            # imm = 0x9D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xda4(%rip), %rdi       # 0x35d0
leaq 0xdb0(%rip), %rsi       # 0x35e3
leaq 0xde0(%rip), %rcx       # 0x361a
movl $0x151, %edx            # imm = 0x151
callq 0x1050
// File: /workspace/github_cpp_makefile_star2_O1/superblocks[P]superblocks/set-red.cpp
// Function: Superblocks::init()
void Superblocks::init() {

  coin = "RED"; 
	coin_name = "Redcoin";

	hash_length = 64;

	// normal (step 0)
	reward[0] = 50;
		secondary_rand[0] = 1;
		cutout_start[0] = 6;
		cutout_length[0] = 7;
		secondary_rand_type[0] = SECONDARY_REWARD_PLUS_RAND_MINUS_X;
		secondary_rand_low[0] = 0;
		secondary_rand_high[0] = 100;
		secondary_rand_x[0] = 0;

	// superblock (step 1)
	seed_type[1] = SEED_WITH_PREVIOUS_BLOCK_HASH;
	cutout_start[1] = 1;
	cutout_length[1] = 7;
	rnd_range_low[1] = 0;
	rnd_range_high[1] = 99999;
	luck_type[1] = LUCK_WITH_MORE_THAN_X_AND_LESS_THAN_Y;
	luck_x[1] = 30000;
	luck_y[1] = 30006;
		secondary_rand[1] = 1;
		secondary_rand_type[1] = SECONDARY_REWARD_PLUS_RAND_MINUS_X;
		secondary_rand_low[1] = 0;
		secondary_rand_high[1] = 5000;
		secondary_rand_x[1] = 0;
	reward[1] = 5000;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
addq $0x18, %rdi
movq 0x20(%rbx), %rdx
leaq 0x1363(%rip), %rcx      # 0x3eb0
xorl %r14d, %r14d
movl $0x3, %r8d
xorl %esi, %esi
callq 0x1120
leaq 0x38(%rbx), %rdi
movq 0x40(%rbx), %rdx
leaq 0x1348(%rip), %rcx      # 0x3eb4
movl $0x7, %r8d
xorl %esi, %esi
callq 0x1120
movl $0x40, 0x58(%rbx)
movaps 0x12f9(%rip), %xmm0     # 0x3e80
movups %xmm0, 0x60(%rbx)
movl $0x7, 0x70(%rbx)
movl %r14d, 0x78(%rbx)
movabsq $0x10001869f, %rax      # imm = 0x10001869F
movq %rax, 0x80(%rbx)
movl $0x3, 0xc0(%rbx)
movl $0x7530, 0xc8(%rbx)     # imm = 0x7530
movabsq $0x3200007536, %rax     # imm = 0x3200007536
movq %rax, 0xd0(%rbx)
movaps 0x12bd(%rip), %xmm0     # 0x3e90
movups %xmm0, 0x88(%rbx)
movaps 0x12bf(%rip), %xmm0     # 0x3ea0
movups %xmm0, 0x98(%rbx)
movl %r14d, 0xa8(%rbx)
movl $0x1388, 0xd8(%rbx)     # imm = 0x1388
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/nmmmnu[P]HM3/net/test/test_selector_impl.h
// Function: main
int main(){
	int const fd1 = net::socket_create(net::SOCKET_TCP{},  "localhost.not.used.yet", 2000);
	int const fd2 = net::socket_create(net::SOCKET_TCP{},  "localhost.not.used.yet", 2002);
	int const fd3 = net::socket_create(net::SOCKET_UNIX{}, "/tmp/echo");

	net::AsyncLoop<MySelector, MyWorker> loop( MySelector{ 4 }, myWorkerFactory(), { fd1, fd2, fd3 } );

	while(loop.process());
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x1100, %rsp           # imm = 0x1100
leaq 0x2bd5(%rip), %r14      # 0x502c
movq %r14, %rdi
movl $0x7d0, %esi            # imm = 0x7D0
xorl %edx, %edx
movl $0x7, %ecx
callq 0x4965
movl %eax, %ebx
movq %r14, %rdi
movl $0x7d2, %esi            # imm = 0x7D2
xorl %edx, %edx
movl $0x7, %ecx
callq 0x4965
movl %eax, %ebp
leaq 0x2bb9(%rip), %rdi      # 0x5043
xorl %esi, %esi
movl $0x1, %edx
callq 0x4a89
movl %eax, %r14d
leaq 0x28(%rsp), %rdi
movl $0x4, %esi
callq 0x3ca0
leaq 0x8(%rsp), %rdi
callq 0x2824
leaq 0x5cb8(%rip), %rax      # 0x8171
leaq 0x8(%rsp), %rdx
movq %rax, 0x18(%rdx)
leaq 0x44(%rsp), %rax
movl %ebx, (%rax)
movl %ebp, 0x4(%rax)
movl %r14d, 0x8(%rax)
leaq 0x50(%rsp), %rcx
movq %rax, (%rcx)
movq $0x3, 0x8(%rcx)
leaq 0x60(%rsp), %rdi
leaq 0x28(%rsp), %rsi
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x2580
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x250c
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x21a0
leaq 0x28(%rsp), %rdi
callq 0x3f0c
leaq 0x60(%rsp), %rbx
movq %rbx, %rdi
callq 0x26c6
testb %al, %al
jne 0x251b
leaq 0x60(%rsp), %rdi
callq 0x27aa
xorl %eax, %eax
addq $0x1100, %rsp           # imm = 0x1100
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x255e
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x21a0
jmp 0x255e
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x3f0c
jmp 0x2577
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x27aa
movq %rbx, %rdi
callq 0x2280
nop
// File: /workspace/github_cpp_makefile_star2_O1/nmmmnu[P]HM3/net/asyncloop_impl.h
// Function: net::AsyncLoop<net::selector::PollSelector, net::worker::KeyValueWorker<net::protocol::RedisProtocol, KeyValueMockAdapter>>::process()
bool AsyncLoop<SELECTOR, WORKER>::process(){
	using WaitStatus = selector::WaitStatus;
	using FDStatus   = selector::FDStatus;

	keepProcessing_ = true;

	log_("poll()-ing...");
	const WaitStatus status = selector_.wait(WAIT_TIMEOUT_MS);

	if (status == WaitStatus::ERROR){
		log_("poll() error");

		return false;
	}

	if (status == WaitStatus::NONE){
		// idle loop, check for expired conn
		expireFD_();
		return true;
	}

	for(uint32_t i = 0; i < selector_.getFDStatusCount(); ++i){
		const auto &t = selector_.getFDStatus(i);

		switch(t.status){
		case FDStatus::READ:
			handleRead_( t.fd );
			break;

		case FDStatus::WRITE:
			handleWrite_( t.fd );
			break;

		case FDStatus::ERROR:
			handleDisconnect_( t.fd, DisconnectStatus::ERROR );
			break;

		case FDStatus::STOP:
			goto break2;

		case FDStatus::NONE:
		default:
			break;

		}
	}

	break2: // label for goto... ;)

	return keepProcessing_;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movb $0x1, 0x8c(%rdi)
movl 0x88(%rdi), %edx
leaq 0x29c8(%rip), %rdi      # 0x50a9
leaq 0x29a6(%rip), %rsi      # 0x508e
xorl %eax, %eax
callq 0x2040
movq %rbx, %rdi
movl $0x1388, %esi           # imm = 0x1388
callq 0x3f90
cmpl $0x1, %eax
je 0x2725
cmpl $0x2, %eax
jne 0x2731
movl 0x88(%rbx), %edx
leaq 0x2996(%rip), %rdi      # 0x50a9
leaq 0x2982(%rip), %rsi      # 0x509c
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x2040
jmp 0x27a2
movq %rbx, %rdi
callq 0x2ae0
movb $0x1, %bl
jmp 0x27a2
movq %rbx, %rdi
callq 0x3f84
testl %eax, %eax
je 0x279c
xorl %ebp, %ebp
leaq 0x28be(%rip), %r14      # 0x5004
movq %rbx, %rdi
movl %ebp, %esi
callq 0x3fba
movq %rax, %rcx
shrq $0x20, %rcx
decl %ecx
cmpl $0x3, %ecx
ja 0x278e
movslq (%r14,%rcx,4), %rcx
addq %r14, %rcx
jmpq *%rcx
movq %rbx, %rdi
movl %eax, %esi
callq 0x2b34
jmp 0x278e
movq %rbx, %rdi
movl %eax, %esi
movl $0x1, %edx
callq 0x2da6
jmp 0x278e
movq %rbx, %rdi
movl %eax, %esi
callq 0x2c70
incl %ebp
movq %rbx, %rdi
callq 0x3f84
cmpl %eax, %ebp
jb 0x2746
movb 0x8c(%rbx), %bl
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/nmmmnu[P]HM3/net/asyncloop.h
// Function: net::AsyncLoop<net::selector::PollSelector, net::worker::KeyValueWorker<net::protocol::RedisProtocol, KeyValueMockAdapter>>::log_(char const*, int) const
void log_(const char *s, int const fd = -1) const{
		if (fd < 0)
			printf("%-40s | clients: %5u |\n",         s, connectedClients_);
		else
			printf("%-40s | clients: %5u | fd: %5d\n", s, connectedClients_, fd);
	}

// Assembly:
movl %edx, %ecx
movl 0x88(%rdi), %edx
testl %ecx, %ecx
js 0x2ad2
leaq 0x25f6(%rip), %rdi      # 0x50c1
xorl %eax, %eax
jmp 0x2040
leaq 0x25d0(%rip), %rdi      # 0x50a9
xorl %eax, %eax
jmp 0x2040
// File: /workspace/github_cpp_makefile_star2_O1/nmmmnu[P]HM3/net/asyncloop_impl.h
// Function: net::AsyncLoop<net::selector::PollSelector, net::worker::KeyValueWorker<net::protocol::RedisProtocol, KeyValueMockAdapter>>::expireFD_()
void AsyncLoop<SELECTOR, WORKER>::expireFD_(){
	for(const auto &p : clients_){
		int const fd = p.first;
		auto &c = p.second;

		if (c.expired(conf_connectionTimeout_)){
			handleDisconnect_(fd, DisconnectStatus::TIMEOUT);
			// iterator is invalid now...
			return;
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x60(%rdi), %r14
movq (%r14), %r14
testq %r14, %r14
je 0x2b28
movl 0x8(%r14), %ebp
movl 0x38(%r14), %r15d
addl 0x90(%rbx), %r15d
callq 0x46dc
cmpl %eax, %r15d
jae 0x2aee
movq %rbx, %rdi
movl %ebp, %esi
movl $0x2, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2da6
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/nmmmnu[P]HM3/net/asyncloop_impl.h
// Function: net::AsyncLoop<net::selector::PollSelector, net::worker::KeyValueWorker<net::protocol::RedisProtocol, KeyValueMockAdapter>>::handleRead_(int)
void AsyncLoop<SELECTOR, WORKER>::handleRead_(int const fd){
	if ( isServerFD_(fd) ){
		while (handleConnect_(fd));
		return;
	}

	// -------------------------------------

	auto it = clients_.find(fd);

	if (it == clients_.end())
		return handleDisconnect_(fd, DisconnectStatus::PROBLEM_MAP_NOT_FOUND);

	auto &buffer = it->second;

	// -------------------------------------

	ssize_t const size = ::read(fd, inputBuffer_, BUFFER_CAPACITY);

	if (size <= 0)
		return handleSocketOps_(fd, size);

	if (buffer.size() + (size_t) size > conf_maxPacketSize_)
		return handleDisconnect_(fd, DisconnectStatus::ERROR);

	buffer.push(size, inputBuffer_);

	buffer.restartTimer();

	handleWorker_(fd, buffer);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
movq %rdi, %r14
leaq 0xc(%rsp), %rdx
movl %esi, (%rdx)
movq 0x38(%rdi), %rdi
movq 0x40(%r14), %rsi
callq 0x2f07
cmpq 0x40(%r14), %rax
je 0x2b73
movq %r14, %rdi
movl %ebx, %esi
callq 0x2e06
testb %al, %al
jne 0x2b60
jmp 0x2c62
movslq %ebx, %rax
movq 0x50(%r14), %rsi
movq 0x58(%r14), %rdi
xorl %r9d, %r9d
xorl %edx, %edx
divq %rdi
movq (%rsi,%rdx,8), %rax
testq %rax, %rax
je 0x2bcc
movq (%rax), %r8
movq %rax, %r9
cmpl %ebx, 0x8(%r8)
je 0x2bcc
movq %rdx, %rcx
movq %r8, %r10
movq (%r8), %r8
testq %r8, %r8
je 0x2bc9
movslq 0x8(%r8), %rsi
movq %rsi, %rax
xorl %edx, %edx
divq %rdi
movl $0x0, %r9d
cmpq %rcx, %rdx
jne 0x2bcc
movq %r10, %r9
cmpl %ebx, %esi
jne 0x2b9e
jmp 0x2bcc
xorl %r9d, %r9d
testq %r9, %r9
je 0x2bd6
movq (%r9), %r13
jmp 0x2bd9
xorl %r13d, %r13d
testq %r13, %r13
je 0x2c19
leaq 0xa0(%r14), %r15
movl $0x1000, %edx           # imm = 0x1000
movl %ebx, %edi
movq %r15, %rsi
callq 0x2210
testq %rax, %rax
jle 0x2c2a
movq 0x20(%r13), %rcx
addq %rax, %rcx
subq 0x10(%r13), %rcx
cmpq 0x98(%r14), %rcx
jbe 0x2c39
movq %r14, %rdi
movl %ebx, %esi
movl $0x1, %edx
jmp 0x2c23
movq %r14, %rdi
movl %ebx, %esi
movl $0x5, %edx
callq 0x2da6
jmp 0x2c62
movq %r14, %rdi
movl %ebx, %esi
movq %rax, %rdx
callq 0x2e56
jmp 0x2c62
leaq 0x10(%r13), %r12
leaq 0x18(%r13), %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2060
callq 0x46dc
movl %eax, 0x38(%r13)
movq %r14, %rdi
movl %ebx, %esi
movq %r12, %rdx
callq 0x2e8e
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq