#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*/ printf(char *, char *, char *);
void EC_ext(unsigned char *pds, char *prefix, char *suffix) {
  if ((pds[4]) == 98 &&
      ((int)((pds[0] << 16) + (pds[1] << 8) + pds[2])) >= 43) {
    switch ((((int)((pds[0] << 16) + (pds[1] << 8) + pds[2])) >= 43 ? (pds[42])
                                                                    : 0)) {
    case 10:
      printf("%sControl forecast%s", prefix, suffix);
      break;
    case 11:
      printf("%sPerturbed forecasts%s", prefix, suffix);
      break;
    case 14:
      printf("%sCluster means%s", prefix, suffix);
      break;
    case 15:
      printf("%sCluster std. dev.%s", prefix, suffix);
      break;
    case 16:
      printf("%sForecast probability%s", prefix, suffix);
      break;
    case 17:
      printf("%sEnsemble means%s", prefix, suffix);
      break;
    case 18:
      printf("%sEnsemble std. dev.%s", prefix, suffix);
      break;
    default:
      printf("%sECMWF type?%s", prefix, suffix);
      break;
    }
  }
  if ((pds[4]) == 98 &&
      ((int)((pds[0] << 16) + (pds[1] << 8) + pds[2])) >= 45) {
    switch ((((int)((pds[0] << 16) + (pds[1] << 8) + pds[2])) >= 45
                 ? (((1 - (int)((unsigned)(pds[43] & 0x80) >> 6)) *
                     (int)(((pds[43] & 0x7f) << 8) + pds[44])))
                 : 0)) {
    case 1035:
      printf("%sensemble forecasts%s", prefix, suffix);
      break;
    case 1043:
      printf("%smon mean%s", prefix, suffix);
      break;
    case 1070:
      printf("%smon (co)var%s", prefix, suffix);
      break;
    case 1071:
      printf("%smon mean from daily%s", prefix, suffix);
      break;
    default:
      printf("%sECMWF stream?%s", prefix, suffix);
      break;
    }
  }
}


