#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 */
unsigned char add(unsigned char, unsigned char);
int /*<<< orphan*/ echelonform(unsigned char *, int, int);
unsigned char inv(unsigned char);
unsigned char mul(unsigned char, unsigned char);
int /*<<< orphan*/ printf(char *);
int decryption(unsigned char *sk, unsigned char *decrypttext,
               unsigned char *ciphertext, int ciphertextlen) {
  int i, j, k, ij = 0, eof = 0;
  unsigned char x[8 * 8 + 64], y[128], y1[128], y2[128], X[64];
  unsigned char coeff[8 * (8 + 8) * (8 * 8 + 64)];
  unsigned char TP, xn;
  if (ciphertextlen != 128)
    return (0);
  printf("************************************************* \n");
  printf("Start ABC decryption \n");
  printf("************************************************* \n");
  for (k = 0; k < 128; k++)
    y[k] = (unsigned char)ciphertext[k];
  for (k = 0; k < 8 * 8 + 64; k++)
    x[k] = (unsigned char)0;
  for (i = 0; i < 8 * (8 + 8) * (8 * 8 + 64); i++)
    coeff[i] = (unsigned char)0;
  unsigned char Sqrttable[256];
  for (i = 0; i < 256; i++) {
    Sqrttable[i] = mul(i, i);
  }
  k = 0;
  for (i = 0; i < 128; i++) {
    y1[i] = 0;
    for (j = 0; j < 128; j++) {
      y1[i] = add(y1[i], mul((unsigned char)sk[ij++], y[j]));
    }
  }
  for (k = 0; k < 8; k++) {
    for (i = 0; i < 8; i++) {
      for (j = 0; j < 8; j++) {
        coeff[(k * 8 + i) * (8 * 8 + 64) + k * 8 + j] = y1[j * 8 + i];
      }
    }
    for (i = 0; i < 8; i++) {
      for (j = 0; j < 8; j++) {
        coeff[8 * 8 * (8 * 8 + 64) + (k * 8 + i) * (8 * 8 + 64) + k * 8 + j] =
            y1[8 * 8 + j * 8 + i];
      }
    }
  }
  for (i = 0; i < 8 * 8; i++) {
    for (j = 8 * 8; j < (8 * 8 + 64); j++) {
      coeff[i * (8 * 8 + 64) + j] = (unsigned char)sk[ij++];
    }
  }
  for (i = 0; i < 8 * 8; i++) {
    for (j = 8 * 8; j < (8 * 8 + 64); j++) {
      coeff[8 * 8 * (8 * 8 + 64) + i * (8 * 8 + 64) + j] =
          (unsigned char)sk[ij++];
    }
  }
  echelonform(coeff, 8 * (8 + 8), 8 * 8 + 64);
  unsigned char WM[64];
  for (i = 0; i < 64 - 1; i++) {
    WM[i] = coeff[(i + 8 * 8) * (8 * 8 + 64) + (8 * 8 + 64 - 1)];
  }
  WM[64 - 1] = 1;
  for (k = 0; k < 128; k++) {
    TP = 0;
    for (i = 0; i < 64; i++) {
      for (j = i; j < 64; j++) {
        TP = add(TP, mul(sk[ij++], mul(WM[i], WM[j])));
      }
    }
    y2[k] = TP;
  }
  for (i = 0; i < 128; i++) {
    if (y2[i] != 0) {
      break;
    }
  }
  TP = mul(inv(y2[i]), y1[i]);
  for (i = 0; i < 256; i++) {
    if (Sqrttable[i] == TP) {
      xn = (unsigned char)(i);
    }
  }
  X[64 - 1] = xn;
  for (i = 0; i < 64 - 1; i++) {
    X[i] = mul(WM[i], X[64 - 1]);
  }
  for (i = 0; i < 64; i++) {
    decrypttext[i] = 0;
    for (j = 0; j < 64; j++) {
      decrypttext[i] = add(decrypttext[i], mul((unsigned char)sk[ij++], X[j]));
    }
  }
  return (1);
}


