#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 */
typedef int uint8_t;
typedef int uint64_t;

/* Variables and functions */
int /*<<< orphan*/ otherT(int ***);
void computeTable(uint8_t T[][256][16], uint8_t H[]) {
  uint64_t zh = 0, zl = 0;
  uint64_t vh = ((uint64_t)H[0] << 56) ^ ((uint64_t)H[1] << 48) ^
                ((uint64_t)H[2] << 40) ^ ((uint64_t)H[3] << 32) ^
                ((uint64_t)H[4] << 24) ^ ((uint64_t)H[5] << 16) ^
                ((uint64_t)H[6] << 8) ^ ((uint64_t)H[7]);
  uint64_t vl = ((uint64_t)H[8] << 56) ^ ((uint64_t)H[9] << 48) ^
                ((uint64_t)H[10] << 40) ^ ((uint64_t)H[11] << 32) ^
                ((uint64_t)H[12] << 24) ^ ((uint64_t)H[13] << 16) ^
                ((uint64_t)H[14] << 8) ^ ((uint64_t)H[15]);
  uint8_t temph;
  uint64_t tempvh = vh;
  uint64_t tempvl = vl;
  int i = 0, j = 0;
  for (i = 0; i < 256; i++) {
    temph = (uint8_t)i;
    vh = tempvh;
    vl = tempvl;
    zh = zl = 0;
    for (j = 0; j < 8; j++) {
      if (0x80 & temph) {
        zh ^= vh;
        zl ^= vl;
      }
      if (vl & 0x1) {
        vl = vl >> 1;
        if (vh & 0x1) {
          vl ^= 0x8000000000000000;
        }
        vh = vh >> 1;
        vh ^= (0xe100000000000000);
      } else {
        vl = vl >> 1;
        if (vh & 0x1) {
          vl ^= 0x8000000000000000;
        }
        vh = vh >> 1;
      }
      temph = temph << 1;
    }
    for (j = 1; j <= 16 / 2; j++) {
      T[0][i][16 / 2 - j] = (uint8_t)zh;
      zh = zh >> 8;
      T[0][i][16 - j] = (uint8_t)zl;
      zl = zl >> 8;
    }
  }
  otherT(T);
}


