void CommonMain_1_D2_13_15(const unsigned char *datain,
                           unsigned char *dataout) {
  const unsigned char Tab3[88] = {
      0x1B, 0x12, 0x12, 0x0C, 0x12, 0x0C, 0x0C, 0x08, 0x09, 0x09, 0x06,
      0x06, 0x06, 0x06, 0x04, 0x04, 0x08, 0x04, 0x04, 0x02, 0x04, 0x02,
      0x02, 0x01, 0x09, 0x06, 0x09, 0x06, 0x06, 0x04, 0x06, 0x04, 0x03,
      0x03, 0x03, 0x03, 0x02, 0x02, 0x02, 0x02, 0x04, 0x04, 0x02, 0x02,
      0x02, 0x02, 0x01, 0x01, 0x09, 0x06, 0x06, 0x04, 0x09, 0x06, 0x06,
      0x04, 0x03, 0x03, 0x02, 0x02, 0x03, 0x03, 0x02, 0x02, 0x04, 0x02,
      0x04, 0x02, 0x02, 0x01, 0x02, 0x01, 0x03, 0x02, 0x03, 0x02, 0x03,
      0x02, 0x03, 0x02, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01};
  int i1, i2;
  unsigned long bb;
  for (i1 = 0; i1 < 11; i1++) {
    bb = 0;
    for (i2 = 0; i2 < 8; i2++) {
      bb += (Tab3[(i1 * 8) + i2] * datain[i2]);
    }
    dataout[i1] = (bb & 0xFF);
  }
}


