// File: /workspace/github_cpp_makefile_star2_O3/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 0xe3f0
leaq 0x78(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x11082
leaq 0xe0(%rsp), %rdi
movq %r15, %rsi
callq 0x57b0
movq 0x80(%rsp), %rcx
testq %rcx, %rcx
je 0xe18b
movq 0x98(%rsp), %rax
movl %eax, %edx
notb %dl
testb $0x3, %dl
je 0xe17c
movl %eax, %edx
andl $0x3, %edx
jne 0xe18b
movq 0x78(%rsp), %rdx
cmpb $0x2f, -0x1(%rdx,%rcx)
je 0xe18b
testb $0x3, %al
je 0xe147
leaq 0x78(%rsp), %r15
jmp 0xe176
leaq 0x98(%rsp), %r12
movq %r12, %rdi
callq 0x5290
movq (%r12), %rcx
leaq -0x30(%rax), %rdx
addq $-0x10, %rax
testb $0x3, %cl
leaq 0x78(%rsp), %r15
cmoveq %rdx, %r15
cmovneq %r12, %rax
movq (%rax), %rax
notl %eax
testb $0x3, %al
jne 0xe18b
leaq 0x50(%rsp), %rdi
movq %r15, %rsi
callq 0x11082
jmp 0xe195
leaq 0x50(%rsp), %rdi
callq 0x11bda
movq 0x50(%rsp), %rsi
leaq 0xb0(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa0(%rsp), %rdi
callq 0x9172
leaq 0x50(%rsp), %rdi
callq 0xdfea
leaq 0x30(%rsp), %rdi
leaq 0xa0(%rsp), %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x110d8
movq 0xa8(%rsp), %rdx
cmpq 0x38(%rsp), %rdx
jne 0xe212
movq 0x30(%rsp), %r15
testq %rdx, %rdx
je 0xe3a2
movq 0xa0(%rsp), %rdi
movq %r15, %rsi
callq 0x5440
testl %eax, %eax
je 0xe3a2
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
movl $0x2, %edx
callq 0xdf6a
leaq 0x50(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x11170
leaq 0x8(%rsp), %rdi
callq 0xdfea
cmpl $0x0, 0x4(%r14)
je 0xe340
movq 0x1fd57(%rip), %rdi     # 0x2dfb0
leaq 0x13f5a(%rip), %rsi     # 0x221ba
movl $0x9, %edx
callq 0x54b0
movq 0x78(%rsp), %rsi
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x80(%rsp), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x9172
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x1fd12(%rip), %rdi     # 0x2dfb0
callq 0x54b0
movq %rax, %r15
leaq 0x13f17(%rip), %rsi     # 0x221c4
movl $0x4, %edx
movq %rax, %rdi
callq 0x54b0
movq 0x50(%rsp), %rsi
leaq 0xd0(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0xc0(%rsp), %rdi
callq 0x9172
movq 0xc0(%rsp), %rsi
movq 0xc8(%rsp), %rdx
movq %r15, %rdi
callq 0x54b0
leaq 0x1360e(%rip), %rsi     # 0x2190d
movl $0x2, %edx
movq %rax, %rdi
callq 0x54b0
movq 0xc0(%rsp), %rdi
cmpq %rbp, %rdi
je 0xe329
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x5410
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xe340
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5410
cmpb $0x0, 0x8(%r14)
jne 0xe38c
leaq 0x78(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x5260
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
movl $0x2, %edx
callq 0xdf6a
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x5640
movq %rbx, %rdi
callq 0x56d0
movb %al, 0x28(%rbx)
leaq 0x8(%rsp), %rdi
callq 0xdfea
incq 0xb0(%r14)
leaq 0x50(%rsp), %rdi
callq 0xdfea
movq 0x30(%rsp), %r15
leaq 0x40(%rsp), %rax
cmpq %rax, %r15
je 0xe3bc
movq 0x40(%rsp), %rsi
incq %rsi
movq %r15, %rdi
callq 0x5410
movq 0xa0(%rsp), %rdi
cmpq %r12, %rdi
je 0xe3d9
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5410
leaq 0xe0(%rsp), %rdi
callq 0xdfea
leaq 0x78(%rsp), %rdi
callq 0xdfea
cmpb $0x0, 0x1(%r14)
jne 0xe417
movb 0x28(%rbx), %al
testb %al, %al
jne 0xe406
movq %rbx, %rdi
callq 0x56d0
cmpb $0x3, %al
jne 0xe417
movq %r14, %rdi
movq %rbx, %rsi
callq 0x111a8
jmp 0xe468
movzbl 0x28(%rbx), %eax
cmpl $0x3, %eax
je 0xe424
testl %eax, %eax
jne 0xe42c
movq %rbx, %rdi
callq 0x5180
cmpb $0x1, %al
jne 0xe43d
movq %r14, %rdi
movq %rbx, %rsi
callq 0x114f6
jmp 0xe468
movzbl 0x28(%rbx), %eax
cmpl $0x3, %eax
je 0xe44a
testl %eax, %eax
jne 0xe452
movq %rbx, %rdi
callq 0x5180
movq %r14, %rdi
movq %rbx, %rsi
cmpb $0x2, %al
jne 0xe463
callq 0x11828
jmp 0xe468
callq 0x11a9e
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0xe53d
jmp 0xe4a6
jmp 0xe4cd
jmp 0xe4a6
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xdfea
jmp 0xe4e7
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
jmp 0xe4ec
movq %rax, %rbx
jmp 0xe4f1
movq %rax, %rbx
jmp 0xe4e7
movq %rax, %rbx
movq 0xc0(%rsp), %rdi
cmpq %rbp, %rdi
je 0xe4d0
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0xe4d0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xe4e7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5410
leaq 0x50(%rsp), %rdi
callq 0xdfea
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xe511
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0xe511
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
cmpq %r12, %rdi
je 0xe53d
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0xe53d
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xdfea
leaq 0xe0(%rsp), %rdi
callq 0xdfea
leaq 0x78(%rsp), %rdi
callq 0xdfea
movq %rbx, %rdi
callq 0x5720
movq %rax, %rbx
jmp 0xe54a
nop