// File: /workspace/github_c_makefile_star2_O1/AlxHnr[P]nano-backup/src/informations.c
// Function: recursePrintOverTree
static ChangeSummary recursePrintOverTree(const Metadata *metadata,
                                          const PathNode *path_list,
                                          RegexList *summarize_expressions,
                                          const bool print)
{
  ChangeSummary changes = { 0 };

  for(const PathNode *node = path_list; node != NULL; node = node->next)
  {
    ChangeSummary summary;
    const bool summarize = node->policy != BPOL_none &&
      getExistingState(node)->type == PST_directory &&
      matchesRegexList(node, summarize_expressions);
    /* Once a summarize expression matched, its subnodes should not be
       tested anymore. */
    RegexList *expressions_to_pass_down =
      summarize ? NULL : summarize_expressions;

    if(print && summarize)
    {
      summary = recursePrintOverTree(metadata, node->subnodes,
                                     expressions_to_pass_down, false);
      if(node->hint > BH_unchanged || containsChanges(&summary))
      {
        printNode(node, &summary, summarize);
      }
    }
    else if(print && node->hint > BH_unchanged &&
            !(node->policy == BPOL_none &&
              (node->hint == BH_added ||
               (node->hint >= BH_owner_changed &&
                node->hint <= BH_timestamp_changed))))
    {
      const bool print_subnodes =
        backupHintNoPol(node->hint) > BH_other_to_directory;

      summary =
        recursePrintOverTree(metadata, node->subnodes,
                             expressions_to_pass_down, print_subnodes);

      if(!(node->hint == BH_timestamp_changed &&
           summary.affects_parent_timestamp))
      {
        printNode(node, &summary, summarize);
      }
    }
    else
    {
      summary = recursePrintOverTree(metadata, node->subnodes,
                                     expressions_to_pass_down, print);
    }

    addNode(node, &changes, summary.affects_parent_timestamp);
    changeSummaryAdd(&changes, &summary);
  }

  return changes;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x30(%rdi)
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
testq %rsi, %rsi
je 0x4a6b
movl %ecx, %r13d
movq %rdx, %r14
movq %rsi, %r12
testq %rdx, %rdx
setne 0x23(%rsp)
movl %ecx, 0x24(%rsp)
cmpl $0x0, 0x1c(%r12)
je 0x468d
movq 0x20(%r12), %rax
cmpl $0x0, 0x8(%rax)
je 0x4691
movq %rax, %rcx
jmp 0x469a
xorl %ebp, %ebp
jmp 0x4707
movq 0x48(%rax), %rcx
testq %rcx, %rcx
je 0x4688
testq %r14, %r14
setne %al
cmpl $0x3, 0x8(%rcx)
sete %bpl
andb %al, %bpl
cmpb $0x1, %bpl
jne 0x4707
movq (%r14), %rdi
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
callq 0x9f28
movb 0x23(%rsp), %cl
movl %ecx, %ebp
movq %r14, %rbx
testb %al, %al
jne 0x4703
movq 0x30(%rbx), %rbx
testq %rbx, %rbx
setne %bpl
je 0x4707
movq (%rbx), %rdi
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
callq 0x9f28
jmp 0x46d5
movb $0x1, 0x28(%rbx)
testb %bpl, %bpl
movq %r14, %rdx
movl $0x0, %eax
cmovneq %rax, %rdx
movl %ebp, %eax
andb %r13b, %al
cmpb $0x1, %al
jne 0x4750
movq 0x28(%r12), %rsi
leaq 0x28(%rsp), %rdi
xorl %ecx, %ecx
callq 0x4630
cmpl $0x1, 0x18(%r12)
jbe 0x4900
movq %r12, %rdi
leaq 0x28(%rsp), %rsi
movl $0x1, %edx
callq 0x4ae8
jmp 0x4797
testb %r13b, %r13b
je 0x4784
movl 0x18(%r12), %eax
cmpl $0x2, %eax
jb 0x4784
cmpl $0x0, 0x1c(%r12)
jne 0x4a2b
cmpl $0x2, %eax
sete %cl
leal -0x10(%rax), %esi
cmpl $0x31, %esi
setb %sil
orb %cl, %sil
je 0x4a2b
movq 0x28(%r12), %rsi
movzbl %r13b, %ecx
leaq 0x28(%rsp), %rdi
callq 0x4630
movb 0x71(%rsp), %bl
movl 0x18(%r12), %esi
movq 0x20(%r12), %rax
cmpl $0x0, 0x8(%rax)
je 0x47b0
movq %rax, %rcx
jmp 0x47b9
movq 0x48(%rax), %rcx
testq %rcx, %rcx
je 0x47ab
cmpl $0x1, 0x8(%rcx)
jne 0x47c5
movq 0x28(%rcx), %rbp
jmp 0x47c7
xorl %ebp, %ebp
movl %esi, %r13d
andl $0x1ff, %r13d           # imm = 0x1FF
cmpl $0x4, %r13d
je 0x494c
cmpl $0x3, %r13d
je 0x480d
cmpl $0x2, %r13d
jne 0x498b
movq (%r15), %rdi
movl $0x1, %esi
callq 0x8924
movq %rax, (%r15)
movq 0x8(%r15), %rdi
movq %rbp, %rsi
callq 0x8960
movq %rax, 0x8(%r15)
jmp 0x482f
movq 0x10(%r15), %rdi
movl $0x1, %esi
callq 0x8924
movq %rax, 0x10(%r15)
movq 0x18(%r15), %rdi
movq %rbp, %rsi
callq 0x8960
movq %rax, 0x18(%r15)
movb $0x1, 0x49(%r15)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %r13
movq (%r15), %rdi
callq 0x8924
movq %rax, (%r15)
movq 0x8(%r15), %rdi
movq %r13, %rsi
callq 0x8960
movq %rax, 0x8(%r15)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %r13
movq 0x10(%r15), %rdi
callq 0x8924
movq %rax, 0x10(%r15)
movq 0x18(%r15), %rdi
movq %r13, %rsi
callq 0x8960
movq %rax, 0x18(%r15)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %r13
movq 0x20(%r15), %rdi
callq 0x8924
movq %rax, 0x20(%r15)
movq 0x28(%r15), %rdi
movq %r13, %rsi
callq 0x8960
movq %rax, 0x28(%r15)
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %r13
movq 0x30(%r15), %rdi
callq 0x8924
movq %rax, 0x30(%r15)
movq 0x38(%r15), %rdi
movq %r13, %rsi
callq 0x8960
movq %rax, 0x38(%r15)
movq 0x40(%r15), %rdi
movq 0x68(%rsp), %rsi
callq 0x8924
movq %rax, 0x40(%r15)
movb 0x70(%rsp), %al
orb %al, 0x48(%r15)
movq 0x30(%r12), %r12
testq %r12, %r12
movl 0x24(%rsp), %r13d
jne 0x4675
jmp 0x4a6b
cmpq $0x0, 0x28(%rsp)
jne 0x473c
cmpq $0x0, 0x38(%rsp)
jne 0x473c
cmpq $0x0, 0x48(%rsp)
jne 0x473c
cmpq $0x0, 0x58(%rsp)
jne 0x473c
cmpq $0x0, 0x68(%rsp)
jne 0x473c
cmpb $0x1, 0x70(%rsp)
je 0x473c
jmp 0x4797
movq 0x20(%r15), %rdi
movl $0x1, %esi
callq 0x8924
movq %rax, 0x20(%r15)
movq 0x28(%r15), %rdi
movq %rbp, %rsi
callq 0x8960
movq %rax, 0x28(%r15)
cmpl $0x2, 0x1c(%r12)
jne 0x4834
testb $0x2, 0x19(%r12)
je 0x482f
jmp 0x4834
testb %sil, %sil
js 0x49f4
cmpl $0x2, %esi
jb 0x4834
leal -0x41(%rsi), %eax
cmpl $-0x31, %eax
jb 0x49ad
cmpl $0x0, 0x1c(%r12)
je 0x4834
movb $0x1, 0x48(%r15)
addl $-0x5, %r13d
cmpl $0x9, %r13d
setb %al
orb %al, 0x49(%r15)
movq %r15, %rdi
callq 0x5260
cmpl $0x40, 0x18(%r12)
jne 0x4834
testb %bl, %bl
jne 0x4834
movq 0x40(%r15), %rdi
movl $0x1, %esi
callq 0x8924
movq %rax, 0x40(%r15)
jmp 0x4834
movq 0x30(%r15), %rdi
movl $0x1, %esi
callq 0x8924
movq %rax, 0x30(%r15)
movq 0x38(%r15), %rdi
movq %rbp, %rsi
callq 0x8960
movq %rax, 0x38(%r15)
movb $0x1, 0x49(%r15)
movq %r15, %rdi
movl %r13d, %esi
callq 0x5260
jmp 0x4834
andl $0x1fe, %eax            # imm = 0x1FE
xorl %ecx, %ecx
cmpl $0xe, %eax
setae %cl
movq 0x28(%r12), %rsi
leaq 0x28(%rsp), %rdi
callq 0x4630
cmpl $0x40, 0x18(%r12)
jne 0x4a5a
cmpb $0x0, 0x71(%rsp)
jne 0x4797
movzbl %bpl, %edx
movq %r12, %rdi
leaq 0x28(%rsp), %rsi
jmp 0x4749
movq %r15, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq