// File: /workspace/github_cpp_makefile_star2_O2/jovermann[P]streplace/src/streplace.cpp
// Function: Streplace::processRegularFile(std::filesystem::__cxx11::directory_entry const&)
void processRegularFile(const std::filesystem::directory_entry& directoryEntry)
    {
        if (!modifyFiles)
        {
            return;
        }

        if (verbose >= 2)
        {
            std::cout << "Processing " << directoryEntry.path().string() << ut1::flushTty;
        }

        // Read file.
        std::string data = ut1::readFile(directoryEntry.path().string());
        numFilesProcessed++;

        // Apply all rules.
        size_t numMatches = 0;
        data = applyAllRules(data, &numMatches);

        if (verbose)
        {
            if (numMatches)
            {
                std::cout << "\rModifying " << directoryEntry.path().string() << " (" << numMatches << " matches)\n";
            }
            else
            {
                if (verbose >= 2)
                {
                    std::cout << "\n";
                }
            }
        }

        if (numMatches)
        {
            // Write file.
            numFilesModified++;
            if (!dummyMode)
            {
                ut1::writeFile(directoryEntry.path().string(), data);
            }

            // Preview.
            if (preview)
            {
                ut1::addTrailingLfIfMissing(data);
                printPreview(data, directoryEntry.path().string(), numMatches);
            }
        }
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
cmpb $0x1, 0x10(%rdi)
jne 0xd506
movq %rsi, %r14
movq %rdi, %rbx
cmpl $0x2, 0x4(%rdi)
jb 0xd390
movq 0x1dc5c(%rip), %rdi     # 0x2afb0
leaq 0xf743(%rip), %rsi      # 0x1ca9e
callq 0x5400
movq %rax, %r15
leaq 0x28(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0xd030
movq %r15, %rdi
movq %r12, %rsi
callq 0x53c0
movq %rax, %rdi
callq 0x9a22
leaq 0x28(%rsp), %rdi
callq 0x51f0
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xd030
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x9a83
leaq 0x8(%rsp), %rdi
callq 0x51f0
incq 0x80(%rbx)
movq %rsp, %rcx
andq $0x0, (%rcx)
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
movq %rbx, %rsi
callq 0xd04c
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %r15
movq %r15, %rsi
callq 0x5500
movq %r15, %rdi
callq 0x51f0
movl 0x4(%rbx), %eax
testl %eax, %eax
je 0xd485
cmpq $0x0, (%rsp)
je 0xd469
movq 0x1dba6(%rip), %rdi     # 0x2afb0
leaq 0xf699(%rip), %rsi      # 0x1caaa
callq 0x5400
movq %rax, %r15
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0xd030
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x53c0
leaq 0xdd68(%rip), %rsi      # 0x1b1a2
movq %rax, %rdi
callq 0x5400
movq (%rsp), %rsi
movq %rax, %rdi
callq 0x52e0
leaq 0xf661(%rip), %rsi      # 0x1cab6
movq %rax, %rdi
callq 0x5400
leaq 0x8(%rsp), %rdi
callq 0x51f0
jmp 0xd485
cmpl $0x1, %eax
je 0xd4fc
movq 0x1db37(%rip), %rdi     # 0x2afb0
leaq 0xdc29(%rip), %rsi      # 0x1b0a9
callq 0x5400
cmpq $0x0, (%rsp)
je 0xd4fc
incq 0x88(%rbx)
cmpb $0x0, 0x8(%rbx)
jne 0xd4bf
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0xd030
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x9bbe
leaq 0x8(%rsp), %rdi
callq 0x51f0
cmpb $0x1, 0x9(%rbx)
jne 0xd4fc
leaq 0x28(%rsp), %rdi
callq 0x9796
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0xd030
movq (%rsp), %rcx
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x19ec0
leaq 0x8(%rsp), %rdi
callq 0x51f0
leaq 0x28(%rsp), %rdi
callq 0x51f0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0xd52f
jmp 0xd52a
jmp 0xd52f
jmp 0xd52a
jmp 0xd52a
jmp 0xd52a
jmp 0xd52a
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
jmp 0xd541
movq %rax, %rbx
jmp 0xd53c
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x51f0
leaq 0x28(%rsp), %rdi
callq 0x51f0
movq %rbx, %rdi
callq 0x5730