// File: /workspace/github_cpp_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
leaq 0x6805(%rip), %rax      # 0x95e8
movq %rax, 0x67ee(%rip)      # 0x95d8
leaq 0x67e7(%rip), %rsi      # 0x95d8
movl $0x6d305b1b, 0x67ed(%rip) # imm = 0x6D305B1B
movq $0x4, 0x67da(%rip) # 0x95e0
xorl %r15d, %r15d
movb %r15b, 0x67dc(%rip)     # 0x95ec
movq 0x6179(%rip), %r14      # 0x8f90
leaq 0x636a(%rip), %rbx      # 0x9188
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2160
leaq 0x67d8(%rip), %rax      # 0x9608
movq %rax, 0x67c1(%rip)      # 0x95f8
leaq 0x67ba(%rip), %rsi      # 0x95f8
movw $0x6d, %r12w
movw %r12w, 0x67c1(%rip)     # 0x960c
movl $0x30335b1b, 0x67b3(%rip) # imm = 0x30335B1B
movl $0x5, %r13d
movq %r13, 0x679e(%rip)      # 0x9600
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2160
leaq 0x67b4(%rip), %rax      # 0x9628
movq %rax, 0x679d(%rip)      # 0x9618
leaq 0x6796(%rip), %rsi      # 0x9618
movw %r12w, 0x67a2(%rip)     # 0x962c
movl $0x31335b1b, 0x6794(%rip) # imm = 0x31335B1B
movq %r13, 0x6785(%rip)      # 0x9620
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2160
leaq 0x679b(%rip), %rax      # 0x9648
movq %rax, 0x6784(%rip)      # 0x9638
leaq 0x677d(%rip), %rsi      # 0x9638
movw %r12w, 0x6789(%rip)     # 0x964c
movl $0x32335b1b, 0x677b(%rip) # imm = 0x32335B1B
movq %r13, 0x676c(%rip)      # 0x9640
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2160
leaq 0x6782(%rip), %rax      # 0x9668
movq %rax, 0x676b(%rip)      # 0x9658
leaq 0x6764(%rip), %rsi      # 0x9658
movw %r12w, 0x6770(%rip)     # 0x966c
movl $0x33335b1b, 0x6762(%rip) # imm = 0x33335B1B
movq %r13, 0x6753(%rip)      # 0x9660
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2160
leaq 0x6769(%rip), %rax      # 0x9688
movq %rax, 0x6752(%rip)      # 0x9678
leaq 0x674b(%rip), %rsi      # 0x9678
movw %r12w, 0x6757(%rip)     # 0x968c
movl $0x34335b1b, 0x6749(%rip) # imm = 0x34335B1B
movq %r13, 0x673a(%rip)      # 0x9680
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2160
leaq 0x6750(%rip), %rax      # 0x96a8
movq %rax, 0x6739(%rip)      # 0x9698
leaq 0x6732(%rip), %rsi      # 0x9698
movw %r12w, 0x673e(%rip)     # 0x96ac
movl $0x35335b1b, 0x6730(%rip) # imm = 0x35335B1B
movq %r13, 0x6721(%rip)      # 0x96a0
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2160
leaq 0x6737(%rip), %rax      # 0x96c8
movq %rax, 0x6720(%rip)      # 0x96b8
leaq 0x6719(%rip), %rsi      # 0x96b8
movw %r12w, 0x6725(%rip)     # 0x96cc
movl $0x36335b1b, 0x6717(%rip) # imm = 0x36335B1B
movq %r13, 0x6708(%rip)      # 0x96c0
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2160
leaq 0x671e(%rip), %rax      # 0x96e8
movq %rax, 0x6707(%rip)      # 0x96d8
leaq 0x6700(%rip), %rsi      # 0x96d8
movw %r12w, 0x670c(%rip)     # 0x96ec
movl $0x37335b1b, 0x66fe(%rip) # imm = 0x37335B1B
movq %r13, 0x66ef(%rip)      # 0x96e0
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2160
leaq 0x6705(%rip), %rax      # 0x9708
movq %rax, 0x66ee(%rip)      # 0x96f8
leaq 0x66e7(%rip), %rsi      # 0x96f8
movabsq $0x30335b1b6d315b1b, %rax # imm = 0x30335B1B6D315B1B
movq %rax, 0x66e6(%rip)      # 0x9708
movw %r12w, 0x66e6(%rip)     # 0x9710
movl $0x9, %r13d
movq %r13, 0x66c9(%rip)      # 0x9700
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2160
leaq 0x66df(%rip), %rax      # 0x9728
movq %rax, 0x66c8(%rip)      # 0x9718
leaq 0x66c1(%rip), %rsi      # 0x9718
movabsq $0x31335b1b6d315b1b, %rax # imm = 0x31335B1B6D315B1B
movq %rax, 0x66c0(%rip)      # 0x9728
movw %r12w, 0x66c0(%rip)     # 0x9730
movq %r13, 0x66a9(%rip)      # 0x9720
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2160
leaq 0x66bf(%rip), %rax      # 0x9748
movq %rax, 0x66a8(%rip)      # 0x9738
leaq 0x66a1(%rip), %rsi      # 0x9738
movabsq $0x32335b1b6d315b1b, %rax # imm = 0x32335B1B6D315B1B
movq %rax, 0x66a0(%rip)      # 0x9748
movw %r12w, 0x66a0(%rip)     # 0x9750
movq %r13, 0x6689(%rip)      # 0x9740
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2160
leaq 0x669f(%rip), %rax      # 0x9768
movq %rax, 0x6688(%rip)      # 0x9758
leaq 0x6681(%rip), %rsi      # 0x9758
movabsq $0x33335b1b6d315b1b, %rax # imm = 0x33335B1B6D315B1B
movq %rax, 0x6680(%rip)      # 0x9768
movw %r12w, 0x6680(%rip)     # 0x9770
movq %r13, 0x6669(%rip)      # 0x9760
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2160
leaq 0x667f(%rip), %rax      # 0x9788
movq %rax, 0x6668(%rip)      # 0x9778
leaq 0x6661(%rip), %rsi      # 0x9778
movabsq $0x34335b1b6d315b1b, %rax # imm = 0x34335B1B6D315B1B
movq %rax, 0x6660(%rip)      # 0x9788
movw %r12w, 0x6660(%rip)     # 0x9790
movq %r13, 0x6649(%rip)      # 0x9780
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2160
leaq 0x665f(%rip), %rax      # 0x97a8
movq %rax, 0x6648(%rip)      # 0x9798
leaq 0x6641(%rip), %rsi      # 0x9798
movabsq $0x35335b1b6d315b1b, %rax # imm = 0x35335B1B6D315B1B
movq %rax, 0x6640(%rip)      # 0x97a8
movw %r12w, 0x6640(%rip)     # 0x97b0
movq %r13, 0x6629(%rip)      # 0x97a0
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2160
leaq 0x663f(%rip), %rax      # 0x97c8
movq %rax, 0x6628(%rip)      # 0x97b8
leaq 0x6621(%rip), %rsi      # 0x97b8
movabsq $0x36335b1b6d315b1b, %rax # imm = 0x36335B1B6D315B1B
movq %rax, 0x6620(%rip)      # 0x97c8
movw %r12w, 0x6620(%rip)     # 0x97d0
movq %r13, 0x6609(%rip)      # 0x97c0
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2160
leaq -0xc0(%rbp), %rax
movq %rax, -0x10(%rax)
movw $0x42, (%rax)
movq $0x1, -0x8(%rax)
leaq -0xa0(%rbp), %rax
movq %rax, -0x10(%rax)
movw $0x424b, (%rax)         # imm = 0x424B
movl $0x2, %ecx
movq %rcx, -0x8(%rax)
movb %r15b, 0x2(%rax)
leaq -0x80(%rbp), %rax
movq %rax, -0x10(%rax)
movw $0x424d, (%rax)         # imm = 0x424D
movq %rcx, -0x8(%rax)
movb %r15b, 0x2(%rax)
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
movw $0x4247, (%rax)         # imm = 0x4247
movq %rcx, -0x8(%rax)
movb %r15b, 0x2(%rax)
leaq -0x40(%rbp), %r14
movq %r14, -0x10(%r14)
movw $0x4254, (%r14)         # imm = 0x4254
movq %rcx, -0x8(%r14)
movb %r15b, 0x2(%r14)
leaq 0x659a(%rip), %rdi      # 0x97d8
leaq -0xd0(%rbp), %rsi
leaq -0x29(%rbp), %rcx
movl $0x5, %edx
callq 0x40c2
xorl %ebx, %ebx
movq -0x50(%rbp,%rbx), %rdi
leaq (%r14,%rbx), %rax
cmpq %rdi, %rax
je 0x3268
callq 0x2170
addq $-0x20, %rbx
cmpq $-0xa0, %rbx
jne 0x3255
leaq 0xe88(%rip), %rdi       # 0x4104
leaq 0x6555(%rip), %rsi      # 0x97d8
leaq 0x5efe(%rip), %rdx      # 0x9188
callq 0x2160
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
xorl %r15d, %r15d
movq -0x50(%rbp,%r15), %rdi
leaq (%r14,%r15), %rax
cmpq %rdi, %rax
je 0x32ba
callq 0x2170
addq $-0x20, %r15
cmpq $-0xa0, %r15
jne 0x32a7
movq %rbx, %rdi
callq 0x22b0
nop