// File: /workspace/github_c_makefile_star2_O1/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 $0x1b8, %rsp            # imm = 0x1B8
testq %rdi, %rdi
je 0x38a6
movq %rdi, %r13
leaq 0x208(%rsp), %rbx
leaq 0x1f0(%rsp), %r14
movq 0x20(%r13), %r15
cmpl $0x1, 0x8(%r15)
jne 0x386e
cmpq $0x0, 0x28(%r15)
je 0x386e
movl 0x18(%r13), %eax
movl %eax, %ecx
andl $0x1ff, %ecx            # imm = 0x1FF
cmpl $0x9, %ecx
ja 0x3866
movl $0x284, %edx            # imm = 0x284
btl %ecx, %edx
jae 0x3866
movq 0x10(%r14), %rax
movq %rax, 0xf0(%rsp)
movups (%r14), %xmm0
movaps %xmm0, 0xe0(%rsp)
movq 0x10(%r13), %rax
movq %rax, 0x10(%rsp)
movups (%r13), %xmm0
movups %xmm0, (%rsp)
leaq 0x128(%rsp), %rdi
callq 0x9142
movq 0x20(%r13), %rax
movq 0x20(%rax), %rax
cmpq 0x180(%rsp), %rax
jne 0x38dd
cmpq $0x15, 0x28(%r15)
movl 0x18(%r13), %eax
jb 0x380a
btl $0x8, %eax
jb 0x3493
addq $0x30, %r15
leaq 0x18(%rsp), %rdi
movl $0x12, %ecx
leaq 0x128(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movq 0x10(%r13), %rax
movq %rax, 0x10(%rsp)
movups (%r13), %xmm0
movups %xmm0, (%rsp)
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3f6c
movq 0x160(%rsp), %rbp
movaps 0xe0(%rsp), %xmm0
movaps %xmm0, 0xb0(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0x20(%r13), %r15
leaq 0x18(%r15), %rdi
movb $0x0, 0x44(%r15)
movq 0xf0(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0xe0(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rdi, 0x120(%rsp)
callq 0x76b4
movb %al, 0xaf(%rsp)
testb %al, %al
movq %r13, 0xd0(%rsp)
movq %r15, 0x118(%rsp)
je 0x36ad
movq 0xc0(%rsp), %rax
movq %rax, 0x110(%rsp)
movaps 0xb0(%rsp), %xmm0
movaps %xmm0, 0x100(%rsp)
movq 0x20(%r13), %rbx
leaq 0x18(%rbx), %r14
movq 0x10(%r13), %rax
movq %rax, 0x10(%rsp)
movups (%r13), %xmm0
movups %xmm0, (%rsp)
callq 0x89df
movq %rax, 0xd8(%rsp)
movq 0xfcdd(%rip), %r12      # 0x13238
movl $0x2, %esi
movq %rbp, %rdi
callq 0x893c
movq %r12, %rdi
movq %rax, %rsi
callq 0xda26
movq %rax, 0xfcbe(%rip)      # 0x13238
movq 0x10(%r13), %rax
movq %rax, 0x28(%rsp)
movups (%r13), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x110(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x100(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
callq 0x7867
movq %rax, %r14
movq 0x28(%rbx), %rbx
testq %rbx, %rbx
je 0x3624
movq 0xfc77(%rip), %r12      # 0x13238
addq %rbp, %r12
cmpq %rbp, %rbx
movq %rbp, %r15
cmovbq %rbx, %r15
movq 0xfc63(%rip), %rdi      # 0x13238
movq %r15, %rsi
movq 0xd8(%rsp), %rdx
callq 0x8bcc
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x7922
movq 0xfc3e(%rip), %rdi      # 0x13238
movq %r12, %rsi
movq %r15, %rdx
callq 0x2320
testl %eax, %eax
sete %r13b
subq %r15, %rbx
je 0x3614
testl %eax, %eax
je 0x35c4
testq %rbx, %rbx
sete %bl
movq 0x118(%rsp), %r15
jmp 0x3629
movb $0x1, %r13b
movb $0x1, %bl
movq %r14, %rdi
callq 0x79db
movq 0xd8(%rsp), %r12
movq %r12, %rdi
callq 0x9018
movl %eax, %r14d
movq %r12, %rdi
callq 0x8d89
andb %bl, %r14b
cmpb $0x1, %r14b
je 0x38b8
testb %r13b, %r13b
movq 0xd0(%rsp), %r13
jne 0x36ad
movb 0x44(%r15), %al
cmpb $-0x1, %al
je 0x38cf
incb %al
movb %al, 0x44(%r15)
movq 0xc0(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0xb0(%rsp), %xmm0
movups %xmm0, (%rsp)
movq 0x120(%rsp), %rdi
callq 0x76b4
movb %al, 0xaf(%rsp)
testb %al, %al
jne 0x350d
testb $0x1, 0xaf(%rsp)
leaq 0x208(%rsp), %rbx
leaq 0x1f0(%rsp), %r14
jne 0x386e
movq 0x160(%rsp), %r15
movups (%rbx), %xmm0
movaps %xmm0, 0x100(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0x110(%rsp)
movaps 0xe0(%rsp), %xmm0
movaps %xmm0, 0xb0(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0x20(%r13), %r14
movq 0x28(%r14), %rbp
addq $0x18, %r14
movq 0x10(%r13), %rax
movq %rax, 0x10(%rsp)
movups (%r13), %xmm0
movups %xmm0, (%rsp)
callq 0x89df
movq %rax, %r12
movq 0x10(%r13), %rax
movq %rax, 0x40(%rsp)
movq %r13, %rbx
movups (%r13), %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 %r14, %rdi
callq 0x7a2c
movq %rax, %r14
movq 0xfaad(%rip), %rdi      # 0x13238
movq %r15, %rsi
callq 0xda26
movq %rax, 0xfa9e(%rip)      # 0x13238
testq %rbp, %rbp
je 0x37d2
cmpq %r15, %rbp
movq %r15, %r13
cmovbq %rbp, %r13
movq 0xfa88(%rip), %rdi      # 0x13238
movq %r13, %rsi
movq %r12, %rdx
callq 0x8bcc
movq 0xfa76(%rip), %rdi      # 0x13238
movq %r13, %rsi
movq %r14, %rdx
callq 0x7ba8
subq %r13, %rbp
jne 0x379f
movq %r12, %rdi
callq 0x9018
movl %eax, %ebp
movq %r12, %rdi
callq 0x8d89
testb %bpl, %bpl
jne 0x38f3
movq %r14, %rdi
callq 0x7c01
movq %rbx, %r13
leaq 0x208(%rsp), %rbx
leaq 0x1f0(%rsp), %r14
jmp 0x386e
btl $0x8, %eax
jb 0x386e
movq 0x10(%r13), %rax
movq %rax, 0x10(%rsp)
movups (%r13), %xmm0
movups %xmm0, (%rsp)
callq 0x89df
movq %rax, %r14
movq 0x28(%r15), %rsi
addq $0x30, %r15
movq %r15, %rdi
movq %rax, %rdx
callq 0x8bcc
movq %r14, %rdi
callq 0x9018
movl %eax, %ebp
movq %r14, %rdi
callq 0x8d89
testb %bpl, %bpl
leaq 0x1f0(%rsp), %r14
leaq 0x208(%rsp), %rbx
je 0x386e
jmp 0x38dd
testb %al, %al
js 0x33fa
movq 0x28(%r13), %rdi
movq 0x10(%rbx), %rax
movq %rax, 0x28(%rsp)
movups (%rbx), %xmm0
movups %xmm0, 0x18(%rsp)
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
callq 0x3390
movq 0x30(%r13), %r13
testq %r13, %r13
jne 0x33bd
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xd0(%rsp), %rax
movl 0x8(%rax), %esi
movq (%rax), %rdx
leaq 0xa820(%rip), %rdi      # 0xe0ed
jmp 0x38ec
leaq 0xa7f6(%rip), %rdi      # 0xe0cc
xorl %eax, %eax
callq 0x3dc4
movl 0x8(%r13), %esi
movq (%r13), %rdx
leaq 0xa7b9(%rip), %rdi      # 0xe0a5
xorl %eax, %eax
callq 0x3dc4
movl 0x8(%rbx), %esi
movq (%rbx), %rdx
jmp 0x38e5