// File: /workspace/github_cpp_makefile_star2_O2/bendem[P]DiskGraph/src/string_manips.cpp
// Function: GLOBAL__sub_I_string_manips.cpp
string displayGraph(unsigned percent, unsigned width, char graphChar) {
    if(width <= 2) {
        return "";
    }
    ostringstream ss;
    ss << '[' << GREEN;
    bool empty = false;
    for(unsigned i = 0; i < width-2; ++i) {
        if(!empty) {
            if (i > width / 4 * 3) {
                // More than 75%
                ss << RED;
            } else if (i >= width / 2) {
                // More than 50%
                ss << YELLOW;
            }
            if (i > percent * width / 100) {
                empty = true;
            }
        }
        ss << (empty ? ' ' : graphChar);
    }
    ss << RESET << ']';
    return ss.str();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xa8, %rsp
leaq 0x5ac8(%rip), %r15      # 0x85c8
leaq 0x24fd(%rip), %rsi      # 0x5004
leaq -0xc0(%rbp), %rdx
movq %r15, %rdi
callq 0x2090
movq 0x5483(%rip), %r14      # 0x7fa0
leaq 0x5654(%rip), %rbx      # 0x8178
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2130
leaq 0x5aaf(%rip), %r15      # 0x85e8
leaq 0x24d3(%rip), %rsi      # 0x5013
leaq -0xc0(%rbp), %rdx
movq %r15, %rdi
callq 0x2090
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2130
leaq 0x5aa4(%rip), %r15      # 0x8608
leaq 0x24b2(%rip), %rsi      # 0x501d
leaq -0xc0(%rbp), %rdx
movq %r15, %rdi
callq 0x2090
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2130
leaq 0x5a99(%rip), %r15      # 0x8628
leaq 0x2491(%rip), %rsi      # 0x5027
leaq -0xc0(%rbp), %rdx
movq %r15, %rdi
callq 0x2090
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2130
leaq 0x5a8e(%rip), %r15      # 0x8648
leaq 0x2470(%rip), %rsi      # 0x5031
leaq -0xc0(%rbp), %rdx
movq %r15, %rdi
callq 0x2090
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2130
leaq 0x5a83(%rip), %r15      # 0x8668
leaq 0x244f(%rip), %rsi      # 0x503b
leaq -0xc0(%rbp), %rdx
movq %r15, %rdi
callq 0x2090
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2130
leaq 0x5a78(%rip), %r15      # 0x8688
leaq 0x242e(%rip), %rsi      # 0x5045
leaq -0xc0(%rbp), %rdx
movq %r15, %rdi
callq 0x2090
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2130
leaq 0x5a6d(%rip), %r15      # 0x86a8
leaq 0x240d(%rip), %rsi      # 0x504f
leaq -0xc0(%rbp), %rdx
movq %r15, %rdi
callq 0x2090
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2130
leaq 0x5a62(%rip), %r15      # 0x86c8
leaq 0x239c(%rip), %rsi      # 0x5009
leaq -0xc0(%rbp), %rdx
movq %r15, %rdi
callq 0x2090
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2130
leaq 0x5a57(%rip), %r15      # 0x86e8
leaq 0x2377(%rip), %rsi      # 0x500f
leaq -0xc0(%rbp), %rdx
movq %r15, %rdi
callq 0x2090
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2130
leaq 0x5a4c(%rip), %r15      # 0x8708
leaq 0x2356(%rip), %rsi      # 0x5019
leaq -0xc0(%rbp), %rdx
movq %r15, %rdi
callq 0x2090
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2130
leaq 0x5a41(%rip), %r15      # 0x8728
leaq 0x2335(%rip), %rsi      # 0x5023
leaq -0xc0(%rbp), %rdx
movq %r15, %rdi
callq 0x2090
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2130
leaq 0x5a36(%rip), %r15      # 0x8748
leaq 0x2314(%rip), %rsi      # 0x502d
leaq -0xc0(%rbp), %rdx
movq %r15, %rdi
callq 0x2090
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2130
leaq 0x5a2b(%rip), %r15      # 0x8768
leaq 0x22f3(%rip), %rsi      # 0x5037
leaq -0xc0(%rbp), %rdx
movq %r15, %rdi
callq 0x2090
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2130
leaq 0x5a20(%rip), %r15      # 0x8788
leaq 0x22d2(%rip), %rsi      # 0x5041
leaq -0xc0(%rbp), %rdx
movq %r15, %rdi
callq 0x2090
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2130
leaq 0x5a15(%rip), %r15      # 0x87a8
leaq 0x22b1(%rip), %rsi      # 0x504b
leaq -0xc0(%rbp), %rdx
movq %r15, %rdi
callq 0x2090
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2130
leaq 0x229e(%rip), %rsi      # 0x505c
leaq -0xc0(%rbp), %rbx
leaq -0x1e(%rbp), %rdx
movq %rbx, %rdi
callq 0x2090
leaq -0xa0(%rbp), %r14
leaq 0x2276(%rip), %rsi      # 0x5055
leaq -0x1d(%rbp), %rdx
movq %r14, %rdi
callq 0x2090
leaq -0x80(%rbp), %r14
leaq 0x2262(%rip), %rsi      # 0x5058
leaq -0x1c(%rbp), %rdx
movq %r14, %rdi
callq 0x2090
leaq -0x60(%rbp), %r14
leaq 0x224e(%rip), %rsi      # 0x505b
leaq -0x1b(%rbp), %rdx
movq %r14, %rdi
callq 0x2090
leaq -0x40(%rbp), %r14
leaq 0x223a(%rip), %rsi      # 0x505e
leaq -0x1a(%rbp), %rdx
movq %r14, %rdi
callq 0x2090
leaq 0x5991(%rip), %rdi      # 0x87c8
leaq -0xc0(%rbp), %rsi
pushq $0x5
popq %rdx
leaq -0x19(%rbp), %rcx
callq 0x376e
movl $0x80, %ebx
leaq (%rbx,%rbp), %rdi
addq $-0xc0, %rdi
callq 0x22e8
addq $-0x20, %rbx
cmpq $-0x20, %rbx
jne 0x2e4f
leaq 0x938(%rip), %rdi       # 0x37a8
leaq 0x5951(%rip), %rsi      # 0x87c8
leaq 0x52fa(%rip), %rdx      # 0x8178
callq 0x2130
addq $0xa8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movl $0x80, %ebx
leaq (%rbx,%rbp), %rdi
addq $-0xc0, %rdi
callq 0x22e8
addq $-0x20, %rbx
cmpq $-0x20, %rbx
jne 0x2e99
jmp 0x2ecf
jmp 0x2ebb
jmp 0x2ebb
jmp 0x2ebb
movq %rax, %r15
addq $-0x20, %r14
movq %r14, %rdi
callq 0x22e8
cmpq %rbx, %r14
jne 0x2ebe
movq %r15, %rdi
callq 0x2290
nopw (%rax,%rax)