// File: /workspace/github_c_makefile_star2_O3/AlxHnr[P]nano-backup/src/backup.c
// Function: finishBackupRecursively
static void finishBackupRecursively(Metadata *metadata,
                                    PathNode *node_list,
                                    StringView repo_path,
                                    StringView repo_tmp_file_path)
{
  for(PathNode *node = node_list; node != NULL; node = node->next)
  {
    /* Handle only new regular files. */
    if(node->history->state.type == PST_regular_file &&
       node->history->state.metadata.file_info.size > 0 &&
       (backupHintNoPol(node->hint) == BH_added ||
        backupHintNoPol(node->hint) == BH_symlink_to_regular ||
        backupHintNoPol(node->hint) == BH_directory_to_regular ||
        (node->hint & BH_content_changed)))
    {
      addFileToRepo(node, repo_path, repo_tmp_file_path);
    }

    finishBackupRecursively(metadata, node->subnodes, repo_path,
                            repo_tmp_file_path);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1d8, %rsp            # imm = 0x1D8
testq %rdi, %rdi
je 0x379d
movq %rdi, %rbp
movq 0x20(%rbp), %r15
cmpl $0x1, 0x8(%r15)
jne 0x3756
cmpq $0x0, 0x28(%r15)
je 0x3756
movl 0x18(%rbp), %eax
movl %eax, %ecx
andl $0x1ff, %ecx            # imm = 0x1FF
cmpl $0x9, %ecx
ja 0x374e
movl $0x284, %edx            # imm = 0x284
btl %ecx, %edx
jae 0x374e
leaq 0x228(%rsp), %rcx
movq 0x10(%rcx), %rax
movq %rax, 0x140(%rsp)
movups (%rcx), %xmm0
movaps %xmm0, 0x130(%rsp)
leaq 0x210(%rsp), %rax
movups (%rax), %xmm0
movaps %xmm0, 0xe0(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0xf0(%rsp)
movq 0x10(%rbp), %rax
movq %rax, 0x10(%rsp)
movups (%rbp), %xmm0
movups %xmm0, (%rsp)
leaq 0x148(%rsp), %rdi
callq 0x8f5d
movq 0x20(%rbp), %rbx
movq 0x20(%rbx), %rax
cmpq 0x1a0(%rsp), %rax
jne 0x37d4
cmpq $0x15, 0x28(%r15)
movl 0x18(%rbp), %eax
jb 0x36fa
btl $0x8, %eax
jb 0x33b1
addq $0x30, %r15
leaq 0x18(%rsp), %rdi
movl $0x12, %ecx
leaq 0x148(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movq 0x10(%rbp), %rax
movq %rax, 0x10(%rsp)
movups (%rbp), %xmm0
movups %xmm0, (%rsp)
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3e50
movq 0x20(%rbp), %rbx
movq 0x180(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0xc0(%rsp)
movaps 0xe0(%rsp), %xmm0
movaps %xmm0, 0xb0(%rsp)
leaq 0x18(%rbx), %rdi
movb $0x0, 0x44(%rbx)
movq 0xf0(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0xe0(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rdi, 0x120(%rsp)
callq 0x74e0
testb %al, %al
movq %rbp, 0xc8(%rsp)
movq %rbx, 0x128(%rsp)
je 0x35cb
movq 0xc0(%rsp), %rax
movq %rax, 0x110(%rsp)
movaps 0xb0(%rsp), %xmm0
movaps %xmm0, 0x100(%rsp)
movq 0x20(%rbp), %r15
leaq 0x18(%r15), %r14
movq 0x10(%rbp), %rax
movq %rax, 0x10(%rsp)
movups (%rbp), %xmm0
movups %xmm0, (%rsp)
callq 0x8833
movq %rax, 0xd8(%rsp)
movq 0xfdc4(%rip), %r12      # 0x13238
movl $0x2, %esi
movq 0xd0(%rsp), %rbx
movq %rbx, %rdi
callq 0x8790
movq %r12, %rdi
movq %rax, %rsi
callq 0xd64e
movq %rax, 0xfd9d(%rip)      # 0x13238
movq 0x10(%rbp), %rax
movq %rax, 0x28(%rsp)
movups (%rbp), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x110(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x100(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
callq 0x7698
movq %rax, %rbp
movq 0x28(%r15), %r13
testq %r13, %r13
je 0x3541
movq 0xfd57(%rip), %r12      # 0x13238
leaq (%r12,%rbx), %r14
movq 0xd0(%rsp), %r15
cmpq %r15, %r13
cmovbq %r13, %r15
movq %r12, %rdi
movq %r15, %rsi
movq 0xd8(%rsp), %rdx
callq 0x8a20
movq %r14, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x7752
movq 0xfd1c(%rip), %r12      # 0x13238
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2320
testl %eax, %eax
sete %bl
subq %r15, %r13
je 0x3538
testl %eax, %eax
je 0x34e5
testq %r13, %r13
sete %r14b
jmp 0x3546
movb $0x1, %bl
movb $0x1, %r14b
movq %rbp, %rdi
callq 0x780b
movq 0xd8(%rsp), %r15
movq %r15, %rdi
callq 0x8e4a
movl %eax, %ebp
movq %r15, %rdi
callq 0x8bc9
andb %r14b, %bpl
cmpb $0x1, %bpl
je 0x37af
testb %bl, %bl
movq 0xc8(%rsp), %rbp
jne 0x3756
movq 0x128(%rsp), %rbx
movb 0x44(%rbx), %al
cmpb $-0x1, %al
je 0x37c6
incb %al
movb %al, 0x44(%rbx)
movq 0xc0(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0xb0(%rsp), %xmm0
movups %xmm0, (%rsp)
movq 0x120(%rsp), %rdi
callq 0x74e0
testb %al, %al
jne 0x3427
movq 0x180(%rsp), %r15
movq 0x140(%rsp), %rax
movq %rax, 0x110(%rsp)
movaps 0x130(%rsp), %xmm0
movaps %xmm0, 0x100(%rsp)
movaps 0xe0(%rsp), %xmm0
movaps %xmm0, 0xb0(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0x20(%rbp), %rbx
movq 0x28(%rbx), %r14
addq $0x18, %rbx
movq 0x10(%rbp), %rax
movq %rax, 0x10(%rsp)
movups (%rbp), %xmm0
movups %xmm0, (%rsp)
callq 0x8833
movq %rax, %r12
movq 0x10(%rbp), %rax
movq %rax, 0x40(%rsp)
movups (%rbp), %xmm0
movups %xmm0, 0x30(%rsp)
movq 0x110(%rsp), %rax
movq %rax, 0x28(%rsp)
movaps 0x100(%rsp), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0xc0(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0xb0(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x785c
movq %rax, %r13
movq 0xfba9(%rip), %rdi      # 0x13238
movq %r15, %rsi
callq 0xd64e
movq %rax, 0xfb9a(%rip)      # 0x13238
testq %r14, %r14
je 0x36d6
cmpq %r15, %r14
movq %r15, %rbx
cmovbq %r14, %rbx
movq 0xfb84(%rip), %rdi      # 0x13238
movq %rbx, %rsi
movq %r12, %rdx
callq 0x8a20
movq 0xfb72(%rip), %rdi      # 0x13238
movq %rbx, %rsi
movq %r13, %rdx
callq 0x79d8
subq %rbx, %r14
jne 0x36a3
movq %r12, %rdi
callq 0x8e4a
movl %eax, %ebx
movq %r12, %rdi
callq 0x8bc9
testb %bl, %bl
jne 0x37d4
movq %r13, %rdi
callq 0x7a31
jmp 0x3756
btl $0x8, %eax
jb 0x3756
movq 0x10(%rbp), %rax
movq %rax, 0x10(%rsp)
movups (%rbp), %xmm0
movups %xmm0, (%rsp)
callq 0x8833
movq %rax, %rbx
movq 0x28(%r15), %rsi
addq $0x30, %r15
movq %r15, %rdi
movq %rax, %rdx
callq 0x8a20
movq %rbx, %rdi
callq 0x8e4a
movq %rbp, %r14
movl %eax, %ebp
movq %rbx, %rdi
callq 0x8bc9
testb %bpl, %bpl
movq %r14, %rbp
je 0x3756
jmp 0x37d4
testb %al, %al
js 0x32f1
movq 0x28(%rbp), %rdi
leaq 0x228(%rsp), %rcx
movq 0x10(%rcx), %rax
movq %rax, 0x28(%rsp)
movups (%rcx), %xmm0
movups %xmm0, 0x18(%rsp)
leaq 0x210(%rsp), %rcx
movq 0x10(%rcx), %rax
movq %rax, 0x10(%rsp)
movups (%rcx), %xmm0
movups %xmm0, (%rsp)
callq 0x3298
movq 0x30(%rbp), %rbp
testq %rbp, %rbp
jne 0x32b5
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xc8(%rsp), %rax
movl 0x8(%rax), %esi
movq (%rax), %rdx
leaq 0xa929(%rip), %rdi      # 0xe0ed
jmp 0x37e2
leaq 0xa8ff(%rip), %rdi      # 0xe0cc
xorl %eax, %eax
callq 0x3ca8
movl 0x8(%rbp), %esi
movq (%rbp), %rdx
leaq 0xa8c3(%rip), %rdi      # 0xe0a5
xorl %eax, %eax
callq 0x3ca8