LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/fgheng[P]keysound/src/utils.cc
// Function: del_event_id(int)
void del_event_id(int event_id) {
    if (event_id > FILE_NUMS) {
        std::cout << "delete error file is lager" << std::endl;
        return;
    }
    mtx.lock();
    key_detects_bool[event_id] = false;
    mtx.unlock();
}

// Assembly:
pushq %rbx
cmpl $0x401, %edi            # imm = 0x401
jl 0xd033
movq 0x5fc9(%rip), %rbx      # 0x12fc0
leaq 0x1c03(%rip), %rsi      # 0xec01
movl $0x1a, %edx
movq %rbx, %rdi
callq 0x33d0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3340
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
popq %rbx
jmp 0x3230
movl %edi, %ebx
leaq 0x90c4(%rip), %rdi      # 0x16100
callq 0x34e0
testl %eax, %eax
jne 0xd060
movslq %ebx, %rax
leaq 0x8cb1(%rip), %rcx      # 0x15d00
movb $0x0, (%rax,%rcx)
leaq 0x90a6(%rip), %rdi      # 0x16100
popq %rbx
jmp 0x32a0
movl %eax, %edi
callq 0x3210
// File: /workspace/github_cpp_makefile_star2_O1/fgheng[P]keysound/src/utils.cc
// Function: event_id_exists(int)
bool event_id_exists(int event_id) {
    if (event_id > FILE_NUMS) {
        std::cout << "file is lager" << std::endl;
        return false;
    }
    return key_detects_bool[event_id];
}

// Assembly:
cmpl $0x401, %edi            # imm = 0x401
jl 0xd0b6
pushq %rbx
movq 0x5f49(%rip), %rbx      # 0x12fc0
leaq 0x1b75(%rip), %rsi      # 0xebf3
movl $0xd, %edx
movq %rbx, %rdi
callq 0x33d0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3340
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3230
xorl %eax, %eax
popq %rbx
retq
movslq %edi, %rax
leaq 0x8c40(%rip), %rcx      # 0x15d00
cmpb $0x0, (%rax,%rcx)
setne %al
retq
// File: /workspace/github_cpp_makefile_star2_O1/fgheng[P]keysound/src/utils.cc
// Function: clear_all_key_detect_threads()
void clear_all_key_detect_threads() {
    mtx.lock();
    // std::memset(key_detects_bool, 0, FILE_NUMS);
    // key_detects.erase(key_detects.begin(), key_detects.end());
    key_detects.clear();
    mtx.unlock();
}

// Assembly:
pushq %rax
leaq 0x9026(%rip), %rdi      # 0x16100
callq 0x34e0
testl %eax, %eax
jne 0xd0fc
leaq 0x8bde(%rip), %rdi      # 0x15cc8
callq 0xd6ec
leaq 0x900a(%rip), %rdi      # 0x16100
popq %rax
jmp 0x32a0
movl %eax, %edi
callq 0x3210
// File: /workspace/github_cpp_makefile_star2_O1/aydarbiktimirov[P]data-structures/src/include/persistent-data-structure.cpp
// Function: CAbstractPersistentDataStructure::SetVersion(unsigned long)
CAbstractPersistentDataStructure &CAbstractPersistentDataStructure::SetVersion(size_t version)
{
	if (version >= version_count)
	{
		throw std::out_of_range("version out of bounds");
	}

	current_version = version;
	return *this;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpq %rsi, 0x8(%rdi)
jbe 0x2351
movq %rsi, 0x10(%rdi)
movq %rdi, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0x10, %edi
callq 0x2070
movq %rax, %rbx
leaq 0x1c9f(%rip), %rsi      # 0x4004
movq %rax, %rdi
callq 0x2040
movq 0x3c5c(%rip), %rsi      # 0x5fd0
movq 0x3c4d(%rip), %rdx      # 0x5fc8
movq %rbx, %rdi
callq 0x2180
movq %rax, %r14
movq %rbx, %rdi
callq 0x20e0
movq %r14, %rdi
callq 0x21a0
// File: /workspace/github_cpp_makefile_star2_O1/aydarbiktimirov[P]data-structures/src/include/persistent-segment-tree.h
// Function: void CPersistentSegmentTree<int, std::plus<int>>::BuildTree<__gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int>>>>(unsigned long, unsigned long, __gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int>>>&, __gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int>>>)
void CPersistentSegmentTree<T, Operation>::BuildTree(size_t current, size_t current_depth_count, InputIterator &from, InputIterator to)
{ // построение поддерева, аналогично построению в эфемерном дереве отрезков
	values.resize(std::max(values.size(), current + 1));

	if (current_depth_count >= element_count)
	{
		if (values_first_index == (size_t)-1)
		{
			values_first_index = current;
		}

		if (from != to)
		{
			values[current] = CNode(*(from++));
		} else {
			values[current] = CNode(default_value);
		}
	} else {
		size_t left = 2 * current + 1;
		size_t right = 2 * current + 2;

		BuildTree(left, current_depth_count * 2, from, to);
		BuildTree(right, current_depth_count * 2, from, to);

		values[current] = CNode(Operation()(values[left].value, values[right].value), left, right);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r12
movq %rcx, %r15
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x30(%rdi), %rbp
movq 0x38(%rdi), %rax
subq 0x30(%rdi), %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rsi
leaq 0x1(%rbx), %rax
cmpq %rax, %rsi
cmovbeq %rax, %rsi
movq %rbp, %rdi
callq 0x2f52
cmpq %r13, 0x20(%r14)
jbe 0x2ee9
leaq 0x1(,%rbx,2), %rbp
movq %r12, %r8
movq %r12, (%rsp)
leaq 0x2(,%rbx,2), %r12
addq %r13, %r13
movq %r14, %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq %r15, %rcx
callq 0x2e2c
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r15, %rcx
movq (%rsp), %r8
callq 0x2e2c
movq 0x30(%r14), %rax
leaq (,%rbp,2), %rcx
addq %rbp, %rcx
leaq (%r12,%r12,2), %rdx
movl (%rax,%rdx,8), %edx
addl (%rax,%rcx,8), %edx
leaq (%rbx,%rbx,2), %rcx
movl %edx, (%rax,%rcx,8)
movq %rbp, 0x8(%rax,%rcx,8)
movq %r12, 0x10(%rax,%rcx,8)
jmp 0x2f24
cmpq $-0x1, 0x28(%r14)
jne 0x2ef4
movq %rbx, 0x28(%r14)
movq (%r15), %rax
cmpq %r12, %rax
je 0x2f0b
leaq 0x4(%rax), %rcx
movq %rcx, (%r15)
movl (%rax), %eax
movq (%rbp), %rcx
jmp 0x2f13
movl 0x60(%r14), %eax
movq 0x30(%r14), %rcx
leaq (%rbx,%rbx,2), %rdx
movl %eax, (%rcx,%rdx,8)
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, 0x8(%rcx,%rdx,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/aydarbiktimirov[P]data-structures/src/include/persistent-segment-tree.h
// Function: CPersistentSegmentTree<int, std::plus<int>>::operator()(unsigned long, unsigned long, unsigned long) const
T CPersistentSegmentTree<T, Operation>::operator()(size_t left, size_t right, size_t version) const
{
	if (version >= this->GetVersionCount())
	{
		throw std::out_of_range("version doesn't exist");
	}
	if (left > right)
	{
		return operator()(right, left);
	}
	if (right >= element_count)
	{
		throw std::out_of_range("index out of bounds");
	}

	return Calculate(left, right, roots[version], 0, values_first_index);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r12
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %rax
callq *0x18(%rax)
cmpq %r12, %rax
jbe 0x31af
cmpq %rbx, %r14
jbe 0x3181
movq (%r15), %rax
movq 0x30(%rax), %rax
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmpq *%rax
cmpq %rbx, 0x20(%r15)
jbe 0x31cd
movq 0x28(%r15), %r9
movq 0x48(%r15), %rax
movq (%rax,%r12,8), %rcx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
xorl %r8d, %r8d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x3214
movl $0x10, %edi
callq 0x2070
movq %rax, %rbx
leaq 0x1033(%rip), %rsi      # 0x41f6
movq %rax, %rdi
callq 0x2040
jmp 0x31e9
movl $0x10, %edi
callq 0x2070
movq %rax, %rbx
leaq 0x102b(%rip), %rsi      # 0x420c
movq %rax, %rdi
callq 0x2040
movq 0x2de0(%rip), %rsi      # 0x5fd0
movq 0x2dd1(%rip), %rdx      # 0x5fc8
movq %rbx, %rdi
callq 0x2180
jmp 0x3201
movq %rax, %r14
movq %rbx, %rdi
callq 0x20e0
movq %r14, %rdi
callq 0x21a0
// File: /workspace/github_cpp_makefile_star2_O1/aydarbiktimirov[P]data-structures/src/include/persistent-segment-tree.h
// Function: CPersistentSegmentTree<int, std::plus<int>>::Calculate(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long) const
T CPersistentSegmentTree<T, Operation>::Calculate(size_t from, size_t to, size_t current, size_t left_bound, size_t right_bound) const
{ // сумма элементов между left_bound и right_bound хранится в элемнете current
	if (from > to)
	{
		return default_value;
	}
	if (from == left_bound && to == right_bound)
	{
		return values[current].value;
	}
	size_t middle_bound = (left_bound + right_bound) / 2;
	return Operation()(Calculate(from, std::min(to, middle_bound), values[current].left, left_bound, middle_bound),
		Calculate(std::max(middle_bound + 1, from), to, values[current].right, middle_bound + 1, right_bound));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r15
xorl %ebx, %ebx
movq %rdx, %rax
movq %r9, 0x8(%rsp)
xorq %r9, %rax
movq %rax, 0x10(%rsp)
cmpq %r12, %r13
ja 0x329e
movq %r13, %rax
xorq %r8, %rax
orq 0x10(%rsp), %rax
je 0x32a4
movq 0x8(%rsp), %rax
leaq (%rax,%r8), %rbp
shrq %rbp
cmpq %r12, %rbp
movq %r12, %rdx
cmovbq %rbp, %rdx
movq 0x30(%r15), %rax
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %r14
movq 0x8(%rax,%r14), %rcx
movq %r15, %rdi
movq %r13, %rsi
movq %rbp, %r9
callq 0x3214
incq %rbp
cmpq %r13, %rbp
cmovaq %rbp, %r13
movq 0x30(%r15), %rcx
movq 0x10(%rcx,%r14), %rcx
addl %eax, %ebx
movq %rbp, %r8
jmp 0x323d
movl 0x60(%r15), %eax
jmp 0x32af
movq 0x30(%r15), %rax
leaq (%rcx,%rcx,2), %rcx
movl (%rax,%rcx,8), %eax
addl %eax, %ebx
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/apps/sflprocess/sflprocess.cpp
// Function: FindClosestLeafNode(gaps::R3SurfelTree*, gaps::R3Point const&, double)
R3SurfelNode *
FindClosestLeafNode(R3SurfelTree *tree, const R3Point& query_position, RNLength max_distance)
{
  // Find closest node
  R3SurfelNode *closest_node = NULL;
  RNLength closest_distance = max_distance;
  RNVolume closest_volume = FLT_MAX;
  for (int i = 0; i < tree->NNodes(); i++) {
    R3SurfelNode *node = tree->Node(i);
    if (node->NParts() > 0) continue;
    RNLength distance = R3Distance(node->BBox(), query_position);
    if (distance <= closest_distance) {
      RNVolume volume = node->BBox().Volume();
      if ((distance < closest_distance) || (volume < closest_volume)) {
        closest_distance = distance;
        closest_volume = volume;
        closest_node = node;
      }
    }
  }

  // Return closest node
  return closest_node;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
cmpl $0x0, 0x24(%rdi)
jle 0x18108
movapd %xmm0, %xmm1
movq %rsi, %rbx
movq %rdi, %r14
movsd 0xf0fb3(%rip), %xmm0    # 0x109008
xorl %r13d, %r13d
xorl %r15d, %r15d
movq 0x18(%r14), %rax
movq (%rax,%r13,8), %r12
cmpl $0x0, 0x3c(%r12)
jg 0x180f6
movapd %xmm0, (%rsp)
movq %r12, %rdi
movapd %xmm1, 0x10(%rsp)
callq 0x38fac
movq %rbx, %rdi
movq %rax, %rsi
callq 0x68657
movapd 0x10(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jae 0x180a0
movapd (%rsp), %xmm0
jmp 0x180f6
movq %r12, %rdi
movapd %xmm0, 0x20(%rsp)
callq 0x38fac
movq (%rax), %rcx
movq %rax, %rdi
callq *0x60(%rcx)
movapd 0x20(%rsp), %xmm5
movapd 0x10(%rsp), %xmm3
movapd %xmm5, %xmm1
cmpltpd %xmm3, %xmm1
movapd %xmm0, %xmm2
movapd (%rsp), %xmm4
cmpltpd %xmm4, %xmm2
orpd %xmm1, %xmm2
movd %xmm2, %eax
testb $0x1, %al
jne 0x180ee
movapd %xmm4, %xmm0
movapd %xmm3, %xmm5
cmovneq %r12, %r15
movapd %xmm5, %xmm1
incq %r13
movslq 0x24(%r14), %rax
cmpq %rax, %r13
jl 0x1805b
jmp 0x1810b
xorl %r15d, %r15d
movq %r15, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/apps/sflprocess/sflprocess.cpp
// Function: Transform(gaps::R3SurfelScene*, gaps::R3Affine const&)
static int
Transform(R3SurfelScene *scene, const R3Affine& transformation)
{
  // Start statistics
  RNTime start_time;
  start_time.Read();

  // Transform scene
  // (actually change xyz of surfels, not just update scene transformation)
  scene->Transform(transformation, TRUE);

  // Print statistics
  if (print_verbose) {
    const R4Matrix& m = transformation.Matrix();
    printf("Tranformed scene ...\n");
    printf("  Time = %.2f seconds\n", start_time.Elapsed());
    printf("  Matrix = %12.6f %12.6f %12.6f %12.6f\n", m[0][0], m[0][1], m[0][2], m[0][3]); 
    printf("           %12.6f %12.6f %12.6f %12.6f\n", m[1][0], m[1][1], m[1][2], m[1][3]); 
    printf("           %12.6f %12.6f %12.6f %12.6f\n", m[2][0], m[2][1], m[2][2], m[2][3]); 
    printf("           %12.6f %12.6f %12.6f %12.6f\n", m[3][0], m[3][1], m[3][2], m[3][3]); 
    fflush(stdout);
  }

  // Return success
  return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsp, %r15
movq %r15, %rdi
callq 0xc2368
movq %r15, %rdi
xorl %esi, %esi
callq 0x15a20
movq %r14, %rdi
movq %rbx, %rsi
movl $0x1, %edx
callq 0x43318
cmpl $0x0, 0x151e2b(%rip)    # 0x16edcc
je 0x1d05e
leaq 0xeced2(%rip), %rdi     # 0x109e80
callq 0x15980
movq %rsp, %rdi
callq 0xc23ca
leaq 0xec5f7(%rip), %rdi     # 0x1095b9
movb $0x1, %al
callq 0x15080
movsd 0x8(%rbx), %xmm0
movsd 0x10(%rbx), %xmm1
movsd 0x18(%rbx), %xmm2
movsd 0x20(%rbx), %xmm3
leaq 0xecb8a(%rip), %rdi     # 0x109b6e
movb $0x4, %al
callq 0x15080
movsd 0x28(%rbx), %xmm0
movsd 0x30(%rbx), %xmm1
movsd 0x38(%rbx), %xmm2
movsd 0x40(%rbx), %xmm3
leaq 0xecb90(%rip), %r14     # 0x109b96
movq %r14, %rdi
movb $0x4, %al
callq 0x15080
movsd 0x48(%rbx), %xmm0
movsd 0x50(%rbx), %xmm1
movsd 0x58(%rbx), %xmm2
movsd 0x60(%rbx), %xmm3
movq %r14, %rdi
movb $0x4, %al
callq 0x15080
movsd 0x68(%rbx), %xmm0
movsd 0x70(%rbx), %xmm1
movsd 0x78(%rbx), %xmm2
movsd 0x80(%rbx), %xmm3
movq %r14, %rdi
movb $0x4, %al
callq 0x15080
movq 0x150f0a(%rip), %rax    # 0x16df60
movq (%rax), %rdi
callq 0x15760
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/apps/sflprocess/sflprocess.cpp
// Function: CreateMultiresolutionNodes(gaps::R3SurfelScene*, char const*, double, double, double)
static int
CreateMultiresolutionNodes(R3SurfelScene *scene, const char *node_name,
  RNScalar min_complexity, RNScalar min_resolution, RNScalar min_multiresolution_factor)
{
  // Start statistics
  RNTime start_time;
  start_time.Read();

  // Get surfel tree
  R3SurfelTree *tree = scene->Tree();
  if (!tree) {
    RNFail("Scene has no surfel tree\n");
    return 0;
  }    

  // Temporary
  if (strcmp(node_name, "All")) {
    RNFail("-create_multiresolution_nodes only supported for All nodes\n");
    return 0;
  }

  // Create multiresolution nodes
  tree->CreateMultiresolutionNodes(min_complexity, min_resolution, min_multiresolution_factor);

  // Print statistics
  if (print_verbose) {
    printf("Created multiresolution nodes  ...\n");
    printf("  Time = %.2f seconds\n", start_time.Elapsed());
    printf("  # Nodes = %d\n", tree->NNodes());
    fflush(stdout);
  }

  // Return success
  return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movsd %xmm2, 0x10(%rsp)
movsd %xmm1, 0x8(%rsp)
movsd %xmm0, (%rsp)
movq %rsi, %r15
movq %rdi, %r14
leaq 0x18(%rsp), %r12
movq %r12, %rdi
callq 0xc2368
xorl %ebx, %ebx
movq %r12, %rdi
xorl %esi, %esi
callq 0x15a20
movq 0x8(%r14), %r14
testq %r14, %r14
je 0x1eb10
leaq 0xeb002(%rip), %rsi     # 0x109afb
movq %r15, %rdi
callq 0x158c0
testl %eax, %eax
je 0x1eb2c
leaq 0xeb276(%rip), %rdi     # 0x109d82
xorl %ebx, %ebx
jmp 0x1eb17
leaq 0xeafad(%rip), %rdi     # 0x109ac4
xorl %eax, %eax
callq 0xc5782
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %r14, %rdi
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movsd 0x10(%rsp), %xmm2
callq 0x3b062
movl $0x1, %ebx
cmpl $0x0, 0x15027b(%rip)    # 0x16edcc
je 0x1eb1e
leaq 0xeb3d0(%rip), %rdi     # 0x109f2a
callq 0x15980
leaq 0x18(%rsp), %rdi
callq 0xc23ca
leaq 0xeaa49(%rip), %rdi     # 0x1095b9
movb $0x1, %al
callq 0x15080
movl 0x24(%r14), %esi
leaq 0xeab49(%rip), %rdi     # 0x1096cb
xorl %eax, %eax
callq 0x15080
movq 0x14f3d0(%rip), %rax    # 0x16df60
movq (%rax), %rdi
callq 0x15760
jmp 0x1eb1e
// File: /workspace/github_cpp_makefile_star2_O1/atsidaev[P]trx2x/DiskImage.cpp
// Function: CalcCRC32(int, unsigned char)
int32_t CalcCRC32(int32_t CRC, unsigned char Symbol)
{
   int32_t temp;
   CRC ^= -1l ^ Symbol;
   for(int k = 8; k--;) 
      { temp = -(CRC & 1), CRC >>= 1, CRC ^= 0xEDB88320ul & temp; }
   CRC ^= -1l;
   return CRC;
}

// Assembly:
movl %edi, %eax
xorl %esi, %eax
notl %eax
movl $0xfffffff8, %ecx       # imm = 0xFFFFFFF8
movl %eax, %edx
andl $0x1, %eax
negl %eax
sarl %edx
andl $0xedb88320, %eax       # imm = 0xEDB88320
xorl %edx, %eax
incl %ecx
jne 0x1bd3
notl %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/atsidaev[P]trx2x/DiskImage.cpp
// Function: TDiskImage::TDiskImage()
TDiskImage::TDiskImage()
{
   AddBOOT = false;

   for(int t=0; t < 256; t++)
      for(int s=0; s < 256; s++)
      {
         FTrackLength[t][s] = 0;
         FTracksPtr[t][s][0] = NULL;
         FTracksPtr[t][s][1] = NULL;
      }

   DiskPresent = false;
   ReadOnly = true;
   Changed = false;
   FType = DIT_UNK;
   MaxTrack = 81;
   MaxSide = 0x01;
}

// Assembly:
movb $0x0, 0x145009(%rdi)
leaq 0x40000(%rdi), %rax
xorl %ecx, %ecx
xorps %xmm0, %xmm0
movq %rdi, %rdx
xorl %esi, %esi
movl $0x0, (%rdx,%rsi)
movups %xmm0, (%rax,%rsi,4)
addq $0x4, %rsi
cmpq $0x400, %rsi            # imm = 0x400
jne 0x1c02
incq %rcx
addq $0x400, %rdx            # imm = 0x400
addq $0x1000, %rax           # imm = 0x1000
cmpq $0x100, %rcx            # imm = 0x100
jne 0x1c00
movl $0x51000100, 0x145004(%rdi) # imm = 0x51000100
movl $0x0, 0x141000(%rdi)
movb $0x1, 0x145008(%rdi)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/atsidaev[P]trx2x/DiskImage.cpp
// Function: TDiskImage::~TDiskImage()
TDiskImage::~TDiskImage()
{
   FlushImage();
   ReadOnly = true;
   DiskPresent = false;
   Changed = false;
   FType = DIT_UNK;

   for(int t=0; t < 256; t++)
      for(int s=0; s < 256; s++)
      {
         FTrackLength[t][s] = 0;
         if(FTracksPtr[t][s][0]) delete FTracksPtr[t][s][0];
         FTracksPtr[t][s][0] = NULL;
         if(FTracksPtr[t][s][1]) delete FTracksPtr[t][s][1];
         FTracksPtr[t][s][1] = NULL;
      }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x1d02
movb $0x0, 0x145006(%rbx)
movw $0x100, 0x145004(%rbx)  # imm = 0x100
movl $0x0, 0x141000(%rbx)
leaq 0x40008(%rbx), %r14
xorl %r15d, %r15d
xorl %r12d, %r12d
movl $0x0, (%rbx,%r12)
movq -0x8(%r14,%r12,4), %rdi
testq %rdi, %rdi
je 0x1ca3
movl $0x1, %esi
callq 0x1150
movq $0x0, -0x8(%r14,%r12,4)
movq (%r14,%r12,4), %rdi
testq %rdi, %rdi
je 0x1cbf
movl $0x1, %esi
callq 0x1150
movq $0x0, (%r14,%r12,4)
addq $0x4, %r12
cmpq $0x400, %r12            # imm = 0x400
jne 0x1c87
incq %r15
addq $0x400, %rbx            # imm = 0x400
addq $0x1000, %r14           # imm = 0x1000
cmpq $0x100, %r15            # imm = 0x100
jne 0x1c84
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rdi
callq 0x7cbf
// File: /workspace/github_cpp_makefile_star2_O1/atsidaev[P]trx2x/DiskImage.cpp
// Function: TDiskImage::FlushImage()
void TDiskImage::FlushImage()
{
   if(ReadOnly) return;
   if(!Changed) return;
   if(FType==DIT_HOB) return;

   int hfile = open((char*)FFileName, O_CREAT | O_RDWR | O_TRUNC | O_BINARY, 0666);
   if(hfile < 0)
   {
      ShowError(ERR_CANTWRITE);
      return;
   }

   if(FType==DIT_TRD) writeTRD(hfile);
   if(FType==DIT_SCL) writeSCL(hfile);
   if(FType==DIT_FDI) writeFDI(hfile);
   if(FType==DIT_UDI) writeUDI(hfile);
   if(FType==DIT_TD0) writeTD0(hfile);
   if(FType==DIT_FDD) writeFDD(hfile);

   close(hfile);
   Changed = false;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
cmpb $0x0, 0x145005(%rdi)
jne 0x1dd1
movq %rdi, %rbx
cmpb $0x1, 0x145004(%rdi)
jne 0x1dd1
cmpl $0x6, 0x141000(%rbx)
je 0x1dd1
leaq 0x140000(%rbx), %rdi
movl $0x242, %esi            # imm = 0x242
movl $0x1b6, %edx            # imm = 0x1B6
xorl %eax, %eax
callq 0x10d0
testl %eax, %eax
js 0x1dd8
movl %eax, %ebp
cmpl $0x1, 0x141000(%rbx)
jne 0x1d64
movq %rbx, %rdi
movl %ebp, %esi
callq 0x2482
cmpl $0x2, 0x141000(%rbx)
jne 0x1d77
movq %rbx, %rdi
movl %ebp, %esi
callq 0x2784
cmpl $0x3, 0x141000(%rbx)
jne 0x1d8a
movq %rbx, %rdi
movl %ebp, %esi
callq 0x2ee8
cmpl $0x5, 0x141000(%rbx)
jne 0x1d9d
movq %rbx, %rdi
movl %ebp, %esi
callq 0x325c
cmpl $0x4, 0x141000(%rbx)
jne 0x1db0
movq %rbx, %rdi
movl %ebp, %esi
callq 0x3516
cmpl $0x7, 0x141000(%rbx)
jne 0x1dc3
movq %rbx, %rdi
movl %ebp, %esi
callq 0x3828
movl %ebp, %edi
callq 0x1220
movb $0x0, 0x145004(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x6515(%rip), %rsi      # 0x82f4
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x23fa
// File: /workspace/github_cpp_makefile_star2_O1/atsidaev[P]trx2x/DiskImage.cpp
// Function: TDiskImage::MakeVGCRC(unsigned char*, unsigned long)
unsigned short TDiskImage::MakeVGCRC(unsigned char *data, unsigned long length)
{
   unsigned short CRC = 0xFFFF;
   for(unsigned int i=0; i < length; i++)
   {
      CRC ^= data[i] << 8;
      for(unsigned int j=0; j < 8; j++)
      {
         if(CRC & 0x8000) CRC = (CRC << 1) ^ 0x1021;
         else CRC <<= 1;
      }
   }
   return CRC;          // H<-->L !!!
}

// Assembly:
movw $0xffff, %ax            # imm = 0xFFFF
testq %rdx, %rdx
je 0x1e26
xorl %ecx, %ecx
movzbl (%rsi,%rcx), %edi
shll $0x8, %edi
xorl %edi, %eax
movl $0x8, %edi
leal (%rax,%rax), %r8d
movl %r8d, %r9d
xorl $0x1021, %r9d           # imm = 0x1021
testw %ax, %ax
cmovnsl %r8d, %r9d
movl %r9d, %eax
decl %edi
jne 0x1e03
incl %ecx
cmpq %rdx, %rcx
jb 0x1df5
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/atsidaev[P]trx2x/DiskImage.cpp
// Function: TDiskImage::ApplySectorCRC(VGFIND_SECTOR)
void TDiskImage::ApplySectorCRC(VGFIND_SECTOR vgfs)
{
   unsigned char *TrackPtr = vgfs.vgfa.TrackPointer;
   unsigned int TrackLen = vgfs.vgfa.TrackLength;
   unsigned int len = vgfs.OffsetEndSector - vgfs.MarkedOffsetSector;
   if(vgfs.OffsetEndSector < vgfs.MarkedOffsetSector)
      len = (TrackLen-vgfs.MarkedOffsetSector)+vgfs.OffsetEndSector;

   unsigned int off1 = vgfs.MarkedOffsetSector;
   unsigned int len1 = TrackLen-vgfs.MarkedOffsetSector;
   if(len1 > len) len1 = len;
   unsigned int off2 = 0;
   unsigned int len2 = 0;
   if(len1 < len) len2 = len - len1;

   unsigned int i;
   unsigned short CRC = 0xFFFF;
   for(i=0; i < len1; i++)
   {
      CRC ^= TrackPtr[off1+i] << 8;
      for(unsigned int j=0; j < 8; j++)
      {
         if(CRC & 0x8000) CRC = (CRC << 1) ^ 0x1021;
         else CRC <<= 1;
      }
   }
   for(i=0; i < len2; i++)
   {
      CRC ^= TrackPtr[off2+i] << 8;
      for(unsigned int j=0; j < 8; j++)
      {
         if(CRC & 0x8000) CRC = (CRC << 1) ^ 0x1021;
         else CRC <<= 1;
      }
   }
   unsigned int crcoff = (off1+len1)%TrackLen;
   if(len2) crcoff = (off2+len2)%TrackLen;

   TrackPtr[crcoff] = (unsigned char)(CRC>>8);
   TrackPtr[(crcoff+1)%TrackLen] = (unsigned char)(CRC&0xFF);
}

// Assembly:
pushq %rbp
pushq %rbx
movl 0x28(%rsp), %ecx
movl 0x64(%rsp), %eax
movl 0x5c(%rsp), %edx
movl %ecx, %esi
subl %edx, %esi
movl %edx, %r8d
negl %r8d
cmpl %edx, %eax
cmovbl %esi, %r8d
addl %eax, %r8d
cmpl %r8d, %esi
movl %r8d, %eax
cmovbl %esi, %eax
movl %r8d, %r9d
subl %eax, %r9d
xorl %edi, %edi
cmpl %r8d, %esi
movq 0x18(%rsp), %rsi
cmovbl %r9d, %edi
testl %eax, %eax
je 0x1eaf
movl %eax, %r8d
movw $0xffff, %bx            # imm = 0xFFFF
xorl %r9d, %r9d
leal (%rdx,%r9), %r10d
movzbl (%rsi,%r10), %r10d
shll $0x8, %r10d
xorl %r10d, %ebx
movl $0x8, %r10d
leal (%rbx,%rbx), %r11d
movl %r11d, %ebp
xorl $0x1021, %ebp           # imm = 0x1021
testw %bx, %bx
cmovnsl %r11d, %ebp
movl %ebp, %ebx
decl %r10d
jne 0x1e8a
incq %r9
cmpq %r8, %r9
jne 0x1e74
jmp 0x1eb3
movw $0xffff, %bx            # imm = 0xFFFF
testl %edi, %edi
je 0x1ef2
movl %edi, %r8d
xorl %r9d, %r9d
movzbl (%rsi,%r9), %r10d
shll $0x8, %r10d
xorl %r10d, %ebx
movl $0x8, %r10d
leal (%rbx,%rbx), %r11d
movl %r11d, %ebp
xorl $0x1021, %ebp           # imm = 0x1021
testw %bx, %bx
cmovnsl %r11d, %ebp
movl %ebp, %ebx
decl %r10d
jne 0x1ecf
incq %r9
cmpq %r8, %r9
jne 0x1ebd
addl %edx, %eax
testl %edi, %edi
cmovnel %edi, %eax
xorl %edi, %edi
xorl %edx, %edx
divl %ecx
movl %edx, %eax
movb %bh, (%rsi,%rax)
incl %edx
cmpl %ecx, %edx
cmovel %edi, %edx
movb %bl, (%rsi,%rdx)
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/atsidaev[P]trx2x/DiskImage.cpp
// Function: TDiskImage::FindTrack(unsigned char, unsigned char, VGFIND_TRACK*)
bool TDiskImage::FindTrack(unsigned char CYL, unsigned char SIDE, VGFIND_TRACK *vgft)
{
   vgft->FoundTrack = false;
   vgft->TrackPointer = NULL;
   vgft->ClkPointer = NULL;
   vgft->TrackLength = 0;

   if( (!DiskPresent) | 
       ((CYL > MaxTrack)||(SIDE > MaxSide)) |
       ((!FTracksPtr[CYL][SIDE][0])||(!FTracksPtr[CYL][SIDE][1])) )
   {
      return false;           // ERROR: disk not ready
   }

   vgft->TrackPointer = FTracksPtr[CYL][SIDE][0];
   vgft->ClkPointer = FTracksPtr[CYL][SIDE][1];
   vgft->TrackLength = FTrackLength[CYL][SIDE];
   vgft->FoundTrack = true;
   return true;
}

// Assembly:
xorps %xmm0, %xmm0
movups %xmm0, (%rcx)
movq $0x0, 0xd(%rcx)
movzbl 0x145006(%rdi), %eax
xorl $0x1, %eax
cmpb %sil, 0x145007(%rdi)
setb %r8b
cmpb %dl, 0x145008(%rdi)
setb %r9b
orb %r8b, %r9b
movzbl %r9b, %r8d
orl %eax, %r8d
movl %esi, %eax
shll $0xc, %eax
addq %rdi, %rax
movl %edx, %r9d
shll $0x4, %r9d
addq %rax, %r9
addq $0x40000, %r9           # imm = 0x40000
movq (%r9), %r10
testq %r10, %r10
je 0x23ca
xorl %eax, %eax
cmpq $0x0, 0x8(%r9)
sete %al
jmp 0x23cf
movl $0x1, %eax
orl %r8d, %eax
jne 0x23f3
movl %esi, %esi
movl %edx, %edx
movq %r10, (%rcx)
movq 0x8(%r9), %r8
movq %r8, 0x8(%rcx)
shll $0xa, %esi
addq %rsi, %rdi
movl (%rdi,%rdx,4), %edx
movl %edx, 0x10(%rcx)
movb $0x1, 0x14(%rcx)
testl %eax, %eax
sete %al
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/atsidaev[P]trx2x/DiskImage.cpp
// Function: TD0CRC(unsigned char*, unsigned int)
unsigned short TD0CRC(unsigned char *buf, unsigned int len)
{
   unsigned short CRC = 0;
   int j;
   for(unsigned int i=0; i < len; i++)
   {
      CRC ^= *buf++;
      j = CRC & 0xFF;
      CRC &= 0xFF00;
      CRC = (CRC<<8)|(CRC>>8);
      CRC ^= ((unsigned short*)tbltd0crc)[ j ];
   }
   return (CRC<<8)|(CRC>>8);
}

// Assembly:
testl %esi, %esi
je 0x72f0
movl %esi, %ecx
xorl %edx, %edx
leaq 0x3f11(%rip), %rsi      # 0xb1e0
xorl %eax, %eax
movzwl %ax, %eax
movb (%rdi,%rdx), %r8b
xorb %al, %r8b
shrl $0x8, %eax
movzbl %r8b, %r8d
xorw (%rsi,%r8,2), %ax
incq %rdx
cmpl %edx, %ecx
jne 0x72d1
jmp 0x72f2
xorl %eax, %eax
rolw $0x8, %ax
retq
// File: /workspace/github_cpp_makefile_star2_O1/atsidaev[P]trx2x/DiskImage.cpp
// Function: unpack_lzh(unsigned char*, unsigned int, unsigned char*)
unsigned unpack_lzh(unsigned char *src, unsigned size, unsigned char *buf) 
{
  packed_ptr = src; 
  packed_end = src+size;
  int  i, j, k, c;
  unsigned count = 0;
  StartHuff();

//  while (count < textsize)  // textsize - sizeof unpacked data
  while (packed_ptr < packed_end)
  {
    c = DecodeChar();
    if(c < 256)
    {
      *buf++ = c;
      text_buf[r++] = c;
      r &= (N - 1);
      count++;
    } else {
      i = (r - DecodePosition() - 1) & (N - 1);
      j = c - 255 + THRESHOLD;
      for (k = 0; k < j; k++)
      {
        c = text_buf[(i + k) & (N - 1)];
        *buf++ = c;
        text_buf[r++] = c;
        r &= (N - 1);
        count++;
      }
    }
  }
  return count;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, 0x3eff(%rip)      # 0xb608
movl %esi, %eax
addq %rdi, %rax
movq %rax, 0x3efb(%rip)      # 0xb610
callq 0x7910
movq 0x3ee7(%rip), %rax      # 0xb608
xorl %ebp, %ebp
cmpq 0x3ee6(%rip), %rax      # 0xb610
jae 0x77cf
xorl %ebp, %ebp
leaq 0x3ee7(%rip), %r15      # 0xb620
movl $0xfff, %r12d           # imm = 0xFFF
callq 0x7c34
movl %eax, %r14d
cmpl $0xff, %eax
jg 0x7772
movb %r14b, (%rbx)
incq %rbx
movslq 0x603d(%rip), %rax      # 0xd798
leal 0x1(%rax), %ecx
movb %r14b, (%rax,%r15)
andl $0xfff, %ecx            # imm = 0xFFF
movl %ecx, 0x602a(%rip)      # 0xd798
incl %ebp
jmp 0x77bb
movl 0x601f(%rip), %r13d     # 0xd798
callq 0x7c79
addl $0xffffff03, %r14d      # imm = 0xFFFFFF03
notl %eax
addl %r13d, %eax
movl %r14d, %ecx
movl %eax, %edx
andl %r12d, %edx
movb (%rdx,%r15), %dl
movb %dl, (%rbx)
incq %rbx
movslq 0x5ff6(%rip), %rsi      # 0xd798
leal 0x1(%rsi), %edi
movb %dl, (%rsi,%r15)
andl %r12d, %edi
movl %edi, 0x5fe6(%rip)      # 0xd798
incl %eax
decl %ecx
jne 0x778d
addl %r14d, %ebp
movq 0x3e46(%rip), %rax      # 0xb608
cmpq 0x3e47(%rip), %rax      # 0xb610
jb 0x773f
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/atsidaev[P]trx2x/DiskImage.cpp
// Function: GetBit()
int GetBit(void)      /* get one bit */
{
  int i;

  while (getlen <= 8)
  {
    if((i = readChar()) == -1) i = 0;
    getbuf |= i << (8 - getlen);
    getlen += 8;
  }
  i = getbuf;
  getbuf <<= 1;
  getlen--;
  return ((i>>15) & 1);
}

// Assembly:
movzbl 0x5f95(%rip), %edx      # 0xd7a0
cmpl $0x8, %edx
ja 0x786d
movl 0x5f86(%rip), %eax      # 0xd79c
movq 0x3deb(%rip), %rdi      # 0xb608
movq 0x3dec(%rip), %rsi      # 0xb610
movl $0x8, %ecx
subl %edx, %ecx
xorl %r8d, %r8d
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
cmpq %rsi, %rdi
jae 0x784b
leaq 0x1(%rdi), %r10
movq %r10, 0x3dc4(%rip)      # 0xb608
movzbl (%rdi), %r9d
movq %r10, %rdi
cmpl $-0x1, %r9d
cmovel %r8d, %r9d
shll %cl, %r9d
orl %r9d, %eax
movl %eax, 0x5f3d(%rip)      # 0xd79c
addb $0x8, %dl
movb %dl, 0x5f38(%rip)       # 0xd7a0
addl $-0x8, %ecx
je 0x782e
movl 0x5f29(%rip), %eax      # 0xd79c
leal (%rax,%rax), %ecx
movl %ecx, 0x5f20(%rip)      # 0xd79c
decb %dl
movb %dl, 0x5f1c(%rip)       # 0xd7a0
shrl $0xf, %eax
andl $0x1, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/atsidaev[P]trx2x/DiskImage.cpp
// Function: GetByte()
int GetByte(void)     /* get one byte */
{
  unsigned i;

  while (getlen <= 8)
  {
    if((i = readChar()) == -1) i = 0;
    getbuf |= i << (8 - getlen);
    getlen += 8;
  }
  i = getbuf;
  getbuf <<= 8;
  getlen -= 8;
  return (i >> 8) & 0xFF;
}

// Assembly:
movzbl 0x5f0e(%rip), %edx      # 0xd7a0
cmpl $0x8, %edx
ja 0x78f4
movl 0x5eff(%rip), %eax      # 0xd79c
movq 0x3d64(%rip), %rdi      # 0xb608
movq 0x3d65(%rip), %rsi      # 0xb610
movl $0x8, %ecx
subl %edx, %ecx
xorl %r8d, %r8d
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
cmpq %rsi, %rdi
jae 0x78d2
leaq 0x1(%rdi), %r10
movq %r10, 0x3d3d(%rip)      # 0xb608
movzbl (%rdi), %r9d
movq %r10, %rdi
cmpl $-0x1, %r9d
cmovel %r8d, %r9d
shll %cl, %r9d
orl %r9d, %eax
movl %eax, 0x5eb6(%rip)      # 0xd79c
addb $0x8, %dl
movb %dl, 0x5eb1(%rip)       # 0xd7a0
addl $-0x8, %ecx
je 0x78b5
movl 0x5ea2(%rip), %ecx      # 0xd79c
movzbl %ch, %eax
shll $0x8, %ecx
movl %ecx, 0x5e96(%rip)      # 0xd79c
addb $-0x8, %dl
movb %dl, 0x5e91(%rip)       # 0xd7a0
retq
// File: /workspace/github_cpp_makefile_star2_O1/atsidaev[P]trx2x/DiskImage.cpp
// Function: StartHuff()
void StartHuff(void)
{
  int i, j;

  getbuf = 0, getlen = 0;
  for (i = 0; i < N_CHAR; i++) {
    freq[i] = 1;
    son[i] = i + T;
    prnt[i + T] = i;
  }
  i = 0; j = N_CHAR;
  while (j <= R) {
    freq[j] = freq[i] + freq[i + 1];
    son[j] = i;
    prnt[i] = prnt[i + 1] = j;
    i += 2; j++;
  }
  freq[T] = 0xffff;
  prnt[R] = 0;

  for (i = 0; i < N - F; i++) text_buf[i] = ' ';
  r = N - F;
}

// Assembly:
movl $0x0, 0x5e82(%rip)      # 0xd79c
movb $0x0, 0x5e7f(%rip)      # 0xd7a0
xorl %esi, %esi
leaq 0x4d36(%rip), %rax      # 0xc660
leaq 0x597f(%rip), %rcx      # 0xd2b0
leaq 0x5218(%rip), %rdx      # 0xcb50
xorl %edi, %edi
movw $0x1, (%rsi,%rax)
leal 0x273(%rdi), %r8d
movw %r8w, (%rsi,%rcx)
movw %di, 0x4e6(%rsi,%rdx)
incl %edi
addq $0x2, %rsi
cmpq $0x274, %rsi            # imm = 0x274
jne 0x793a
movw $0x13a, %si             # imm = 0x13A
xorl %edi, %edi
movzwl 0x2(%rax,%rdi,2), %r8d
addw (%rax,%rdi,2), %r8w
movw %r8w, 0x274(%rdi,%rax)
movw %di, 0x274(%rdi,%rcx)
movw %si, 0x2(%rdx,%rdi,2)
movw %si, (%rdx,%rdi,2)
addq $0x2, %rdi
incl %esi
cmpq $0x272, %rdi            # imm = 0x272
jne 0x7969
pushq %rax
movw $0xffff, 0x519f(%rip)   # imm = 0xFFFF
movw $0x0, 0x5684(%rip)      # 0xd034
leaq 0x3c69(%rip), %rdi      # 0xb620
movl $0xfc4, %edx            # imm = 0xFC4
movl $0x20, %esi
callq 0x10a0
movl $0xfc4, 0x5dc8(%rip)    # imm = 0xFC4
popq %rax
retq
// File: /workspace/github_cpp_makefile_star2_O1/atsidaev[P]trx2x/DiskImage.cpp
// Function: reconst()
void reconst(void)
{
  int i, j, k;
  int f, l;

  /* collect leaf nodes in the first half of the table */
  /* and replace the freq by (freq + 1) / 2. */
  j = 0;
  for(i = 0; i < T; i++)
  {
    if(son[i] >= T)
    {
      freq[j] = (freq[i] + 1) / 2;
      son[j] = son[i];
      j++;
    }
  }
  /* begin constructing tree by connecting sons */
  for(i = 0, j = N_CHAR; j < T; i += 2, j++)
  {
    k = i + 1;
    f = freq[j] = freq[i] + freq[k];
    for(k = j - 1; f < freq[k]; k--);
    k++;
    l = (j - k) * sizeof(*freq);
    memcpy(&freq[k + 1], &freq[k], l);
    freq[k] = f;
    memcpy(&son[k + 1], &son[k], l);
    son[k] = i;
  }
  /* connect prnt */
  for (i = 0; i < T; i++)
    if ((k = son[i]) >= T) prnt[k] = i;
    else prnt[k] = prnt[k + 1] = i;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
xorl %eax, %eax
leaq 0x58c7(%rip), %rdi      # 0xd2b0
leaq 0x4c70(%rip), %r12      # 0xc660
xorl %ecx, %ecx
movzwl (%rax,%rdi), %edx
cmpl $0x273, %edx            # imm = 0x273
jb 0x7a15
movzwl (%rax,%r12), %esi
incl %esi
shrl %esi
movslq %ecx, %rcx
movw %si, (%r12,%rcx,2)
movw %dx, (%rdi,%rcx,2)
incl %ecx
addq $0x2, %rax
cmpq $0x4e6, %rax            # imm = 0x4E6
jne 0x79f2
movl $0x13a, %eax            # imm = 0x13A
movabsq $-0x13b00000000, %r9    # imm = 0xFFFFFEC500000000
movabsq $-0x13c00000000, %rsi   # imm = 0xFFFFFEC400000000
leaq 0x4e91(%rip), %r15      # 0xc8d2
movabsq $-0x100000000, %rbp     # imm = 0xFFFFFFFF00000000
xorl %ecx, %ecx
movzwl 0x2(%r12,%rcx,2), %r14d
movq %rcx, 0x8(%rsp)
addw (%r12,%rcx,2), %r14w
movq %rax, 0x20(%rsp)
movw %r14w, (%r12,%rax,2)
xorl %eax, %eax
xorl %ebx, %ebx
movq %rax, %rcx
addq %rbp, %rbx
addq $-0x2, %rax
cmpw (%r15,%rcx), %r14w
jb 0x7a6b
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
subl %eax, %ecx
movq %rbx, %r13
subq %rsi, %r13
sarq $0x1f, %r13
leaq (%r12,%r13), %rdi
subq %r9, %rbx
sarq $0x1f, %rbx
movq %rsi, 0x10(%rsp)
leaq (%r12,%rbx), %rsi
movslq %ecx, %rdx
movq %rdx, (%rsp)
movq %r9, 0x18(%rsp)
callq 0x10e0
movw %r14w, (%rbx,%r12)
leaq 0x57f2(%rip), %r14      # 0xd2b0
addq %r14, %r13
leaq (%r14,%rbx), %rsi
movq %r13, %rdi
movq (%rsp), %rdx
callq 0x10e0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %r9
movq 0x8(%rsp), %rcx
movw %cx, (%rbx,%r14)
addq $0x2, %rcx
movq 0x20(%rsp), %rax
incq %rax
addq %rbp, %r9
addq %rbp, %rsi
addq $0x2, %r15
cmpq $0x273, %rax            # imm = 0x273
jne 0x7a4d
xorl %eax, %eax
leaq 0x5040(%rip), %rcx      # 0xcb50
movswq (%r14), %rdx
cmpq $0x273, %rdx            # imm = 0x273
jae 0x7b27
leal 0x1(%rdx), %esi
movzwl %si, %esi
movw %ax, (%rcx,%rsi,2)
movw %ax, (%rcx,%rdx,2)
incq %rax
addq $0x2, %r14
cmpq $0x273, %rax            # imm = 0x273
jne 0x7b10
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/atsidaev[P]trx2x/DiskImage.cpp
// Function: update(int)
void update(int c)
{
  int i, j, k, l;

  if(freq[R] == MAX_FREQ) reconst();

  c = prnt[c + T];
  do {
    k = ++freq[c];

    /* if the order is disturbed, exchange nodes */
    if (k > freq[l = c + 1])
    {
      while (k > freq[++l]);
      l--;
      freq[c] = freq[l];
      freq[l] = k;

      i = son[c];
      prnt[i] = l;
      if (i < T) prnt[i + 1] = l;

      j = son[l];
      son[l] = i;

      prnt[j] = c;
      if (j < T) prnt[j + 1] = c;
      son[c] = j;

      c = l;
    }
  } while ((c = prnt[c]) != 0);  /* repeat up to root */
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
xorl %eax, %eax
cmpw 0x4fed(%rip), %ax       # 0xcb44
jno 0x7b5e
callq 0x79d2
addl $0x273, %ebx            # imm = 0x273
leaq 0x4fe5(%rip), %rax      # 0xcb50
movzwl (%rax,%rbx,2), %edi
leaq 0x4aea(%rip), %rcx      # 0xc660
movabsq $0x100000000, %rdx      # imm = 0x100000000
leaq 0x5729(%rip), %rsi      # 0xd2b0
movswq %di, %r8
movzwl (%rcx,%r8,2), %r11d
incl %r11d
movw %r11w, (%rcx,%r8,2)
cmpw 0x2(%rcx,%r8,2), %r11w
jbe 0x7c19
movq %r8, %r10
shlq $0x20, %r10
movq %r8, %r9
movq %r9, %rbx
addq %rdx, %r10
incq %r9
cmpw 0x4(%rcx,%rbx,2), %r11w
ja 0x7baa
movq %r10, %rbx
sarq $0x1f, %rbx
movzwl (%rbx,%rcx), %ebp
movw %bp, (%rcx,%r8,2)
movw %r11w, (%rbx,%rcx)
movswq (%rsi,%r8,2), %r11
movw %r9w, (%rax,%r11,2)
cmpq $0x272, %r11            # imm = 0x272
ja 0x7bed
movzwl %r11w, %ebx
movw %r9w, 0x2(%rax,%rbx,2)
sarq $0x20, %r10
movswq (%rsi,%r10,2), %rbx
movw %r11w, (%rsi,%r10,2)
movw %di, (%rax,%rbx,2)
cmpq $0x272, %rbx            # imm = 0x272
ja 0x7c12
movzwl %bx, %r10d
movw %di, 0x2(%rax,%r10,2)
movw %bx, (%rsi,%r8,2)
jmp 0x7c1d
movswl %di, %r9d
movslq %r9d, %rdi
movzwl (%rax,%rdi,2), %edi
testw %di, %di
jne 0x7b87
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/atsidaev[P]trx2x/DiskImage.cpp
// Function: DecodeChar()
int DecodeChar(void)
{
  int c;

  c = son[R];

  /* travel from root to leaf, */
  /* choosing the smaller child node (son[]) if the read bit is 0, */
  /* the bigger (son[]+1} if 1 */
  while(c < T) c = son[c + GetBit()];
  c -= T;
  update(c);
  return c;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movswl 0x5b55(%rip), %ebx      # 0xd794
cmpl $0x272, %ebx            # imm = 0x272
ja 0x7c62
leaq 0x5662(%rip), %r14      # 0xd2b0
callq 0x7804
addl %ebx, %eax
movswl (%r14,%rax,2), %ebx
cmpl $0x273, %ebx            # imm = 0x273
jb 0x7c4e
addl $0xfffffd8d, %ebx       # imm = 0xFFFFFD8D
movl %ebx, %edi
callq 0x7b49
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/atsidaev[P]trx2x/DiskImage.cpp
// Function: DecodePosition()
int DecodePosition(void)
{
  int i, j, c;

  /* recover upper 6 bits from table */
  i = GetByte();
  c = (int)d_code[i] << 6;
  j = d_len[i];
  /* read lower 6 bits verbatim */
  j -= 2;
  while (j--) i = (i << 1) + GetBit();
  return c | (i & 0x3f);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
callq 0x788b
movl %eax, %ebx
movl %eax, %eax
leaq 0x3753(%rip), %rcx      # 0xb3e0
movzbl (%rax,%rcx), %ebp
leaq 0x3848(%rip), %rcx      # 0xb4e0
movzbl (%rax,%rcx), %r14d
addl $-0x2, %r14d
je 0x7cb0
callq 0x7804
leal (%rax,%rbx,2), %ebx
decl %r14d
jne 0x7ca3
shll $0x6, %ebp
andl $0x3f, %ebx
orl %ebp, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/soybin[P]idyll/src/main.cpp
// Function: renderRange(int, int, int, int, int, int, int, renderer*, std::vector<std::vector<math::vec3, std::allocator<math::vec3>>, std::allocator<std::vector<math::vec3, std::allocator<math::vec3>>>>*)
void renderRange(int startRow, int endRow, int startCol, int endCol, int width, int height, int chunk, renderer* r, std::vector<std::vector<math::vec3>>* image) {
	for (int y = startRow, x = startCol; y < height && (y < endRow || chunk > 0); ++y) {
		for (; x < width && (x < endCol || chunk > 0); ++x) {
			(*image)[y][x] = r->render((double)height - ((double)y + 0.5), (double)x + 0.5);
			--chunk;
		}
		x = 0;
	}
}

// Assembly:
cmpl %r9d, %edi
jge 0x389e
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %r8d, %r15d
movl 0x10(%rbp), %ebx
cvtsi2sd %r9d, %xmm0
movsd %xmm0, -0x48(%rbp)
movslq %ecx, %rax
movq %rax, -0x50(%rbp)
movslq %edi, %rdi
movslq %esi, %rsi
movl %r9d, -0x2c(%rbp)
movq %rsi, -0x38(%rbp)
cmpq %rsi, %rdi
setl %al
testl %ebx, %ebx
setg %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x3890
cmpl %r15d, %edx
jge 0x3882
xorps %xmm0, %xmm0
cvtsi2sd %edi, %xmm0
addsd 0xa81f(%rip), %xmm0     # 0xe008
movsd -0x48(%rbp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, -0x60(%rbp)
movslq %edx, %r13
movl %ebx, %eax
subl %r15d, %eax
addl %edx, %eax
movl %eax, -0x30(%rbp)
leaq (,%r13,8), %rax
leaq (%rax,%rax,2), %r12
movq %rdi, -0x40(%rbp)
leaq (%rdi,%rdi,2), %rax
movq %rax, -0x58(%rbp)
cmpq -0x50(%rbp), %r13
jl 0x3826
testl %ebx, %ebx
jle 0x3876
xorps %xmm1, %xmm1
cvtsi2sd %r13d, %xmm1
addsd 0xa7d2(%rip), %xmm1     # 0xe008
leaq -0x78(%rbp), %r14
movq %r14, %rdi
movq 0x18(%rbp), %rsi
movsd -0x60(%rbp), %xmm0
callq 0x7b62
movq 0x20(%rbp), %rax
movq (%rax), %rax
movq -0x58(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
addq %r12, %rdi
movq %r14, %rsi
callq 0x6310
decl %ebx
incq %r13
addq $0x18, %r12
cmpl %r13d, %r15d
jne 0x381c
movl -0x30(%rbp), %ebx
movl -0x2c(%rbp), %r9d
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %rsi
incq %rdi
xorl %edx, %edx
cmpl %r9d, %edi
jne 0x37bb
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/soybin[P]idyll/src/gui.cpp
// Function: gui::update(int*, int)
void update(int* curV, int tarV) {
		double lockedValue = *curV;

		do {
			lockedValue = *curV;
			// width of logo is 34 characters. two of which
			// will be used for the extremes of the bar.
			// terminal colors are represented with expressions
			// like "\033[x;xx"
			std::cout << "\r\033[1;36m[";
			int quantity = 1 + 32 * lockedValue / tarV;
			for (int i = 0; i < 32; ++i) {
				std::cout << (i < quantity ? "\033[1;36m=" : "\033[0m-");
			}
			std::cout << "\033[1;36m]";
			std::cout.flush();
			std::this_thread::sleep_for(std::chrono::milliseconds(5));
		} while (lockedValue < tarV);
		std::cout << "\033[0;36m\n";
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, -0x40(%rbp)
cvtsi2sd %esi, %xmm0
movq 0xcf15(%rip), %r13      # 0x12fb8
movsd %xmm0, -0x30(%rbp)
movq -0x40(%rbp), %rax
xorps %xmm1, %xmm1
cvtsi2sdl (%rax), %xmm1
movsd %xmm1, -0x38(%rbp)
movl $0x9, %edx
movq %r13, %rdi
leaq 0x8737(%rip), %rsi      # 0xe7fe
callq 0x3310
movsd -0x38(%rbp), %xmm0
mulsd 0x8597(%rip), %xmm0     # 0xe670
divsd -0x30(%rbp), %xmm0
addsd 0x8592(%rip), %xmm0     # 0xe678
cvttsd2si %xmm0, %ebx
xorl %r15d, %r15d
leaq 0x8714(%rip), %r12      # 0xe808
leaq 0x8716(%rip), %r14      # 0xe811
xorl %eax, %eax
cmpl %ebx, %r15d
setl %al
movq %r14, %rsi
cmovlq %r12, %rsi
leaq (%rax,%rax,2), %rdx
addq $0x5, %rdx
movq %r13, %rdi
callq 0x3310
incl %r15d
cmpl $0x20, %r15d
jne 0x60fb
movl $0x8, %edx
movq %r13, %rdi
leaq 0x86e5(%rip), %rsi      # 0xe817
callq 0x3310
movq %r13, %rdi
callq 0x31b0
movq $0x0, -0x50(%rbp)
movq $0x4c4b40, -0x48(%rbp)  # imm = 0x4C4B40
leaq -0x50(%rbp), %r14
movq %r14, %rdi
movq %r14, %rsi
callq 0x30b0
cmpl $-0x1, %eax
jne 0x616d
callq 0x3040
cmpl $0x4, (%rax)
je 0x6153
movsd -0x30(%rbp), %xmm0
ucomisd -0x38(%rbp), %xmm0
ja 0x60a8
movq 0xce34(%rip), %rdi      # 0x12fb8
leaq 0x8695(%rip), %rsi      # 0xe820
movl $0x8, %edx
callq 0x3310
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/soybin[P]idyll/src/math.cpp
// Function: math::clamp(math::vec3, double, double)
vec3 clamp(vec3 v, double rangeMin, double rangeMax) {
		v.x = std::min(std::max(v.x, rangeMin), rangeMax);
		v.y = std::min(std::max(v.y, rangeMin), rangeMax);
		v.z = std::min(std::max(v.z, rangeMin), rangeMax);
		return v;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movapd %xmm0, %xmm2
maxsd 0x10(%rbp), %xmm2
movapd %xmm1, %xmm3
minsd %xmm2, %xmm3
movsd %xmm3, 0x10(%rbp)
movapd %xmm0, %xmm2
maxsd 0x18(%rbp), %xmm2
movapd %xmm1, %xmm3
minsd %xmm2, %xmm3
movsd %xmm3, 0x18(%rbp)
maxsd 0x20(%rbp), %xmm0
movq %rdi, %rax
minsd %xmm0, %xmm1
movsd %xmm1, 0x20(%rbp)
movq 0x20(%rbp), %rcx
movq %rcx, 0x10(%rdi)
movaps 0x10(%rbp), %xmm0
movups %xmm0, (%rdi)
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/soybin[P]idyll/src/math.cpp
// Function: math::fold::sierpinski(math::vec3&)
void sierpinski(vec3& r) {
			double a = std::min(r.x + r.y, 0.0);
			double b = std::min(r.x + r.z, 0.0);
			double c = std::min(r.z + r.y, 0.0);
			r.x -= a;
			r.y -= a;
			r.x -= b;
			r.z -= b;
			r.y -= c;
			r.z -= c;
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movsd (%rdi), %xmm0
movsd 0x8(%rdi), %xmm1
movapd %xmm0, %xmm2
addsd %xmm1, %xmm2
xorpd %xmm3, %xmm3
xorpd %xmm4, %xmm4
minsd %xmm2, %xmm4
movsd 0x10(%rdi), %xmm2
movapd %xmm0, %xmm5
addsd %xmm2, %xmm5
xorpd %xmm6, %xmm6
minsd %xmm5, %xmm6
movapd %xmm1, %xmm5
addsd %xmm2, %xmm5
minsd %xmm5, %xmm3
subsd %xmm4, %xmm0
subsd %xmm4, %xmm1
subsd %xmm6, %xmm0
movsd %xmm0, (%rdi)
subsd %xmm6, %xmm2
subsd %xmm3, %xmm1
movsd %xmm1, 0x8(%rdi)
subsd %xmm3, %xmm2
movsd %xmm2, 0x10(%rdi)
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/soybin[P]idyll/src/math.cpp
// Function: math::fold::menger(math::vec3&)
void menger(vec3& r) {
			double a = std::min(r.x - r.y, 0.0);
			r.x -= a;
			r.y += a;
			a = std::min(r.x - r.z, 0.0);
			r.x -= a;
			r.z += a;
			a = std::min(r.y - r.z, 0.0);
			r.y -= a;
			r.z += a;
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movsd (%rdi), %xmm0
movsd 0x8(%rdi), %xmm1
movapd %xmm0, %xmm2
subsd %xmm1, %xmm2
xorpd %xmm3, %xmm3
xorpd %xmm4, %xmm4
minsd %xmm2, %xmm4
subsd %xmm4, %xmm0
addsd %xmm1, %xmm4
movsd 0x10(%rdi), %xmm1
movapd %xmm0, %xmm2
subsd %xmm1, %xmm2
xorpd %xmm5, %xmm5
minsd %xmm2, %xmm5
subsd %xmm5, %xmm0
movsd %xmm0, (%rdi)
addsd %xmm1, %xmm5
movapd %xmm4, %xmm0
subsd %xmm5, %xmm0
minsd %xmm0, %xmm3
subsd %xmm3, %xmm4
movsd %xmm4, 0x8(%rdi)
addsd %xmm5, %xmm3
movsd %xmm3, 0x10(%rdi)
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/soybin[P]idyll/src/renderer.cpp
// Function: renderer::calculateRayDirection(double, double)
math::vec3 renderer::calculateRayDirection(double xcoord, double ycoord) {
	//
	// find direction vector
	//
	double x = xcoord - WIDTH / 2.0;
	double y = ycoord - HEIGHT / 2.0;
	double z = HEIGHT / std::tan(FOV * PI / 180.0 / 2.0);
	math::vec3 a = math::vec3(x, y, -z);
	//
	// apply rotations
	//
	a = math::vec3(
		RMx[0].x * a.x + RMx[1].x * a.y + RMx[2].x * a.z,
		RMx[0].y * a.x + RMx[1].y * a.y + RMx[2].y * a.z,
		RMx[0].z * a.x + RMx[1].z * a.y + RMx[2].z * a.z
	);
	a = math::vec3(
		RMy[0].x * a.x + RMy[1].x * a.y + RMy[2].x * a.z,
		RMy[0].y * a.x + RMy[1].y * a.y + RMy[2].y * a.z,
		RMy[0].z * a.x + RMy[1].z * a.y + RMy[2].z * a.z);

	return math::normalize(a);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x70, %rsp
movq %rsi, %r15
cvtsi2sdl (%rsi), %xmm2
movq %rdi, %rbx
movsd 0x7325(%rip), %xmm3     # 0xe008
mulsd %xmm3, %xmm2
subsd %xmm2, %xmm0
movsd %xmm0, -0x30(%rbp)
xorps %xmm2, %xmm2
cvtsi2sdl 0x4(%rsi), %xmm2
movapd %xmm2, -0x40(%rbp)
mulsd %xmm3, %xmm2
xorps %xmm0, %xmm0
cvtsi2sdl 0x8(%rsi), %xmm0
mulsd 0x7b77(%rip), %xmm0     # 0xe888
subsd %xmm2, %xmm1
movsd %xmm1, -0x28(%rbp)
divsd 0x7b6e(%rip), %xmm0     # 0xe890
mulsd %xmm3, %xmm0
callq 0x3170
movapd -0x40(%rbp), %xmm2
xorpd 0x7b18(%rip), %xmm2     # 0xe850
divsd %xmm0, %xmm2
leaq -0x70(%rbp), %r14
movq %r14, %rdi
movsd -0x30(%rbp), %xmm0
movsd -0x28(%rbp), %xmm1
callq 0x61cc
movq 0x90(%r15), %rax
movsd (%r14), %xmm3
movsd 0x8(%r14), %xmm4
movsd 0x18(%rax), %xmm0
mulsd %xmm4, %xmm0
movsd (%rax), %xmm1
mulsd %xmm3, %xmm1
addsd %xmm0, %xmm1
movsd 0x10(%r14), %xmm2
movsd 0x30(%rax), %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd 0x20(%rax), %xmm1
mulsd %xmm4, %xmm1
movsd 0x8(%rax), %xmm5
mulsd %xmm3, %xmm5
addsd %xmm1, %xmm5
movsd 0x38(%rax), %xmm1
mulsd %xmm2, %xmm1
addsd %xmm5, %xmm1
mulsd 0x28(%rax), %xmm4
mulsd 0x10(%rax), %xmm3
addsd %xmm4, %xmm3
mulsd 0x40(%rax), %xmm2
addsd %xmm3, %xmm2
leaq -0x58(%rbp), %r12
movq %r12, %rdi
callq 0x61cc
movq %r14, %rdi
movq %r12, %rsi
callq 0x6310
movq 0xa8(%r15), %rax
movsd (%r14), %xmm3
movsd 0x8(%r14), %xmm4
movsd 0x18(%rax), %xmm0
mulsd %xmm4, %xmm0
movsd (%rax), %xmm1
mulsd %xmm3, %xmm1
addsd %xmm0, %xmm1
movsd 0x10(%r14), %xmm2
movsd 0x30(%rax), %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd 0x20(%rax), %xmm1
mulsd %xmm4, %xmm1
movsd 0x8(%rax), %xmm5
mulsd %xmm3, %xmm5
addsd %xmm1, %xmm5
movsd 0x38(%rax), %xmm1
mulsd %xmm2, %xmm1
addsd %xmm5, %xmm1
mulsd 0x28(%rax), %xmm4
mulsd 0x10(%rax), %xmm3
addsd %xmm4, %xmm3
mulsd 0x40(%rax), %xmm2
addsd %xmm3, %xmm2
leaq -0x58(%rbp), %r15
movq %r15, %rdi
callq 0x61cc
movq %r14, %rdi
movq %r15, %rsi
callq 0x6310
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x6575
movq %rbx, %rax
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop