// File: /workspace/github_cpp_makefile_star2_O3/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 $0x88, %rsp
movq %rdi, -0x30(%rbp)
leaq -0xa0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x15401(%rip), %rsi     # 0x2efc2
leaq 0x15401(%rip), %rdx     # 0x2efc9
leaq -0xb0(%rbp), %rbx
movq %rbx, %rdi
callq 0xe01c
leaq -0x90(%rbp), %r15
leaq -0x80(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x153dd(%rip), %rsi     # 0x2efca
leaq 0x153de(%rip), %rdx     # 0x2efd2
movq %r15, %rdi
callq 0xe01c
leaq -0x70(%rbp), %r15
leaq -0x60(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x153c3(%rip), %rsi     # 0x2efd3
leaq 0x153c7(%rip), %rdx     # 0x2efde
movq %r15, %rdi
callq 0xe01c
leaq 0x2949a(%rip), %rax     # 0x430c0
movq (%rax), %r13
cmpq %rax, %r13
je 0x19d01
leaq -0x40(%rbp), %r14
leaq -0x50(%rbp), %r15
leaq 0x98(%r13), %rdx
movq %r15, %rdi
movl $0x20, %esi
callq 0x1d6de
movl 0xbc(%r13), %eax
shlq $0x5, %rax
leaq (%rax,%rbp), %rdi
addq $-0xb0, %rdi
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x4130
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x19c86
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x43f0
cmpl $-0x1, 0x174(%r13)
je 0x19cb4
movl 0xbc(%r13), %eax
shlq $0x5, %rax
leaq (%rax,%rbp), %rdi
addq $-0xb0, %rdi
leaq 0x15332(%rip), %rsi     # 0x2efdf
callq 0x47b0
jmp 0x19cf0
movq 0x90(%r13), %rax
movl 0x140(%rax), %eax
shlq $0x5, %rax
movl 0xbc(%r13), %ecx
shlq $0x5, %rcx
leaq (%rcx,%rbp), %rdi
addq $-0xb0, %rdi
leaq 0x2a01e(%rip), %rcx     # 0x43d00
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
callq 0x4130
movq (%r13), %r13
cmpq 0x262b5(%rip), %r13     # 0x3ffb0
jne 0x19c3a
movq -0x30(%rbp), %rax
leaq 0x10(%rax), %r15
xorl %r14d, %r14d
leaq 0x27415(%rip), %r13     # 0x41128
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
cmpb $0x3a, -0x1(%rax,%rcx)
jne 0x19d30
movq %rbx, %rdi
leaq 0x152b9(%rip), %rsi     # 0x2efe4
callq 0x47b0
leaq 0x15138(%rip), %rax     # 0x2ee6f
movzbl (%r14,%rax), %esi
movq %rbx, %rdi
callq 0xf3f0
leaq 0x29375(%rip), %rax     # 0x430c0
cmpq %rax, -0x30(%rbp)
je 0x19d5e
movq %r15, %rdi
movq %r13, %rsi
callq 0xf719
jmp 0x19d6b
movl $0xffff, %edi           # imm = 0xFFFF
movq %r13, %rsi
callq 0xe3b3
incq %r14
addq $0x20, %rbx
cmpq $0x3, %r14
jne 0x19d13
movq $-0x60, %rbx
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0x19d95
movq (%r12), %rsi
incq %rsi
callq 0x43f0
addq $-0x20, %r12
addq $0x20, %rbx
jne 0x19d7f
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x19db3
movq %rax, %r14
addq $-0x10, %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x19dce
movq (%r15), %rsi
incq %rsi
callq 0x43f0
leaq -0x20(%r15), %rax
addq $-0x10, %r15
cmpq %rbx, %r15
movq %rax, %r15
jne 0x19dba
jmp 0x19e29
jmp 0x19e01
movq %r14, %rcx
movq %rax, %r14
movq -0x50(%rbp), %rdi
cmpq %rcx, %rdi
je 0x19e04
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x43f0
jmp 0x19e04
jmp 0x19e01
movq %rax, %r14
xorl %ebx, %ebx
movq -0x70(%rbp,%rbx), %rdi
leaq (%r12,%rbx), %rax
cmpq %rdi, %rax
je 0x19e1f
movq (%rax), %rsi
incq %rsi
callq 0x43f0
addq $-0x20, %rbx
cmpq $-0x60, %rbx
jne 0x19e06
movq %r14, %rdi
callq 0x4740