x86 assembly (clang, -O0):
<CommonMain_1_D2_13_15>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x70(%rbp),%rdi
lea    0xed2(%rip),%rsi
mov    $0x58,%edx
call   1030 <memcpy@plt>
movl   $0x0,-0x74(%rbp)
cmpl   $0xb,-0x74(%rbp)
jge    11be <CommonMain_1_D2_13_15+0xae>
movq   $0x0,-0x80(%rbp)
movl   $0x0,-0x78(%rbp)
cmpl   $0x8,-0x78(%rbp)
jge    1199 <CommonMain_1_D2_13_15+0x89>
mov    -0x74(%rbp),%eax
shl    $0x3,%eax
add    -0x78(%rbp),%eax
cltq
movzbl -0x70(%rbp,%rax,1),%eax
mov    -0x8(%rbp),%rcx
movslq -0x78(%rbp),%rdx
movzbl (%rcx,%rdx,1),%ecx
imul   %ecx,%eax
cltq
add    -0x80(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
jmp    1158 <CommonMain_1_D2_13_15+0x48>
mov    -0x80(%rbp),%rax
and    $0xff,%rax
mov    %al,%dl
mov    -0x10(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    113f <CommonMain_1_D2_13_15+0x2f>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CommonMain_1_D2_13_15>:
xor    %ecx,%ecx
lea    0xef7(%rip),%r10
nopl   0x0(%rax)
movzbl (%rdi),%eax
movzbl 0x1(%rdi),%edx
mulb   (%r10,%rcx,8)
mov    %eax,%r8d
mov    %edx,%eax
mulb   0x1(%r10,%rcx,8)
mov    %eax,%r9d
add    %r8b,%r9b
movzbl 0x2(%rdi),%eax
mulb   0x2(%r10,%rcx,8)
mov    %eax,%edx
add    %r9b,%dl
movzbl 0x3(%rdi),%eax
mulb   0x3(%r10,%rcx,8)
mov    %eax,%r8d
add    %dl,%r8b
movzbl 0x4(%rdi),%eax
mulb   0x4(%r10,%rcx,8)
mov    %eax,%edx
add    %r8b,%dl
movzbl 0x5(%rdi),%eax
mulb   0x5(%r10,%rcx,8)
mov    %eax,%r8d
add    %dl,%r8b
movzbl 0x6(%rdi),%eax
mulb   0x6(%r10,%rcx,8)
mov    %eax,%edx
add    %r8b,%dl
movzbl 0x7(%rdi),%eax
mulb   0x7(%r10,%rcx,8)
add    %dl,%al
mov    %al,(%rsi,%rcx,1)
add    $0x1,%rcx
cmp    $0xb,%rcx
jne    1110 <CommonMain_1_D2_13_15+0x10>
ret

LLVM IR (-O0):
@__const.CommonMain_1_D2_13_15.Tab3 = [88 x i8] c"\1B\12\12\0C\12\0C\0C\08\09\09\06\06\06\06\04\04\08\04\04\02\04\02\02\01\09\06\09\06\06\04\06\04\03\03\03\03\02\02\02\02\04\04\02\02\02\02\01\01\09\06\06\04\09\06\06\04\03\03\02\02\03\03\02\02\04\02\04\02\02\01\02\01\03\02\03\02\03\02\03\02\01\01\01\01\01\01\01\01"
define void @CommonMain_1_D2_13_15(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca [88 x i8]
%6 = alloca i32
%7 = alloca i32
%8 = alloca i64
store i8* %0, i8** %3
store i8* %1, i8** %4
%9 = bitcast [88 x i8]* %5 to i8*
store i32 0, i32* %6
br label %10
10: ; preds = %47, %2
%11 = load i32, i32* %6
%12 = icmp slt i32 %11, 11
br i1 %12, label %13, label %50
13: ; preds = %10
store i64 0, i64* %8
store i32 0, i32* %7
br label %14
14: ; preds = %36, %13
%15 = load i32, i32* %7
%16 = icmp slt i32 %15, 8
br i1 %16, label %17, label %39
17: ; preds = %14
%18 = load i32, i32* %6
%19 = mul nsw i32 %18, 8
%20 = load i32, i32* %7
%21 = add nsw i32 %19, %20
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [88 x i8], [88 x i8]* %5, i64 0, i64 %22
%24 = load i8, i8* %23
%25 = zext i8 %24 to i32
%26 = load i8*, i8** %3
%27 = load i32, i32* %7
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, i8* %26, i64 %28
%30 = load i8, i8* %29
%31 = zext i8 %30 to i32
%32 = mul nsw i32 %25, %31
%33 = sext i32 %32 to i64
%34 = load i64, i64* %8
%35 = add i64 %34, %33
store i64 %35, i64* %8
br label %36
36: ; preds = %17
%37 = load i32, i32* %7
%38 = add nsw i32 %37, 1
store i32 %38, i32* %7
br label %14
39: ; preds = %14
%40 = load i64, i64* %8
%41 = and i64 %40, 255
%42 = trunc i64 %41 to i8
%43 = load i8*, i8** %4
%44 = load i32, i32* %6
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, i8* %43, i64 %45
store i8 %42, i8* %46
br label %47
47: ; preds = %39
%48 = load i32, i32* %6
%49 = add nsw i32 %48, 1
store i32 %49, i32* %6
br label %10
50: ; preds = %10
ret void
}

LLVM IR (-O2):
@__const.CommonMain_1_D2_13_15.Tab3 = [88 x i8] c"\1B\12\12\0C\12\0C\0C\08\09\09\06\06\06\06\04\04\08\04\04\02\04\02\02\01\09\06\09\06\06\04\06\04\03\03\03\03\02\02\02\02\04\04\02\02\02\02\01\01\09\06\06\04\09\06\06\04\03\03\02\02\03\03\02\02\04\02\04\02\02\01\02\01\03\02\03\02\03\02\03\02\01\01\01\01\01\01\01\01"
define void @CommonMain_1_D2_13_15(i8* nocapture %0, i8* nocapture writeonly %1) {
%3 = getelementptr inbounds i8, i8* %0, i64 1
%4 = getelementptr inbounds i8, i8* %0, i64 2
%5 = getelementptr inbounds i8, i8* %0, i64 3
%6 = getelementptr inbounds i8, i8* %0, i64 4
%7 = getelementptr inbounds i8, i8* %0, i64 5
%8 = getelementptr inbounds i8, i8* %0, i64 6
%9 = getelementptr inbounds i8, i8* %0, i64 7
br label %10
10: ; preds = %2, %10
%11 = phi i64 [ 0, %2 ], [ %60, %10 ]
%12 = shl nsw i64 %11, 3
%13 = getelementptr inbounds [88 x i8], [88 x i8]* @__const.CommonMain_1_D2_13_15.Tab3, i64 0, i64 %12
%14 = load i8, i8* %13
%15 = load i8, i8* %0
%16 = mul i8 %15, %14
%17 = or i64 %12, 1
%18 = getelementptr inbounds [88 x i8], [88 x i8]* @__const.CommonMain_1_D2_13_15.Tab3, i64 0, i64 %17
%19 = load i8, i8* %18
%20 = load i8, i8* %3
%21 = mul i8 %20, %19
%22 = add i8 %21, %16
%23 = or i64 %12, 2
%24 = getelementptr inbounds [88 x i8], [88 x i8]* @__const.CommonMain_1_D2_13_15.Tab3, i64 0, i64 %23
%25 = load i8, i8* %24
%26 = load i8, i8* %4
%27 = mul i8 %26, %25
%28 = add i8 %27, %22
%29 = or i64 %12, 3
%30 = getelementptr inbounds [88 x i8], [88 x i8]* @__const.CommonMain_1_D2_13_15.Tab3, i64 0, i64 %29
%31 = load i8, i8* %30
%32 = load i8, i8* %5
%33 = mul i8 %32, %31
%34 = add i8 %33, %28
%35 = or i64 %12, 4
%36 = getelementptr inbounds [88 x i8], [88 x i8]* @__const.CommonMain_1_D2_13_15.Tab3, i64 0, i64 %35
%37 = load i8, i8* %36
%38 = load i8, i8* %6
%39 = mul i8 %38, %37
%40 = add i8 %39, %34
%41 = or i64 %12, 5
%42 = getelementptr inbounds [88 x i8], [88 x i8]* @__const.CommonMain_1_D2_13_15.Tab3, i64 0, i64 %41
%43 = load i8, i8* %42
%44 = load i8, i8* %7
%45 = mul i8 %44, %43
%46 = add i8 %45, %40
%47 = or i64 %12, 6
%48 = getelementptr inbounds [88 x i8], [88 x i8]* @__const.CommonMain_1_D2_13_15.Tab3, i64 0, i64 %47
%49 = load i8, i8* %48
%50 = load i8, i8* %8
%51 = mul i8 %50, %49
%52 = add i8 %51, %46
%53 = or i64 %12, 7
%54 = getelementptr inbounds [88 x i8], [88 x i8]* @__const.CommonMain_1_D2_13_15.Tab3, i64 0, i64 %53
%55 = load i8, i8* %54
%56 = load i8, i8* %9
%57 = mul i8 %56, %55
%58 = add i8 %57, %52
%59 = getelementptr inbounds i8, i8* %1, i64 %11
store i8 %58, i8* %59
%60 = add nuw nsw i64 %11, 1
%61 = icmp eq i64 %60, 11
br i1 %61, label %62, label %10
62: ; preds = %10
ret void
}