#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 scalar_t__ uint32_t;

/* Variables and functions */
scalar_t__ const UINT32_C(int);
void fiat_25519_opp(uint32_t out1[10], const uint32_t arg1[10]) {
  uint32_t x1 = (UINT32_C(0x7ffffda) - (arg1[0]));
  uint32_t x2 = (UINT32_C(0x3fffffe) - (arg1[1]));
  uint32_t x3 = (UINT32_C(0x7fffffe) - (arg1[2]));
  uint32_t x4 = (UINT32_C(0x3fffffe) - (arg1[3]));
  uint32_t x5 = (UINT32_C(0x7fffffe) - (arg1[4]));
  uint32_t x6 = (UINT32_C(0x3fffffe) - (arg1[5]));
  uint32_t x7 = (UINT32_C(0x7fffffe) - (arg1[6]));
  uint32_t x8 = (UINT32_C(0x3fffffe) - (arg1[7]));
  uint32_t x9 = (UINT32_C(0x7fffffe) - (arg1[8]));
  uint32_t x10 = (UINT32_C(0x3fffffe) - (arg1[9]));
  out1[0] = x1;
  out1[1] = x2;
  out1[2] = x3;
  out1[3] = x4;
  out1[4] = x5;
  out1[5] = x6;
  out1[6] = x7;
  out1[7] = x8;
  out1[8] = x9;
  out1[9] = x10;
}


