// File: /workspace/github_cpp_makefile_star2_O3/juli9797[P]ssf/src/console_page.hpp
// Function: ssf::ConsolePage::str[abi:cxx11]() const
auto str() const
    {
        std::ostringstream p;
        p << c_cmd::clear;
        p << c_cmd::hide_cursor;

        // iterate over columns
        for (auto col_index = 0u; col_index < entries.size(); col_index++)
        {
            std::vector<std::filesystem::directory_entry> col = entries.at(col_index);
            // Calculate entry offset in case there are more entries
            // than rows available
            unsigned entry_offset = 0;
            if (col_index == _active_col-1 && col.size() > _row_count && !_parent_selection.empty())
            {
                entry_offset = std::floor(find_pos(col, *_parent_selection.begin()) / _row_count) * _row_count;
            }
	    else if (col_index == _active_col && col.size() > _row_count && !_selection.empty())
            {
                entry_offset = std::floor(find_pos(col, *_selection.begin()) / _row_count) * _row_count;
            }
            // Handle last folder in middle column
            int current_width = _col_widths.at(col_index);
            if (col_index == 1)
            {
                if (entries.at(2).size() == 0)
                {
                    current_width += _col_widths[2];
                }
            }
            int current_cursor_col = 0;
            for (unsigned i = 0; i < col_index; i++)
            {
                current_cursor_col += _col_widths.at(i);
                current_cursor_col += _spacing;
            }
            // Only iterate to either row_count or size of the col
            unsigned limit = std::min((int)(col.size() - entry_offset),
                                      (int)_row_count);
            for (auto index = 0u; index < limit; index++)
            {
                // Calculate the actual index for the entry
                auto entry_index = index + entry_offset;
                auto dir_entry = col.at(entry_index);
                auto full_entry = col.at(entry_index).path().filename().string();
                auto entry = shortened_string(full_entry,
                                              current_width - 4);
                p << c_cmd::set_cursor(index, current_cursor_col);
                p << get_icon(full_entry) << " ";

                if (!_selection.empty() && (col.at(entry_index) == _selection.at(0) && col_index == _active_col) ||
                    (!_parent_selection.empty() && col.at(entry_index) == _parent_selection.at(0) && col_index == _active_col - 1))
                {
                    p << ((col_index == 0) ? c_cmd::color::background::bright_black: c_cmd::color::background::cyan)
                      << entry
                      << c_cmd::color::reset;
                }
                else
                {
                    if (dir_entry.is_directory())
                    {
                        p << c_cmd::color::foreground::bright_cyan
                          << entry
                          << c_cmd::color::reset;
                    }
                    else
                    {
                        p << entry;
                    }
                }
            }
        }
        return p.str();
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x318, %rsp            # imm = 0x318
movq %rsi, %rbx
movq %rdi, 0x70(%rsp)
leaq 0x1a0(%rsp), %r14
movq %r14, %rdi
callq 0x32a0
leaq 0x40f7(%rip), %rsi      # 0xa2f3
movl $0x2, %edx
movq %r14, %rdi
callq 0x3240
leaq 0x40dc(%rip), %rsi      # 0xa2ec
leaq 0x1a0(%rsp), %rdi
movl $0x6, %edx
callq 0x3240
movq 0x50(%rbx), %rax
cmpq %rax, 0x58(%rbx)
je 0x68e7
xorl %ebp, %ebp
movq %rsp, %r12
leaq 0x140(%rsp), %r15
leaq 0x4074(%rip), %rcx      # 0xa2b8
movq %rcx, 0x68(%rsp)
leaq 0x90(%rsp), %r13
movq %rbx, 0x18(%rsp)
leaq (,%rbp,2), %rcx
addq %rbp, %rcx
leaq (%rax,%rcx,8), %rsi
movq %r12, %rdi
callq 0x7378
movl 0x40(%rbx), %eax
leal -0x1(%rax), %ecx
cmpq %rcx, %rbp
jne 0x62ce
movq 0x8(%rsp), %rcx
subq (%rsp), %rcx
sarq $0x4, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rcx
movl 0x8(%rbx), %edx
cmpq %rdx, %rcx
jbe 0x62ce
movq 0x28(%rbx), %r14
cmpq 0x30(%rbx), %r14
je 0x62ce
movq %r15, %rdi
movq %r14, %rsi
callq 0x74c8
movb 0x28(%r14), %al
movb %al, 0x168(%rsp)
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %r15, %rdx
callq 0x8b6c
jmp 0x633a
xorl %r15d, %r15d
cmpq %rax, %rbp
jne 0x6389
movq 0x8(%rsp), %rax
subq (%rsp), %rax
sarq $0x4, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
movl 0x8(%rbx), %ecx
cmpq %rcx, %rax
jbe 0x6389
movq 0x10(%rbx), %r14
cmpq 0x18(%rbx), %r14
je 0x6389
leaq 0x170(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x74c8
movb 0x28(%r14), %al
movb %al, 0x198(%rsp)
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %r15, %rdx
callq 0x8b6c
movq %r15, %rdi
subq (%rsp), %rax
shrq $0x4, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
cltq
movl 0x8(%rbx), %ecx
xorl %edx, %edx
divq %rcx
movq %rax, %xmm0
punpckldq 0x3cee(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3cf6(%rip), %xmm0     # 0xa060
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
cvtsi2sd %rcx, %xmm2
addsd %xmm0, %xmm1
mulsd %xmm1, %xmm2
cvttsd2si %xmm2, %r15
callq 0x751e
cmpq $0x3, %rbp
je 0x6964
movl 0x44(%rbx,%rbp,4), %eax
testq %rbp, %rbp
je 0x63f6
cmpq $0x1, %rbp
jne 0x63da
movq 0x50(%rbx), %rcx
movq 0x58(%rbx), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rdx
cmpq $0x2, %rdx
jbe 0x6970
movq 0x38(%rcx), %rsi
xorl %edx, %edx
cmpq 0x30(%rcx), %rsi
jne 0x63d8
movl 0x4c(%rbx), %edx
addl %edx, %eax
movl 0x4(%rbx), %ecx
xorl %edx, %edx
xorl %r12d, %r12d
addl 0x44(%rbx,%rdx,4), %r12d
addl %ecx, %r12d
incq %rdx
cmpq %rdx, %rbp
jne 0x63e2
xorl %ecx, %ecx
jmp 0x63fb
xorl %r12d, %r12d
movb $0x1, %cl
movq 0x8(%rsp), %rdx
subq (%rsp), %rdx
shrq $0x4, %rdx
imull $0xaaaaaaab, %edx, %edx # imm = 0xAAAAAAAB
subl %r15d, %edx
movq %rbx, %r14
movl 0x8(%rbx), %esi
cmpl %edx, %esi
cmovll %esi, %edx
testl %edx, %edx
je 0x68a8
addl $-0x4, %eax
cltq
movq %rax, 0x100(%rsp)
testb %cl, %cl
leaq 0x3ec3(%rip), %rsi      # 0xa2fd
leaq 0x3eb5(%rip), %rax      # 0xa2f6
cmovneq %rax, %rsi
movq %rsi, 0x80(%rsp)
movzbl %cl, %eax
addq $0x5, %rax
movq %rax, 0x78(%rsp)
movl %edx, %eax
movq %rax, 0xf8(%rsp)
movl %r15d, %eax
movq %rax, 0x108(%rsp)
xorl %ecx, %ecx
movq %rbp, 0x40(%rsp)
movq %r13, %r15
movq 0x108(%rsp), %rax
leal (%rax,%rcx), %ebx
movq (%rsp), %r13
movq 0x8(%rsp), %rdx
subq %r13, %rdx
sarq $0x4, %rdx
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rdx
cmpq %rbx, %rdx
jbe 0x6942
movq %rcx, 0x88(%rsp)
leaq (%rbx,%rbx,2), %rbp
shlq $0x4, %rbp
addq %rbp, %r13
leaq 0x110(%rsp), %rdi
movq %r13, %rsi
callq 0x74c8
movb 0x28(%r13), %al
movb %al, 0x138(%rsp)
movq (%rsp), %r13
movq 0x8(%rsp), %rdx
subq %r13, %rdx
sarq $0x4, %rdx
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rdx
cmpq %rbx, %rdx
jbe 0x6953
movq 0x8(%r13,%rbp), %rcx
testq %rcx, %rcx
je 0x655d
addq %rbp, %r13
movq 0x20(%r13), %rax
testb $0x3, %al
je 0x652c
andl $0x3, %eax
cmpl $0x3, %eax
jne 0x655d
movq %r15, %rdi
movq %r13, %rsi
movq %r15, %r13
callq 0x74c8
jmp 0x6568
movq (%r13), %rdx
cmpb $0x2f, -0x1(%rdx,%rcx)
je 0x655d
testb $0x3, %al
jne 0x6557
leaq 0x20(%r13), %rdi
callq 0x3150
movq 0x20(%r13), %rcx
addq $-0x30, %rax
testb $0x3, %cl
cmoveq %rax, %r13
movq 0x20(%r13), %rax
notl %eax
testb $0x3, %al
je 0x651c
movq %r15, %r13
movq %r15, %rdi
callq 0x77ae
movq 0x90(%rsp), %rsi
leaq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x98(%rsp), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x81e6
movq %r13, %rdi
callq 0x751e
leaq 0xe8(%rsp), %rax
movq %rax, 0xd8(%rsp)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
leaq 0xd8(%rsp), %r15
movq %r15, %rdi
callq 0x8eac
movq %r13, %rdi
movq %r15, %rsi
movq 0x100(%rsp), %rdx
callq 0x39c0
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x65fc
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x20(%rsp), %rdi
movq 0x88(%rsp), %rsi
movl %r12d, %edx
callq 0x38ec
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x1a0(%rsp), %rdi
callq 0x3240
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x6644
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0xc8(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
leaq 0xb8(%rsp), %r15
movq %r15, %rdi
callq 0x8eac
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x3b50
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x1a0(%rsp), %rdi
callq 0x3240
movl $0x1, %edx
movq %rax, %rdi
leaq 0x3cd3(%rip), %rsi      # 0xa377
callq 0x3240
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x66c5
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x66ea
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rsi
cmpq 0x18(%rax), %rsi
je 0x674c
movq (%rsp), %rdi
movq 0x8(%rsp), %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rdx
cmpq %rbx, %rdx
jbe 0x6931
addq %rbp, %rdi
callq 0x31e0
testl %eax, %eax
jne 0x674c
movq 0x18(%rsp), %rax
movl 0x40(%rax), %eax
movq 0x80(%rsp), %rsi
movq 0x78(%rsp), %rdx
cmpq %rax, 0x40(%rsp)
je 0x67da
movq 0x18(%rsp), %rax
movq 0x28(%rax), %rsi
cmpq 0x30(%rax), %rsi
je 0x67ac
movq (%rsp), %rdi
movq 0x8(%rsp), %rdx
subq %rdi, %rdx
sarq $0x4, %rdx
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rdx
cmpq %rbx, %rdx
jbe 0x6931
addq %rbp, %rdi
callq 0x31e0
testl %eax, %eax
jne 0x67ac
movq 0x18(%rsp), %rax
movl 0x40(%rax), %eax
decl %eax
movq 0x80(%rsp), %rsi
movq 0x78(%rsp), %rdx
cmpq %rax, 0x40(%rsp)
je 0x67da
movzbl 0x138(%rsp), %eax
cmpl $0x3, %eax
je 0x67bd
testl %eax, %eax
jne 0x67ca
leaq 0x110(%rsp), %rdi
callq 0x30c0
movl $0x5, %edx
leaq 0x39d1(%rip), %rsi      # 0xa1a7
cmpb $0x2, %al
jne 0x681a
leaq 0x1a0(%rsp), %rdi
callq 0x3240
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
leaq 0x1a0(%rsp), %rdi
callq 0x3240
movl $0x4, %edx
movq %rax, %rdi
leaq 0x39a2(%rip), %rsi      # 0xa1b5
callq 0x3240
jmp 0x6837
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
leaq 0x1a0(%rsp), %rdi
callq 0x3240
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x685c
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
movq 0x40(%rsp), %rbp
movq 0x18(%rsp), %r14
je 0x6882
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x110(%rsp), %rdi
callq 0x751e
movq 0x88(%rsp), %rcx
incq %rcx
cmpq %rcx, 0xf8(%rsp)
jne 0x6475
movq %rsp, %r12
movq %r12, %rdi
callq 0x5e12
incq %rbp
movq %r14, %rbx
movq 0x50(%r14), %rax
movq 0x58(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rcx
cmpq %rbp, %rcx
leaq 0x140(%rsp), %r15
ja 0x6256
leaq 0x1a8(%rsp), %rsi
movq 0x70(%rsp), %rdi
callq 0x3350
movq 0x86c0(%rip), %rsi      # 0xefc0
leaq 0x1a0(%rsp), %rdi
callq 0x3120
leaq 0x210(%rsp), %rdi
callq 0x3080
movq 0x70(%rsp), %rax
addq $0x318, %rsp            # imm = 0x318
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x38c8(%rip), %rdi      # 0xa200
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3310
leaq 0x38b7(%rip), %rdi      # 0xa200
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3310
leaq 0x38a6(%rip), %rdi      # 0xa200
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3310
movl $0x3, %esi
movl $0x3, %edx
jmp 0x6981
movl $0x2, %esi
leaq 0x3884(%rip), %rax      # 0xa200
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rdi
xorl %eax, %eax
callq 0x3310
movq %rax, %rbx
leaq 0x170(%rsp), %rdi
jmp 0x6add
jmp 0x6a41
jmp 0x69b9
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
jmp 0x6add
jmp 0x6a41
movq %rax, %rbx
jmp 0x6aea
jmp 0x6a41
jmp 0x6a39
movq %rax, %rbx
jmp 0x6a6a
movq %rax, %rbx
jmp 0x6ab9
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x6a94
movq 0x30(%rsp), %rsi
jmp 0x6a87
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x6ab9
movq 0xe8(%rsp), %rsi
jmp 0x6ab1
jmp 0x6a91
jmp 0x6a91
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x751e
jmp 0x6ad5
jmp 0x6a41
movq %rax, %rbx
jmp 0x6ad5
movq %rax, %rbx
jmp 0x6ae2
jmp 0x6a91
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x6a6a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x6a94
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0x6a94
movq %rax, %rbx
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x6ab9
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x6ad5
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x110(%rsp), %rdi
callq 0x751e
movq %rsp, %rdi
callq 0x5e12
movq 0x84cf(%rip), %rsi      # 0xefc0
leaq 0x1a0(%rsp), %rdi
callq 0x3120
leaq 0x210(%rsp), %rdi
callq 0x3080
movq %rbx, %rdi
callq 0x33b0
nop