x86 assembly (clang, -O0):
<computeTable>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    $0x38,%ecx
shl    %cl,%eax
mov    -0x10(%rbp),%rcx
mov    0x4(%rcx),%edx
mov    $0x30,%ecx
shl    %cl,%edx
mov    %edx,%ecx
xor    %ecx,%eax
mov    -0x10(%rbp),%rcx
mov    0x8(%rcx),%edx
mov    $0x28,%ecx
shl    %cl,%edx
mov    %edx,%ecx
xor    %ecx,%eax
mov    -0x10(%rbp),%rcx
mov    0xc(%rcx),%edx
mov    $0x20,%ecx
shl    %cl,%edx
mov    %edx,%ecx
xor    %ecx,%eax
mov    -0x10(%rbp),%rcx
mov    0x10(%rcx),%ecx
shl    $0x18,%ecx
xor    %ecx,%eax
mov    -0x10(%rbp),%rcx
mov    0x14(%rcx),%ecx
shl    $0x10,%ecx
xor    %ecx,%eax
mov    -0x10(%rbp),%rcx
mov    0x18(%rcx),%ecx
shl    $0x8,%ecx
xor    %ecx,%eax
mov    -0x10(%rbp),%rcx
xor    0x1c(%rcx),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%eax
mov    $0x38,%ecx
shl    %cl,%eax
mov    -0x10(%rbp),%rcx
mov    0x24(%rcx),%edx
mov    $0x30,%ecx
shl    %cl,%edx
mov    %edx,%ecx
xor    %ecx,%eax
mov    -0x10(%rbp),%rcx
mov    0x28(%rcx),%edx
mov    $0x28,%ecx
shl    %cl,%edx
mov    %edx,%ecx
xor    %ecx,%eax
mov    -0x10(%rbp),%rcx
mov    0x2c(%rcx),%edx
mov    $0x20,%ecx
shl    %cl,%edx
mov    %edx,%ecx
xor    %ecx,%eax
mov    -0x10(%rbp),%rcx
mov    0x30(%rcx),%ecx
shl    $0x18,%ecx
xor    %ecx,%eax
mov    -0x10(%rbp),%rcx
mov    0x34(%rcx),%ecx
shl    $0x10,%ecx
xor    %ecx,%eax
mov    -0x10(%rbp),%rcx
mov    0x38(%rcx),%ecx
shl    $0x8,%ecx
xor    %ecx,%eax
mov    -0x10(%rbp),%rcx
xor    0x3c(%rcx),%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x30(%rbp)
cmpl   $0x100,-0x30(%rbp)
jge    13c0 <computeTable+0x2b0>
mov    -0x30(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x28(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x20(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x8,-0x34(%rbp)
jge    133c <computeTable+0x22c>
mov    -0x24(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     1293 <computeTable+0x183>
mov    -0x1c(%rbp),%eax
xor    -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x20(%rbp),%eax
xor    -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x20(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     12f0 <computeTable+0x1e0>
mov    -0x20(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     12ce <computeTable+0x1be>
movslq -0x20(%rbp),%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x1c(%rbp)
movslq -0x1c(%rbp),%rax
movabs $0xe100000000000000,%rcx
xor    %rcx,%rax
mov    %eax,-0x1c(%rbp)
jmp    1325 <computeTable+0x215>
mov    -0x20(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     131c <computeTable+0x20c>
movslq -0x20(%rbp),%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x24(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1266 <computeTable+0x156>
movl   $0x1,-0x34(%rbp)
cmpl   $0x8,-0x34(%rbp)
jg     13ad <computeTable+0x29d>
mov    -0x14(%rbp),%edx
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
shl    $0x6,%rcx
add    %rcx,%rax
mov    $0x8,%ecx
sub    -0x34(%rbp),%ecx
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x14(%rbp),%eax
sar    $0x8,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edx
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
shl    $0x6,%rcx
add    %rcx,%rax
mov    $0x10,%ecx
sub    -0x34(%rbp),%ecx
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x18(%rbp),%eax
sar    $0x8,%eax
mov    %eax,-0x18(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1343 <computeTable+0x233>
jmp    13b2 <computeTable+0x2a2>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1232 <computeTable+0x122>
mov    -0x8(%rbp),%rdi
call   1030 <otherT@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<computeTable>:
push   %rbx
mov    %rdi,%rbx
mov    $0x4000,%edx
xor    %esi,%esi
call   1040 <memset@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <otherT@plt>

LLVM IR (-O0):
define void @computeTable([256 x [16 x i32]]* %0, i32* %1) {
%3 = alloca [256 x [16 x i32]]*
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store [256 x [16 x i32]]* %0, [256 x [16 x i32]]** %3
store i32* %1, i32** %4
store i32 0, i32* %5
store i32 0, i32* %6
%14 = load i32*, i32** %4
%15 = getelementptr inbounds i32, i32* %14, i64 0
%16 = load i32, i32* %15
%17 = shl i32 %16, 56
%18 = load i32*, i32** %4
%19 = getelementptr inbounds i32, i32* %18, i64 1
%20 = load i32, i32* %19
%21 = shl i32 %20, 48
%22 = xor i32 %17, %21
%23 = load i32*, i32** %4
%24 = getelementptr inbounds i32, i32* %23, i64 2
%25 = load i32, i32* %24
%26 = shl i32 %25, 40
%27 = xor i32 %22, %26
%28 = load i32*, i32** %4
%29 = getelementptr inbounds i32, i32* %28, i64 3
%30 = load i32, i32* %29
%31 = shl i32 %30, 32
%32 = xor i32 %27, %31
%33 = load i32*, i32** %4
%34 = getelementptr inbounds i32, i32* %33, i64 4
%35 = load i32, i32* %34
%36 = shl i32 %35, 24
%37 = xor i32 %32, %36
%38 = load i32*, i32** %4
%39 = getelementptr inbounds i32, i32* %38, i64 5
%40 = load i32, i32* %39
%41 = shl i32 %40, 16
%42 = xor i32 %37, %41
%43 = load i32*, i32** %4
%44 = getelementptr inbounds i32, i32* %43, i64 6
%45 = load i32, i32* %44
%46 = shl i32 %45, 8
%47 = xor i32 %42, %46
%48 = load i32*, i32** %4
%49 = getelementptr inbounds i32, i32* %48, i64 7
%50 = load i32, i32* %49
%51 = xor i32 %47, %50
store i32 %51, i32* %7
%52 = load i32*, i32** %4
%53 = getelementptr inbounds i32, i32* %52, i64 8
%54 = load i32, i32* %53
%55 = shl i32 %54, 56
%56 = load i32*, i32** %4
%57 = getelementptr inbounds i32, i32* %56, i64 9
%58 = load i32, i32* %57
%59 = shl i32 %58, 48
%60 = xor i32 %55, %59
%61 = load i32*, i32** %4
%62 = getelementptr inbounds i32, i32* %61, i64 10
%63 = load i32, i32* %62
%64 = shl i32 %63, 40
%65 = xor i32 %60, %64
%66 = load i32*, i32** %4
%67 = getelementptr inbounds i32, i32* %66, i64 11
%68 = load i32, i32* %67
%69 = shl i32 %68, 32
%70 = xor i32 %65, %69
%71 = load i32*, i32** %4
%72 = getelementptr inbounds i32, i32* %71, i64 12
%73 = load i32, i32* %72
%74 = shl i32 %73, 24
%75 = xor i32 %70, %74
%76 = load i32*, i32** %4
%77 = getelementptr inbounds i32, i32* %76, i64 13
%78 = load i32, i32* %77
%79 = shl i32 %78, 16
%80 = xor i32 %75, %79
%81 = load i32*, i32** %4
%82 = getelementptr inbounds i32, i32* %81, i64 14
%83 = load i32, i32* %82
%84 = shl i32 %83, 8
%85 = xor i32 %80, %84
%86 = load i32*, i32** %4
%87 = getelementptr inbounds i32, i32* %86, i64 15
%88 = load i32, i32* %87
%89 = xor i32 %85, %88
store i32 %89, i32* %8
%90 = load i32, i32* %7
store i32 %90, i32* %10
%91 = load i32, i32* %8
store i32 %91, i32* %11
store i32 0, i32* %12
store i32 0, i32* %13
store i32 0, i32* %12
br label %92
92: ; preds = %188, %2
%93 = load i32, i32* %12
%94 = icmp slt i32 %93, 256
br i1 %94, label %95, label %191
95: ; preds = %92
%96 = load i32, i32* %12
store i32 %96, i32* %9
%97 = load i32, i32* %10
store i32 %97, i32* %7
%98 = load i32, i32* %11
store i32 %98, i32* %8
store i32 0, i32* %6
store i32 0, i32* %5
store i32 0, i32* %13
br label %99
99: ; preds = %152, %95
%100 = load i32, i32* %13
%101 = icmp slt i32 %100, 8
br i1 %101, label %102, label %155
102: ; preds = %99
%103 = load i32, i32* %9
%104 = and i32 128, %103
%105 = icmp ne i32 %104, 0
br i1 %105, label %106, label %113
106: ; preds = %102
%107 = load i32, i32* %7
%108 = load i32, i32* %5
%109 = xor i32 %108, %107
store i32 %109, i32* %5
%110 = load i32, i32* %8
%111 = load i32, i32* %6
%112 = xor i32 %111, %110
store i32 %112, i32* %6
br label %113
113: ; preds = %106, %102
%114 = load i32, i32* %8
%115 = and i32 %114, 1
%116 = icmp ne i32 %115, 0
br i1 %116, label %117, label %135
117: ; preds = %113
%118 = load i32, i32* %8
%119 = ashr i32 %118, 1
store i32 %119, i32* %8
%120 = load i32, i32* %7
%121 = and i32 %120, 1
%122 = icmp ne i32 %121, 0
br i1 %122, label %123, label %128
123: ; preds = %117
%124 = load i32, i32* %8
%125 = sext i32 %124 to i64
%126 = xor i64 %125, -9223372036854775808
%127 = trunc i64 %126 to i32
store i32 %127, i32* %8
br label %128
128: ; preds = %123, %117
%129 = load i32, i32* %7
%130 = ashr i32 %129, 1
store i32 %130, i32* %7
%131 = load i32, i32* %7
%132 = sext i32 %131 to i64
%133 = xor i64 %132, -2233785415175766016
%134 = trunc i64 %133 to i32
store i32 %134, i32* %7
br label %149
135: ; preds = %113
%136 = load i32, i32* %8
%137 = ashr i32 %136, 1
store i32 %137, i32* %8
%138 = load i32, i32* %7
%139 = and i32 %138, 1
%140 = icmp ne i32 %139, 0
br i1 %140, label %141, label %146
141: ; preds = %135
%142 = load i32, i32* %8
%143 = sext i32 %142 to i64
%144 = xor i64 %143, -9223372036854775808
%145 = trunc i64 %144 to i32
store i32 %145, i32* %8
br label %146
146: ; preds = %141, %135
%147 = load i32, i32* %7
%148 = ashr i32 %147, 1
store i32 %148, i32* %7
br label %149
149: ; preds = %146, %128
%150 = load i32, i32* %9
%151 = shl i32 %150, 1
store i32 %151, i32* %9
br label %152
152: ; preds = %149
%153 = load i32, i32* %13
%154 = add nsw i32 %153, 1
store i32 %154, i32* %13
br label %99
155: ; preds = %99
store i32 1, i32* %13
br label %156
156: ; preds = %184, %155
%157 = load i32, i32* %13
%158 = icmp sle i32 %157, 8
br i1 %158, label %159, label %187
159: ; preds = %156
%160 = load i32, i32* %5
%161 = load [256 x [16 x i32]]*, [256 x [16 x i32]]** %3
%162 = getelementptr inbounds [256 x [16 x i32]], [256 x [16 x i32]]* %161, i64 0
%163 = load i32, i32* %12
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds [256 x [16 x i32]], [256 x [16 x i32]]* %162, i64 0, i64 %164
%166 = load i32, i32* %13
%167 = sub nsw i32 8, %166
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds [16 x i32], [16 x i32]* %165, i64 0, i64 %168
store i32 %160, i32* %169
%170 = load i32, i32* %5
%171 = ashr i32 %170, 8
store i32 %171, i32* %5
%172 = load i32, i32* %6
%173 = load [256 x [16 x i32]]*, [256 x [16 x i32]]** %3
%174 = getelementptr inbounds [256 x [16 x i32]], [256 x [16 x i32]]* %173, i64 0
%175 = load i32, i32* %12
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds [256 x [16 x i32]], [256 x [16 x i32]]* %174, i64 0, i64 %176
%178 = load i32, i32* %13
%179 = sub nsw i32 16, %178
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds [16 x i32], [16 x i32]* %177, i64 0, i64 %180
store i32 %172, i32* %181
%182 = load i32, i32* %6
%183 = ashr i32 %182, 8
store i32 %183, i32* %6
br label %184
184: ; preds = %159
%185 = load i32, i32* %13
%186 = add nsw i32 %185, 1
store i32 %186, i32* %13
br label %156
187: ; preds = %156
br label %188
188: ; preds = %187
%189 = load i32, i32* %12
%190 = add nsw i32 %189, 1
store i32 %190, i32* %12
br label %92
191: ; preds = %92
%192 = load [256 x [16 x i32]]*, [256 x [16 x i32]]** %3
%193 = bitcast [256 x [16 x i32]]* %192 to i32***
%194 = call i32 @otherT(i32*** %193)
ret void
}

LLVM IR (-O2):
define void @computeTable([256 x [16 x i32]]* %0, i32* nocapture readnone %1) {
%3 = bitcast [256 x [16 x i32]]* %0 to i8*
%4 = bitcast [256 x [16 x i32]]* %0 to i32***
%5 = tail call i32 @otherT(i32*** %4)
ret void
}