// File: /workspace/github_cpp_makefile_star2_O3/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 %r13
pushq %r12
pushq %rbx
subq $0x50, %rsp
cmpb $0x1, 0x10(%rdi)
jne 0x117a9
movq %rsi, %r14
movq %rdi, %rbx
cmpl $0x2, 0x4(%rdi)
jb 0x11584
movq 0x1ca90(%rip), %r15     # 0x2dfb0
leaq 0x11577(%rip), %rsi     # 0x22a9e
movl $0xb, %edx
movq %r15, %rdi
callq 0x54b0
movq (%r14), %rsi
leaq 0x40(%rsp), %r13
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r13, -0x10(%r13)
leaq 0x30(%rsp), %r12
movq %r12, %rdi
callq 0x9172
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r15, %rdi
callq 0x54b0
movq %rax, %rdi
callq 0xb6dc
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x11584
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5410
movq (%r14), %rsi
leaq 0x18(%rsp), %r12
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r12, -0x10(%r12)
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x9172
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0xb73f
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x115c9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5410
incq 0x80(%rbx)
leaq 0x28(%rsp), %rcx
movq $0x0, (%rcx)
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rdx
movq %rbx, %rsi
callq 0x110d8
leaq 0x30(%rsp), %rdi
leaq 0x8(%rsp), %r15
movq %r15, %rsi
callq 0x5500
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x11615
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5410
movl 0x4(%rbx), %eax
testl %eax, %eax
je 0x116e3
cmpq $0x0, 0x28(%rsp)
je 0x116c2
movq 0x1c97d(%rip), %rdi     # 0x2dfb0
leaq 0x11470(%rip), %rsi     # 0x22aaa
movl $0xb, %edx
callq 0x54b0
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
callq 0x9172
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x1c944(%rip), %rdi     # 0x2dfb0
callq 0x54b0
movq %rax, %r15
leaq 0xfb27(%rip), %rsi      # 0x211a2
movl $0x2, %edx
movq %rax, %rdi
callq 0x54b0
movq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0x52c0
leaq 0x1141a(%rip), %rsi     # 0x22ab6
movl $0xa, %edx
movq %rax, %rdi
callq 0x54b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x116e3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0x116e3
cmpl $0x1, %eax
je 0x1178e
movq 0x1c8de(%rip), %rdi     # 0x2dfb0
leaq 0xf9d0(%rip), %rsi      # 0x210a9
movl $0x1, %edx
callq 0x54b0
cmpq $0x0, 0x28(%rsp)
je 0x1178e
incq 0x88(%rbx)
cmpb $0x0, 0x8(%rbx)
jne 0x11739
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
callq 0x9172
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0xb901
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x11739
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5410
cmpb $0x1, 0x9(%rbx)
jne 0x1178e
leaq 0x30(%rsp), %rdi
callq 0xb3ae
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
callq 0x9172
movq 0x28(%rsp), %rcx
leaq 0x30(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x201ba
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1178e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5410
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x117a9
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5410
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x117eb
jmp 0x117c3
jmp 0x117eb
jmp 0x117c3
jmp 0x117c3
jmp 0x117c3
movq %rax, %rbx
jmp 0x11805
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x11820
movq 0x18(%rsp), %rsi
jmp 0x11818
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
jne 0x11813
jmp 0x11820
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x11805
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5410
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11820
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5410
movq %rbx, %rdi
callq 0x5720