// File: /workspace/github_cpp_makefile_star2_O1/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 $0xa8, %rsp
movq %rcx, %r12
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq 0xb8(%rdi), %rsi
movq 0xc0(%rdi), %rdx
movq 0xdd62(%rip), %rdi      # 0x2dfb8
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 0xf18(%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 0x100(%rbx), %rdx
movq %rax, %rdi
callq 0x54b0
movq %rax, %r15
leaq 0x98(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x27e4(%rip), %rsi      # 0x22ac8
leaq 0x27df(%rip), %rdx      # 0x22aca
leaq 0x88(%rsp), %r13
movq %r13, %rdi
callq 0x90b2
leaq 0x78(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x70(%rsp), %rax
movq $0x0, (%rax)
movb $0x0, 0x8(%rax)
cmpq $0x1, %r12
leaq 0x58(%rsp), %rcx
movq %rcx, -0x10(%rcx)
leaq 0x68(%rsp), %rcx
cmoveq %rcx, %r13
movq (%r13), %rsi
leaq 0x90(%rsp), %rcx
cmoveq %rax, %rcx
movq (%rcx), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x9022
leaq 0x2770(%rip), %rcx      # 0x22ac1
leaq 0x48(%rsp), %rdi
movl $0x6, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x5490
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2038b
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x20393
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq %rbp, %r12
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x2714(%rip), %rsi      # 0x22acb
callq 0x57c0
leaq 0x30(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x203e3
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x203ea
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %r15, %rdi
callq 0x54b0
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2042b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5410
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x20441
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5410
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x2045d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5410
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x20479
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5410
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x20496
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x5410
cmpl $-0x1, 0xc(%rbx)
je 0x20760
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xaceb
movq 0x8(%r15), %rsi
subq (%r15), %rsi
sarq $0x5, %rsi
leaq 0x48(%rsp), %rdx
movb $0x0, (%rdx)
leaq 0x20(%rsp), %rdi
leaq 0x88(%rsp), %rcx
callq 0x20856
movq (%rsp), %rdi
movq 0x8(%rsp), %rax
subq %rdi, %rax
testq %rax, %rax
jle 0x20591
leaq 0xb8(%rbx), %r14
leaq 0xf8(%rbx), %r15
xorl %r13d, %r13d
movq %r13, %r12
shlq $0x5, %r12
addq %r12, %rdi
movq %r14, %rsi
callq 0xa3b4
testb %al, %al
jne 0x20524
addq (%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0xa3b4
testb %al, %al
je 0x20575
movslq 0xc(%rbx), %rax
movq %r13, %rcx
subq %rax, %rcx
addq %r13, %rax
cmpq %rax, %rcx
jg 0x20575
movq 0x20(%rsp), %rdx
movq 0x30(%rsp), %rsi
movl 0x38(%rsp), %edi
subq %rdx, %rsi
leaq (%rdi,%rsi,8), %rsi
testq %rcx, %rcx
js 0x20569
cmpq %rsi, %rcx
jge 0x20569
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 0x2054b
incq %r13
movq (%rsp), %rdi
movq 0x8(%rsp), %rax
subq %rdi, %rax
sarq $0x5, %rax
cmpq %rax, %r13
jl 0x204fb
movq 0x8(%rsp), %rax
cmpq (%rsp), %rax
je 0x20726
movl $0x8, %ebp
movabsq $-0x8000000000000000, %r12 # imm = 0x8000000000000000
xorl %r14d, %r14d
leaq 0x3f(%r12), %r15
cmpb $0x0, 0xa(%rbx)
jne 0x206ab
movq 0x20(%rsp), %rax
leaq 0x3f(%r14), %rcx
testq %r14, %r14
cmovnsq %r14, %rcx
sarq $0x6, %rcx
leaq (%rax,%rcx,8), %rcx
movq %r14, %rdx
andq %r15, %rdx
xorl %esi, %esi
cmpq %r12, %rdx
setbe %sil
movq -0x8(%rcx,%rsi,8), %rcx
btq %r14, %rcx
jae 0x206ab
testq %r14, %r14
je 0x2062d
leaq -0x1(%r14), %rcx
leaq 0x3e(%r14), %rdx
testq %rcx, %rcx
cmovnsq %rcx, %rdx
sarq $0x6, %rdx
leaq (%rax,%rdx,8), %rax
movq %rcx, %rdx
andq %r15, %rdx
xorl %esi, %esi
cmpq %r12, %rdx
setbe %sil
movq -0x8(%rax,%rsi,8), %rax
btq %rcx, %rax
jb 0x206ab
movq 0xd8(%rbx), %rsi
movq 0xe0(%rbx), %rdx
movq 0xd976(%rip), %rdi      # 0x2dfb8
callq 0x54b0
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
leaq 0xb9a(%rip), %rsi       # 0x211f3
callq 0x54b0
leaq 0x1(%r14), %rsi
movq %r13, %rdi
callq 0x52c0
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
leaq 0xb77(%rip), %rsi       # 0x211f3
callq 0x54b0
movq 0xf8(%rbx), %rsi
movq 0x100(%rbx), %rdx
movq %r13, %rdi
callq 0x54b0
movl $0x1, %edx
movq %rax, %rdi
leaq 0xa03(%rip), %rsi       # 0x210a9
callq 0x54b0
leaq 0x3f(%r14), %rax
testq %r14, %r14
cmovnsq %r14, %rax
sarq $0x6, %rax
shlq $0x3, %rax
addq 0x20(%rsp), %rax
movq %r14, %rcx
andq %r15, %rcx
xorl %edx, %edx
cmpq %r12, %rcx
setbe %dl
movq -0x8(%rax,%rdx,8), %rax
btq %r14, %rax
jae 0x20709
movq (%rsp), %rax
movq -0x8(%rax,%rbp), %rsi
movq (%rax,%rbp), %rdx
movq 0xd8c8(%rip), %rdi      # 0x2dfb8
callq 0x54b0
movl $0x1, %edx
movq %rax, %rdi
leaq 0x9a5(%rip), %rsi       # 0x210a9
callq 0x54b0
movq 0x8(%rsp), %rax
subq (%rsp), %rax
incq %r14
sarq $0x5, %rax
addq $0x20, %rbp
cmpq %rax, %r14
jb 0x205b7
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x20756
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x5410
xorl %eax, %eax
movq %rax, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movq %rax, 0x30(%rsp)
movl %eax, 0x38(%rsp)
movq %rax, 0x40(%rsp)
movq %rsp, %rdi
callq 0x88ce
jmp 0x20773
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0xd84a(%rip), %rdi      # 0x2dfb8
callq 0x54b0
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x20845
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x207ac
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0x207ac
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x207ca
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0x207ca
movq %rbp, %r12
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x207ee
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0x207ee
movq %rbp, %r12
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x2080a
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5410
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x2084d
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0x2084d
movq %rax, %rbx
jmp 0x2084d
movq %rax, %rbx
movq 0x20(%rsp), %rsi
testq %rsi, %rsi
je 0x20845
leaq 0x20(%rsp), %rdi
callq 0x5998
movq %rsp, %rdi
callq 0x88ce
movq %rbx, %rdi
callq 0x5720
nop