#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*/ strcat(char *, char *);
char *room_bit_name(int room_flags) {
  static char buf[512];
  buf[0] = '\0';
  if (room_flags & (1))
    strcat(buf, " dark");
  if (room_flags & (4))
    strcat(buf, " no_mob");
  if (room_flags & (8))
    strcat(buf, " indoors");
  if (room_flags & (512))
    strcat(buf, " private");
  if (room_flags & (1024))
    strcat(buf, " safe");
  if (room_flags & (2048))
    strcat(buf, " solitary");
  if (room_flags & (4096))
    strcat(buf, " pet_shop");
  if (room_flags & (8192))
    strcat(buf, " no_recall");
  if (room_flags & (16384))
    strcat(buf, " imp");
  if (room_flags & (32768))
    strcat(buf, " gods");
  if (room_flags & (65536))
    strcat(buf, " heroes");
  if (room_flags & (131072))
    strcat(buf, " newbies");
  if (room_flags & (262144))
    strcat(buf, " law");
  if (room_flags & (1048576))
    strcat(buf, " clan_ent");
  if (room_flags & (524288))
    strcat(buf, " nowhere");
  if (room_flags & (8388608))
    strcat(buf, " locked");
  if (room_flags & (2097152))
    strcat(buf, " arena");
  return (buf[0] != '\0') ? buf + 1 : "none";
}


