// File: /workspace/github_cpp_makefile_star2_O2/lotuskip[P]yuxtapa/server/game.cpp
// Function: Game::construct_team_msgs(std::_List_const_iterator<Player>)
void Game::construct_team_msgs(const list<Player>::const_iterator to)
{
	string teamstrs[3] = { "Greens:", "Purples:", "Spectators:" };
	for(list<Player>::const_iterator it = cur_players.begin();
		it != cur_players.end(); ++it)
	{
		teamstrs[it->team] += ' ' + it->nick;
		if(it->botpid != -1)
			teamstrs[it->team] += " (B)";
		else
			teamstrs[it->team] += admin_lvl_str[it->stats_i->ad_lvl];
	}
	
	for(char c = 0; c < 3; ++c)
	{
		if(teamstrs[c][teamstrs[c].size()-1] == ':') // no players
			teamstrs[c] += " -";
		Network::construct_msg(teamstrs[c], team_colour[c]);
		if(to == cur_players.end())
			Network::broadcast();
		else
			Network::send_to_player(*to);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdi, -0x38(%rbp)
leaq 0x13f10(%rip), %rsi     # 0x28ffb
leaq -0xc0(%rbp), %rbx
leaq -0x58(%rbp), %rdx
movq %rbx, %rdi
callq 0xb292
leaq -0xa0(%rbp), %r15
leaq 0x13ef7(%rip), %rsi     # 0x29003
leaq -0x2a(%rbp), %rdx
movq %r15, %rdi
callq 0xb292
leaq -0x80(%rbp), %r15
leaq 0x13ee9(%rip), %rsi     # 0x2900c
leaq -0x29(%rbp), %rdx
movq %r15, %rdi
callq 0xb292
leaq 0x2af7a(%rip), %r12     # 0x400b0
leaq -0x58(%rbp), %r15
pushq $0x20
popq %r14
movq %r12, %r13
movq (%r13), %r13
cmpq %r12, %r13
je 0x151ef
leaq 0x98(%r13), %rdx
movq %r15, %rdi
movl %r14d, %esi
callq 0x17eda
movl 0xbc(%r13), %eax
shlq $0x5, %rax
leaq (%rax,%rbp), %rdi
addq $-0xc0, %rdi
movq %r15, %rsi
callq 0x4790
movq %r15, %rdi
callq 0x47e8
cmpl $-0x1, 0x174(%r13)
je 0x151b4
movl 0xbc(%r13), %eax
shlq $0x5, %rax
leaq (%rax,%rbp), %rdi
addq $-0xc0, %rdi
leaq 0x13e6b(%rip), %rsi     # 0x29018
callq 0x4770
jmp 0x15141
movq 0x90(%r13), %rax
movl 0x140(%rax), %esi
shlq $0x5, %rsi
leaq 0x2bb24(%rip), %rax     # 0x40cf0
addq %rax, %rsi
movl 0xbc(%r13), %eax
shlq $0x5, %rax
leaq (%rax,%rbp), %rdi
addq $-0xc0, %rdi
callq 0x4790
jmp 0x15141
movq -0x38(%rbp), %rax
leaq 0x10(%rax), %r15
xorl %r12d, %r12d
leaq 0x2aeaf(%rip), %r14     # 0x400b0
leaq 0x28f10(%rip), %r13     # 0x3e118
cmpq $0x3, %r12
je 0x15268
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
cmpb $0x3a, -0x1(%rax,%rcx)
jne 0x1522b
movq %rbx, %rdi
leaq 0x13df7(%rip), %rsi     # 0x2901d
callq 0x4770
leaq 0x13c6d(%rip), %rax     # 0x28e9f
movzbl (%r12,%rax), %esi
movq %rbx, %rdi
callq 0xc0f2
cmpq %r14, -0x38(%rbp)
je 0x15252
movq %r15, %rdi
movq %r13, %rsi
callq 0xc3a6
jmp 0x1525f
movl $0xffff, %edi           # imm = 0xFFFF
movq %r13, %rsi
callq 0xb61b
incq %r12
addq $0x20, %rbx
jmp 0x15208
pushq $0x40
popq %rbx
leaq (%rbx,%rbp), %rdi
addq $-0xc0, %rdi
callq 0x47e8
addq $-0x20, %rbx
cmpq $-0x20, %rbx
jne 0x1526b
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x15299
movq %rax, %r14
addq $-0x20, %r15
movq %r15, %rdi
callq 0x47e8
cmpq %rbx, %r15
jne 0x1529c
jmp 0x152e1
jmp 0x152c1
movq %rax, %r14
leaq -0x58(%rbp), %rdi
callq 0x47e8
jmp 0x152c4
jmp 0x152c1
movq %rax, %r14
pushq $0x40
popq %rbx
leaq (%rbx,%rbp), %rdi
addq $-0xc0, %rdi
callq 0x47e8
addq $-0x20, %rbx
cmpq $-0x20, %rbx
jne 0x152c7
movq %r14, %rdi
callq 0x4710