// File: 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:
subq $0x428, %rsp            # imm = 0x428
movq %rdi, 0x418(%rsp)
movq 0x418(%rsp), %rdi
movq %rdi, 0x68(%rsp)
callq 0xda10
movq 0x68(%rsp), %rax
cmpq $0x0, 0x10(%rax)
jne 0xd38b
movq 0x68(%rsp), %rdi
addq $0x18, %rdi
leaq 0x7251(%rip), %rsi      # 0x144d2
callq 0x3390
movq %rax, %rdi
movq 0xdd30(%rip), %rsi      # 0x1afc0
callq 0x33c0
callq 0x12170
cmpl $0x2, %eax
jg 0xd37e
leaq 0x71a3(%rip), %rsi      # 0x1444d
leaq 0x725f(%rip), %rcx      # 0x14510
leaq 0x290(%rsp), %rdi
movq %rdi, 0x58(%rsp)
movl $0x73, %edx
movl $0x2, %r8d
callq 0x11e00
movq 0x58(%rsp), %rdi
callq 0x121a0
movq %rax, 0x60(%rsp)
jmp 0xd2df
movq 0x68(%rsp), %rsi
movq 0x60(%rsp), %rax
addq $0x10, %rax
movq %rax, 0x50(%rsp)
addq $0x18, %rsi
leaq 0x260(%rsp), %rdi
callq 0x33b0
jmp 0xd305
movq 0x50(%rsp), %rdi
leaq 0x260(%rsp), %rsi
callq 0x3350
jmp 0xd319
leaq 0x260(%rsp), %rdi
callq 0x3280
leaq 0x290(%rsp), %rdi
callq 0x12060
jmp 0xd37e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x288(%rsp)
movl %eax, 0x284(%rsp)
jmp 0xd36c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x288(%rsp)
movl %eax, 0x284(%rsp)
leaq 0x260(%rsp), %rdi
callq 0x3280
leaq 0x290(%rsp), %rdi
callq 0x12060
jmp 0xd63f
movb $0x0, 0x427(%rsp)
jmp 0xd62e
movq 0x68(%rsp), %rdi
addq $0x18, %rdi
leaq 0x717f(%rip), %rsi      # 0x1451a
callq 0x3390
movq %rax, %rdi
movq 0x68(%rsp), %rax
movq 0x10(%rax), %rsi
callq 0x30d0
movq %rax, %rdi
movq 0xdc05(%rip), %rsi      # 0x1afc0
callq 0x33c0
movq 0x68(%rsp), %rdi
addq $0x18, %rdi
leaq 0x7155(%rip), %rsi      # 0x14525
callq 0x3390
movq %rax, %rdi
movq 0xdbe1(%rip), %rsi      # 0x1afc0
callq 0x33c0
movq $0x0, 0x258(%rsp)
movq 0x68(%rsp), %rcx
movq 0x258(%rsp), %rax
cmpq 0x10(%rcx), %rax
jae 0xd54c
movq 0x68(%rsp), %rdi
addq $0x18, %rdi
leaq 0x711d(%rip), %rsi      # 0x14534
callq 0x3390
movq %rax, 0x38(%rsp)
movq 0x258(%rsp), %rsi
leaq 0x238(%rsp), %rdi
movq %rdi, 0x40(%rsp)
callq 0xdaa0
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x3350
movq %rax, 0x48(%rsp)
jmp 0xd451
movq 0x48(%rsp), %rdi
leaq 0x7355(%rip), %rsi      # 0x147b2
callq 0x3390
movq %rax, 0x30(%rsp)
jmp 0xd469
movq 0x30(%rsp), %rdi
leaq 0x70c2(%rip), %rsi      # 0x14537
callq 0x3390
movq %rax, 0x28(%rsp)
jmp 0xd481
movq 0x68(%rsp), %rax
movq (%rax), %rax
movq 0x258(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x218(%rsp), %rdi
callq 0xdba0
jmp 0xd4a4
movq 0x28(%rsp), %rdi
leaq 0x218(%rsp), %rsi
callq 0x3350
movq %rax, 0x20(%rsp)
jmp 0xd4bd
movq 0x20(%rsp), %rdi
movq 0xdaf7(%rip), %rsi      # 0x1afc0
callq 0x33c0
jmp 0xd4d0
leaq 0x218(%rsp), %rdi
callq 0x3280
leaq 0x238(%rsp), %rdi
callq 0x3280
movq 0x258(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x258(%rsp)
jmp 0xd3f0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x288(%rsp)
movl %eax, 0x284(%rsp)
jmp 0xd53a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x288(%rsp)
movl %eax, 0x284(%rsp)
leaq 0x218(%rsp), %rdi
callq 0x3280
leaq 0x238(%rsp), %rdi
callq 0x3280
jmp 0xd63f
callq 0x12170
cmpl $0x2, %eax
jg 0xd626
leaq 0x6eec(%rip), %rsi      # 0x1444d
leaq 0x6fa8(%rip), %rcx      # 0x14510
leaq 0x90(%rsp), %rdi
movq %rdi, 0x10(%rsp)
movl $0x7c, %edx
movl $0x2, %r8d
callq 0x11e00
movq 0x10(%rsp), %rdi
callq 0x121a0
movq %rax, 0x18(%rsp)
jmp 0xd596
movq 0x68(%rsp), %rsi
movq 0x18(%rsp), %rax
addq $0x10, %rax
movq %rax, 0x8(%rsp)
addq $0x18, %rsi
leaq 0x70(%rsp), %rdi
callq 0x33b0
jmp 0xd5b9
movq 0x8(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x3350
jmp 0xd5ca
leaq 0x70(%rsp), %rdi
callq 0x3280
leaq 0x90(%rsp), %rdi
callq 0x12060
jmp 0xd626
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x288(%rsp)
movl %eax, 0x284(%rsp)
jmp 0xd617
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x288(%rsp)
movl %eax, 0x284(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x3280
leaq 0x90(%rsp), %rdi
callq 0x12060
jmp 0xd63f
movb $0x1, 0x427(%rsp)
movb 0x427(%rsp), %al
andb $0x1, %al
addq $0x428, %rsp            # imm = 0x428
retq
movq 0x288(%rsp), %rdi
callq 0x3590
nopl (%rax)