#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 int /*<<< orphan*/ out0;
typedef int /*<<< orphan*/ in0;

/* Variables and functions */
uintptr_t _br2_load(int /*<<< orphan*/, int);
int /*<<< orphan*/ _br2_store(int /*<<< orphan*/, uintptr_t, int);
void internal_fiat_p521_opp(uintptr_t out0, uintptr_t in0) {
  uintptr_t x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14,
      x15, x16, x17, x18, x19, x20, x21, x22, x23, x24, x25, x26;
  x0 = _br2_load((in0) + ((uintptr_t)0ULL), sizeof(uintptr_t));
  x1 = _br2_load((in0) + ((uintptr_t)8ULL), sizeof(uintptr_t));
  x2 = _br2_load((in0) + ((uintptr_t)16ULL), sizeof(uintptr_t));
  x3 = _br2_load((in0) + ((uintptr_t)24ULL), sizeof(uintptr_t));
  x4 = _br2_load((in0) + ((uintptr_t)32ULL), sizeof(uintptr_t));
  x5 = _br2_load((in0) + ((uintptr_t)40ULL), sizeof(uintptr_t));
  x6 = _br2_load((in0) + ((uintptr_t)48ULL), sizeof(uintptr_t));
  x7 = _br2_load((in0) + ((uintptr_t)56ULL), sizeof(uintptr_t));
  x8 = _br2_load((in0) + ((uintptr_t)64ULL), sizeof(uintptr_t));
  x9 = ((uintptr_t)576460752303423486ULL) - (x0);
  x10 = ((uintptr_t)576460752303423486ULL) - (x1);
  x11 = ((uintptr_t)576460752303423486ULL) - (x2);
  x12 = ((uintptr_t)576460752303423486ULL) - (x3);
  x13 = ((uintptr_t)576460752303423486ULL) - (x4);
  x14 = ((uintptr_t)576460752303423486ULL) - (x5);
  x15 = ((uintptr_t)576460752303423486ULL) - (x6);
  x16 = ((uintptr_t)576460752303423486ULL) - (x7);
  x17 = ((uintptr_t)288230376151711742ULL) - (x8);
  x18 = x9;
  x19 = x10;
  x20 = x11;
  x21 = x12;
  x22 = x13;
  x23 = x14;
  x24 = x15;
  x25 = x16;
  x26 = x17;
  _br2_store((out0) + ((uintptr_t)0ULL), x18, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)8ULL), x19, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)16ULL), x20, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)24ULL), x21, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)32ULL), x22, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)40ULL), x23, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)48ULL), x24, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)56ULL), x25, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)64ULL), x26, sizeof(uintptr_t));
  return;
}


