#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 */
const char *get_region_name_NZ(int region_code) {
  switch (region_code) {
  case 10:
    return "Chatham Islands";
  case 1010:
    return "Auckland";
  case 1011:
    return "Bay of Plenty";
  case 1012:
    return "Canterbury";
  case 1047:
    return "Gisborne";
  case 1048:
    return "Hawke's Bay";
  case 1049:
    return "Manawatu-Wanganui";
  case 1050:
    return "Marlborough";
  case 1051:
    return "Nelson";
  case 1052:
    return "Northland";
  case 1053:
    return "Otago";
  case 1054:
    return "Southland";
  case 1055:
    return "Taranaki";
  case 1090:
    return "Waikato";
  case 1091:
    return "Wellington";
  case 1092:
    return "West Coast";
  default:
    return NULL;
  }
}


x86 assembly (clang, -O0):
<get_region_name_NZ>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
sub    $0xa,%eax
je     1238 <get_region_name_NZ+0x138>
jmp    111b <get_region_name_NZ+0x1b>
mov    -0x10(%rbp),%eax
sub    $0x3f2,%eax
je     1248 <get_region_name_NZ+0x148>
jmp    112e <get_region_name_NZ+0x2e>
mov    -0x10(%rbp),%eax
sub    $0x3f3,%eax
je     1258 <get_region_name_NZ+0x158>
jmp    1141 <get_region_name_NZ+0x41>
mov    -0x10(%rbp),%eax
sub    $0x3f4,%eax
je     1268 <get_region_name_NZ+0x168>
jmp    1154 <get_region_name_NZ+0x54>
mov    -0x10(%rbp),%eax
sub    $0x417,%eax
je     1278 <get_region_name_NZ+0x178>
jmp    1167 <get_region_name_NZ+0x67>
mov    -0x10(%rbp),%eax
sub    $0x418,%eax
je     1288 <get_region_name_NZ+0x188>
jmp    117a <get_region_name_NZ+0x7a>
mov    -0x10(%rbp),%eax
sub    $0x419,%eax
je     1298 <get_region_name_NZ+0x198>
jmp    118d <get_region_name_NZ+0x8d>
mov    -0x10(%rbp),%eax
sub    $0x41a,%eax
je     12a8 <get_region_name_NZ+0x1a8>
jmp    11a0 <get_region_name_NZ+0xa0>
mov    -0x10(%rbp),%eax
sub    $0x41b,%eax
je     12b8 <get_region_name_NZ+0x1b8>
jmp    11b3 <get_region_name_NZ+0xb3>
mov    -0x10(%rbp),%eax
sub    $0x41c,%eax
je     12c8 <get_region_name_NZ+0x1c8>
jmp    11c6 <get_region_name_NZ+0xc6>
mov    -0x10(%rbp),%eax
sub    $0x41d,%eax
je     12d8 <get_region_name_NZ+0x1d8>
jmp    11d9 <get_region_name_NZ+0xd9>
mov    -0x10(%rbp),%eax
sub    $0x41e,%eax
je     12e8 <get_region_name_NZ+0x1e8>
jmp    11ec <get_region_name_NZ+0xec>
mov    -0x10(%rbp),%eax
sub    $0x41f,%eax
je     12f8 <get_region_name_NZ+0x1f8>
jmp    11ff <get_region_name_NZ+0xff>
mov    -0x10(%rbp),%eax
sub    $0x442,%eax
je     1308 <get_region_name_NZ+0x208>
jmp    1212 <get_region_name_NZ+0x112>
mov    -0x10(%rbp),%eax
sub    $0x443,%eax
je     1318 <get_region_name_NZ+0x218>
jmp    1225 <get_region_name_NZ+0x125>
mov    -0x10(%rbp),%eax
sub    $0x444,%eax
je     1328 <get_region_name_NZ+0x228>
jmp    1338 <get_region_name_NZ+0x238>
lea    0xdc1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1340 <get_region_name_NZ+0x240>
lea    0xdc1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1340 <get_region_name_NZ+0x240>
lea    0xdba(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1340 <get_region_name_NZ+0x240>
lea    0xdb8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1340 <get_region_name_NZ+0x240>
lea    0xdb3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1340 <get_region_name_NZ+0x240>
lea    0xdac(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1340 <get_region_name_NZ+0x240>
lea    0xda8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1340 <get_region_name_NZ+0x240>
lea    0xdaa(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1340 <get_region_name_NZ+0x240>
lea    0xda6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1340 <get_region_name_NZ+0x240>
lea    0xd9d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1340 <get_region_name_NZ+0x240>
lea    0xd97(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1340 <get_region_name_NZ+0x240>
lea    0xd8d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1340 <get_region_name_NZ+0x240>
lea    0xd87(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1340 <get_region_name_NZ+0x240>
lea    0xd80(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1340 <get_region_name_NZ+0x240>
lea    0xd78(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1340 <get_region_name_NZ+0x240>
lea    0xd73(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1340 <get_region_name_NZ+0x240>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_region_name_NZ>:
lea    -0x3f2(%rdi),%eax
cmp    $0x52,%eax
ja     1123 <get_region_name_NZ+0x23>
lea    0xeee(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x103a(%rip),%rax
ret
cmp    $0xa,%edi
jne    1130 <get_region_name_NZ+0x30>
lea    0x101d(%rip),%rax
ret
xor    %eax,%eax
ret
lea    0x102b(%rip),%rax
ret
lea    0x1031(%rip),%rax
ret
lea    0x1034(%rip),%rax
ret
lea    0x1035(%rip),%rax
ret
lea    0x1039(%rip),%rax
ret
lea    0x1043(%rip),%rax
ret
lea    0x1047(%rip),%rax
ret
lea    0x1046(%rip),%rax
ret
lea    0x1048(%rip),%rax
ret
lea    0x1046(%rip),%rax
ret
lea    0x1048(%rip),%rax
ret
lea    0x1049(%rip),%rax
ret
lea    0x1049(%rip),%rax
ret
lea    0x104c(%rip),%rax
ret

LLVM IR (-O0):
@.str = [16 x i8] c"Chatham Islands\00"
@.str.1 = [9 x i8] c"Auckland\00"
@.str.2 = [14 x i8] c"Bay of Plenty\00"
@.str.3 = [11 x i8] c"Canterbury\00"
@.str.4 = [9 x i8] c"Gisborne\00"
@.str.5 = [12 x i8] c"Hawke's Bay\00"
@.str.6 = [18 x i8] c"Manawatu-Wanganui\00"
@.str.7 = [12 x i8] c"Marlborough\00"
@.str.8 = [7 x i8] c"Nelson\00"
@.str.9 = [10 x i8] c"Northland\00"
@.str.10 = [6 x i8] c"Otago\00"
@.str.11 = [10 x i8] c"Southland\00"
@.str.12 = [9 x i8] c"Taranaki\00"
@.str.13 = [8 x i8] c"Waikato\00"
@.str.14 = [11 x i8] c"Wellington\00"
@.str.15 = [11 x i8] c"West Coast\00"
define i8* @get_region_name_NZ(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %21 [
i32 10, label %5
i32 1010, label %6
i32 1011, label %7
i32 1012, label %8
i32 1047, label %9
i32 1048, label %10
i32 1049, label %11
i32 1050, label %12
i32 1051, label %13
i32 1052, label %14
i32 1053, label %15
i32 1054, label %16
i32 1055, label %17
i32 1090, label %18
i32 1091, label %19
i32 1092, label %20
]
5: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8** %2
br label %22
6: ; preds = %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %22
7: ; preds = %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %22
8: ; preds = %1
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %22
9: ; preds = %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %22
10: ; preds = %1
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %22
11: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %22
12: ; preds = %1
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %22
13: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %22
14: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %22
15: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %22
16: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %22
17: ; preds = %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %22
18: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %22
19: ; preds = %1
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %22
20: ; preds = %1
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %22
21: ; preds = %1
store i8* null, i8** %2
br label %22
22: ; preds = %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5
%23 = load i8*, i8** %2
ret i8* %23
}

LLVM IR (-O2):
@.str = [16 x i8] c"Chatham Islands\00"
@.str.1 = [9 x i8] c"Auckland\00"
@.str.2 = [14 x i8] c"Bay of Plenty\00"
@.str.3 = [11 x i8] c"Canterbury\00"
@.str.4 = [9 x i8] c"Gisborne\00"
@.str.5 = [12 x i8] c"Hawke's Bay\00"
@.str.6 = [18 x i8] c"Manawatu-Wanganui\00"
@.str.7 = [12 x i8] c"Marlborough\00"
@.str.8 = [7 x i8] c"Nelson\00"
@.str.9 = [10 x i8] c"Northland\00"
@.str.10 = [6 x i8] c"Otago\00"
@.str.11 = [10 x i8] c"Southland\00"
@.str.12 = [9 x i8] c"Taranaki\00"
@.str.13 = [8 x i8] c"Waikato\00"
@.str.14 = [11 x i8] c"Wellington\00"
@.str.15 = [11 x i8] c"West Coast\00"
define i8* @get_region_name_NZ(i32 %0) {
switch i32 %0, label %17 [
i32 10, label %18
i32 1010, label %2
i32 1011, label %3
i32 1012, label %4
i32 1047, label %5
i32 1048, label %6
i32 1049, label %7
i32 1050, label %8
i32 1051, label %9
i32 1052, label %10
i32 1053, label %11
i32 1054, label %12
i32 1055, label %13
i32 1090, label %14
i32 1091, label %15
i32 1092, label %16
]
2: ; preds = %1
br label %18
3: ; preds = %1
br label %18
4: ; preds = %1
br label %18
5: ; preds = %1
br label %18
6: ; preds = %1
br label %18
7: ; preds = %1
br label %18
8: ; preds = %1
br label %18
9: ; preds = %1
br label %18
10: ; preds = %1
br label %18
11: ; preds = %1
br label %18
12: ; preds = %1
br label %18
13: ; preds = %1
br label %18
14: ; preds = %1
br label %18
15: ; preds = %1
br label %18
16: ; preds = %1
br label %18
17: ; preds = %1
br label %18
18: ; preds = %1, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5, %4, %3, %2
%19 = phi i8* [ null, %17 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0), %16 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), %15 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), %14 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), %13 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), %12 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), %11 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), %10 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), %9 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), %8 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), %7 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), %6 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), %5 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), %3 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), %1 ]
ret i8* %19
}