#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 */
scalar_t__ mIsAustraliaState(int);
scalar_t__ mIsBrazilState(int);
scalar_t__ mIsCanadaState(int);
scalar_t__ mIsChinaState(int);
scalar_t__ mIsIndiaState(int);
scalar_t__ mIsMexicoState(int);
scalar_t__ mIsRussiaState(int);
scalar_t__ mIsUsaState(int);
int mIsState(int ccode) {
  return mIsUsaState(ccode) || mIsIndiaState(ccode) || mIsCanadaState(ccode) ||
         mIsAustraliaState(ccode) || mIsMexicoState(ccode) ||
         mIsBrazilState(ccode) || mIsChinaState(ccode) || mIsRussiaState(ccode);
}


x86 assembly (clang, -O0):
<mIsState>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <mIsUsaState@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    1253 <mIsState+0xd3>
mov    -0x4(%rbp),%edi
call   10a0 <mIsIndiaState@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    1253 <mIsState+0xd3>
mov    -0x4(%rbp),%edi
call   1050 <mIsCanadaState@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    1253 <mIsState+0xd3>
mov    -0x4(%rbp),%edi
call   1090 <mIsAustraliaState@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    1253 <mIsState+0xd3>
mov    -0x4(%rbp),%edi
call   1060 <mIsMexicoState@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    1253 <mIsState+0xd3>
mov    -0x4(%rbp),%edi
call   1030 <mIsBrazilState@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    1253 <mIsState+0xd3>
mov    -0x4(%rbp),%edi
call   1080 <mIsChinaState@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    1253 <mIsState+0xd3>
mov    -0x4(%rbp),%edi
call   1070 <mIsRussiaState@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mIsState>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebp
call   1040 <mIsUsaState@plt>
mov    $0x1,%ebx
test   %rax,%rax
jne    11eb <mIsState+0x6b>
mov    %ebp,%edi
call   10a0 <mIsIndiaState@plt>
test   %rax,%rax
jne    11eb <mIsState+0x6b>
mov    %ebp,%edi
call   1050 <mIsCanadaState@plt>
test   %rax,%rax
jne    11eb <mIsState+0x6b>
mov    %ebp,%edi
call   1090 <mIsAustraliaState@plt>
test   %rax,%rax
jne    11eb <mIsState+0x6b>
mov    %ebp,%edi
call   1060 <mIsMexicoState@plt>
test   %rax,%rax
jne    11eb <mIsState+0x6b>
mov    %ebp,%edi
call   1030 <mIsBrazilState@plt>
test   %rax,%rax
jne    11eb <mIsState+0x6b>
mov    %ebp,%edi
call   1080 <mIsChinaState@plt>
test   %rax,%rax
jne    11eb <mIsState+0x6b>
mov    %ebp,%edi
call   1070 <mIsRussiaState@plt>
xor    %ebx,%ebx
test   %rax,%rax
setne  %bl
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @mIsState(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i64 @mIsUsaState(i32 %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %34, label %6
6: ; preds = %1
%7 = load i32, i32* %2
%8 = call i64 @mIsIndiaState(i32 %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %34, label %10
10: ; preds = %6
%11 = load i32, i32* %2
%12 = call i64 @mIsCanadaState(i32 %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %34, label %14
14: ; preds = %10
%15 = load i32, i32* %2
%16 = call i64 @mIsAustraliaState(i32 %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %34, label %18
18: ; preds = %14
%19 = load i32, i32* %2
%20 = call i64 @mIsMexicoState(i32 %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %34, label %22
22: ; preds = %18
%23 = load i32, i32* %2
%24 = call i64 @mIsBrazilState(i32 %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %34, label %26
26: ; preds = %22
%27 = load i32, i32* %2
%28 = call i64 @mIsChinaState(i32 %27)
%29 = icmp ne i64 %28, 0
br i1 %29, label %34, label %30
30: ; preds = %26
%31 = load i32, i32* %2
%32 = call i64 @mIsRussiaState(i32 %31)
%33 = icmp ne i64 %32, 0
br label %34
34: ; preds = %30, %26, %22, %18, %14, %10, %6, %1
%35 = phi i1 [ true, %26 ], [ true, %22 ], [ true, %18 ], [ true, %14 ], [ true, %10 ], [ true, %6 ], [ true, %1 ], [ %33, %30 ]
%36 = zext i1 %35 to i32
ret i32 %36
}

LLVM IR (-O2):
define i32 @mIsState(i32 %0) {
%2 = tail call i64 @mIsUsaState(i32 %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %26
4: ; preds = %1
%5 = tail call i64 @mIsIndiaState(i32 %0)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %26
7: ; preds = %4
%8 = tail call i64 @mIsCanadaState(i32 %0)
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %26
10: ; preds = %7
%11 = tail call i64 @mIsAustraliaState(i32 %0)
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %26
13: ; preds = %10
%14 = tail call i64 @mIsMexicoState(i32 %0)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %26
16: ; preds = %13
%17 = tail call i64 @mIsBrazilState(i32 %0)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %26
19: ; preds = %16
%20 = tail call i64 @mIsChinaState(i32 %0)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %26
22: ; preds = %19
%23 = tail call i64 @mIsRussiaState(i32 %0)
%24 = icmp ne i64 %23, 0
%25 = zext i1 %24 to i32
br label %26
26: ; preds = %22, %19, %16, %13, %10, %7, %4, %1
%27 = phi i32 [ 1, %19 ], [ 1, %16 ], [ 1, %13 ], [ 1, %10 ], [ 1, %7 ], [ 1, %4 ], [ 1, %1 ], [ %25, %22 ]
ret i32 %27
}