#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 x23;
typedef uintptr_t x22;
typedef uintptr_t x21;
typedef uintptr_t x20;
typedef uintptr_t x2;
typedef uintptr_t x19;
typedef uintptr_t x18;
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_p384_selectznz(uintptr_t out0, uintptr_t in0, uintptr_t in1,
                                  uintptr_t in2) {
  uintptr_t x12, x24, x0, x25, x13, x27, x1, x28, x14, x30, x2, x31, x15, x33,
      x3, x34, x16, x36, x4, x37, x17, x39, x5, x40, x18, x42, x6, x43, x19,
      x45, x7, x46, x20, x48, x8, x49, x21, x51, x9, x52, x22, x54, x10, x55,
      x23, x57, x11, x58, x26, x29, x32, x35, x38, x41, x44, x47, x50, x53, x56,
      x59, x60, x61, x62, x63, x64, x65, x66, x67, x68, x69, x70, x71;
  x0 = _br2_load((in1) + ((uintptr_t)0ULL), sizeof(uintptr_t));
  x1 = _br2_load((in1) + ((uintptr_t)4ULL), sizeof(uintptr_t));
  x2 = _br2_load((in1) + ((uintptr_t)8ULL), sizeof(uintptr_t));
  x3 = _br2_load((in1) + ((uintptr_t)12ULL), sizeof(uintptr_t));
  x4 = _br2_load((in1) + ((uintptr_t)16ULL), sizeof(uintptr_t));
  x5 = _br2_load((in1) + ((uintptr_t)20ULL), sizeof(uintptr_t));
  x6 = _br2_load((in1) + ((uintptr_t)24ULL), sizeof(uintptr_t));
  x7 = _br2_load((in1) + ((uintptr_t)28ULL), sizeof(uintptr_t));
  x8 = _br2_load((in1) + ((uintptr_t)32ULL), sizeof(uintptr_t));
  x9 = _br2_load((in1) + ((uintptr_t)36ULL), sizeof(uintptr_t));
  x10 = _br2_load((in1) + ((uintptr_t)40ULL), sizeof(uintptr_t));
  x11 = _br2_load((in1) + ((uintptr_t)44ULL), sizeof(uintptr_t));
  x12 = _br2_load((in2) + ((uintptr_t)0ULL), sizeof(uintptr_t));
  x13 = _br2_load((in2) + ((uintptr_t)4ULL), sizeof(uintptr_t));
  x14 = _br2_load((in2) + ((uintptr_t)8ULL), sizeof(uintptr_t));
  x15 = _br2_load((in2) + ((uintptr_t)12ULL), sizeof(uintptr_t));
  x16 = _br2_load((in2) + ((uintptr_t)16ULL), sizeof(uintptr_t));
  x17 = _br2_load((in2) + ((uintptr_t)20ULL), sizeof(uintptr_t));
  x18 = _br2_load((in2) + ((uintptr_t)24ULL), sizeof(uintptr_t));
  x19 = _br2_load((in2) + ((uintptr_t)28ULL), sizeof(uintptr_t));
  x20 = _br2_load((in2) + ((uintptr_t)32ULL), sizeof(uintptr_t));
  x21 = _br2_load((in2) + ((uintptr_t)36ULL), sizeof(uintptr_t));
  x22 = _br2_load((in2) + ((uintptr_t)40ULL), sizeof(uintptr_t));
  x23 = _br2_load((in2) + ((uintptr_t)44ULL), sizeof(uintptr_t));
  x24 = ((uintptr_t)-1ULL) + ((in0) == ((uintptr_t)0ULL));
  x25 = (x24) ^ ((uintptr_t)4294967295ULL);
  x26 = ((x12) & (x24)) | ((x0) & (x25));
  x27 = ((uintptr_t)-1ULL) + ((in0) == ((uintptr_t)0ULL));
  x28 = (x27) ^ ((uintptr_t)4294967295ULL);
  x29 = ((x13) & (x27)) | ((x1) & (x28));
  x30 = ((uintptr_t)-1ULL) + ((in0) == ((uintptr_t)0ULL));
  x31 = (x30) ^ ((uintptr_t)4294967295ULL);
  x32 = ((x14) & (x30)) | ((x2) & (x31));
  x33 = ((uintptr_t)-1ULL) + ((in0) == ((uintptr_t)0ULL));
  x34 = (x33) ^ ((uintptr_t)4294967295ULL);
  x35 = ((x15) & (x33)) | ((x3) & (x34));
  x36 = ((uintptr_t)-1ULL) + ((in0) == ((uintptr_t)0ULL));
  x37 = (x36) ^ ((uintptr_t)4294967295ULL);
  x38 = ((x16) & (x36)) | ((x4) & (x37));
  x39 = ((uintptr_t)-1ULL) + ((in0) == ((uintptr_t)0ULL));
  x40 = (x39) ^ ((uintptr_t)4294967295ULL);
  x41 = ((x17) & (x39)) | ((x5) & (x40));
  x42 = ((uintptr_t)-1ULL) + ((in0) == ((uintptr_t)0ULL));
  x43 = (x42) ^ ((uintptr_t)4294967295ULL);
  x44 = ((x18) & (x42)) | ((x6) & (x43));
  x45 = ((uintptr_t)-1ULL) + ((in0) == ((uintptr_t)0ULL));
  x46 = (x45) ^ ((uintptr_t)4294967295ULL);
  x47 = ((x19) & (x45)) | ((x7) & (x46));
  x48 = ((uintptr_t)-1ULL) + ((in0) == ((uintptr_t)0ULL));
  x49 = (x48) ^ ((uintptr_t)4294967295ULL);
  x50 = ((x20) & (x48)) | ((x8) & (x49));
  x51 = ((uintptr_t)-1ULL) + ((in0) == ((uintptr_t)0ULL));
  x52 = (x51) ^ ((uintptr_t)4294967295ULL);
  x53 = ((x21) & (x51)) | ((x9) & (x52));
  x54 = ((uintptr_t)-1ULL) + ((in0) == ((uintptr_t)0ULL));
  x55 = (x54) ^ ((uintptr_t)4294967295ULL);
  x56 = ((x22) & (x54)) | ((x10) & (x55));
  x57 = ((uintptr_t)-1ULL) + ((in0) == ((uintptr_t)0ULL));
  x58 = (x57) ^ ((uintptr_t)4294967295ULL);
  x59 = ((x23) & (x57)) | ((x11) & (x58));
  x60 = x26;
  x61 = x29;
  x62 = x32;
  x63 = x35;
  x64 = x38;
  x65 = x41;
  x66 = x44;
  x67 = x47;
  x68 = x50;
  x69 = x53;
  x70 = x56;
  x71 = x59;
  _br2_store((out0) + ((uintptr_t)0ULL), x60, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)4ULL), x61, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)8ULL), x62, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)12ULL), x63, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)16ULL), x64, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)20ULL), x65, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)24ULL), x66, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)28ULL), x67, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)32ULL), x68, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)36ULL), x69, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)40ULL), x70, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)44ULL), x71, sizeof(uintptr_t));
  return;
}


