// File: /workspace/github_c_makefile_star2_O0/QwazyWabbitWOS[P]lmctf60/g_ctffunc.c
// Function: ctf_teamstring
qboolean ctf_teamstring(char * buf, int teamnum, int teamnum_option)
{
	qboolean result;
	if (teamnum_option == CTF_TEAM_OPPOSING)
	{
		if (teamnum == CTF_TEAM_RED)
		{
			strcat(buf,"blue");
			result = true;
		}
		else if (teamnum == CTF_TEAM_BLUE)
		{
			strcat(buf,"red");
			result = true;
		}
		else if (teamnum == CTF_TEAM_OBSERVER_RED)
		{
			strcat(buf,"observer blue");
			result = true;
		}
		else if (teamnum == CTF_TEAM_OBSERVER_BLUE)
		{
			strcat(buf,"observer red");
			result = true;
		}
//bat
//#ifdef OLDOBSERVERCODE
		else if (teamnum == CTF_TEAM_OBSERVER)
		{
			strcat(buf,"observer");
			result = true;
		}
//#endif
		else
		{
			strcat(buf,"unknown");
			result = false;
		}
	}
	else
	{
		if (teamnum == CTF_TEAM_RED)
		{
			strcat(buf,"red");
			result = true;
		}
		else if (teamnum == CTF_TEAM_BLUE)
		{
			strcat(buf,"blue");
			result = true;
		}
//bat
//#ifdef OLDOBSERVERCODE
		else if (teamnum == CTF_TEAM_OBSERVER)
		{
			strcat(buf,"observer");
			result = true;
		}
//#endif
		else if (teamnum == CTF_TEAM_OBSERVER_RED)
		{
			strcat(buf,"observer red");
			result = true;
		}
		else if (teamnum == CTF_TEAM_OBSERVER_BLUE)
		{
			strcat(buf,"observer blue");
			result = true;
		}
		else if (teamnum == CTF_TEAM_UNDEFINED)
		{
			strcat(buf,"undefined");
			result = false;
		}
		else
		{
			strcat(buf,"unknown");
			result = false;
		}
	}

	return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
cmpl $-0x6, -0x10(%rbp)
jne 0x21d1e
cmpl $0x1, -0xc(%rbp)
jne 0x21c7e
movq -0x8(%rbp), %rdi
leaq 0x4e834(%rip), %rsi     # 0x704a1
callq 0x19880
movl $0x1, -0x14(%rbp)
jmp 0x21d19
cmpl $0x2, -0xc(%rbp)
jne 0x21c9d
movq -0x8(%rbp), %rdi
leaq 0x4e820(%rip), %rsi     # 0x704af
callq 0x19880
movl $0x1, -0x14(%rbp)
jmp 0x21d17
cmpl $-0x3, -0xc(%rbp)
jne 0x21cbc
movq -0x8(%rbp), %rdi
leaq 0x4e7ea(%rip), %rsi     # 0x70498
callq 0x19880
movl $0x1, -0x14(%rbp)
jmp 0x21d15
cmpl $-0x2, -0xc(%rbp)
jne 0x21cdb
movq -0x8(%rbp), %rdi
leaq 0x4e7d9(%rip), %rsi     # 0x704a6
callq 0x19880
movl $0x1, -0x14(%rbp)
jmp 0x21d13
cmpl $-0x1, -0xc(%rbp)
jne 0x21cfa
movq -0x8(%rbp), %rdi
leaq 0x4d553(%rip), %rsi     # 0x6f23f
callq 0x19880
movl $0x1, -0x14(%rbp)
jmp 0x21d11
movq -0x8(%rbp), %rdi
leaq 0x4e7ae(%rip), %rsi     # 0x704b3
callq 0x19880
movl $0x0, -0x14(%rbp)
jmp 0x21d13
jmp 0x21d15
jmp 0x21d17
jmp 0x21d19
jmp 0x21e01
cmpl $0x1, -0xc(%rbp)
jne 0x21d40
movq -0x8(%rbp), %rdi
leaq 0x4e780(%rip), %rsi     # 0x704af
callq 0x19880
movl $0x1, -0x14(%rbp)
jmp 0x21dff
cmpl $0x2, -0xc(%rbp)
jne 0x21d62
movq -0x8(%rbp), %rdi
leaq 0x4e750(%rip), %rsi     # 0x704a1
callq 0x19880
movl $0x1, -0x14(%rbp)
jmp 0x21dfd
cmpl $-0x1, -0xc(%rbp)
jne 0x21d81
movq -0x8(%rbp), %rdi
leaq 0x4d4cc(%rip), %rsi     # 0x6f23f
callq 0x19880
movl $0x1, -0x14(%rbp)
jmp 0x21dfb
cmpl $-0x3, -0xc(%rbp)
jne 0x21da0
movq -0x8(%rbp), %rdi
leaq 0x4e714(%rip), %rsi     # 0x704a6
callq 0x19880
movl $0x1, -0x14(%rbp)
jmp 0x21df9
cmpl $-0x2, -0xc(%rbp)
jne 0x21dbf
movq -0x8(%rbp), %rdi
leaq 0x4e6e7(%rip), %rsi     # 0x70498
callq 0x19880
movl $0x1, -0x14(%rbp)
jmp 0x21df7
cmpl $0x0, -0xc(%rbp)
jne 0x21dde
movq -0x8(%rbp), %rdi
leaq 0x4e6eb(%rip), %rsi     # 0x704bb
callq 0x19880
movl $0x0, -0x14(%rbp)
jmp 0x21df5
movq -0x8(%rbp), %rdi
leaq 0x4e6ca(%rip), %rsi     # 0x704b3
callq 0x19880
movl $0x0, -0x14(%rbp)
jmp 0x21df7
jmp 0x21df9
jmp 0x21dfb
jmp 0x21dfd
jmp 0x21dff
jmp 0x21e01
movl -0x14(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)