#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ BFLY(int, int *, int *);
int /*<<< orphan*/ assert(int);
int PERM(int ip1, int ip2, int ip3) {
  int z[5], p[14], op;
  int i;
  assert(ip1 >= 0 && ip2 >= 0 && ip3 >= 0);
  for (i = 0; i < 5; i++)
    z[i] = (ip1 >> i) & 0x1;
  for (i = 0; i < 14; i++) {
    if (i < 9)
      p[i] = ((ip3 >> i) & 0x1);
    else
      p[i] = (ip2 >> (i - 9)) & 0x1;
  }
  BFLY(p[13], &z[1], &z[2]);
  BFLY(p[12], &z[0], &z[3]);
  BFLY(p[11], &z[1], &z[3]);
  BFLY(p[10], &z[2], &z[4]);
  BFLY(p[9], &z[0], &z[3]);
  BFLY(p[8], &z[1], &z[4]);
  BFLY(p[7], &z[3], &z[4]);
  BFLY(p[6], &z[0], &z[2]);
  BFLY(p[5], &z[1], &z[3]);
  BFLY(p[4], &z[0], &z[4]);
  BFLY(p[3], &z[3], &z[4]);
  BFLY(p[2], &z[1], &z[2]);
  BFLY(p[1], &z[2], &z[3]);
  BFLY(p[0], &z[0], &z[1]);
  op = z[0];
  op = op + ((z[1] << 1) & 0x02);
  op = op + ((z[2] << 2) & 0x04);
  op = op + ((z[3] << 3) & 0x08);
  op = op + ((z[4] << 4) & 0x10);
  return (op);
}