x86 assembly (clang, -O0):
<EC_ext>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movzbl 0x4(%rax),%eax
cmp    $0x62,%eax
jne    1294 <EC_ext+0x184>
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
shl    $0x10,%eax
mov    -0x8(%rbp),%rcx
movzbl 0x1(%rcx),%ecx
shl    $0x8,%ecx
add    %ecx,%eax
mov    -0x8(%rbp),%rcx
movzbl 0x2(%rcx),%ecx
add    %ecx,%eax
cmp    $0x2b,%eax
jl     1294 <EC_ext+0x184>
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
shl    $0x10,%eax
mov    -0x8(%rbp),%rcx
movzbl 0x1(%rcx),%ecx
shl    $0x8,%ecx
add    %ecx,%eax
mov    -0x8(%rbp),%rcx
movzbl 0x2(%rcx),%ecx
add    %ecx,%eax
cmp    $0x2b,%eax
jl     1199 <EC_ext+0x89>
mov    -0x8(%rbp),%rax
movzbl 0x2a(%rax),%eax
mov    %eax,-0x1c(%rbp)
jmp    11a3 <EC_ext+0x93>
xor    %eax,%eax
mov    %eax,-0x1c(%rbp)
jmp    11a3 <EC_ext+0x93>
mov    -0x1c(%rbp),%eax
add    $0xfffffff6,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x8,%eax
ja     127b <EC_ext+0x16b>
mov    -0x28(%rbp),%rax
lea    0xe3d(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xedd(%rip),%rdi
call   1030 <printf@plt>
jmp    128f <EC_ext+0x17f>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
jmp    128f <EC_ext+0x17f>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
jmp    128f <EC_ext+0x17f>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
jmp    128f <EC_ext+0x17f>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
jmp    128f <EC_ext+0x17f>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
jmp    128f <EC_ext+0x17f>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xec8(%rip),%rdi
call   1030 <printf@plt>
jmp    128f <EC_ext+0x17f>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xec6(%rip),%rdi
call   1030 <printf@plt>
jmp    1294 <EC_ext+0x184>
mov    -0x8(%rbp),%rax
movzbl 0x4(%rax),%eax
cmp    $0x62,%eax
jne    13e6 <EC_ext+0x2d6>
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
shl    $0x10,%eax
mov    -0x8(%rbp),%rcx
movzbl 0x1(%rcx),%ecx
shl    $0x8,%ecx
add    %ecx,%eax
mov    -0x8(%rbp),%rcx
movzbl 0x2(%rcx),%ecx
add    %ecx,%eax
cmp    $0x2d,%eax
jl     13e6 <EC_ext+0x2d6>
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
shl    $0x10,%eax
mov    -0x8(%rbp),%rcx
movzbl 0x1(%rcx),%ecx
shl    $0x8,%ecx
add    %ecx,%eax
mov    -0x8(%rbp),%rcx
movzbl 0x2(%rcx),%ecx
add    %ecx,%eax
cmp    $0x2d,%eax
jl     1334 <EC_ext+0x224>
mov    -0x8(%rbp),%rax
movzbl 0x2b(%rax),%ecx
and    $0x80,%ecx
shr    $0x6,%ecx
mov    $0x1,%eax
sub    %ecx,%eax
mov    -0x8(%rbp),%rcx
movzbl 0x2b(%rcx),%ecx
and    $0x7f,%ecx
shl    $0x8,%ecx
mov    -0x8(%rbp),%rdx
movzbl 0x2c(%rdx),%edx
add    %edx,%ecx
imul   %ecx,%eax
mov    %eax,-0x2c(%rbp)
jmp    133e <EC_ext+0x22e>
xor    %eax,%eax
mov    %eax,-0x2c(%rbp)
jmp    133e <EC_ext+0x22e>
mov    -0x2c(%rbp),%eax
add    $0xfffffbf5,%eax
mov    %eax,%ecx
mov    %rcx,-0x38(%rbp)
sub    $0x24,%eax
ja     13cd <EC_ext+0x2bd>
mov    -0x38(%rbp),%rax
lea    0xcc4(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xde8(%rip),%rdi
call   1030 <printf@plt>
jmp    13e1 <EC_ext+0x2d1>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xde6(%rip),%rdi
call   1030 <printf@plt>
jmp    13e1 <EC_ext+0x2d1>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xdda(%rip),%rdi
call   1030 <printf@plt>
jmp    13e1 <EC_ext+0x2d1>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xdd1(%rip),%rdi
call   1030 <printf@plt>
jmp    13e1 <EC_ext+0x2d1>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xdd0(%rip),%rdi
call   1030 <printf@plt>
jmp    13e6 <EC_ext+0x2d6>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<EC_ext>:
push   %r15
push   %r14
push   %rbx
cmpb   $0x62,0x4(%rdi)
jne    11dd <EC_ext+0xcd>
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
movzbl (%rdi),%eax
shl    $0x10,%eax
movzbl 0x1(%rdi),%ecx
shl    $0x8,%ecx
or     %eax,%ecx
movzbl 0x2(%rdi),%eax
or     %ecx,%eax
cmp    $0x2b,%eax
jb     1171 <EC_ext+0x61>
mov    0x2a(%rbx),%al
add    $0xf6,%al
cmp    $0x8,%al
ja     115f <EC_ext+0x4f>
movsbq %al,%rax
lea    0xf3e(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
jmp    1166 <EC_ext+0x56>
lea    0xfea(%rip),%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1030 <printf@plt>
cmpb   $0x62,0x4(%rbx)
jne    11dd <EC_ext+0xcd>
movzbl (%rbx),%eax
shl    $0x10,%eax
movzbl 0x1(%rbx),%ecx
shl    $0x8,%ecx
or     %eax,%ecx
movzbl 0x2(%rbx),%eax
or     %ecx,%eax
cmp    $0x2d,%eax
jb     11dd <EC_ext+0xcd>
movzbl 0x2b(%rbx),%ecx
mov    %ecx,%eax
shr    $0x6,%eax
and    $0xfffffffe,%eax
mov    $0x1,%edx
sub    %eax,%edx
and    $0x7f,%ecx
shl    $0x8,%ecx
movzbl 0x2c(%rbx),%eax
or     %ecx,%eax
imul   %edx,%eax
add    $0xfffffbf5,%eax
cmp    $0x24,%eax
ja     11e3 <EC_ext+0xd3>
lea    0xf9c(%rip),%rdi
lea    0xe35(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf9c(%rip),%rdi
jmp    11fc <EC_ext+0xec>
pop    %rbx
pop    %r14
pop    %r15
ret
lea    0xfc2(%rip),%rdi
jmp    11fc <EC_ext+0xec>
lea    0xf91(%rip),%rdi
jmp    11fc <EC_ext+0xec>
lea    0xf98(%rip),%rdi
mov    %r15,%rsi
mov    %r14,%rdx
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"%sControl forecast%s\00"
@.str.1 = [24 x i8] c"%sPerturbed forecasts%s\00"
@.str.2 = [18 x i8] c"%sCluster means%s\00"
@.str.3 = [22 x i8] c"%sCluster std. dev.%s\00"
@.str.4 = [25 x i8] c"%sForecast probability%s\00"
@.str.5 = [19 x i8] c"%sEnsemble means%s\00"
@.str.6 = [23 x i8] c"%sEnsemble std. dev.%s\00"
@.str.7 = [16 x i8] c"%sECMWF type?%s\00"
@.str.8 = [23 x i8] c"%sensemble forecasts%s\00"
@.str.9 = [13 x i8] c"%smon mean%s\00"
@.str.10 = [16 x i8] c"%smon (co)var%s\00"
@.str.11 = [24 x i8] c"%smon mean from daily%s\00"
@.str.12 = [18 x i8] c"%sECMWF stream?%s\00"
define void @EC_ext(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load i8*, i8** %4
%8 = getelementptr inbounds i8, i8* %7, i64 4
%9 = load i8, i8* %8
%10 = zext i8 %9 to i32
%11 = icmp eq i32 %10, 98
br i1 %11, label %12, label %89
12: ; preds = %3
%13 = load i8*, i8** %4
%14 = getelementptr inbounds i8, i8* %13, i64 0
%15 = load i8, i8* %14
%16 = zext i8 %15 to i32
%17 = shl i32 %16, 16
%18 = load i8*, i8** %4
%19 = getelementptr inbounds i8, i8* %18, i64 1
%20 = load i8, i8* %19
%21 = zext i8 %20 to i32
%22 = shl i32 %21, 8
%23 = add nsw i32 %17, %22
%24 = load i8*, i8** %4
%25 = getelementptr inbounds i8, i8* %24, i64 2
%26 = load i8, i8* %25
%27 = zext i8 %26 to i32
%28 = add nsw i32 %23, %27
%29 = icmp sge i32 %28, 43
br i1 %29, label %30, label %89
30: ; preds = %12
%31 = load i8*, i8** %4
%32 = getelementptr inbounds i8, i8* %31, i64 0
%33 = load i8, i8* %32
%34 = zext i8 %33 to i32
%35 = shl i32 %34, 16
%36 = load i8*, i8** %4
%37 = getelementptr inbounds i8, i8* %36, i64 1
%38 = load i8, i8* %37
%39 = zext i8 %38 to i32
%40 = shl i32 %39, 8
%41 = add nsw i32 %35, %40
%42 = load i8*, i8** %4
%43 = getelementptr inbounds i8, i8* %42, i64 2
%44 = load i8, i8* %43
%45 = zext i8 %44 to i32
%46 = add nsw i32 %41, %45
%47 = icmp sge i32 %46, 43
br i1 %47, label %48, label %53
48: ; preds = %30
%49 = load i8*, i8** %4
%50 = getelementptr inbounds i8, i8* %49, i64 42
%51 = load i8, i8* %50
%52 = zext i8 %51 to i32
br label %54
53: ; preds = %30
br label %54
54: ; preds = %53, %48
%55 = phi i32 [ %52, %48 ], [ 0, %53 ]
switch i32 %55, label %84 [
i32 10, label %56
i32 11, label %60
i32 14, label %64
i32 15, label %68
i32 16, label %72
i32 17, label %76
i32 18, label %80
]
56: ; preds = %54
%57 = load i8*, i8** %5
%58 = load i8*, i8** %6
%59 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %57, i8* %58)
br label %88
60: ; preds = %54
%61 = load i8*, i8** %5
%62 = load i8*, i8** %6
%63 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %61, i8* %62)
br label %88
64: ; preds = %54
%65 = load i8*, i8** %5
%66 = load i8*, i8** %6
%67 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i8* %65, i8* %66)
br label %88
68: ; preds = %54
%69 = load i8*, i8** %5
%70 = load i8*, i8** %6
%71 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* %69, i8* %70)
br label %88
72: ; preds = %54
%73 = load i8*, i8** %5
%74 = load i8*, i8** %6
%75 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i8* %73, i8* %74)
br label %88
76: ; preds = %54
%77 = load i8*, i8** %5
%78 = load i8*, i8** %6
%79 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i8* %77, i8* %78)
br label %88
80: ; preds = %54
%81 = load i8*, i8** %5
%82 = load i8*, i8** %6
%83 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* %81, i8* %82)
br label %88
84: ; preds = %54
%85 = load i8*, i8** %5
%86 = load i8*, i8** %6
%87 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i8* %85, i8* %86)
br label %88
88: ; preds = %84, %80, %76, %72, %68, %64, %60, %56
br label %89
89: ; preds = %88, %12, %3
%90 = load i8*, i8** %4
%91 = getelementptr inbounds i8, i8* %90, i64 4
%92 = load i8, i8* %91
%93 = zext i8 %92 to i32
%94 = icmp eq i32 %93, 98
br i1 %94, label %95, label %175
95: ; preds = %89
%96 = load i8*, i8** %4
%97 = getelementptr inbounds i8, i8* %96, i64 0
%98 = load i8, i8* %97
%99 = zext i8 %98 to i32
%100 = shl i32 %99, 16
%101 = load i8*, i8** %4
%102 = getelementptr inbounds i8, i8* %101, i64 1
%103 = load i8, i8* %102
%104 = zext i8 %103 to i32
%105 = shl i32 %104, 8
%106 = add nsw i32 %100, %105
%107 = load i8*, i8** %4
%108 = getelementptr inbounds i8, i8* %107, i64 2
%109 = load i8, i8* %108
%110 = zext i8 %109 to i32
%111 = add nsw i32 %106, %110
%112 = icmp sge i32 %111, 45
br i1 %112, label %113, label %175
113: ; preds = %95
%114 = load i8*, i8** %4
%115 = getelementptr inbounds i8, i8* %114, i64 0
%116 = load i8, i8* %115
%117 = zext i8 %116 to i32
%118 = shl i32 %117, 16
%119 = load i8*, i8** %4
%120 = getelementptr inbounds i8, i8* %119, i64 1
%121 = load i8, i8* %120
%122 = zext i8 %121 to i32
%123 = shl i32 %122, 8
%124 = add nsw i32 %118, %123
%125 = load i8*, i8** %4
%126 = getelementptr inbounds i8, i8* %125, i64 2
%127 = load i8, i8* %126
%128 = zext i8 %127 to i32
%129 = add nsw i32 %124, %128
%130 = icmp sge i32 %129, 45
br i1 %130, label %131, label %151
131: ; preds = %113
%132 = load i8*, i8** %4
%133 = getelementptr inbounds i8, i8* %132, i64 43
%134 = load i8, i8* %133
%135 = zext i8 %134 to i32
%136 = and i32 %135, 128
%137 = lshr i32 %136, 6
%138 = sub nsw i32 1, %137
%139 = load i8*, i8** %4
%140 = getelementptr inbounds i8, i8* %139, i64 43
%141 = load i8, i8* %140
%142 = zext i8 %141 to i32
%143 = and i32 %142, 127
%144 = shl i32 %143, 8
%145 = load i8*, i8** %4
%146 = getelementptr inbounds i8, i8* %145, i64 44
%147 = load i8, i8* %146
%148 = zext i8 %147 to i32
%149 = add nsw i32 %144, %148
%150 = mul nsw i32 %138, %149
br label %152
151: ; preds = %113
br label %152
152: ; preds = %151, %131
%153 = phi i32 [ %150, %131 ], [ 0, %151 ]
switch i32 %153, label %170 [
i32 1035, label %154
i32 1043, label %158
i32 1070, label %162
i32 1071, label %166
]
154: ; preds = %152
%155 = load i8*, i8** %5
%156 = load i8*, i8** %6
%157 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i8* %155, i8* %156)
br label %174
158: ; preds = %152
%159 = load i8*, i8** %5
%160 = load i8*, i8** %6
%161 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i8* %159, i8* %160)
br label %174
162: ; preds = %152
%163 = load i8*, i8** %5
%164 = load i8*, i8** %6
%165 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i8* %163, i8* %164)
br label %174
166: ; preds = %152
%167 = load i8*, i8** %5
%168 = load i8*, i8** %6
%169 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i8* %167, i8* %168)
br label %174
170: ; preds = %152
%171 = load i8*, i8** %5
%172 = load i8*, i8** %6
%173 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0), i8* %171, i8* %172)
br label %174
174: ; preds = %170, %166, %162, %158, %154
br label %175
175: ; preds = %174, %95, %89
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"%sControl forecast%s\00"
@.str.1 = [24 x i8] c"%sPerturbed forecasts%s\00"
@.str.2 = [18 x i8] c"%sCluster means%s\00"
@.str.3 = [22 x i8] c"%sCluster std. dev.%s\00"
@.str.4 = [25 x i8] c"%sForecast probability%s\00"
@.str.5 = [19 x i8] c"%sEnsemble means%s\00"
@.str.6 = [23 x i8] c"%sEnsemble std. dev.%s\00"
@.str.7 = [16 x i8] c"%sECMWF type?%s\00"
@.str.8 = [23 x i8] c"%sensemble forecasts%s\00"
@.str.9 = [13 x i8] c"%smon mean%s\00"
@.str.10 = [16 x i8] c"%smon (co)var%s\00"
@.str.11 = [24 x i8] c"%smon mean from daily%s\00"
@.str.12 = [18 x i8] c"%sECMWF stream?%s\00"
@reltable.EC_ext = [9 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str to i64), i64 ptrtoint ([9 x i32]* @reltable.EC_ext to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str.1 to i64), i64 ptrtoint ([9 x i32]* @reltable.EC_ext to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.7 to i64), i64 ptrtoint ([9 x i32]* @reltable.EC_ext to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.7 to i64), i64 ptrtoint ([9 x i32]* @reltable.EC_ext to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @.str.2 to i64), i64 ptrtoint ([9 x i32]* @reltable.EC_ext to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.3 to i64), i64 ptrtoint ([9 x i32]* @reltable.EC_ext to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([25 x i8]* @.str.4 to i64), i64 ptrtoint ([9 x i32]* @reltable.EC_ext to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @.str.5 to i64), i64 ptrtoint ([9 x i32]* @reltable.EC_ext to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @.str.6 to i64), i64 ptrtoint ([9 x i32]* @reltable.EC_ext to i64)) to i32)]
define void @EC_ext(i8* nocapture %0, i8* %1, i8* %2) {
%4 = getelementptr inbounds i8, i8* %0, i64 4
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 98
br i1 %6, label %7, label %69
7: ; preds = %3
%8 = load i8, i8* %0
%9 = zext i8 %8 to i32
%10 = shl nuw nsw i32 %9, 16
%11 = getelementptr inbounds i8, i8* %0, i64 1
%12 = load i8, i8* %11
%13 = zext i8 %12 to i32
%14 = shl nuw nsw i32 %13, 8
%15 = or i32 %14, %10
%16 = getelementptr inbounds i8, i8* %0, i64 2
%17 = load i8, i8* %16
%18 = zext i8 %17 to i32
%19 = or i32 %15, %18
%20 = icmp ugt i32 %19, 42
br i1 %20, label %21, label %33
21: ; preds = %7
%22 = getelementptr inbounds i8, i8* %0, i64 42
%23 = load i8, i8* %22
%24 = add i8 %23, -10
%25 = icmp ult i8 %24, 9
br i1 %25, label %26, label %30
26: ; preds = %21
%27 = sext i8 %24 to i64
%28 = shl i64 %27, 2
%29 = call i8* @llvm.load.relative.i64(i8* bitcast ([9 x i32]* @reltable.EC_ext to i8*), i64 %28)
br label %30
30: ; preds = %21, %26
%31 = phi i8* [ %29, %26 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), %21 ]
%32 = tail call i32 @printf(i8* %31, i8* %1, i8* %2)
br label %33
33: ; preds = %30, %7
%34 = load i8, i8* %4
%35 = icmp eq i8 %34, 98
br i1 %35, label %36, label %69
36: ; preds = %33
%37 = load i8, i8* %0
%38 = zext i8 %37 to i32
%39 = shl nuw nsw i32 %38, 16
%40 = load i8, i8* %11
%41 = zext i8 %40 to i32
%42 = shl nuw nsw i32 %41, 8
%43 = or i32 %42, %39
%44 = load i8, i8* %16
%45 = zext i8 %44 to i32
%46 = or i32 %43, %45
%47 = icmp ugt i32 %46, 44
br i1 %47, label %48, label %69
48: ; preds = %36
%49 = getelementptr inbounds i8, i8* %0, i64 43
%50 = load i8, i8* %49
%51 = zext i8 %50 to i32
%52 = lshr i32 %51, 6
%53 = and i32 %52, 2
%54 = sub nsw i32 1, %53
%55 = shl nuw nsw i32 %51, 8
%56 = and i32 %55, 32512
%57 = getelementptr inbounds i8, i8* %0, i64 44
%58 = load i8, i8* %57
%59 = zext i8 %58 to i32
%60 = or i32 %56, %59
%61 = mul nsw i32 %54, %60
switch i32 %61, label %65 [
i32 1035, label %66
i32 1043, label %62
i32 1070, label %63
i32 1071, label %64
]
62: ; preds = %48
br label %66
63: ; preds = %48
br label %66
64: ; preds = %48
br label %66
65: ; preds = %48
br label %66
66: ; preds = %48, %65, %64, %63, %62
%67 = phi i8* [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), %62 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), %63 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), %64 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0), %65 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), %48 ]
%68 = tail call i32 @printf(i8* %67, i8* %1, i8* %2)
br label %69
69: ; preds = %66, %3, %36, %33
ret void
}