// File: 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
movq %rsp, %rbp
subq $0x1d0, %rsp            # imm = 0x1D0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x198(%rbp)
testb $0x1, 0x11(%rax)
je 0x18d05
movq -0x10(%rbp), %rdi
callq 0x141c0
movq %rax, %rsi
leaq -0x38(%rbp), %rdi
movq %rdi, -0x1a0(%rbp)
callq 0x1b950
movq -0x1a0(%rbp), %rsi
leaq -0x60(%rbp), %rdi
callq 0x7ad0
jmp 0x189a6
leaq -0xb8(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x1b9b0
jmp 0x189b8
leaq -0x90(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x1bab0
jmp 0x189cd
leaq -0xb8(%rbp), %rdi
callq 0x18700
movq -0x198(%rbp), %rsi
xorl %eax, %eax
movl %eax, %ecx
leaq -0xd8(%rbp), %rdi
leaq -0x90(%rbp), %rdx
callq 0x1bb30
jmp 0x189f9
leaq -0x90(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0xc130
testb $0x1, %al
jne 0x18a15
jmp 0x18caa
leaq -0x128(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
movl $0x2, %edx
callq 0x18620
jmp 0x18a2f
leaq -0x100(%rbp), %rdi
leaq -0x60(%rbp), %rsi
leaq -0x128(%rbp), %rdx
callq 0x1bc40
jmp 0x18a48
leaq -0x128(%rbp), %rdi
callq 0x18700
movq -0x198(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0x18bf4
movq 0x5153c(%rip), %rdi     # 0x69fa8
leaq 0x32a87(%rip), %rsi     # 0x4b4fa
callq 0x75d0
movq %rax, -0x1a8(%rbp)
jmp 0x18a81
leaq -0x148(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x1bab0
jmp 0x18a93
movq -0x1a8(%rbp), %rdi
leaq -0x148(%rbp), %rsi
callq 0x7560
movq %rax, -0x1b0(%rbp)
jmp 0x18aaf
movq -0x1b0(%rbp), %rdi
leaq 0x32a47(%rip), %rsi     # 0x4b504
callq 0x75d0
movq %rax, -0x1b8(%rbp)
jmp 0x18acb
leaq -0x168(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0x1bab0
jmp 0x18ae0
movq -0x1b8(%rbp), %rdi
leaq -0x168(%rbp), %rsi
callq 0x7560
movq %rax, -0x1c0(%rbp)
jmp 0x18afc
movq -0x1c0(%rbp), %rdi
leaq 0x32143(%rip), %rsi     # 0x4ac4d
callq 0x75d0
jmp 0x18b11
leaq -0x168(%rbp), %rdi
callq 0x73c0
leaq -0x148(%rbp), %rdi
callq 0x73c0
jmp 0x18bf4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x18cf7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x18cee
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x18700
jmp 0x18cee
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x18ce2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x18cd6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x128(%rbp), %rdi
callq 0x18700
jmp 0x18cd6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x18c9c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x18be3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x168(%rbp), %rdi
callq 0x73c0
leaq -0x148(%rbp), %rdi
callq 0x73c0
jmp 0x18c9c
movq -0x198(%rbp), %rax
testb $0x1, 0x8(%rax)
jne 0x18c75
leaq -0x38(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0x73d0
jmp 0x18c13
movq -0x10(%rbp), %rax
movq %rax, -0x1c8(%rbp)
leaq -0x190(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
movl $0x2, %edx
callq 0x18620
jmp 0x18c38
movq -0x1c8(%rbp), %rdi
leaq -0x190(%rbp), %rsi
callq 0x1bcc0
jmp 0x18c4d
leaq -0x190(%rbp), %rdi
callq 0x18700
jmp 0x18c75
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x190(%rbp), %rdi
callq 0x18700
jmp 0x18c9c
movq -0x198(%rbp), %rax
movq 0xb0(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0xb0(%rax)
leaq -0x100(%rbp), %rdi
callq 0x18700
jmp 0x18caa
leaq -0x100(%rbp), %rdi
callq 0x18700
jmp 0x18cd6
leaq -0xd8(%rbp), %rdi
callq 0x73c0
leaq -0x90(%rbp), %rdi
callq 0x73c0
leaq -0x60(%rbp), %rdi
callq 0x18700
leaq -0x38(%rbp), %rdi
callq 0x18700
jmp 0x18d05
leaq -0xd8(%rbp), %rdi
callq 0x73c0
leaq -0x90(%rbp), %rdi
callq 0x73c0
leaq -0x60(%rbp), %rdi
callq 0x18700
leaq -0x38(%rbp), %rdi
callq 0x18700
jmp 0x18d92
movq -0x198(%rbp), %rax
testb $0x1, 0x1(%rax)
jne 0x18d33
movq -0x10(%rbp), %rdi
callq 0x13e80
testb $0x1, %al
jne 0x18d21
jmp 0x18d33
movq -0x198(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x1bcf0
jmp 0x18d89
movq -0x10(%rbp), %rdi
callq 0x13f20
testb $0x1, %al
jne 0x18d42
jmp 0x18d54
movq -0x198(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x1c0d0
jmp 0x18d87
movq -0x10(%rbp), %rdi
callq 0x13f50
testb $0x1, %al
jne 0x18d63
jmp 0x18d75
movq -0x198(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x1c490
jmp 0x18d85
movq -0x198(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x1c780
jmp 0x18d87
jmp 0x18d89
addq $0x1d0, %rsp            # imm = 0x1D0
popq %rbp
retq
movq -0x68(%rbp), %rdi
callq 0x7a30
nopl (%rax,%rax)