x86 assembly (clang, -O0):
<decryption>:
push   %rbp
mov    %rsp,%rbp
sub    $0x43e0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
cmpl   $0x80,-0x24(%rbp)
je     1191 <decryption+0x41>
movl   $0x0,-0x4(%rbp)
jmp    1830 <decryption+0x6e0>
lea    0xe68(%rip),%rdi
call   1040 <printf@plt>
lea    0xe90(%rip),%rdi
call   1040 <printf@plt>
lea    0xe50(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x30(%rbp)
cmpl   $0x80,-0x30(%rbp)
jge    11ed <decryption+0x9d>
mov    -0x20(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,1),%cl
movslq -0x30(%rbp),%rax
mov    %cl,-0x140(%rbp,%rax,1)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    11bc <decryption+0x6c>
movl   $0x0,-0x30(%rbp)
cmpl   $0x80,-0x30(%rbp)
jge    121b <decryption+0xcb>
movslq -0x30(%rbp),%rax
movb   $0x0,-0xc0(%rbp,%rax,1)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    11f4 <decryption+0xa4>
movl   $0x0,-0x28(%rbp)
cmpl   $0x4000,-0x28(%rbp)
jge    1249 <decryption+0xf9>
movslq -0x28(%rbp),%rax
movb   $0x0,-0x4280(%rbp,%rax,1)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1222 <decryption+0xd2>
movl   $0x0,-0x28(%rbp)
cmpl   $0x100,-0x28(%rbp)
jge    128b <decryption+0x13b>
mov    -0x28(%rbp),%eax
mov    %al,%cl
mov    -0x28(%rbp),%eax
movzbl %cl,%edi
movzbl %al,%esi
call   1060 <mul@plt>
mov    %al,%cl
movslq -0x28(%rbp),%rax
mov    %cl,-0x4390(%rbp,%rax,1)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1250 <decryption+0x100>
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x28(%rbp)
cmpl   $0x80,-0x28(%rbp)
jge    133f <decryption+0x1ef>
movslq -0x28(%rbp),%rax
movb   $0x0,-0x1c0(%rbp,%rax,1)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x80,-0x2c(%rbp)
jge    132c <decryption+0x1dc>
movslq -0x28(%rbp),%rax
mov    -0x1c0(%rbp,%rax,1),%al
mov    %al,-0x43d1(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x34(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%cl
movslq -0x2c(%rbp),%rax
movzbl %cl,%edi
movzbl -0x140(%rbp,%rax,1),%esi
ff
call   1060 <mul@plt>
mov    -0x43d1(%rbp),%cl
movzbl %cl,%edi
movzbl %al,%esi
call   1030 <add@plt>
mov    %al,%cl
movslq -0x28(%rbp),%rax
mov    %cl,-0x1c0(%rbp,%rax,1)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    12b9 <decryption+0x169>
jmp    1331 <decryption+0x1e1>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1299 <decryption+0x149>
movl   $0x0,-0x30(%rbp)
cmpl   $0x8,-0x30(%rbp)
jge    1455 <decryption+0x305>
movl   $0x0,-0x28(%rbp)
cmpl   $0x8,-0x28(%rbp)
jge    13c5 <decryption+0x275>
movl   $0x0,-0x2c(%rbp)
cmpl   $0x8,-0x2c(%rbp)
jge    13b2 <decryption+0x262>
mov    -0x2c(%rbp),%eax
shl    $0x3,%eax
add    -0x28(%rbp),%eax
cltq
mov    -0x1c0(%rbp,%rax,1),%cl
mov    -0x30(%rbp),%eax
shl    $0x3,%eax
add    -0x28(%rbp),%eax
shl    $0x7,%eax
mov    -0x30(%rbp),%edx
shl    $0x3,%edx
add    %edx,%eax
add    -0x2c(%rbp),%eax
cltq
mov    %cl,-0x4280(%rbp,%rax,1)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1368 <decryption+0x218>
jmp    13b7 <decryption+0x267>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1357 <decryption+0x207>
movl   $0x0,-0x28(%rbp)
cmpl   $0x8,-0x28(%rbp)
jge    1442 <decryption+0x2f2>
movl   $0x0,-0x2c(%rbp)
cmpl   $0x8,-0x2c(%rbp)
jge    142f <decryption+0x2df>
mov    -0x2c(%rbp),%eax
shl    $0x3,%eax
add    $0x40,%eax
add    -0x28(%rbp),%eax
cltq
mov    -0x1c0(%rbp,%rax,1),%cl
mov    -0x30(%rbp),%eax
shl    $0x3,%eax
add    -0x28(%rbp),%eax
shl    $0x7,%eax
add    $0x2000,%eax
mov    -0x30(%rbp),%edx
shl    $0x3,%edx
add    %edx,%eax
add    -0x2c(%rbp),%eax
cltq
mov    %cl,-0x4280(%rbp,%rax,1)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    13dd <decryption+0x28d>
jmp    1434 <decryption+0x2e4>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    13cc <decryption+0x27c>
jmp    1447 <decryption+0x2f7>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1346 <decryption+0x1f6>
movl   $0x0,-0x28(%rbp)
cmpl   $0x40,-0x28(%rbp)
jge    14c2 <decryption+0x372>
movl   $0x40,-0x2c(%rbp)
cmpl   $0x80,-0x2c(%rbp)
jge    14af <decryption+0x35f>
mov    -0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x34(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%cl
mov    -0x28(%rbp),%eax
shl    $0x7,%eax
add    -0x2c(%rbp),%eax
cltq
mov    %cl,-0x4280(%rbp,%rax,1)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    146d <decryption+0x31d>
jmp    14b4 <decryption+0x364>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    145c <decryption+0x30c>
movl   $0x0,-0x28(%rbp)
cmpl   $0x40,-0x28(%rbp)
jge    1534 <decryption+0x3e4>
movl   $0x40,-0x2c(%rbp)
cmpl   $0x80,-0x2c(%rbp)
jge    1521 <decryption+0x3d1>
mov    -0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x34(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%cl
mov    -0x28(%rbp),%eax
shl    $0x7,%eax
add    $0x2000,%eax
add    -0x2c(%rbp),%eax
cltq
mov    %cl,-0x4280(%rbp,%rax,1)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    14da <decryption+0x38a>
jmp    1526 <decryption+0x3d6>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    14c9 <decryption+0x379>
lea    -0x4280(%rbp),%rdi
mov    $0x80,%edx
mov    %edx,%esi
call   1070 <echelonform@plt>
movl   $0x0,-0x28(%rbp)
cmpl   $0x3f,-0x28(%rbp)
jge    1586 <decryption+0x436>
mov    -0x28(%rbp),%eax
add    $0x40,%eax
shl    $0x7,%eax
add    $0x7f,%eax
cltq
mov    -0x4280(%rbp,%rax,1),%cl
movslq -0x28(%rbp),%rax
mov    %cl,-0x43d0(%rbp,%rax,1)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    154e <decryption+0x3fe>
movb   $0x1,-0x4391(%rbp)
movl   $0x0,-0x30(%rbp)
cmpl   $0x80,-0x30(%rbp)
jge    1677 <decryption+0x527>
movb   $0x0,-0x4281(%rbp)
movl   $0x0,-0x28(%rbp)
cmpl   $0x40,-0x28(%rbp)
jge    1658 <decryption+0x508>
mov    -0x28(%rbp),%eax
mov    %eax,-0x2c(%rbp)
cmpl   $0x40,-0x2c(%rbp)
jge    1645 <decryption+0x4f5>
mov    -0x4281(%rbp),%al
mov    %al,-0x43d2(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x34(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x43d3(%rbp)
movslq -0x28(%rbp),%rax
mov    -0x43d0(%rbp,%rax,1),%cl
movslq -0x2c(%rbp),%rax
movzbl %cl,%edi
movzbl -0x43d0(%rbp,%rax,1),%esi
ff
call   1060 <mul@plt>
mov    -0x43d3(%rbp),%cl
movzbl %cl,%edi
movzbl %al,%esi
call   1060 <mul@plt>
mov    -0x43d2(%rbp),%cl
movzbl %cl,%edi
movzbl %al,%esi
call   1030 <add@plt>
mov    %al,-0x4281(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    15bf <decryption+0x46f>
jmp    164a <decryption+0x4fa>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    15af <decryption+0x45f>
mov    -0x4281(%rbp),%cl
movslq -0x30(%rbp),%rax
mov    %cl,-0x240(%rbp,%rax,1)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1594 <decryption+0x444>
movl   $0x0,-0x28(%rbp)
cmpl   $0x80,-0x28(%rbp)
jge    16b8 <decryption+0x568>
movslq -0x28(%rbp),%rax
movzbl -0x240(%rbp,%rax,1),%eax
ff
cmp    $0x0,%eax
je     16a5 <decryption+0x555>
jmp    16b8 <decryption+0x568>
jmp    16aa <decryption+0x55a>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    167e <decryption+0x52e>
movslq -0x28(%rbp),%rax
movzbl -0x240(%rbp,%rax,1),%edi
ff
call   1050 <inv@plt>
mov    %al,%cl
movslq -0x28(%rbp),%rax
movzbl %cl,%edi
movzbl -0x1c0(%rbp,%rax,1),%esi
ff
call   1060 <mul@plt>
mov    %al,-0x4281(%rbp)
movl   $0x0,-0x28(%rbp)
cmpl   $0x100,-0x28(%rbp)
jge    1730 <decryption+0x5e0>
movslq -0x28(%rbp),%rax
movzbl -0x4390(%rbp,%rax,1),%eax
ff
movzbl -0x4281(%rbp),%ecx
cmp    %ecx,%eax
jne    171d <decryption+0x5cd>
mov    -0x28(%rbp),%eax
mov    %al,-0x4282(%rbp)
jmp    1722 <decryption+0x5d2>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    16ec <decryption+0x59c>
mov    -0x4282(%rbp),%al
mov    %al,-0x241(%rbp)
movl   $0x0,-0x28(%rbp)
cmpl   $0x3f,-0x28(%rbp)
jge    1782 <decryption+0x632>
movslq -0x28(%rbp),%rax
mov    -0x43d0(%rbp,%rax,1),%al
movzbl %al,%edi
movzbl -0x241(%rbp),%esi
call   1060 <mul@plt>
mov    %al,%cl
movslq -0x28(%rbp),%rax
mov    %cl,-0x280(%rbp,%rax,1)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1743 <decryption+0x5f3>
movl   $0x0,-0x28(%rbp)
cmpl   $0x40,-0x28(%rbp)
jge    1829 <decryption+0x6d9>
mov    -0x18(%rbp),%rax
movslq -0x28(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x40,-0x2c(%rbp)
jge    1816 <decryption+0x6c6>
mov    -0x18(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x43d4(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x34(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%cl
movslq -0x2c(%rbp),%rax
movzbl %cl,%edi
movzbl -0x280(%rbp,%rax,1),%esi
ff
call   1060 <mul@plt>
mov    -0x43d4(%rbp),%cl
movzbl %cl,%edi
movzbl %al,%esi
call   1030 <add@plt>
mov    %al,%dl
mov    -0x18(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    17a6 <decryption+0x656>
jmp    181b <decryption+0x6cb>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1789 <decryption+0x639>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x43e0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<decryption>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x4328,%rsp
xor    %eax,%eax
cmp    $0x80,%ecx
jne    1795 <decryption+0x635>
mov    %rdx,%rbx
mov    %rdi,0x8(%rsp)
mov    %rsi,0x10(%rsp)
lea    0xe83(%rip),%rbp
mov    %rbp,%rdi
call   1040 <puts@plt>
lea    0xe5e(%rip),%rdi
call   1040 <puts@plt>
mov    %rbp,%rdi
call   1040 <puts@plt>
movups (%rbx),%xmm0
movups 0x10(%rbx),%xmm1
movups 0x20(%rbx),%xmm2
movups 0x30(%rbx),%xmm3
movaps %xmm0,0x120(%rsp)
movaps %xmm1,0x130(%rsp)
movaps %xmm2,0x140(%rsp)
movaps %xmm3,0x150(%rsp)
movups 0x40(%rbx),%xmm0
movaps %xmm0,0x160(%rsp)
movups 0x50(%rbx),%xmm0
movaps %xmm0,0x170(%rsp)
movups 0x60(%rbx),%xmm0
movaps %xmm0,0x180(%rsp)
movups 0x70(%rbx),%xmm0
movaps %xmm0,0x190(%rsp)
lea    0x320(%rsp),%rdi
xor    %ebx,%ebx
mov    $0x4000,%edx
xor    %esi,%esi
call   1050 <memset@plt>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movzbl %bl,%edi
mov    %edi,%esi
call   1070 <mul@plt>
mov    %al,0x220(%rsp,%rbx,1)
add    $0x1,%rbx
cmp    $0x100,%rbx
jne    1230 <decryption+0xd0>
xor    %r15d,%r15d
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r12,%r14
movslq %r14d,%r12
mov    0x8(%rsp),%rax
lea    (%rax,%r12,1),%r13
xor    %ebp,%ebp
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movzbl 0x0(%r13,%rbp,1),%edi
movzbl 0x120(%rsp,%rbp,1),%esi
call   1070 <mul@plt>
movzbl %al,%esi
movzbl %bl,%edi
call   1030 <add@plt>
mov    %eax,%ebx
add    $0x1,%rbp
cmp    $0x80,%rbp
jne    1280 <decryption+0x120>
mov    %bl,0x20(%rsp,%r15,1)
add    $0x1,%r15
add    %rbp,%r12
cmp    $0x80,%r15
jne    1260 <decryption+0x100>
lea    0x327(%rsp),%rax
lea    0x2327(%rsp),%rcx
movslq %r14d,%r14
add    %rbp,%r14
xor    %edx,%edx
nopw   0x0(%rax,%rax,1)
mov    $0xfffffffffffffff8,%rsi
mov    %rax,%rdi
nopw   0x0(%rax,%rax,1)
movzbl 0x28(%rsp,%rsi,1),%ebx
mov    %bl,-0x7(%rdi)
movzbl 0x30(%rsp,%rsi,1),%ebx
mov    %bl,-0x6(%rdi)
movzbl 0x38(%rsp,%rsi,1),%ebx
mov    %bl,-0x5(%rdi)
movzbl 0x40(%rsp,%rsi,1),%ebx
mov    %bl,-0x4(%rdi)
movzbl 0x48(%rsp,%rsi,1),%ebx
mov    %bl,-0x3(%rdi)
movzbl 0x50(%rsp,%rsi,1),%ebx
mov    %bl,-0x2(%rdi)
movzbl 0x58(%rsp,%rsi,1),%ebx
mov    %bl,-0x1(%rdi)
movzbl 0x60(%rsp,%rsi,1),%ebx
mov    %bl,(%rdi)
sub    $0xffffffffffffff80,%rdi
inc    %rsi
jne    12f0 <decryption+0x190>
mov    $0xfffffffffffffff8,%rsi
mov    %rcx,%rdi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzbl 0x68(%rsp,%rsi,1),%ebx
mov    %bl,-0x7(%rdi)
movzbl 0x70(%rsp,%rsi,1),%ebx
mov    %bl,-0x6(%rdi)
movzbl 0x78(%rsp,%rsi,1),%ebx
mov    %bl,-0x5(%rdi)
movzbl 0x80(%rsp,%rsi,1),%ebx
mov    %bl,-0x4(%rdi)
movzbl 0x88(%rsp,%rsi,1),%ebx
mov    %bl,-0x3(%rdi)
movzbl 0x90(%rsp,%rsi,1),%ebx
mov    %bl,-0x2(%rdi)
movzbl 0x98(%rsp,%rsi,1),%ebx
mov    %bl,-0x1(%rdi)
movzbl 0xa0(%rsp,%rsi,1),%ebx
mov    %bl,(%rdi)
sub    $0xffffffffffffff80,%rdi
inc    %rsi
jne    1350 <decryption+0x1f0>
add    $0x1,%rdx
add    $0x408,%rax
add    $0x408,%rcx
cmp    $0x8,%rdx
jne    12e0 <decryption+0x180>
movabs $0x4000000000,%rax
lea    0x3e0(%rsp),%rcx
xor    %edx,%edx
mov    0x8(%rsp),%rbp
nopl   0x0(%rax,%rax,1)
movslq %r14d,%rsi
shl    $0x20,%r14
movups 0x0(%rbp,%rsi,1),%xmm0
movups 0x10(%rbp,%rsi,1),%xmm1
movups 0x20(%rbp,%rsi,1),%xmm2
movups 0x30(%rbp,%rsi,1),%xmm3
movups %xmm3,-0x50(%rcx,%rdx,1)
movups %xmm2,-0x60(%rcx,%rdx,1)
movups %xmm1,-0x70(%rcx,%rdx,1)
movups %xmm0,-0x80(%rcx,%rdx,1)
add    %rax,%r14
sar    $0x20,%r14
movups 0x0(%rbp,%r14,1),%xmm0
movups 0x10(%rbp,%r14,1),%xmm1
movups 0x20(%rbp,%r14,1),%xmm2
movups 0x30(%rbp,%r14,1),%xmm3
movups %xmm0,(%rcx,%rdx,1)
movups %xmm1,0x10(%rcx,%rdx,1)
movups %xmm2,0x20(%rcx,%rdx,1)
movups %xmm3,0x30(%rcx,%rdx,1)
add    $0x40,%r14
add    $0x100,%rdx
cmp    $0x2000,%rdx
jne    13e0 <decryption+0x280>
lea    0x23e0(%rsp),%rcx
xor    %edx,%edx
nop
movslq %r14d,%rsi
shl    $0x20,%r14
movups 0x0(%rbp,%rsi,1),%xmm0
movups 0x10(%rbp,%rsi,1),%xmm1
movups 0x20(%rbp,%rsi,1),%xmm2
movups 0x30(%rbp,%rsi,1),%xmm3
movups %xmm3,-0x50(%rcx,%rdx,1)
movups %xmm2,-0x60(%rcx,%rdx,1)
movups %xmm1,-0x70(%rcx,%rdx,1)
movups %xmm0,-0x80(%rcx,%rdx,1)
add    %rax,%r14
sar    $0x20,%r14
movups 0x0(%rbp,%r14,1),%xmm0
movups 0x10(%rbp,%r14,1),%xmm1
movups 0x20(%rbp,%r14,1),%xmm2
movups 0x30(%rbp,%r14,1),%xmm3
movups %xmm0,(%rcx,%rdx,1)
movups %xmm1,0x10(%rcx,%rdx,1)
movups %xmm2,0x20(%rcx,%rdx,1)
movups %xmm3,0x30(%rcx,%rdx,1)
add    $0x40,%r14
add    $0x100,%rdx
cmp    $0x2000,%rdx
jne    1460 <decryption+0x300>
lea    0x320(%rsp),%rdi
mov    $0x80,%esi
mov    $0x80,%edx
call   1080 <echelonform@plt>
lea    0x249f(%rsp),%rax
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
movzbl -0x100(%rax),%edx
mov    %dl,0xa0(%rsp,%rcx,1)
movzbl -0x80(%rax),%edx
mov    %dl,0xa1(%rsp,%rcx,1)
movzbl (%rax),%edx
mov    %dl,0xa2(%rsp,%rcx,1)
add    $0x3,%rcx
add    $0x180,%rax
cmp    $0x3f,%rcx
jne    1500 <decryption+0x3a0>
movb   $0x1,0xdf(%rsp)
01
xor    %eax,%eax
jmp    155d <decryption+0x3fd>
nop
mov    0x18(%rsp),%rax
mov    %r12b,0x1a0(%rsp,%rax,1)
add    $0x1,%rax
cmp    $0x80,%rax
je     160b <decryption+0x4ab>
mov    %rax,0x18(%rsp)
xor    %r15d,%r15d
xor    %r12d,%r12d
jmp    157a <decryption+0x41a>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r15
cmp    $0x40,%r15
je     1540 <decryption+0x3e0>
movslq %r14d,%r14
movzbl 0x0(%rbp,%r14,1),%ebx
add    $0x1,%r14
movzbl 0xa0(%rsp,%r15,1),%r13d
mov    %r13d,%edi
mov    %r13d,%esi
call   1070 <mul@plt>
movzbl %al,%esi
mov    %ebx,%edi
call   1070 <mul@plt>
movzbl %al,%esi
movzbl %r12b,%edi
call   1030 <add@plt>
mov    %eax,%r12d
lea    0x1(%r15),%rbx
cmp    $0x40,%rbx
je     1570 <decryption+0x410>
xchg   %ax,%ax
movzbl 0xa0(%rsp,%rbx,1),%esi
mov    0x8(%rsp),%rax
movzbl (%rax,%r14,1),%ebp
add    $0x1,%r14
mov    %r13d,%edi
call   1070 <mul@plt>
movzbl %al,%esi
mov    %ebp,%edi
mov    0x8(%rsp),%rbp
call   1070 <mul@plt>
movzbl %al,%esi
movzbl %r12b,%edi
call   1030 <add@plt>
mov    %eax,%r12d
add    $0x1,%rbx
cmp    $0x40,%rbx
jne    15c0 <decryption+0x460>
jmp    1570 <decryption+0x410>
xor    %eax,%eax
mov    0x10(%rsp),%r13
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmpb   $0x0,0x1a0(%rsp,%rax,1)
jne    166b <decryption+0x50b>
cmpb   $0x0,0x1a1(%rsp,%rax,1)
jne    165b <decryption+0x4fb>
cmpb   $0x0,0x1a2(%rsp,%rax,1)
jne    1661 <decryption+0x501>
cmpb   $0x0,0x1a3(%rsp,%rax,1)
jne    1667 <decryption+0x507>
add    $0x4,%rax
cmp    $0x80,%rax
jne    1620 <decryption+0x4c0>
mov    $0x80,%eax
jmp    166b <decryption+0x50b>
add    $0x1,%rax
jmp    166b <decryption+0x50b>
add    $0x2,%rax
jmp    166b <decryption+0x50b>
add    $0x3,%rax
mov    %eax,%ebx
movzbl 0x1a0(%rsp,%rbx,1),%edi
call   1060 <inv@plt>
movzbl 0x20(%rsp,%rbx,1),%esi
movzbl %al,%edi
call   1070 <mul@plt>
xor    %ecx,%ecx
nopl   0x0(%rax)
cmp    %al,0x220(%rsp,%rcx,1)
movzbl %dl,%edx
cmove  %ecx,%edx
lea    0x1(%rcx),%esi
cmp    %al,0x221(%rsp,%rcx,1)
movzbl %sil,%esi
cmovne %edx,%esi
cmp    %al,0x222(%rsp,%rcx,1)
lea    0x2(%rcx),%edx
movzbl %dl,%edi
cmovne %esi,%edi
lea    0x3(%rcx),%edx
cmp    %al,0x223(%rsp,%rcx,1)
movzbl %dl,%edx
cmovne %edi,%edx
add    $0x4,%rcx
cmp    $0x100,%rcx
jne    1690 <decryption+0x530>
mov    %dl,0x11f(%rsp)
movzbl 0xa0(%rsp),%edi
movzbl %dl,%esi
call   1070 <mul@plt>
mov    %al,0xe0(%rsp)
mov    $0x1,%ebx
xchg   %ax,%ax
movzbl 0x11f(%rsp),%esi
movzbl 0xa0(%rsp,%rbx,1),%edi
call   1070 <mul@plt>
mov    %al,0xe0(%rsp,%rbx,1)
add    $0x1,%rbx
cmp    $0x3f,%rbx
jne    1700 <decryption+0x5a0>
xor    %r15d,%r15d
nopl   0x0(%rax)
movb   $0x0,0x0(%r13,%r15,1)
movslq %r14d,%r14
lea    (%r14,%rbp,1),%r12
xor    %ebx,%ebx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movzbl (%r12,%rbp,1),%edi
movzbl 0xe0(%rsp,%rbp,1),%esi
call   1070 <mul@plt>
movzbl %al,%esi
movzbl %bl,%edi
call   1030 <add@plt>
mov    %eax,%ebx
mov    %al,0x0(%r13,%r15,1)
add    $0x1,%rbp
cmp    $0x40,%rbp
jne    1750 <decryption+0x5f0>
add    $0x1,%r15
add    %rbp,%r14
cmp    $0x40,%r15
mov    0x8(%rsp),%rbp
jne    1730 <decryption+0x5d0>
mov    $0x1,%eax
add    $0x4328,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [52 x i8] c"************************************************* \0A\00"
@.str.1 = [23 x i8] c"Start ABC decryption \0A\00"
define i32 @decryption(i8* %0, i8* %1, i8* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca [128 x i8]
%16 = alloca [128 x i8]
%17 = alloca [128 x i8]
%18 = alloca [128 x i8]
%19 = alloca [64 x i8]
%20 = alloca [16384 x i8]
%21 = alloca i8
%22 = alloca i8
%23 = alloca [256 x i8]
%24 = alloca [64 x i8]
store i8* %0, i8** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i32 %3, i32* %9
store i32 0, i32* %13
store i32 0, i32* %14
%25 = load i32, i32* %9
%26 = icmp ne i32 %25, 128
br i1 %26, label %27, label %28
27: ; preds = %4
store i32 0, i32* %5
br label %436
28: ; preds = %4
%29 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0))
%30 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%31 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %12
br label %32
32: ; preds = %44, %28
%33 = load i32, i32* %12
%34 = icmp slt i32 %33, 128
br i1 %34, label %35, label %47
35: ; preds = %32
%36 = load i8*, i8** %8
%37 = load i32, i32* %12
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, i8* %36, i64 %38
%40 = load i8, i8* %39
%41 = load i32, i32* %12
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 %42
store i8 %40, i8* %43
br label %44
44: ; preds = %35
%45 = load i32, i32* %12
%46 = add nsw i32 %45, 1
store i32 %46, i32* %12
br label %32
47: ; preds = %32
store i32 0, i32* %12
br label %48
48: ; preds = %55, %47
%49 = load i32, i32* %12
%50 = icmp slt i32 %49, 128
br i1 %50, label %51, label %58
51: ; preds = %48
%52 = load i32, i32* %12
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [128 x i8], [128 x i8]* %15, i64 0, i64 %53
store i8 0, i8* %54
br label %55
55: ; preds = %51
%56 = load i32, i32* %12
%57 = add nsw i32 %56, 1
store i32 %57, i32* %12
br label %48
58: ; preds = %48
store i32 0, i32* %10
br label %59
59: ; preds = %66, %58
%60 = load i32, i32* %10
%61 = icmp slt i32 %60, 16384
br i1 %61, label %62, label %69
62: ; preds = %59
%63 = load i32, i32* %10
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [16384 x i8], [16384 x i8]* %20, i64 0, i64 %64
store i8 0, i8* %65
br label %66
66: ; preds = %62
%67 = load i32, i32* %10
%68 = add nsw i32 %67, 1
store i32 %68, i32* %10
br label %59
69: ; preds = %59
store i32 0, i32* %10
br label %70
70: ; preds = %82, %69
%71 = load i32, i32* %10
%72 = icmp slt i32 %71, 256
br i1 %72, label %73, label %85
73: ; preds = %70
%74 = load i32, i32* %10
%75 = trunc i32 %74 to i8
%76 = load i32, i32* %10
%77 = trunc i32 %76 to i8
%78 = call zeroext i8 @mul(i8 zeroext %75, i8 zeroext %77)
%79 = load i32, i32* %10
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [256 x i8], [256 x i8]* %23, i64 0, i64 %80
store i8 %78, i8* %81
br label %82
82: ; preds = %73
%83 = load i32, i32* %10
%84 = add nsw i32 %83, 1
store i32 %84, i32* %10
br label %70
85: ; preds = %70
store i32 0, i32* %12
store i32 0, i32* %10
br label %86
86: ; preds = %120, %85
%87 = load i32, i32* %10
%88 = icmp slt i32 %87, 128
br i1 %88, label %89, label %123
89: ; preds = %86
%90 = load i32, i32* %10
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [128 x i8], [128 x i8]* %17, i64 0, i64 %91
store i8 0, i8* %92
store i32 0, i32* %11
br label %93
93: ; preds = %116, %89
%94 = load i32, i32* %11
%95 = icmp slt i32 %94, 128
br i1 %95, label %96, label %119
96: ; preds = %93
%97 = load i32, i32* %10
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [128 x i8], [128 x i8]* %17, i64 0, i64 %98
%100 = load i8, i8* %99
%101 = load i8*, i8** %6
%102 = load i32, i32* %13
%103 = add nsw i32 %102, 1
store i32 %103, i32* %13
%104 = sext i32 %102 to i64
%105 = getelementptr inbounds i8, i8* %101, i64 %104
%106 = load i8, i8* %105
%107 = load i32, i32* %11
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 %108
%110 = load i8, i8* %109
%111 = call zeroext i8 @mul(i8 zeroext %106, i8 zeroext %110)
%112 = call zeroext i8 @add(i8 zeroext %100, i8 zeroext %111)
%113 = load i32, i32* %10
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [128 x i8], [128 x i8]* %17, i64 0, i64 %114
store i8 %112, i8* %115
br label %116
116: ; preds = %96
%117 = load i32, i32* %11
%118 = add nsw i32 %117, 1
store i32 %118, i32* %11
br label %93
119: ; preds = %93
br label %120
120: ; preds = %119
%121 = load i32, i32* %10
%122 = add nsw i32 %121, 1
store i32 %122, i32* %10
br label %86
123: ; preds = %86
store i32 0, i32* %12
br label %124
124: ; preds = %200, %123
%125 = load i32, i32* %12
%126 = icmp slt i32 %125, 8
br i1 %126, label %127, label %203
127: ; preds = %124
store i32 0, i32* %10
br label %128
128: ; preds = %159, %127
%129 = load i32, i32* %10
%130 = icmp slt i32 %129, 8
br i1 %130, label %131, label %162
131: ; preds = %128
store i32 0, i32* %11
br label %132
132: ; preds = %155, %131
%133 = load i32, i32* %11
%134 = icmp slt i32 %133, 8
br i1 %134, label %135, label %158
135: ; preds = %132
%136 = load i32, i32* %11
%137 = mul nsw i32 %136, 8
%138 = load i32, i32* %10
%139 = add nsw i32 %137, %138
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [128 x i8], [128 x i8]* %17, i64 0, i64 %140
%142 = load i8, i8* %141
%143 = load i32, i32* %12
%144 = mul nsw i32 %143, 8
%145 = load i32, i32* %10
%146 = add nsw i32 %144, %145
%147 = mul nsw i32 %146, 128
%148 = load i32, i32* %12
%149 = mul nsw i32 %148, 8
%150 = add nsw i32 %147, %149
%151 = load i32, i32* %11
%152 = add nsw i32 %150, %151
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds [16384 x i8], [16384 x i8]* %20, i64 0, i64 %153
store i8 %142, i8* %154
br label %155
155: ; preds = %135
%156 = load i32, i32* %11
%157 = add nsw i32 %156, 1
store i32 %157, i32* %11
br label %132
158: ; preds = %132
br label %159
159: ; preds = %158
%160 = load i32, i32* %10
%161 = add nsw i32 %160, 1
store i32 %161, i32* %10
br label %128
162: ; preds = %128
store i32 0, i32* %10
br label %163
163: ; preds = %196, %162
%164 = load i32, i32* %10
%165 = icmp slt i32 %164, 8
br i1 %165, label %166, label %199
166: ; preds = %163
store i32 0, i32* %11
br label %167
167: ; preds = %192, %166
%168 = load i32, i32* %11
%169 = icmp slt i32 %168, 8
br i1 %169, label %170, label %195
170: ; preds = %167
%171 = load i32, i32* %11
%172 = mul nsw i32 %171, 8
%173 = add nsw i32 64, %172
%174 = load i32, i32* %10
%175 = add nsw i32 %173, %174
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds [128 x i8], [128 x i8]* %17, i64 0, i64 %176
%178 = load i8, i8* %177
%179 = load i32, i32* %12
%180 = mul nsw i32 %179, 8
%181 = load i32, i32* %10
%182 = add nsw i32 %180, %181
%183 = mul nsw i32 %182, 128
%184 = add nsw i32 8192, %183
%185 = load i32, i32* %12
%186 = mul nsw i32 %185, 8
%187 = add nsw i32 %184, %186
%188 = load i32, i32* %11
%189 = add nsw i32 %187, %188
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds [16384 x i8], [16384 x i8]* %20, i64 0, i64 %190
store i8 %178, i8* %191
br label %192
192: ; preds = %170
%193 = load i32, i32* %11
%194 = add nsw i32 %193, 1
store i32 %194, i32* %11
br label %167
195: ; preds = %167
br label %196
196: ; preds = %195
%197 = load i32, i32* %10
%198 = add nsw i32 %197, 1
store i32 %198, i32* %10
br label %163
199: ; preds = %163
br label %200
200: ; preds = %199
%201 = load i32, i32* %12
%202 = add nsw i32 %201, 1
store i32 %202, i32* %12
br label %124
203: ; preds = %124
store i32 0, i32* %10
br label %204
204: ; preds = %228, %203
%205 = load i32, i32* %10
%206 = icmp slt i32 %205, 64
br i1 %206, label %207, label %231
207: ; preds = %204
store i32 64, i32* %11
br label %208
208: ; preds = %224, %207
%209 = load i32, i32* %11
%210 = icmp slt i32 %209, 128
br i1 %210, label %211, label %227
211: ; preds = %208
%212 = load i8*, i8** %6
%213 = load i32, i32* %13
%214 = add nsw i32 %213, 1
store i32 %214, i32* %13
%215 = sext i32 %213 to i64
%216 = getelementptr inbounds i8, i8* %212, i64 %215
%217 = load i8, i8* %216
%218 = load i32, i32* %10
%219 = mul nsw i32 %218, 128
%220 = load i32, i32* %11
%221 = add nsw i32 %219, %220
%222 = sext i32 %221 to i64
%223 = getelementptr inbounds [16384 x i8], [16384 x i8]* %20, i64 0, i64 %222
store i8 %217, i8* %223
br label %224
224: ; preds = %211
%225 = load i32, i32* %11
%226 = add nsw i32 %225, 1
store i32 %226, i32* %11
br label %208
227: ; preds = %208
br label %228
228: ; preds = %227
%229 = load i32, i32* %10
%230 = add nsw i32 %229, 1
store i32 %230, i32* %10
br label %204
231: ; preds = %204
store i32 0, i32* %10
br label %232
232: ; preds = %257, %231
%233 = load i32, i32* %10
%234 = icmp slt i32 %233, 64
br i1 %234, label %235, label %260
235: ; preds = %232
store i32 64, i32* %11
br label %236
236: ; preds = %253, %235
%237 = load i32, i32* %11
%238 = icmp slt i32 %237, 128
br i1 %238, label %239, label %256
239: ; preds = %236
%240 = load i8*, i8** %6
%241 = load i32, i32* %13
%242 = add nsw i32 %241, 1
store i32 %242, i32* %13
%243 = sext i32 %241 to i64
%244 = getelementptr inbounds i8, i8* %240, i64 %243
%245 = load i8, i8* %244
%246 = load i32, i32* %10
%247 = mul nsw i32 %246, 128
%248 = add nsw i32 8192, %247
%249 = load i32, i32* %11
%250 = add nsw i32 %248, %249
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds [16384 x i8], [16384 x i8]* %20, i64 0, i64 %251
store i8 %245, i8* %252
br label %253
253: ; preds = %239
%254 = load i32, i32* %11
%255 = add nsw i32 %254, 1
store i32 %255, i32* %11
br label %236
256: ; preds = %236
br label %257
257: ; preds = %256
%258 = load i32, i32* %10
%259 = add nsw i32 %258, 1
store i32 %259, i32* %10
br label %232
260: ; preds = %232
%261 = getelementptr inbounds [16384 x i8], [16384 x i8]* %20, i64 0, i64 0
%262 = call i32 @echelonform(i8* %261, i32 128, i32 128)
store i32 0, i32* %10
br label %263
263: ; preds = %277, %260
%264 = load i32, i32* %10
%265 = icmp slt i32 %264, 63
br i1 %265, label %266, label %280
266: ; preds = %263
%267 = load i32, i32* %10
%268 = add nsw i32 %267, 64
%269 = mul nsw i32 %268, 128
%270 = add nsw i32 %269, 127
%271 = sext i32 %270 to i64
%272 = getelementptr inbounds [16384 x i8], [16384 x i8]* %20, i64 0, i64 %271
%273 = load i8, i8* %272
%274 = load i32, i32* %10
%275 = sext i32 %274 to i64
%276 = getelementptr inbounds [64 x i8], [64 x i8]* %24, i64 0, i64 %275
store i8 %273, i8* %276
br label %277
277: ; preds = %266
%278 = load i32, i32* %10
%279 = add nsw i32 %278, 1
store i32 %279, i32* %10
br label %263
280: ; preds = %263
%281 = getelementptr inbounds [64 x i8], [64 x i8]* %24, i64 0, i64 63
store i8 1, i8* %281
store i32 0, i32* %12
br label %282
282: ; preds = %325, %280
%283 = load i32, i32* %12
%284 = icmp slt i32 %283, 128
br i1 %284, label %285, label %328
285: ; preds = %282
store i8 0, i8* %21
store i32 0, i32* %10
br label %286
286: ; preds = %317, %285
%287 = load i32, i32* %10
%288 = icmp slt i32 %287, 64
br i1 %288, label %289, label %320
289: ; preds = %286
%290 = load i32, i32* %10
store i32 %290, i32* %11
br label %291
291: ; preds = %313, %289
%292 = load i32, i32* %11
%293 = icmp slt i32 %292, 64
br i1 %293, label %294, label %316
294: ; preds = %291
%295 = load i8, i8* %21
%296 = load i8*, i8** %6
%297 = load i32, i32* %13
%298 = add nsw i32 %297, 1
store i32 %298, i32* %13
%299 = sext i32 %297 to i64
%300 = getelementptr inbounds i8, i8* %296, i64 %299
%301 = load i8, i8* %300
%302 = load i32, i32* %10
%303 = sext i32 %302 to i64
%304 = getelementptr inbounds [64 x i8], [64 x i8]* %24, i64 0, i64 %303
%305 = load i8, i8* %304
%306 = load i32, i32* %11
%307 = sext i32 %306 to i64
%308 = getelementptr inbounds [64 x i8], [64 x i8]* %24, i64 0, i64 %307
%309 = load i8, i8* %308
%310 = call zeroext i8 @mul(i8 zeroext %305, i8 zeroext %309)
%311 = call zeroext i8 @mul(i8 zeroext %301, i8 zeroext %310)
%312 = call zeroext i8 @add(i8 zeroext %295, i8 zeroext %311)
store i8 %312, i8* %21
br label %313
313: ; preds = %294
%314 = load i32, i32* %11
%315 = add nsw i32 %314, 1
store i32 %315, i32* %11
br label %291
316: ; preds = %291
br label %317
317: ; preds = %316
%318 = load i32, i32* %10
%319 = add nsw i32 %318, 1
store i32 %319, i32* %10
br label %286
320: ; preds = %286
%321 = load i8, i8* %21
%322 = load i32, i32* %12
%323 = sext i32 %322 to i64
%324 = getelementptr inbounds [128 x i8], [128 x i8]* %18, i64 0, i64 %323
store i8 %321, i8* %324
br label %325
325: ; preds = %320
%326 = load i32, i32* %12
%327 = add nsw i32 %326, 1
store i32 %327, i32* %12
br label %282
328: ; preds = %282
store i32 0, i32* %10
br label %329
329: ; preds = %341, %328
%330 = load i32, i32* %10
%331 = icmp slt i32 %330, 128
br i1 %331, label %332, label %344
332: ; preds = %329
%333 = load i32, i32* %10
%334 = sext i32 %333 to i64
%335 = getelementptr inbounds [128 x i8], [128 x i8]* %18, i64 0, i64 %334
%336 = load i8, i8* %335
%337 = zext i8 %336 to i32
%338 = icmp ne i32 %337, 0
br i1 %338, label %339, label %340
339: ; preds = %332
br label %344
340: ; preds = %332
br label %341
341: ; preds = %340
%342 = load i32, i32* %10
%343 = add nsw i32 %342, 1
store i32 %343, i32* %10
br label %329
344: ; preds = %339, %329
%345 = load i32, i32* %10
%346 = sext i32 %345 to i64
%347 = getelementptr inbounds [128 x i8], [128 x i8]* %18, i64 0, i64 %346
%348 = load i8, i8* %347
%349 = call zeroext i8 @inv(i8 zeroext %348)
%350 = load i32, i32* %10
%351 = sext i32 %350 to i64
%352 = getelementptr inbounds [128 x i8], [128 x i8]* %17, i64 0, i64 %351
%353 = load i8, i8* %352
%354 = call zeroext i8 @mul(i8 zeroext %349, i8 zeroext %353)
store i8 %354, i8* %21
store i32 0, i32* %10
br label %355
355: ; preds = %371, %344
%356 = load i32, i32* %10
%357 = icmp slt i32 %356, 256
br i1 %357, label %358, label %374
358: ; preds = %355
%359 = load i32, i32* %10
%360 = sext i32 %359 to i64
%361 = getelementptr inbounds [256 x i8], [256 x i8]* %23, i64 0, i64 %360
%362 = load i8, i8* %361
%363 = zext i8 %362 to i32
%364 = load i8, i8* %21
%365 = zext i8 %364 to i32
%366 = icmp eq i32 %363, %365
br i1 %366, label %367, label %370
367: ; preds = %358
%368 = load i32, i32* %10
%369 = trunc i32 %368 to i8
store i8 %369, i8* %22
br label %370
370: ; preds = %367, %358
br label %371
371: ; preds = %370
%372 = load i32, i32* %10
%373 = add nsw i32 %372, 1
store i32 %373, i32* %10
br label %355
374: ; preds = %355
%375 = load i8, i8* %22
%376 = getelementptr inbounds [64 x i8], [64 x i8]* %19, i64 0, i64 63
store i8 %375, i8* %376
store i32 0, i32* %10
br label %377
377: ; preds = %391, %374
%378 = load i32, i32* %10
%379 = icmp slt i32 %378, 63
br i1 %379, label %380, label %394
380: ; preds = %377
%381 = load i32, i32* %10
%382 = sext i32 %381 to i64
%383 = getelementptr inbounds [64 x i8], [64 x i8]* %24, i64 0, i64 %382
%384 = load i8, i8* %383
%385 = getelementptr inbounds [64 x i8], [64 x i8]* %19, i64 0, i64 63
%386 = load i8, i8* %385
%387 = call zeroext i8 @mul(i8 zeroext %384, i8 zeroext %386)
%388 = load i32, i32* %10
%389 = sext i32 %388 to i64
%390 = getelementptr inbounds [64 x i8], [64 x i8]* %19, i64 0, i64 %389
store i8 %387, i8* %390
br label %391
391: ; preds = %380
%392 = load i32, i32* %10
%393 = add nsw i32 %392, 1
store i32 %393, i32* %10
br label %377
394: ; preds = %377
store i32 0, i32* %10
br label %395
395: ; preds = %432, %394
%396 = load i32, i32* %10
%397 = icmp slt i32 %396, 64
br i1 %397, label %398, label %435
398: ; preds = %395
%399 = load i8*, i8** %7
%400 = load i32, i32* %10
%401 = sext i32 %400 to i64
%402 = getelementptr inbounds i8, i8* %399, i64 %401
store i8 0, i8* %402
store i32 0, i32* %11
br label %403
403: ; preds = %428, %398
%404 = load i32, i32* %11
%405 = icmp slt i32 %404, 64
br i1 %405, label %406, label %431
406: ; preds = %403
%407 = load i8*, i8** %7
%408 = load i32, i32* %10
%409 = sext i32 %408 to i64
%410 = getelementptr inbounds i8, i8* %407, i64 %409
%411 = load i8, i8* %410
%412 = load i8*, i8** %6
%413 = load i32, i32* %13
%414 = add nsw i32 %413, 1
store i32 %414, i32* %13
%415 = sext i32 %413 to i64
%416 = getelementptr inbounds i8, i8* %412, i64 %415
%417 = load i8, i8* %416
%418 = load i32, i32* %11
%419 = sext i32 %418 to i64
%420 = getelementptr inbounds [64 x i8], [64 x i8]* %19, i64 0, i64 %419
%421 = load i8, i8* %420
%422 = call zeroext i8 @mul(i8 zeroext %417, i8 zeroext %421)
%423 = call zeroext i8 @add(i8 zeroext %411, i8 zeroext %422)
%424 = load i8*, i8** %7
%425 = load i32, i32* %10
%426 = sext i32 %425 to i64
%427 = getelementptr inbounds i8, i8* %424, i64 %426
store i8 %423, i8* %427
br label %428
428: ; preds = %406
%429 = load i32, i32* %11
%430 = add nsw i32 %429, 1
store i32 %430, i32* %11
br label %403
431: ; preds = %403
br label %432
432: ; preds = %431
%433 = load i32, i32* %10
%434 = add nsw i32 %433, 1
store i32 %434, i32* %10
br label %395
435: ; preds = %395
store i32 1, i32* %5
br label %436
436: ; preds = %435, %27
%437 = load i32, i32* %5
ret i32 %437
}

LLVM IR (-O2):
@str.2 = [22 x i8] c"Start ABC decryption \00"
@str.3 = [51 x i8] c"************************************************* \00"
define i32 @decryption(i8* nocapture %0, i8* nocapture %1, i8* nocapture %2, i32 %3) {
%5 = alloca [128 x i8]
%6 = alloca [128 x i8]
%7 = alloca [128 x i8]
%8 = alloca [64 x i8]
%9 = alloca [16384 x i8]
%10 = alloca [256 x i8]
%11 = alloca [64 x i8]
%12 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%13 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%14 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%15 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 0
%16 = getelementptr inbounds [16384 x i8], [16384 x i8]* %9, i64 0, i64 0
%17 = icmp eq i32 %3, 128
br i1 %17, label %18, label %362
18: ; preds = %4
%19 = getelementptr inbounds [16384 x i8], [16384 x i8]* %9, i64 0, i64 0
%20 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.3, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.2, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.3, i64 0, i64 0))
%24 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
br label %25
25: ; preds = %18, %25
%26 = phi i64 [ 0, %18 ], [ %30, %25 ]
%27 = trunc i64 %26 to i8
%28 = tail call zeroext i8 @mul(i8 zeroext %27, i8 zeroext %27)
%29 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 %26
store i8 %28, i8* %29
%30 = add nuw nsw i64 %26, 1
%31 = icmp eq i64 %30, 256
br i1 %31, label %32, label %25
32: ; preds = %25, %51
%33 = phi i64 [ %52, %51 ], [ 0, %25 ]
%34 = phi i64 [ %42, %51 ], [ 0, %25 ]
%35 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %33
%36 = shl i64 %34, 32
%37 = ashr exact i64 %36, 32
br label %38
38: ; preds = %32, %38
%39 = phi i64 [ 0, %32 ], [ %49, %38 ]
%40 = phi i64 [ %37, %32 ], [ %42, %38 ]
%41 = phi i8 [ 0, %32 ], [ %48, %38 ]
%42 = add nsw i64 %40, 1
%43 = getelementptr inbounds i8, i8* %0, i64 %40
%44 = load i8, i8* %43
%45 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 %39
%46 = load i8, i8* %45
%47 = tail call zeroext i8 @mul(i8 zeroext %44, i8 zeroext %46)
%48 = tail call zeroext i8 @add(i8 zeroext %41, i8 zeroext %47)
%49 = add nuw nsw i64 %39, 1
%50 = icmp eq i64 %49, 128
br i1 %50, label %51, label %38
51: ; preds = %38
store i8 %48, i8* %35
%52 = add nuw nsw i64 %33, 1
%53 = icmp eq i64 %52, 128
br i1 %53, label %54, label %32
54: ; preds = %51, %150
%55 = phi i64 [ %151, %150 ], [ 0, %51 ]
%56 = shl nsw i64 %55, 3
br label %59
57: ; preds = %59
%58 = add nuw nsw i64 %56, 8192
br label %104
59: ; preds = %54, %59
%60 = phi i64 [ 0, %54 ], [ %102, %59 ]
%61 = add nuw nsw i64 %60, %56
%62 = shl nsw i64 %61, 7
%63 = add nuw nsw i64 %62, %56
%64 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %60
%65 = load i8, i8* %64
%66 = getelementptr inbounds [16384 x i8], [16384 x i8]* %9, i64 0, i64 %63
store i8 %65, i8* %66
%67 = add nuw nsw i64 %60, 8
%68 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %67
%69 = load i8, i8* %68
%70 = or i64 %63, 1
%71 = getelementptr inbounds [16384 x i8], [16384 x i8]* %9, i64 0, i64 %70
store i8 %69, i8* %71
%72 = add nuw nsw i64 %60, 16
%73 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %72
%74 = load i8, i8* %73
%75 = or i64 %63, 2
%76 = getelementptr inbounds [16384 x i8], [16384 x i8]* %9, i64 0, i64 %75
store i8 %74, i8* %76
%77 = add nuw nsw i64 %60, 24
%78 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %77
%79 = load i8, i8* %78
%80 = or i64 %63, 3
%81 = getelementptr inbounds [16384 x i8], [16384 x i8]* %9, i64 0, i64 %80
store i8 %79, i8* %81
%82 = add nuw nsw i64 %60, 32
%83 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %82
%84 = load i8, i8* %83
%85 = or i64 %63, 4
%86 = getelementptr inbounds [16384 x i8], [16384 x i8]* %9, i64 0, i64 %85
store i8 %84, i8* %86
%87 = add nuw nsw i64 %60, 40
%88 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %87
%89 = load i8, i8* %88
%90 = or i64 %63, 5
%91 = getelementptr inbounds [16384 x i8], [16384 x i8]* %9, i64 0, i64 %90
store i8 %89, i8* %91
%92 = add nuw nsw i64 %60, 48
%93 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %92
%94 = load i8, i8* %93
%95 = or i64 %63, 6
%96 = getelementptr inbounds [16384 x i8], [16384 x i8]* %9, i64 0, i64 %95
store i8 %94, i8* %96
%97 = add nuw nsw i64 %60, 56
%98 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %97
%99 = load i8, i8* %98
%100 = or i64 %63, 7
%101 = getelementptr inbounds [16384 x i8], [16384 x i8]* %9, i64 0, i64 %100
store i8 %99, i8* %101
%102 = add nuw nsw i64 %60, 1
%103 = icmp eq i64 %102, 8
br i1 %103, label %57, label %59
104: ; preds = %57, %104
%105 = phi i64 [ 0, %57 ], [ %148, %104 ]
%106 = add nuw nsw i64 %105, 64
%107 = add nuw nsw i64 %105, %56
%108 = shl nsw i64 %107, 7
%109 = add nuw nsw i64 %58, %108
%110 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %106
%111 = load i8, i8* %110
%112 = getelementptr inbounds [16384 x i8], [16384 x i8]* %9, i64 0, i64 %109
store i8 %111, i8* %112
%113 = add nuw nsw i64 %105, 72
%114 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %113
%115 = load i8, i8* %114
%116 = or i64 %109, 1
%117 = getelementptr inbounds [16384 x i8], [16384 x i8]* %9, i64 0, i64 %116
store i8 %115, i8* %117
%118 = add nuw nsw i64 %105, 80
%119 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %118
%120 = load i8, i8* %119
%121 = or i64 %109, 2
%122 = getelementptr inbounds [16384 x i8], [16384 x i8]* %9, i64 0, i64 %121
store i8 %120, i8* %122
%123 = add nuw nsw i64 %105, 88
%124 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %123
%125 = load i8, i8* %124
%126 = or i64 %109, 3
%127 = getelementptr inbounds [16384 x i8], [16384 x i8]* %9, i64 0, i64 %126
store i8 %125, i8* %127
%128 = add nuw nsw i64 %105, 96
%129 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %128
%130 = load i8, i8* %129
%131 = or i64 %109, 4
%132 = getelementptr inbounds [16384 x i8], [16384 x i8]* %9, i64 0, i64 %131
store i8 %130, i8* %132
%133 = add nuw nsw i64 %105, 104
%134 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %133
%135 = load i8, i8* %134
%136 = or i64 %109, 5
%137 = getelementptr inbounds [16384 x i8], [16384 x i8]* %9, i64 0, i64 %136
store i8 %135, i8* %137
%138 = add nuw nsw i64 %105, 112
%139 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %138
%140 = load i8, i8* %139
%141 = or i64 %109, 6
%142 = getelementptr inbounds [16384 x i8], [16384 x i8]* %9, i64 0, i64 %141
store i8 %140, i8* %142
%143 = add nuw nsw i64 %105, 120
%144 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %143
%145 = load i8, i8* %144
%146 = or i64 %109, 7
%147 = getelementptr inbounds [16384 x i8], [16384 x i8]* %9, i64 0, i64 %146
store i8 %145, i8* %147
%148 = add nuw nsw i64 %105, 1
%149 = icmp eq i64 %148, 8
br i1 %149, label %150, label %104
150: ; preds = %104
%151 = add nuw nsw i64 %55, 1
%152 = icmp eq i64 %151, 8
br i1 %152, label %153, label %54
153: ; preds = %150, %153
%154 = phi i64 [ %170, %153 ], [ 0, %150 ]
%155 = phi i64 [ %169, %153 ], [ %42, %150 ]
%156 = shl nuw nsw i64 %154, 7
%157 = or i64 %156, 64
%158 = getelementptr [16384 x i8], [16384 x i8]* %9, i64 0, i64 %157
%159 = shl i64 %155, 32
%160 = ashr exact i64 %159, 32
%161 = getelementptr i8, i8* %0, i64 %160
%162 = shl i64 %154, 7
%163 = or i64 %162, 192
%164 = getelementptr [16384 x i8], [16384 x i8]* %9, i64 0, i64 %163
%165 = shl i64 %155, 32
%166 = add i64 %165, 274877906944
%167 = ashr exact i64 %166, 32
%168 = getelementptr i8, i8* %0, i64 %167
%169 = add nsw i64 %167, 64
%170 = add nuw nsw i64 %154, 2
%171 = icmp eq i64 %170, 64
br i1 %171, label %172, label %153
172: ; preds = %153, %172
%173 = phi i64 [ %189, %172 ], [ 0, %153 ]
%174 = phi i64 [ %188, %172 ], [ %169, %153 ]
%175 = shl nuw nsw i64 %173, 7
%176 = add nuw nsw i64 %175, 8256
%177 = getelementptr [16384 x i8], [16384 x i8]* %9, i64 0, i64 %176
%178 = shl i64 %174, 32
%179 = ashr exact i64 %178, 32
%180 = getelementptr i8, i8* %0, i64 %179
%181 = shl i64 %173, 7
%182 = add i64 %181, 8384
%183 = getelementptr [16384 x i8], [16384 x i8]* %9, i64 0, i64 %182
%184 = shl i64 %174, 32
%185 = add i64 %184, 274877906944
%186 = ashr exact i64 %185, 32
%187 = getelementptr i8, i8* %0, i64 %186
%188 = add nsw i64 %186, 64
%189 = add nuw nsw i64 %173, 2
%190 = icmp eq i64 %189, 64
br i1 %190, label %191, label %172
191: ; preds = %172
%192 = call i32 @echelonform(i8* %16, i32 128, i32 128)
%193 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
br label %194
194: ; preds = %194, %191
%195 = phi i64 [ 0, %191 ], [ %213, %194 ]
%196 = shl nuw nsw i64 %195, 7
%197 = add nuw nsw i64 %196, 8319
%198 = getelementptr inbounds [16384 x i8], [16384 x i8]* %9, i64 0, i64 %197
%199 = load i8, i8* %198
%200 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 %195
store i8 %199, i8* %200
%201 = add nuw nsw i64 %195, 1
%202 = shl nuw nsw i64 %201, 7
%203 = add nuw nsw i64 %202, 8319
%204 = getelementptr inbounds [16384 x i8], [16384 x i8]* %9, i64 0, i64 %203
%205 = load i8, i8* %204
%206 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 %201
store i8 %205, i8* %206
%207 = add nuw nsw i64 %195, 2
%208 = shl nuw nsw i64 %207, 7
%209 = add nuw nsw i64 %208, 8319
%210 = getelementptr inbounds [16384 x i8], [16384 x i8]* %9, i64 0, i64 %209
%211 = load i8, i8* %210
%212 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 %207
store i8 %211, i8* %212
%213 = add nuw nsw i64 %195, 3
%214 = icmp eq i64 %213, 63
br i1 %214, label %215, label %194
215: ; preds = %194
%216 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 63
store i8 1, i8* %216
br label %217
217: ; preds = %215, %255
%218 = phi i64 [ 0, %215 ], [ %257, %255 ]
%219 = phi i64 [ %188, %215 ], [ %251, %255 ]
br label %220
220: ; preds = %250, %217
%221 = phi i64 [ 0, %217 ], [ %253, %250 ]
%222 = phi i8 [ 0, %217 ], [ %252, %250 ]
%223 = phi i64 [ %219, %217 ], [ %251, %250 ]
%224 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 %221
%225 = load i8, i8* %224
%226 = shl i64 %223, 32
%227 = ashr exact i64 %226, 32
%228 = add nsw i64 %227, 1
%229 = getelementptr inbounds i8, i8* %0, i64 %227
%230 = load i8, i8* %229
%231 = call zeroext i8 @mul(i8 zeroext %225, i8 zeroext %225)
%232 = call zeroext i8 @mul(i8 zeroext %230, i8 zeroext %231)
%233 = call zeroext i8 @add(i8 zeroext %222, i8 zeroext %232)
%234 = add nuw nsw i64 %221, 1
%235 = icmp eq i64 %234, 64
br i1 %235, label %250, label %236
236: ; preds = %220, %236
%237 = phi i64 [ %248, %236 ], [ %234, %220 ]
%238 = phi i8 [ %247, %236 ], [ %233, %220 ]
%239 = phi i64 [ %242, %236 ], [ %228, %220 ]
%240 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 %237
%241 = load i8, i8* %240
%242 = add nsw i64 %239, 1
%243 = getelementptr inbounds i8, i8* %0, i64 %239
%244 = load i8, i8* %243
%245 = call zeroext i8 @mul(i8 zeroext %225, i8 zeroext %241)
%246 = call zeroext i8 @mul(i8 zeroext %244, i8 zeroext %245)
%247 = call zeroext i8 @add(i8 zeroext %238, i8 zeroext %246)
%248 = add nuw nsw i64 %237, 1
%249 = icmp eq i64 %248, 64
br i1 %249, label %250, label %236
250: ; preds = %236, %220
%251 = phi i64 [ %228, %220 ], [ %242, %236 ]
%252 = phi i8 [ %233, %220 ], [ %247, %236 ]
%253 = add nuw nsw i64 %221, 1
%254 = icmp eq i64 %253, 64
br i1 %254, label %255, label %220
255: ; preds = %250
%256 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 %218
store i8 %252, i8* %256
%257 = add nuw nsw i64 %218, 1
%258 = icmp eq i64 %257, 128
br i1 %258, label %259, label %217
259: ; preds = %255, %279
%260 = phi i64 [ %280, %279 ], [ 0, %255 ]
%261 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 %260
%262 = load i8, i8* %261
%263 = icmp eq i8 %262, 0
br i1 %263, label %264, label %282
264: ; preds = %259
%265 = or i64 %260, 1
%266 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 %265
%267 = load i8, i8* %266
%268 = icmp eq i8 %267, 0
br i1 %268, label %269, label %282
269: ; preds = %264
%270 = or i64 %260, 2
%271 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 %270
%272 = load i8, i8* %271
%273 = icmp eq i8 %272, 0
br i1 %273, label %274, label %282
274: ; preds = %269
%275 = or i64 %260, 3
%276 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 %275
%277 = load i8, i8* %276
%278 = icmp eq i8 %277, 0
br i1 %278, label %279, label %282
279: ; preds = %274
%280 = add nuw nsw i64 %260, 4
%281 = icmp eq i64 %280, 128
br i1 %281, label %282, label %259
282: ; preds = %279, %274, %269, %264, %259
%283 = phi i64 [ %260, %259 ], [ %265, %264 ], [ %270, %269 ], [ %275, %274 ], [ 128, %279 ]
%284 = and i64 %283, 4294967295
%285 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 %284
%286 = load i8, i8* %285
%287 = call zeroext i8 @inv(i8 zeroext %286)
%288 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %284
%289 = load i8, i8* %288
%290 = call zeroext i8 @mul(i8 zeroext %287, i8 zeroext %289)
br label %291
291: ; preds = %291, %282
%292 = phi i64 [ 0, %282 ], [ %321, %291 ]
%293 = phi i8 [ undef, %282 ], [ %320, %291 ]
%294 = phi i32 [ 0, %282 ], [ %322, %291 ]
%295 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 %292
%296 = load i8, i8* %295
%297 = icmp eq i8 %296, %290
%298 = trunc i32 %294 to i8
%299 = select i1 %297, i8 %298, i8 %293
%300 = or i64 %292, 1
%301 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 %300
%302 = load i8, i8* %301
%303 = icmp eq i8 %302, %290
%304 = trunc i32 %294 to i8
%305 = or i8 %304, 1
%306 = select i1 %303, i8 %305, i8 %299
%307 = or i64 %292, 2
%308 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 %307
%309 = load i8, i8* %308
%310 = icmp eq i8 %309, %290
%311 = trunc i32 %294 to i8
%312 = or i8 %311, 2
%313 = select i1 %310, i8 %312, i8 %306
%314 = or i64 %292, 3
%315 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 %314
%316 = load i8, i8* %315
%317 = icmp eq i8 %316, %290
%318 = trunc i32 %294 to i8
%319 = or i8 %318, 3
%320 = select i1 %317, i8 %319, i8 %313
%321 = add nuw nsw i64 %292, 4
%322 = add nuw nsw i32 %294, 4
%323 = icmp eq i64 %321, 256
br i1 %323, label %324, label %291
324: ; preds = %291
%325 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 63
store i8 %320, i8* %325
%326 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%327 = load i8, i8* %326
%328 = call zeroext i8 @mul(i8 zeroext %327, i8 zeroext %320)
%329 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 0
store i8 %328, i8* %329
br label %330
330: ; preds = %324, %330
%331 = phi i64 [ 1, %324 ], [ %337, %330 ]
%332 = load i8, i8* %325
%333 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 %331
%334 = load i8, i8* %333
%335 = call zeroext i8 @mul(i8 zeroext %334, i8 zeroext %332)
%336 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 %331
store i8 %335, i8* %336
%337 = add nuw nsw i64 %331, 1
%338 = icmp eq i64 %337, 63
br i1 %338, label %339, label %330
339: ; preds = %330, %358
%340 = phi i64 [ %359, %358 ], [ 0, %330 ]
%341 = phi i64 [ %349, %358 ], [ %251, %330 ]
%342 = getelementptr inbounds i8, i8* %1, i64 %340
store i8 0, i8* %342
%343 = shl i64 %341, 32
%344 = ashr exact i64 %343, 32
br label %345
345: ; preds = %339, %345
%346 = phi i8 [ 0, %339 ], [ %355, %345 ]
%347 = phi i64 [ 0, %339 ], [ %356, %345 ]
%348 = phi i64 [ %344, %339 ], [ %349, %345 ]
%349 = add nsw i64 %348, 1
%350 = getelementptr inbounds i8, i8* %0, i64 %348
%351 = load i8, i8* %350
%352 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 %347
%353 = load i8, i8* %352
%354 = call zeroext i8 @mul(i8 zeroext %351, i8 zeroext %353)
%355 = call zeroext i8 @add(i8 zeroext %346, i8 zeroext %354)
store i8 %355, i8* %342
%356 = add nuw nsw i64 %347, 1
%357 = icmp eq i64 %356, 64
br i1 %357, label %358, label %345
358: ; preds = %345
%359 = add nuw nsw i64 %340, 1
%360 = icmp eq i64 %359, 64
br i1 %360, label %361, label %339
361: ; preds = %358
br label %362
362: ; preds = %4, %361
%363 = phi i32 [ 1, %361 ], [ 0, %4 ]
ret i32 %363
}