#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ AAS_IntForBSPEpairKey(int, char *, int *);
int AAS_TravelFlagsForTeam(int ent) {
  int notteam;
  if (!AAS_IntForBSPEpairKey(ent, "bot_notteam", &notteam))
    return 0;
  if (notteam == 1)
    return (1 << 24);
  if (notteam == 2)
    return (2 << 24);
  return 0;
}


x86 assembly (clang, -O0):
<AAS_TravelFlagsForTeam>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
lea    0xedb(%rip),%rsi
lea    -0xc(%rbp),%rdx
call   1030 <AAS_IntForBSPEpairKey@plt>
cmp    $0x0,%eax
jne    1143 <AAS_TravelFlagsForTeam+0x33>
movl   $0x0,-0x4(%rbp)
jmp    1176 <AAS_TravelFlagsForTeam+0x66>
cmpl   $0x1,-0xc(%rbp)
jne    1159 <AAS_TravelFlagsForTeam+0x49>
movl   $0x1000000,-0x4(%rbp)
jmp    1176 <AAS_TravelFlagsForTeam+0x66>
cmpl   $0x2,-0xc(%rbp)
jne    116f <AAS_TravelFlagsForTeam+0x5f>
movl   $0x2000000,-0x4(%rbp)
jmp    1176 <AAS_TravelFlagsForTeam+0x66>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AAS_TravelFlagsForTeam>:
push   %rax
lea    0xee8(%rip),%rsi
lea    0x4(%rsp),%rdx
call   1030 <AAS_IntForBSPEpairKey@plt>
test   %eax,%eax
je     1142 <AAS_TravelFlagsForTeam+0x32>
mov    0x4(%rsp),%eax
xor    %ecx,%ecx
cmp    $0x2,%eax
sete   %cl
shl    $0x19,%ecx
cmp    $0x1,%eax
mov    $0x1000000,%eax
cmovne %ecx,%eax
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"bot_notteam\00"
define i32 @AAS_TravelFlagsForTeam(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
%5 = load i32, i32* %3
%6 = call i32 @AAS_IntForBSPEpairKey(i32 %5, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32* %4)
%7 = icmp ne i32 %6, 0
br i1 %7, label %9, label %8
8: ; preds = %1
store i32 0, i32* %2
br label %18
9: ; preds = %1
%10 = load i32, i32* %4
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %13
12: ; preds = %9
store i32 16777216, i32* %2
br label %18
13: ; preds = %9
%14 = load i32, i32* %4
%15 = icmp eq i32 %14, 2
br i1 %15, label %16, label %17
16: ; preds = %13
store i32 33554432, i32* %2
br label %18
17: ; preds = %13
store i32 0, i32* %2
br label %18
18: ; preds = %17, %16, %12, %8
%19 = load i32, i32* %2
ret i32 %19
}

LLVM IR (-O2):
@.str = [12 x i8] c"bot_notteam\00"
define i32 @AAS_TravelFlagsForTeam(i32 %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = call i32 @AAS_IntForBSPEpairKey(i32 %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32* %2)
%5 = icmp eq i32 %4, 0
br i1 %5, label %12, label %6
6: ; preds = %1
%7 = load i32, i32* %2
%8 = icmp eq i32 %7, 2
%9 = select i1 %8, i32 33554432, i32 0
%10 = icmp eq i32 %7, 1
%11 = select i1 %10, i32 16777216, i32 %9
br label %12
12: ; preds = %6, %1
%13 = phi i32 [ 0, %1 ], [ %11, %6 ]
ret i32 %13
}