x86 assembly (clang, -O0):
<internal_fiat_p521_opp>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x0,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
add    $0x10,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
add    $0x18,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
add    $0x20,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
add    $0x28,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
add    $0x30,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
add    $0x38,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x50(%rbp)
mov    -0x10(%rbp),%rax
add    $0x40,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x58(%rbp)
movabs $0x7fffffffffffffe,%rax
ff ff 07
sub    -0x18(%rbp),%rax
mov    %rax,-0x60(%rbp)
movabs $0x7fffffffffffffe,%rax
ff ff 07
sub    -0x20(%rbp),%rax
mov    %rax,-0x68(%rbp)
movabs $0x7fffffffffffffe,%rax
ff ff 07
sub    -0x28(%rbp),%rax
mov    %rax,-0x70(%rbp)
movabs $0x7fffffffffffffe,%rax
ff ff 07
sub    -0x30(%rbp),%rax
mov    %rax,-0x78(%rbp)
movabs $0x7fffffffffffffe,%rax
ff ff 07
sub    -0x38(%rbp),%rax
mov    %rax,-0x80(%rbp)
movabs $0x7fffffffffffffe,%rax
ff ff 07
sub    -0x40(%rbp),%rax
mov    %rax,-0x88(%rbp)
movabs $0x7fffffffffffffe,%rax
ff ff 07
sub    -0x48(%rbp),%rax
mov    %rax,-0x90(%rbp)
movabs $0x7fffffffffffffe,%rax
ff ff 07
sub    -0x50(%rbp),%rax
mov    %rax,-0x98(%rbp)
movabs $0x3fffffffffffffe,%rax
ff ff 03
sub    -0x58(%rbp),%rax
mov    %rax,-0xa0(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,-0xa8(%rbp)
mov    -0x68(%rbp),%rax
mov    %rax,-0xb0(%rbp)
mov    -0x70(%rbp),%rax
mov    %rax,-0xb8(%rbp)
mov    -0x78(%rbp),%rax
mov    %rax,-0xc0(%rbp)
mov    -0x80(%rbp),%rax
mov    %rax,-0xc8(%rbp)
mov    -0x88(%rbp),%rax
mov    %rax,-0xd0(%rbp)
mov    -0x90(%rbp),%rax
mov    %rax,-0xd8(%rbp)
mov    -0x98(%rbp),%rax
mov    %rax,-0xe0(%rbp)
mov    -0xa0(%rbp),%rax
mov    %rax,-0xe8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x0,%rax
mov    %eax,%edi
mov    -0xa8(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x8,%rax
mov    %eax,%edi
mov    -0xb0(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rax
mov    %eax,%edi
mov    -0xb8(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x18,%rax
mov    %eax,%edi
mov    -0xc0(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x20,%rax
mov    %eax,%edi
mov    -0xc8(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x28,%rax
mov    %eax,%edi
mov    -0xd0(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x30,%rax
mov    %eax,%edi
mov    -0xd8(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x38,%rax
mov    %eax,%edi
mov    -0xe0(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x40,%rax
mov    %eax,%edi
mov    -0xe8(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<internal_fiat_p521_opp>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %ebx,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r12
lea    0x8(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x10(%rsp)
lea    0x10(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r15
lea    0x18(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%rbp
lea    0x20(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x8(%rsp)
lea    0x28(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,(%rsp)
lea    0x30(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x20(%rsp)
lea    0x38(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x18(%rsp)
add    $0x40,%ebx
mov    %ebx,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
movabs $0x7fffffffffffffe,%rbx
ff ff 07
mov    %rbx,%rsi
sub    %r12,%rsi
mov    %rbx,%r13
sub    0x10(%rsp),%r13
mov    %rbx,%r12
sub    %r15,%r12
mov    %rbx,%r15
sub    %rbp,%r15
mov    %rbx,%rbp
sub    0x8(%rsp),%rbp
mov    %rbx,%rcx
sub    (%rsp),%rcx
mov    %rcx,(%rsp)
mov    %rbx,%rcx
sub    0x20(%rsp),%rcx
mov    %rcx,0x8(%rsp)
sub    0x18(%rsp),%rbx
movabs $0x3fffffffffffffe,%rcx
ff ff 03
sub    %rax,%rcx
mov    %rcx,0x10(%rsp)
mov    %r14d,%edi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x8(%r14),%edi
mov    %r13,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x10(%r14),%edi
mov    %r12,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x18(%r14),%edi
mov    %r15,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x20(%r14),%edi
mov    %rbp,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x28(%r14),%edi
mov    (%rsp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x30(%r14),%edi
mov    0x8(%rsp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x38(%r14),%edi
mov    %rbx,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
add    $0x40,%r14d
mov    %r14d,%edi
mov    0x10(%rsp),%rsi
mov    $0x8,%edx
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <_br2_store@plt>

LLVM IR (-O0):
define void @internal_fiat_p521_opp(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
%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
store i64 %0, i64* %3
store i64 %1, i64* %4
%32 = load i64, i64* %4
%33 = add i64 %32, 0
%34 = trunc i64 %33 to i32
%35 = call i64 @_br2_load(i32 %34, i32 8)
store i64 %35, i64* %5
%36 = load i64, i64* %4
%37 = add i64 %36, 8
%38 = trunc i64 %37 to i32
%39 = call i64 @_br2_load(i32 %38, i32 8)
store i64 %39, i64* %6
%40 = load i64, i64* %4
%41 = add i64 %40, 16
%42 = trunc i64 %41 to i32
%43 = call i64 @_br2_load(i32 %42, i32 8)
store i64 %43, i64* %7
%44 = load i64, i64* %4
%45 = add i64 %44, 24
%46 = trunc i64 %45 to i32
%47 = call i64 @_br2_load(i32 %46, i32 8)
store i64 %47, i64* %8
%48 = load i64, i64* %4
%49 = add i64 %48, 32
%50 = trunc i64 %49 to i32
%51 = call i64 @_br2_load(i32 %50, i32 8)
store i64 %51, i64* %9
%52 = load i64, i64* %4
%53 = add i64 %52, 40
%54 = trunc i64 %53 to i32
%55 = call i64 @_br2_load(i32 %54, i32 8)
store i64 %55, i64* %10
%56 = load i64, i64* %4
%57 = add i64 %56, 48
%58 = trunc i64 %57 to i32
%59 = call i64 @_br2_load(i32 %58, i32 8)
store i64 %59, i64* %11
%60 = load i64, i64* %4
%61 = add i64 %60, 56
%62 = trunc i64 %61 to i32
%63 = call i64 @_br2_load(i32 %62, i32 8)
store i64 %63, i64* %12
%64 = load i64, i64* %4
%65 = add i64 %64, 64
%66 = trunc i64 %65 to i32
%67 = call i64 @_br2_load(i32 %66, i32 8)
store i64 %67, i64* %13
%68 = load i64, i64* %5
%69 = sub i64 576460752303423486, %68
store i64 %69, i64* %14
%70 = load i64, i64* %6
%71 = sub i64 576460752303423486, %70
store i64 %71, i64* %15
%72 = load i64, i64* %7
%73 = sub i64 576460752303423486, %72
store i64 %73, i64* %16
%74 = load i64, i64* %8
%75 = sub i64 576460752303423486, %74
store i64 %75, i64* %17
%76 = load i64, i64* %9
%77 = sub i64 576460752303423486, %76
store i64 %77, i64* %18
%78 = load i64, i64* %10
%79 = sub i64 576460752303423486, %78
store i64 %79, i64* %19
%80 = load i64, i64* %11
%81 = sub i64 576460752303423486, %80
store i64 %81, i64* %20
%82 = load i64, i64* %12
%83 = sub i64 576460752303423486, %82
store i64 %83, i64* %21
%84 = load i64, i64* %13
%85 = sub i64 288230376151711742, %84
store i64 %85, i64* %22
%86 = load i64, i64* %14
store i64 %86, i64* %23
%87 = load i64, i64* %15
store i64 %87, i64* %24
%88 = load i64, i64* %16
store i64 %88, i64* %25
%89 = load i64, i64* %17
store i64 %89, i64* %26
%90 = load i64, i64* %18
store i64 %90, i64* %27
%91 = load i64, i64* %19
store i64 %91, i64* %28
%92 = load i64, i64* %20
store i64 %92, i64* %29
%93 = load i64, i64* %21
store i64 %93, i64* %30
%94 = load i64, i64* %22
store i64 %94, i64* %31
%95 = load i64, i64* %3
%96 = add i64 %95, 0
%97 = trunc i64 %96 to i32
%98 = load i64, i64* %23
%99 = call i32 @_br2_store(i32 %97, i64 %98, i32 8)
%100 = load i64, i64* %3
%101 = add i64 %100, 8
%102 = trunc i64 %101 to i32
%103 = load i64, i64* %24
%104 = call i32 @_br2_store(i32 %102, i64 %103, i32 8)
%105 = load i64, i64* %3
%106 = add i64 %105, 16
%107 = trunc i64 %106 to i32
%108 = load i64, i64* %25
%109 = call i32 @_br2_store(i32 %107, i64 %108, i32 8)
%110 = load i64, i64* %3
%111 = add i64 %110, 24
%112 = trunc i64 %111 to i32
%113 = load i64, i64* %26
%114 = call i32 @_br2_store(i32 %112, i64 %113, i32 8)
%115 = load i64, i64* %3
%116 = add i64 %115, 32
%117 = trunc i64 %116 to i32
%118 = load i64, i64* %27
%119 = call i32 @_br2_store(i32 %117, i64 %118, i32 8)
%120 = load i64, i64* %3
%121 = add i64 %120, 40
%122 = trunc i64 %121 to i32
%123 = load i64, i64* %28
%124 = call i32 @_br2_store(i32 %122, i64 %123, i32 8)
%125 = load i64, i64* %3
%126 = add i64 %125, 48
%127 = trunc i64 %126 to i32
%128 = load i64, i64* %29
%129 = call i32 @_br2_store(i32 %127, i64 %128, i32 8)
%130 = load i64, i64* %3
%131 = add i64 %130, 56
%132 = trunc i64 %131 to i32
%133 = load i64, i64* %30
%134 = call i32 @_br2_store(i32 %132, i64 %133, i32 8)
%135 = load i64, i64* %3
%136 = add i64 %135, 64
%137 = trunc i64 %136 to i32
%138 = load i64, i64* %31
%139 = call i32 @_br2_store(i32 %137, i64 %138, i32 8)
ret void
}

LLVM IR (-O2):
define void @internal_fiat_p521_opp(i64 %0, i64 %1) {
%3 = trunc i64 %1 to i32
%4 = tail call i64 @_br2_load(i32 %3, i32 8)
%5 = add i32 %3, 8
%6 = tail call i64 @_br2_load(i32 %5, i32 8)
%7 = add i32 %3, 16
%8 = tail call i64 @_br2_load(i32 %7, i32 8)
%9 = add i32 %3, 24
%10 = tail call i64 @_br2_load(i32 %9, i32 8)
%11 = add i32 %3, 32
%12 = tail call i64 @_br2_load(i32 %11, i32 8)
%13 = add i32 %3, 40
%14 = tail call i64 @_br2_load(i32 %13, i32 8)
%15 = add i32 %3, 48
%16 = tail call i64 @_br2_load(i32 %15, i32 8)
%17 = add i32 %3, 56
%18 = tail call i64 @_br2_load(i32 %17, i32 8)
%19 = add i32 %3, 64
%20 = tail call i64 @_br2_load(i32 %19, i32 8)
%21 = sub i64 576460752303423486, %4
%22 = sub i64 576460752303423486, %6
%23 = sub i64 576460752303423486, %8
%24 = sub i64 576460752303423486, %10
%25 = sub i64 576460752303423486, %12
%26 = sub i64 576460752303423486, %14
%27 = sub i64 576460752303423486, %16
%28 = sub i64 576460752303423486, %18
%29 = sub i64 288230376151711742, %20
%30 = trunc i64 %0 to i32
%31 = tail call i32 @_br2_store(i32 %30, i64 %21, i32 8)
%32 = add i32 %30, 8
%33 = tail call i32 @_br2_store(i32 %32, i64 %22, i32 8)
%34 = add i32 %30, 16
%35 = tail call i32 @_br2_store(i32 %34, i64 %23, i32 8)
%36 = add i32 %30, 24
%37 = tail call i32 @_br2_store(i32 %36, i64 %24, i32 8)
%38 = add i32 %30, 32
%39 = tail call i32 @_br2_store(i32 %38, i64 %25, i32 8)
%40 = add i32 %30, 40
%41 = tail call i32 @_br2_store(i32 %40, i64 %26, i32 8)
%42 = add i32 %30, 48
%43 = tail call i32 @_br2_store(i32 %42, i64 %27, i32 8)
%44 = add i32 %30, 56
%45 = tail call i32 @_br2_store(i32 %44, i64 %28, i32 8)
%46 = add i32 %30, 64
%47 = tail call i32 @_br2_store(i32 %46, i64 %29, i32 8)
ret void
}