// File: /workspace/github_cpp_makefile_star2_O1/jovermann[P]streplace/src/streplace.cpp
// Function: Streplace::processDirectoryEntry(std::filesystem::__cxx11::directory_entry&)
void processDirectoryEntry(std::filesystem::directory_entry& directoryEntry)
    {
        // Rename files and dirs.
        if (rename)
        {
            std::filesystem::path oldPath = directoryEntry.path();
            std::filesystem::path basePath = oldPath.parent_path();
            std::string oldName = oldPath.filename().string();
            std::string newName = applyAllRules(oldName);
            if (oldName != newName)
            {
                std::filesystem::path newPath = basePath / newName;
                if (verbose)
                {
                    std::cout << "Renaming " << oldPath.string() << " -> " << newPath.string() << ".\n";
                }
                if (!dummyMode)
                {
                    std::filesystem::rename(oldPath, newPath);
                    directoryEntry.replace_filename(newName);
                }
                numDirsRenamed++;
            }
        }

        // Process content.
        if ((!followLinks) && directoryEntry.is_symlink())
        {
            processSymlink(directoryEntry);
        }
        else if (directoryEntry.is_regular_file())
        {
            processRegularFile(directoryEntry);
        }
        else if (directoryEntry.is_directory())
        {
            processDirectory(directoryEntry);
        }
        else
        {
            processOther(directoryEntry);
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %rbx
movq %rdi, %r14
cmpb $0x1, 0x11(%rdi)
jne 0xe4e4
leaq 0x58(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x110aa
leaq 0xe0(%rsp), %rdi
movq %r15, %rsi
callq 0x57b0
movq 0x60(%rsp), %rcx
testq %rcx, %rcx
je 0xe274
movq 0x78(%rsp), %rax
movl %eax, %edx
notb %dl
testb $0x3, %dl
je 0xe265
movl %eax, %edx
andl $0x3, %edx
jne 0xe274
movq 0x58(%rsp), %rdx
cmpb $0x2f, -0x1(%rdx,%rcx)
je 0xe274
leaq 0x78(%rsp), %r15
testb $0x3, %al
je 0xe22d
xorl %eax, %eax
jmp 0xe235
movq %r15, %rdi
callq 0x5290
movq 0x78(%rsp), %rdx
leaq -0x30(%rax), %rcx
testb $0x3, %dl
cmovneq %rax, %rcx
leaq 0x20(%rcx), %rax
testb $0x3, %dl
cmoveq %rax, %r15
movl (%r15), %eax
notl %eax
testb $0x3, %al
jne 0xe274
testb $0x3, %dl
leaq 0x58(%rsp), %r15
cmoveq %rcx, %r15
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x110aa
jmp 0xe27e
leaq 0x30(%rsp), %rdi
callq 0x11bf6
movq 0x30(%rsp), %rsi
leaq 0xb0(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa0(%rsp), %rdi
callq 0x90b2
leaq 0x30(%rsp), %rdi
callq 0xe0dc
leaq 0x80(%rsp), %rdi
leaq 0xa0(%rsp), %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x11100
movq 0xa8(%rsp), %rdx
cmpq 0x88(%rsp), %rdx
jne 0xe301
testq %rdx, %rdx
je 0xe48f
movq 0x80(%rsp), %rsi
movq 0xa0(%rsp), %rdi
callq 0x5440
testl %eax, %eax
je 0xe48f
leaq 0x8(%rsp), %rdi
leaq 0x80(%rsp), %rsi
movl $0x2, %edx
callq 0xe05c
leaq 0x30(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x11198
leaq 0x8(%rsp), %rdi
callq 0xe0dc
cmpl $0x0, 0x4(%r14)
je 0xe42f
movq 0x1fc6d(%rip), %rdi     # 0x2dfb8
leaq 0x13e68(%rip), %rsi     # 0x221ba
movl $0x9, %edx
callq 0x54b0
movq 0x58(%rsp), %rsi
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x60(%rsp), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x90b2
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x1fc2b(%rip), %rdi     # 0x2dfb8
callq 0x54b0
movq %rax, %r15
leaq 0x13e28(%rip), %rsi     # 0x221c4
movl $0x4, %edx
movq %rax, %rdi
callq 0x54b0
movq 0x30(%rsp), %rsi
leaq 0xd0(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0xc0(%rsp), %rdi
callq 0x90b2
movq 0xc0(%rsp), %rsi
movq 0xc8(%rsp), %rdx
movq %r15, %rdi
callq 0x54b0
leaq 0x1351f(%rip), %rsi     # 0x2190d
movl $0x2, %edx
movq %rax, %rdi
callq 0x54b0
movq 0xc0(%rsp), %rdi
cmpq %rbp, %rdi
je 0xe418
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x5410
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xe42f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5410
cmpb $0x0, 0x8(%r14)
jne 0xe47e
leaq 0x58(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x5260
leaq 0x8(%rsp), %rdi
leaq 0x80(%rsp), %rsi
movl $0x2, %edx
callq 0xe05c
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x5640
movq %rbx, %rdi
callq 0x56d0
movb %al, 0x28(%rbx)
leaq 0x8(%rsp), %rdi
callq 0xe0dc
incq 0xb0(%r14)
leaq 0x30(%rsp), %rdi
callq 0xe0dc
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xe4b0
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x5410
movq 0xa0(%rsp), %rdi
cmpq %r12, %rdi
je 0xe4cd
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5410
leaq 0xe0(%rsp), %rdi
callq 0xe0dc
leaq 0x58(%rsp), %rdi
callq 0xe0dc
cmpb $0x0, 0x1(%r14)
jne 0xe50b
movb 0x28(%rbx), %al
testb %al, %al
jne 0xe4fa
movq %rbx, %rdi
callq 0x56d0
cmpb $0x3, %al
jne 0xe50b
movq %r14, %rdi
movq %rbx, %rsi
callq 0x111d0
jmp 0xe55c
movzbl 0x28(%rbx), %eax
cmpl $0x3, %eax
je 0xe518
testl %eax, %eax
jne 0xe520
movq %rbx, %rdi
callq 0x5180
cmpb $0x1, %al
jne 0xe531
movq %r14, %rdi
movq %rbx, %rsi
callq 0x11516
jmp 0xe55c
movzbl 0x28(%rbx), %eax
cmpl $0x3, %eax
je 0xe53e
testl %eax, %eax
jne 0xe546
movq %rbx, %rdi
callq 0x5180
movq %r14, %rdi
movq %rbx, %rsi
cmpb $0x2, %al
jne 0xe557
callq 0x11844
jmp 0xe55c
callq 0x11aba
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0xe637
jmp 0xe59a
jmp 0xe5c1
jmp 0xe59a
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xe0dc
jmp 0xe5db
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
jmp 0xe5e0
movq %rax, %rbx
jmp 0xe5e5
movq %rax, %rbx
jmp 0xe5db
movq %rax, %rbx
movq 0xc0(%rsp), %rdi
cmpq %rbp, %rdi
je 0xe5c4
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0xe5c4
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xe5db
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5410
leaq 0x30(%rsp), %rdi
callq 0xe0dc
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xe60b
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0xe60b
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
cmpq %r12, %rdi
je 0xe637
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0xe637
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xe0dc
leaq 0xe0(%rsp), %rdi
callq 0xe0dc
leaq 0x58(%rsp), %rdi
callq 0xe0dc
movq %rbx, %rdi
callq 0x5720
movq %rax, %rbx
jmp 0xe644
nop