// File: /workspace/github_cpp_makefile_star2_O2/Rjerk[P]ratabase/RatabaseManager.cpp
// Function: ratabase::RatabaseManager::displayDB()
bool RatabaseManager::displayDB()
{
    resetMsg();
    if (dbcount == 0) {
        msg << "There is no database, use 'create [db-name]' build a new one." << endl;
        LOG_INFO << msg.str();
        return false;
    } else {
        msg << "db count: " << dbcount << endl;
        msg << "[id]  db-name " << endl;
        for (size_t i = 0; i < dbcount; ++i) {
            msg << "[ " << std::to_string(i) << "]"
                << "  " << dbtable[i]->getName() << endl;
        }
        LOG_INFO << msg.str();
        return true;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rdi, %rbx
callq 0x7d72
movq 0x10(%rbx), %r15
leaq 0x18(%rbx), %r14
testq %r15, %r15
je 0x7a7b
movq %r15, 0x28(%rsp)
leaq 0x3bc8(%rip), %rsi      # 0xb512
movq %r14, %rdi
callq 0x3300
movq 0x10(%rbx), %rsi
movq %rax, %rdi
callq 0x3210
movq %rax, %rdi
callq 0x3190
leaq 0x3bb0(%rip), %rsi      # 0xb51d
movq %r14, %rdi
callq 0x3300
movq %rax, %rdi
callq 0x3190
xorl %r15d, %r15d
leaq 0x30(%rsp), %r13
leaq 0x8(%rsp), %rbp
cmpq 0x10(%rbx), %r15
jae 0x7a17
movq %r14, %rdi
leaq 0x3b8e(%rip), %rsi      # 0xb52c
callq 0x3300
movq %rax, %r12
movq %r13, %rdi
movq %r15, %rsi
callq 0x7dd8
movq %r12, %rdi
movq %r13, %rsi
callq 0x32b0
movq %rax, %rdi
leaq 0x3dec(%rip), %rsi      # 0xb7b2
callq 0x3300
movq %rax, %rdi
leaq 0x3b5a(%rip), %rsi      # 0xb52f
callq 0x3300
movq %rax, %r12
movq (%rbx), %rax
movq (%rax,%r15,8), %rsi
movq %rbp, %rdi
callq 0x33b0
movq %r12, %rdi
movq %rbp, %rsi
callq 0x32b0
movq %rax, %rdi
callq 0x3190
movq %rbp, %rdi
callq 0x3170
movq %r13, %rdi
callq 0x3170
incq %r15
jmp 0x798a
callq 0x9f0e
cmpl $0x3, %eax
movq 0x28(%rsp), %r15
jge 0x7aff
leaq 0x3a14(%rip), %rsi      # 0xb445
leaq 0x3ad0(%rip), %rcx      # 0xb508
leaq 0x30(%rsp), %r14
pushq $0x7c
popq %rdx
pushq $0x2
popq %r8
movq %r14, %rdi
callq 0x9cd8
movq %r14, %rdi
callq 0x9f26
movq %rax, %r14
addq $0x20, %rbx
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x3440
addq $0x10, %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x32b0
jmp 0x7aeb
leaq 0x3a48(%rip), %rsi      # 0xb4ca
movq %r14, %rdi
callq 0x3300
movq %rax, %rdi
callq 0x3190
callq 0x9f0e
cmpl $0x2, %eax
jg 0x7aff
leaq 0x39a2(%rip), %rsi      # 0xb445
leaq 0x3a5e(%rip), %rcx      # 0xb508
leaq 0x30(%rsp), %r14
pushq $0x73
popq %rdx
pushq $0x2
popq %r8
movq %r14, %rdi
callq 0x9cd8
movq %r14, %rdi
callq 0x9f26
movq %rax, %r14
addq $0x20, %rbx
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x3440
addq $0x10, %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x32b0
leaq 0x8(%rsp), %rdi
callq 0x3170
leaq 0x30(%rsp), %rdi
callq 0x9e18
testq %r15, %r15
setne %al
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7b1d
jmp 0x7b2e
jmp 0x7b2e
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3170
jmp 0x7b31
jmp 0x7b2e
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x9e18
jmp 0x7b5b
jmp 0x7b4e
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3170
jmp 0x7b51
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x3170
movq %rbx, %rdi
callq 0x34b0
nop