x86 assembly (clang, -O0):
<internal_fiat_p384_selectznz>:
push   %rbp
mov    %rsp,%rbp
sub    $0x260,%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    $0x4,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x58(%rbp)
mov    -0x18(%rbp),%rax
add    $0x8,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x78(%rbp)
mov    -0x18(%rbp),%rax
add    $0xc,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x98(%rbp)
mov    -0x18(%rbp),%rax
add    $0x10,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0xb8(%rbp)
mov    -0x18(%rbp),%rax
add    $0x14,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0xd8(%rbp)
mov    -0x18(%rbp),%rax
add    $0x18,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0xf8(%rbp)
mov    -0x18(%rbp),%rax
add    $0x1c,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x118(%rbp)
mov    -0x18(%rbp),%rax
add    $0x20,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x138(%rbp)
mov    -0x18(%rbp),%rax
add    $0x24,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x158(%rbp)
mov    -0x18(%rbp),%rax
add    $0x28,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x178(%rbp)
mov    -0x18(%rbp),%rax
add    $0x2c,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x198(%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    $0x4,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x48(%rbp)
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x68(%rbp)
mov    -0x20(%rbp),%rax
add    $0xc,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x88(%rbp)
mov    -0x20(%rbp),%rax
add    $0x10,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0xa8(%rbp)
mov    -0x20(%rbp),%rax
add    $0x14,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0xc8(%rbp)
mov    -0x20(%rbp),%rax
add    $0x18,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0xe8(%rbp)
mov    -0x20(%rbp),%rax
add    $0x1c,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x108(%rbp)
mov    -0x20(%rbp),%rax
add    $0x20,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x128(%rbp)
mov    -0x20(%rbp),%rax
add    $0x24,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x148(%rbp)
mov    -0x20(%rbp),%rax
add    $0x28,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x168(%rbp)
mov    -0x20(%rbp),%rax
add    $0x2c,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x188(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cltq
add    $0xffffffffffffffff,%rax
mov    %rax,-0x30(%rbp)
movabs $0xffffffff,%rax
xor    -0x30(%rbp),%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,-0x1a8(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cltq
add    $0xffffffffffffffff,%rax
mov    %rax,-0x50(%rbp)
movabs $0xffffffff,%rax
xor    -0x50(%rbp),%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,-0x1b0(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cltq
add    $0xffffffffffffffff,%rax
mov    %rax,-0x70(%rbp)
movabs $0xffffffff,%rax
xor    -0x70(%rbp),%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,-0x1b8(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cltq
add    $0xffffffffffffffff,%rax
mov    %rax,-0x90(%rbp)
movabs $0xffffffff,%rax
xor    -0x90(%rbp),%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,-0x1c0(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cltq
add    $0xffffffffffffffff,%rax
mov    %rax,-0xb0(%rbp)
movabs $0xffffffff,%rax
xor    -0xb0(%rbp),%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,-0x1c8(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cltq
add    $0xffffffffffffffff,%rax
mov    %rax,-0xd0(%rbp)
movabs $0xffffffff,%rax
xor    -0xd0(%rbp),%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,-0x1d0(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cltq
add    $0xffffffffffffffff,%rax
mov    %rax,-0xf0(%rbp)
movabs $0xffffffff,%rax
xor    -0xf0(%rbp),%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,-0x1d8(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cltq
add    $0xffffffffffffffff,%rax
mov    %rax,-0x110(%rbp)
movabs $0xffffffff,%rax
xor    -0x110(%rbp),%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,-0x1e0(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cltq
add    $0xffffffffffffffff,%rax
mov    %rax,-0x130(%rbp)
movabs $0xffffffff,%rax
xor    -0x130(%rbp),%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,-0x1e8(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cltq
add    $0xffffffffffffffff,%rax
mov    %rax,-0x150(%rbp)
movabs $0xffffffff,%rax
xor    -0x150(%rbp),%rax
mov    %rax,-0x160(%rbp)
mov    -0x148(%rbp),%rax
and    -0x150(%rbp),%rax
mov    -0x158(%rbp),%rcx
and    -0x160(%rbp),%rcx
or     %rcx,%rax
mov    %rax,-0x1f0(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cltq
add    $0xffffffffffffffff,%rax
mov    %rax,-0x170(%rbp)
movabs $0xffffffff,%rax
xor    -0x170(%rbp),%rax
mov    %rax,-0x180(%rbp)
mov    -0x168(%rbp),%rax
and    -0x170(%rbp),%rax
mov    -0x178(%rbp),%rcx
and    -0x180(%rbp),%rcx
or     %rcx,%rax
mov    %rax,-0x1f8(%rbp)
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cltq
add    $0xffffffffffffffff,%rax
mov    %rax,-0x190(%rbp)
movabs $0xffffffff,%rax
xor    -0x190(%rbp),%rax
mov    %rax,-0x1a0(%rbp)
mov    -0x188(%rbp),%rax
and    -0x190(%rbp),%rax
mov    -0x198(%rbp),%rcx
and    -0x1a0(%rbp),%rcx
or     %rcx,%rax
mov    %rax,-0x200(%rbp)
mov    -0x1a8(%rbp),%rax
mov    %rax,-0x208(%rbp)
mov    -0x1b0(%rbp),%rax
mov    %rax,-0x210(%rbp)
mov    -0x1b8(%rbp),%rax
mov    %rax,-0x218(%rbp)
mov    -0x1c0(%rbp),%rax
mov    %rax,-0x220(%rbp)
mov    -0x1c8(%rbp),%rax
mov    %rax,-0x228(%rbp)
mov    -0x1d0(%rbp),%rax
mov    %rax,-0x230(%rbp)
mov    -0x1d8(%rbp),%rax
mov    %rax,-0x238(%rbp)
mov    -0x1e0(%rbp),%rax
mov    %rax,-0x240(%rbp)
mov    -0x1e8(%rbp),%rax
mov    %rax,-0x248(%rbp)
mov    -0x1f0(%rbp),%rax
mov    %rax,-0x250(%rbp)
mov    -0x1f8(%rbp),%rax
mov    %rax,-0x258(%rbp)
mov    -0x200(%rbp),%rax
mov    %rax,-0x260(%rbp)
mov    -0x8(%rbp),%rax
add    $0x0,%rax
mov    %eax,%edi
mov    -0x208(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %eax,%edi
mov    -0x210(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x8,%rax
mov    %eax,%edi
mov    -0x218(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0xc,%rax
mov    %eax,%edi
mov    -0x220(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rax
mov    %eax,%edi
mov    -0x228(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x14,%rax
mov    %eax,%edi
mov    -0x230(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x18,%rax
mov    %eax,%edi
mov    -0x238(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x1c,%rax
mov    %eax,%edi
mov    -0x240(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x20,%rax
mov    %eax,%edi
mov    -0x248(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x24,%rax
mov    %eax,%edi
mov    -0x250(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x28,%rax
mov    %eax,%edi
mov    -0x258(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x2c,%rax
mov    %eax,%edi
mov    -0x260(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
add    $0x260,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<internal_fiat_p384_selectznz>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %rcx,%r14
mov    %rdx,%rbp
mov    %rsi,0xa0(%rsp)
mov    %rdi,%rbx
mov    %ebp,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x98(%rsp)
lea    0x4(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x90(%rsp)
lea    0x8(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x28(%rsp)
lea    0xc(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x20(%rsp)
lea    0x10(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x18(%rsp)
lea    0x14(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x10(%rsp)
lea    0x18(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x8(%rsp)
lea    0x1c(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,(%rsp)
lea    0x20(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x88(%rsp)
lea    0x24(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x80(%rsp)
lea    0x28(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x78(%rsp)
add    $0x2c,%ebp
mov    %ebp,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x70(%rsp)
mov    %r14d,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x68(%rsp)
lea    0x4(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x60(%rsp)
lea    0x8(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x58(%rsp)
lea    0xc(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x50(%rsp)
lea    0x10(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x48(%rsp)
lea    0x14(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x40(%rsp)
lea    0x18(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x38(%rsp)
lea    0x1c(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x30(%rsp)
lea    0x20(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r13
lea    0x24(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r15
lea    0x28(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r12
add    $0x2c,%r14d
mov    %r14d,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
negq   0xa0(%rsp)
sbb    %rcx,%rcx
mov    $0xffffffff,%ebp
xor    %rcx,%rbp
mov    0x68(%rsp),%rdx
and    %rcx,%rdx
mov    0x98(%rsp),%rsi
and    %rbp,%rsi
or     %rdx,%rsi
mov    0x60(%rsp),%rdx
and    %rcx,%rdx
mov    0x90(%rsp),%r14
and    %rbp,%r14
or     %rdx,%r14
mov    0x58(%rsp),%rdi
and    %rcx,%rdi
mov    0x28(%rsp),%rdx
and    %rbp,%rdx
or     %rdi,%rdx
mov    %rdx,0x28(%rsp)
mov    0x50(%rsp),%rdi
and    %rcx,%rdi
mov    0x20(%rsp),%rdx
and    %rbp,%rdx
or     %rdi,%rdx
mov    %rdx,0x20(%rsp)
mov    0x48(%rsp),%rdi
and    %rcx,%rdi
mov    0x18(%rsp),%rdx
and    %rbp,%rdx
or     %rdi,%rdx
mov    %rdx,0x18(%rsp)
mov    0x40(%rsp),%rdi
and    %rcx,%rdi
mov    0x10(%rsp),%rdx
and    %rbp,%rdx
or     %rdi,%rdx
mov    %rdx,0x10(%rsp)
mov    0x38(%rsp),%rdi
and    %rcx,%rdi
mov    0x8(%rsp),%rdx
and    %rbp,%rdx
or     %rdi,%rdx
mov    %rdx,0x8(%rsp)
mov    0x30(%rsp),%rdi
and    %rcx,%rdi
mov    (%rsp),%rdx
and    %rbp,%rdx
or     %rdi,%rdx
mov    %rdx,(%rsp)
and    %rcx,%r13
mov    0x88(%rsp),%rdx
and    %rbp,%rdx
or     %r13,%rdx
mov    %rdx,%r13
and    %rcx,%r15
mov    0x80(%rsp),%rdx
and    %rbp,%rdx
or     %r15,%rdx
mov    %rdx,%r15
and    %rcx,%r12
mov    0x78(%rsp),%rdx
and    %rbp,%rdx
or     %r12,%rdx
mov    %rdx,%r12
and    %rax,%rcx
and    0x70(%rsp),%rbp
or     %rcx,%rbp
mov    %ebx,%edi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x4(%rbx),%edi
mov    %r14,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x8(%rbx),%edi
mov    0x28(%rsp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0xc(%rbx),%edi
mov    0x20(%rsp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x10(%rbx),%edi
mov    0x18(%rsp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x14(%rbx),%edi
mov    0x10(%rsp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x18(%rbx),%edi
mov    0x8(%rsp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x1c(%rbx),%edi
mov    (%rsp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x20(%rbx),%edi
mov    %r13,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x24(%rbx),%edi
mov    %r15,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x28(%rbx),%edi
mov    %r12,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
add    $0x2c,%ebx
mov    %ebx,%edi
mov    %rbp,%rsi
mov    $0x8,%edx
add    $0xa8,%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_p384_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
%63 = alloca i64
%64 = alloca i64
%65 = alloca i64
%66 = alloca i64
%67 = alloca i64
%68 = alloca i64
%69 = alloca i64
%70 = alloca i64
%71 = alloca i64
%72 = alloca i64
%73 = alloca i64
%74 = alloca i64
%75 = alloca i64
%76 = alloca i64
%77 = alloca i64
%78 = alloca i64
%79 = alloca i64
%80 = alloca i64
store i64 %0, i64* %5
store i64 %1, i64* %6
store i64 %2, i64* %7
store i64 %3, i64* %8
%81 = load i64, i64* %7
%82 = add i64 %81, 0
%83 = trunc i64 %82 to i32
%84 = call i64 @_br2_load(i32 %83, i32 8)
store i64 %84, i64* %11
%85 = load i64, i64* %7
%86 = add i64 %85, 4
%87 = trunc i64 %86 to i32
%88 = call i64 @_br2_load(i32 %87, i32 8)
store i64 %88, i64* %15
%89 = load i64, i64* %7
%90 = add i64 %89, 8
%91 = trunc i64 %90 to i32
%92 = call i64 @_br2_load(i32 %91, i32 8)
store i64 %92, i64* %19
%93 = load i64, i64* %7
%94 = add i64 %93, 12
%95 = trunc i64 %94 to i32
%96 = call i64 @_br2_load(i32 %95, i32 8)
store i64 %96, i64* %23
%97 = load i64, i64* %7
%98 = add i64 %97, 16
%99 = trunc i64 %98 to i32
%100 = call i64 @_br2_load(i32 %99, i32 8)
store i64 %100, i64* %27
%101 = load i64, i64* %7
%102 = add i64 %101, 20
%103 = trunc i64 %102 to i32
%104 = call i64 @_br2_load(i32 %103, i32 8)
store i64 %104, i64* %31
%105 = load i64, i64* %7
%106 = add i64 %105, 24
%107 = trunc i64 %106 to i32
%108 = call i64 @_br2_load(i32 %107, i32 8)
store i64 %108, i64* %35
%109 = load i64, i64* %7
%110 = add i64 %109, 28
%111 = trunc i64 %110 to i32
%112 = call i64 @_br2_load(i32 %111, i32 8)
store i64 %112, i64* %39
%113 = load i64, i64* %7
%114 = add i64 %113, 32
%115 = trunc i64 %114 to i32
%116 = call i64 @_br2_load(i32 %115, i32 8)
store i64 %116, i64* %43
%117 = load i64, i64* %7
%118 = add i64 %117, 36
%119 = trunc i64 %118 to i32
%120 = call i64 @_br2_load(i32 %119, i32 8)
store i64 %120, i64* %47
%121 = load i64, i64* %7
%122 = add i64 %121, 40
%123 = trunc i64 %122 to i32
%124 = call i64 @_br2_load(i32 %123, i32 8)
store i64 %124, i64* %51
%125 = load i64, i64* %7
%126 = add i64 %125, 44
%127 = trunc i64 %126 to i32
%128 = call i64 @_br2_load(i32 %127, i32 8)
store i64 %128, i64* %55
%129 = load i64, i64* %8
%130 = add i64 %129, 0
%131 = trunc i64 %130 to i32
%132 = call i64 @_br2_load(i32 %131, i32 8)
store i64 %132, i64* %9
%133 = load i64, i64* %8
%134 = add i64 %133, 4
%135 = trunc i64 %134 to i32
%136 = call i64 @_br2_load(i32 %135, i32 8)
store i64 %136, i64* %13
%137 = load i64, i64* %8
%138 = add i64 %137, 8
%139 = trunc i64 %138 to i32
%140 = call i64 @_br2_load(i32 %139, i32 8)
store i64 %140, i64* %17
%141 = load i64, i64* %8
%142 = add i64 %141, 12
%143 = trunc i64 %142 to i32
%144 = call i64 @_br2_load(i32 %143, i32 8)
store i64 %144, i64* %21
%145 = load i64, i64* %8
%146 = add i64 %145, 16
%147 = trunc i64 %146 to i32
%148 = call i64 @_br2_load(i32 %147, i32 8)
store i64 %148, i64* %25
%149 = load i64, i64* %8
%150 = add i64 %149, 20
%151 = trunc i64 %150 to i32
%152 = call i64 @_br2_load(i32 %151, i32 8)
store i64 %152, i64* %29
%153 = load i64, i64* %8
%154 = add i64 %153, 24
%155 = trunc i64 %154 to i32
%156 = call i64 @_br2_load(i32 %155, i32 8)
store i64 %156, i64* %33
%157 = load i64, i64* %8
%158 = add i64 %157, 28
%159 = trunc i64 %158 to i32
%160 = call i64 @_br2_load(i32 %159, i32 8)
store i64 %160, i64* %37
%161 = load i64, i64* %8
%162 = add i64 %161, 32
%163 = trunc i64 %162 to i32
%164 = call i64 @_br2_load(i32 %163, i32 8)
store i64 %164, i64* %41
%165 = load i64, i64* %8
%166 = add i64 %165, 36
%167 = trunc i64 %166 to i32
%168 = call i64 @_br2_load(i32 %167, i32 8)
store i64 %168, i64* %45
%169 = load i64, i64* %8
%170 = add i64 %169, 40
%171 = trunc i64 %170 to i32
%172 = call i64 @_br2_load(i32 %171, i32 8)
store i64 %172, i64* %49
%173 = load i64, i64* %8
%174 = add i64 %173, 44
%175 = trunc i64 %174 to i32
%176 = call i64 @_br2_load(i32 %175, i32 8)
store i64 %176, i64* %53
%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* %10
%182 = load i64, i64* %10
%183 = xor i64 %182, 4294967295
store i64 %183, i64* %12
%184 = load i64, i64* %9
%185 = load i64, i64* %10
%186 = and i64 %184, %185
%187 = load i64, i64* %11
%188 = load i64, i64* %12
%189 = and i64 %187, %188
%190 = or i64 %186, %189
store i64 %190, i64* %57
%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* %14
%196 = load i64, i64* %14
%197 = xor i64 %196, 4294967295
store i64 %197, i64* %16
%198 = load i64, i64* %13
%199 = load i64, i64* %14
%200 = and i64 %198, %199
%201 = load i64, i64* %15
%202 = load i64, i64* %16
%203 = and i64 %201, %202
%204 = or i64 %200, %203
store i64 %204, i64* %58
%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* %18
%210 = load i64, i64* %18
%211 = xor i64 %210, 4294967295
store i64 %211, i64* %20
%212 = load i64, i64* %17
%213 = load i64, i64* %18
%214 = and i64 %212, %213
%215 = load i64, i64* %19
%216 = load i64, i64* %20
%217 = and i64 %215, %216
%218 = or i64 %214, %217
store i64 %218, i64* %59
%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* %22
%224 = load i64, i64* %22
%225 = xor i64 %224, 4294967295
store i64 %225, i64* %24
%226 = load i64, i64* %21
%227 = load i64, i64* %22
%228 = and i64 %226, %227
%229 = load i64, i64* %23
%230 = load i64, i64* %24
%231 = and i64 %229, %230
%232 = or i64 %228, %231
store i64 %232, i64* %60
%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* %26
%238 = load i64, i64* %26
%239 = xor i64 %238, 4294967295
store i64 %239, i64* %28
%240 = load i64, i64* %25
%241 = load i64, i64* %26
%242 = and i64 %240, %241
%243 = load i64, i64* %27
%244 = load i64, i64* %28
%245 = and i64 %243, %244
%246 = or i64 %242, %245
store i64 %246, i64* %61
%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* %30
%252 = load i64, i64* %30
%253 = xor i64 %252, 4294967295
store i64 %253, i64* %32
%254 = load i64, i64* %29
%255 = load i64, i64* %30
%256 = and i64 %254, %255
%257 = load i64, i64* %31
%258 = load i64, i64* %32
%259 = and i64 %257, %258
%260 = or i64 %256, %259
store i64 %260, i64* %62
%261 = load i64, i64* %6
%262 = icmp eq i64 %261, 0
%263 = zext i1 %262 to i32
%264 = sext i32 %263 to i64
%265 = add i64 -1, %264
store i64 %265, i64* %34
%266 = load i64, i64* %34
%267 = xor i64 %266, 4294967295
store i64 %267, i64* %36
%268 = load i64, i64* %33
%269 = load i64, i64* %34
%270 = and i64 %268, %269
%271 = load i64, i64* %35
%272 = load i64, i64* %36
%273 = and i64 %271, %272
%274 = or i64 %270, %273
store i64 %274, i64* %63
%275 = load i64, i64* %6
%276 = icmp eq i64 %275, 0
%277 = zext i1 %276 to i32
%278 = sext i32 %277 to i64
%279 = add i64 -1, %278
store i64 %279, i64* %38
%280 = load i64, i64* %38
%281 = xor i64 %280, 4294967295
store i64 %281, i64* %40
%282 = load i64, i64* %37
%283 = load i64, i64* %38
%284 = and i64 %282, %283
%285 = load i64, i64* %39
%286 = load i64, i64* %40
%287 = and i64 %285, %286
%288 = or i64 %284, %287
store i64 %288, i64* %64
%289 = load i64, i64* %6
%290 = icmp eq i64 %289, 0
%291 = zext i1 %290 to i32
%292 = sext i32 %291 to i64
%293 = add i64 -1, %292
store i64 %293, i64* %42
%294 = load i64, i64* %42
%295 = xor i64 %294, 4294967295
store i64 %295, i64* %44
%296 = load i64, i64* %41
%297 = load i64, i64* %42
%298 = and i64 %296, %297
%299 = load i64, i64* %43
%300 = load i64, i64* %44
%301 = and i64 %299, %300
%302 = or i64 %298, %301
store i64 %302, i64* %65
%303 = load i64, i64* %6
%304 = icmp eq i64 %303, 0
%305 = zext i1 %304 to i32
%306 = sext i32 %305 to i64
%307 = add i64 -1, %306
store i64 %307, i64* %46
%308 = load i64, i64* %46
%309 = xor i64 %308, 4294967295
store i64 %309, i64* %48
%310 = load i64, i64* %45
%311 = load i64, i64* %46
%312 = and i64 %310, %311
%313 = load i64, i64* %47
%314 = load i64, i64* %48
%315 = and i64 %313, %314
%316 = or i64 %312, %315
store i64 %316, i64* %66
%317 = load i64, i64* %6
%318 = icmp eq i64 %317, 0
%319 = zext i1 %318 to i32
%320 = sext i32 %319 to i64
%321 = add i64 -1, %320
store i64 %321, i64* %50
%322 = load i64, i64* %50
%323 = xor i64 %322, 4294967295
store i64 %323, i64* %52
%324 = load i64, i64* %49
%325 = load i64, i64* %50
%326 = and i64 %324, %325
%327 = load i64, i64* %51
%328 = load i64, i64* %52
%329 = and i64 %327, %328
%330 = or i64 %326, %329
store i64 %330, i64* %67
%331 = load i64, i64* %6
%332 = icmp eq i64 %331, 0
%333 = zext i1 %332 to i32
%334 = sext i32 %333 to i64
%335 = add i64 -1, %334
store i64 %335, i64* %54
%336 = load i64, i64* %54
%337 = xor i64 %336, 4294967295
store i64 %337, i64* %56
%338 = load i64, i64* %53
%339 = load i64, i64* %54
%340 = and i64 %338, %339
%341 = load i64, i64* %55
%342 = load i64, i64* %56
%343 = and i64 %341, %342
%344 = or i64 %340, %343
store i64 %344, i64* %68
%345 = load i64, i64* %57
store i64 %345, i64* %69
%346 = load i64, i64* %58
store i64 %346, i64* %70
%347 = load i64, i64* %59
store i64 %347, i64* %71
%348 = load i64, i64* %60
store i64 %348, i64* %72
%349 = load i64, i64* %61
store i64 %349, i64* %73
%350 = load i64, i64* %62
store i64 %350, i64* %74
%351 = load i64, i64* %63
store i64 %351, i64* %75
%352 = load i64, i64* %64
store i64 %352, i64* %76
%353 = load i64, i64* %65
store i64 %353, i64* %77
%354 = load i64, i64* %66
store i64 %354, i64* %78
%355 = load i64, i64* %67
store i64 %355, i64* %79
%356 = load i64, i64* %68
store i64 %356, i64* %80
%357 = load i64, i64* %5
%358 = add i64 %357, 0
%359 = trunc i64 %358 to i32
%360 = load i64, i64* %69
%361 = call i32 @_br2_store(i32 %359, i64 %360, i32 8)
%362 = load i64, i64* %5
%363 = add i64 %362, 4
%364 = trunc i64 %363 to i32
%365 = load i64, i64* %70
%366 = call i32 @_br2_store(i32 %364, i64 %365, i32 8)
%367 = load i64, i64* %5
%368 = add i64 %367, 8
%369 = trunc i64 %368 to i32
%370 = load i64, i64* %71
%371 = call i32 @_br2_store(i32 %369, i64 %370, i32 8)
%372 = load i64, i64* %5
%373 = add i64 %372, 12
%374 = trunc i64 %373 to i32
%375 = load i64, i64* %72
%376 = call i32 @_br2_store(i32 %374, i64 %375, i32 8)
%377 = load i64, i64* %5
%378 = add i64 %377, 16
%379 = trunc i64 %378 to i32
%380 = load i64, i64* %73
%381 = call i32 @_br2_store(i32 %379, i64 %380, i32 8)
%382 = load i64, i64* %5
%383 = add i64 %382, 20
%384 = trunc i64 %383 to i32
%385 = load i64, i64* %74
%386 = call i32 @_br2_store(i32 %384, i64 %385, i32 8)
%387 = load i64, i64* %5
%388 = add i64 %387, 24
%389 = trunc i64 %388 to i32
%390 = load i64, i64* %75
%391 = call i32 @_br2_store(i32 %389, i64 %390, i32 8)
%392 = load i64, i64* %5
%393 = add i64 %392, 28
%394 = trunc i64 %393 to i32
%395 = load i64, i64* %76
%396 = call i32 @_br2_store(i32 %394, i64 %395, i32 8)
%397 = load i64, i64* %5
%398 = add i64 %397, 32
%399 = trunc i64 %398 to i32
%400 = load i64, i64* %77
%401 = call i32 @_br2_store(i32 %399, i64 %400, i32 8)
%402 = load i64, i64* %5
%403 = add i64 %402, 36
%404 = trunc i64 %403 to i32
%405 = load i64, i64* %78
%406 = call i32 @_br2_store(i32 %404, i64 %405, i32 8)
%407 = load i64, i64* %5
%408 = add i64 %407, 40
%409 = trunc i64 %408 to i32
%410 = load i64, i64* %79
%411 = call i32 @_br2_store(i32 %409, i64 %410, i32 8)
%412 = load i64, i64* %5
%413 = add i64 %412, 44
%414 = trunc i64 %413 to i32
%415 = load i64, i64* %80
%416 = call i32 @_br2_store(i32 %414, i64 %415, i32 8)
ret void
}

LLVM IR (-O2):
define void @internal_fiat_p384_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, 4
%8 = tail call i64 @_br2_load(i32 %7, i32 8)
%9 = add i32 %5, 8
%10 = tail call i64 @_br2_load(i32 %9, i32 8)
%11 = add i32 %5, 12
%12 = tail call i64 @_br2_load(i32 %11, i32 8)
%13 = add i32 %5, 16
%14 = tail call i64 @_br2_load(i32 %13, i32 8)
%15 = add i32 %5, 20
%16 = tail call i64 @_br2_load(i32 %15, i32 8)
%17 = add i32 %5, 24
%18 = tail call i64 @_br2_load(i32 %17, i32 8)
%19 = add i32 %5, 28
%20 = tail call i64 @_br2_load(i32 %19, i32 8)
%21 = add i32 %5, 32
%22 = tail call i64 @_br2_load(i32 %21, i32 8)
%23 = add i32 %5, 36
%24 = tail call i64 @_br2_load(i32 %23, i32 8)
%25 = add i32 %5, 40
%26 = tail call i64 @_br2_load(i32 %25, i32 8)
%27 = add i32 %5, 44
%28 = tail call i64 @_br2_load(i32 %27, i32 8)
%29 = trunc i64 %3 to i32
%30 = tail call i64 @_br2_load(i32 %29, i32 8)
%31 = add i32 %29, 4
%32 = tail call i64 @_br2_load(i32 %31, i32 8)
%33 = add i32 %29, 8
%34 = tail call i64 @_br2_load(i32 %33, i32 8)
%35 = add i32 %29, 12
%36 = tail call i64 @_br2_load(i32 %35, i32 8)
%37 = add i32 %29, 16
%38 = tail call i64 @_br2_load(i32 %37, i32 8)
%39 = add i32 %29, 20
%40 = tail call i64 @_br2_load(i32 %39, i32 8)
%41 = add i32 %29, 24
%42 = tail call i64 @_br2_load(i32 %41, i32 8)
%43 = add i32 %29, 28
%44 = tail call i64 @_br2_load(i32 %43, i32 8)
%45 = add i32 %29, 32
%46 = tail call i64 @_br2_load(i32 %45, i32 8)
%47 = add i32 %29, 36
%48 = tail call i64 @_br2_load(i32 %47, i32 8)
%49 = add i32 %29, 40
%50 = tail call i64 @_br2_load(i32 %49, i32 8)
%51 = add i32 %29, 44
%52 = tail call i64 @_br2_load(i32 %51, i32 8)
%53 = icmp ne i64 %1, 0
%54 = sext i1 %53 to i64
%55 = xor i64 %54, 4294967295
%56 = and i64 %30, %54
%57 = and i64 %6, %55
%58 = or i64 %56, %57
%59 = and i64 %32, %54
%60 = and i64 %8, %55
%61 = or i64 %59, %60
%62 = and i64 %34, %54
%63 = and i64 %10, %55
%64 = or i64 %62, %63
%65 = and i64 %36, %54
%66 = and i64 %12, %55
%67 = or i64 %65, %66
%68 = and i64 %38, %54
%69 = and i64 %14, %55
%70 = or i64 %68, %69
%71 = and i64 %40, %54
%72 = and i64 %16, %55
%73 = or i64 %71, %72
%74 = and i64 %42, %54
%75 = and i64 %18, %55
%76 = or i64 %74, %75
%77 = and i64 %44, %54
%78 = and i64 %20, %55
%79 = or i64 %77, %78
%80 = and i64 %46, %54
%81 = and i64 %22, %55
%82 = or i64 %80, %81
%83 = and i64 %48, %54
%84 = and i64 %24, %55
%85 = or i64 %83, %84
%86 = and i64 %50, %54
%87 = and i64 %26, %55
%88 = or i64 %86, %87
%89 = and i64 %52, %54
%90 = and i64 %28, %55
%91 = or i64 %89, %90
%92 = trunc i64 %0 to i32
%93 = tail call i32 @_br2_store(i32 %92, i64 %58, i32 8)
%94 = add i32 %92, 4
%95 = tail call i32 @_br2_store(i32 %94, i64 %61, i32 8)
%96 = add i32 %92, 8
%97 = tail call i32 @_br2_store(i32 %96, i64 %64, i32 8)
%98 = add i32 %92, 12
%99 = tail call i32 @_br2_store(i32 %98, i64 %67, i32 8)
%100 = add i32 %92, 16
%101 = tail call i32 @_br2_store(i32 %100, i64 %70, i32 8)
%102 = add i32 %92, 20
%103 = tail call i32 @_br2_store(i32 %102, i64 %73, i32 8)
%104 = add i32 %92, 24
%105 = tail call i32 @_br2_store(i32 %104, i64 %76, i32 8)
%106 = add i32 %92, 28
%107 = tail call i32 @_br2_store(i32 %106, i64 %79, i32 8)
%108 = add i32 %92, 32
%109 = tail call i32 @_br2_store(i32 %108, i64 %82, i32 8)
%110 = add i32 %92, 36
%111 = tail call i32 @_br2_store(i32 %110, i64 %85, i32 8)
%112 = add i32 %92, 40
%113 = tail call i32 @_br2_store(i32 %112, i64 %88, i32 8)
%114 = add i32 %92, 44
%115 = tail call i32 @_br2_store(i32 %114, i64 %91, i32 8)
ret void
}