// File: /workspace/github_c_makefile_star2_O0/AlxHnr[P]nano-backup/src/informations.c
// Function: printNode
static void printNode(const PathNode *node, const ChangeSummary *summary,
                      const bool summarize_subnode_changes)
{
  const BackupHint hint = backupHintNoPol(node->hint);

  if(hint == BH_added)
  {
    colorPrintf(stdout, TC_green_bold, "++ ");
    printNodePath(node, TC_green);
  }
  else if(hint == BH_removed)
  {
    colorPrintf(stdout, TC_red_bold, "-- ");
    printNodePath(node, TC_red);
  }
  else if(hint == BH_not_part_of_repository)
  {
    if(node->policy == BPOL_mirror)
    {
      colorPrintf(stdout, TC_red_bold, "xx ");
      printNodePath(node, TC_red);
    }
    else
    {
      colorPrintf(stdout, TC_blue_bold, "?? ");
      printNodePath(node, TC_blue);
    }
  }
  else if(hint >= BH_regular_to_symlink && hint <= BH_other_to_directory)
  {
    colorPrintf(stdout, TC_cyan_bold, "<> ");
    printNodePath(node, TC_cyan);
  }
  else if(hint & BH_content_changed)
  {
    colorPrintf(stdout, TC_yellow_bold, "!! ");
    printNodePath(node, TC_yellow);
  }
  else if(summarize_subnode_changes && containsContentChanges(summary))
  {
    colorPrintf(stdout, TC_yellow_bold, "!! ");
    printNodePath(node, TC_yellow);
    printf("...");
  }
  else if(hint != BH_none)
  {
    colorPrintf(stdout, TC_magenta_bold, "@@ ");
    printNodePath(node, TC_magenta);

    if(summarize_subnode_changes && summary->changed_attributes > 0)
    {
      printf("...");
    }
  }
  else
  {
    colorPrintf(stdout, TC_blue_bold, ":: ");
    printNodePath(node, TC_blue);
  }

  bool has_printed_details = false;

  if(hint >= BH_regular_to_symlink && hint <= BH_other_to_directory)
  {
    printPrefix(&has_printed_details);

    switch(hint)
    {
      case BH_regular_to_symlink: printf("File -> Symlink"); break;
      case BH_regular_to_directory: printf("File -> Directory"); break;
      case BH_symlink_to_regular: printf("Symlink -> File"); break;
      case BH_symlink_to_directory: printf("Symlink -> Directory"); break;
      case BH_directory_to_regular: printf("Directory -> File"); break;
      case BH_directory_to_symlink: printf("Directory -> Symlink"); break;
      case BH_other_to_regular: printf("Other -> File"); break;
      case BH_other_to_symlink: printf("Other -> Symlink"); break;
      case BH_other_to_directory: printf("Other -> Directory"); break;
      default: /* ignore */ break;
    }
  }

  if(node->hint & BH_owner_changed)
  {
    printPrefix(&has_printed_details);
    printf("owner");
  }
  if(node->hint & BH_permissions_changed)
  {
    printPrefix(&has_printed_details);
    printf("permissions");
  }

  if(node->history->state.type != PST_symlink &&
     !(node->hint & BH_timestamp_changed) !=
       !(node->hint & BH_content_changed) &&
     !summary->affects_parent_timestamp)
  {
    printPrefix(&has_printed_details);
    printf("%stimestamp",
           (node->hint & BH_timestamp_changed) ? "" : "same ");
  }

  if(node->hint & BH_policy_changed)
  {
    printPrefix(&has_printed_details);
    printf("policy changed");
  }
  if(node->hint & BH_loses_history)
  {
    printPrefix(&has_printed_details);
    printf("looses history");
  }

  const PathState *existing_state = getExistingState(node);
  if(existing_state->type == PST_directory)
  {
    if(hint == BH_added || hint == BH_regular_to_directory ||
       hint == BH_symlink_to_directory)
    {
      printPrefix(&has_printed_details);
      printChangeDetail(summary->new_items, "+");
    }
    else if(hint == BH_removed)
    {
      printPrefix(&has_printed_details);
      printChangeDetail(summary->removed_items, "-");
    }
    else if(hint == BH_not_part_of_repository)
    {
      printPrefix(&has_printed_details);
      printChangeDetail(summary->lost_items, "-");
    }
    else if(summarize_subnode_changes)
    {
      printSummarizedDetail(summary, &has_printed_details);
    }
  }
  else if(hint == BH_directory_to_regular ||
          hint == BH_directory_to_symlink)
  {
    ChangeDetail lost_files = {
      .affected_items_count = 0,
      .affected_items_total_size = 0,
    };
    changeDetailAdd(&lost_files,
                    summary->removed_items.affected_items_count,
                    summary->removed_items.affected_items_total_size);
    changeDetailAdd(&lost_files, summary->lost_items.affected_items_count,
                    summary->lost_items.affected_items_total_size);
    printPrefix(&has_printed_details);
    printChangeDetail(lost_files, "-");
  }

  if(has_printed_details)
  {
    printf(")");
  }

  if(existing_state->type == PST_symlink)
  {
    colorPrintf(stdout, TC_magenta, " -> ");
    colorPrintf(stdout, TC_cyan, "" PRI_STR "",
                STR_FMT(existing_state->metadata.symlink_target));
  }

  printf("\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
movq -0x8(%rbp), %rax
movl 0x18(%rax), %eax
andl $0x1ff, %eax            # imm = 0x1FF
movl %eax, -0x18(%rbp)
cmpl $0x2, -0x18(%rbp)
jne 0x5aac
movq 0x2353d(%rip), %rax     # 0x28fc0
movq (%rax), %rdi
movl $0x5, %esi
leaq 0x1e850(%rip), %rdx     # 0x242e2
movb $0x0, %al
callq 0x4590
movq -0x8(%rbp), %rdi
movl $0x4, %esi
callq 0x6300
jmp 0x5ca1
cmpl $0x3, -0x18(%rbp)
jne 0x5ae2
movq 0x23507(%rip), %rax     # 0x28fc0
movq (%rax), %rdi
movl $0x3, %esi
leaq 0x1e81e(%rip), %rdx     # 0x242e6
movb $0x0, %al
callq 0x4590
movq -0x8(%rbp), %rdi
movl $0x2, %esi
callq 0x6300
jmp 0x5c9f
cmpl $0x4, -0x18(%rbp)
jne 0x5b4f
movq -0x8(%rbp), %rax
cmpl $0x2, 0x1c(%rax)
jne 0x5b1f
movq 0x234c7(%rip), %rax     # 0x28fc0
movq (%rax), %rdi
movl $0x3, %esi
leaq 0x1e7e2(%rip), %rdx     # 0x242ea
movb $0x0, %al
callq 0x4590
movq -0x8(%rbp), %rdi
movl $0x2, %esi
callq 0x6300
jmp 0x5b4a
movq 0x2349a(%rip), %rax     # 0x28fc0
movq (%rax), %rdi
movl $0x9, %esi
leaq 0x1e7b9(%rip), %rdx     # 0x242ee
movb $0x0, %al
callq 0x4590
movq -0x8(%rbp), %rdi
movl $0x8, %esi
callq 0x6300
jmp 0x5c9d
cmpl $0x5, -0x18(%rbp)
jb 0x5b8b
cmpl $0xd, -0x18(%rbp)
ja 0x5b8b
movq 0x2345e(%rip), %rax     # 0x28fc0
movq (%rax), %rdi
movl $0xd, %esi
leaq 0x1e781(%rip), %rdx     # 0x242f2
movb $0x0, %al
callq 0x4590
movq -0x8(%rbp), %rdi
movl $0xc, %esi
callq 0x6300
jmp 0x5c9b
movl -0x18(%rbp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x5bc8
movq 0x23421(%rip), %rax     # 0x28fc0
movq (%rax), %rdi
movl $0x7, %esi
leaq 0x1e748(%rip), %rdx     # 0x242f6
movb $0x0, %al
callq 0x4590
movq -0x8(%rbp), %rdi
movl $0x6, %esi
callq 0x6300
jmp 0x5c99
testb $0x1, -0x11(%rbp)
je 0x5c18
movq -0x10(%rbp), %rdi
callq 0x56b0
testb $0x1, %al
jne 0x5bdd
jmp 0x5c18
movq 0x233dc(%rip), %rax     # 0x28fc0
movq (%rax), %rdi
movl $0x7, %esi
leaq 0x1e703(%rip), %rdx     # 0x242f6
movb $0x0, %al
callq 0x4590
movq -0x8(%rbp), %rdi
movl $0x6, %esi
callq 0x6300
leaq 0x1e6eb(%rip), %rdi     # 0x242fa
movb $0x0, %al
callq 0x2130
jmp 0x5c97
cmpl $0x0, -0x18(%rbp)
je 0x5c6a
movq 0x2339b(%rip), %rax     # 0x28fc0
movq (%rax), %rdi
movl $0xb, %esi
leaq 0x1e6ca(%rip), %rdx     # 0x242fe
movb $0x0, %al
callq 0x4590
movq -0x8(%rbp), %rdi
movl $0xa, %esi
callq 0x6300
testb $0x1, -0x11(%rbp)
je 0x5c68
movq -0x10(%rbp), %rax
cmpq $0x0, 0x40(%rax)
jbe 0x5c68
leaq 0x1e699(%rip), %rdi     # 0x242fa
movb $0x0, %al
callq 0x2130
jmp 0x5c95
movq 0x2334f(%rip), %rax     # 0x28fc0
movq (%rax), %rdi
movl $0x9, %esi
leaq 0x1e682(%rip), %rdx     # 0x24302
movb $0x0, %al
callq 0x4590
movq -0x8(%rbp), %rdi
movl $0x8, %esi
callq 0x6300
jmp 0x5c97
jmp 0x5c99
jmp 0x5c9b
jmp 0x5c9d
jmp 0x5c9f
jmp 0x5ca1
movb $0x0, -0x19(%rbp)
cmpl $0x5, -0x18(%rbp)
jb 0x5d82
cmpl $0xd, -0x18(%rbp)
ja 0x5d82
leaq -0x19(%rbp), %rdi
callq 0x6390
movl -0x18(%rbp), %eax
addl $-0x5, %eax
movl %eax, %ecx
movq %rcx, -0x40(%rbp)
subl $0x8, %eax
ja 0x5d7e
movq -0x40(%rbp), %rax
leaq 0x1e52e(%rip), %rcx     # 0x24210
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x1e614(%rip), %rdi     # 0x24306
movb $0x0, %al
callq 0x2130
jmp 0x5d80
leaq 0x1e611(%rip), %rdi     # 0x24316
movb $0x0, %al
callq 0x2130
jmp 0x5d80
leaq 0x1e613(%rip), %rdi     # 0x24328
movb $0x0, %al
callq 0x2130
jmp 0x5d80
leaq 0x1e613(%rip), %rdi     # 0x24338
movb $0x0, %al
callq 0x2130
jmp 0x5d80
leaq 0x1e618(%rip), %rdi     # 0x2434d
movb $0x0, %al
callq 0x2130
jmp 0x5d80
leaq 0x1e61a(%rip), %rdi     # 0x2435f
movb $0x0, %al
callq 0x2130
jmp 0x5d80
leaq 0x1e61f(%rip), %rdi     # 0x24374
movb $0x0, %al
callq 0x2130
jmp 0x5d80
leaq 0x1e61d(%rip), %rdi     # 0x24382
movb $0x0, %al
callq 0x2130
jmp 0x5d80
leaq 0x1e61e(%rip), %rdi     # 0x24393
movb $0x0, %al
callq 0x2130
jmp 0x5d80
jmp 0x5d80
jmp 0x5d82
movq -0x8(%rbp), %rax
movl 0x18(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x5da8
leaq -0x19(%rbp), %rdi
callq 0x6390
leaq 0x1e605(%rip), %rdi     # 0x243a6
movb $0x0, %al
callq 0x2130
movq -0x8(%rbp), %rax
movl 0x18(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x5dce
leaq -0x19(%rbp), %rdi
callq 0x6390
leaq 0x1e5e5(%rip), %rdi     # 0x243ac
movb $0x0, %al
callq 0x2130
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
cmpl $0x2, 0x8(%rax)
je 0x5e53
movq -0x8(%rbp), %rax
movl 0x18(%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
movq -0x8(%rbp), %rcx
movl 0x18(%rcx), %ecx
andl $0x80, %ecx
cmpl $0x0, %ecx
setne %cl
xorb $-0x1, %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0x5e53
movq -0x10(%rbp), %rax
testb $0x1, 0x49(%rax)
jne 0x5e53
leaq -0x19(%rbp), %rdi
callq 0x6390
movq -0x8(%rbp), %rax
movl 0x18(%rax), %ecx
andl $0x40, %ecx
leaq 0x1e58d(%rip), %rsi     # 0x243c4
leaq 0x1e96c(%rip), %rax     # 0x247aa
cmpl $0x0, %ecx
cmovneq %rax, %rsi
leaq 0x1e56c(%rip), %rdi     # 0x243b8
movb $0x0, %al
callq 0x2130
movq -0x8(%rbp), %rax
movl 0x18(%rax), %eax
andl $0x200, %eax            # imm = 0x200
cmpl $0x0, %eax
je 0x5e7b
leaq -0x19(%rbp), %rdi
callq 0x6390
leaq 0x1e556(%rip), %rdi     # 0x243ca
movb $0x0, %al
callq 0x2130
movq -0x8(%rbp), %rax
movl 0x18(%rax), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x5ea3
leaq -0x19(%rbp), %rdi
callq 0x6390
leaq 0x1e53d(%rip), %rdi     # 0x243d9
movb $0x0, %al
callq 0x2130
movq -0x8(%rbp), %rdi
callq 0x5970
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
cmpl $0x3, (%rax)
jne 0x5f5e
cmpl $0x2, -0x18(%rbp)
je 0x5ecf
cmpl $0x6, -0x18(%rbp)
je 0x5ecf
cmpl $0x8, -0x18(%rbp)
jne 0x5ef1
leaq -0x19(%rbp), %rdi
callq 0x6390
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
leaq 0x1e4fe(%rip), %rdx     # 0x243e8
callq 0x63d0
jmp 0x5f5c
cmpl $0x3, -0x18(%rbp)
jne 0x5f1a
leaq -0x19(%rbp), %rdi
callq 0x6390
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
movq 0x18(%rax), %rsi
leaq 0x1e4d7(%rip), %rdx     # 0x243ea
callq 0x63d0
jmp 0x5f5a
cmpl $0x4, -0x18(%rbp)
jne 0x5f43
leaq -0x19(%rbp), %rdi
callq 0x6390
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdi
movq 0x28(%rax), %rsi
leaq 0x1e4ae(%rip), %rdx     # 0x243ea
callq 0x63d0
jmp 0x5f58
testb $0x1, -0x11(%rbp)
je 0x5f56
movq -0x10(%rbp), %rdi
leaq -0x19(%rbp), %rsi
callq 0x6460
jmp 0x5f58
jmp 0x5f5a
jmp 0x5f5c
jmp 0x5fcb
cmpl $0x9, -0x18(%rbp)
je 0x5f6a
cmpl $0xa, -0x18(%rbp)
jne 0x5fc9
leaq -0x38(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x2170
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdx
leaq -0x38(%rbp), %rdi
callq 0x6570
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rsi
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rdx
leaq -0x38(%rbp), %rdi
callq 0x6570
leaq -0x19(%rbp), %rdi
callq 0x6390
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
leaq 0x1e426(%rip), %rdx     # 0x243ea
callq 0x63d0
jmp 0x5fcb
testb $0x1, -0x19(%rbp)
je 0x5fdf
leaq 0x1e414(%rip), %rdi     # 0x243ec
movb $0x0, %al
callq 0x2130
movq -0x28(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x6034
movq 0x22fd1(%rip), %rax     # 0x28fc0
movq (%rax), %rdi
movl $0xa, %esi
leaq 0x1e3f0(%rip), %rdx     # 0x243ee
movb $0x0, %al
callq 0x4590
movq 0x22fb4(%rip), %rax     # 0x28fc0
movq (%rax), %rdi
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movl %eax, %ecx
movq -0x28(%rbp), %rax
movq 0x10(%rax), %r8
movl $0xc, %esi
leaq 0x1e236(%rip), %rdx     # 0x24263
movb $0x0, %al
callq 0x4590
leaq 0x1e76e(%rip), %rdi     # 0x247a9
movb $0x0, %al
callq 0x2130
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)