// File: /workspace/github_cpp_makefile_star2_O2/lotuskip[P]yuxtapa/client/view.cpp
// Function: draw_team_info()
void draw_team_info()
{
	char *rp = &(teambuffer[1]);
	unsigned char num = static_cast<unsigned char>(teambuffer[0]);
	int i;
	unsigned short sh;
	for(i = 0; i < (VIEWSIZE - num)/2; ++i)
		Base::print_str("", 0, 0, i, VIEW_WIN, true);
	for(; i < (VIEWSIZE + num)/2; ++i)
	{
		Base::incr_print_start(0, i, VIEW_WIN);
		Base::incr_print(rp, 7, VIEW_WIN); // nick & AL
		for(sh = num_syms(string(rp)); sh < 16; ++sh) // fill in blanks
			Base::incr_print(" ", 0, VIEW_WIN);
		rp += strlen(rp)+1; // skip '\0'
		if(*rp != NO_CLASS)
			Base::incr_print(classes[*rp].abbr, 7, VIEW_WIN);
		else
			Base::incr_print("- ", 7, VIEW_WIN);
		Base::incr_print(" ", 0, VIEW_WIN);
		if(*(++rp) == -1) // dead?
			Base::incr_print("SPWN", 11, VIEW_WIN);
		else // sector name
		{
			Base::incr_print("(", 7, VIEW_WIN);
			Base::incr_print(short_sector_name[*rp].c_str(), 7, VIEW_WIN);
			Base::incr_print(")", 7, VIEW_WIN);
		}
		Base::incr_print_end(VIEW_WIN, true);
		++rp;
	}
	for(; i < VIEWSIZE; ++i)
		Base::print_str("", 0, 0, i, VIEW_WIN, true);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movzbl 0xc4ba(%rip), %ecx      # 0x18ec0
pushq $0x17
popq %rax
movl %ecx, -0x2c(%rbp)
subl %ecx, %eax
cwtd
movw $0x2, %cx
idivw %cx
xorl %r13d, %r13d
testw %ax, %ax
movl $0x0, %ecx
cmovgl %eax, %ecx
movzwl %cx, %r15d
leaq 0x1a59(%rip), %rbx      # 0xe489
pushq $0x3
popq %r14
pushq $0x1
popq %r12
cmpl %r13d, %r15d
je 0xca58
movsbl %r13b, %ecx
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
movl %r14d, %r8d
movl %r12d, %r9d
callq 0x61ca
incl %r13d
jmp 0xca38
movl -0x2c(%rbp), %eax
addl $0x17, %eax
shrl %eax
movl %eax, -0x2c(%rbp)
leaq 0xc457(%rip), %rbx      # 0x18ec1
pushq $0x3
popq %r14
pushq $0x7
popq %r12
leaq -0x58(%rbp), %rax
leaq 0x1a0b(%rip), %r13      # 0xe488
cmpl -0x2c(%rbp), %r15d
jae 0xcba4
movl %r15d, -0x34(%rbp)
movsbl %r15b, %esi
movq %rax, %r15
xorl %edi, %edi
movl %r14d, %edx
callq 0x6324
movq %rbx, %rdi
movl %r12d, %esi
movl %r14d, %edx
callq 0x633f
movq %r15, %rdi
movq %rbx, %rsi
leaq -0x2d(%rbp), %rdx
callq 0x69bc
movq %r15, %rdi
callq 0xd028
movl %eax, %r12d
movq %r15, %rdi
callq 0x4748
cmpw $0xf, %r12w
ja 0xcae5
movq %r13, %rdi
xorl %esi, %esi
movl %r14d, %edx
callq 0x633f
incl %r12d
jmp 0xcacc
movq %rbx, %rdi
callq 0x41c0
addq %rax, %rbx
incq %rbx
movsbq (%rbx), %rax
imulq $0xd, %rax, %rdi
leaq 0x253e(%rip), %rcx      # 0xf040
addq %rcx, %rdi
cmpq $0xb, %rax
leaq 0x20b4(%rip), %rax      # 0xebc4
cmoveq %rax, %rdi
pushq $0x7
popq %r12
movl %r12d, %esi
movl %r14d, %edx
callq 0x633f
movq %r13, %rdi
xorl %esi, %esi
movl %r14d, %edx
callq 0x633f
cmpb $-0x1, 0x1(%rbx)
je 0xcb73
leaq 0x194d(%rip), %rdi      # 0xe48a
movl %r12d, %esi
movl %r14d, %edx
callq 0x633f
movsbq 0x1(%rbx), %rax
shlq $0x5, %rax
leaq 0xba48(%rip), %rcx      # 0x185a0
movq (%rax,%rcx), %rdi
movl %r12d, %esi
movl %r14d, %edx
callq 0x633f
leaq 0x1b1c(%rip), %rdi      # 0xe68a
movl %r12d, %esi
jmp 0xcb7d
leaq 0x204d(%rip), %rdi      # 0xebc7
pushq $0xb
popq %rsi
movl %r14d, %edx
callq 0x633f
movl -0x34(%rbp), %r15d
movl %r14d, %edi
pushq $0x1
popq %rsi
callq 0x6378
addq $0x2, %rbx
incl %r15d
leaq -0x58(%rbp), %rax
jmp 0xca7d
leaq 0x18de(%rip), %rbx      # 0xe489
pushq $0x3
popq %r14
pushq $0x1
popq %r12
cmpl $0x16, %r15d
ja 0xcbd4
movsbl %r15b, %ecx
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
movl %r14d, %r8d
movl %r12d, %r9d
callq 0x61ca
incl %r15d
jmp 0xcbb3
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x4748
movq %rbx, %rdi
callq 0x4650
nop