LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/error-handling.c
// Function: dieErrno
void dieErrno(const char *format, ...)
{
  va_list arguments;
  va_start(arguments, format);

  fprintf(stderr, "nb: error: ");
  vfprintf(stderr, format, arguments);
  fprintf(stderr, ": %s\n", strerror(errno));

  va_end(arguments);

  exit(EXIT_FAILURE);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xd0, %rsp
movq %rdi, %rbx
leaq 0x20(%rsp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x3a3b
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %r14
movq %rdi, 0x10(%r14)
leaq 0xf0(%rsp), %rax
movq %rax, 0x8(%r14)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%r14)
movq 0x10596(%rip), %r15     # 0x13ff8
movq (%r15), %rcx
leaq 0xa738(%rip), %rdi      # 0xe1a4
pushq $0xb
popq %rsi
pushq $0x1
popq %rdx
callq 0x23d0
movq (%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x2390
movq (%r15), %rbx
callq 0x2060
movl (%rax), %edi
callq 0x23e0
leaq 0xa715(%rip), %rsi      # 0xe1b0
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x2250
pushq $0x1
popq %rdi
callq 0x23c0
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/file-hash.c
// Function: fileHash
void fileHash(StringView filepath, struct stat stats, uint8_t *hash_out,
              HashProgressCallback progress_callback,
              void *callback_user_data)
{
  const size_t blocksize = stats.st_blksize;
  uint64_t bytes_left = stats.st_size;
  FileStream *stream = sFopenRead(filepath);

  static unsigned char *buffer = NULL;
  buffer = CR_EnsureCapacity(buffer, blocksize);

  blake2b_state state;
  blake2b_init(&state, FILE_HASH_SIZE);

  while(bytes_left > 0)
  {
    const size_t bytes_to_read =
      bytes_left > blocksize ? blocksize : bytes_left;

    sFread(buffer, bytes_to_read, stream);
    blake2b_update(&state, buffer, bytes_to_read);
    bytes_left -= bytes_to_read;

    if(progress_callback != NULL)
    {
      progress_callback(bytes_to_read, callback_user_data);
    }
  }

  const bool stream_not_at_end = sFbytesLeft(stream);
  sFclose(stream);

  if(stream_not_at_end)
  {
    die("file changed while calculating hash: \"" PRI_STR "\"",
        STR_FMT(filepath));
  }

  blake2b_final(&state, hash_out, FILE_HASH_SIZE);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rdx, 0x28(%rsp)
movq %rsi, %r15
movq %rdi, 0x20(%rsp)
leaq 0x160(%rsp), %rcx
movq 0x1a8(%rsp), %r14
movq 0x1b0(%rsp), %rbx
movq 0x10(%rcx), %rax
movq %rax, 0x10(%rsp)
movaps (%rcx), %xmm0
movups %xmm0, (%rsp)
callq 0x8243
movq %rax, %r13
movq 0x1073b(%rip), %rdi     # 0x14240
movq %rbx, %rsi
callq 0xce02
movq %rax, 0x1072c(%rip)     # 0x14240
leaq 0x30(%rsp), %rbp
pushq $0x14
popq %rsi
movq %rbp, %rdi
callq 0xa998
testq %r14, %r14
je 0x3b6c
cmpq %rbx, %r14
movq %rbx, %r12
cmovbq %r14, %r12
movq 0x10706(%rip), %rdi     # 0x14240
movq %r12, %rsi
movq %r13, %rdx
callq 0x8403
movq 0x106f4(%rip), %rsi     # 0x14240
movq %rbp, %rdi
movq %r12, %rdx
callq 0xaa1b
subq %r12, %r14
testq %r15, %r15
je 0x3b24
movq %r12, %rdi
movq 0x28(%rsp), %rsi
callq *%r15
jmp 0x3b24
movq %r13, %rdi
callq 0x87e5
movl %eax, %ebx
movq %r13, %rdi
callq 0x859c
testb %bl, %bl
jne 0x3ba6
leaq 0x30(%rsp), %rdi
pushq $0x14
popq %rdx
movq 0x20(%rsp), %rsi
callq 0xcb51
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x160(%rsp), %rax
movl 0x8(%rax), %esi
movq (%rax), %rdx
leaq 0xa5fb(%rip), %rdi      # 0xe1b6
xorl %eax, %eax
callq 0x3918
nop
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/garbage-collector.c
// Function: populateTableRecursively
static void populateTableRecursively(Allocator *a, StringTable *table,
                                     const PathNode *nodes)
{
  for(const PathNode *node = nodes; node != NULL; node = node->next)
  {
    if(backupHintNoPol(node->hint) == BH_not_part_of_repository)
    {
      continue;
    }

    for(const PathHistory *point = node->history; point != NULL;
        point = point->next)
    {
      if(point->state.type != PST_regular_file ||
         point->state.metadata.file_info.size <= FILE_HASH_SIZE)
      {
        continue;
      }

      static char *buffer = NULL;
      repoBuildRegularFilePath(&buffer, &point->state.metadata.file_info);
      StringView path = str(buffer);

      if(strTableGet(table, path) == NULL)
      {
        strTableMap(table, strCopy(path, a), (void *)0x1);
      }
    }

    populateTableRecursively(a, table, node->subnodes);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0x1ff, %ecx            # imm = 0x1FF
leaq 0x10470(%rip), %r12     # 0x14248
leaq 0x18(%rsp), %r13
testq %rbx, %rbx
je 0x3eb5
movl 0x18(%rbx), %eax
andl %ecx, %eax
cmpl $0x4, %eax
je 0x3eac
leaq 0x20(%rbx), %rbp
movq (%rbp), %rbp
testq %rbp, %rbp
je 0x3e98
cmpl $0x1, 0x8(%rbp)
jne 0x3e8f
cmpq $0x15, 0x28(%rbp)
jb 0x3e8f
leaq 0x18(%rbp), %rsi
movq %r12, %rdi
callq 0x6ff0
movq 0x1041f(%rip), %rsi     # 0x14248
movq %r13, %rdi
callq 0xa3d0
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x18(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
callq 0xa908
testq %rax, %rax
jne 0x3e8f
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x18(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0xa466
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
pushq $0x1
popq %rsi
callq 0xa7f2
addq $0x48, %rbp
jmp 0x3df8
movq 0x28(%rbx), %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x3db5
movl $0x1ff, %ecx            # imm = 0x1FF
movq 0x30(%rbx), %rbx
jmp 0x3ddd
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/garbage-collector.c
// Function: shouldBeRemoved
static bool shouldBeRemoved(StringView path, const struct stat *stats,
                            void *user_data)
{
  GCContext *ctx = user_data;

  StringView path_relative_to_repo =
    strUnterminated(&path.content[ctx->repo_path.length + 1],
                    path.length - ctx->repo_path.length - 1);
  if(strTableGet(ctx->paths_to_preserve, path_relative_to_repo) != NULL)
  {
    if(ctx->progress_callback != NULL)
    {
      ctx->progress_callback(ctx->statistics.deleted_items_total_size,
                             strTableCountMappings(ctx->paths_to_preserve),
                             ctx->callback_user_data);
    }
    return false;
  }

  ctx->statistics.deleted_items_count =
    sSizeAdd(ctx->statistics.deleted_items_count, 1);
  if(S_ISREG(stats->st_mode))
  {
    ctx->statistics.deleted_items_total_size =
      sSizeAdd(ctx->statistics.deleted_items_total_size, stats->st_size);
  }
  return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movq %rdi, %r15
movq 0x60(%rsp), %rax
movq 0x8(%rsi), %rdx
leaq (%rax,%rdx), %rsi
incq %rsi
notq %rdx
addq 0x68(%rsp), %rdx
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0xa3ec
movq 0x18(%rbx), %rdi
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
callq 0xa908
movq %rax, %r14
testq %rax, %rax
je 0x3f41
movq 0x30(%rbx), %r12
testq %r12, %r12
je 0x3f72
movq 0x18(%rbx), %rdi
movq 0x28(%rbx), %r15
callq 0xa990
movq 0x38(%rbx), %rdx
movq %r15, %rdi
movq %rax, %rsi
callq *%r12
jmp 0x3f72
movq 0x20(%rbx), %rdi
pushq $0x1
popq %rsi
callq 0x8188
movq %rax, 0x20(%rbx)
movl $0xf000, %eax           # imm = 0xF000
andl 0x18(%r15), %eax
cmpl $0x8000, %eax           # imm = 0x8000
jne 0x3f72
movq 0x28(%rbx), %rdi
movq 0x30(%r15), %rsi
callq 0x8188
movq %rax, 0x28(%rbx)
testq %r14, %r14
sete %al
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/informations.c
// Function: printHumanReadableSize
void printHumanReadableSize(const uint64_t size)
{
  static const char units[] = "bKMGT";
  double converted_value = (double)size;
  size_t unit_index = 0;

  while(converted_value > 999.9 && unit_index + 2 < sizeof(units))
  {
    converted_value /= 1024.0;
    unit_index++;
  }

  if(unit_index == 0)
  {
    printf("%.0lf b", converted_value);
  }
  else
  {
    const uint64_t fraction = (uint64_t)(converted_value * 10.0) % 10;
    printf("%" PRIu64 ".%" PRIu64 " %ciB", (uint64_t)converted_value,
           fraction, units[unit_index]);
  }
}

// Assembly:
movq %rdi, %xmm1
punpckldq 0xa26f(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0xa277(%rip), %xmm1     # 0xe210
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
xorl %ecx, %ecx
movsd 0xa271(%rip), %xmm1     # 0xe220
movsd 0xa281(%rip), %xmm2     # 0xe238
ucomisd %xmm1, %xmm0
jbe 0x3fcc
cmpq $0x3, %rcx
ja 0x3fcc
mulsd %xmm2, %xmm0
incq %rcx
jmp 0x3fb7
testq %rcx, %rcx
je 0x403c
movsd 0xa24f(%rip), %xmm1     # 0xe228
mulsd %xmm0, %xmm1
movsd 0xa24b(%rip), %xmm2     # 0xe230
cvttsd2si %xmm1, %rdx
subsd %xmm2, %xmm1
cvttsd2si %xmm1, %rsi
movq %rdx, %rax
sarq $0x3f, %rax
andq %rsi, %rax
orq %rdx, %rax
pushq $0xa
popq %rsi
xorl %edx, %edx
divq %rsi
cvttsd2si %xmm0, %rax
subsd %xmm2, %xmm0
cvttsd2si %xmm0, %rdi
movq %rax, %rsi
sarq $0x3f, %rsi
andq %rdi, %rsi
orq %rax, %rsi
leaq 0xa256(%rip), %rax      # 0xe280
movsbl (%rcx,%rax), %ecx
leaq 0xa259(%rip), %rdi      # 0xe28e
xorl %eax, %eax
jmp 0x2150
leaq 0xa243(%rip), %rdi      # 0xe286
movb $0x1, %al
jmp 0x2150
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/informations.c
// Function: printSearchNodeInfos
static void printSearchNodeInfos(const SearchNode *root_node)
{
  for(const SearchNode *node = root_node->subnodes; node != NULL;
      node = node->next)
  {
    if(node->search_match == SRT_none)
    {
      warnConfigLineNr(node->line_nr);
      fprintf(stderr, "%s never matched a %s: ", typeOf(node),
              node->subnodes ? "directory" : "file");
      warnPathNewline(node->name);
    }
    else if(node->subnodes != NULL)
    {
      if(!(node->search_match & SRT_directory))
      {
        warnConfigLineNr(node->line_nr);
        fprintf(stderr, "%s matches, but not a directory: ", typeOf(node));
        warnPathNewline(node->name);
      }
      else if(node->search_match & ~SRT_directory)
      {
        warnConfigLineNr(node->line_nr);
        fprintf(stderr, "%s matches not only directories: ", typeOf(node));
        warnPathNewline(node->name);
        printSearchNodeInfos(node);
      }
      else
      {
        printSearchNodeInfos(node);
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
addq $0x40, %rbx
movq 0xff62(%rip), %r13      # 0x13ff8
leaq 0xa3f4(%rip), %rbp      # 0xe491
leaq 0xa3e7(%rip), %r12      # 0xe48b
leaq 0xacbc(%rip), %r15      # 0xed67
leaq 0xa205(%rip), %r14      # 0xe2b7
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x41a0
movl 0x28(%rbx), %eax
testl %eax, %eax
je 0x40e9
cmpq $0x0, 0x40(%rbx)
je 0x40e3
testb $0x4, %al
je 0x4121
testl $0xfffffffb, %eax       # imm = 0xFFFFFFFB
jne 0x415f
movq %rbx, %rdi
callq 0x407a
addq $0x60, %rbx
jmp 0x40b2
movq 0x18(%rbx), %rdi
callq 0x4645
cmpq $0x0, 0x20(%rbx)
movq %r12, %rdx
cmoveq %rbp, %rdx
cmpq $0x0, 0x40(%rbx)
movq (%r13), %rdi
movq %r15, %rcx
leaq 0xad4f(%rip), %rax      # 0xee60
cmoveq %rax, %rcx
movq %r14, %rsi
xorl %eax, %eax
callq 0x2250
jmp 0x4148
movq 0x18(%rbx), %rdi
callq 0x4645
cmpq $0x0, 0x20(%rbx)
movq (%r13), %rdi
movq %r12, %rdx
cmoveq %rbp, %rdx
leaq 0xa18e(%rip), %rsi      # 0xe2cf
xorl %eax, %eax
callq 0x2250
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
callq 0x471c
jmp 0x40e3
movq 0x18(%rbx), %rdi
callq 0x4645
cmpq $0x0, 0x20(%rbx)
movq (%r13), %rdi
movq %r12, %rdx
cmoveq %rbp, %rdx
leaq 0xa172(%rip), %rsi      # 0xe2f1
xorl %eax, %eax
callq 0x2250
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
callq 0x471c
jmp 0x40db
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/informations.c
// Function: warnUnmatchedExpressions
static void warnUnmatchedExpressions(const RegexList *expression_list,
                                     const char *target_name)
{
  for(const RegexList *expression = expression_list; expression != NULL;
      expression = expression->next)
  {
    if(!expression->has_matched)
    {
      warnConfigLineNr(expression->line_nr);
      fprintf(stderr, "regex never matched a %s: ", target_name);
      warnPathNewline(expression->expression);
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0xfe31(%rip), %r12      # 0x13ff8
leaq 0xa145(%rip), %r15      # 0xe313
testq %r14, %r14
je 0x4213
cmpb $0x0, 0x28(%r14)
je 0x41e0
movq 0x30(%r14), %r14
jmp 0x41ce
movq 0x20(%r14), %rdi
callq 0x4645
movq (%r12), %rdi
movq %r15, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2250
movq 0x18(%r14), %rax
movq %rax, 0x10(%rsp)
movups 0x8(%r14), %xmm0
movups %xmm0, (%rsp)
callq 0x471c
jmp 0x41da
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/informations.c
// Function: containsContentChanges
static bool containsContentChanges(const ChangeSummary *changes)
{
  return changes->new_items.affected_items_count > 0 ||
    changes->removed_items.affected_items_count > 0 ||
    changes->lost_items.affected_items_count > 0 ||
    changes->changed_items.affected_items_count > 0;
}

// Assembly:
movb $0x1, %al
cmpq $0x0, (%rdi)
je 0x4586
retq
cmpq $0x0, 0x10(%rdi)
jne 0x4585
cmpq $0x0, 0x20(%rdi)
jne 0x4585
cmpq $0x0, 0x30(%rdi)
setne %al
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/informations.c
// Function: warnNodeMatches
void warnNodeMatches(const SearchNode *node, StringView string)
{
  warnConfigLineNr(node->line_nr);
  fprintf(stderr, "%s ", typeOf(node));
  warnPath(node->name);
  fprintf(stderr, " matches \"");
  colorPrintf(stderr, TC_yellow, "" PRI_STR "", STR_FMT(string));
  fprintf(stderr, "\"\n");
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
callq 0x4645
movq 0xfa41(%rip), %r14      # 0x13ff8
movq (%r14), %rdi
cmpq $0x0, 0x20(%rbx)
leaq 0x9ecb(%rip), %rax      # 0xe491
leaq 0x9ebe(%rip), %rdx      # 0xe48b
cmoveq %rax, %rdx
leaq 0x9cc8(%rip), %rsi      # 0xe2a0
xorl %eax, %eax
callq 0x2250
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
callq 0x46d6
movq (%r14), %rcx
leaq 0x9ca6(%rip), %rdi      # 0xe2a4
pushq $0xa
popq %rsi
pushq $0x1
popq %rbx
movq %rbx, %rdx
callq 0x23d0
movq (%r14), %rdi
movl 0x38(%rsp), %ecx
movq 0x30(%rsp), %r8
leaq 0x9c90(%rip), %rdx      # 0xe2af
pushq $0x6
popq %rsi
xorl %eax, %eax
callq 0x3830
movq (%r14), %rcx
leaq 0x9c81(%rip), %rdi      # 0xe2b4
pushq $0x2
popq %rsi
movq %rbx, %rdx
addq $0x18, %rsp
popq %rbx
popq %r14
jmp 0x23d0
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/informations.c
// Function: warnConfigLineNr
static void warnConfigLineNr(const size_t line_nr)
{
  colorPrintf(stderr, TC_yellow, "config");
  fprintf(stderr, ": ");
  colorPrintf(stderr, TC_blue, "line ");
  colorPrintf(stderr, TC_red, "%zu", line_nr);
  fprintf(stderr, ": ");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0xf9a0(%rip), %r13      # 0x13ff8
movq (%r13), %rdi
leaq 0x9b7f(%rip), %rdx      # 0xe1e2
pushq $0x6
popq %rsi
xorl %eax, %eax
callq 0x3830
movq (%r13), %rcx
leaq 0x9cd7(%rip), %r14      # 0xe34f
pushq $0x2
popq %r15
pushq $0x1
popq %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x23d0
movq (%r13), %rdi
leaq 0x9de8(%rip), %rdx      # 0xe481
pushq $0x8
popq %rsi
xorl %eax, %eax
callq 0x3830
movq (%r13), %rdi
leaq 0x9dd9(%rip), %rdx      # 0xe487
pushq $0x2
popq %rsi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x3830
movq (%r13), %rcx
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x23d0
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/informations.c
// Function: printNodePath
static void printNodePath(const PathNode *node, const TextColor color)
{
  const PathState *state = getExistingState(node);

  colorPrintf(stdout, color, "%s" PRI_STR "%s",
              state->type == PST_symlink ? "^" : "", STR_FMT(node->path),
              state->type == PST_directory ? "/" : "");
}

// Assembly:
movq 0x20(%rdi), %rax
cmpl $0x0, 0x8(%rax)
je 0x4c7d
movq %rax, %rcx
jmp 0x4c86
movq 0x48(%rax), %rcx
testq %rcx, %rcx
je 0x4c78
pushq %rax
movq 0xf342(%rip), %rax      # 0x13fd0
movq (%rax), %rax
movl 0x8(%rcx), %edx
cmpl $0x2, %edx
leaq 0x97a8(%rip), %rcx      # 0xe446
leaq 0x9afa(%rip), %r10      # 0xe79f
cmovneq %r10, %rcx
movl 0x8(%rdi), %r8d
movq (%rdi), %r9
cmpl $0x3, %edx
leaq 0x978e(%rip), %rdx      # 0xe448
cmovneq %r10, %rdx
movq %rdx, (%rsp)
leaq 0x9774(%rip), %rdx      # 0xe43d
movq %rax, %rdi
xorl %eax, %eax
callq 0x3830
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/informations.c
// Function: printPrefix
static void printPrefix(bool *printed_prefix)
{
  if(*printed_prefix)
  {
    printf(", ");
  }
  else
  {
    printf(" (");
    *printed_prefix = true;
  }
}

// Assembly:
cmpb $0x1, (%rdi)
jne 0x4ce8
leaq 0x9769(%rip), %rdi      # 0xe44a
xorl %eax, %eax
jmp 0x2150
pushq %rbx
movq %rdi, %rbx
leaq 0x9a44(%rip), %rdi      # 0xe737
xorl %eax, %eax
callq 0x2150
movb $0x1, (%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/informations.c
// Function: printChangeDetail
static void printChangeDetail(const ChangeDetail details,
                              const char *prefix)
{
  printf("%s%zu item%s", details.affected_items_count > 0 ? prefix : "",
         details.affected_items_count,
         details.affected_items_count == 1 ? "" : "s");

  if(details.affected_items_total_size > 0)
  {
    printf(", %s", prefix);
    printHumanReadableSize(details.affected_items_total_size);
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %rdx
testq %rdi, %rdi
leaq 0x9a89(%rip), %rax      # 0xe79f
movq %r14, %rsi
cmoveq %rax, %rsi
cmpq $0x1, %rdi
leaq 0x9735(%rip), %rcx      # 0xe45d
cmoveq %rax, %rcx
leaq 0x971a(%rip), %rdi      # 0xe44d
xorl %eax, %eax
callq 0x2150
testq %rbx, %rbx
je 0x4d5f
leaq 0x9714(%rip), %rdi      # 0xe45a
movq %r14, %rsi
xorl %eax, %eax
callq 0x2150
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3f84
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/informations.c
// Function: changeDetailAdd
static void changeDetailAdd(ChangeDetail *details, const size_t count,
                            const uint64_t size)
{
  details->affected_items_count =
    sSizeAdd(details->affected_items_count, count);
  details->affected_items_total_size =
    sUint64Add(details->affected_items_total_size, size);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
callq 0x8188
movq %rax, (%r14)
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq 0x81c4
movq %rax, 0x8(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/informations.c
// Function: incrementExtraChangedAttributes
static void incrementExtraChangedAttributes(ChangeSummary *changes,
                                            const BackupHint hint)
{
  if(hint & BH_owner_changed)
  {
    changes->changed_attributes = sSizeAdd(changes->changed_attributes, 1);
  }
  if(hint & BH_permissions_changed)
  {
    changes->changed_attributes = sSizeAdd(changes->changed_attributes, 1);
  }
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
testb $0x10, %bpl
je 0x4db2
movq 0x40(%rbx), %rdi
pushq $0x1
popq %rsi
callq 0x8188
movq %rax, 0x40(%rbx)
testb $0x20, %bpl
je 0x4dc8
movq 0x40(%rbx), %rdi
pushq $0x1
popq %rsi
callq 0x8188
movq %rax, 0x40(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/integrity.c
// Function: checkIntegrity
ListOfBrokenPathNodes *checkIntegrity(
  CR_Region *r, const Metadata *metadata, StringView repo_path,
  IntegrityProgressCallback progress_callback, void *callback_user_data)
{
  IntegrityCheckContext ctx = {
    .r = r,
    .broken_nodes = NULL,
    .repo_path = repo_path,
    .progress_callback = progress_callback,
    .callback_user_data = callback_user_data,
  };

  /* Dry run to populate `ctx->files_to_hash_total_size`. */
  CR_Region *disposable_r = attachDisposableRegion(&ctx);
  checkIntegrityRecursively(&ctx, metadata->paths, addToTotalFileSize);
  CR_RegionRelease(disposable_r);
  disposable_r = attachDisposableRegion(&ctx);

  /* Do a real check. */
  checkIntegrityRecursively(&ctx, metadata->paths, storedFileIsHealthy);
  CR_RegionRelease(disposable_r);

  return ctx.broken_nodes;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x60, %rsp
movq %rsi, %r14
movq %rsp, %rbx
movq %rdi, (%rbx)
andq $0x0, 0x8(%rbx)
movaps 0x80(%rsp), %xmm0
movups %xmm0, 0x10(%rbx)
movq 0x90(%rsp), %rax
movq %rax, 0x20(%rbx)
xorps %xmm0, %xmm0
andq $0x0, 0x48(%rbx)
movups %xmm0, 0x28(%rbx)
movups %xmm0, 0x38(%rbx)
movq %rdx, 0x50(%rbx)
movq %rcx, 0x58(%rbx)
movq %rbx, %rdi
callq 0x4e71
movq %rax, %r15
movq 0x48(%r14), %rsi
leaq 0x1d5(%rip), %rdx       # 0x5002
movq %rbx, %rdi
callq 0x4ebe
movq %r15, %rdi
callq 0xd21a
movq %rbx, %rdi
callq 0x4e71
movq %rax, %r15
movq 0x48(%r14), %rsi
leaq 0x1c8(%rip), %rdx       # 0x501b
movq %rbx, %rdi
callq 0x4ebe
movq %r15, %rdi
callq 0xd21a
movq 0x8(%rbx), %rax
addq $0x60, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/integrity.c
// Function: attachDisposableRegion
static CR_Region *attachDisposableRegion(IntegrityCheckContext *ctx)
{
  CR_Region *disposable_r = CR_RegionNew();
  ctx->reusable_buffer_allocator =
    allocatorWrapOneSingleGrowableBuffer(disposable_r);
  ctx->unique_subpath_buffer = CR_RegionAllocGrowable(disposable_r, 1);
  ctx->unique_subpath_cache = strTableNew(disposable_r);
  ctx->unique_subpath_cache_key_allocator =
    allocatorWrapRegion(disposable_r);
  return disposable_r;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0xd040
movq %rax, %r14
movq %rax, %rdi
callq 0x2590
movq %rax, 0x28(%rbx)
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0xcd70
movq %rax, 0x30(%rbx)
movq %r14, %rdi
callq 0xa764
movq %rax, 0x38(%rbx)
movq %r14, %rdi
callq 0x2578
movq %rax, 0x40(%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/integrity.c
// Function: checkIntegrityRecursively
static void
checkIntegrityRecursively(IntegrityCheckContext *ctx,
                          const PathNode *node_list,
                          CheckFileCallback check_file_callback)
{
  for(const PathNode *node = node_list; node != NULL; node = node->next)
  {
    for(const PathHistory *point = node->history; point != NULL;
        point = point->next)
    {
      if(!historyPointIsHealthy(ctx, point, check_file_callback))
      {
        ListOfBrokenPathNodes *broken_node =
          CR_RegionAlloc(ctx->r, sizeof(*broken_node));
        broken_node->node = node;
        broken_node->next = ctx->broken_nodes;
        ctx->broken_nodes = broken_node;
        break;
      }
    }
    checkIntegrityRecursively(ctx, node->subnodes, check_file_callback);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x30(%rdi), %r12
testq %r14, %r14
je 0x4ff3
leaq 0x20(%r14), %r13
movq (%r13), %r13
testq %r13, %r13
je 0x4fdb
cmpl $0x1, 0x8(%r13)
jne 0x4fb8
cmpq $0x15, 0x28(%r13)
jb 0x4fb8
leaq 0x18(%r13), %rbp
movq %r12, %rdi
movq %rbp, %rsi
callq 0x6ff0
movq 0x30(%r15), %rsi
leaq 0x18(%rsp), %rdi
callq 0xa3d0
movq 0x38(%r15), %rdi
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x18(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0xa908
testq %rax, %rax
je 0x4f4f
cmpq $0x1, %rax
je 0x4fb8
jmp 0x4fc1
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x18(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r15, %rdi
movq %rbp, %rsi
callq *%rbx
movl %eax, %ebp
movq 0x40(%r15), %rsi
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x18(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x30(%rsp), %rdi
callq 0xa466
movq 0x38(%r15), %rdi
movzbl %bpl, %ebp
pushq $0x2
popq %rsi
subq %rbp, %rsi
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0xa7f2
testb %bpl, %bpl
je 0x4fc1
addq $0x48, %r13
jmp 0x4ee6
movq (%r15), %rdi
pushq $0x10
popq %rsi
callq 0xd104
movq %r14, (%rax)
movq 0x8(%r15), %rcx
movq %rcx, 0x8(%rax)
movq %rax, 0x8(%r15)
movq 0x28(%r14), %rsi
movq %r15, %rdi
movq %rbx, %rdx
callq 0x4ebe
movq 0x30(%r14), %r14
jmp 0x4ed9
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/integrity.c
// Function: storedFileIsHealthy
static bool storedFileIsHealthy(IntegrityCheckContext *ctx,
                                const RegularFileInfo *file_info,
                                StringView unique_subpath)
{
  StringView path_to_stored_file = strAppendPath(
    ctx->repo_path, unique_subpath, ctx->reusable_buffer_allocator);

  if(!sPathExists(path_to_stored_file))
  {
    callProgressCallback(ctx, file_info->size);
    return false;
  }

  const struct stat stats = sLStat(path_to_stored_file);
  if(!S_ISREG(stats.st_mode))
  {
    callProgressCallback(ctx, file_info->size);
    return false;
  }
  if((uint64_t)stats.st_size != file_info->size)
  {
    callProgressCallback(ctx, file_info->size);
    return false;
  }

  uint8_t hash[FILE_HASH_SIZE];
  fileHash(path_to_stored_file, stats, hash, fileHashCallback, ctx);
  return memcmp(file_info->hash, hash, FILE_HASH_SIZE) == 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x170, %rsp            # imm = 0x170
movq %rsi, %rbx
movq %rdi, %r14
movq 0x28(%rdi), %rsi
movq 0x1a0(%rsp), %rax
movq %rax, 0x28(%rsp)
movaps 0x190(%rsp), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x20(%rdi), %rax
movq %rax, 0x10(%rsp)
movups 0x10(%rdi), %xmm0
movups %xmm0, (%rsp)
leaq 0xa8(%rsp), %r15
movq %r15, %rdi
callq 0xa6c6
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
callq 0x886e
testb %al, %al
je 0x5130
movq 0xb8(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0xa8(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0xe0(%rsp), %r15
movq %r15, %rdi
callq 0x8947
movl $0xf000, %eax           # imm = 0xF000
andl 0x18(%r15), %eax
cmpl $0x8000, %eax           # imm = 0x8000
jne 0x5130
movq 0x10(%rbx), %rsi
cmpq %rsi, 0x110(%rsp)
jne 0x5134
leaq 0x18(%rsp), %rdi
pushq $0x12
popq %rcx
leaq 0xe0(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movq 0xb8(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0xa8(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x61(%rip), %rsi        # 0x5165
leaq 0xc0(%rsp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0x3ab0
addq $0x18, %rbx
pushq $0x14
popq %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2320
testl %eax, %eax
sete %al
jmp 0x513e
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x514b
xorl %eax, %eax
addq $0x170, %rsp            # imm = 0x170
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/integrity.c
// Function: callProgressCallback
static void callProgressCallback(const IntegrityCheckContext *ctx,
                                 const uint64_t processed_block_size)
{
  if(ctx->progress_callback != NULL)
  {
    ctx->progress_callback(processed_block_size,
                           ctx->files_to_check_total_size,
                           ctx->callback_user_data);
  }
}

// Assembly:
movq 0x50(%rdi), %rcx
testq %rcx, %rcx
je 0x5164
movq 0x48(%rdi), %rax
movq 0x58(%rdi), %rdx
movq %rsi, %rdi
movq %rax, %rsi
jmpq *%rcx
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/metadata.c
// Function: metadataNew
Metadata *metadataNew(CR_Region *r)
{
  Metadata *metadata = CR_RegionAlloc(r, sizeof *metadata);
  metadata->r = r;

  metadata->current_backup.id = 0;
  metadata->current_backup.completion_time = 0;
  metadata->current_backup.ref_count = 0;

  metadata->backup_history_length = 0;
  metadata->backup_history = NULL;

  metadata->config_history = NULL;

  metadata->total_path_count = 0;
  metadata->path_table = strTableNew(metadata->r);
  metadata->paths = NULL;

  return metadata;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x50
popq %rsi
callq 0xd104
movq %rax, %r14
movq %rbx, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movups %xmm0, 0x18(%rax)
movups %xmm0, 0x28(%rax)
andq $0x0, 0x38(%rax)
movq %rbx, %rdi
callq 0xa764
movq %rax, 0x40(%r14)
andq $0x0, 0x48(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/metadata.c
// Function: readFullPathHistory
static PathHistory *readFullPathHistory(Allocator *region_wrapper,
                                        const FileContent content,
                                        size_t *reader_position,
                                        StringView metadata_path,
                                        Metadata *metadata)
{
  const size_t history_length =
    readSize(content, reader_position, metadata_path);

  if(history_length == 0)
  {
    return NULL;
  }

  PathHistory *first_point = readPathHistory(
    region_wrapper, content, reader_position, metadata_path, metadata);
  PathHistory *current_point = first_point;

  for(size_t counter = 1; counter < history_length; counter++)
  {
    current_point->next = readPathHistory(
      region_wrapper, content, reader_position, metadata_path, metadata);
    current_point = current_point->next;
  }

  return first_point;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %r13
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq 0x70(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x60(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x5b4b
testq %rax, %rax
je 0x549a
movq %rax, %rbp
leaq 0x60(%rsp), %rcx
movq 0x10(%rcx), %rax
movq %rax, 0x10(%rsp)
movups (%rcx), %xmm0
movups %xmm0, (%rsp)
movq %rbx, 0x20(%rsp)
movq %rbx, %rdi
movq %r12, %rbx
movq %r12, %rsi
movq %r15, %r12
movq %r15, %rdx
movq %r14, %r15
movq %r14, %rcx
movq %r13, %r14
movq %r13, %r8
callq 0x5be6
movq %rax, %r13
decq %rbp
movq %rax, 0x18(%rsp)
subq $0x1, %rbp
jb 0x5493
leaq 0x60(%rsp), %rcx
movq 0x10(%rcx), %rax
movq %rax, 0x10(%rsp)
movups (%rcx), %xmm0
movups %xmm0, (%rsp)
movq 0x20(%rsp), %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r15, %rcx
movq %r14, %r8
callq 0x5be6
movq %rax, 0x48(%r13)
movq %rax, %r13
jmp 0x5459
movq 0x18(%rsp), %rax
jmp 0x549c
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/metadata.c
// Function: metadataWrite
void metadataWrite(Metadata *metadata, StringView repo_path,
                   StringView repo_tmp_file_path,
                   StringView repo_metadata_path)
{
  RepoWriter *writer = repoWriterOpenRaw(
    repo_path, repo_tmp_file_path, str("metadata"), repo_metadata_path);

  /* Count referenced history points and update IDs. */
  size_t id_counter = metadata->current_backup.ref_count > 0;
  for(size_t index = 0; index < metadata->backup_history_length; index++)
  {
    if(metadata->backup_history[index].ref_count > 0)
    {
      metadata->backup_history[index].id = id_counter;
      id_counter = sSizeAdd(id_counter, 1);
    }
  }

  /* Write the backup history. */
  write64(id_counter, writer);

  if(metadata->current_backup.ref_count > 0)
  {
    write64(metadata->current_backup.completion_time, writer);
  }

  for(size_t index = 0; index < metadata->backup_history_length; index++)
  {
    Backup *backup = &metadata->backup_history[index];
    if(backup->ref_count > 0)
    {
      write64(backup->completion_time, writer);
    }
  }

  /* Write the config files history. */
  writePathHistoryList(metadata->config_history, writer);

  /* Write the path tree. */
  write64(metadata->total_path_count, writer);
  writePathList(metadata->paths, writer);

  /* Finish writing. */
  repoWriterClose(writer);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rdi, %rbx
leaq 0x8a0a(%rip), %rsi      # 0xe1e9
leaq 0x68(%rsp), %r14
movq %r14, %rdi
callq 0xa3d0
movq 0xf0(%rsp), %rax
movq %rax, 0x58(%rsp)
movaps 0xe0(%rsp), %xmm0
movups %xmm0, 0x48(%rsp)
movq 0x10(%r14), %rax
movq %rax, 0x40(%rsp)
movups (%r14), %xmm0
movups %xmm0, 0x30(%rsp)
movq 0xd8(%rsp), %rax
movq %rax, 0x28(%rsp)
movups 0xc8(%rsp), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0xc0(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0xb0(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x73b7
movq %rax, %r14
xorl %edi, %edi
cmpq $0x0, 0x18(%rbx)
setne %dil
pushq $0x10
popq %r12
xorl %r13d, %r13d
pushq $0x1
popq %r15
cmpq 0x20(%rbx), %r13
jae 0x5893
movq 0x28(%rbx), %rax
cmpq $0x0, (%rax,%r12)
je 0x588a
movq %rdi, -0x10(%rax,%r12)
movq %r15, %rsi
callq 0x8188
movq %rax, %rdi
incq %r13
addq $0x18, %r12
jmp 0x5869
movq %r14, %rsi
callq 0x5919
cmpq $0x0, 0x18(%rbx)
je 0x58ae
movq 0x10(%rbx), %rdi
movq %r14, %rsi
callq 0x5919
pushq $0x10
popq %r15
xorl %r12d, %r12d
cmpq 0x20(%rbx), %r12
jae 0x58dc
movq 0x28(%rbx), %rax
cmpq $0x0, (%rax,%r15)
je 0x58d3
movq -0x8(%rax,%r15), %rdi
movq %r14, %rsi
callq 0x5919
incq %r12
addq $0x18, %r15
jmp 0x58b5
movq 0x30(%rbx), %rdi
movq %r14, %rsi
callq 0x5930
movq 0x38(%rbx), %rdi
movq %r14, %rsi
callq 0x5919
movq 0x48(%rbx), %rdi
movq %r14, %rsi
callq 0x5a6e
movq %r14, %rdi
callq 0x748f
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/metadata.c
// Function: writePathList
static void writePathList(const PathNode *node_list, RepoWriter *writer)
{
  size_t list_length = 0;
  for(const PathNode *node = node_list; node != NULL; node = node->next)
  {
    if(backupHintNoPol(node->hint) != BH_not_part_of_repository)
    {
      list_length = sSizeAdd(list_length, 1);
    }
  }

  write64(list_length, writer);

  for(const PathNode *node = node_list; node != NULL; node = node->next)
  {
    if(backupHintNoPol(node->hint) != BH_not_part_of_repository)
    {
      StringView name = strSplitPath(node->path).tail;
      write64(name.length, writer);
      repoWriterWrite(name.content, name.length, writer);

      write8(node->policy, writer);
      writePathHistoryList(node->history, writer);
      writePathList(node->subnodes, writer);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
xorl %edi, %edi
movl $0x1ff, %ebp            # imm = 0x1FF
pushq $0x1
popq %r15
movq %r14, %r12
testq %r12, %r12
je 0x5ab3
movl 0x18(%r12), %eax
andl %ebp, %eax
cmpl $0x4, %eax
je 0x5aac
movq %r15, %rsi
callq 0x8188
movq %rax, %rdi
movq 0x30(%r12), %r12
jmp 0x5a90
movq %rbx, %rsi
callq 0x5919
movl $0x1ff, %ebp            # imm = 0x1FF
leaq 0x18(%rsp), %r15
testq %r14, %r14
je 0x5b3c
movl 0x18(%r14), %eax
andl %ebp, %eax
cmpl $0x4, %eax
je 0x5b36
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movq %r15, %rdi
callq 0xa4e3
movq 0x30(%rsp), %r12
movq 0x38(%rsp), %r13
movq %r13, %rdi
movq %rbx, %rsi
callq 0x5919
movq %r12, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x7436
movzbl 0x1c(%r14), %edi
movq %rbx, %rsi
callq 0x5fd3
movq 0x20(%r14), %rdi
movq %rbx, %rsi
callq 0x5930
movq 0x28(%r14), %rdi
movq %rbx, %rsi
callq 0x5a6e
movq 0x30(%r14), %r14
jmp 0x5ac5
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/metadata.c
// Function: read64
static uint64_t read64(const FileContent content, size_t *reader_position,
                       StringView metadata_path)
{
  assertBytesLeft(*reader_position, sizeof(uint64_t), content,
                  metadata_path);

  uint64_t value;
  memcpy(&value, &content.content[*reader_position], sizeof(value));
  *reader_position += sizeof(value);

  return convertEndian64(value);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %rdx
movq %rdi, %r14
movq (%rbx), %rdi
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
pushq $0x8
popq %rsi
callq 0x5b8f
movq (%rbx), %rcx
movq (%r14,%rcx), %rax
addq $0x8, %rcx
movq %rcx, (%rbx)
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/metadata.c
// Function: assertBytesLeft
static void assertBytesLeft(const size_t reader_position,
                            const size_t bytes, const FileContent content,
                            StringView metadata_path)
{
  if(sSizeAdd(reader_position, bytes) > content.size)
  {
    die("corrupted metadata: expected %zu byte%s, got %zu: \"" PRI_STR
        "\"",
        bytes, bytes == 1 ? "" : "s", content.size - reader_position,
        STR_FMT(metadata_path));
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x8188
cmpq %rbx, %rax
ja 0x5bad
popq %rbx
popq %r14
popq %r15
retq
cmpq $0x1, %r14
leaq 0x8be7(%rip), %rax      # 0xe79f
leaq 0x889e(%rip), %rdx      # 0xe45d
cmoveq %rax, %rdx
leaq 0x20(%rsp), %rax
subq %r15, %rbx
movl 0x8(%rax), %r8d
movq (%rax), %r9
leaq 0x88f1(%rip), %rdi      # 0xe4ca
movq %r14, %rsi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x3918
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/metadata.c
// Function: read8
static uint8_t read8(const FileContent content, size_t *reader_position,
                     StringView metadata_path)
{
  assertBytesLeft(*reader_position, sizeof(uint8_t), content,
                  metadata_path);

  const uint8_t byte = content.content[*reader_position];
  *reader_position += sizeof(byte);

  return byte;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %rdx
movq %rdi, %r14
movq (%rbx), %rdi
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
pushq $0x1
popq %rsi
callq 0x5b8f
movq (%rbx), %rcx
movb (%r14,%rcx), %al
incq %rcx
movq %rcx, (%rbx)
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/metadata.c
// Function: read32
static uint32_t read32(const FileContent content, size_t *reader_position,
                       StringView metadata_path)
{
  assertBytesLeft(*reader_position, sizeof(uint32_t), content,
                  metadata_path);

  uint32_t value;
  memcpy(&value, &content.content[*reader_position], sizeof(value));
  *reader_position += sizeof(value);

  return convertEndian32(value);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %rdx
movq %rdi, %r14
movq (%rbx), %rdi
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
pushq $0x4
popq %rsi
callq 0x5b8f
movq (%rbx), %rcx
movl (%r14,%rcx), %eax
addq $0x4, %rcx
movq %rcx, (%rbx)
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/nb.c
// Function: runGC
static void runGC(const Metadata *metadata, StringView repo_path,
                  const bool prepend_newline)
{
  if(prepend_newline)
  {
    printf("\n");
  }

  GCProgressCallback *gc_progress_callback = NULL;
  if(sIsTTY(stdout))
  {
    gc_progress_callback = gcProgressCallback;
    printf("\n");
    printGCProgress(false, 0, 100, 0);
  }

  const GCStatistics gc_stats = collectGarbageProgress(
    metadata, repo_path, gc_progress_callback, &(GCProgressContext){ 0 });
  printGCProgress(true, 0, 100, gc_stats.deleted_items_total_size);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
testl %esi, %esi
je 0x69d6
pushq $0xa
popq %rdi
callq 0x2050
leaq 0x50(%rsp), %r14
movq 0xd5ee(%rip), %rax      # 0x13fd0
movq (%rax), %rdi
callq 0x90d1
testb %al, %al
je 0x6a0d
pushq $0xa
popq %rdi
callq 0x2050
pushq $0x64
popq %rdx
xorl %edi, %edi
xorl %esi, %esi
xorl %ecx, %ecx
callq 0x6da9
leaq 0x36a(%rip), %rsi       # 0x6d75
jmp 0x6a0f
xorl %esi, %esi
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rdx
movaps %xmm0, (%rdx)
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x3bcd
movq %rdx, %rcx
pushq $0x1
popq %rdi
pushq $0x64
popq %rdx
xorl %esi, %esi
callq 0x6da9
addq $0x38, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/nb.c
// Function: metadataLoadFromRepo
static Metadata *metadataLoadFromRepo(CR_Region *r, StringView repo_arg,
                                      const RepoLockHint lock_hint)
{
  StringView repo_path = strStripTrailingSlashes(repo_arg);
  StringView metadata_path =
    strAppendPath(repo_path, str("metadata"), allocatorWrapRegion(r));

  if(!sPathExists(metadata_path))
  {
    die("repository has no metadata: \"" PRI_STR "\"", STR_FMT(repo_arg));
  }

  repoLock(r, repo_path, lock_hint);
  return metadataLoad(r, metadata_path);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x78, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movq 0xb0(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0xa0(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0xa4a2
leaq 0x7762(%rip), %rsi      # 0xe1e9
leaq 0x60(%rsp), %r15
movq %r15, %rdi
callq 0xa3d0
movq %rbx, %rdi
callq 0x2578
movq 0x10(%r15), %rcx
movq %rcx, 0x28(%rsp)
movups (%r15), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x10(%r14), %rcx
movq %rcx, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
leaq 0x30(%rsp), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0xa6c6
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
callq 0x886e
testb %al, %al
je 0x6b2c
movq 0x58(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl %ebp, %esi
callq 0x7718
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x51b5
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa0(%rsp), %rax
movl 0x8(%rax), %esi
movq (%rax), %rdx
leaq 0x7c0f(%rip), %rdi      # 0xe750
xorl %eax, %eax
callq 0x3918
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/nb.c
// Function: printStats
static void printStats(const char *summary, const TextColor color,
                       const ChangeDetail stats, bool *printed_stats)
{
  if(*printed_stats)
  {
    printf(", ");
  }
  else
  {
    *printed_stats = true;
  }

  printf("%s: ", summary);
  colorPrintf(stdout, color, "%zu", stats.affected_items_count);
  printf(" (");
  printHumanReadableSize(stats.affected_items_total_size);
  printf(")");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r15
cmpb $0x1, (%r8)
jne 0x6b70
leaq 0x78e3(%rip), %rdi      # 0xe44a
xorl %eax, %eax
callq 0x2150
jmp 0x6b74
movb $0x1, (%r8)
leaq 0x774f(%rip), %rdi      # 0xe2ca
movq %r15, %rsi
xorl %eax, %eax
callq 0x2150
movq 0xd444(%rip), %rax      # 0x13fd0
movq (%rax), %rdi
leaq 0x78f1(%rip), %rdx      # 0xe487
movl %ebp, %esi
movq %r14, %rcx
xorl %eax, %eax
callq 0x3830
leaq 0x7b8e(%rip), %rdi      # 0xe737
xorl %eax, %eax
callq 0x2150
movq %rbx, %rdi
callq 0x3f84
pushq $0x29
popq %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2050
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/nb.c
// Function: ensureUserConsent
static void ensureUserConsent(const char *question,
                              Allocator *reusable_buffer)
{
  while(true)
  {
    printf("%s (y/n) ", question);
    if(!sIsTTY(stdin))
    {
      printf("\n");
    }

    StringView line = str("");
    if(!sReadLine(stdin, reusable_buffer, &line) ||
       strIsEqual(line, str("n")) || strIsEqual(line, str("no")))
    {
      exit(EXIT_FAILURE);
    }
    if(strIsEqual(line, str("y")) || strIsEqual(line, str("yes")))
    {
      break;
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0xd3f0(%rip), %rbp      # 0x13fd8
leaq 0x30(%rsp), %r13
leaq 0x7f09(%rip), %r15      # 0xeafd
leaq 0x60(%rsp), %r12
leaq 0x7ae4(%rip), %rdi      # 0xe6e4
movq %r14, %rsi
xorl %eax, %eax
callq 0x2150
movq (%rbp), %rdi
callq 0x90d1
testb %al, %al
jne 0x6c1f
pushq $0xa
popq %rdi
callq 0x2050
movq %r13, %rdi
leaq 0x7b76(%rip), %rsi      # 0xe79f
callq 0xa3d0
movq (%rbp), %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x8fb5
testb %al, %al
je 0x6d6d
leaq 0x90(%rsp), %rdi
leaq 0x7a9a(%rip), %rsi      # 0xe6ee
callq 0xa3d0
movq 0xa0(%rsp), %rax
movq %rax, 0x28(%rsp)
movups 0x90(%rsp), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0xa564
testb %al, %al
jne 0x6d6d
leaq 0x78(%rsp), %rdi
leaq 0x7a51(%rip), %rsi      # 0xe6f0
callq 0xa3d0
movq 0x88(%rsp), %rax
movq %rax, 0x28(%rsp)
movups 0x78(%rsp), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0xa564
testb %al, %al
jne 0x6d6d
movq %r12, %rdi
movq %r15, %rsi
callq 0xa3d0
movq 0x70(%rsp), %rax
movq %rax, 0x28(%rsp)
movups 0x60(%rsp), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0xa564
testb %al, %al
jne 0x6d5b
leaq 0x48(%rsp), %rdi
leaq 0x79d1(%rip), %rsi      # 0xe6f3
callq 0xa3d0
movq 0x58(%rsp), %rax
movq %rax, 0x28(%rsp)
movups 0x48(%rsp), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0xa564
testb %al, %al
je 0x6bf9
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x1
popq %rdi
callq 0x23c0
// File: /workspace/github_c_makefile_star2_O2/AlxHnr[P]nano-backup/src/nb.c
// Function: shouldUpdateProgressLine
static bool shouldUpdateProgressLine(uint64_t *last_print_timestamp)
{
  const uint64_t now = sTimeMilliseconds();
  if(sUint64GetDifference(*last_print_timestamp, now) > 50)
  {
    *last_print_timestamp = now;
    return true;
  }
  return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x91c1
movq %rax, %r14
movq (%rbx), %rdi
movq %rax, %rsi
callq 0x8200
cmpq $0x33, %rax
jb 0x6ddc
movq %r14, (%rbx)
cmpq $0x33, %rax
setae %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq