LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/ingowald[P]closestSurfacePointQueries/src/distanceQueries.cpp
// Function: rtdqNewTriangleMeshfi
distance_query_scene rtdqNewTriangleMeshfi(const float   *vertex_x,
                                             const float   *vertex_y,
                                             const float   *vertex_z,
                                             const size_t   vertex_stride,
                                             const int32_t *index_x,
                                             const int32_t *index_y,
                                             const int32_t *index_z,
                                             const size_t   index_stride,
                                             const size_t    numTriangles)
  {
    if (index_stride == 1 && vertex_stride == 1)
      return (distance_query_scene)
        new GeneralTriangleMesh<float,int,0>(vertex_x,vertex_y,vertex_z,vertex_stride,
                                             index_x,index_y,index_z,index_stride,
                                             numTriangles);
    else
      return (distance_query_scene)
        new GeneralTriangleMesh<float,int,1>(vertex_x,vertex_y,vertex_z,vertex_stride,
                                             index_x,index_y,index_z,index_stride,
                                             numTriangles);

  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, 0x10(%rsp)
movq %r8, 0x8(%rsp)
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
movq 0x58(%rsp), %r15
xorq $0x1, %r15
movq %rcx, %r14
xorq $0x1, %r14
movl $0x90, %edi
callq 0x21d0
orq %r15, %r14
jne 0x4b32
movl $0x1, %r8d
movq %rax, %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq %r12, %rcx
movq 0x8(%rsp), %r9
pushq 0x60(%rsp)
pushq $0x1
pushq 0x60(%rsp)
pushq 0x28(%rsp)
movq %rax, %rbx
callq 0x5366
addq $0x20, %rsp
jmp 0x4b62
movq %rax, %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq %r12, %rcx
movq %rbx, %r8
movq 0x8(%rsp), %r9
pushq 0x60(%rsp)
pushq 0x60(%rsp)
pushq 0x60(%rsp)
pushq 0x28(%rsp)
movq %rax, %rbx
callq 0x53f2
addq $0x20, %rsp
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4b76
movq %rax, %r14
movl $0x90, %esi
movq %rbx, %rdi
callq 0x21e0
movq %r14, %rdi
callq 0x22f0
// File: /workspace/github_cpp_makefile_star2_O3/ingowald[P]closestSurfacePointQueries/src/distanceQueries.cpp
// Function: rtdqNewTriangleMeshdi
distance_query_scene rtdqNewTriangleMeshdi(const double   *vertex_x,
                                             const double   *vertex_y,
                                             const double   *vertex_z,
                                             const size_t   vertex_stride,
                                             const int32_t *index_x,
                                             const int32_t *index_y,
                                             const int32_t *index_z,
                                             const size_t   index_stride,
                                             const size_t    numTriangles)
  {
    if (index_stride == 1 && vertex_stride == 1)
      return (distance_query_scene)
        new GeneralTriangleMesh<double,int,0>(vertex_x,vertex_y,vertex_z,vertex_stride,
                                              index_x,index_y,index_z,index_stride,
                                              numTriangles);
    else
      return (distance_query_scene)
        new GeneralTriangleMesh<double,int,1>(vertex_x,vertex_y,vertex_z,vertex_stride,
                                              index_x,index_y,index_z,index_stride,
                                              numTriangles);

  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, 0x10(%rsp)
movq %r8, 0x8(%rsp)
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
movq 0x58(%rsp), %r15
xorq $0x1, %r15
movq %rcx, %r14
xorq $0x1, %r14
movl $0x90, %edi
callq 0x21d0
orq %r15, %r14
jne 0x4c04
movl $0x1, %r8d
movq %rax, %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq %r12, %rcx
movq 0x8(%rsp), %r9
pushq 0x60(%rsp)
pushq $0x1
pushq 0x60(%rsp)
pushq 0x28(%rsp)
movq %rax, %rbx
callq 0x547e
addq $0x20, %rsp
jmp 0x4c34
movq %rax, %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq %r12, %rcx
movq %rbx, %r8
movq 0x8(%rsp), %r9
pushq 0x60(%rsp)
pushq 0x60(%rsp)
pushq 0x60(%rsp)
pushq 0x28(%rsp)
movq %rax, %rbx
callq 0x550a
addq $0x20, %rsp
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4c48
movq %rax, %r14
movl $0x90, %esi
movq %rbx, %rdi
callq 0x21e0
movq %r14, %rdi
callq 0x22f0
// File: /workspace/github_cpp_makefile_star2_O3/yuansliu[P]HiRGC/hirgc.cpp
// Function: readRefFile(char*)
void readRefFile(char *refFile) { // processing reference file
	int _ref_seq_len = 0;
	char ch[1024];
	FILE *fp = fopen(refFile, "r");
	if (NULL == fp) {
		printf("fail to open file %s\n", refFile);
		return;
	}
	int temp_len, index;
	char temp_ch;
	
	// fscanf(fp, "%s", ch);//meta_data
	fgets(ch, 1024, fp);
	while (fscanf(fp, "%s", ch) != EOF) {
		temp_len = strlen(ch);
		for (int i = 0; i < temp_len; i++) {
			temp_ch = ch[i];
			if (islower(temp_ch)) {
				temp_ch = toupper(temp_ch);
			}
			index = agctIndex(temp_ch);
			if (index^4) {//only A T C T are saved
				ref_seq_code[_ref_seq_len++] = index;
			}
		}
	}
	fclose(fp);
	ref_seq_len = _ref_seq_len;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x418, %rsp            # imm = 0x418
movq %rdi, %r14
leaq 0x2875(%rip), %rsi      # 0x5050
callq 0x2190
testq %rax, %rax
je 0x28fb
movq %rax, %rbx
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movl $0x400, %esi            # imm = 0x400
movq %rax, %rdx
callq 0x2210
leaq 0x28a6(%rip), %rsi      # 0x50ae
xorl %r15d, %r15d
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x2280
cmpl $-0x1, %eax
je 0x28da
leaq 0x10(%rsp), %r14
xorl %r15d, %r15d
movq %rbx, 0x8(%rsp)
movq %r14, %rdi
callq 0x20b0
movq %rax, %r12
testl %r12d, %r12d
jle 0x28b3
movq 0x5963(%rip), %r14      # 0x81a8
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
xorl %ebx, %ebx
movb 0x10(%rsp,%rbx), %bpl
movsbl %bpl, %r13d
movl %r13d, %edi
callq 0x21c0
testl %eax, %eax
je 0x286d
movl %r13d, %edi
callq 0x2290
movl %eax, %ebp
movzbl %bpl, %eax
cmpl $0x46, %eax
jg 0x2887
cmpl $0x41, %eax
je 0x2898
cmpl $0x43, %eax
jne 0x28ab
movl $0x1, %eax
jmp 0x28a1
cmpl $0x47, %eax
je 0x289c
cmpl $0x54, %eax
jne 0x28ab
movl $0x3, %eax
jmp 0x28a1
xorl %eax, %eax
jmp 0x28a1
movl $0x2, %eax
movslq %r15d, %rcx
incl %r15d
movl %eax, (%r14,%rcx,4)
incq %rbx
cmpq %rbx, %r12
jne 0x284e
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x27ec(%rip), %rsi      # 0x50ae
leaq 0x10(%rsp), %r14
movq %r14, %rdx
xorl %eax, %eax
callq 0x2280
cmpl $-0x1, %eax
jne 0x282e
movq %rbx, %rdi
callq 0x2160
movl %r15d, 0x58d3(%rip)     # 0x81bc
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2768(%rip), %rdi      # 0x506a
movq %r14, %rsi
xorl %eax, %eax
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2040
// File: /workspace/github_cpp_makefile_star2_O3/yuansliu[P]HiRGC/hirgc.cpp
// Function: writeRunLengthCoding(_IO_FILE*, int, int*)
void writeRunLengthCoding(FILE *fp, int vec_len, int *vec) { // run-length coding for EOL
	vector<int> code;
	if (vec_len > 0) {
		code.push_back(vec[0]);
		int pre_value = code[0], cnt = 1;
		for (int i = 1; i < vec_len; i++) {
			if (vec[i] == pre_value) {
				cnt++;
			} else {
				code.push_back(cnt);
				code.push_back(vec[i]);
				pre_value = vec[i];
				cnt = 1;
			}
		}
		code.push_back(cnt);
	}
	int code_len = code.size();
	fprintf(fp, "%d", code_len);

	for (int i = 0; i < code_len; i++) {
		fprintf(fp, " %d", code[i]);
	}
	fprintf(fp, "\n");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
testl %esi, %esi
jle 0x2d37
movq %rdx, %r14
movl %esi, %ebp
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x4368
movq 0x10(%rsp), %rax
movl (%rax), %eax
movl $0x1, 0xc(%rsp)
movl $0x1, %ecx
cmpl $0x1, %ebp
je 0x2d1d
movl %ebp, %r13d
addq $0x4, %r14
decq %r13
leaq 0x10(%rsp), %r15
leaq 0xc(%rsp), %r12
cmpl %eax, (%r14)
jne 0x2cb7
incl %ecx
jmp 0x2d10
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rax
cmpq %rax, %rsi
je 0x2cd3
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x2ce8
movq %r15, %rdi
movq %r12, %rdx
callq 0x4368
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rax
cmpq %rax, %rsi
je 0x2cfd
movl (%r14), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x2d0b
movq %r15, %rdi
movq %r14, %rdx
callq 0x4368
movl (%r14), %eax
movl $0x1, %ecx
movl %ecx, 0xc(%rsp)
addq $0x4, %r14
decq %r13
jne 0x2cae
movq 0x18(%rsp), %r14
cmpq 0x20(%rsp), %r14
je 0x2d4c
movl %ecx, (%r14)
addq $0x4, %r14
movq %r14, 0x18(%rsp)
jmp 0x2d63
leaq 0x231c(%rip), %rsi      # 0x505a
movq %rbx, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0x21e0
jmp 0x2db4
leaq 0x10(%rsp), %rdi
leaq 0xc(%rsp), %rdx
movq %r14, %rsi
callq 0x4368
movq 0x18(%rsp), %r14
subq 0x10(%rsp), %r14
shrq $0x2, %r14
leaq 0x22e7(%rip), %rsi      # 0x505a
movq %rbx, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0x21e0
testl %r14d, %r14d
jle 0x2db4
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
leaq 0x22c2(%rip), %r15      # 0x5055
xorl %r12d, %r12d
movq 0x10(%rsp), %rax
movl (%rax,%r12,4), %edx
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x21e0
incq %r12
cmpq %r12, %r14
jne 0x2d96
movl $0xa, %edi
movq %rbx, %rsi
callq 0x21a0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2dd0
callq 0x2150
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2de3
jmp 0x2de3
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2df5
callq 0x2150
movq %rbx, %rdi
callq 0x2260
// File: /workspace/github_cpp_makefile_star2_O3/yuansliu[P]HiRGC/hirgc.cpp
// Function: preProcessRef()
void preProcessRef() { // construction of hash table
	for (int i = 0; i < max_arr_num; i++) {//initial entries
		point[i] = -1;
	}

	// memset(point, -1, sizeof(int)*max_arr_num);

	uint64_t value = 0;
	for (int k = sub_str_num - 1; k >= 0; k--) {
		value <<= 2;
		value += ref_seq_code[k];
	}
	int id = value&(uint64_t)(max_arr_num-1);
	loc[0] = point[id];
	point[id] = 0;

	int step_len = ref_seq_len - sub_str_num + 1;
	int shift_bit_num = (sub_str_num*2-2);
	int one_sub_str = sub_str_num - 1;

	for (int i = 1; i < step_len; i++) {
		value >>= 2;
		value += ((uint64_t)ref_seq_code[i + one_sub_str]<<shift_bit_num);
		
		id = value&(uint64_t)(max_arr_num-1);
		loc[i] = point[id];
		point[id] = i;
	}	
}

// Assembly:
pushq %rbx
movq 0x503c(%rip), %rbx      # 0x81d8
movabsq $0x100000000, %rdx      # imm = 0x100000000
movq %rbx, %rdi
movl $0xff, %esi
callq 0x20d0
movl $0x13, %edx
xorl %ecx, %ecx
movq 0x4fe7(%rip), %rax      # 0x81a8
movslq (%rax,%rdx,4), %rsi
leaq (%rsi,%rcx,4), %rcx
addq $-0x1, %rdx
jb 0x31c1
leal (,%rcx,4), %esi
movl (%rbx,%rsi), %edi
movq 0x4ff0(%rip), %rdx      # 0x81d0
movl %edi, (%rdx)
movl $0x0, (%rbx,%rsi)
movl 0x4fcd(%rip), %esi      # 0x81bc
cmpl $0x15, %esi
jl 0x3226
addl $-0x13, %esi
decq %rsi
xorl %edi, %edi
shrq $0x2, %rcx
movl 0x50(%rax,%rdi,4), %r8d
shlq $0x26, %r8
addq %rcx, %r8
shll $0x2, %ecx
movl (%rbx,%rcx), %r9d
movl %r9d, 0x4(%rdx,%rdi,4)
incq %rdi
movl %edi, (%rbx,%rcx)
movq %r8, %rcx
cmpq %rdi, %rsi
jne 0x31fc
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/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, 0x4ca1(%rip)      # 0x8178
movl $0x800000, %edi         # imm = 0x800000
callq 0x2030
movq %rax, 0x4c98(%rip)      # 0x8180
movl $0x2000000, %edi        # imm = 0x2000000
callq 0x2030
movq %rax, 0x4c9f(%rip)      # 0x8198
movl $0x800000, %edi         # imm = 0x800000
callq 0x2030
movq %rax, 0x4c7e(%rip)      # 0x8188
movl $0x800000, %edi         # imm = 0x800000
callq 0x2030
movq %rax, 0x4c75(%rip)      # 0x8190
movl $0x40000000, %edi       # imm = 0x40000000
callq 0x2030
movq %rax, 0x4c74(%rip)      # 0x81a0
movl $0x40000000, %edi       # imm = 0x40000000
callq 0x2030
movq %rax, 0x4c6b(%rip)      # 0x81a8
movl $0x40000000, %edi       # imm = 0x40000000
callq 0x2030
movq %rax, 0x4c82(%rip)      # 0x81d0
movabsq $0x100000000, %rdi      # imm = 0x100000000
callq 0x2030
movq %rax, 0x4c74(%rip)      # 0x81d8
movl $0x100000, %edi         # imm = 0x100000
callq 0x2030
movq %rax, 0x4c6b(%rip)      # 0x81e0
leaq 0x1b0b(%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 0x3194
movq %rbx, %rdi
callq 0x291d
movq %r15, %rdi
callq 0x3228
leaq 0x1ade(%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 0x1ad4(%rip), %rsi      # 0x50ab
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2060
movq %rbx, %rdi
callq 0x2130
callq 0x41e6
addq $0x140, %rsp            # imm = 0x140
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1476(%rip), %rsi      # 0x5050
callq 0x2190
testq %rax, %rax
je 0x3c93
movq %rax, %r15
movq %rbx, 0x8(%rsp)
leaq 0x14b7(%rip), %rsi      # 0x50ae
leaq 0x30(%rsp), %rdx
movq %rax, %rdi
xorl %eax, %eax
callq 0x2280
cmpl $-0x1, %eax
je 0x3c70
leaq 0x20(%rsp), %rbx
leaq 0x30(%rsp), %r12
leaq 0x10(%rsp), %r13
leaq 0x148d(%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 0x449c
movq %r14, %rdi
movq %r13, %rsi
callq 0x46fa
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3c5b
callq 0x2150
movq %r15, %rdi
movq %rbp, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x2280
cmpl $-0x1, %eax
jne 0x3c21
movq %r15, %rdi
callq 0x2160
movq 0x8(%r14), %rax
cmpq (%r14), %rax
setne %bpl
jne 0x3ca6
leaq 0x14c8(%rip), %rdi      # 0x5154
movq 0x8(%rsp), %rsi
jmp 0x3c9f
leaq 0x14ab(%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 0x3ccc
callq 0x2150
movq %r14, %rdi
callq 0x2260
// File: /workspace/github_cpp_makefile_star2_O3/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 0x3f8a(%rip), %rdi      # 0x8178
testq %rdi, %rdi
je 0x41f8
callq 0x21b0
movq 0x3f81(%rip), %rdi      # 0x8180
testq %rdi, %rdi
je 0x4209
callq 0x21b0
movq 0x3f88(%rip), %rdi      # 0x8198
testq %rdi, %rdi
je 0x421a
callq 0x21b0
movq 0x3f67(%rip), %rdi      # 0x8188
testq %rdi, %rdi
je 0x422b
callq 0x21b0
movq 0x3f5e(%rip), %rdi      # 0x8190
testq %rdi, %rdi
je 0x423c
callq 0x21b0
movq 0x3f5d(%rip), %rdi      # 0x81a0
testq %rdi, %rdi
je 0x424d
callq 0x21b0
movq 0x3f54(%rip), %rdi      # 0x81a8
testq %rdi, %rdi
je 0x425e
callq 0x21b0
movq 0x3f6b(%rip), %rdi      # 0x81d0
testq %rdi, %rdi
je 0x426f
callq 0x21b0
movq 0x3f62(%rip), %rdi      # 0x81d8
testq %rdi, %rdi
je 0x4280
callq 0x21b0
movq 0x3f59(%rip), %rdi      # 0x81e0
testq %rdi, %rdi
je 0x4292
popq %rax
jmp 0x21b0
popq %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x418e
leaq 0x29b7(%rip), %rsi      # 0x508d
movq %rax, %rdi
xorl %edx, %edx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x418e
movq %rax, %rdi
callq 0x4418
leaq 0x60(%rsp), %rdi
movq %rbx, %rsi
callq 0x3cfe
leaq 0x60(%rsp), %rdi
leaq 0x4(%rsp), %rsi
xorl %edx, %edx
callq 0x373c
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
xorl %edx, %edx
callq 0x36bc
leaq 0x10(%rsp), %rsi
movq %rax, %rdi
xorl %edx, %edx
callq 0x316c
leaq 0x2(%rsp), %rsi
movq %rax, %rdi
xorl %edx, %edx
callq 0x37fa
leaq 0x30(%rsp), %rsi
movq %rax, %rdi
callq 0x368c
leaq 0x5ac4(%rip), %rdi      # 0x8210
leaq 0x293a(%rip), %rsi      # 0x508d
leaq 0x28de(%rip), %rcx      # 0x5038
xorl %edx, %edx
xorl %eax, %eax
callq 0x418e
movl 0x4(%rsp), %ecx
leaq 0x2922(%rip), %rsi      # 0x5090
movq %rax, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0x418e
movsd 0x8(%rsp), %xmm0
leaq 0x290c(%rip), %rsi      # 0x5093
movq %rax, %rdi
xorl %edx, %edx
movb $0x1, %al
callq 0x418e
movq 0x10(%rsp), %rcx
leaq 0x28ee(%rip), %rsi      # 0x508d
movq %rax, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0x418e
movswl 0x2(%rsp), %ecx
leaq 0x28d9(%rip), %rsi      # 0x5090
movq %rax, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0x418e
movq %rax, %rdi
callq 0x4418
leaq 0x5a3e(%rip), %rdi      # 0x8210
leaq 0x28b4(%rip), %rsi      # 0x508d
leaq 0x285f(%rip), %rcx      # 0x503f
xorl %edx, %edx
xorl %eax, %eax
callq 0x418e
movq 0x38(%rsp), %rcx
leaq 0x2898(%rip), %rsi      # 0x508d
movq %rax, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0x418e
movq %rax, %rdi
callq 0x4418
leaq 0x60(%rsp), %rdi
callq 0x2a98
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 0x2a98
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_O3/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), %edi
movl %edi, 0x1c(%rbx)
testl %edi, %edi
je 0x2a30
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
jmp 0x2a32
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2b5b
cmpq $0x0, 0x8(%rbx)
je 0x2b5b
movq (%rbx), %rax
movq %rbx, %rdi
callq *(%rax)
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_O3/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 0x31d0
movq %rdx, %rcx
movq %rsi, %r14
leaq 0x14(%rbx), %r9
leaq 0x1f91(%rip), %rsi      # 0x5125
leaq 0x1f91(%rip), %rdx      # 0x512c
movq %rsp, %r8
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2bde
cmpl $0x0, 0x1c(%rbx)
jne 0x31d0
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_O3/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 0x3598
movq %rax, %rdi
callq 0x2090
addl %eax, 0x18(%rbx)
jmp 0x35e5
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1b35(%rip), %rsi      # 0x50dd
leaq 0x1b31(%rip), %rdx      # 0x50e0
movq %rsp, %r14
movq %r14, %rdi
callq 0x3e72
leaq 0x20(%rbx), %rdi
movq %r14, %rsi
callq 0x20a0
movl $0xffffffff, 0x1c(%rbx) # imm = 0xFFFFFFFF
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x35e3
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 0x3608
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2120
movq %rbx, %rdi
callq 0x2200
// File: /workspace/github_cpp_makefile_star2_O3/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 0x366a
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 0x3646
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_O3/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 0x19af(%rip), %rsi      # 0x5100
leaq 0x19a1(%rip), %rdx      # 0x50f9
movq %rsp, %r8
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x2bde
cmpl $0x0, 0x1c(%rbx)
jne 0x378f
movq (%rsp), %rdx
movslq %edx, %rax
cmpq %rdx, %rax
je 0x3789
leaq 0x1990(%rip), %rsi      # 0x510d
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x31e2
jmp 0x378f
movswl %dx, %eax
movl %eax, (%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1950(%rip), %rsi      # 0x50ff
leaq 0x1950(%rip), %rdx      # 0x5106
movq %rsp, %r8
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x2bde
cmpl $0x0, 0x1c(%rbx)
jne 0x37ee
movq (%rsp), %rdx
movq %rdx, %rax
shrq $0x20, %rax
je 0x37eb
leaq 0x1930(%rip), %rsi      # 0x510c
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x31e2
jmp 0x37ee
movl %edx, (%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x18f1(%rip), %rsi      # 0x5100
leaq 0x18e3(%rip), %rdx      # 0x50f9
movq %rsp, %r8
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x2bde
cmpl $0x0, 0x1c(%rbx)
jne 0x384c
movq (%rsp), %rdx
movswq %dx, %rax
cmpq %rdx, %rax
je 0x3848
leaq 0x18d8(%rip), %rsi      # 0x5114
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x31e2
jmp 0x384c
movw %dx, (%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1892(%rip), %rsi      # 0x50ff
leaq 0x1892(%rip), %rdx      # 0x5106
movq %rsp, %r8
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x2bde
cmpl $0x0, 0x1c(%rbx)
jne 0x38ad
movq (%rsp), %rdx
cmpq $0x10000, %rdx          # imm = 0x10000
jb 0x38a9
leaq 0x1879(%rip), %rsi      # 0x5113
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x31e2
jmp 0x38ad
movw %dx, (%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1812(%rip), %rsi      # 0x50ff
leaq 0x1812(%rip), %rdx      # 0x5106
movq %rsp, %r8
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x2bde
cmpl $0x0, 0x1c(%rbx)
jne 0x392c
movq (%rsp), %rdx
cmpq $0x100, %rdx            # imm = 0x100
jb 0x3929
leaq 0x1805(%rip), %rsi      # 0x511f
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x31e2
jmp 0x392c
movb %dl, (%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x397d
movq %rbx, %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r14
popq %rbp
retq
movl %esi, %ebp
testl %esi, %esi
jle 0x396e
decl %ebp
movq %rsp, %r14
movq %rbx, %rdi
movq %r14, %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x3574
subl $0x1, %ebp
setb %cl
testl %eax, %eax
jle 0x396e
testb %cl, %cl
je 0x3988
jmp 0x396e
// File: /workspace/github_cpp_makefile_star2_O3/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 0x3a22
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 0x3574
cmpl $0x2, %eax
jl 0x3a22
movq %rsp, %r15
leal -0x1(%rax), %edx
cmpb $0xa, (%rsp,%rdx)
je 0x3a13
movl %eax, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2050
movq %rbx, %rdi
movq %r15, %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x3574
cmpl $0x1, %eax
jg 0x39e6
jmp 0x3a22
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_O3/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 0x3574
movslq 0x18(%rbx), %rax
movl $0x1, %r12d
cmpq %rax, %r14
jle 0x3aa6
movq %rsp, %r15
movl %eax, %ebp
movq %rbx, %rdi
movq %r15, %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x3574
movslq 0x18(%rbx), %rax
incq %r12
cmpq %rax, %r14
jg 0x3a86
jmp 0x3aa6
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_O3/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 0x3d94
movslq 0x18(%rdi), %rsi
addq 0x40(%rdi), %rsi
decl %edx
xorl %ecx, %ecx
movzbl (%rsi,%rcx), %edi
testl %edi, %edi
je 0x3d91
cmpl $0xa, %edi
je 0x3d91
movb %dil, (%rax,%rcx)
incq %rcx
cmpl %ecx, %edx
jne 0x3d79
addq %rax, %rcx
movb $0x0, (%rcx)
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x4168
movb $0x0, 0x11(%rbx)
jmp 0x418c
movb 0x10(%rbx), %al
cmpb 0x14(%rbx), %al
je 0x4173
movb %al, 0x14(%rbx)
testb %al, %al
je 0x4187
movq (%rbx), %rcx
movsbl %al, %esi
movq %rbx, %rdi
callq *(%rcx)
movb 0x10(%rbx), %al
jmp 0x4189
xorl %eax, %eax
movb %al, 0x14(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x41f0
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 0x424c
movq %rdx, %r15
cmpb $0x0, 0x1(%rdx)
jne 0x424f
movb 0x1(%r14), %cl
movb (%r15), %al
cmpb $0x73, %cl
jne 0x421b
cmpb $0x71, %al
jne 0x42a1
leaq 0x1050(%rip), %r15      # 0x5269
jmp 0x424f
movzbl %al, %edx
orl $0x20, %edx
cmpl $0x78, %edx
jne 0x424c
testb %cl, %cl
je 0x42b0
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 0x4234
jmp 0x42b6
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x4158
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 0xfc4(%rip), %rax       # 0x526e
cmoveq %rax, %r15
jmp 0x424f
movq %rsp, %rcx
movq %r14, %rsi
cmpb $0x63, (%rsi)
jne 0x42c4
movw $0x6868, (%rcx)         # imm = 0x6868
addq $0x2, %rcx
movb %al, (%rcx)
movb $0x0, 0x1(%rcx)
movq %rsp, %r15
jmp 0x424f
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x43e9
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_O3/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 0x45ec
movq %rax, 0x18(%rbx)
jmp 0x45f4
movq $0x0, 0x8(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/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
leaq 0x20(%rsp), %rbx
vxorps %xmm0, %xmm0, %xmm0
movl $0x5, %ebp
leaq 0x2af9(%rip), %r12      # 0x3d88
leaq 0x1c(%rsp), %r13
leaq 0x8(%rsp), %r14
leaq 0x10(%rsp), %r15
vmovaps %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq $0x0, 0x8(%rsp)
movl $0x10, %edi
callq 0x10e0
movq %r12, (%rax)
movq %r13, 0x8(%rax)
movq %rax, 0x10(%rsp)
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x10b0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x12e6
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13fe
cmpq $0x0, 0x8(%rsp)
jne 0x13ab
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 0x13ca
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1396
jmp 0x1396
jmp 0x1396
movq 0x10(%rsp), %rdi
movq %rax, %rbx
testq %rdi, %rdi
je 0x1399
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x1399
cmpq $0x0, 0x8(%rsp)
jne 0x13ab
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x13ca
movq %rbx, %rdi
callq 0x1120
callq 0x1040
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2b40
movq 0x8(%rbx), %rsi
testq %rsi, %rsi
je 0x1eb8
xorl %eax, %eax
cmpq $0x0, 0x10(%rbx)
setne %al
leaq -0x100(%rbp), %rdi
movl %eax, (%rdi)
callq 0x130c
movq 0x4156(%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 0x1f99
movq 0x4119(%rip), %r14      # 0x5fd8
leaq 0x14b1(%rip), %rsi      # 0x3377
movl $0x7, %edx
movq %r14, %rdi
callq 0x1100
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x1ef7
movq %rbx, %rdi
callq 0x1040
movq 0x40ee(%rip), %rdi      # 0x5fd8
movq %rbx, %rsi
movq %rax, %rdx
callq 0x1100
jmp 0x1f0f
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 0x1f2d
cmpl $0x2, %eax
jne 0x1f3b
movl $0xd, %edx
leaq 0x146d(%rip), %rsi      # 0x3398
jmp 0x1f47
movl $0xf, %edx
leaq 0x144f(%rip), %rsi      # 0x3388
jmp 0x1f47
movl $0x8, %edx
leaq 0x1438(%rip), %rsi      # 0x337f
movq 0x408a(%rip), %rdi      # 0x5fd8
callq 0x1100
movq 0x407e(%rip), %rbx      # 0x5fd8
leaq 0x1445(%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 0x404c(%rip), %rdi      # 0x5fd8
callq 0x1030
movq %rax, %rdi
callq 0x1080
movq -0xc8(%rbp), %rdi
cmpq %r12, %rdi
je 0x1fb4
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x10e0
movq -0xe8(%rbp), %rdi
cmpq %r15, %rdi
je 0x1fcf
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 0x1fe3
movq %rax, %rbx
leaq -0x100(%rbp), %rdi
callq 0x20b0
movq %rbx, %rdi
callq 0x1150
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2039
cmpl $0x2, %edx
je 0x2029
cmpl $0x1, %edx
jne 0x2049
leaq 0x138f(%rip), %rsi      # 0x33af
leaq 0x139d(%rip), %rdx      # 0x33c4
jmp 0x2057
leaq 0x1395(%rip), %rsi      # 0x33c5
leaq 0x13a3(%rip), %rdx      # 0x33da
jmp 0x2057
leaq 0x139b(%rip), %rsi      # 0x33db
leaq 0x13b9(%rip), %rdx      # 0x3400
jmp 0x2057
leaq 0x13b1(%rip), %rsi      # 0x3401
leaq 0x13af(%rip), %rdx      # 0x3406
movq %rbx, %rdi
callq 0x20f6
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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
movl %esi, %r12d
movq %rdi, %rbx
cmpl $0x0, (%rdi)
je 0x27a1
movq 0x391a(%rip), %r13      # 0x5fd8
leaq 0xe9a(%rip), %rsi       # 0x355f
movl $0x18, %edx
movq %r13, %rdi
callq 0x1100
movl %r12d, %esi
movq %r13, %rdi
callq 0x1070
movq %rbx, -0x30(%rbp)
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 0xe66(%rip), %rsi       # 0x3578
movl $0x1d, %edx
movq %r13, %rdi
callq 0x1100
movq %r13, %rdi
movl %r15d, %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
leaq 0xe3b(%rip), %rsi       # 0x3596
movl $0x1e, %edx
movq %r13, %rdi
callq 0x1100
movq %r13, %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
movq -0x30(%rbp), %rbx
callq 0x1030
movq %rax, %rdi
callq 0x1080
movl %r12d, -0x9f8(%rbp)
movl $0x1, %eax
movl %r12d, %ecx
shrl $0x1e, %ecx
xorl %r12d, %ecx
imull $0x6c078965, %ecx, %ecx # imm = 0x6C078965
leal (%rax,%rcx), %r12d
movl %r12d, -0x9f8(%rbp,%rax,4)
incq %rax
cmpq $0x270, %rax            # imm = 0x270
jne 0x27ad
leaq -0x9f8(%rbp), %rdi
movq $0x270, 0x9c0(%rdi) # imm = 0x270
callq 0x28cc
cmpl %r14d, %r15d
jg 0x286e
leaq -0x9f8(%rbp), %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x2918
movl %eax, %r14d
cmpl $0x0, (%rbx)
je 0x2859
movq 0x37c8(%rip), %rbx      # 0x5fd8
leaq 0xd9e(%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 0xd5b(%rip), %rdi       # 0x35d0
leaq 0xd67(%rip), %rsi       # 0x35e3
leaq 0xd97(%rip), %rcx       # 0x361a
movl $0x151, %edx            # imm = 0x151
callq 0x1050
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1357(%rip), %rcx      # 0x3eb0
xorl %r14d, %r14d
movl $0x3, %r8d
xorl %esi, %esi
callq 0x1120
leaq 0x38(%rbx), %rdi
movq 0x40(%rbx), %rdx
leaq 0x133c(%rip), %rcx      # 0x3eb4
movl $0x7, %r8d
xorl %esi, %esi
callq 0x1120
movl $0x40, 0x58(%rbx)
movaps 0x12ed(%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 0x12b1(%rip), %xmm0     # 0x3e90
movups %xmm0, 0x88(%rbx)
movaps 0x12b3(%rip), %xmm0     # 0x3ea0
movups %xmm0, 0x98(%rbx)
movl %r14d, 0xa8(%rbx)
movl $0x1388, 0xd8(%rbx)     # imm = 0x1388
popq %rbx
popq %r14
popq %rbp
retq