// File: /workspace/github_cpp_makefile_star2_O1/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 0x152cd(%rip), %rsi     # 0x2efc2
leaq 0x152cd(%rip), %rdx     # 0x2efc9
leaq -0xb0(%rbp), %r15
movq %r15, %rdi
callq 0xdfec
leaq -0x90(%rbp), %r14
leaq -0x80(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x152a9(%rip), %rsi     # 0x2efca
leaq 0x152aa(%rip), %rdx     # 0x2efd2
movq %r14, %rdi
callq 0xdfec
leaq -0x70(%rbp), %r14
leaq -0x60(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x1528f(%rip), %rsi     # 0x2efd3
leaq 0x15293(%rip), %rdx     # 0x2efde
movq %r14, %rdi
callq 0xdfec
leaq 0x29366(%rip), %rax     # 0x430c0
movq (%rax), %r15
cmpq %rax, %r15
je 0x19e34
leaq -0x40(%rbp), %r13
leaq -0x50(%rbp), %r14
leaq 0x29f8b(%rip), %rbx     # 0x43d00
leaq 0x98(%r15), %rdx
movq %r14, %rdi
movl $0x20, %esi
callq 0x1d7fe
movl 0xbc(%r15), %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 %r13, %rdi
je 0x19dc1
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x43f0
cmpl $-0x1, 0x174(%r15)
je 0x19def
movl 0xbc(%r15), %eax
shlq $0x5, %rax
leaq (%rax,%rbp), %rdi
addq $-0xb0, %rdi
leaq 0x151f7(%rip), %rsi     # 0x2efdf
callq 0x47c0
jmp 0x19e24
movq 0x90(%r15), %rax
movl 0x140(%rax), %eax
shlq $0x5, %rax
movl 0xbc(%r15), %ecx
shlq $0x5, %rcx
leaq (%rcx,%rbp), %rdi
addq $-0xb0, %rdi
movq (%rax,%rbx), %rsi
movq 0x8(%rax,%rbx), %rdx
callq 0x4130
movq (%r15), %r15
cmpq 0x2618a(%rip), %r15     # 0x3ffb8
jne 0x19d75
movq -0x30(%rbp), %rax
leaq 0x10(%rax), %r14
leaq -0xb0(%rbp), %r15
xorl %ebx, %ebx
leaq 0x272dc(%rip), %r13     # 0x41128
movq (%r15), %rax
movq 0x8(%r15), %rcx
cmpb $0x3a, -0x1(%rax,%rcx)
jne 0x19e69
movq %r15, %rdi
leaq 0x15180(%rip), %rsi     # 0x2efe4
callq 0x47c0
leaq 0x14fff(%rip), %rax     # 0x2ee6f
movzbl (%rbx,%rax), %esi
movq %r15, %rdi
callq 0xf4ed
leaq 0x2923d(%rip), %rax     # 0x430c0
cmpq %rax, -0x30(%rbp)
je 0x19e96
movq %r14, %rdi
movq %r13, %rsi
callq 0xf816
jmp 0x19ea3
movl $0xffff, %edi           # imm = 0xFFFF
movq %r13, %rsi
callq 0xe383
incq %rbx
addq $0x20, %r15
cmpq $0x3, %rbx
jne 0x19e4c
movq $-0x60, %rbx
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0x19ecd
movq (%r12), %rsi
incq %rsi
callq 0x43f0
addq $-0x20, %r12
addq $0x20, %rbx
jne 0x19eb7
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x19eeb
movq %rax, %rbx
jmp 0x19ef6
movq %rax, %rbx
movq %r15, %r14
cmpq %r14, %r15
je 0x19f73
addq $-0x10, %r14
leaq -0xb0(%rbp), %r15
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x19f1a
movq (%r14), %rsi
incq %rsi
callq 0x43f0
leaq -0x20(%r14), %rax
addq $-0x10, %r14
cmpq %r15, %r14
movq %rax, %r14
jne 0x19f06
jmp 0x19f73
jmp 0x19f4a
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x19f4d
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x43f0
jmp 0x19f4d
jmp 0x19f4a
movq %rax, %rbx
xorl %r14d, %r14d
movq -0x70(%rbp,%r14), %rdi
leaq (%r12,%r14), %rax
cmpq %rdi, %rax
je 0x19f69
movq (%rax), %rsi
incq %rsi
callq 0x43f0
addq $-0x20, %r14
cmpq $-0x60, %r14
jne 0x19f50
movq %rbx, %rdi
callq 0x4750