// File: 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 %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x110(%rbp)
testb $0x1, 0x10(%rax)
jne 0x1c0f9
jmp 0x1c46a
movq -0x110(%rbp), %rax
cmpl $0x2, 0x4(%rax)
jb 0x1c196
movq 0x4de97(%rip), %rdi     # 0x69fa8
leaq 0x2fcc6(%rip), %rsi     # 0x4bdde
callq 0x75d0
movq %rax, -0x128(%rbp)
movq -0x10(%rbp), %rdi
callq 0x141c0
movq %rax, %rsi
leaq -0x30(%rbp), %rdi
movq %rdi, -0x120(%rbp)
callq 0x1bab0
movq -0x128(%rbp), %rdi
movq -0x120(%rbp), %rsi
callq 0x7560
movq %rax, -0x118(%rbp)
jmp 0x1c15c
movq -0x118(%rbp), %rdi
leaq -0x937a(%rip), %rsi     # 0x12df0
callq 0x7650
jmp 0x1c171
leaq -0x30(%rbp), %rdi
callq 0x73c0
jmp 0x1c196
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x73c0
jmp 0x1c47c
movq -0x10(%rbp), %rdi
callq 0x141c0
movq %rax, %rsi
leaq -0x80(%rbp), %rdi
movq %rdi, -0x130(%rbp)
callq 0x1bab0
movq -0x130(%rbp), %rsi
leaq -0x60(%rbp), %rdi
callq 0x12ea0
jmp 0x1c1c4
leaq -0x80(%rbp), %rdi
callq 0x73c0
movq -0x110(%rbp), %rsi
movq 0x80(%rsi), %rax
incq %rax
movq %rax, 0x80(%rsi)
movq $0x0, -0x88(%rbp)
leaq -0xa8(%rbp), %rdi
leaq -0x60(%rbp), %rdx
leaq -0x88(%rbp), %rcx
callq 0x1bb30
jmp 0x1c209
leaq -0x60(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x7750
leaq -0xa8(%rbp), %rdi
callq 0x73c0
movq -0x110(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0x1c361
cmpq $0x0, -0x88(%rbp)
je 0x1c339
movq 0x4dd5d(%rip), %rdi     # 0x69fa8
leaq 0x2fb98(%rip), %rsi     # 0x4bdea
callq 0x75d0
movq %rax, -0x138(%rbp)
jmp 0x1c260
movq -0x10(%rbp), %rdi
callq 0x141c0
movq %rax, %rsi
leaq -0xc8(%rbp), %rdi
callq 0x1bab0
jmp 0x1c27a
movq -0x138(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x7560
movq %rax, -0x140(%rbp)
jmp 0x1c296
movq -0x140(%rbp), %rdi
leaq 0x2dee2(%rip), %rsi     # 0x4a186
callq 0x75d0
movq %rax, -0x148(%rbp)
jmp 0x1c2b2
movq -0x148(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x7110
movq %rax, -0x150(%rbp)
jmp 0x1c2ce
movq -0x150(%rbp), %rdi
leaq 0x2fb1a(%rip), %rsi     # 0x4bdf6
callq 0x75d0
jmp 0x1c2e3
leaq -0xc8(%rbp), %rdi
callq 0x73c0
jmp 0x1c35f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x73c0
jmp 0x1c47c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x1c473
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x73c0
jmp 0x1c473
movq -0x110(%rbp), %rax
cmpl $0x2, 0x4(%rax)
jb 0x1c35d
movq 0x4dc5b(%rip), %rdi     # 0x69fa8
leaq 0x2dd39(%rip), %rsi     # 0x4a08d
callq 0x75d0
jmp 0x1c35b
jmp 0x1c35d
jmp 0x1c35f
jmp 0x1c361
cmpq $0x0, -0x88(%rbp)
je 0x1c461
movq -0x110(%rbp), %rax
movq 0x88(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x88(%rax)
testb $0x1, 0x8(%rax)
jne 0x1c3e5
movq -0x10(%rbp), %rdi
callq 0x141c0
movq %rax, %rsi
leaq -0xe8(%rbp), %rdi
callq 0x1bab0
jmp 0x1c3a8
leaq -0xe8(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x131d0
jmp 0x1c3ba
leaq -0xe8(%rbp), %rdi
callq 0x73c0
jmp 0x1c3e5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0x73c0
jmp 0x1c473
movq -0x110(%rbp), %rax
testb $0x1, 0x9(%rax)
je 0x1c45f
leaq -0x60(%rbp), %rdi
callq 0x12940
jmp 0x1c3fd
movq -0x10(%rbp), %rdi
callq 0x141c0
movq %rax, %rsi
leaq -0x108(%rbp), %rdi
callq 0x1bab0
jmp 0x1c417
movq -0x110(%rbp), %rdi
movq -0x88(%rbp), %rcx
leaq -0x60(%rbp), %rsi
leaq -0x108(%rbp), %rdx
callq 0x46be0
jmp 0x1c437
leaq -0x108(%rbp), %rdi
callq 0x73c0
jmp 0x1c45f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x108(%rbp), %rdi
callq 0x73c0
jmp 0x1c473
jmp 0x1c461
leaq -0x60(%rbp), %rdi
callq 0x73c0
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
leaq -0x60(%rbp), %rdi
callq 0x73c0
movq -0x38(%rbp), %rdi
callq 0x7a30
nopw %cs:(%rax,%rax)
nop