// File: /workspace/github_cpp_makefile_star2_O1/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, %r13
movq 0x9305(%rip), %rbx      # 0xcfd8
leaq 0x55e5(%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
leaq 0x5544(%rip), %rsi      # 0x9259
movq %r12, %rdi
callq 0x2240
movq (%r13), %r14
movq 0x8(%r13), %r15
testl %eax, %eax
je 0x3d4e
cmpq %r15, %r14
je 0x3f0b
movq %r12, %rdi
movq %r14, %rsi
callq 0x2240
testl %eax, %eax
je 0x3e40
addq $0x118, %r14            # imm = 0x118
jmp 0x3d29
cmpq %r15, %r14
je 0x3f0b
movq %r13, -0x30(%rbp)
leaq 0x556c(%rip), %rdi      # 0x92ce
movq %r14, %rsi
xorl %eax, %eax
callq 0x2050
leaq 0x5740(%rip), %rdi      # 0x94b3
callq 0x22c0
movq 0x100(%r14), %r12
cmpq %r12, 0x108(%r14)
je 0x3e26
xorl %r15d, %r15d
xorl %r13d, %r13d
testq %r12, %r12
je 0x3db2
addq %r15, %r12
movq %r12, %rdi
callq 0x20c0
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x2200
jmp 0x3dc9
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(%r14), %r12
movq 0x108(%r14), %rax
subq %r12, %rax
sarq $0x4, %rax
movabsq $0x4ec4ec4ec4ec4ec5, %rcx # imm = 0x4EC4EC4EC4EC4EC5
imulq %rcx, %rax
addq $0xd0, %r15
cmpq %r13, %rax
ja 0x3d92
addq $0x118, %r14            # imm = 0x118
movq -0x30(%rbp), %r13
cmpq 0x8(%r13), %r14
jne 0x3d5b
jmp 0x3f0b
leaq 0x5487(%rip), %rdi      # 0x92ce
movq %r14, %rsi
xorl %eax, %eax
callq 0x2050
leaq 0x565b(%rip), %rdi      # 0x94b3
callq 0x22c0
movq 0x100(%r14), %r15
cmpq %r15, 0x108(%r14)
je 0x3f0b
xorl %r12d, %r12d
xorl %r13d, %r13d
testq %r15, %r15
je 0x3e97
addq %r12, %r15
movq %r15, %rdi
callq 0x20c0
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2200
jmp 0x3eae
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(%r14), %r15
movq 0x108(%r14), %rax
subq %r15, %rax
sarq $0x4, %rax
movabsq $0x4ec4ec4ec4ec4ec5, %rcx # imm = 0x4EC4EC4EC4EC4EC5
imulq %rcx, %rax
addq $0xd0, %r12
cmpq %r13, %rax
ja 0x3e77
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq