// File: /workspace/github_cpp_makefile_star2_O2/skyshore2001[P]symfind/symfind.cpp
// Function: TestShow()
int TestShow()
{
	// Test code for tranverse objects
	int maxcnt = 40;
	int i;
	char buf[1024];
	printf("=== folders:\n");
	SfFolderIter itFolder(g_repos);
	for (i=0; i<maxcnt && itFolder.Next(); ++i) {
		const SfContext &ctx = itFolder.GetContext();
		printf("%d: %s\n", i+1, GetFullName(buf, ctx.repo->root, ctx.folder->name));
	}
	printf("=== files:\n");
	SfFileIter itFile(g_repos);
	for (i=0; i<maxcnt && itFile.Next(); ++i) {
		const SfContext &ctx = itFile.GetContext();
		printf("%d: %s\n", i+1, GetFullName(buf, ctx.repo->root, ctx.folder->name, ctx.file->name));
	}
	printf("=== symbols:\n");
	SfSymbolIter itSymbol(g_repos);
	for (i=0; i<maxcnt && itSymbol.Next(); ++i) {
		const SfContext &ctx = itSymbol.GetContext();
		printf("%d: %s\t%s\t%s\t%s:%s\n", i+1, ctx.symbol->kind(), ctx.symbol->name(), ctx.symbol->extra(), GetFullName(buf, ctx.repo->root, ctx.folder->name, ctx.file->name), ctx.symbol->line());
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4d8, %rsp            # imm = 0x4D8
leaq 0x2ead(%rip), %rdi      # 0x66ac
callq 0x22b0
movq 0x5a55(%rip), %rax      # 0x9260
leaq 0x90(%rsp), %rbx
movq %rax, 0x18(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rbx)
andq $0x0, 0x38(%rbx)
movq %rbx, 0x20(%rbx)
pushq $0x1
popq %rbp
leaq 0xd0(%rsp), %r14
leaq 0x2beb(%rip), %r15      # 0x6424
cmpl $0x29, %ebp
je 0x387e
movq %rbx, %rdi
callq 0x4242
testq %rax, %rax
je 0x387e
movq 0xb0(%rsp), %rax
movq 0xb8(%rsp), %rcx
movq (%rax), %rsi
movq (%rcx), %rdx
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x2b69
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x2030
incl %ebp
jmp 0x3839
leaq 0x2e34(%rip), %rdi      # 0x66b9
callq 0x22b0
movq 0x59cf(%rip), %rax      # 0x9260
leaq 0x50(%rsp), %rbx
movq %rax, 0x18(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rbx)
andq $0x0, 0x38(%rbx)
movq %rbx, 0x20(%rbx)
pushq $0x1
popq %rbp
leaq 0xd0(%rsp), %r14
leaq 0x2b68(%rip), %r15      # 0x6424
cmpl $0x29, %ebp
je 0x3904
movq %rbx, %rdi
callq 0x4082
testq %rax, %rax
je 0x3904
movq 0x70(%rsp), %rax
movq 0x78(%rsp), %rcx
movq (%rax), %rsi
movq (%rcx), %rdx
movq 0x80(%rsp), %rax
movq (%rax), %rcx
movq %r14, %rdi
callq 0x2b69
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x2030
incl %ebp
jmp 0x38bc
leaq 0x2db9(%rip), %rdi      # 0x66c4
callq 0x22b0
movq 0x5949(%rip), %rax      # 0x9260
leaq 0x10(%rsp), %rbx
movq %rax, 0x18(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rbx)
andq $0x0, 0x38(%rbx)
movq %rbx, 0x20(%rbx)
pushq $0x1
popq %rbp
leaq 0xd0(%rsp), %r14
cmpl $0x29, %ebp
je 0x39ca
movq %rbx, %rdi
callq 0x4132
testq %rax, %rax
je 0x39ca
movq 0x48(%rsp), %rax
movzwl 0x4(%rax), %ecx
leaq (%rax,%rcx), %r12
addq $0x10, %r12
movzwl (%rax), %ecx
leaq 0x10(%rax,%rcx), %r13
movzwl 0x6(%rax), %ecx
leaq 0x10(%rax,%rcx), %r15
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
movq (%rax), %rsi
movq (%rcx), %rdx
movq 0x40(%rsp), %rax
movq (%rax), %rcx
movq %r14, %rdi
callq 0x2b69
movq 0x48(%rsp), %rax
movzwl 0x2(%rax), %ecx
addq %rcx, %rax
addq $0x10, %rax
movq %rax, (%rsp)
leaq 0x2b04(%rip), %rdi      # 0x64b2
movl %ebp, %esi
movq %r12, %rdx
movq %r13, %rcx
movq %r15, %r8
movq %r14, %r9
xorl %eax, %eax
callq 0x2030
incl %ebp
jmp 0x393b
xorl %eax, %eax
addq $0x4d8, %rsp            # imm = 0x4D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq