// File: /workspace/github_cpp_makefile_star2_O3/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 0x899a
movq 0x10(%rbx), %r15
leaq 0x18(%rbx), %r14
testq %r15, %r15
je 0x85a2
movq %r15, 0x28(%rsp)
leaq 0x51b6(%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 0x5177(%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 0x8532
leaq 0x18(%rsp), %r13
xorl %r15d, %r15d
movabsq $0x346dc5d63886594b, %r12 # imm = 0x346DC5D63886594B
movl $0x2, %edx
movq %r14, %rdi
leaq 0x5125(%rip), %rsi      # 0xd510
callq 0x3340
movl $0x1, %esi
cmpq $0xa, %r15
jb 0x8440
movl $0x4, %esi
movq %r15, %rcx
cmpq $0x63, %rcx
jbe 0x8439
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x843e
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x8440
movq %rcx, %rax
mulq %r12
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x8403
addl $-0x3, %esi
jmp 0x8440
addl $-0x2, %esi
jmp 0x8440
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 0x8a0e
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq %r14, %rdi
callq 0x3340
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
leaq 0x5324(%rip), %rsi      # 0xd7b1
callq 0x3340
movl $0x2, %edx
movq %rbp, %rdi
leaq 0x5072(%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 0x55d0
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 0x8511
callq 0x32d0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x8525
callq 0x32d0
incq %r15
cmpq 0x10(%rbx), %r15
jb 0x83dc
callq 0xbc38
cmpl $0x3, %eax
movq 0x28(%rsp), %r15
jge 0x865c
leaq 0x4edd(%rip), %rsi      # 0xd429
leaq 0x4f99(%rip), %rcx      # 0xd4ec
leaq 0x30(%rsp), %r14
movq %r14, %rdi
movl $0x7c, %edx
movl $0x2, %r8d
callq 0xb8ee
movq %r14, %rdi
callq 0xbc50
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 0x863f
leaq 0x4f05(%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 0xbc38
cmpl $0x2, %eax
jg 0x865c
leaq 0x4e3b(%rip), %rsi      # 0xd429
leaq 0x4ef7(%rip), %rcx      # 0xd4ec
leaq 0x30(%rsp), %r14
movq %r14, %rdi
movl $0x73, %edx
movl $0x2, %r8d
callq 0xb8ee
movq %r14, %rdi
callq 0xbc50
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 0x8652
callq 0x32d0
leaq 0x30(%rsp), %rdi
callq 0xbb02
testq %r15, %r15
setne %al
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x867a
jmp 0x8694
jmp 0x8694
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8697
callq 0x32d0
jmp 0x8697
jmp 0x8694
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xbb02
jmp 0x86d0
jmp 0x86a5
movq %rax, %rbx
jmp 0x86bc
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x86bc
callq 0x32d0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x86d0
callq 0x32d0
movq %rbx, %rdi
callq 0x34d0