// File: /workspace/github_cpp_makefile_star2_O1/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 0x89d8
movq 0x10(%rbx), %r15
leaq 0x18(%rbx), %r14
testq %r15, %r15
je 0x85c2
movq %r15, 0x28(%rsp)
leaq 0x5196(%rip), %rsi      # 0xd4f6
movl $0xa, %edx
movq %r14, %rdi
callq 0x3340
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x31f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x32f0
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3200
leaq 0x5157(%rip), %rsi      # 0xd501
movl $0xe, %edx
movq %r14, %rdi
callq 0x3340
movq 0x18(%rbx), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x32f0
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3200
cmpq $0x0, 0x10(%rbx)
je 0x8552
leaq 0x18(%rsp), %r13
xorl %r15d, %r15d
movabsq $0x346dc5d63886594b, %r12 # imm = 0x346DC5D63886594B
movl $0x2, %edx
movq %r14, %rdi
leaq 0x5105(%rip), %rsi      # 0xd510
callq 0x3340
movl $0x1, %esi
cmpq $0xa, %r15
jb 0x8460
movl $0x4, %esi
movq %r15, %rcx
cmpq $0x63, %rcx
jbe 0x8459
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x845e
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x8460
movq %rcx, %rax
mulq %r12
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x8423
addl $-0x3, %esi
jmp 0x8460
addl $-0x2, %esi
jmp 0x8460
decl %esi
movl %esi, %esi
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
leaq 0x30(%rsp), %rdi
xorl %edx, %edx
callq 0x3350
movq 0x30(%rsp), %rdi
movl 0x38(%rsp), %esi
movq %r15, %rdx
callq 0x8a4c
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq %r14, %rdi
callq 0x3340
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
leaq 0x5304(%rip), %rsi      # 0xd7b1
callq 0x3340
movl $0x2, %edx
movq %rbp, %rdi
leaq 0x5052(%rip), %rsi      # 0xd513
callq 0x3340
movq (%rbx), %rax
movq (%rax,%r15,8), %rax
movq %r13, 0x8(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x55d2
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x3340
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x32f0
movsbl %al, %esi
movq %rbp, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3200
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x8531
callq 0x32d0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x8545
callq 0x32d0
incq %r15
cmpq 0x10(%rbx), %r15
jb 0x83fc
callq 0xbc5a
cmpl $0x3, %eax
movq 0x28(%rsp), %r15
jge 0x867c
leaq 0x4ebd(%rip), %rsi      # 0xd429
leaq 0x4f79(%rip), %rcx      # 0xd4ec
leaq 0x30(%rsp), %r14
movq %r14, %rdi
movl $0x7c, %edx
movl $0x2, %r8d
callq 0xb910
movq %r14, %rdi
callq 0xbc72
movq %rax, %r14
addq $0x20, %rbx
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x3470
addq $0x10, %r14
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x3340
jmp 0x865f
leaq 0x4ee5(%rip), %rsi      # 0xd4ae
movl $0x3d, %edx
movq %r14, %rdi
callq 0x3340
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x32f0
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3200
callq 0xbc5a
cmpl $0x2, %eax
jg 0x867c
leaq 0x4e1b(%rip), %rsi      # 0xd429
leaq 0x4ed7(%rip), %rcx      # 0xd4ec
leaq 0x30(%rsp), %r14
movq %r14, %rdi
movl $0x73, %edx
movl $0x2, %r8d
callq 0xb910
movq %r14, %rdi
callq 0xbc72
movq %rax, %r14
addq $0x20, %rbx
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x3470
addq $0x10, %r14
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x3340
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8672
callq 0x32d0
leaq 0x30(%rsp), %rdi
callq 0xbb24
testq %r15, %r15
setne %al
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x869a
jmp 0x86b4
jmp 0x86b4
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x86b7
callq 0x32d0
jmp 0x86b7
jmp 0x86b4
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xbb24
jmp 0x86f0
jmp 0x86c5
movq %rax, %rbx
jmp 0x86dc
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x86dc
callq 0x32d0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x86f0
callq 0x32d0
movq %rbx, %rdi
callq 0x34d0