// File: /workspace/github_cpp_makefile_star2_O1/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 0x117c5
movq %rsi, %r14
movq %rdi, %rbx
cmpl $0x2, 0x4(%rdi)
jb 0x115a4
movq 0x1ca78(%rip), %r15     # 0x2dfb8
leaq 0x11557(%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 0x90b2
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r15, %rdi
callq 0x54b0
movq %rax, %rdi
callq 0xb6fc
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x115a4
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 0x90b2
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0xb75d
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x115e9
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 0x11100
leaq 0x30(%rsp), %rdi
leaq 0x8(%rsp), %r15
movq %r15, %rsi
callq 0x5500
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x11635
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5410
movl 0x4(%rbx), %eax
testl %eax, %eax
je 0x116ff
cmpq $0x0, 0x28(%rsp)
je 0x116e2
movq 0x1c965(%rip), %rdi     # 0x2dfb8
leaq 0x11450(%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 0x90b2
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x1c92c(%rip), %rdi     # 0x2dfb8
callq 0x54b0
movq %rax, %r15
leaq 0xfb07(%rip), %rsi      # 0x211a2
movl $0x2, %edx
movq %rax, %rdi
callq 0x54b0
movq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0x52c0
leaq 0x113fa(%rip), %rsi     # 0x22ab6
movl $0xa, %edx
movq %rax, %rdi
callq 0x54b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x116ff
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0x116ff
cmpl $0x1, %eax
je 0x116ff
movq 0x1c8ca(%rip), %rdi     # 0x2dfb8
leaq 0xf9b4(%rip), %rsi      # 0x210a9
movl $0x1, %edx
callq 0x54b0
cmpq $0x0, 0x28(%rsp)
je 0x117aa
incq 0x88(%rbx)
cmpb $0x0, 0x8(%rbx)
jne 0x11755
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
callq 0x90b2
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0xb90a
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x11755
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5410
cmpb $0x1, 0x9(%rbx)
jne 0x117aa
leaq 0x30(%rsp), %rdi
callq 0xb3cb
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
callq 0x90b2
movq 0x28(%rsp), %rcx
leaq 0x30(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x20224
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x117aa
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5410
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x117c5
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5410
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x11807
jmp 0x117df
jmp 0x11807
jmp 0x117df
jmp 0x117df
jmp 0x117df
movq %rax, %rbx
jmp 0x11821
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1183c
movq 0x18(%rsp), %rsi
jmp 0x11834
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
jne 0x1182f
jmp 0x1183c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x11821
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5410
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1183c
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5410
movq %rbx, %rdi
callq 0x5720