// File: 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
subq $0x180, %rsp            # imm = 0x180
movq %rdi, -0x8(%rbp)
movb $0x1, -0x8f(%rbp)
leaq -0x70(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq %rax, -0x78(%rbp)
leaq -0x79(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
callq 0x5930
movq -0xf8(%rbp), %rdi
movq -0xf0(%rbp), %rdx
leaq 0x2d939(%rip), %rsi     # 0x64123
callq 0x18880
jmp 0x367f1
leaq -0x50(%rbp), %rax
movq %rax, -0x108(%rbp)
movq %rax, -0x78(%rbp)
leaq -0x8d(%rbp), %rdi
movq %rdi, -0x100(%rbp)
callq 0x5930
movq -0x108(%rbp), %rdi
movq -0x100(%rbp), %rdx
leaq 0x2d903(%rip), %rsi     # 0x6412b
callq 0x18880
jmp 0x3682f
leaq -0x30(%rbp), %rax
movq %rax, -0x118(%rbp)
movq %rax, -0x78(%rbp)
leaq -0x8e(%rbp), %rdi
movq %rdi, -0x110(%rbp)
callq 0x5930
movq -0x118(%rbp), %rdi
movq -0x110(%rbp), %rdx
leaq 0x2d8ce(%rip), %rsi     # 0x64134
callq 0x18880
jmp 0x3686d
movb $0x0, -0x8f(%rbp)
leaq -0x8e(%rbp), %rdi
callq 0x5590
leaq -0x8d(%rbp), %rdi
callq 0x5590
leaq -0x79(%rbp), %rdi
callq 0x5590
leaq 0x59994(%rip), %rdi     # 0x90230
callq 0x1b360
movq %rax, -0xa0(%rbp)
leaq -0x98(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x18a20
leaq 0x5996e(%rip), %rdi     # 0x90230
callq 0x189f0
movq %rax, -0xb0(%rbp)
leaq -0xa8(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x18a20
leaq -0x98(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x24f10
testb $0x1, %al
jne 0x368fd
jmp 0x36b05
leaq -0x98(%rbp), %rdi
callq 0x24f40
movq %rax, %rdx
addq $0x88, %rdx
leaq -0xd0(%rbp), %rdi
movl $0x20, %esi
callq 0x3d690
jmp 0x36926
leaq -0x98(%rbp), %rdi
callq 0x24f40
movl 0xac(%rax), %eax
shlq $0x5, %rax
leaq -0x70(%rbp,%rax), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x56e0
jmp 0x3694f
leaq -0xd0(%rbp), %rdi
callq 0x5a48
leaq -0x98(%rbp), %rdi
callq 0x24f40
cmpl $-0x1, 0x164(%rax)
je 0x36a8b
leaq -0x98(%rbp), %rdi
callq 0x24f40
movl 0xac(%rax), %eax
shlq $0x5, %rax
leaq -0x70(%rbp,%rax), %rdi
leaq 0x2d7aa(%rip), %rsi     # 0x64140
callq 0x54f0
jmp 0x3699d
jmp 0x36af2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x369f4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x369e8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
leaq -0x8e(%rbp), %rdi
callq 0x5590
leaq -0x8d(%rbp), %rdi
callq 0x5590
leaq -0x79(%rbp), %rdi
callq 0x5590
testb $0x1, -0x8f(%rbp)
jne 0x36a08
jmp 0x36a4c
movq -0x78(%rbp), %rax
leaq -0x70(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x120(%rbp)
je 0x36a4a
movq -0x120(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x128(%rbp)
callq 0x5a48
movq -0x128(%rbp), %rax
leaq -0x70(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x120(%rbp)
jne 0x36a1c
jmp 0x36a4c
jmp 0x36cc5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x36c7c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x5a48
jmp 0x36c7c
leaq -0x98(%rbp), %rdi
movq %rdi, -0x138(%rbp)
callq 0x24f40
movq %rax, %rdi
subq $-0x80, %rdi
callq 0x1b390
movq -0x138(%rbp), %rdi
movl 0x130(%rax), %eax
movl %eax, %ecx
shlq $0x5, %rcx
leaq 0x5a3ac(%rip), %rax     # 0x90e70
addq %rcx, %rax
movq %rax, -0x130(%rbp)
callq 0x24f40
movq -0x130(%rbp), %rsi
movl 0xac(%rax), %eax
shlq $0x5, %rax
leaq -0x70(%rbp,%rax), %rdi
callq 0x56e0
jmp 0x36af0
jmp 0x36af2
jmp 0x36af4
leaq -0x98(%rbp), %rdi
callq 0x250a0
jmp 0x368bb
movb $0x0, -0xd1(%rbp)
movsbl -0xd1(%rbp), %eax
cmpl $0x3, %eax
jge 0x36c2c
movsbq -0xd1(%rbp), %rax
shlq $0x5, %rax
leaq -0x70(%rbp,%rax), %rdi
movq %rdi, -0x148(%rbp)
callq 0x5340
movq -0x148(%rbp), %rdi
movq %rax, %rsi
decq %rsi
callq 0x5a10
movq %rax, -0x140(%rbp)
jmp 0x36b54
movq -0x140(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3a, %eax
jne 0x36b84
movsbq -0xd1(%rbp), %rax
shlq $0x5, %rax
leaq -0x70(%rbp,%rax), %rdi
leaq 0x2d5ca(%rip), %rsi     # 0x64145
callq 0x54f0
jmp 0x36b82
jmp 0x36b84
movsbq -0xd1(%rbp), %rax
movq %rax, %rcx
shlq $0x5, %rcx
leaq -0x70(%rbp,%rcx), %rdi
leaq 0x2d420(%rip), %rcx     # 0x63fbf
movzbl (%rax,%rcx), %esi
callq 0x1ab10
jmp 0x36baa
leaq 0x5967f(%rip), %rdi     # 0x90230
callq 0x189f0
movq %rax, -0xe8(%rbp)
leaq -0xe0(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0x18a20
leaq -0x8(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
callq 0x3d5a0
testb $0x1, %al
jne 0x36be6
jmp 0x36bfb
leaq 0x576ab(%rip), %rsi     # 0x8e298
movl $0xffff, %edi           # imm = 0xFFFF
callq 0x19160
jmp 0x36bf9
jmp 0x36c17
leaq -0x8(%rbp), %rdi
callq 0x3d790
movq %rax, %rdi
leaq 0x5768a(%rip), %rsi     # 0x8e298
callq 0x1af60
jmp 0x36c15
jmp 0x36c17
jmp 0x36c19
movb -0xd1(%rbp), %al
addb $0x1, %al
movb %al, -0xd1(%rbp)
jmp 0x36b0c
leaq -0x70(%rbp), %rax
movq %rax, -0x158(%rbp)
addq $0x60, %rax
movq %rax, -0x150(%rbp)
movq -0x150(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x160(%rbp)
callq 0x5a48
movq -0x158(%rbp), %rcx
movq -0x160(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x150(%rbp)
jne 0x36c42
addq $0x180, %rsp            # imm = 0x180
popq %rbp
retq
leaq -0x70(%rbp), %rax
movq %rax, -0x170(%rbp)
addq $0x60, %rax
movq %rax, -0x168(%rbp)
movq -0x168(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x178(%rbp)
callq 0x5a48
movq -0x170(%rbp), %rcx
movq -0x178(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x168(%rbp)
jne 0x36c92
jmp 0x36cc5
movq -0x88(%rbp), %rdi
callq 0x5920
nopw %cs:(%rax,%rax)