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


x86 assembly (clang, -O0):
<internal_fiat_secp256k1_selectznz>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1a0,%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    -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)
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,-0x128(%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,-0x130(%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,-0x138(%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,-0x140(%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,-0x148(%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,-0x150(%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,-0x158(%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,-0x160(%rbp)
mov    -0x128(%rbp),%rax
mov    %rax,-0x168(%rbp)
mov    -0x130(%rbp),%rax
mov    %rax,-0x170(%rbp)
mov    -0x138(%rbp),%rax
mov    %rax,-0x178(%rbp)
mov    -0x140(%rbp),%rax
mov    %rax,-0x180(%rbp)
mov    -0x148(%rbp),%rax
mov    %rax,-0x188(%rbp)
mov    -0x150(%rbp),%rax
mov    %rax,-0x190(%rbp)
mov    -0x158(%rbp),%rax
mov    %rax,-0x198(%rbp)
mov    -0x160(%rbp),%rax
mov    %rax,-0x1a0(%rbp)
mov    -0x8(%rbp),%rax
add    $0x0,%rax
mov    %eax,%edi
mov    -0x168(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %eax,%edi
mov    -0x170(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x8,%rax
mov    %eax,%edi
mov    -0x178(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0xc,%rax
mov    %eax,%edi
mov    -0x180(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rax
mov    %eax,%edi
mov    -0x188(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x14,%rax
mov    %eax,%edi
mov    -0x190(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x18,%rax
mov    %eax,%edi
mov    -0x198(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x1c,%rax
mov    %eax,%edi
mov    -0x1a0(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
add    $0x1a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<internal_fiat_secp256k1_selectznz>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rcx,%r14
mov    %rdx,%rbx
mov    %rsi,%rbp
mov    %rdi,0x60(%rsp)
mov    %ebx,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x58(%rsp)
lea    0x4(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x50(%rsp)
lea    0x8(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x10(%rsp)
lea    0xc(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x8(%rsp)
lea    0x10(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x48(%rsp)
lea    0x14(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x40(%rsp)
lea    0x18(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x38(%rsp)
add    $0x1c,%ebx
mov    %ebx,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x30(%rsp)
mov    %r14d,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x28(%rsp)
lea    0x4(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x20(%rsp)
lea    0x8(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x18(%rsp)
lea    0xc(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%rbx
lea    0x10(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r15
lea    0x14(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r12
lea    0x18(%r14),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r13
add    $0x1c,%r14d
mov    %r14d,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
neg    %rbp
sbb    %rcx,%rcx
mov    $0xffffffff,%ebp
xor    %rcx,%rbp
mov    0x28(%rsp),%rdx
and    %rcx,%rdx
mov    0x58(%rsp),%rsi
and    %rbp,%rsi
or     %rdx,%rsi
mov    0x20(%rsp),%rdx
and    %rcx,%rdx
mov    0x50(%rsp),%r14
and    %rbp,%r14
or     %rdx,%r14
mov    0x18(%rsp),%rdi
and    %rcx,%rdi
mov    0x10(%rsp),%rdx
and    %rbp,%rdx
or     %rdi,%rdx
mov    %rdx,0x10(%rsp)
and    %rcx,%rbx
mov    0x8(%rsp),%rdx
and    %rbp,%rdx
or     %rbx,%rdx
mov    %rdx,0x8(%rsp)
and    %rcx,%r15
mov    0x48(%rsp),%rdx
and    %rbp,%rdx
or     %r15,%rdx
mov    %rdx,%r15
and    %rcx,%r12
mov    0x40(%rsp),%rdx
and    %rbp,%rdx
or     %r12,%rdx
mov    %rdx,%r12
and    %rcx,%r13
mov    0x38(%rsp),%rdx
and    %rbp,%rdx
or     %r13,%rdx
mov    %rdx,%r13
and    %rax,%rcx
and    0x30(%rsp),%rbp
or     %rcx,%rbp
mov    0x60(%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    0x10(%rsp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0xc(%rbx),%edi
mov    0x8(%rsp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x10(%rbx),%edi
mov    %r15,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x14(%rbx),%edi
mov    %r12,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x18(%rbx),%edi
mov    %r13,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
add    $0x1c,%ebx
mov    %ebx,%edi
mov    %rbp,%rsi
mov    $0x8,%edx
add    $0x68,%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_secp256k1_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
store i64 %0, i64* %5
store i64 %1, i64* %6
store i64 %2, i64* %7
store i64 %3, i64* %8
%57 = load i64, i64* %7
%58 = add i64 %57, 0
%59 = trunc i64 %58 to i32
%60 = call i64 @_br2_load(i32 %59, i32 8)
store i64 %60, i64* %11
%61 = load i64, i64* %7
%62 = add i64 %61, 4
%63 = trunc i64 %62 to i32
%64 = call i64 @_br2_load(i32 %63, i32 8)
store i64 %64, i64* %15
%65 = load i64, i64* %7
%66 = add i64 %65, 8
%67 = trunc i64 %66 to i32
%68 = call i64 @_br2_load(i32 %67, i32 8)
store i64 %68, i64* %19
%69 = load i64, i64* %7
%70 = add i64 %69, 12
%71 = trunc i64 %70 to i32
%72 = call i64 @_br2_load(i32 %71, i32 8)
store i64 %72, i64* %23
%73 = load i64, i64* %7
%74 = add i64 %73, 16
%75 = trunc i64 %74 to i32
%76 = call i64 @_br2_load(i32 %75, i32 8)
store i64 %76, i64* %27
%77 = load i64, i64* %7
%78 = add i64 %77, 20
%79 = trunc i64 %78 to i32
%80 = call i64 @_br2_load(i32 %79, i32 8)
store i64 %80, i64* %31
%81 = load i64, i64* %7
%82 = add i64 %81, 24
%83 = trunc i64 %82 to i32
%84 = call i64 @_br2_load(i32 %83, i32 8)
store i64 %84, i64* %35
%85 = load i64, i64* %7
%86 = add i64 %85, 28
%87 = trunc i64 %86 to i32
%88 = call i64 @_br2_load(i32 %87, i32 8)
store i64 %88, i64* %39
%89 = load i64, i64* %8
%90 = add i64 %89, 0
%91 = trunc i64 %90 to i32
%92 = call i64 @_br2_load(i32 %91, i32 8)
store i64 %92, i64* %9
%93 = load i64, i64* %8
%94 = add i64 %93, 4
%95 = trunc i64 %94 to i32
%96 = call i64 @_br2_load(i32 %95, i32 8)
store i64 %96, i64* %13
%97 = load i64, i64* %8
%98 = add i64 %97, 8
%99 = trunc i64 %98 to i32
%100 = call i64 @_br2_load(i32 %99, i32 8)
store i64 %100, i64* %17
%101 = load i64, i64* %8
%102 = add i64 %101, 12
%103 = trunc i64 %102 to i32
%104 = call i64 @_br2_load(i32 %103, i32 8)
store i64 %104, i64* %21
%105 = load i64, i64* %8
%106 = add i64 %105, 16
%107 = trunc i64 %106 to i32
%108 = call i64 @_br2_load(i32 %107, i32 8)
store i64 %108, i64* %25
%109 = load i64, i64* %8
%110 = add i64 %109, 20
%111 = trunc i64 %110 to i32
%112 = call i64 @_br2_load(i32 %111, i32 8)
store i64 %112, i64* %29
%113 = load i64, i64* %8
%114 = add i64 %113, 24
%115 = trunc i64 %114 to i32
%116 = call i64 @_br2_load(i32 %115, i32 8)
store i64 %116, i64* %33
%117 = load i64, i64* %8
%118 = add i64 %117, 28
%119 = trunc i64 %118 to i32
%120 = call i64 @_br2_load(i32 %119, i32 8)
store i64 %120, i64* %37
%121 = load i64, i64* %6
%122 = icmp eq i64 %121, 0
%123 = zext i1 %122 to i32
%124 = sext i32 %123 to i64
%125 = add i64 -1, %124
store i64 %125, i64* %10
%126 = load i64, i64* %10
%127 = xor i64 %126, 4294967295
store i64 %127, i64* %12
%128 = load i64, i64* %9
%129 = load i64, i64* %10
%130 = and i64 %128, %129
%131 = load i64, i64* %11
%132 = load i64, i64* %12
%133 = and i64 %131, %132
%134 = or i64 %130, %133
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* %14
%140 = load i64, i64* %14
%141 = xor i64 %140, 4294967295
store i64 %141, i64* %16
%142 = load i64, i64* %13
%143 = load i64, i64* %14
%144 = and i64 %142, %143
%145 = load i64, i64* %15
%146 = load i64, i64* %16
%147 = and i64 %145, %146
%148 = or i64 %144, %147
store i64 %148, i64* %42
%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* %18
%154 = load i64, i64* %18
%155 = xor i64 %154, 4294967295
store i64 %155, i64* %20
%156 = load i64, i64* %17
%157 = load i64, i64* %18
%158 = and i64 %156, %157
%159 = load i64, i64* %19
%160 = load i64, i64* %20
%161 = and i64 %159, %160
%162 = or i64 %158, %161
store i64 %162, i64* %43
%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* %22
%168 = load i64, i64* %22
%169 = xor i64 %168, 4294967295
store i64 %169, i64* %24
%170 = load i64, i64* %21
%171 = load i64, i64* %22
%172 = and i64 %170, %171
%173 = load i64, i64* %23
%174 = load i64, i64* %24
%175 = and i64 %173, %174
%176 = or i64 %172, %175
store i64 %176, i64* %44
%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* %26
%182 = load i64, i64* %26
%183 = xor i64 %182, 4294967295
store i64 %183, i64* %28
%184 = load i64, i64* %25
%185 = load i64, i64* %26
%186 = and i64 %184, %185
%187 = load i64, i64* %27
%188 = load i64, i64* %28
%189 = and i64 %187, %188
%190 = or i64 %186, %189
store i64 %190, i64* %45
%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* %30
%196 = load i64, i64* %30
%197 = xor i64 %196, 4294967295
store i64 %197, i64* %32
%198 = load i64, i64* %29
%199 = load i64, i64* %30
%200 = and i64 %198, %199
%201 = load i64, i64* %31
%202 = load i64, i64* %32
%203 = and i64 %201, %202
%204 = or i64 %200, %203
store i64 %204, i64* %46
%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* %34
%210 = load i64, i64* %34
%211 = xor i64 %210, 4294967295
store i64 %211, i64* %36
%212 = load i64, i64* %33
%213 = load i64, i64* %34
%214 = and i64 %212, %213
%215 = load i64, i64* %35
%216 = load i64, i64* %36
%217 = and i64 %215, %216
%218 = or i64 %214, %217
store i64 %218, i64* %47
%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* %38
%224 = load i64, i64* %38
%225 = xor i64 %224, 4294967295
store i64 %225, i64* %40
%226 = load i64, i64* %37
%227 = load i64, i64* %38
%228 = and i64 %226, %227
%229 = load i64, i64* %39
%230 = load i64, i64* %40
%231 = and i64 %229, %230
%232 = or i64 %228, %231
store i64 %232, i64* %48
%233 = load i64, i64* %41
store i64 %233, i64* %49
%234 = load i64, i64* %42
store i64 %234, i64* %50
%235 = load i64, i64* %43
store i64 %235, i64* %51
%236 = load i64, i64* %44
store i64 %236, i64* %52
%237 = load i64, i64* %45
store i64 %237, i64* %53
%238 = load i64, i64* %46
store i64 %238, i64* %54
%239 = load i64, i64* %47
store i64 %239, i64* %55
%240 = load i64, i64* %48
store i64 %240, i64* %56
%241 = load i64, i64* %5
%242 = add i64 %241, 0
%243 = trunc i64 %242 to i32
%244 = load i64, i64* %49
%245 = call i32 @_br2_store(i32 %243, i64 %244, i32 8)
%246 = load i64, i64* %5
%247 = add i64 %246, 4
%248 = trunc i64 %247 to i32
%249 = load i64, i64* %50
%250 = call i32 @_br2_store(i32 %248, i64 %249, i32 8)
%251 = load i64, i64* %5
%252 = add i64 %251, 8
%253 = trunc i64 %252 to i32
%254 = load i64, i64* %51
%255 = call i32 @_br2_store(i32 %253, i64 %254, i32 8)
%256 = load i64, i64* %5
%257 = add i64 %256, 12
%258 = trunc i64 %257 to i32
%259 = load i64, i64* %52
%260 = call i32 @_br2_store(i32 %258, i64 %259, i32 8)
%261 = load i64, i64* %5
%262 = add i64 %261, 16
%263 = trunc i64 %262 to i32
%264 = load i64, i64* %53
%265 = call i32 @_br2_store(i32 %263, i64 %264, i32 8)
%266 = load i64, i64* %5
%267 = add i64 %266, 20
%268 = trunc i64 %267 to i32
%269 = load i64, i64* %54
%270 = call i32 @_br2_store(i32 %268, i64 %269, i32 8)
%271 = load i64, i64* %5
%272 = add i64 %271, 24
%273 = trunc i64 %272 to i32
%274 = load i64, i64* %55
%275 = call i32 @_br2_store(i32 %273, i64 %274, i32 8)
%276 = load i64, i64* %5
%277 = add i64 %276, 28
%278 = trunc i64 %277 to i32
%279 = load i64, i64* %56
%280 = call i32 @_br2_store(i32 %278, i64 %279, i32 8)
ret void
}

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