x86 assembly (clang, -O0):
<fiat_25519_opp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x7ffffda,%edi
call   1030 <UINT32_C@plt>
mov    -0x10(%rbp),%rcx
sub    (%rcx),%rax
mov    %rax,-0x18(%rbp)
mov    $0x3fffffe,%edi
call   1030 <UINT32_C@plt>
mov    -0x10(%rbp),%rcx
sub    0x8(%rcx),%rax
mov    %rax,-0x20(%rbp)
mov    $0x7fffffe,%edi
call   1030 <UINT32_C@plt>
mov    -0x10(%rbp),%rcx
sub    0x10(%rcx),%rax
mov    %rax,-0x28(%rbp)
mov    $0x3fffffe,%edi
call   1030 <UINT32_C@plt>
mov    -0x10(%rbp),%rcx
sub    0x18(%rcx),%rax
mov    %rax,-0x30(%rbp)
mov    $0x7fffffe,%edi
call   1030 <UINT32_C@plt>
mov    -0x10(%rbp),%rcx
sub    0x20(%rcx),%rax
mov    %rax,-0x38(%rbp)
mov    $0x3fffffe,%edi
call   1030 <UINT32_C@plt>
mov    -0x10(%rbp),%rcx
sub    0x28(%rcx),%rax
mov    %rax,-0x40(%rbp)
mov    $0x7fffffe,%edi
call   1030 <UINT32_C@plt>
mov    -0x10(%rbp),%rcx
sub    0x30(%rcx),%rax
mov    %rax,-0x48(%rbp)
mov    $0x3fffffe,%edi
call   1030 <UINT32_C@plt>
mov    -0x10(%rbp),%rcx
sub    0x38(%rcx),%rax
mov    %rax,-0x50(%rbp)
mov    $0x7fffffe,%edi
call   1030 <UINT32_C@plt>
mov    -0x10(%rbp),%rcx
sub    0x40(%rcx),%rax
mov    %rax,-0x58(%rbp)
mov    $0x3fffffe,%edi
call   1030 <UINT32_C@plt>
mov    -0x10(%rbp),%rcx
sub    0x48(%rcx),%rax
mov    %rax,-0x60(%rbp)
mov    -0x18(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x8(%rax)
mov    -0x28(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x10(%rax)
mov    -0x30(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x18(%rax)
mov    -0x38(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x20(%rax)
mov    -0x40(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x28(%rax)
mov    -0x48(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x30(%rax)
mov    -0x50(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x38(%rax)
mov    -0x58(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x40(%rax)
mov    -0x60(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x48(%rax)
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fiat_25519_opp>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%rbx
mov    %rdi,%r14
mov    $0x7ffffda,%edi
call   1030 <UINT32_C@plt>
sub    (%rbx),%rax
mov    %rax,0x20(%rsp)
mov    $0x3fffffe,%edi
call   1030 <UINT32_C@plt>
sub    0x8(%rbx),%rax
mov    %rax,0x18(%rsp)
mov    $0x7fffffe,%edi
call   1030 <UINT32_C@plt>
sub    0x10(%rbx),%rax
mov    %rax,0x10(%rsp)
mov    $0x3fffffe,%edi
call   1030 <UINT32_C@plt>
sub    0x18(%rbx),%rax
mov    %rax,0x8(%rsp)
mov    $0x7fffffe,%edi
call   1030 <UINT32_C@plt>
sub    0x20(%rbx),%rax
mov    %rax,(%rsp)
mov    $0x3fffffe,%edi
call   1030 <UINT32_C@plt>
mov    %rax,%r12
sub    0x28(%rbx),%r12
mov    $0x7fffffe,%edi
call   1030 <UINT32_C@plt>
mov    %rax,%r13
sub    0x30(%rbx),%r13
mov    $0x3fffffe,%edi
call   1030 <UINT32_C@plt>
mov    %rax,%rbp
sub    0x38(%rbx),%rbp
mov    $0x7fffffe,%edi
call   1030 <UINT32_C@plt>
mov    %rax,%r15
sub    0x40(%rbx),%r15
mov    $0x3fffffe,%edi
call   1030 <UINT32_C@plt>
sub    0x48(%rbx),%rax
mov    0x20(%rsp),%rcx
mov    %rcx,(%r14)
mov    0x18(%rsp),%rcx
mov    %rcx,0x8(%r14)
mov    0x10(%rsp),%rcx
mov    %rcx,0x10(%r14)
mov    0x8(%rsp),%rcx
mov    %rcx,0x18(%r14)
mov    (%rsp),%rcx
mov    %rcx,0x20(%r14)
mov    %r12,0x28(%r14)
mov    %r13,0x30(%r14)
mov    %rbp,0x38(%r14)
mov    %r15,0x40(%r14)
mov    %rax,0x48(%r14)
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @fiat_25519_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
store i64* %0, i64** %3
store i64* %1, i64** %4
%15 = call i64 @UINT32_C(i32 134217690)
%16 = load i64*, i64** %4
%17 = getelementptr inbounds i64, i64* %16, i64 0
%18 = load i64, i64* %17
%19 = sub nsw i64 %15, %18
store i64 %19, i64* %5
%20 = call i64 @UINT32_C(i32 67108862)
%21 = load i64*, i64** %4
%22 = getelementptr inbounds i64, i64* %21, i64 1
%23 = load i64, i64* %22
%24 = sub nsw i64 %20, %23
store i64 %24, i64* %6
%25 = call i64 @UINT32_C(i32 134217726)
%26 = load i64*, i64** %4
%27 = getelementptr inbounds i64, i64* %26, i64 2
%28 = load i64, i64* %27
%29 = sub nsw i64 %25, %28
store i64 %29, i64* %7
%30 = call i64 @UINT32_C(i32 67108862)
%31 = load i64*, i64** %4
%32 = getelementptr inbounds i64, i64* %31, i64 3
%33 = load i64, i64* %32
%34 = sub nsw i64 %30, %33
store i64 %34, i64* %8
%35 = call i64 @UINT32_C(i32 134217726)
%36 = load i64*, i64** %4
%37 = getelementptr inbounds i64, i64* %36, i64 4
%38 = load i64, i64* %37
%39 = sub nsw i64 %35, %38
store i64 %39, i64* %9
%40 = call i64 @UINT32_C(i32 67108862)
%41 = load i64*, i64** %4
%42 = getelementptr inbounds i64, i64* %41, i64 5
%43 = load i64, i64* %42
%44 = sub nsw i64 %40, %43
store i64 %44, i64* %10
%45 = call i64 @UINT32_C(i32 134217726)
%46 = load i64*, i64** %4
%47 = getelementptr inbounds i64, i64* %46, i64 6
%48 = load i64, i64* %47
%49 = sub nsw i64 %45, %48
store i64 %49, i64* %11
%50 = call i64 @UINT32_C(i32 67108862)
%51 = load i64*, i64** %4
%52 = getelementptr inbounds i64, i64* %51, i64 7
%53 = load i64, i64* %52
%54 = sub nsw i64 %50, %53
store i64 %54, i64* %12
%55 = call i64 @UINT32_C(i32 134217726)
%56 = load i64*, i64** %4
%57 = getelementptr inbounds i64, i64* %56, i64 8
%58 = load i64, i64* %57
%59 = sub nsw i64 %55, %58
store i64 %59, i64* %13
%60 = call i64 @UINT32_C(i32 67108862)
%61 = load i64*, i64** %4
%62 = getelementptr inbounds i64, i64* %61, i64 9
%63 = load i64, i64* %62
%64 = sub nsw i64 %60, %63
store i64 %64, i64* %14
%65 = load i64, i64* %5
%66 = load i64*, i64** %3
%67 = getelementptr inbounds i64, i64* %66, i64 0
store i64 %65, i64* %67
%68 = load i64, i64* %6
%69 = load i64*, i64** %3
%70 = getelementptr inbounds i64, i64* %69, i64 1
store i64 %68, i64* %70
%71 = load i64, i64* %7
%72 = load i64*, i64** %3
%73 = getelementptr inbounds i64, i64* %72, i64 2
store i64 %71, i64* %73
%74 = load i64, i64* %8
%75 = load i64*, i64** %3
%76 = getelementptr inbounds i64, i64* %75, i64 3
store i64 %74, i64* %76
%77 = load i64, i64* %9
%78 = load i64*, i64** %3
%79 = getelementptr inbounds i64, i64* %78, i64 4
store i64 %77, i64* %79
%80 = load i64, i64* %10
%81 = load i64*, i64** %3
%82 = getelementptr inbounds i64, i64* %81, i64 5
store i64 %80, i64* %82
%83 = load i64, i64* %11
%84 = load i64*, i64** %3
%85 = getelementptr inbounds i64, i64* %84, i64 6
store i64 %83, i64* %85
%86 = load i64, i64* %12
%87 = load i64*, i64** %3
%88 = getelementptr inbounds i64, i64* %87, i64 7
store i64 %86, i64* %88
%89 = load i64, i64* %13
%90 = load i64*, i64** %3
%91 = getelementptr inbounds i64, i64* %90, i64 8
store i64 %89, i64* %91
%92 = load i64, i64* %14
%93 = load i64*, i64** %3
%94 = getelementptr inbounds i64, i64* %93, i64 9
store i64 %92, i64* %94
ret void
}

LLVM IR (-O2):
define void @fiat_25519_opp(i64* nocapture writeonly %0, i64* nocapture %1) {
%3 = tail call i64 @UINT32_C(i32 134217690)
%4 = load i64, i64* %1
%5 = sub nsw i64 %3, %4
%6 = tail call i64 @UINT32_C(i32 67108862)
%7 = getelementptr inbounds i64, i64* %1, i64 1
%8 = load i64, i64* %7
%9 = sub nsw i64 %6, %8
%10 = tail call i64 @UINT32_C(i32 134217726)
%11 = getelementptr inbounds i64, i64* %1, i64 2
%12 = load i64, i64* %11
%13 = sub nsw i64 %10, %12
%14 = tail call i64 @UINT32_C(i32 67108862)
%15 = getelementptr inbounds i64, i64* %1, i64 3
%16 = load i64, i64* %15
%17 = sub nsw i64 %14, %16
%18 = tail call i64 @UINT32_C(i32 134217726)
%19 = getelementptr inbounds i64, i64* %1, i64 4
%20 = load i64, i64* %19
%21 = sub nsw i64 %18, %20
%22 = tail call i64 @UINT32_C(i32 67108862)
%23 = getelementptr inbounds i64, i64* %1, i64 5
%24 = load i64, i64* %23
%25 = sub nsw i64 %22, %24
%26 = tail call i64 @UINT32_C(i32 134217726)
%27 = getelementptr inbounds i64, i64* %1, i64 6
%28 = load i64, i64* %27
%29 = sub nsw i64 %26, %28
%30 = tail call i64 @UINT32_C(i32 67108862)
%31 = getelementptr inbounds i64, i64* %1, i64 7
%32 = load i64, i64* %31
%33 = sub nsw i64 %30, %32
%34 = tail call i64 @UINT32_C(i32 134217726)
%35 = getelementptr inbounds i64, i64* %1, i64 8
%36 = load i64, i64* %35
%37 = sub nsw i64 %34, %36
%38 = tail call i64 @UINT32_C(i32 67108862)
%39 = getelementptr inbounds i64, i64* %1, i64 9
%40 = load i64, i64* %39
%41 = sub nsw i64 %38, %40
store i64 %5, i64* %0
%42 = getelementptr inbounds i64, i64* %0, i64 1
store i64 %9, i64* %42
%43 = getelementptr inbounds i64, i64* %0, i64 2
store i64 %13, i64* %43
%44 = getelementptr inbounds i64, i64* %0, i64 3
store i64 %17, i64* %44
%45 = getelementptr inbounds i64, i64* %0, i64 4
store i64 %21, i64* %45
%46 = getelementptr inbounds i64, i64* %0, i64 5
store i64 %25, i64* %46
%47 = getelementptr inbounds i64, i64* %0, i64 6
store i64 %29, i64* %47
%48 = getelementptr inbounds i64, i64* %0, i64 7
store i64 %33, i64* %48
%49 = getelementptr inbounds i64, i64* %0, i64 8
store i64 %37, i64* %49
%50 = getelementptr inbounds i64, i64* %0, i64 9
store i64 %41, i64* %50
ret void
}