// File: /workspace/github_cpp_makefile_star2_O3/Rjerk[P]ratabase/RatabaseManager.cpp
// Function: ratabase::RatabaseManager::createDB(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool RatabaseManager::createDB(const string& dbname)
{
    resetMsg();
    size_t id;
    if (searchDB(dbname, id)) {
        msg << "[" << std::to_string(id) << "] " << dbname << " have existed." << endl;
        LOG_INFO << msg.str();
        return false;
    }
    if (dbcount == DB_NUM_MAX) {
        msg << "The Number of databases limited in "
             << std::to_string(DB_NUM_MAX) << "."<< endl;
        LOG_INFO << msg.str();
        return false;
    }
    dbtable[dbcount] = new Ratabase(dbname);
    current_db = dbtable[dbcount];
    msg << "create " << dbname << " [" << std::to_string(dbcount) << "] ok." << endl;
    LOG_INFO << msg.str();
    ++dbcount;
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rsi, %r14
movq %rdi, %rbx
callq 0x899a
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x88c4
testb %al, %al
je 0x77cf
leaq 0x18(%rbx), %r15
leaq 0x5d1c(%rip), %rsi      # 0xd473
movl $0x1, %edx
movq %r15, %rdi
callq 0x3340
movq 0x28(%rsp), %r12
movl $0x1, %esi
cmpq $0xa, %r12
jb 0x79bc
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r12, %rcx
cmpq $0x63, %rcx
jbe 0x79b5
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x79ba
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x79bc
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x778a
addl $-0x3, %esi
jmp 0x79bc
cmpq $0xa, 0x10(%rbx)
jne 0x78df
leaq 0x18(%rbx), %r14
leaq 0x5c61(%rip), %rsi      # 0xd446
movl $0x23, %edx
movq %r14, %rdi
callq 0x3340
leaq 0x40(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x30(%rsp), %r15
movl $0x2, %esi
movq %r15, %rdi
xorl %edx, %edx
callq 0x3350
movq (%r15), %rax
movw $0x3031, (%rax)         # imm = 0x3031
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x3340
movq %rax, %r14
leaq 0x598e(%rip), %rsi      # 0xd1bf
movl $0x1, %edx
movq %rax, %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
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x7874
callq 0x32d0
callq 0xbc38
cmpl $0x2, %eax
jg 0x7ae8
leaq 0x5ba0(%rip), %rsi      # 0xd429
leaq 0x5bad(%rip), %rcx      # 0xd43d
leaq 0x30(%rsp), %r14
movq %r14, %rdi
movl $0x3f, %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 0x7acb
movl $0x48, %edi
callq 0x3300
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x8a8c
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movq %r15, (%rax,%rcx,8)
movq (%rbx), %rax
movq (%rax,%rcx,8), %rax
movq %rax, 0x8(%rbx)
leaq 0x18(%rbx), %r15
leaq 0x5b52(%rip), %rsi      # 0xd46a
movl $0x7, %edx
movq %r15, %rdi
callq 0x3340
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r15, %rdi
callq 0x3340
movq %rax, %r14
leaq 0x5b34(%rip), %rsi      # 0xd472
movl $0x2, %edx
movq %rax, %rdi
callq 0x3340
movq 0x10(%rbx), %r15
movl $0x1, %esi
cmpq $0xa, %r15
jb 0x7af6
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r15, %rcx
cmpq $0x63, %rcx
jbe 0x7aef
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x7af4
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x7af6
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x7970
addl $-0x3, %esi
jmp 0x7af6
addl $-0x2, %esi
jmp 0x79bc
decl %esi
movl %esi, %esi
leaq 0x40(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x30(%rsp), %r13
movq %r13, %rdi
xorl %edx, %edx
callq 0x3350
movq (%r13), %rdi
movl 0x8(%r13), %esi
movq %r12, %rdx
callq 0x8a0e
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r15, %rdi
callq 0x3340
movq %rax, %r15
leaq 0x5a17(%rip), %rsi      # 0xd417
movl $0x2, %edx
movq %rax, %rdi
callq 0x3340
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r15, %rdi
callq 0x3340
movq %rax, %r14
leaq 0x59f4(%rip), %rsi      # 0xd41a
movl $0xe, %edx
movq %rax, %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
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7a69
callq 0x32d0
callq 0xbc38
cmpl $0x2, %eax
jg 0x7ae8
leaq 0x59af(%rip), %rsi      # 0xd429
leaq 0x59bc(%rip), %rcx      # 0xd43d
leaq 0x30(%rsp), %r14
movq %r14, %rdi
movl $0x39, %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 0x7ade
callq 0x32d0
leaq 0x30(%rsp), %rdi
callq 0xbb02
xorl %eax, %eax
jmp 0x7c01
addl $-0x2, %esi
jmp 0x7af6
decl %esi
movl %esi, %esi
leaq 0x40(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x30(%rsp), %r12
movq %r12, %rdi
xorl %edx, %edx
callq 0x3350
movq (%r12), %rdi
movl 0x8(%r12), %esi
movq %r15, %rdx
callq 0x8a0e
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r14, %rdi
callq 0x3340
movq %rax, %r14
leaq 0x5939(%rip), %rsi      # 0xd475
movl $0x5, %edx
movq %rax, %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
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x7b7f
callq 0x32d0
callq 0xbc38
cmpl $0x2, %eax
jg 0x7bfb
leaq 0x5899(%rip), %rsi      # 0xd429
leaq 0x58a6(%rip), %rcx      # 0xd43d
leaq 0x30(%rsp), %r14
movq %r14, %rdi
movl $0x45, %edx
movl $0x2, %r8d
callq 0xb8ee
movq %r14, %rdi
callq 0xbc50
movq %rax, %r14
leaq 0x20(%rbx), %rsi
leaq 0x8(%rsp), %rdi
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 0x7bf1
callq 0x32d0
leaq 0x30(%rsp), %rdi
callq 0xbb02
incq 0x10(%rbx)
movb $0x1, %al
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7c1f
jmp 0x7c39
jmp 0x7c1f
jmp 0x7c39
jmp 0x7c39
jmp 0x7c39
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7c3c
callq 0x32d0
jmp 0x7c3c
jmp 0x7c39
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xbb02
jmp 0x7c80
movq %rax, %rbx
movq %r15, %rdi
jmp 0x7c7b
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
jne 0x7c7b
jmp 0x7c80
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
jne 0x7c7b
jmp 0x7c80
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7c80
callq 0x32d0
movq %rbx, %rdi
callq 0x34d0