#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 uintptr_t x9;
typedef uintptr_t x8;
typedef uintptr_t x7;
typedef uintptr_t x6;
typedef uintptr_t x5;
typedef uintptr_t x4;
typedef uintptr_t x3;
typedef uintptr_t x2;
typedef uintptr_t x17;
typedef uintptr_t x16;
typedef uintptr_t x15;
typedef uintptr_t x14;
typedef uintptr_t x13;
typedef uintptr_t x12;
typedef uintptr_t x11;
typedef uintptr_t x10;
typedef uintptr_t x1;
typedef uintptr_t x0;
typedef int /*<<< orphan*/ out0;
typedef int /*<<< orphan*/ in2;
typedef int /*<<< orphan*/ in1;

/* Variables and functions */
uintptr_t _br2_load(int /*<<< orphan*/, int);
int /*<<< orphan*/ _br2_store(int /*<<< orphan*/, uintptr_t, int);
void internal_fiat_p521_selectznz(uintptr_t out0, uintptr_t in0, uintptr_t in1,
                                  uintptr_t in2) {
  uintptr_t x9, x18, x0, x19, x10, x21, x1, x22, x11, x24, x2, x25, x12, x27,
      x3, x28, x13, x30, x4, x31, x14, x33, x5, x34, x15, x36, x6, x37, x16,
      x39, x7, x40, x17, x42, x8, x43, x20, x23, x26, x29, x32, x35, x38, x41,
      x44, x45, x46, x47, x48, x49, x50, x51, x52, x53;
  x0 = _br2_load((in1) + ((uintptr_t)0ULL), sizeof(uintptr_t));
  x1 = _br2_load((in1) + ((uintptr_t)8ULL), sizeof(uintptr_t));
  x2 = _br2_load((in1) + ((uintptr_t)16ULL), sizeof(uintptr_t));
  x3 = _br2_load((in1) + ((uintptr_t)24ULL), sizeof(uintptr_t));
  x4 = _br2_load((in1) + ((uintptr_t)32ULL), sizeof(uintptr_t));
  x5 = _br2_load((in1) + ((uintptr_t)40ULL), sizeof(uintptr_t));
  x6 = _br2_load((in1) + ((uintptr_t)48ULL), sizeof(uintptr_t));
  x7 = _br2_load((in1) + ((uintptr_t)56ULL), sizeof(uintptr_t));
  x8 = _br2_load((in1) + ((uintptr_t)64ULL), sizeof(uintptr_t));
  x9 = _br2_load((in2) + ((uintptr_t)0ULL), sizeof(uintptr_t));
  x10 = _br2_load((in2) + ((uintptr_t)8ULL), sizeof(uintptr_t));
  x11 = _br2_load((in2) + ((uintptr_t)16ULL), sizeof(uintptr_t));
  x12 = _br2_load((in2) + ((uintptr_t)24ULL), sizeof(uintptr_t));
  x13 = _br2_load((in2) + ((uintptr_t)32ULL), sizeof(uintptr_t));
  x14 = _br2_load((in2) + ((uintptr_t)40ULL), sizeof(uintptr_t));
  x15 = _br2_load((in2) + ((uintptr_t)48ULL), sizeof(uintptr_t));
  x16 = _br2_load((in2) + ((uintptr_t)56ULL), sizeof(uintptr_t));
  x17 = _br2_load((in2) + ((uintptr_t)64ULL), sizeof(uintptr_t));
  x18 = ((uintptr_t)-1ULL) + ((in0) == ((uintptr_t)0ULL));
  x19 = (x18) ^ ((uintptr_t)18446744073709551615ULL);
  x20 = ((x9) & (x18)) | ((x0) & (x19));
  x21 = ((uintptr_t)-1ULL) + ((in0) == ((uintptr_t)0ULL));
  x22 = (x21) ^ ((uintptr_t)18446744073709551615ULL);
  x23 = ((x10) & (x21)) | ((x1) & (x22));
  x24 = ((uintptr_t)-1ULL) + ((in0) == ((uintptr_t)0ULL));
  x25 = (x24) ^ ((uintptr_t)18446744073709551615ULL);
  x26 = ((x11) & (x24)) | ((x2) & (x25));
  x27 = ((uintptr_t)-1ULL) + ((in0) == ((uintptr_t)0ULL));
  x28 = (x27) ^ ((uintptr_t)18446744073709551615ULL);
  x29 = ((x12) & (x27)) | ((x3) & (x28));
  x30 = ((uintptr_t)-1ULL) + ((in0) == ((uintptr_t)0ULL));
  x31 = (x30) ^ ((uintptr_t)18446744073709551615ULL);
  x32 = ((x13) & (x30)) | ((x4) & (x31));
  x33 = ((uintptr_t)-1ULL) + ((in0) == ((uintptr_t)0ULL));
  x34 = (x33) ^ ((uintptr_t)18446744073709551615ULL);
  x35 = ((x14) & (x33)) | ((x5) & (x34));
  x36 = ((uintptr_t)-1ULL) + ((in0) == ((uintptr_t)0ULL));
  x37 = (x36) ^ ((uintptr_t)18446744073709551615ULL);
  x38 = ((x15) & (x36)) | ((x6) & (x37));
  x39 = ((uintptr_t)-1ULL) + ((in0) == ((uintptr_t)0ULL));
  x40 = (x39) ^ ((uintptr_t)18446744073709551615ULL);
  x41 = ((x16) & (x39)) | ((x7) & (x40));
  x42 = ((uintptr_t)-1ULL) + ((in0) == ((uintptr_t)0ULL));
  x43 = (x42) ^ ((uintptr_t)18446744073709551615ULL);
  x44 = ((x17) & (x42)) | ((x8) & (x43));
  x45 = x20;
  x46 = x23;
  x47 = x26;
  x48 = x29;
  x49 = x32;
  x50 = x35;
  x51 = x38;
  x52 = x41;
  x53 = x44;
  _br2_store((out0) + ((uintptr_t)0ULL), x45, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)8ULL), x46, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)16ULL), x47, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)24ULL), x48, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)32ULL), x49, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)40ULL), x50, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)48ULL), x51, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)56ULL), x52, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)64ULL), x53, sizeof(uintptr_t));
  return;
}