x86 assembly (clang, -O0):
<PERM>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x4(%rbp)
mov    %al,-0x69(%rbp)
jl     1159 <PERM+0x39>
xor    %eax,%eax
cmpl   $0x0,-0x8(%rbp)
mov    %al,-0x69(%rbp)
jl     1159 <PERM+0x39>
cmpl   $0x0,-0xc(%rbp)
setge  %al
mov    %al,-0x69(%rbp)
mov    -0x69(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
movl   $0x0,-0x68(%rbp)
cmpl   $0x5,-0x68(%rbp)
jge    119a <PERM+0x7a>
mov    -0x4(%rbp),%eax
mov    -0x68(%rbp),%ecx
sar    %cl,%eax
mov    %eax,%ecx
and    $0x1,%ecx
movslq -0x68(%rbp),%rax
mov    %ecx,-0x20(%rbp,%rax,4)
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    116d <PERM+0x4d>
movl   $0x0,-0x68(%rbp)
cmpl   $0xe,-0x68(%rbp)
jge    11fa <PERM+0xda>
cmpl   $0x9,-0x68(%rbp)
jge    11cf <PERM+0xaf>
mov    -0xc(%rbp),%eax
mov    -0x68(%rbp),%ecx
sar    %cl,%eax
mov    %eax,%ecx
and    $0x1,%ecx
movslq -0x68(%rbp),%rax
mov    %ecx,-0x60(%rbp,%rax,4)
jmp    11e7 <PERM+0xc7>
mov    -0x8(%rbp),%eax
mov    -0x68(%rbp),%ecx
sub    $0x9,%ecx
sar    %cl,%eax
mov    %eax,%ecx
and    $0x1,%ecx
movslq -0x68(%rbp),%rax
mov    %ecx,-0x60(%rbp,%rax,4)
jmp    11ec <PERM+0xcc>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    11a1 <PERM+0x81>
mov    -0x2c(%rbp),%edi
lea    -0x20(%rbp),%rsi
add    $0x4,%rsi
lea    -0x20(%rbp),%rdx
add    $0x8,%rdx
call   1030 <BFLY@plt>
mov    -0x30(%rbp),%edi
lea    -0x20(%rbp),%rsi
lea    -0x20(%rbp),%rdx
add    $0xc,%rdx
call   1030 <BFLY@plt>
mov    -0x34(%rbp),%edi
lea    -0x20(%rbp),%rsi
add    $0x4,%rsi
lea    -0x20(%rbp),%rdx
add    $0xc,%rdx
call   1030 <BFLY@plt>
mov    -0x38(%rbp),%edi
lea    -0x20(%rbp),%rsi
add    $0x8,%rsi
lea    -0x20(%rbp),%rdx
add    $0x10,%rdx
call   1030 <BFLY@plt>
mov    -0x3c(%rbp),%edi
lea    -0x20(%rbp),%rsi
lea    -0x20(%rbp),%rdx
add    $0xc,%rdx
call   1030 <BFLY@plt>
mov    -0x40(%rbp),%edi
lea    -0x20(%rbp),%rsi
add    $0x4,%rsi
lea    -0x20(%rbp),%rdx
add    $0x10,%rdx
call   1030 <BFLY@plt>
mov    -0x44(%rbp),%edi
lea    -0x20(%rbp),%rsi
add    $0xc,%rsi
lea    -0x20(%rbp),%rdx
add    $0x10,%rdx
call   1030 <BFLY@plt>
mov    -0x48(%rbp),%edi
lea    -0x20(%rbp),%rsi
lea    -0x20(%rbp),%rdx
add    $0x8,%rdx
call   1030 <BFLY@plt>
mov    -0x4c(%rbp),%edi
lea    -0x20(%rbp),%rsi
add    $0x4,%rsi
lea    -0x20(%rbp),%rdx
add    $0xc,%rdx
call   1030 <BFLY@plt>
mov    -0x50(%rbp),%edi
lea    -0x20(%rbp),%rsi
lea    -0x20(%rbp),%rdx
add    $0x10,%rdx
call   1030 <BFLY@plt>
mov    -0x54(%rbp),%edi
lea    -0x20(%rbp),%rsi
add    $0xc,%rsi
lea    -0x20(%rbp),%rdx
add    $0x10,%rdx
call   1030 <BFLY@plt>
mov    -0x58(%rbp),%edi
lea    -0x20(%rbp),%rsi
add    $0x4,%rsi
lea    -0x20(%rbp),%rdx
add    $0x8,%rdx
call   1030 <BFLY@plt>
mov    -0x5c(%rbp),%edi
lea    -0x20(%rbp),%rsi
add    $0x8,%rsi
lea    -0x20(%rbp),%rdx
add    $0xc,%rdx
call   1030 <BFLY@plt>
mov    -0x60(%rbp),%edi
lea    -0x20(%rbp),%rsi
lea    -0x20(%rbp),%rdx
add    $0x4,%rdx
call   1030 <BFLY@plt>
mov    -0x20(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%eax
mov    -0x1c(%rbp),%ecx
shl    $0x1,%ecx
and    $0x2,%ecx
add    %ecx,%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%eax
mov    -0x18(%rbp),%ecx
shl    $0x2,%ecx
and    $0x4,%ecx
add    %ecx,%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%eax
mov    -0x14(%rbp),%ecx
shl    $0x3,%ecx
and    $0x8,%ecx
add    %ecx,%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%eax
mov    -0x10(%rbp),%ecx
shl    $0x4,%ecx
and    $0x10,%ecx
add    %ecx,%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PERM>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %edx,%ebx
mov    %esi,%ebp
mov    %edi,%r14d
mov    %edx,%eax
not    %eax
shr    $0x1f,%eax
xor    %edi,%edi
mov    %esi,%ecx
or     %r14d,%ecx
cmovns %eax,%edi
call   1040 <assert@plt>
mov    %r14d,%eax
and    $0x1,%eax
mov    %eax,(%rsp)
mov    %r14d,%eax
shr    %eax
and    $0x1,%eax
lea    0x4(%rsp),%r15
mov    %eax,0x4(%rsp)
mov    %r14d,%eax
shr    $0x2,%eax
and    $0x1,%eax
lea    0x8(%rsp),%rcx
mov    %eax,0x8(%rsp)
mov    %r14d,%eax
shr    $0x3,%eax
and    $0x1,%eax
lea    0xc(%rsp),%r13
mov    %eax,0xc(%rsp)
shr    $0x4,%r14d
and    $0x1,%r14d
lea    0x10(%rsp),%r12
mov    %r14d,0x10(%rsp)
mov    %ebx,%eax
and    $0x1,%eax
mov    %eax,0x20(%rsp)
mov    %ebx,%eax
shr    %eax
and    $0x1,%eax
mov    %eax,0x24(%rsp)
mov    %ebx,%eax
shr    $0x2,%eax
and    $0x1,%eax
mov    %eax,0x28(%rsp)
mov    %ebx,%eax
shr    $0x3,%eax
and    $0x1,%eax
mov    %eax,0x2c(%rsp)
mov    %ebx,%eax
shr    $0x4,%eax
and    $0x1,%eax
mov    %eax,0x30(%rsp)
mov    %ebx,%eax
shr    $0x5,%eax
and    $0x1,%eax
mov    %eax,0x34(%rsp)
mov    %ebx,%eax
shr    $0x6,%eax
and    $0x1,%eax
mov    %eax,0x38(%rsp)
mov    %ebx,%eax
shr    $0x7,%eax
and    $0x1,%eax
mov    %eax,0x3c(%rsp)
shr    $0x8,%ebx
and    $0x1,%ebx
mov    %ebx,0x40(%rsp)
mov    %ebp,%eax
and    $0x1,%eax
mov    %eax,0x44(%rsp)
mov    %ebp,%eax
shr    %eax
and    $0x1,%eax
mov    %eax,0x48(%rsp)
mov    %ebp,%eax
shr    $0x2,%eax
and    $0x1,%eax
mov    %eax,0x4c(%rsp)
mov    %ebp,%eax
shr    $0x3,%eax
and    $0x1,%eax
mov    %eax,0x50(%rsp)
shr    $0x4,%ebp
and    $0x1,%ebp
mov    %ebp,0x54(%rsp)
mov    %ebp,%edi
mov    %r15,%rsi
mov    %rcx,%rbx
mov    %rcx,%rdx
call   1030 <BFLY@plt>
mov    0x50(%rsp),%edi
mov    %rsp,%rbp
mov    %rbp,%rsi
mov    %r13,%rdx
call   1030 <BFLY@plt>
mov    0x4c(%rsp),%edi
mov    %r15,%rsi
mov    %r13,%rdx
call   1030 <BFLY@plt>
mov    0x48(%rsp),%edi
mov    %rbx,%rsi
mov    %r12,%rdx
call   1030 <BFLY@plt>
mov    0x44(%rsp),%edi
mov    %rbp,%rsi
mov    %r13,%rdx
call   1030 <BFLY@plt>
mov    0x40(%rsp),%edi
mov    %r15,%rsi
mov    %r12,%rdx
call   1030 <BFLY@plt>
mov    0x3c(%rsp),%edi
mov    %r13,%rsi
mov    %r12,%rdx
call   1030 <BFLY@plt>
mov    0x38(%rsp),%edi
mov    %rbp,%rsi
mov    %rbx,%rdx
call   1030 <BFLY@plt>
mov    0x34(%rsp),%edi
mov    %r15,%rsi
mov    %r13,%rdx
call   1030 <BFLY@plt>
mov    0x30(%rsp),%edi
mov    %rbp,%rsi
mov    %r12,%rdx
call   1030 <BFLY@plt>
mov    0x2c(%rsp),%edi
mov    %r13,%rsi
mov    %r12,%rdx
call   1030 <BFLY@plt>
mov    0x28(%rsp),%edi
mov    %r15,%rsi
mov    %rbx,%rdx
call   1030 <BFLY@plt>
mov    0x24(%rsp),%edi
mov    %rbx,%rsi
mov    %r13,%rdx
call   1030 <BFLY@plt>
mov    0x20(%rsp),%edi
mov    %rbp,%rsi
mov    %r15,%rdx
call   1030 <BFLY@plt>
movdqu 0x4(%rsp),%xmm0
movdqa 0xce5(%rip),%xmm1
pshufd $0xf5,%xmm0,%xmm2
pmuludq %xmm1,%xmm0
pshufd $0xe8,%xmm0,%xmm0
pmuludq 0xcdf(%rip),%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm0
pand   %xmm1,%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%eax
add    (%rsp),%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @PERM(i32 %0, i32 %1, i32 %2) {
%4 = alloca [5 x i32]
%5 = alloca [14 x i32]
%6 = bitcast [5 x i32]* %4 to i8*
%7 = bitcast [14 x i32]* %5 to i8*
%8 = or i32 %1, %0
%9 = xor i32 %2, -1
%10 = lshr i32 %9, 31
%11 = icmp slt i32 %8, 0
%12 = select i1 %11, i32 0, i32 %10
%13 = tail call i32 @assert(i32 %12)
%14 = and i32 %0, 1
%15 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 0
store i32 %14, i32* %15
%16 = lshr i32 %0, 1
%17 = and i32 %16, 1
%18 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 1
store i32 %17, i32* %18
%19 = lshr i32 %0, 2
%20 = and i32 %19, 1
%21 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 2
store i32 %20, i32* %21
%22 = lshr i32 %0, 3
%23 = and i32 %22, 1
%24 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 3
store i32 %23, i32* %24
%25 = lshr i32 %0, 4
%26 = and i32 %25, 1
%27 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 4
store i32 %26, i32* %27
%28 = and i32 %2, 1
%29 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 0
store i32 %28, i32* %29
%30 = lshr i32 %2, 1
%31 = and i32 %30, 1
%32 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 1
store i32 %31, i32* %32
%33 = lshr i32 %2, 2
%34 = and i32 %33, 1
%35 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 2
store i32 %34, i32* %35
%36 = lshr i32 %2, 3
%37 = and i32 %36, 1
%38 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 3
store i32 %37, i32* %38
%39 = lshr i32 %2, 4
%40 = and i32 %39, 1
%41 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 4
store i32 %40, i32* %41
%42 = lshr i32 %2, 5
%43 = and i32 %42, 1
%44 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 5
store i32 %43, i32* %44
%45 = lshr i32 %2, 6
%46 = and i32 %45, 1
%47 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 6
store i32 %46, i32* %47
%48 = lshr i32 %2, 7
%49 = and i32 %48, 1
%50 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 7
store i32 %49, i32* %50
%51 = lshr i32 %2, 8
%52 = and i32 %51, 1
%53 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 8
store i32 %52, i32* %53
%54 = and i32 %1, 1
%55 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 9
store i32 %54, i32* %55
%56 = lshr i32 %1, 1
%57 = and i32 %56, 1
%58 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 10
store i32 %57, i32* %58
%59 = lshr i32 %1, 2
%60 = and i32 %59, 1
%61 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 11
store i32 %60, i32* %61
%62 = lshr i32 %1, 3
%63 = and i32 %62, 1
%64 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 12
store i32 %63, i32* %64
%65 = lshr i32 %1, 4
%66 = and i32 %65, 1
%67 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 13
store i32 %66, i32* %67
%68 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 13
%69 = load i32, i32* %68
%70 = call i32 @BFLY(i32 %69, i32* %18, i32* %21)
%71 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 12
%72 = load i32, i32* %71
%73 = call i32 @BFLY(i32 %72, i32* %15, i32* %24)
%74 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 11
%75 = load i32, i32* %74
%76 = call i32 @BFLY(i32 %75, i32* %18, i32* %24)
%77 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 10
%78 = load i32, i32* %77
%79 = call i32 @BFLY(i32 %78, i32* %21, i32* %27)
%80 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 9
%81 = load i32, i32* %80
%82 = call i32 @BFLY(i32 %81, i32* %15, i32* %24)
%83 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 8
%84 = load i32, i32* %83
%85 = call i32 @BFLY(i32 %84, i32* %18, i32* %27)
%86 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 7
%87 = load i32, i32* %86
%88 = call i32 @BFLY(i32 %87, i32* %24, i32* %27)
%89 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 6
%90 = load i32, i32* %89
%91 = call i32 @BFLY(i32 %90, i32* %15, i32* %21)
%92 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 5
%93 = load i32, i32* %92
%94 = call i32 @BFLY(i32 %93, i32* %18, i32* %24)
%95 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 4
%96 = load i32, i32* %95
%97 = call i32 @BFLY(i32 %96, i32* %15, i32* %27)
%98 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 3
%99 = load i32, i32* %98
%100 = call i32 @BFLY(i32 %99, i32* %24, i32* %27)
%101 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 2
%102 = load i32, i32* %101
%103 = call i32 @BFLY(i32 %102, i32* %18, i32* %21)
%104 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 1
%105 = load i32, i32* %104
%106 = call i32 @BFLY(i32 %105, i32* %21, i32* %24)
%107 = getelementptr inbounds [14 x i32], [14 x i32]* %5, i64 0, i64 0
%108 = load i32, i32* %107
%109 = call i32 @BFLY(i32 %108, i32* %15, i32* %18)
%110 = load i32, i32* %15
%111 = bitcast i32* %18 to <4 x i32>*
%112 = load <4 x i32>, <4 x i32>* %111
%113 = shl <4 x i32> %112, <i32 1, i32 2, i32 3, i32 4>
%114 = and <4 x i32> %113, <i32 2, i32 4, i32 8, i32 16>
%115 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %114)
%116 = add nsw i32 %115, %110
ret i32 %116
}