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


x86 assembly (clang, -O0):
<internal_fiat_25519_selectznz>:
push   %rbp
mov    %rsp,%rbp
sub    $0x200,%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    -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)
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,-0x168(%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,-0x170(%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,-0x178(%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,-0x180(%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,-0x188(%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,-0x190(%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,-0x198(%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,-0x1a0(%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,-0x1a8(%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,-0x1b0(%rbp)
mov    -0x168(%rbp),%rax
mov    %rax,-0x1b8(%rbp)
mov    -0x170(%rbp),%rax
mov    %rax,-0x1c0(%rbp)
mov    -0x178(%rbp),%rax
mov    %rax,-0x1c8(%rbp)
mov    -0x180(%rbp),%rax
mov    %rax,-0x1d0(%rbp)
mov    -0x188(%rbp),%rax
mov    %rax,-0x1d8(%rbp)
mov    -0x190(%rbp),%rax
mov    %rax,-0x1e0(%rbp)
mov    -0x198(%rbp),%rax
mov    %rax,-0x1e8(%rbp)
mov    -0x1a0(%rbp),%rax
mov    %rax,-0x1f0(%rbp)
mov    -0x1a8(%rbp),%rax
mov    %rax,-0x1f8(%rbp)
mov    -0x1b0(%rbp),%rax
mov    %rax,-0x200(%rbp)
mov    -0x8(%rbp),%rax
add    $0x0,%rax
mov    %eax,%edi
mov    -0x1b8(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %eax,%edi
mov    -0x1c0(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x8,%rax
mov    %eax,%edi
mov    -0x1c8(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0xc,%rax
mov    %eax,%edi
mov    -0x1d0(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rax
mov    %eax,%edi
mov    -0x1d8(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x14,%rax
mov    %eax,%edi
mov    -0x1e0(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x18,%rax
mov    %eax,%edi
mov    -0x1e8(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x1c,%rax
mov    %eax,%edi
mov    -0x1f0(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x20,%rax
mov    %eax,%edi
mov    -0x1f8(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x24,%rax
mov    %eax,%edi
mov    -0x200(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
add    $0x200,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<internal_fiat_25519_selectznz>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %rcx,%r14
mov    %rdx,%rbp
mov    %rsi,0x78(%rsp)
mov    %rdi,0x80(%rsp)
mov    %ebp,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x70(%rsp)
lea    0x4(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x68(%rsp)
lea    0x8(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x18(%rsp)
lea    0xc(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x10(%rsp)
lea    0x10(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x8(%rsp)
lea    0x14(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x60(%rsp)
lea    0x18(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x58(%rsp)
lea    0x1c(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x50(%rsp)
lea    0x20(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,(%rsp)
add    $0x24,%ebp
mov    %ebp,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x48(%rsp)
mov    %r14d,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x40(%rsp)
lea    0x4(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x38(%rsp)
lea    0x8(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x30(%rsp)
lea    0xc(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x28(%rsp)
lea    0x10(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x20(%rsp)
lea    0x14(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r13
lea    0x18(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r15
lea    0x1c(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r12
lea    0x20(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%rbx
add    $0x24,%r14d
mov    %r14d,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
negq   0x78(%rsp)
sbb    %rcx,%rcx
mov    $0xffffffff,%ebp
xor    %rcx,%rbp
mov    0x40(%rsp),%rdx
and    %rcx,%rdx
mov    0x70(%rsp),%rsi
and    %rbp,%rsi
or     %rdx,%rsi
mov    0x38(%rsp),%rdx
and    %rcx,%rdx
mov    0x68(%rsp),%r14
and    %rbp,%r14
or     %rdx,%r14
mov    0x30(%rsp),%rdi
and    %rcx,%rdi
mov    0x18(%rsp),%rdx
and    %rbp,%rdx
or     %rdi,%rdx
mov    %rdx,0x18(%rsp)
mov    0x28(%rsp),%rdi
and    %rcx,%rdi
mov    0x10(%rsp),%rdx
and    %rbp,%rdx
or     %rdi,%rdx
mov    %rdx,0x10(%rsp)
mov    0x20(%rsp),%rdi
and    %rcx,%rdi
mov    0x8(%rsp),%rdx
and    %rbp,%rdx
or     %rdi,%rdx
mov    %rdx,0x8(%rsp)
and    %rcx,%r13
mov    0x60(%rsp),%rdx
and    %rbp,%rdx
or     %r13,%rdx
mov    %rdx,%r13
and    %rcx,%r15
mov    0x58(%rsp),%rdx
and    %rbp,%rdx
or     %r15,%rdx
mov    %rdx,%r15
and    %rcx,%r12
mov    0x50(%rsp),%rdx
and    %rbp,%rdx
or     %r12,%rdx
mov    %rdx,%r12
and    %rcx,%rbx
mov    (%rsp),%rdx
and    %rbp,%rdx
or     %rbx,%rdx
mov    %rdx,(%rsp)
and    %rax,%rcx
and    0x48(%rsp),%rbp
or     %rcx,%rbp
mov    0x80(%rsp),%rbx
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    0x18(%rsp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0xc(%rbx),%edi
mov    0x10(%rsp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x10(%rbx),%edi
mov    0x8(%rsp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x14(%rbx),%edi
mov    %r13,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x18(%rbx),%edi
mov    %r15,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x1c(%rbx),%edi
mov    %r12,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x20(%rbx),%edi
mov    (%rsp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
add    $0x24,%ebx
mov    %ebx,%edi
mov    %rbp,%rsi
mov    $0x8,%edx
add    $0x88,%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_25519_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
store i64 %0, i64* %5
store i64 %1, i64* %6
store i64 %2, i64* %7
store i64 %3, i64* %8
%69 = load i64, i64* %7
%70 = add i64 %69, 0
%71 = trunc i64 %70 to i32
%72 = call i64 @_br2_load(i32 %71, i32 8)
store i64 %72, i64* %11
%73 = load i64, i64* %7
%74 = add i64 %73, 4
%75 = trunc i64 %74 to i32
%76 = call i64 @_br2_load(i32 %75, i32 8)
store i64 %76, i64* %15
%77 = load i64, i64* %7
%78 = add i64 %77, 8
%79 = trunc i64 %78 to i32
%80 = call i64 @_br2_load(i32 %79, i32 8)
store i64 %80, i64* %19
%81 = load i64, i64* %7
%82 = add i64 %81, 12
%83 = trunc i64 %82 to i32
%84 = call i64 @_br2_load(i32 %83, i32 8)
store i64 %84, i64* %23
%85 = load i64, i64* %7
%86 = add i64 %85, 16
%87 = trunc i64 %86 to i32
%88 = call i64 @_br2_load(i32 %87, i32 8)
store i64 %88, i64* %27
%89 = load i64, i64* %7
%90 = add i64 %89, 20
%91 = trunc i64 %90 to i32
%92 = call i64 @_br2_load(i32 %91, i32 8)
store i64 %92, i64* %31
%93 = load i64, i64* %7
%94 = add i64 %93, 24
%95 = trunc i64 %94 to i32
%96 = call i64 @_br2_load(i32 %95, i32 8)
store i64 %96, i64* %35
%97 = load i64, i64* %7
%98 = add i64 %97, 28
%99 = trunc i64 %98 to i32
%100 = call i64 @_br2_load(i32 %99, i32 8)
store i64 %100, i64* %39
%101 = load i64, i64* %7
%102 = add i64 %101, 32
%103 = trunc i64 %102 to i32
%104 = call i64 @_br2_load(i32 %103, i32 8)
store i64 %104, i64* %43
%105 = load i64, i64* %7
%106 = add i64 %105, 36
%107 = trunc i64 %106 to i32
%108 = call i64 @_br2_load(i32 %107, i32 8)
store i64 %108, i64* %47
%109 = load i64, i64* %8
%110 = add i64 %109, 0
%111 = trunc i64 %110 to i32
%112 = call i64 @_br2_load(i32 %111, i32 8)
store i64 %112, i64* %9
%113 = load i64, i64* %8
%114 = add i64 %113, 4
%115 = trunc i64 %114 to i32
%116 = call i64 @_br2_load(i32 %115, i32 8)
store i64 %116, i64* %13
%117 = load i64, i64* %8
%118 = add i64 %117, 8
%119 = trunc i64 %118 to i32
%120 = call i64 @_br2_load(i32 %119, i32 8)
store i64 %120, i64* %17
%121 = load i64, i64* %8
%122 = add i64 %121, 12
%123 = trunc i64 %122 to i32
%124 = call i64 @_br2_load(i32 %123, i32 8)
store i64 %124, i64* %21
%125 = load i64, i64* %8
%126 = add i64 %125, 16
%127 = trunc i64 %126 to i32
%128 = call i64 @_br2_load(i32 %127, i32 8)
store i64 %128, i64* %25
%129 = load i64, i64* %8
%130 = add i64 %129, 20
%131 = trunc i64 %130 to i32
%132 = call i64 @_br2_load(i32 %131, i32 8)
store i64 %132, i64* %29
%133 = load i64, i64* %8
%134 = add i64 %133, 24
%135 = trunc i64 %134 to i32
%136 = call i64 @_br2_load(i32 %135, i32 8)
store i64 %136, i64* %33
%137 = load i64, i64* %8
%138 = add i64 %137, 28
%139 = trunc i64 %138 to i32
%140 = call i64 @_br2_load(i32 %139, i32 8)
store i64 %140, i64* %37
%141 = load i64, i64* %8
%142 = add i64 %141, 32
%143 = trunc i64 %142 to i32
%144 = call i64 @_br2_load(i32 %143, i32 8)
store i64 %144, i64* %41
%145 = load i64, i64* %8
%146 = add i64 %145, 36
%147 = trunc i64 %146 to i32
%148 = call i64 @_br2_load(i32 %147, i32 8)
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* %10
%154 = load i64, i64* %10
%155 = xor i64 %154, 4294967295
store i64 %155, i64* %12
%156 = load i64, i64* %9
%157 = load i64, i64* %10
%158 = and i64 %156, %157
%159 = load i64, i64* %11
%160 = load i64, i64* %12
%161 = and i64 %159, %160
%162 = or i64 %158, %161
store i64 %162, i64* %49
%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* %14
%168 = load i64, i64* %14
%169 = xor i64 %168, 4294967295
store i64 %169, i64* %16
%170 = load i64, i64* %13
%171 = load i64, i64* %14
%172 = and i64 %170, %171
%173 = load i64, i64* %15
%174 = load i64, i64* %16
%175 = and i64 %173, %174
%176 = or i64 %172, %175
store i64 %176, i64* %50
%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* %18
%182 = load i64, i64* %18
%183 = xor i64 %182, 4294967295
store i64 %183, i64* %20
%184 = load i64, i64* %17
%185 = load i64, i64* %18
%186 = and i64 %184, %185
%187 = load i64, i64* %19
%188 = load i64, i64* %20
%189 = and i64 %187, %188
%190 = or i64 %186, %189
store i64 %190, i64* %51
%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* %22
%196 = load i64, i64* %22
%197 = xor i64 %196, 4294967295
store i64 %197, i64* %24
%198 = load i64, i64* %21
%199 = load i64, i64* %22
%200 = and i64 %198, %199
%201 = load i64, i64* %23
%202 = load i64, i64* %24
%203 = and i64 %201, %202
%204 = or i64 %200, %203
store i64 %204, i64* %52
%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* %26
%210 = load i64, i64* %26
%211 = xor i64 %210, 4294967295
store i64 %211, i64* %28
%212 = load i64, i64* %25
%213 = load i64, i64* %26
%214 = and i64 %212, %213
%215 = load i64, i64* %27
%216 = load i64, i64* %28
%217 = and i64 %215, %216
%218 = or i64 %214, %217
store i64 %218, i64* %53
%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* %30
%224 = load i64, i64* %30
%225 = xor i64 %224, 4294967295
store i64 %225, i64* %32
%226 = load i64, i64* %29
%227 = load i64, i64* %30
%228 = and i64 %226, %227
%229 = load i64, i64* %31
%230 = load i64, i64* %32
%231 = and i64 %229, %230
%232 = or i64 %228, %231
store i64 %232, i64* %54
%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* %34
%238 = load i64, i64* %34
%239 = xor i64 %238, 4294967295
store i64 %239, i64* %36
%240 = load i64, i64* %33
%241 = load i64, i64* %34
%242 = and i64 %240, %241
%243 = load i64, i64* %35
%244 = load i64, i64* %36
%245 = and i64 %243, %244
%246 = or i64 %242, %245
store i64 %246, i64* %55
%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* %38
%252 = load i64, i64* %38
%253 = xor i64 %252, 4294967295
store i64 %253, i64* %40
%254 = load i64, i64* %37
%255 = load i64, i64* %38
%256 = and i64 %254, %255
%257 = load i64, i64* %39
%258 = load i64, i64* %40
%259 = and i64 %257, %258
%260 = or i64 %256, %259
store i64 %260, i64* %56
%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* %42
%266 = load i64, i64* %42
%267 = xor i64 %266, 4294967295
store i64 %267, i64* %44
%268 = load i64, i64* %41
%269 = load i64, i64* %42
%270 = and i64 %268, %269
%271 = load i64, i64* %43
%272 = load i64, i64* %44
%273 = and i64 %271, %272
%274 = or i64 %270, %273
store i64 %274, i64* %57
%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* %46
%280 = load i64, i64* %46
%281 = xor i64 %280, 4294967295
store i64 %281, i64* %48
%282 = load i64, i64* %45
%283 = load i64, i64* %46
%284 = and i64 %282, %283
%285 = load i64, i64* %47
%286 = load i64, i64* %48
%287 = and i64 %285, %286
%288 = or i64 %284, %287
store i64 %288, i64* %58
%289 = load i64, i64* %49
store i64 %289, i64* %59
%290 = load i64, i64* %50
store i64 %290, i64* %60
%291 = load i64, i64* %51
store i64 %291, i64* %61
%292 = load i64, i64* %52
store i64 %292, i64* %62
%293 = load i64, i64* %53
store i64 %293, i64* %63
%294 = load i64, i64* %54
store i64 %294, i64* %64
%295 = load i64, i64* %55
store i64 %295, i64* %65
%296 = load i64, i64* %56
store i64 %296, i64* %66
%297 = load i64, i64* %57
store i64 %297, i64* %67
%298 = load i64, i64* %58
store i64 %298, i64* %68
%299 = load i64, i64* %5
%300 = add i64 %299, 0
%301 = trunc i64 %300 to i32
%302 = load i64, i64* %59
%303 = call i32 @_br2_store(i32 %301, i64 %302, i32 8)
%304 = load i64, i64* %5
%305 = add i64 %304, 4
%306 = trunc i64 %305 to i32
%307 = load i64, i64* %60
%308 = call i32 @_br2_store(i32 %306, i64 %307, i32 8)
%309 = load i64, i64* %5
%310 = add i64 %309, 8
%311 = trunc i64 %310 to i32
%312 = load i64, i64* %61
%313 = call i32 @_br2_store(i32 %311, i64 %312, i32 8)
%314 = load i64, i64* %5
%315 = add i64 %314, 12
%316 = trunc i64 %315 to i32
%317 = load i64, i64* %62
%318 = call i32 @_br2_store(i32 %316, i64 %317, i32 8)
%319 = load i64, i64* %5
%320 = add i64 %319, 16
%321 = trunc i64 %320 to i32
%322 = load i64, i64* %63
%323 = call i32 @_br2_store(i32 %321, i64 %322, i32 8)
%324 = load i64, i64* %5
%325 = add i64 %324, 20
%326 = trunc i64 %325 to i32
%327 = load i64, i64* %64
%328 = call i32 @_br2_store(i32 %326, i64 %327, i32 8)
%329 = load i64, i64* %5
%330 = add i64 %329, 24
%331 = trunc i64 %330 to i32
%332 = load i64, i64* %65
%333 = call i32 @_br2_store(i32 %331, i64 %332, i32 8)
%334 = load i64, i64* %5
%335 = add i64 %334, 28
%336 = trunc i64 %335 to i32
%337 = load i64, i64* %66
%338 = call i32 @_br2_store(i32 %336, i64 %337, i32 8)
%339 = load i64, i64* %5
%340 = add i64 %339, 32
%341 = trunc i64 %340 to i32
%342 = load i64, i64* %67
%343 = call i32 @_br2_store(i32 %341, i64 %342, i32 8)
%344 = load i64, i64* %5
%345 = add i64 %344, 36
%346 = trunc i64 %345 to i32
%347 = load i64, i64* %68
%348 = call i32 @_br2_store(i32 %346, i64 %347, i32 8)
ret void
}

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