// File: /workspace/github_c_makefile_star2_O2/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 $0x88, %rsp
movq %rdx, %r14
movq %rsi, %r12
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)
leaq 0x20(%rdi), %rax
movq %rax, 0x30(%rsp)
leaq 0x10(%rdi), %rbp
leaq 0x30(%rdi), %rax
movq %rax, 0x28(%rsp)
movl %ecx, 0x20(%rsp)
movzbl %cl, %eax
movl %eax, 0x24(%rsp)
testq %r12, %r12
je 0x454b
cmpl $0x0, 0x1c(%r12)
je 0x42e6
movq 0x20(%r12), %rax
cmpl $0x0, 0x8(%rax)
je 0x42a6
movq %rax, %rcx
jmp 0x42af
movq 0x48(%rax), %rcx
testq %rcx, %rcx
je 0x42a1
cmpl $0x3, 0x8(%rcx)
jne 0x42e6
movq %r14, %rbx
testq %rbx, %rbx
je 0x42e6
movq (%rbx), %rdi
movq 0x10(%r12), %rax
movq %rax, 0x10(%rsp)
movups (%r12), %xmm0
movups %xmm0, (%rsp)
callq 0x9418
testb %al, %al
jne 0x4364
movq 0x30(%rbx), %rbx
jmp 0x42b8
movq %r14, %rdx
cmpb $0x0, 0x20(%rsp)
je 0x43ac
movl 0x18(%r12), %eax
movq %r14, %rdx
cmpl $0x2, %eax
jb 0x43ac
cmpl $0x0, 0x1c(%r12)
jne 0x4327
cmpl $0x2, %eax
sete %cl
leal -0x10(%rax), %edx
cmpl $0x31, %edx
setb %dl
orb %cl, %dl
movq %r14, %rdx
jne 0x43ac
andl $0x1fe, %eax            # imm = 0x1FE
xorl %ecx, %ecx
cmpl $0xe, %eax
setae %cl
movq 0x28(%r12), %rsi
leaq 0x38(%rsp), %rdi
movq %r14, %rdx
callq 0x4234
cmpl $0x40, 0x18(%r12)
jne 0x4358
cmpb $0x0, 0x81(%rsp)
jne 0x43bf
movq %r12, %rdi
leaq 0x38(%rsp), %rsi
xorl %edx, %edx
jmp 0x43a3
movb $0x1, 0x28(%rbx)
cmpb $0x0, 0x20(%rsp)
je 0x43aa
movq 0x28(%r12), %rsi
leaq 0x38(%rsp), %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4234
cmpl $0x1, 0x18(%r12)
ja 0x4398
leaq 0x38(%rsp), %rdi
callq 0x4560
testb %al, %al
je 0x43bf
movq %r12, %rdi
leaq 0x38(%rsp), %rsi
pushq $0x1
popq %rdx
callq 0x474e
jmp 0x43bf
xorl %edx, %edx
movq 0x28(%r12), %rsi
leaq 0x38(%rsp), %rdi
movl 0x24(%rsp), %ecx
callq 0x4234
movb 0x81(%rsp), %r13b
movl 0x18(%r12), %esi
movq 0x20(%r12), %rax
cmpl $0x0, 0x8(%rax)
je 0x43dc
movq %rax, %rcx
jmp 0x43e5
movq 0x48(%rax), %rcx
testq %rcx, %rcx
je 0x43d7
cmpl $0x1, 0x8(%rcx)
jne 0x43f1
movq 0x28(%rcx), %rdx
jmp 0x43f3
xorl %edx, %edx
movl %esi, %ebx
andl $0x1ff, %ebx            # imm = 0x1FF
cmpl $0x4, %ebx
je 0x449a
cmpl $0x3, %ebx
je 0x4417
cmpl $0x2, %ebx
jne 0x44c4
movq %r15, %rdi
jmp 0x441a
movq %rbp, %rdi
pushq $0x1
popq %rsi
callq 0x4d67
movb $0x1, 0x49(%r15)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq %r15, %rdi
callq 0x4d67
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq %rbp, %rdi
callq 0x4d67
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
movq 0x30(%rsp), %rdi
callq 0x4d67
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
movq 0x28(%rsp), %rdi
callq 0x4d67
movq 0x40(%r15), %rdi
movq 0x78(%rsp), %rsi
callq 0x8188
movq %rax, 0x40(%r15)
movb 0x80(%rsp), %al
orb %al, 0x48(%r15)
movq 0x30(%r12), %r12
jmp 0x4285
movq 0x30(%rsp), %rdi
pushq $0x1
popq %rsi
callq 0x4d67
cmpl $0x2, 0x1c(%r12)
jne 0x4427
testb $0x2, 0x19(%r12)
je 0x4422
jmp 0x4427
testb %sil, %sil
js 0x452a
cmpl $0x2, %esi
jb 0x4427
leal -0x41(%rsi), %eax
cmpl $-0x31, %eax
jb 0x44e6
cmpl $0x0, 0x1c(%r12)
je 0x4427
movb $0x1, 0x48(%r15)
addl $-0x5, %ebx
cmpl $0x9, %ebx
setb %al
orb %al, 0x49(%r15)
movq %r15, %rdi
callq 0x4d94
cmpl $0x40, 0x18(%r12)
jne 0x4427
testb %r13b, %r13b
jne 0x4427
movq 0x40(%r15), %rdi
pushq $0x1
popq %rsi
callq 0x8188
movq %rax, 0x40(%r15)
jmp 0x4427
movq 0x28(%rsp), %rdi
pushq $0x1
popq %rsi
callq 0x4d67
movb $0x1, 0x49(%r15)
movq %r15, %rdi
movl %ebx, %esi
callq 0x4d94
jmp 0x4427
movq %r15, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq