#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 */
long atoi(char const *);
scalar_t__ strcmp(char const *, char const *);
int strlen(char const *);
long parse_timezone(const char *tz) {
  const char *rfc822_timezones[26][4] = {{"M", NULL},
                                         {"L", NULL},
                                         {"K", NULL},
                                         {"I", NULL},
                                         {"H", "PST", NULL},
                                         {"G", "MST", "PDT", NULL},
                                         {"F", "CST", "MDT", NULL},
                                         {"E", "EST", "CDT", NULL},
                                         {"D", "EDT", NULL},
                                         {"C", NULL},
                                         {"B", NULL},
                                         {"A", NULL},
                                         {"Z", "UT", "GMT", NULL},
                                         {"N", NULL},
                                         {"O", NULL},
                                         {"P", NULL},
                                         {"Q", NULL},
                                         {"R", NULL},
                                         {"S", NULL},
                                         {"T", NULL},
                                         {"U", NULL},
                                         {"V", NULL},
                                         {"W", NULL},
                                         {"X", NULL},
                                         {"Y", NULL},
                                         {NULL}};
  long i, j;
  if ((*tz == '+' || *tz == '-') && strlen(tz) == 5) {
    i = atoi(tz);
    return ((i / 100) * 60 + i % 100) * 60;
  }
  for (i = 0; rfc822_timezones[i] != NULL; ++i)
    for (j = 0; rfc822_timezones[i][j] != NULL; ++j)
      if (strcmp(rfc822_timezones[i][j], tz) == 0)
        return (i - 12) * 3600;
  return 0;
}


x86 assembly (clang, -O0):
<parse_timezone>:
push   %rbp
mov    %rsp,%rbp
sub    $0x370,%rsp
mov    %rdi,-0x10(%rbp)
lea    -0x350(%rbp),%rdi
lea    0x2983(%rip),%rsi
mov    $0x340,%edx
call   1050 <memcpy@plt>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2b,%eax
je     1187 <parse_timezone+0x47>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    11ed <parse_timezone+0xad>
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x5,%eax
jne    11ed <parse_timezone+0xad>
mov    -0x10(%rbp),%rdi
call   1060 <atoi@plt>
mov    %rax,-0x358(%rbp)
mov    -0x358(%rbp),%rax
mov    $0x64,%ecx
cqto
idiv   %rcx
imul   $0x3c,%rax,%rax
mov    %rax,-0x368(%rbp)
mov    -0x358(%rbp),%rax
mov    $0x64,%ecx
cqto
idiv   %rcx
mov    -0x368(%rbp),%rax
add    %rdx,%rax
imul   $0x3c,%rax,%rax
mov    %rax,-0x8(%rbp)
jmp    12d7 <parse_timezone+0x197>
movq   $0x0,-0x358(%rbp)
mov    -0x358(%rbp),%rcx
lea    -0x350(%rbp),%rax
shl    $0x5,%rcx
add    %rcx,%rax
cmp    $0x0,%rax
je     12cf <parse_timezone+0x18f>
movq   $0x0,-0x360(%rbp)
mov    -0x358(%rbp),%rcx
lea    -0x350(%rbp),%rax
shl    $0x5,%rcx
add    %rcx,%rax
mov    -0x360(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     12b3 <parse_timezone+0x173>
mov    -0x358(%rbp),%rcx
lea    -0x350(%rbp),%rax
shl    $0x5,%rcx
add    %rcx,%rax
mov    -0x360(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1297 <parse_timezone+0x157>
mov    -0x358(%rbp),%rax
sub    $0xc,%rax
imul   $0xe10,%rax,%rax
mov    %rax,-0x8(%rbp)
jmp    12d7 <parse_timezone+0x197>
jmp    129c <parse_timezone+0x15c>
mov    -0x360(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x360(%rbp)
jmp    1222 <parse_timezone+0xe2>
jmp    12b8 <parse_timezone+0x178>
mov    -0x358(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x358(%rbp)
jmp    11f8 <parse_timezone+0xb8>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x370,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_timezone>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rdi,%r13
mov    (%rdi),%al
cmp    $0x2d,%al
je     1146 <parse_timezone+0x16>
cmp    $0x2b,%al
jne    1190 <parse_timezone+0x60>
mov    %r13,%rdi
call   1030 <strlen@plt>
cmp    $0x5,%eax
jne    1190 <parse_timezone+0x60>
mov    %r13,%rdi
call   1050 <atoi@plt>
mov    %rax,%rcx
movabs $0xa3d70a3d70a3d70b,%rdx
0a d7 a3
imul   %rdx
add    %rcx,%rdx
mov    %rdx,%rax
shr    $0x3f,%rax
sar    $0x6,%rdx
add    %rax,%rdx
imul   $0x3c,%rdx,%rax
imul   $0x64,%rdx,%rdx
sub    %rdx,%rcx
add    %rax,%rcx
imul   $0x3c,%rcx,%rax
jmp    11f8 <parse_timezone+0xc8>
lea    0x2951(%rip),%r15
xor    %r14d,%r14d
lea    0x293f(%rip),%r12
jmp    11b8 <parse_timezone+0x88>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%r14
add    $0x20,%r15
cmp    $0x19,%r14
je     11b0 <parse_timezone+0x80>
mov    %r14,%rax
shl    $0x5,%rax
mov    (%rax,%r12,1),%rdi
mov    %r15,%rbx
nopl   0x0(%rax)
mov    %r13,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     11eb <parse_timezone+0xbb>
mov    (%rbx),%rdi
add    $0x8,%rbx
test   %rdi,%rdi
jne    11d0 <parse_timezone+0xa0>
jmp    11b0 <parse_timezone+0x80>
imul   $0xe10,%r14,%rax
add    $0xffffffffffff5740,%rax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [2 x i8] c"M\00"
@.str.1 = [2 x i8] c"L\00"
@.str.2 = [2 x i8] c"K\00"
@.str.3 = [2 x i8] c"I\00"
@.str.4 = [2 x i8] c"H\00"
@.str.5 = [4 x i8] c"PST\00"
@.str.6 = [2 x i8] c"G\00"
@.str.7 = [4 x i8] c"MST\00"
@.str.8 = [4 x i8] c"PDT\00"
@.str.9 = [2 x i8] c"F\00"
@.str.10 = [4 x i8] c"CST\00"
@.str.11 = [4 x i8] c"MDT\00"
@.str.12 = [2 x i8] c"E\00"
@.str.13 = [4 x i8] c"EST\00"
@.str.14 = [4 x i8] c"CDT\00"
@.str.15 = [2 x i8] c"D\00"
@.str.16 = [4 x i8] c"EDT\00"
@.str.17 = [2 x i8] c"C\00"
@.str.18 = [2 x i8] c"B\00"
@.str.19 = [2 x i8] c"A\00"
@.str.20 = [2 x i8] c"Z\00"
@.str.21 = [3 x i8] c"UT\00"
@.str.22 = [4 x i8] c"GMT\00"
@.str.23 = [2 x i8] c"N\00"
@.str.24 = [2 x i8] c"O\00"
@.str.25 = [2 x i8] c"P\00"
@.str.26 = [2 x i8] c"Q\00"
@.str.27 = [2 x i8] c"R\00"
@.str.28 = [2 x i8] c"S\00"
@.str.29 = [2 x i8] c"T\00"
@.str.30 = [2 x i8] c"U\00"
@.str.31 = [2 x i8] c"V\00"
@.str.32 = [2 x i8] c"W\00"
@.str.33 = [2 x i8] c"X\00"
@.str.34 = [2 x i8] c"Y\00"
@__const.parse_timezone.rfc822_timezones = [26 x [4 x i8*]] [[4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i32 0, i32 0), i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i32 0, i32 0), i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i32 0, i32 0), i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i32 0, i32 0), i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i32 0, i32 0), i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.26, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.27, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.28, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.29, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.30, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.31, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.32, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.33, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.34, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] zeroinitializer]
define i64 @parse_timezone(i8* %0) {
%2 = alloca i64
%3 = alloca i8*
%4 = alloca [26 x [4 x i8*]]
%5 = alloca i64
%6 = alloca i64
store i8* %0, i8** %3
%7 = bitcast [26 x [4 x i8*]]* %4 to i8*
%8 = load i8*, i8** %3
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 43
br i1 %11, label %17, label %12
12: ; preds = %1
%13 = load i8*, i8** %3
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 45
br i1 %16, label %17, label %31
17: ; preds = %12, %1
%18 = load i8*, i8** %3
%19 = call i32 @strlen(i8* %18)
%20 = icmp eq i32 %19, 5
br i1 %20, label %21, label %31
21: ; preds = %17
%22 = load i8*, i8** %3
%23 = call i64 @atoi(i8* %22)
store i64 %23, i64* %5
%24 = load i64, i64* %5
%25 = sdiv i64 %24, 100
%26 = mul nsw i64 %25, 60
%27 = load i64, i64* %5
%28 = srem i64 %27, 100
%29 = add nsw i64 %26, %28
%30 = mul nsw i64 %29, 60
store i64 %30, i64* %2
br label %67
31: ; preds = %17, %12
store i64 0, i64* %5
br label %32
32: ; preds = %63, %31
%33 = load i64, i64* %5
%34 = getelementptr inbounds [26 x [4 x i8*]], [26 x [4 x i8*]]* %4, i64 0, i64 %33
%35 = getelementptr inbounds [4 x i8*], [4 x i8*]* %34, i64 0, i64 0
%36 = icmp ne i8** %35, null
br i1 %36, label %37, label %66
37: ; preds = %32
store i64 0, i64* %6
br label %38
38: ; preds = %59, %37
%39 = load i64, i64* %5
%40 = getelementptr inbounds [26 x [4 x i8*]], [26 x [4 x i8*]]* %4, i64 0, i64 %39
%41 = load i64, i64* %6
%42 = getelementptr inbounds [4 x i8*], [4 x i8*]* %40, i64 0, i64 %41
%43 = load i8*, i8** %42
%44 = icmp ne i8* %43, null
br i1 %44, label %45, label %62
45: ; preds = %38
%46 = load i64, i64* %5
%47 = getelementptr inbounds [26 x [4 x i8*]], [26 x [4 x i8*]]* %4, i64 0, i64 %46
%48 = load i64, i64* %6
%49 = getelementptr inbounds [4 x i8*], [4 x i8*]* %47, i64 0, i64 %48
%50 = load i8*, i8** %49
%51 = load i8*, i8** %3
%52 = call i64 @strcmp(i8* %50, i8* %51)
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %58
54: ; preds = %45
%55 = load i64, i64* %5
%56 = sub nsw i64 %55, 12
%57 = mul nsw i64 %56, 3600
store i64 %57, i64* %2
br label %67
58: ; preds = %45
br label %59
59: ; preds = %58
%60 = load i64, i64* %6
%61 = add nsw i64 %60, 1
store i64 %61, i64* %6
br label %38
62: ; preds = %38
br label %63
63: ; preds = %62
%64 = load i64, i64* %5
%65 = add nsw i64 %64, 1
store i64 %65, i64* %5
br label %32
66: ; preds = %32
store i64 0, i64* %2
br label %67
67: ; preds = %66, %54, %21
%68 = load i64, i64* %2
ret i64 %68
}

LLVM IR (-O2):
@.str = [2 x i8] c"M\00"
@.str.1 = [2 x i8] c"L\00"
@.str.2 = [2 x i8] c"K\00"
@.str.3 = [2 x i8] c"I\00"
@.str.4 = [2 x i8] c"H\00"
@.str.5 = [4 x i8] c"PST\00"
@.str.6 = [2 x i8] c"G\00"
@.str.7 = [4 x i8] c"MST\00"
@.str.8 = [4 x i8] c"PDT\00"
@.str.9 = [2 x i8] c"F\00"
@.str.10 = [4 x i8] c"CST\00"
@.str.11 = [4 x i8] c"MDT\00"
@.str.12 = [2 x i8] c"E\00"
@.str.13 = [4 x i8] c"EST\00"
@.str.14 = [4 x i8] c"CDT\00"
@.str.15 = [2 x i8] c"D\00"
@.str.16 = [4 x i8] c"EDT\00"
@.str.17 = [2 x i8] c"C\00"
@.str.18 = [2 x i8] c"B\00"
@.str.19 = [2 x i8] c"A\00"
@.str.20 = [2 x i8] c"Z\00"
@.str.21 = [3 x i8] c"UT\00"
@.str.22 = [4 x i8] c"GMT\00"
@.str.23 = [2 x i8] c"N\00"
@.str.24 = [2 x i8] c"O\00"
@.str.25 = [2 x i8] c"P\00"
@.str.26 = [2 x i8] c"Q\00"
@.str.27 = [2 x i8] c"R\00"
@.str.28 = [2 x i8] c"S\00"
@.str.29 = [2 x i8] c"T\00"
@.str.30 = [2 x i8] c"U\00"
@.str.31 = [2 x i8] c"V\00"
@.str.32 = [2 x i8] c"W\00"
@.str.33 = [2 x i8] c"X\00"
@.str.34 = [2 x i8] c"Y\00"
@__const.parse_timezone.rfc822_timezones = [26 x [4 x i8*]] [[4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i32 0, i32 0), i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i32 0, i32 0), i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i32 0, i32 0), i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i32 0, i32 0), i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i32 0, i32 0), i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.26, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.27, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.28, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.29, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.30, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.31, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.32, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.33, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.34, i32 0, i32 0), i8* null, i8* null, i8* null], [4 x i8*] zeroinitializer]
define i64 @parse_timezone(i8* %0) {
%2 = load i8, i8* %0
switch i8 %2, label %6 [
i8 43, label %3
i8 45, label %3
]
3: ; preds = %1, %1
%4 = tail call i32 @strlen(i8* %0)
%5 = icmp eq i32 %4, 5
br i1 %5, label %7, label %6
6: ; preds = %1, %3
br label %14
7: ; preds = %3
%8 = tail call i64 @atoi(i8* %0)
%9 = sdiv i64 %8, 100
%10 = mul nsw i64 %9, 60
%11 = srem i64 %8, 100
%12 = add nsw i64 %10, %11
%13 = mul nsw i64 %12, 60
br label %35
14: ; preds = %6, %33
%15 = phi i64 [ %34, %33 ], [ 0, %6 ]
%16 = icmp eq i64 %15, 25
br i1 %16, label %33, label %17
17: ; preds = %14
%18 = getelementptr inbounds [26 x [4 x i8*]], [26 x [4 x i8*]]* @__const.parse_timezone.rfc822_timezones, i64 0, i64 %15, i64 0
%19 = load i8*, i8** %18
br label %24
20: ; preds = %24
%21 = getelementptr inbounds [26 x [4 x i8*]], [26 x [4 x i8*]]* @__const.parse_timezone.rfc822_timezones, i64 0, i64 %15, i64 %29
%22 = load i8*, i8** %21
%23 = icmp eq i8* %22, null
br i1 %23, label %33, label %24
24: ; preds = %17, %20
%25 = phi i8* [ %22, %20 ], [ %19, %17 ]
%26 = phi i64 [ %29, %20 ], [ 0, %17 ]
%27 = tail call i64 @strcmp(i8* %25, i8* %0)
%28 = icmp eq i64 %27, 0
%29 = add nuw nsw i64 %26, 1
br i1 %28, label %30, label %20
30: ; preds = %24
%31 = mul i64 %15, 3600
%32 = add i64 %31, -43200
br label %35
33: ; preds = %20, %14
%34 = add nuw nsw i64 %15, 1
br label %14
35: ; preds = %30, %7
%36 = phi i64 [ %13, %7 ], [ %32, %30 ]
ret i64 %36
}