// File: /workspace/github_cpp_makefile_star2_O3/jovermann[P]streplace/src/streplace.cpp
// Function: Streplace::printPreview(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)
void printPreview(const std::string& s, const std::string& filename, size_t numMatches)
    {
        std::cout << escapeSequences.bold << filename << escapeSequences.normal << " (" << escapeSequences.bold << numMatches << escapeSequences.normal << " match" + ut1::pluralS(numMatches, "es") + "):\n";

        if (context == -1)
        {
            // Print whole file.
            std::cout << s;
        }
        else
        {
            // Print only changed lines plus context.
            std::vector<std::string> lines = ut1::splitLines(s);

            // Mark all lines which contain the escape sequences for matches including context lines.
            std::vector<bool> marked(lines.size());
            for (ssize_t line = 0; line < ssize_t(lines.size()); line++)
            {
                if (ut1::contains(lines[line], escapeSequences.bold) || ut1::contains(lines[line], escapeSequences.normal))
                {
                    for (ssize_t i = line - context; i <= ssize_t(line + context); i++)
                    {
                        if ((i >= 0) && (i < ssize_t(marked.size())))
                        {
                            marked[i] = true;
                        }
                    }
                }
            }

            // Print all marked lines.
            for (size_t line = 0; line < lines.size(); line++)
            {
                if ((!previewHideSep) && (marked[line] && ((line == 0) || (!marked[line - 1]))))
                {
                    std::cout << escapeSequences.thin << "--" << line + 1 << "--" << escapeSequences.normal << "\n";
                }
                if (marked[line])
                {
                    std::cout << lines[line] << "\n";
                }
            }
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rcx, %r12
movq %rdx, %r15
movq %rsi, (%rsp)
movq %rdi, %rbx
movq 0xb8(%rdi), %rsi
movq 0xc0(%rdi), %rdx
movq 0xddc3(%rip), %rdi      # 0x2dfb0
callq 0x54b0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rax, %rdi
callq 0x54b0
movq 0xf8(%rbx), %rsi
movq 0x100(%rbx), %rdx
movq %rax, %rdi
callq 0x54b0
movq %rax, %r15
leaq 0xf81(%rip), %rsi       # 0x211a2
movl $0x2, %edx
movq %rax, %rdi
callq 0x54b0
movq 0xb8(%rbx), %rsi
movq 0xc0(%rbx), %rdx
movq %r15, %rdi
callq 0x54b0
movq %rax, %rdi
movq %r12, %rsi
callq 0x52c0
movq 0xf8(%rbx), %rsi
movq %rbx, 0x8(%rsp)
movq 0x100(%rbx), %rdx
movq %rax, %rdi
callq 0x54b0
movq %rax, %r15
leaq 0x68(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x284b(%rip), %rsi      # 0x22ac8
leaq 0x2846(%rip), %rdx      # 0x22aca
leaq 0x58(%rsp), %rdi
callq 0x9172
leaq 0xa8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
xorl %edx, %edx
movq %rdx, -0x8(%rbp)
movb $0x0, (%rbp)
leaq 0x88(%rsp), %r14
movq %r14, -0x10(%r14)
movq %rbp, %rsi
cmpq $0x1, %r12
je 0x202c3
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %rdi
callq 0x90dc
leaq 0x27ea(%rip), %rcx      # 0x22ac1
leaq 0x78(%rsp), %rdi
movl $0x6, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x5490
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x20313
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x2031b
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x10(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x278d(%rip), %rsi      # 0x22acb
callq 0x57c0
leaq 0x40(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2036a
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x20370
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq %r15, %rdi
callq 0x54b0
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0x203b1
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5410
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x203c8
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5410
movq 0x78(%rsp), %rdi
cmpq %r14, %rdi
je 0x203e2
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x5410
movq 0x98(%rsp), %rdi
cmpq %rbp, %rdi
je 0x203ff
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x5410
movq 0x58(%rsp), %rdi
cmpq %r13, %rdi
movq 0x8(%rsp), %rbp
je 0x2041b
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x5410
cmpl $-0x1, 0xc(%rbp)
je 0x20718
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movq (%rsp), %rsi
xorl %edx, %edx
callq 0xacf1
movq 0x8(%r15), %rsi
subq (%r15), %rsi
sarq $0x5, %rsi
leaq 0x78(%rsp), %rdx
movb $0x0, (%rdx)
leaq 0x30(%rsp), %rdi
leaq 0x58(%rsp), %rcx
callq 0x20808
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
movq %rax, %rcx
subq %rdi, %rcx
testq %rcx, %rcx
jle 0x2051e
leaq 0xb8(%rbp), %r14
leaq 0xf8(%rbp), %r15
xorl %ebx, %ebx
movq %rbx, %r12
shlq $0x5, %r12
addq %r12, %rdi
movq %r14, %rsi
callq 0xa3b0
testb %al, %al
jne 0x204ad
addq 0x10(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0xa3b0
testb %al, %al
je 0x204fe
movslq 0xc(%rbp), %rax
movq %rbx, %rcx
subq %rax, %rcx
addq %rbx, %rax
cmpq %rax, %rcx
jg 0x204fe
movq 0x30(%rsp), %rdx
movq 0x40(%rsp), %rsi
movl 0x48(%rsp), %edi
subq %rdx, %rsi
leaq (%rdi,%rsi,8), %rsi
testq %rcx, %rcx
js 0x204f2
cmpq %rsi, %rcx
jge 0x204f2
movq %rcx, %rdi
movl $0x1, %r8d
shlq %cl, %r8
shrq $0x6, %rdi
orq %r8, (%rdx,%rdi,8)
leaq 0x1(%rcx), %rdi
cmpq %rax, %rcx
movq %rdi, %rcx
jl 0x204d4
incq %rbx
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
movq %rax, %rcx
subq %rdi, %rcx
sarq $0x5, %rcx
cmpq %rcx, %rbx
jl 0x20483
cmpq %rdi, %rax
je 0x206e4
movl $0x8, %r13d
movabsq $-0x8000000000000000, %r9 # imm = 0x8000000000000000
xorl %r14d, %r14d
leaq 0x3f(%r9), %rax
movq %rax, (%rsp)
leaq 0x3f(%r14), %r15
testq %r14, %r14
cmovnsq %r14, %r15
movq 0x30(%rsp), %rax
sarq $0x6, %r15
cmpb $0x1, 0xa(%rbp)
jne 0x20573
movq %r14, %r12
andq (%rsp), %r12
movl $0x1, %ebx
movl %r14d, %ecx
shlq %cl, %rbx
jmp 0x20678
movq %r14, %r12
andq (%rsp), %r12
xorl %edx, %edx
cmpq %r9, %r12
setbe %dl
movl $0x1, %ebx
movl %r14d, %ecx
shlq %cl, %rbx
leaq (%rax,%r15,8), %rcx
movq -0x8(%rcx,%rdx,8), %rcx
btq %r14, %rcx
jae 0x20678
testq %r14, %r14
je 0x205dc
leaq -0x1(%r14), %rcx
leaq 0x3e(%r14), %rdx
testq %rcx, %rcx
cmovnsq %rcx, %rdx
sarq $0x6, %rdx
leaq (%rax,%rdx,8), %rdx
movq %rcx, %rsi
andq (%rsp), %rsi
xorl %r8d, %r8d
cmpq %r9, %rsi
setbe %r8b
movq -0x8(%rdx,%r8,8), %rdx
btq %rcx, %rdx
jb 0x20678
movq 0xd8(%rbp), %rsi
movq 0xe0(%rbp), %rdx
movq 0xd9bf(%rip), %rdi      # 0x2dfb0
callq 0x54b0
movq %rax, %rbp
movl $0x2, %edx
movq %rax, %rdi
leaq 0xbeb(%rip), %rsi       # 0x211f3
callq 0x54b0
leaq 0x1(%r14), %rsi
movq %rbp, %rdi
callq 0x52c0
movq %rax, %rbp
movl $0x2, %edx
movq %rax, %rdi
leaq 0xbc8(%rip), %rsi       # 0x211f3
callq 0x54b0
movq 0x8(%rsp), %rax
movq 0xf8(%rax), %rsi
movq 0x100(%rax), %rdx
movq %rbp, %rdi
callq 0x54b0
movl $0x1, %edx
movq %rax, %rdi
leaq 0xa4f(%rip), %rsi       # 0x210a9
callq 0x54b0
movq 0x30(%rsp), %rax
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rbp
movabsq $-0x8000000000000000, %r9 # imm = 0x8000000000000000
leaq (%rax,%r15,8), %rax
xorl %ecx, %ecx
cmpq %r9, %r12
setbe %cl
testq %rbx, -0x8(%rax,%rcx,8)
je 0x206c8
movq -0x8(%rdi,%r13), %rsi
movq (%rdi,%r13), %rdx
movq 0xd915(%rip), %rdi      # 0x2dfb0
callq 0x54b0
movl $0x1, %edx
movq %rax, %rdi
leaq 0x9fa(%rip), %rsi       # 0x210a9
callq 0x54b0
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rbp
movabsq $-0x8000000000000000, %r9 # imm = 0x8000000000000000
incq %r14
movq 0x18(%rsp), %rax
subq %rdi, %rax
sarq $0x5, %rax
addq $0x20, %r13
cmpq %rax, %r14
jb 0x20542
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x2070c
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x5410
movq $0x0, 0x30(%rsp)
movl $0x0, 0x38(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x896e
jmp 0x2072f
movq (%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0xd886(%rip), %rdi      # 0x2dfb0
callq 0x54b0
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
jmp 0x207f5
movq %rax, %r15
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0x20768
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0x20768
movq %rax, %r15
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x20784
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0x20784
movq %rax, %r15
movq 0x78(%rsp), %rdi
cmpq %r14, %rdi
je 0x207a3
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0x207a3
movq %rax, %r15
movq 0x98(%rsp), %rdi
cmpq %rbp, %rdi
je 0x207c0
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x5410
movq 0x58(%rsp), %rdi
cmpq %r13, %rdi
je 0x207ff
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0x207ff
movq %rax, %r15
jmp 0x207ff
movq %rax, %r15
movq 0x30(%rsp), %rsi
testq %rsi, %rsi
je 0x207f5
leaq 0x30(%rsp), %rdi
callq 0x59b6
leaq 0x10(%rsp), %rdi
callq 0x896e
movq %r15, %rdi
callq 0x5720
nop