x86 assembly (clang, -O0):
<internal_fiat_p521_selectznz>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1d0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x18(%rbp),%rax
add    $0x0,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x38(%rbp)
mov    -0x18(%rbp),%rax
add    $0x8,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x58(%rbp)
mov    -0x18(%rbp),%rax
add    $0x10,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x78(%rbp)
mov    -0x18(%rbp),%rax
add    $0x18,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x98(%rbp)
mov    -0x18(%rbp),%rax
add    $0x20,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0xb8(%rbp)
mov    -0x18(%rbp),%rax
add    $0x28,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0xd8(%rbp)
mov    -0x18(%rbp),%rax
add    $0x30,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0xf8(%rbp)
mov    -0x18(%rbp),%rax
add    $0x38,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x118(%rbp)
mov    -0x18(%rbp),%rax
add    $0x40,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x138(%rbp)
mov    -0x20(%rbp),%rax
add    $0x0,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x48(%rbp)
mov    -0x20(%rbp),%rax
add    $0x10,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x68(%rbp)
mov    -0x20(%rbp),%rax
add    $0x18,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x88(%rbp)
mov    -0x20(%rbp),%rax
add    $0x20,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0xa8(%rbp)
mov    -0x20(%rbp),%rax
add    $0x28,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0xc8(%rbp)
mov    -0x20(%rbp),%rax
add    $0x30,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0xe8(%rbp)
mov    -0x20(%rbp),%rax
add    $0x38,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x108(%rbp)
mov    -0x20(%rbp),%rax
add    $0x40,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x128(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cltq
add    $0xffffffffffffffff,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
xor    $0xffffffffffffffff,%rax
mov    %rax,-0x40(%rbp)
mov    -0x28(%rbp),%rax
and    -0x30(%rbp),%rax
mov    -0x38(%rbp),%rcx
and    -0x40(%rbp),%rcx
or     %rcx,%rax
mov    %rax,-0x148(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cltq
add    $0xffffffffffffffff,%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
xor    $0xffffffffffffffff,%rax
mov    %rax,-0x60(%rbp)
mov    -0x48(%rbp),%rax
and    -0x50(%rbp),%rax
mov    -0x58(%rbp),%rcx
and    -0x60(%rbp),%rcx
or     %rcx,%rax
mov    %rax,-0x150(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cltq
add    $0xffffffffffffffff,%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
xor    $0xffffffffffffffff,%rax
mov    %rax,-0x80(%rbp)
mov    -0x68(%rbp),%rax
and    -0x70(%rbp),%rax
mov    -0x78(%rbp),%rcx
and    -0x80(%rbp),%rcx
or     %rcx,%rax
mov    %rax,-0x158(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cltq
add    $0xffffffffffffffff,%rax
mov    %rax,-0x90(%rbp)
mov    -0x90(%rbp),%rax
xor    $0xffffffffffffffff,%rax
mov    %rax,-0xa0(%rbp)
mov    -0x88(%rbp),%rax
and    -0x90(%rbp),%rax
mov    -0x98(%rbp),%rcx
and    -0xa0(%rbp),%rcx
or     %rcx,%rax
mov    %rax,-0x160(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cltq
add    $0xffffffffffffffff,%rax
mov    %rax,-0xb0(%rbp)
mov    -0xb0(%rbp),%rax
xor    $0xffffffffffffffff,%rax
mov    %rax,-0xc0(%rbp)
mov    -0xa8(%rbp),%rax
and    -0xb0(%rbp),%rax
mov    -0xb8(%rbp),%rcx
and    -0xc0(%rbp),%rcx
or     %rcx,%rax
mov    %rax,-0x168(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cltq
add    $0xffffffffffffffff,%rax
mov    %rax,-0xd0(%rbp)
mov    -0xd0(%rbp),%rax
xor    $0xffffffffffffffff,%rax
mov    %rax,-0xe0(%rbp)
mov    -0xc8(%rbp),%rax
and    -0xd0(%rbp),%rax
mov    -0xd8(%rbp),%rcx
and    -0xe0(%rbp),%rcx
or     %rcx,%rax
mov    %rax,-0x170(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cltq
add    $0xffffffffffffffff,%rax
mov    %rax,-0xf0(%rbp)
mov    -0xf0(%rbp),%rax
xor    $0xffffffffffffffff,%rax
mov    %rax,-0x100(%rbp)
mov    -0xe8(%rbp),%rax
and    -0xf0(%rbp),%rax
mov    -0xf8(%rbp),%rcx
and    -0x100(%rbp),%rcx
or     %rcx,%rax
mov    %rax,-0x178(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cltq
add    $0xffffffffffffffff,%rax
mov    %rax,-0x110(%rbp)
mov    -0x110(%rbp),%rax
xor    $0xffffffffffffffff,%rax
mov    %rax,-0x120(%rbp)
mov    -0x108(%rbp),%rax
and    -0x110(%rbp),%rax
mov    -0x118(%rbp),%rcx
and    -0x120(%rbp),%rcx
or     %rcx,%rax
mov    %rax,-0x180(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cltq
add    $0xffffffffffffffff,%rax
mov    %rax,-0x130(%rbp)
mov    -0x130(%rbp),%rax
xor    $0xffffffffffffffff,%rax
mov    %rax,-0x140(%rbp)
mov    -0x128(%rbp),%rax
and    -0x130(%rbp),%rax
mov    -0x138(%rbp),%rcx
and    -0x140(%rbp),%rcx
or     %rcx,%rax
mov    %rax,-0x188(%rbp)
mov    -0x148(%rbp),%rax
mov    %rax,-0x190(%rbp)
mov    -0x150(%rbp),%rax
mov    %rax,-0x198(%rbp)
mov    -0x158(%rbp),%rax
mov    %rax,-0x1a0(%rbp)
mov    -0x160(%rbp),%rax
mov    %rax,-0x1a8(%rbp)
mov    -0x168(%rbp),%rax
mov    %rax,-0x1b0(%rbp)
mov    -0x170(%rbp),%rax
mov    %rax,-0x1b8(%rbp)
mov    -0x178(%rbp),%rax
mov    %rax,-0x1c0(%rbp)
mov    -0x180(%rbp),%rax
mov    %rax,-0x1c8(%rbp)
mov    -0x188(%rbp),%rax
mov    %rax,-0x1d0(%rbp)
mov    -0x8(%rbp),%rax
add    $0x0,%rax
mov    %eax,%edi
mov    -0x190(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x8,%rax
mov    %eax,%edi
mov    -0x198(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rax
mov    %eax,%edi
mov    -0x1a0(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x18,%rax
mov    %eax,%edi
mov    -0x1a8(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x20,%rax
mov    %eax,%edi
mov    -0x1b0(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x28,%rax
mov    %eax,%edi
mov    -0x1b8(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x30,%rax
mov    %eax,%edi
mov    -0x1c0(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x38,%rax
mov    %eax,%edi
mov    -0x1c8(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x40,%rax
mov    %eax,%edi
mov    -0x1d0(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
add    $0x1d0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<internal_fiat_p521_selectznz>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %rcx,%rbx
mov    %rdx,%rbp
mov    %rsi,0x18(%rsp)
mov    %rdi,0x38(%rsp)
mov    %ebp,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x10(%rsp)
lea    0x8(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x8(%rsp)
lea    0x10(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x70(%rsp)
lea    0x18(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x68(%rsp)
lea    0x20(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x60(%rsp)
lea    0x28(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x58(%rsp)
lea    0x30(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x50(%rsp)
lea    0x38(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x48(%rsp)
add    $0x40,%ebp
mov    %ebp,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x40(%rsp)
mov    %ebx,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r13
lea    0x8(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%rbp
lea    0x10(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x30(%rsp)
lea    0x18(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r15
lea    0x20(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r14
lea    0x28(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x28(%rsp)
lea    0x30(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x20(%rsp)
lea    0x38(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r12
add    $0x40,%ebx
mov    %ebx,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
cmpq   $0x0,0x18(%rsp)
mov    %r13,%rsi
cmove  0x10(%rsp),%rsi
cmove  0x8(%rsp),%rbp
mov    %rbp,0x8(%rsp)
mov    0x30(%rsp),%r13
cmove  0x70(%rsp),%r13
cmove  0x68(%rsp),%r15
mov    %r15,0x10(%rsp)
cmove  0x60(%rsp),%r14
mov    %r14,0x18(%rsp)
mov    0x28(%rsp),%rbp
cmove  0x58(%rsp),%rbp
mov    0x20(%rsp),%r15
cmove  0x50(%rsp),%r15
cmove  0x48(%rsp),%r12
mov    0x40(%rsp),%r14
cmovne %rax,%r14
mov    0x38(%rsp),%rbx
mov    %ebx,%edi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x8(%rbx),%edi
mov    0x8(%rsp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x10(%rbx),%edi
mov    %r13,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x18(%rbx),%edi
mov    0x10(%rsp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x20(%rbx),%edi
mov    0x18(%rsp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x28(%rbx),%edi
mov    %rbp,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x30(%rbx),%edi
mov    %r15,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x38(%rbx),%edi
mov    %r12,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
add    $0x40,%ebx
mov    %ebx,%edi
mov    %r14,%rsi
mov    $0x8,%edx
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <_br2_store@plt>

LLVM IR (-O0):
define void @internal_fiat_p521_selectznz(i64 %0, i64 %1, i64 %2, i64 %3) {
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64
%13 = alloca i64
%14 = alloca i64
%15 = alloca i64
%16 = alloca i64
%17 = alloca i64
%18 = alloca i64
%19 = alloca i64
%20 = alloca i64
%21 = alloca i64
%22 = alloca i64
%23 = alloca i64
%24 = alloca i64
%25 = alloca i64
%26 = alloca i64
%27 = alloca i64
%28 = alloca i64
%29 = alloca i64
%30 = alloca i64
%31 = alloca i64
%32 = alloca i64
%33 = alloca i64
%34 = alloca i64
%35 = alloca i64
%36 = alloca i64
%37 = alloca i64
%38 = alloca i64
%39 = alloca i64
%40 = alloca i64
%41 = alloca i64
%42 = alloca i64
%43 = alloca i64
%44 = alloca i64
%45 = alloca i64
%46 = alloca i64
%47 = alloca i64
%48 = alloca i64
%49 = alloca i64
%50 = alloca i64
%51 = alloca i64
%52 = alloca i64
%53 = alloca i64
%54 = alloca i64
%55 = alloca i64
%56 = alloca i64
%57 = alloca i64
%58 = alloca i64
%59 = alloca i64
%60 = alloca i64
%61 = alloca i64
%62 = alloca i64
store i64 %0, i64* %5
store i64 %1, i64* %6
store i64 %2, i64* %7
store i64 %3, i64* %8
%63 = load i64, i64* %7
%64 = add i64 %63, 0
%65 = trunc i64 %64 to i32
%66 = call i64 @_br2_load(i32 %65, i32 8)
store i64 %66, i64* %11
%67 = load i64, i64* %7
%68 = add i64 %67, 8
%69 = trunc i64 %68 to i32
%70 = call i64 @_br2_load(i32 %69, i32 8)
store i64 %70, i64* %15
%71 = load i64, i64* %7
%72 = add i64 %71, 16
%73 = trunc i64 %72 to i32
%74 = call i64 @_br2_load(i32 %73, i32 8)
store i64 %74, i64* %19
%75 = load i64, i64* %7
%76 = add i64 %75, 24
%77 = trunc i64 %76 to i32
%78 = call i64 @_br2_load(i32 %77, i32 8)
store i64 %78, i64* %23
%79 = load i64, i64* %7
%80 = add i64 %79, 32
%81 = trunc i64 %80 to i32
%82 = call i64 @_br2_load(i32 %81, i32 8)
store i64 %82, i64* %27
%83 = load i64, i64* %7
%84 = add i64 %83, 40
%85 = trunc i64 %84 to i32
%86 = call i64 @_br2_load(i32 %85, i32 8)
store i64 %86, i64* %31
%87 = load i64, i64* %7
%88 = add i64 %87, 48
%89 = trunc i64 %88 to i32
%90 = call i64 @_br2_load(i32 %89, i32 8)
store i64 %90, i64* %35
%91 = load i64, i64* %7
%92 = add i64 %91, 56
%93 = trunc i64 %92 to i32
%94 = call i64 @_br2_load(i32 %93, i32 8)
store i64 %94, i64* %39
%95 = load i64, i64* %7
%96 = add i64 %95, 64
%97 = trunc i64 %96 to i32
%98 = call i64 @_br2_load(i32 %97, i32 8)
store i64 %98, i64* %43
%99 = load i64, i64* %8
%100 = add i64 %99, 0
%101 = trunc i64 %100 to i32
%102 = call i64 @_br2_load(i32 %101, i32 8)
store i64 %102, i64* %9
%103 = load i64, i64* %8
%104 = add i64 %103, 8
%105 = trunc i64 %104 to i32
%106 = call i64 @_br2_load(i32 %105, i32 8)
store i64 %106, i64* %13
%107 = load i64, i64* %8
%108 = add i64 %107, 16
%109 = trunc i64 %108 to i32
%110 = call i64 @_br2_load(i32 %109, i32 8)
store i64 %110, i64* %17
%111 = load i64, i64* %8
%112 = add i64 %111, 24
%113 = trunc i64 %112 to i32
%114 = call i64 @_br2_load(i32 %113, i32 8)
store i64 %114, i64* %21
%115 = load i64, i64* %8
%116 = add i64 %115, 32
%117 = trunc i64 %116 to i32
%118 = call i64 @_br2_load(i32 %117, i32 8)
store i64 %118, i64* %25
%119 = load i64, i64* %8
%120 = add i64 %119, 40
%121 = trunc i64 %120 to i32
%122 = call i64 @_br2_load(i32 %121, i32 8)
store i64 %122, i64* %29
%123 = load i64, i64* %8
%124 = add i64 %123, 48
%125 = trunc i64 %124 to i32
%126 = call i64 @_br2_load(i32 %125, i32 8)
store i64 %126, i64* %33
%127 = load i64, i64* %8
%128 = add i64 %127, 56
%129 = trunc i64 %128 to i32
%130 = call i64 @_br2_load(i32 %129, i32 8)
store i64 %130, i64* %37
%131 = load i64, i64* %8
%132 = add i64 %131, 64
%133 = trunc i64 %132 to i32
%134 = call i64 @_br2_load(i32 %133, i32 8)
store i64 %134, i64* %41
%135 = load i64, i64* %6
%136 = icmp eq i64 %135, 0
%137 = zext i1 %136 to i32
%138 = sext i32 %137 to i64
%139 = add i64 -1, %138
store i64 %139, i64* %10
%140 = load i64, i64* %10
%141 = xor i64 %140, -1
store i64 %141, i64* %12
%142 = load i64, i64* %9
%143 = load i64, i64* %10
%144 = and i64 %142, %143
%145 = load i64, i64* %11
%146 = load i64, i64* %12
%147 = and i64 %145, %146
%148 = or i64 %144, %147
store i64 %148, i64* %45
%149 = load i64, i64* %6
%150 = icmp eq i64 %149, 0
%151 = zext i1 %150 to i32
%152 = sext i32 %151 to i64
%153 = add i64 -1, %152
store i64 %153, i64* %14
%154 = load i64, i64* %14
%155 = xor i64 %154, -1
store i64 %155, i64* %16
%156 = load i64, i64* %13
%157 = load i64, i64* %14
%158 = and i64 %156, %157
%159 = load i64, i64* %15
%160 = load i64, i64* %16
%161 = and i64 %159, %160
%162 = or i64 %158, %161
store i64 %162, i64* %46
%163 = load i64, i64* %6
%164 = icmp eq i64 %163, 0
%165 = zext i1 %164 to i32
%166 = sext i32 %165 to i64
%167 = add i64 -1, %166
store i64 %167, i64* %18
%168 = load i64, i64* %18
%169 = xor i64 %168, -1
store i64 %169, i64* %20
%170 = load i64, i64* %17
%171 = load i64, i64* %18
%172 = and i64 %170, %171
%173 = load i64, i64* %19
%174 = load i64, i64* %20
%175 = and i64 %173, %174
%176 = or i64 %172, %175
store i64 %176, i64* %47
%177 = load i64, i64* %6
%178 = icmp eq i64 %177, 0
%179 = zext i1 %178 to i32
%180 = sext i32 %179 to i64
%181 = add i64 -1, %180
store i64 %181, i64* %22
%182 = load i64, i64* %22
%183 = xor i64 %182, -1
store i64 %183, i64* %24
%184 = load i64, i64* %21
%185 = load i64, i64* %22
%186 = and i64 %184, %185
%187 = load i64, i64* %23
%188 = load i64, i64* %24
%189 = and i64 %187, %188
%190 = or i64 %186, %189
store i64 %190, i64* %48
%191 = load i64, i64* %6
%192 = icmp eq i64 %191, 0
%193 = zext i1 %192 to i32
%194 = sext i32 %193 to i64
%195 = add i64 -1, %194
store i64 %195, i64* %26
%196 = load i64, i64* %26
%197 = xor i64 %196, -1
store i64 %197, i64* %28
%198 = load i64, i64* %25
%199 = load i64, i64* %26
%200 = and i64 %198, %199
%201 = load i64, i64* %27
%202 = load i64, i64* %28
%203 = and i64 %201, %202
%204 = or i64 %200, %203
store i64 %204, i64* %49
%205 = load i64, i64* %6
%206 = icmp eq i64 %205, 0
%207 = zext i1 %206 to i32
%208 = sext i32 %207 to i64
%209 = add i64 -1, %208
store i64 %209, i64* %30
%210 = load i64, i64* %30
%211 = xor i64 %210, -1
store i64 %211, i64* %32
%212 = load i64, i64* %29
%213 = load i64, i64* %30
%214 = and i64 %212, %213
%215 = load i64, i64* %31
%216 = load i64, i64* %32
%217 = and i64 %215, %216
%218 = or i64 %214, %217
store i64 %218, i64* %50
%219 = load i64, i64* %6
%220 = icmp eq i64 %219, 0
%221 = zext i1 %220 to i32
%222 = sext i32 %221 to i64
%223 = add i64 -1, %222
store i64 %223, i64* %34
%224 = load i64, i64* %34
%225 = xor i64 %224, -1
store i64 %225, i64* %36
%226 = load i64, i64* %33
%227 = load i64, i64* %34
%228 = and i64 %226, %227
%229 = load i64, i64* %35
%230 = load i64, i64* %36
%231 = and i64 %229, %230
%232 = or i64 %228, %231
store i64 %232, i64* %51
%233 = load i64, i64* %6
%234 = icmp eq i64 %233, 0
%235 = zext i1 %234 to i32
%236 = sext i32 %235 to i64
%237 = add i64 -1, %236
store i64 %237, i64* %38
%238 = load i64, i64* %38
%239 = xor i64 %238, -1
store i64 %239, i64* %40
%240 = load i64, i64* %37
%241 = load i64, i64* %38
%242 = and i64 %240, %241
%243 = load i64, i64* %39
%244 = load i64, i64* %40
%245 = and i64 %243, %244
%246 = or i64 %242, %245
store i64 %246, i64* %52
%247 = load i64, i64* %6
%248 = icmp eq i64 %247, 0
%249 = zext i1 %248 to i32
%250 = sext i32 %249 to i64
%251 = add i64 -1, %250
store i64 %251, i64* %42
%252 = load i64, i64* %42
%253 = xor i64 %252, -1
store i64 %253, i64* %44
%254 = load i64, i64* %41
%255 = load i64, i64* %42
%256 = and i64 %254, %255
%257 = load i64, i64* %43
%258 = load i64, i64* %44
%259 = and i64 %257, %258
%260 = or i64 %256, %259
store i64 %260, i64* %53
%261 = load i64, i64* %45
store i64 %261, i64* %54
%262 = load i64, i64* %46
store i64 %262, i64* %55
%263 = load i64, i64* %47
store i64 %263, i64* %56
%264 = load i64, i64* %48
store i64 %264, i64* %57
%265 = load i64, i64* %49
store i64 %265, i64* %58
%266 = load i64, i64* %50
store i64 %266, i64* %59
%267 = load i64, i64* %51
store i64 %267, i64* %60
%268 = load i64, i64* %52
store i64 %268, i64* %61
%269 = load i64, i64* %53
store i64 %269, i64* %62
%270 = load i64, i64* %5
%271 = add i64 %270, 0
%272 = trunc i64 %271 to i32
%273 = load i64, i64* %54
%274 = call i32 @_br2_store(i32 %272, i64 %273, i32 8)
%275 = load i64, i64* %5
%276 = add i64 %275, 8
%277 = trunc i64 %276 to i32
%278 = load i64, i64* %55
%279 = call i32 @_br2_store(i32 %277, i64 %278, i32 8)
%280 = load i64, i64* %5
%281 = add i64 %280, 16
%282 = trunc i64 %281 to i32
%283 = load i64, i64* %56
%284 = call i32 @_br2_store(i32 %282, i64 %283, i32 8)
%285 = load i64, i64* %5
%286 = add i64 %285, 24
%287 = trunc i64 %286 to i32
%288 = load i64, i64* %57
%289 = call i32 @_br2_store(i32 %287, i64 %288, i32 8)
%290 = load i64, i64* %5
%291 = add i64 %290, 32
%292 = trunc i64 %291 to i32
%293 = load i64, i64* %58
%294 = call i32 @_br2_store(i32 %292, i64 %293, i32 8)
%295 = load i64, i64* %5
%296 = add i64 %295, 40
%297 = trunc i64 %296 to i32
%298 = load i64, i64* %59
%299 = call i32 @_br2_store(i32 %297, i64 %298, i32 8)
%300 = load i64, i64* %5
%301 = add i64 %300, 48
%302 = trunc i64 %301 to i32
%303 = load i64, i64* %60
%304 = call i32 @_br2_store(i32 %302, i64 %303, i32 8)
%305 = load i64, i64* %5
%306 = add i64 %305, 56
%307 = trunc i64 %306 to i32
%308 = load i64, i64* %61
%309 = call i32 @_br2_store(i32 %307, i64 %308, i32 8)
%310 = load i64, i64* %5
%311 = add i64 %310, 64
%312 = trunc i64 %311 to i32
%313 = load i64, i64* %62
%314 = call i32 @_br2_store(i32 %312, i64 %313, i32 8)
ret void
}

LLVM IR (-O2):
define void @internal_fiat_p521_selectznz(i64 %0, i64 %1, i64 %2, i64 %3) {
%5 = trunc i64 %2 to i32
%6 = tail call i64 @_br2_load(i32 %5, i32 8)
%7 = add i32 %5, 8
%8 = tail call i64 @_br2_load(i32 %7, i32 8)
%9 = add i32 %5, 16
%10 = tail call i64 @_br2_load(i32 %9, i32 8)
%11 = add i32 %5, 24
%12 = tail call i64 @_br2_load(i32 %11, i32 8)
%13 = add i32 %5, 32
%14 = tail call i64 @_br2_load(i32 %13, i32 8)
%15 = add i32 %5, 40
%16 = tail call i64 @_br2_load(i32 %15, i32 8)
%17 = add i32 %5, 48
%18 = tail call i64 @_br2_load(i32 %17, i32 8)
%19 = add i32 %5, 56
%20 = tail call i64 @_br2_load(i32 %19, i32 8)
%21 = add i32 %5, 64
%22 = tail call i64 @_br2_load(i32 %21, i32 8)
%23 = trunc i64 %3 to i32
%24 = tail call i64 @_br2_load(i32 %23, i32 8)
%25 = add i32 %23, 8
%26 = tail call i64 @_br2_load(i32 %25, i32 8)
%27 = add i32 %23, 16
%28 = tail call i64 @_br2_load(i32 %27, i32 8)
%29 = add i32 %23, 24
%30 = tail call i64 @_br2_load(i32 %29, i32 8)
%31 = add i32 %23, 32
%32 = tail call i64 @_br2_load(i32 %31, i32 8)
%33 = add i32 %23, 40
%34 = tail call i64 @_br2_load(i32 %33, i32 8)
%35 = add i32 %23, 48
%36 = tail call i64 @_br2_load(i32 %35, i32 8)
%37 = add i32 %23, 56
%38 = tail call i64 @_br2_load(i32 %37, i32 8)
%39 = add i32 %23, 64
%40 = tail call i64 @_br2_load(i32 %39, i32 8)
%41 = icmp eq i64 %1, 0
%42 = select i1 %41, i64 %6, i64 %24
%43 = select i1 %41, i64 %8, i64 %26
%44 = select i1 %41, i64 %10, i64 %28
%45 = select i1 %41, i64 %12, i64 %30
%46 = select i1 %41, i64 %14, i64 %32
%47 = select i1 %41, i64 %16, i64 %34
%48 = select i1 %41, i64 %18, i64 %36
%49 = select i1 %41, i64 %20, i64 %38
%50 = select i1 %41, i64 %22, i64 %40
%51 = trunc i64 %0 to i32
%52 = tail call i32 @_br2_store(i32 %51, i64 %42, i32 8)
%53 = add i32 %51, 8
%54 = tail call i32 @_br2_store(i32 %53, i64 %43, i32 8)
%55 = add i32 %51, 16
%56 = tail call i32 @_br2_store(i32 %55, i64 %44, i32 8)
%57 = add i32 %51, 24
%58 = tail call i32 @_br2_store(i32 %57, i64 %45, i32 8)
%59 = add i32 %51, 32
%60 = tail call i32 @_br2_store(i32 %59, i64 %46, i32 8)
%61 = add i32 %51, 40
%62 = tail call i32 @_br2_store(i32 %61, i64 %47, i32 8)
%63 = add i32 %51, 48
%64 = tail call i32 @_br2_store(i32 %63, i64 %48, i32 8)
%65 = add i32 %51, 56
%66 = tail call i32 @_br2_store(i32 %65, i64 %49, i32 8)
%67 = add i32 %51, 64
%68 = tail call i32 @_br2_store(i32 %67, i64 %50, i32 8)
ret void
}