#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__ malloc(int);
int /*<<< orphan*/ strcat(char *, char *);
char *te_parseMiscellaneous(short *s, int size) {
  char *phoneticScript = (char *)malloc(100 * sizeof(char));
  int i = 0;
  char gap[] = " G3000 ";
  char *englishAlph[26] = {
      "7",  "b3",  "s3", "d3", "3",         "7f",     "j3",  "7ch",  "1y",
      "j7", "k3",  "7l", "7m", "7n",        "11",     "p3",  "kHy5", "2r",
      "7s", "tt3", "y5", "v3", "d1b l3 y5", "7 k 0s", "v1y", "3z 1d"};
  phoneticScript[0] = '\0';
  strcat(phoneticScript, " ");
  for (i = 0; i < size; i++) {
    if (s[i] >= 65 && s[i] <= 90) {
      strcat(phoneticScript, englishAlph[s[i] - 65]);
      strcat(phoneticScript, gap);
    } else {
      if (s[i] == 0x25) {
        strcat(phoneticScript, "s1 t1 m2 n1m");
        strcat(phoneticScript, gap);
      }
      if (s[i] == 0x24) {
        strcat(phoneticScript, "d12 ll1r");
        strcat(phoneticScript, gap);
      }
      if (s[i] == 0x3D) {
        strcat(phoneticScript, "s1 m1m");
        strcat(phoneticScript, gap);
      }
      if (s[i] == 0x40) {
        strcat(phoneticScript, "1tt");
        strcat(phoneticScript, gap);
      }
    }
  }
  return phoneticScript;
}


x86 assembly (clang, -O0):
<te_parseMiscellaneous>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    $0x64,%edi
call   1040 <malloc@plt>
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    0xea2(%rip),%rax
mov    %rax,-0x24(%rbp)
lea    -0x100(%rbp),%rdi
lea    0x2be0(%rip),%rsi
mov    $0xd0,%edx
call   1030 <memcpy@plt>
mov    -0x18(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x18(%rbp),%rdi
lea    0xe7a(%rip),%rsi
call   1050 <strcat@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12e2 <te_parseMiscellaneous+0x1b2>
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
cmp    $0x41,%eax
jl     1202 <te_parseMiscellaneous+0xd2>
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
cmp    $0x5a,%eax
jg     1202 <te_parseMiscellaneous+0xd2>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
sub    $0x41,%eax
cltq
mov    -0x100(%rbp,%rax,8),%rsi
ff
call   1050 <strcat@plt>
mov    -0x18(%rbp),%rdi
lea    -0x24(%rbp),%rsi
call   1050 <strcat@plt>
jmp    12cf <te_parseMiscellaneous+0x19f>
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
cmp    $0x25,%eax
jne    1234 <te_parseMiscellaneous+0x104>
mov    -0x18(%rbp),%rdi
lea    0xe3b(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%rdi
lea    -0x24(%rbp),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
cmp    $0x24,%eax
jne    1266 <te_parseMiscellaneous+0x136>
mov    -0x18(%rbp),%rdi
lea    0xe16(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%rdi
lea    -0x24(%rbp),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
cmp    $0x3d,%eax
jne    1298 <te_parseMiscellaneous+0x168>
mov    -0x18(%rbp),%rdi
lea    0xded(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%rdi
lea    -0x24(%rbp),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
cmp    $0x40,%eax
jne    12ca <te_parseMiscellaneous+0x19a>
mov    -0x18(%rbp),%rdi
lea    0xdc2(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x18(%rbp),%rdi
lea    -0x24(%rbp),%rsi
call   1050 <strcat@plt>
jmp    12cf <te_parseMiscellaneous+0x19f>
jmp    12d4 <te_parseMiscellaneous+0x1a4>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1198 <te_parseMiscellaneous+0x68>
mov    -0x18(%rbp),%rax
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<te_parseMiscellaneous>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%r14
mov    $0x64,%edi
call   1030 <malloc@plt>
mov    %rax,%rbx
movabs $0x20303030334720,%rax
mov    %rax,(%rsp)
movb   $0x0,(%rbx)
lea    0xf00(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcat@plt>
test   %ebp,%ebp
jle    124c <te_parseMiscellaneous+0x12c>
mov    %ebp,%r12d
xor    %r13d,%r13d
lea    0xf06(%rip),%rbp
mov    %rsp,%r15
jmp    11a0 <te_parseMiscellaneous+0x80>
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1040 <strcat@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1040 <strcat@plt>
add    $0x1,%r13
cmp    %r13,%r12
je     124c <te_parseMiscellaneous+0x12c>
movzwl (%r14,%r13,2),%eax
mov    %eax,%ecx
add    $0xffffffbf,%ecx
cmp    $0x19,%cx
ja     11c0 <te_parseMiscellaneous+0xa0>
movzwl %ax,%eax
add    $0xffffffbf,%eax
movslq 0x0(%rbp,%rax,4),%rsi
add    %rbp,%rsi
jmp    1180 <te_parseMiscellaneous+0x60>
cmp    $0x25,%ax
je     1200 <te_parseMiscellaneous+0xe0>
cmp    $0x24,%ax
je     1225 <te_parseMiscellaneous+0x105>
cmp    $0x3d,%ax
jne    11f1 <te_parseMiscellaneous+0xd1>
mov    %rbx,%rdi
lea    0xe91(%rip),%rsi
call   1040 <strcat@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1040 <strcat@plt>
movzwl (%r14,%r13,2),%eax
lea    0xe7c(%rip),%rsi
cmp    $0x40,%ax
je     1180 <te_parseMiscellaneous+0x60>
jmp    1193 <te_parseMiscellaneous+0x73>
mov    %rbx,%rdi
lea    0xe4d(%rip),%rsi
call   1040 <strcat@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1040 <strcat@plt>
movzwl (%r14,%r13,2),%eax
cmp    $0x24,%ax
jne    11cc <te_parseMiscellaneous+0xac>
mov    %rbx,%rdi
lea    0xe35(%rip),%rsi
call   1040 <strcat@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1040 <strcat@plt>
movzwl (%r14,%r13,2),%eax
cmp    $0x3d,%ax
je     11d2 <te_parseMiscellaneous+0xb2>
jmp    11f1 <te_parseMiscellaneous+0xd1>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.te_parseMiscellaneous.gap = [8 x i8] c" G3000 \00"
@.str = [2 x i8] c"7\00"
@.str.1 = [3 x i8] c"b3\00"
@.str.2 = [3 x i8] c"s3\00"
@.str.3 = [3 x i8] c"d3\00"
@.str.4 = [2 x i8] c"3\00"
@.str.5 = [3 x i8] c"7f\00"
@.str.6 = [3 x i8] c"j3\00"
@.str.7 = [4 x i8] c"7ch\00"
@.str.8 = [3 x i8] c"1y\00"
@.str.9 = [3 x i8] c"j7\00"
@.str.10 = [3 x i8] c"k3\00"
@.str.11 = [3 x i8] c"7l\00"
@.str.12 = [3 x i8] c"7m\00"
@.str.13 = [3 x i8] c"7n\00"
@.str.14 = [3 x i8] c"11\00"
@.str.15 = [3 x i8] c"p3\00"
@.str.16 = [5 x i8] c"kHy5\00"
@.str.17 = [3 x i8] c"2r\00"
@.str.18 = [3 x i8] c"7s\00"
@.str.19 = [4 x i8] c"tt3\00"
@.str.20 = [3 x i8] c"y5\00"
@.str.21 = [3 x i8] c"v3\00"
@.str.22 = [10 x i8] c"d1b l3 y5\00"
@.str.23 = [7 x i8] c"7 k 0s\00"
@.str.24 = [4 x i8] c"v1y\00"
@.str.25 = [6 x i8] c"3z 1d\00"
@__const.te_parseMiscellaneous.englishAlph = [26 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 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 ([3 x i8], [3 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 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 ([10 x i8], [10 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i32 0, i32 0)]
@.str.26 = [2 x i8] c" \00"
@.str.27 = [13 x i8] c"s1 t1 m2 n1m\00"
@.str.28 = [9 x i8] c"d12 ll1r\00"
@.str.29 = [7 x i8] c"s1 m1m\00"
@.str.30 = [4 x i8] c"1tt\00"
define i8* @te_parseMiscellaneous(i16* %0, i32 %1) {
%3 = alloca i16*
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
%7 = alloca [8 x i8]
%8 = alloca [26 x i8*]
store i16* %0, i16** %3
store i32 %1, i32* %4
%9 = call i64 @malloc(i32 100)
%10 = inttoptr i64 %9 to i8*
store i8* %10, i8** %5
store i32 0, i32* %6
%11 = bitcast [8 x i8]* %7 to i8*
%12 = bitcast [26 x i8*]* %8 to i8*
%13 = load i8*, i8** %5
%14 = getelementptr inbounds i8, i8* %13, i64 0
store i8 0, i8* %14
%15 = load i8*, i8** %5
%16 = call i32 @strcat(i8* %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.26, i64 0, i64 0))
store i32 0, i32* %6
br label %17
17: ; preds = %111, %2
%18 = load i32, i32* %6
%19 = load i32, i32* %4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %114
21: ; preds = %17
%22 = load i16*, i16** %3
%23 = load i32, i32* %6
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i16, i16* %22, i64 %24
%26 = load i16, i16* %25
%27 = sext i16 %26 to i32
%28 = icmp sge i32 %27, 65
br i1 %28, label %29, label %53
29: ; preds = %21
%30 = load i16*, i16** %3
%31 = load i32, i32* %6
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i16, i16* %30, i64 %32
%34 = load i16, i16* %33
%35 = sext i16 %34 to i32
%36 = icmp sle i32 %35, 90
br i1 %36, label %37, label %53
37: ; preds = %29
%38 = load i8*, i8** %5
%39 = load i16*, i16** %3
%40 = load i32, i32* %6
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i16, i16* %39, i64 %41
%43 = load i16, i16* %42
%44 = sext i16 %43 to i32
%45 = sub nsw i32 %44, 65
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [26 x i8*], [26 x i8*]* %8, i64 0, i64 %46
%48 = load i8*, i8** %47
%49 = call i32 @strcat(i8* %38, i8* %48)
%50 = load i8*, i8** %5
%51 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%52 = call i32 @strcat(i8* %50, i8* %51)
br label %110
53: ; preds = %29, %21
%54 = load i16*, i16** %3
%55 = load i32, i32* %6
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i16, i16* %54, i64 %56
%58 = load i16, i16* %57
%59 = sext i16 %58 to i32
%60 = icmp eq i32 %59, 37
br i1 %60, label %61, label %67
61: ; preds = %53
%62 = load i8*, i8** %5
%63 = call i32 @strcat(i8* %62, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.27, i64 0, i64 0))
%64 = load i8*, i8** %5
%65 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%66 = call i32 @strcat(i8* %64, i8* %65)
br label %67
67: ; preds = %61, %53
%68 = load i16*, i16** %3
%69 = load i32, i32* %6
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i16, i16* %68, i64 %70
%72 = load i16, i16* %71
%73 = sext i16 %72 to i32
%74 = icmp eq i32 %73, 36
br i1 %74, label %75, label %81
75: ; preds = %67
%76 = load i8*, i8** %5
%77 = call i32 @strcat(i8* %76, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.28, i64 0, i64 0))
%78 = load i8*, i8** %5
%79 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%80 = call i32 @strcat(i8* %78, i8* %79)
br label %81
81: ; preds = %75, %67
%82 = load i16*, i16** %3
%83 = load i32, i32* %6
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i16, i16* %82, i64 %84
%86 = load i16, i16* %85
%87 = sext i16 %86 to i32
%88 = icmp eq i32 %87, 61
br i1 %88, label %89, label %95
89: ; preds = %81
%90 = load i8*, i8** %5
%91 = call i32 @strcat(i8* %90, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.29, i64 0, i64 0))
%92 = load i8*, i8** %5
%93 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%94 = call i32 @strcat(i8* %92, i8* %93)
br label %95
95: ; preds = %89, %81
%96 = load i16*, i16** %3
%97 = load i32, i32* %6
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i16, i16* %96, i64 %98
%100 = load i16, i16* %99
%101 = sext i16 %100 to i32
%102 = icmp eq i32 %101, 64
br i1 %102, label %103, label %109
103: ; preds = %95
%104 = load i8*, i8** %5
%105 = call i32 @strcat(i8* %104, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.30, i64 0, i64 0))
%106 = load i8*, i8** %5
%107 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 0
%108 = call i32 @strcat(i8* %106, i8* %107)
br label %109
109: ; preds = %103, %95
br label %110
110: ; preds = %109, %37
br label %111
111: ; preds = %110
%112 = load i32, i32* %6
%113 = add nsw i32 %112, 1
store i32 %113, i32* %6
br label %17
114: ; preds = %17
%115 = load i8*, i8** %5
ret i8* %115
}

LLVM IR (-O2):
@.str = [2 x i8] c"7\00"
@.str.1 = [3 x i8] c"b3\00"
@.str.2 = [3 x i8] c"s3\00"
@.str.3 = [3 x i8] c"d3\00"
@.str.4 = [2 x i8] c"3\00"
@.str.5 = [3 x i8] c"7f\00"
@.str.6 = [3 x i8] c"j3\00"
@.str.7 = [4 x i8] c"7ch\00"
@.str.8 = [3 x i8] c"1y\00"
@.str.9 = [3 x i8] c"j7\00"
@.str.10 = [3 x i8] c"k3\00"
@.str.11 = [3 x i8] c"7l\00"
@.str.12 = [3 x i8] c"7m\00"
@.str.13 = [3 x i8] c"7n\00"
@.str.14 = [3 x i8] c"11\00"
@.str.15 = [3 x i8] c"p3\00"
@.str.16 = [5 x i8] c"kHy5\00"
@.str.17 = [3 x i8] c"2r\00"
@.str.18 = [3 x i8] c"7s\00"
@.str.19 = [4 x i8] c"tt3\00"
@.str.20 = [3 x i8] c"y5\00"
@.str.21 = [3 x i8] c"v3\00"
@.str.22 = [10 x i8] c"d1b l3 y5\00"
@.str.23 = [7 x i8] c"7 k 0s\00"
@.str.24 = [4 x i8] c"v1y\00"
@.str.25 = [6 x i8] c"3z 1d\00"
@reltable.te_parseMiscellaneous = [26 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.1 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.2 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.3 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.4 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.5 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.6 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.7 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.8 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.9 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.10 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.11 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.12 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.13 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.14 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.15 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.16 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.17 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.18 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.19 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.20 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.21 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.22 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.23 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.24 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.25 to i64), i64 ptrtoint ([26 x i32]* @reltable.te_parseMiscellaneous to i64)) to i32)]
@.str.26 = [2 x i8] c" \00"
@.str.27 = [13 x i8] c"s1 t1 m2 n1m\00"
@.str.28 = [9 x i8] c"d12 ll1r\00"
@.str.29 = [7 x i8] c"s1 m1m\00"
@.str.30 = [4 x i8] c"1tt\00"
define i8* @te_parseMiscellaneous(i16* nocapture %0, i32 %1) {
%3 = alloca i64
%4 = tail call i64 @malloc(i32 100)
%5 = inttoptr i64 %4 to i8*
%6 = bitcast i64* %3 to i8*
store i64 9060182779971360, i64* %3
store i8 0, i8* %5
%7 = tail call i32 @strcat(i8* %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.26, i64 0, i64 0))
%8 = icmp sgt i32 %1, 0
br i1 %8, label %9, label %53
9: ; preds = %2
%10 = zext i32 %1 to i64
br label %11
11: ; preds = %9, %50
%12 = phi i64 [ 0, %9 ], [ %51, %50 ]
%13 = getelementptr inbounds i16, i16* %0, i64 %12
%14 = load i16, i16* %13
%15 = add i16 %14, -65
%16 = icmp ult i16 %15, 26
br i1 %16, label %17, label %23
17: ; preds = %11
%18 = zext i16 %14 to i64
%19 = add nuw nsw i64 %18, 4294967231
%20 = and i64 %19, 4294967295
%21 = shl i64 %20, 2
%22 = call i8* @llvm.load.relative.i64(i8* bitcast ([26 x i32]* @reltable.te_parseMiscellaneous to i8*), i64 %21)
br label %46
23: ; preds = %11
%24 = icmp eq i16 %14, 37
br i1 %24, label %25, label %29
25: ; preds = %23
%26 = call i32 @strcat(i8* %5, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.27, i64 0, i64 0))
%27 = call i32 @strcat(i8* %5, i8* %6)
%28 = load i16, i16* %13
br label %29
29: ; preds = %25, %23
%30 = phi i16 [ %28, %25 ], [ %14, %23 ]
%31 = icmp eq i16 %30, 36
br i1 %31, label %32, label %36
32: ; preds = %29
%33 = call i32 @strcat(i8* %5, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.28, i64 0, i64 0))
%34 = call i32 @strcat(i8* %5, i8* %6)
%35 = load i16, i16* %13
br label %36
36: ; preds = %32, %29
%37 = phi i16 [ %35, %32 ], [ %30, %29 ]
%38 = icmp eq i16 %37, 61
br i1 %38, label %39, label %43
39: ; preds = %36
%40 = call i32 @strcat(i8* %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.29, i64 0, i64 0))
%41 = call i32 @strcat(i8* %5, i8* %6)
%42 = load i16, i16* %13
br label %43
43: ; preds = %39, %36
%44 = phi i16 [ %42, %39 ], [ %37, %36 ]
%45 = icmp eq i16 %44, 64
br i1 %45, label %46, label %50
46: ; preds = %43, %17
%47 = phi i8* [ %22, %17 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.30, i64 0, i64 0), %43 ]
%48 = call i32 @strcat(i8* %5, i8* %47)
%49 = call i32 @strcat(i8* %5, i8* %6)
br label %50
50: ; preds = %46, %43
%51 = add nuw nsw i64 %12, 1
%52 = icmp eq i64 %51, %10
br i1 %52, label %53, label %11
53: ; preds = %50, %2
ret i8* %5
}