// File: 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
subq $0x70, %rsp
leaq 0x11881(%rip), %rax     # 0x2b020
addq $0x1, %rax
movq %rax, -0x8(%rbp)
movb 0x11873(%rip), %al      # 0x2b020
movb %al, -0x9(%rbp)
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0x50(%rbp)
movzbl -0x9(%rbp), %ecx
movl $0x17, %eax
subl %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x50(%rbp), %eax
cmpl %ecx, %eax
jge 0x19806
movl -0x10(%rbp), %eax
leaq 0x2ca6(%rip), %rdi      # 0x1c489
xorl %edx, %edx
movl $0x3, %r8d
movl $0x1, %r9d
movl %edx, %esi
movsbl %al, %ecx
callq 0x9480
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x197b7
jmp 0x19808
movl -0x10(%rbp), %eax
movl %eax, -0x54(%rbp)
movzbl -0x9(%rbp), %eax
addl $0x17, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x54(%rbp), %eax
cmpl %ecx, %eax
jge 0x19a1d
movsbl -0x10(%rbp), %esi
xorl %edi, %edi
movl $0x3, %edx
movl %edx, -0x6c(%rbp)
callq 0x9700
movl -0x6c(%rbp), %edx
movq -0x8(%rbp), %rdi
movl $0x7, %esi
callq 0x9740
movq -0x8(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq -0x39(%rbp), %rdi
movq %rdi, -0x60(%rbp)
callq 0x5840
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
leaq -0x38(%rbp), %rdi
callq 0xa030
jmp 0x19876
leaq -0x38(%rbp), %rdi
callq 0x1a800
movw %ax, -0x6e(%rbp)
jmp 0x19885
movw -0x6e(%rbp), %ax
movw %ax, -0x12(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x5968
leaq -0x39(%rbp), %rdi
callq 0x5540
movzwl -0x12(%rbp), %eax
cmpl $0x10, %eax
jge 0x198fa
leaq 0x2bd9(%rip), %rdi      # 0x1c488
xorl %esi, %esi
movl $0x3, %edx
callq 0x9740
movw -0x12(%rbp), %ax
addw $0x1, %ax
movw %ax, -0x12(%rbp)
jmp 0x1989f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x198ec
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x5968
leaq -0x39(%rbp), %rdi
callq 0x5540
jmp 0x19a58
movq -0x8(%rbp), %rdi
callq 0x5230
addq $0x1, %rax
addq -0x8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0xb, %eax
je 0x19942
movq -0x8(%rbp), %rax
movsbq (%rax), %rax
leaq 0x36f6(%rip), %rdi      # 0x1d020
imulq $0xd, %rax, %rax
addq %rax, %rdi
movl $0x7, %esi
movl $0x3, %edx
callq 0x9740
jmp 0x19958
leaq 0x3253(%rip), %rdi      # 0x1cb9c
movl $0x7, %esi
movl $0x3, %edx
callq 0x9740
leaq 0x2b29(%rip), %rdi      # 0x1c488
xorl %esi, %esi
movl $0x3, %edx
callq 0x9740
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movsbl 0x1(%rax), %eax
cmpl $-0x1, %eax
jne 0x1999b
leaq 0x3215(%rip), %rdi      # 0x1cb9f
movl $0xb, %esi
movl $0x3, %edx
callq 0x9740
jmp 0x199f4
leaq 0x2ae8(%rip), %rdi      # 0x1c48a
movl $0x7, %esi
movl $0x3, %edx
callq 0x9740
movq -0x8(%rbp), %rax
movsbq (%rax), %rax
leaq 0x10d40(%rip), %rdi     # 0x2a700
shlq $0x5, %rax
addq %rax, %rdi
callq 0x5200
movq %rax, %rdi
movl $0x7, %esi
movl $0x3, %edx
callq 0x9740
leaq 0x2c7c(%rip), %rdi      # 0x1c661
movl $0x7, %esi
movl $0x3, %edx
callq 0x9740
movl $0x3, %edi
movl $0x1, %esi
callq 0x97a0
movq -0x8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x8(%rbp)
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x19808
jmp 0x19a1f
cmpl $0x17, -0x10(%rbp)
jge 0x19a52
movl -0x10(%rbp), %eax
leaq 0x2a5a(%rip), %rdi      # 0x1c489
xorl %edx, %edx
movl $0x3, %r8d
movl $0x1, %r9d
movl %edx, %esi
movsbl %al, %ecx
callq 0x9480
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x19a1f
addq $0x70, %rsp
popq %rbp
retq
movq -0x48(%rbp), %rdi
callq 0x5830
nopw %cs:(%rax,%rax)