x86 assembly (clang, -O0):
<room_bit_name>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movb   $0x0,0x2f1e(%rip)
mov    -0x4(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1144 <room_bit_name+0x34>
lea    0x2f08(%rip),%rdi
lea    0xec1(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     1166 <room_bit_name+0x56>
lea    0x2ee6(%rip),%rdi
lea    0xea5(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     1188 <room_bit_name+0x78>
lea    0x2ec4(%rip),%rdi
lea    0xe8b(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x200,%eax
cmp    $0x0,%eax
je     11ac <room_bit_name+0x9c>
lea    0x2ea0(%rip),%rdi
lea    0xe70(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x400,%eax
cmp    $0x0,%eax
je     11d0 <room_bit_name+0xc0>
lea    0x2e7c(%rip),%rdi
lea    0xe55(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x800,%eax
cmp    $0x0,%eax
je     11f4 <room_bit_name+0xe4>
lea    0x2e58(%rip),%rdi
lea    0xe37(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x1000,%eax
cmp    $0x0,%eax
je     1218 <room_bit_name+0x108>
lea    0x2e34(%rip),%rdi
lea    0xe1d(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x2000,%eax
cmp    $0x0,%eax
je     123c <room_bit_name+0x12c>
lea    0x2e10(%rip),%rdi
lea    0xe03(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x4000,%eax
cmp    $0x0,%eax
je     1260 <room_bit_name+0x150>
lea    0x2dec(%rip),%rdi
lea    0xdea(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x8000,%eax
cmp    $0x0,%eax
je     1284 <room_bit_name+0x174>
lea    0x2dc8(%rip),%rdi
lea    0xdcb(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x10000,%eax
cmp    $0x0,%eax
je     12a8 <room_bit_name+0x198>
lea    0x2da4(%rip),%rdi
lea    0xdad(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x20000,%eax
cmp    $0x0,%eax
je     12cc <room_bit_name+0x1bc>
lea    0x2d80(%rip),%rdi
lea    0xd91(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x40000,%eax
cmp    $0x0,%eax
je     12f0 <room_bit_name+0x1e0>
lea    0x2d5c(%rip),%rdi
lea    0xd76(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x100000,%eax
cmp    $0x0,%eax
je     1314 <room_bit_name+0x204>
lea    0x2d38(%rip),%rdi
lea    0xd57(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x80000,%eax
cmp    $0x0,%eax
je     1338 <room_bit_name+0x228>
lea    0x2d14(%rip),%rdi
lea    0xd3d(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x800000,%eax
cmp    $0x0,%eax
je     135c <room_bit_name+0x24c>
lea    0x2cf0(%rip),%rdi
lea    0xd22(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x4(%rbp),%eax
and    $0x200000,%eax
cmp    $0x0,%eax
je     1380 <room_bit_name+0x270>
lea    0x2ccc(%rip),%rdi
lea    0xd06(%rip),%rsi
call   1030 <strcat@plt>
movsbl 0x2cb9(%rip),%edx
lea    0xcfa(%rip),%rax
lea    0x2cab(%rip),%rcx
add    $0x1,%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<room_bit_name>:
push   %rbx
mov    %edi,%ebx
movb   $0x0,0x2f26(%rip)
test   $0x1,%bl
jne    1207 <room_bit_name+0xf7>
test   $0x4,%bl
jne    1223 <room_bit_name+0x113>
test   $0x8,%bl
jne    123f <room_bit_name+0x12f>
test   $0x200,%ebx
jne    125e <room_bit_name+0x14e>
test   $0x400,%ebx
jne    127d <room_bit_name+0x16d>
test   $0x800,%ebx
jne    129c <room_bit_name+0x18c>
test   $0x1000,%ebx
jne    12bb <room_bit_name+0x1ab>
test   $0x2000,%ebx
jne    12da <room_bit_name+0x1ca>
test   $0x4000,%ebx
jne    12f9 <room_bit_name+0x1e9>
test   $0x8000,%ebx
jne    1318 <room_bit_name+0x208>
test   $0x10000,%ebx
jne    1337 <room_bit_name+0x227>
test   $0x20000,%ebx
jne    1356 <room_bit_name+0x246>
test   $0x40000,%ebx
jne    1375 <room_bit_name+0x265>
test   $0x100000,%ebx
jne    1394 <room_bit_name+0x284>
test   $0x80000,%ebx
jne    13b3 <room_bit_name+0x2a3>
test   $0x800000,%ebx
jne    13d2 <room_bit_name+0x2c2>
test   $0x200000,%ebx
je     11ec <room_bit_name+0xdc>
lea    0x2e60(%rip),%rdi
lea    0xe9a(%rip),%rsi
call   1030 <strcat@plt>
cmpb   $0x0,0x2e4d(%rip)
lea    0xe8e(%rip),%rcx
lea    0x2e40(%rip),%rax
cmove  %rcx,%rax
pop    %rbx
ret
lea    0x2e32(%rip),%rdi
lea    0xdeb(%rip),%rsi
call   1030 <strcat@plt>
test   $0x4,%bl
je     112c <room_bit_name+0x1c>
lea    0x2e16(%rip),%rdi
lea    0xdd5(%rip),%rsi
call   1030 <strcat@plt>
test   $0x8,%bl
je     1135 <room_bit_name+0x25>
lea    0x2dfa(%rip),%rdi
lea    0xdc1(%rip),%rsi
call   1030 <strcat@plt>
test   $0x200,%ebx
je     1141 <room_bit_name+0x31>
lea    0x2ddb(%rip),%rdi
lea    0xdab(%rip),%rsi
call   1030 <strcat@plt>
test   $0x400,%ebx
je     114d <room_bit_name+0x3d>
lea    0x2dbc(%rip),%rdi
lea    0xd95(%rip),%rsi
call   1030 <strcat@plt>
test   $0x800,%ebx
je     1159 <room_bit_name+0x49>
lea    0x2d9d(%rip),%rdi
lea    0xd7c(%rip),%rsi
call   1030 <strcat@plt>
test   $0x1000,%ebx
je     1165 <room_bit_name+0x55>
lea    0x2d7e(%rip),%rdi
lea    0xd67(%rip),%rsi
call   1030 <strcat@plt>
test   $0x2000,%ebx
je     1171 <room_bit_name+0x61>
lea    0x2d5f(%rip),%rdi
lea    0xd52(%rip),%rsi
call   1030 <strcat@plt>
test   $0x4000,%ebx
je     117d <room_bit_name+0x6d>
lea    0x2d40(%rip),%rdi
lea    0xd3e(%rip),%rsi
call   1030 <strcat@plt>
test   $0x8000,%ebx
je     1189 <room_bit_name+0x79>
lea    0x2d21(%rip),%rdi
lea    0xd24(%rip),%rsi
call   1030 <strcat@plt>
test   $0x10000,%ebx
je     1195 <room_bit_name+0x85>
lea    0x2d02(%rip),%rdi
lea    0xd0b(%rip),%rsi
call   1030 <strcat@plt>
test   $0x20000,%ebx
je     11a1 <room_bit_name+0x91>
lea    0x2ce3(%rip),%rdi
lea    0xcf4(%rip),%rsi
call   1030 <strcat@plt>
test   $0x40000,%ebx
je     11ad <room_bit_name+0x9d>
lea    0x2cc4(%rip),%rdi
lea    0xcde(%rip),%rsi
call   1030 <strcat@plt>
test   $0x100000,%ebx
je     11b9 <room_bit_name+0xa9>
lea    0x2ca5(%rip),%rdi
lea    0xcc4(%rip),%rsi
call   1030 <strcat@plt>
test   $0x80000,%ebx
je     11c5 <room_bit_name+0xb5>
lea    0x2c86(%rip),%rdi
lea    0xcaf(%rip),%rsi
call   1030 <strcat@plt>
test   $0x800000,%ebx
je     11d1 <room_bit_name+0xc1>
lea    0x2c67(%rip),%rdi
lea    0xc99(%rip),%rsi
call   1030 <strcat@plt>
test   $0x200000,%ebx
jne    11d9 <room_bit_name+0xc9>
jmp    11ec <room_bit_name+0xdc>

LLVM IR (-O0):
@room_bit_name.buf = internal global [512 x i8] zeroinitializer
@.str = [6 x i8] c" dark\00"
@.str.1 = [8 x i8] c" no_mob\00"
@.str.2 = [9 x i8] c" indoors\00"
@.str.3 = [9 x i8] c" private\00"
@.str.4 = [6 x i8] c" safe\00"
@.str.5 = [10 x i8] c" solitary\00"
@.str.6 = [10 x i8] c" pet_shop\00"
@.str.7 = [11 x i8] c" no_recall\00"
@.str.8 = [5 x i8] c" imp\00"
@.str.9 = [6 x i8] c" gods\00"
@.str.10 = [8 x i8] c" heroes\00"
@.str.11 = [9 x i8] c" newbies\00"
@.str.12 = [5 x i8] c" law\00"
@.str.13 = [10 x i8] c" clan_ent\00"
@.str.14 = [9 x i8] c" nowhere\00"
@.str.15 = [8 x i8] c" locked\00"
@.str.16 = [7 x i8] c" arena\00"
@.str.17 = [5 x i8] c"none\00"
define i8* @room_bit_name(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
store i8 0, i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0)
%3 = load i32, i32* %2
%4 = and i32 %3, 1
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %6, %1
%9 = load i32, i32* %2
%10 = and i32 %9, 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %14
14: ; preds = %12, %8
%15 = load i32, i32* %2
%16 = and i32 %15, 8
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
br label %20
20: ; preds = %18, %14
%21 = load i32, i32* %2
%22 = and i32 %21, 512
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
br label %26
26: ; preds = %24, %20
%27 = load i32, i32* %2
%28 = and i32 %27, 1024
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %32
32: ; preds = %30, %26
%33 = load i32, i32* %2
%34 = and i32 %33, 2048
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
br label %38
38: ; preds = %36, %32
%39 = load i32, i32* %2
%40 = and i32 %39, 4096
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
br label %44
44: ; preds = %42, %38
%45 = load i32, i32* %2
%46 = and i32 %45, 8192
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %44
%49 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
br label %50
50: ; preds = %48, %44
%51 = load i32, i32* %2
%52 = and i32 %51, 16384
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %50
%55 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
br label %56
56: ; preds = %54, %50
%57 = load i32, i32* %2
%58 = and i32 %57, 32768
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %56
%61 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
br label %62
62: ; preds = %60, %56
%63 = load i32, i32* %2
%64 = and i32 %63, 65536
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %68
66: ; preds = %62
%67 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
br label %68
68: ; preds = %66, %62
%69 = load i32, i32* %2
%70 = and i32 %69, 131072
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %68
%73 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
br label %74
74: ; preds = %72, %68
%75 = load i32, i32* %2
%76 = and i32 %75, 262144
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %80
78: ; preds = %74
%79 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
br label %80
80: ; preds = %78, %74
%81 = load i32, i32* %2
%82 = and i32 %81, 1048576
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %86
84: ; preds = %80
%85 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0))
br label %86
86: ; preds = %84, %80
%87 = load i32, i32* %2
%88 = and i32 %87, 524288
%89 = icmp ne i32 %88, 0
br i1 %89, label %90, label %92
90: ; preds = %86
%91 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0))
br label %92
92: ; preds = %90, %86
%93 = load i32, i32* %2
%94 = and i32 %93, 8388608
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %98
96: ; preds = %92
%97 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0))
br label %98
98: ; preds = %96, %92
%99 = load i32, i32* %2
%100 = and i32 %99, 2097152
%101 = icmp ne i32 %100, 0
br i1 %101, label %102, label %104
102: ; preds = %98
%103 = call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0))
br label %104
104: ; preds = %102, %98
%105 = load i8, i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0)
%106 = sext i8 %105 to i32
%107 = icmp ne i32 %106, 0
%108 = zext i1 %107 to i64
%109 = select i1 %107, i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 1), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0)
ret i8* %109
}

LLVM IR (-O2):
@room_bit_name.buf = internal global [512 x i8] zeroinitializer
@.str = [6 x i8] c" dark\00"
@.str.1 = [8 x i8] c" no_mob\00"
@.str.2 = [9 x i8] c" indoors\00"
@.str.3 = [9 x i8] c" private\00"
@.str.4 = [6 x i8] c" safe\00"
@.str.5 = [10 x i8] c" solitary\00"
@.str.6 = [10 x i8] c" pet_shop\00"
@.str.7 = [11 x i8] c" no_recall\00"
@.str.8 = [5 x i8] c" imp\00"
@.str.9 = [6 x i8] c" gods\00"
@.str.10 = [8 x i8] c" heroes\00"
@.str.11 = [9 x i8] c" newbies\00"
@.str.12 = [5 x i8] c" law\00"
@.str.13 = [10 x i8] c" clan_ent\00"
@.str.14 = [9 x i8] c" nowhere\00"
@.str.15 = [8 x i8] c" locked\00"
@.str.16 = [7 x i8] c" arena\00"
@.str.17 = [5 x i8] c"none\00"
define i8* @room_bit_name(i32 %0) {
store i8 0, i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0)
%2 = and i32 %0, 1
%3 = icmp eq i32 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %4, %1
%7 = and i32 %0, 4
%8 = icmp eq i32 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %6
%10 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %11
11: ; preds = %9, %6
%12 = and i32 %0, 8
%13 = icmp eq i32 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %11
%15 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
br label %16
16: ; preds = %14, %11
%17 = and i32 %0, 512
%18 = icmp eq i32 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %16
%20 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
br label %21
21: ; preds = %19, %16
%22 = and i32 %0, 1024
%23 = icmp eq i32 %22, 0
br i1 %23, label %26, label %24
24: ; preds = %21
%25 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %26
26: ; preds = %24, %21
%27 = and i32 %0, 2048
%28 = icmp eq i32 %27, 0
br i1 %28, label %31, label %29
29: ; preds = %26
%30 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
br label %31
31: ; preds = %29, %26
%32 = and i32 %0, 4096
%33 = icmp eq i32 %32, 0
br i1 %33, label %36, label %34
34: ; preds = %31
%35 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
br label %36
36: ; preds = %34, %31
%37 = and i32 %0, 8192
%38 = icmp eq i32 %37, 0
br i1 %38, label %41, label %39
39: ; preds = %36
%40 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
br label %41
41: ; preds = %39, %36
%42 = and i32 %0, 16384
%43 = icmp eq i32 %42, 0
br i1 %43, label %46, label %44
44: ; preds = %41
%45 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
br label %46
46: ; preds = %44, %41
%47 = and i32 %0, 32768
%48 = icmp eq i32 %47, 0
br i1 %48, label %51, label %49
49: ; preds = %46
%50 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
br label %51
51: ; preds = %49, %46
%52 = and i32 %0, 65536
%53 = icmp eq i32 %52, 0
br i1 %53, label %56, label %54
54: ; preds = %51
%55 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
br label %56
56: ; preds = %54, %51
%57 = and i32 %0, 131072
%58 = icmp eq i32 %57, 0
br i1 %58, label %61, label %59
59: ; preds = %56
%60 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
br label %61
61: ; preds = %59, %56
%62 = and i32 %0, 262144
%63 = icmp eq i32 %62, 0
br i1 %63, label %66, label %64
64: ; preds = %61
%65 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
br label %66
66: ; preds = %64, %61
%67 = and i32 %0, 1048576
%68 = icmp eq i32 %67, 0
br i1 %68, label %71, label %69
69: ; preds = %66
%70 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0))
br label %71
71: ; preds = %69, %66
%72 = and i32 %0, 524288
%73 = icmp eq i32 %72, 0
br i1 %73, label %76, label %74
74: ; preds = %71
%75 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0))
br label %76
76: ; preds = %74, %71
%77 = and i32 %0, 8388608
%78 = icmp eq i32 %77, 0
br i1 %78, label %81, label %79
79: ; preds = %76
%80 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0))
br label %81
81: ; preds = %79, %76
%82 = and i32 %0, 2097152
%83 = icmp eq i32 %82, 0
br i1 %83, label %86, label %84
84: ; preds = %81
%85 = tail call i32 @strcat(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0))
br label %86
86: ; preds = %84, %81
%87 = load i8, i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 0)
%88 = icmp eq i8 %87, 0
%89 = select i1 %88, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([512 x i8], [512 x i8]* @room_bit_name.buf, i64 0, i64 1)
ret i8* %89
}