// File: /workspace/github_cpp_makefile_star2_O3/wwdatabase[P]database/./smmana/sm.h
// Function: SM_Manager::show_db(char const*)
RC SM_Manager::show_db(const char* dbname)
{
	cout << "Show database:" << endl;
	if(strcmp(dbname,"*") == 0)
	{
		for(vector<DB>::iterator i = databases.begin();i != databases.end();i++)
		{
				printf("Database name: %s\n",i->dbname);
				printf("Table name:\n");
				for(int j =0 ;j <(i->table).size();j++)
				{
					cout << (i->table)[j].tablename << endl;
				}
		}
	}
	else{
			for(vector<DB>::iterator i = databases.begin();i != databases.end();i++)
			{
				if(strcmp(dbname,i->dbname) == 0)
				{
					printf("Database name: %s\n",i->dbname);
					printf("Table name:\n");
					for(int j =0 ;j <(i->table).size();j++)
					{
						cout << (i->table)[j].tablename << endl;
					}
					break;
				}

			}
		}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r12
movq %rdi, -0x30(%rbp)
movq 0x937a(%rip), %rbx      # 0xcfd8
leaq 0x565a(%rip), %rsi      # 0x92bf
movl $0xe, %edx
movq %rbx, %rdi
callq 0x2200
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2120
cmpb $0x2a, (%r12)
jne 0x3cac
cmpb $0x0, 0x1(%r12)
je 0x3db4
movq -0x30(%rbp), %rax
movq (%rax), %r15
movq 0x8(%rax), %r14
cmpq %r14, %r15
je 0x3da3
movq %r12, %rdi
movq %r15, %rsi
callq 0x2240
testl %eax, %eax
je 0x3cd8
addq $0x118, %r15            # imm = 0x118
jmp 0x3cb7
leaq 0x55ef(%rip), %rdi      # 0x92ce
movq %r15, %rsi
xorl %eax, %eax
callq 0x2050
leaq 0x57c3(%rip), %rdi      # 0x94b3
callq 0x22c0
movq 0x100(%r15), %r14
cmpq %r14, 0x108(%r15)
je 0x3da3
xorl %r12d, %r12d
xorl %r13d, %r13d
testq %r14, %r14
je 0x3d2f
addq %r12, %r14
movq %r14, %rdi
callq 0x20c0
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x2200
jmp 0x3d46
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x2300
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2120
incq %r13
movq 0x100(%r15), %r14
movq 0x108(%r15), %rax
subq %r14, %rax
sarq $0x4, %rax
movabsq $0x4ec4ec4ec4ec4ec5, %rcx # imm = 0x4EC4EC4EC4EC4EC5
imulq %rcx, %rax
addq $0xd0, %r12
cmpq %r13, %rax
ja 0x3d0f
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x30(%rbp), %rax
movq (%rax), %r15
cmpq 0x8(%rax), %r15
je 0x3da3
leaq 0x5506(%rip), %rdi      # 0x92ce
movq %r15, %rsi
xorl %eax, %eax
callq 0x2050
leaq 0x56da(%rip), %rdi      # 0x94b3
callq 0x22c0
movq 0x100(%r15), %r12
cmpq %r12, 0x108(%r15)
je 0x3e8c
xorl %r14d, %r14d
xorl %r13d, %r13d
testq %r12, %r12
je 0x3e18
addq %r14, %r12
movq %r12, %rdi
callq 0x20c0
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x2200
jmp 0x3e2f
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x2300
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2120
incq %r13
movq 0x100(%r15), %r12
movq 0x108(%r15), %rax
subq %r12, %rax
sarq $0x4, %rax
movabsq $0x4ec4ec4ec4ec4ec5, %rcx # imm = 0x4EC4EC4EC4EC4EC5
imulq %rcx, %rax
addq $0xd0, %r14
cmpq %r13, %rax
ja 0x3df8
addq $0x118, %r15            # imm = 0x118
movq -0x30(%rbp), %rax
jmp 0x3dbb