#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 x21;
typedef uintptr_t x20;
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 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_25519_carry(uintptr_t out0, uintptr_t in0) {
  uintptr_t x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x20, x21, x12,
      x13, x14, x15, x16, x17, x18, x19, x22, x23, x24, x25, x26, x27, x28, x29,
      x30, x31, x32, x33, x34, x35, x36, x37, x38, x39, x40, x41;
  x0 = _br2_load((in0) + ((uintptr_t)0ULL), sizeof(uintptr_t));
  x1 = _br2_load((in0) + ((uintptr_t)4ULL), sizeof(uintptr_t));
  x2 = _br2_load((in0) + ((uintptr_t)8ULL), sizeof(uintptr_t));
  x3 = _br2_load((in0) + ((uintptr_t)12ULL), sizeof(uintptr_t));
  x4 = _br2_load((in0) + ((uintptr_t)16ULL), sizeof(uintptr_t));
  x5 = _br2_load((in0) + ((uintptr_t)20ULL), sizeof(uintptr_t));
  x6 = _br2_load((in0) + ((uintptr_t)24ULL), sizeof(uintptr_t));
  x7 = _br2_load((in0) + ((uintptr_t)28ULL), sizeof(uintptr_t));
  x8 = _br2_load((in0) + ((uintptr_t)32ULL), sizeof(uintptr_t));
  x9 = _br2_load((in0) + ((uintptr_t)36ULL), sizeof(uintptr_t));
  x10 = x0;
  x11 = ((x10) >> ((uintptr_t)26ULL)) + (x1);
  x12 = ((x11) >> ((uintptr_t)25ULL)) + (x2);
  x13 = ((x12) >> ((uintptr_t)26ULL)) + (x3);
  x14 = ((x13) >> ((uintptr_t)25ULL)) + (x4);
  x15 = ((x14) >> ((uintptr_t)26ULL)) + (x5);
  x16 = ((x15) >> ((uintptr_t)25ULL)) + (x6);
  x17 = ((x16) >> ((uintptr_t)26ULL)) + (x7);
  x18 = ((x17) >> ((uintptr_t)25ULL)) + (x8);
  x19 = ((x18) >> ((uintptr_t)26ULL)) + (x9);
  x20 = ((x10) & ((uintptr_t)67108863ULL)) +
        (((x19) >> ((uintptr_t)25ULL)) * ((uintptr_t)19ULL));
  x21 = ((x20) >> ((uintptr_t)26ULL)) + ((x11) & ((uintptr_t)33554431ULL));
  x22 = (x20) & ((uintptr_t)67108863ULL);
  x23 = (x21) & ((uintptr_t)33554431ULL);
  x24 = ((x21) >> ((uintptr_t)25ULL)) + ((x12) & ((uintptr_t)67108863ULL));
  x25 = (x13) & ((uintptr_t)33554431ULL);
  x26 = (x14) & ((uintptr_t)67108863ULL);
  x27 = (x15) & ((uintptr_t)33554431ULL);
  x28 = (x16) & ((uintptr_t)67108863ULL);
  x29 = (x17) & ((uintptr_t)33554431ULL);
  x30 = (x18) & ((uintptr_t)67108863ULL);
  x31 = (x19) & ((uintptr_t)33554431ULL);
  x32 = x22;
  x33 = x23;
  x34 = x24;
  x35 = x25;
  x36 = x26;
  x37 = x27;
  x38 = x28;
  x39 = x29;
  x40 = x30;
  x41 = x31;
  _br2_store((out0) + ((uintptr_t)0ULL), x32, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)4ULL), x33, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)8ULL), x34, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)12ULL), x35, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)16ULL), x36, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)20ULL), x37, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)24ULL), x38, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)28ULL), x39, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)32ULL), x40, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)36ULL), x41, sizeof(uintptr_t));
  return;
}


x86 assembly (clang, -O0):
<internal_fiat_25519_carry>:
push   %rbp
mov    %rsp,%rbp
sub    $0x160,%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    $0x4,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
add    $0xc,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
add    $0x10,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
add    $0x14,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
add    $0x18,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1c,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x50(%rbp)
mov    -0x10(%rbp),%rax
add    $0x20,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x58(%rbp)
mov    -0x10(%rbp),%rax
add    $0x24,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x60(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rax
shr    $0x1a,%rax
add    -0x20(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
shr    $0x19,%rax
add    -0x28(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x88(%rbp),%rax
shr    $0x1a,%rax
add    -0x30(%rbp),%rax
mov    %rax,-0x90(%rbp)
mov    -0x90(%rbp),%rax
shr    $0x19,%rax
add    -0x38(%rbp),%rax
mov    %rax,-0x98(%rbp)
mov    -0x98(%rbp),%rax
shr    $0x1a,%rax
add    -0x40(%rbp),%rax
mov    %rax,-0xa0(%rbp)
mov    -0xa0(%rbp),%rax
shr    $0x19,%rax
add    -0x48(%rbp),%rax
mov    %rax,-0xa8(%rbp)
mov    -0xa8(%rbp),%rax
shr    $0x1a,%rax
add    -0x50(%rbp),%rax
mov    %rax,-0xb0(%rbp)
mov    -0xb0(%rbp),%rax
shr    $0x19,%rax
add    -0x58(%rbp),%rax
mov    %rax,-0xb8(%rbp)
mov    -0xb8(%rbp),%rax
shr    $0x1a,%rax
add    -0x60(%rbp),%rax
mov    %rax,-0xc0(%rbp)
mov    -0x68(%rbp),%rax
and    $0x3ffffff,%rax
mov    -0xc0(%rbp),%rcx
shr    $0x19,%rcx
imul   $0x13,%rcx,%rcx
add    %rcx,%rax
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rax
shr    $0x1a,%rax
mov    -0x70(%rbp),%rcx
and    $0x1ffffff,%rcx
add    %rcx,%rax
mov    %rax,-0x80(%rbp)
mov    -0x78(%rbp),%rax
and    $0x3ffffff,%rax
mov    %rax,-0xc8(%rbp)
mov    -0x80(%rbp),%rax
and    $0x1ffffff,%rax
mov    %rax,-0xd0(%rbp)
mov    -0x80(%rbp),%rax
shr    $0x19,%rax
mov    -0x88(%rbp),%rcx
and    $0x3ffffff,%rcx
add    %rcx,%rax
mov    %rax,-0xd8(%rbp)
mov    -0x90(%rbp),%rax
and    $0x1ffffff,%rax
mov    %rax,-0xe0(%rbp)
mov    -0x98(%rbp),%rax
and    $0x3ffffff,%rax
mov    %rax,-0xe8(%rbp)
mov    -0xa0(%rbp),%rax
and    $0x1ffffff,%rax
mov    %rax,-0xf0(%rbp)
mov    -0xa8(%rbp),%rax
and    $0x3ffffff,%rax
mov    %rax,-0xf8(%rbp)
mov    -0xb0(%rbp),%rax
and    $0x1ffffff,%rax
mov    %rax,-0x100(%rbp)
mov    -0xb8(%rbp),%rax
and    $0x3ffffff,%rax
mov    %rax,-0x108(%rbp)
mov    -0xc0(%rbp),%rax
and    $0x1ffffff,%rax
mov    %rax,-0x110(%rbp)
mov    -0xc8(%rbp),%rax
mov    %rax,-0x118(%rbp)
mov    -0xd0(%rbp),%rax
mov    %rax,-0x120(%rbp)
mov    -0xd8(%rbp),%rax
mov    %rax,-0x128(%rbp)
mov    -0xe0(%rbp),%rax
mov    %rax,-0x130(%rbp)
mov    -0xe8(%rbp),%rax
mov    %rax,-0x138(%rbp)
mov    -0xf0(%rbp),%rax
mov    %rax,-0x140(%rbp)
mov    -0xf8(%rbp),%rax
mov    %rax,-0x148(%rbp)
mov    -0x100(%rbp),%rax
mov    %rax,-0x150(%rbp)
mov    -0x108(%rbp),%rax
mov    %rax,-0x158(%rbp)
mov    -0x110(%rbp),%rax
mov    %rax,-0x160(%rbp)
mov    -0x8(%rbp),%rax
add    $0x0,%rax
mov    %eax,%edi
mov    -0x118(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %eax,%edi
mov    -0x120(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x8,%rax
mov    %eax,%edi
mov    -0x128(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0xc,%rax
mov    %eax,%edi
mov    -0x130(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rax
mov    %eax,%edi
mov    -0x138(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x14,%rax
mov    %eax,%edi
mov    -0x140(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x18,%rax
mov    %eax,%edi
mov    -0x148(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x1c,%rax
mov    %eax,%edi
mov    -0x150(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x20,%rax
mov    %eax,%edi
mov    -0x158(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x24,%rax
mov    %eax,%edi
mov    -0x160(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
add    $0x160,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<internal_fiat_25519_carry>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%rbx
mov    %rdi,0x20(%rsp)
mov    %ebx,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x18(%rsp)
lea    0x4(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%rbp
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,%r13
lea    0x10(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r12
lea    0x14(%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,%r14
lea    0x1c(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x8(%rsp)
lea    0x20(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,(%rsp)
add    $0x24,%ebx
mov    %ebx,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    0x18(%rsp),%rdi
mov    %rdi,%rcx
shr    $0x1a,%rcx
add    %rbp,%rcx
mov    %rcx,%rbp
shr    $0x19,%rbp
add    0x10(%rsp),%rbp
mov    %rbp,%rbx
shr    $0x1a,%rbx
add    %r13,%rbx
mov    %rbx,%r13
shr    $0x19,%r13
add    %r12,%r13
mov    %r13,%r12
shr    $0x1a,%r12
add    %r15,%r12
mov    %r12,%r15
shr    $0x19,%r15
add    %r14,%r15
mov    %r15,%rdx
shr    $0x1a,%rdx
add    0x8(%rsp),%rdx
mov    %rdx,%rsi
mov    %rdx,%r9
shr    $0x19,%rsi
add    (%rsp),%rsi
mov    %rsi,%rdx
mov    %rsi,%r8
shr    $0x1a,%rdx
add    %rax,%rdx
and    $0x3ffffff,%edi
mov    %rdx,%rax
mov    %rdx,%r10
shr    $0x19,%rax
lea    (%rax,%rax,8),%rdx
lea    (%rax,%rdx,2),%rsi
add    %rdi,%rsi
mov    %rsi,%rax
shr    $0x1a,%rax
and    $0x1ffffff,%ecx
add    %rax,%rcx
and    $0x3ffffff,%esi
mov    %ecx,%eax
and    $0x1ffffff,%eax
mov    %rax,(%rsp)
shr    $0x19,%rcx
and    $0x3ffffff,%ebp
add    %rcx,%rbp
and    $0x1ffffff,%ebx
and    $0x3ffffff,%r13d
and    $0x1ffffff,%r12d
and    $0x3ffffff,%r15d
and    $0x1ffffff,%r9d
mov    %r9,0x8(%rsp)
and    $0x3ffffff,%r8d
mov    %r8,0x10(%rsp)
and    $0x1ffffff,%r10d
mov    %r10,0x18(%rsp)
mov    0x20(%rsp),%r14
mov    %r14d,%edi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x4(%r14),%edi
mov    (%rsp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x8(%r14),%edi
mov    %rbp,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0xc(%r14),%edi
mov    %rbx,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x10(%r14),%edi
mov    %r13,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x14(%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    0x1c(%r14),%edi
mov    0x8(%rsp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x20(%r14),%edi
mov    0x10(%rsp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
add    $0x24,%r14d
mov    %r14d,%edi
mov    0x18(%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_25519_carry(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
%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
store i64 %0, i64* %3
store i64 %1, i64* %4
%47 = load i64, i64* %4
%48 = add i64 %47, 0
%49 = trunc i64 %48 to i32
%50 = call i64 @_br2_load(i32 %49, i32 8)
store i64 %50, i64* %5
%51 = load i64, i64* %4
%52 = add i64 %51, 4
%53 = trunc i64 %52 to i32
%54 = call i64 @_br2_load(i32 %53, i32 8)
store i64 %54, i64* %6
%55 = load i64, i64* %4
%56 = add i64 %55, 8
%57 = trunc i64 %56 to i32
%58 = call i64 @_br2_load(i32 %57, i32 8)
store i64 %58, i64* %7
%59 = load i64, i64* %4
%60 = add i64 %59, 12
%61 = trunc i64 %60 to i32
%62 = call i64 @_br2_load(i32 %61, i32 8)
store i64 %62, i64* %8
%63 = load i64, i64* %4
%64 = add i64 %63, 16
%65 = trunc i64 %64 to i32
%66 = call i64 @_br2_load(i32 %65, i32 8)
store i64 %66, i64* %9
%67 = load i64, i64* %4
%68 = add i64 %67, 20
%69 = trunc i64 %68 to i32
%70 = call i64 @_br2_load(i32 %69, i32 8)
store i64 %70, i64* %10
%71 = load i64, i64* %4
%72 = add i64 %71, 24
%73 = trunc i64 %72 to i32
%74 = call i64 @_br2_load(i32 %73, i32 8)
store i64 %74, i64* %11
%75 = load i64, i64* %4
%76 = add i64 %75, 28
%77 = trunc i64 %76 to i32
%78 = call i64 @_br2_load(i32 %77, i32 8)
store i64 %78, i64* %12
%79 = load i64, i64* %4
%80 = add i64 %79, 32
%81 = trunc i64 %80 to i32
%82 = call i64 @_br2_load(i32 %81, i32 8)
store i64 %82, i64* %13
%83 = load i64, i64* %4
%84 = add i64 %83, 36
%85 = trunc i64 %84 to i32
%86 = call i64 @_br2_load(i32 %85, i32 8)
store i64 %86, i64* %14
%87 = load i64, i64* %5
store i64 %87, i64* %15
%88 = load i64, i64* %15
%89 = lshr i64 %88, 26
%90 = load i64, i64* %6
%91 = add i64 %89, %90
store i64 %91, i64* %16
%92 = load i64, i64* %16
%93 = lshr i64 %92, 25
%94 = load i64, i64* %7
%95 = add i64 %93, %94
store i64 %95, i64* %19
%96 = load i64, i64* %19
%97 = lshr i64 %96, 26
%98 = load i64, i64* %8
%99 = add i64 %97, %98
store i64 %99, i64* %20
%100 = load i64, i64* %20
%101 = lshr i64 %100, 25
%102 = load i64, i64* %9
%103 = add i64 %101, %102
store i64 %103, i64* %21
%104 = load i64, i64* %21
%105 = lshr i64 %104, 26
%106 = load i64, i64* %10
%107 = add i64 %105, %106
store i64 %107, i64* %22
%108 = load i64, i64* %22
%109 = lshr i64 %108, 25
%110 = load i64, i64* %11
%111 = add i64 %109, %110
store i64 %111, i64* %23
%112 = load i64, i64* %23
%113 = lshr i64 %112, 26
%114 = load i64, i64* %12
%115 = add i64 %113, %114
store i64 %115, i64* %24
%116 = load i64, i64* %24
%117 = lshr i64 %116, 25
%118 = load i64, i64* %13
%119 = add i64 %117, %118
store i64 %119, i64* %25
%120 = load i64, i64* %25
%121 = lshr i64 %120, 26
%122 = load i64, i64* %14
%123 = add i64 %121, %122
store i64 %123, i64* %26
%124 = load i64, i64* %15
%125 = and i64 %124, 67108863
%126 = load i64, i64* %26
%127 = lshr i64 %126, 25
%128 = mul i64 %127, 19
%129 = add i64 %125, %128
store i64 %129, i64* %17
%130 = load i64, i64* %17
%131 = lshr i64 %130, 26
%132 = load i64, i64* %16
%133 = and i64 %132, 33554431
%134 = add i64 %131, %133
store i64 %134, i64* %18
%135 = load i64, i64* %17
%136 = and i64 %135, 67108863
store i64 %136, i64* %27
%137 = load i64, i64* %18
%138 = and i64 %137, 33554431
store i64 %138, i64* %28
%139 = load i64, i64* %18
%140 = lshr i64 %139, 25
%141 = load i64, i64* %19
%142 = and i64 %141, 67108863
%143 = add i64 %140, %142
store i64 %143, i64* %29
%144 = load i64, i64* %20
%145 = and i64 %144, 33554431
store i64 %145, i64* %30
%146 = load i64, i64* %21
%147 = and i64 %146, 67108863
store i64 %147, i64* %31
%148 = load i64, i64* %22
%149 = and i64 %148, 33554431
store i64 %149, i64* %32
%150 = load i64, i64* %23
%151 = and i64 %150, 67108863
store i64 %151, i64* %33
%152 = load i64, i64* %24
%153 = and i64 %152, 33554431
store i64 %153, i64* %34
%154 = load i64, i64* %25
%155 = and i64 %154, 67108863
store i64 %155, i64* %35
%156 = load i64, i64* %26
%157 = and i64 %156, 33554431
store i64 %157, i64* %36
%158 = load i64, i64* %27
store i64 %158, i64* %37
%159 = load i64, i64* %28
store i64 %159, i64* %38
%160 = load i64, i64* %29
store i64 %160, i64* %39
%161 = load i64, i64* %30
store i64 %161, i64* %40
%162 = load i64, i64* %31
store i64 %162, i64* %41
%163 = load i64, i64* %32
store i64 %163, i64* %42
%164 = load i64, i64* %33
store i64 %164, i64* %43
%165 = load i64, i64* %34
store i64 %165, i64* %44
%166 = load i64, i64* %35
store i64 %166, i64* %45
%167 = load i64, i64* %36
store i64 %167, i64* %46
%168 = load i64, i64* %3
%169 = add i64 %168, 0
%170 = trunc i64 %169 to i32
%171 = load i64, i64* %37
%172 = call i32 @_br2_store(i32 %170, i64 %171, i32 8)
%173 = load i64, i64* %3
%174 = add i64 %173, 4
%175 = trunc i64 %174 to i32
%176 = load i64, i64* %38
%177 = call i32 @_br2_store(i32 %175, i64 %176, i32 8)
%178 = load i64, i64* %3
%179 = add i64 %178, 8
%180 = trunc i64 %179 to i32
%181 = load i64, i64* %39
%182 = call i32 @_br2_store(i32 %180, i64 %181, i32 8)
%183 = load i64, i64* %3
%184 = add i64 %183, 12
%185 = trunc i64 %184 to i32
%186 = load i64, i64* %40
%187 = call i32 @_br2_store(i32 %185, i64 %186, i32 8)
%188 = load i64, i64* %3
%189 = add i64 %188, 16
%190 = trunc i64 %189 to i32
%191 = load i64, i64* %41
%192 = call i32 @_br2_store(i32 %190, i64 %191, i32 8)
%193 = load i64, i64* %3
%194 = add i64 %193, 20
%195 = trunc i64 %194 to i32
%196 = load i64, i64* %42
%197 = call i32 @_br2_store(i32 %195, i64 %196, i32 8)
%198 = load i64, i64* %3
%199 = add i64 %198, 24
%200 = trunc i64 %199 to i32
%201 = load i64, i64* %43
%202 = call i32 @_br2_store(i32 %200, i64 %201, i32 8)
%203 = load i64, i64* %3
%204 = add i64 %203, 28
%205 = trunc i64 %204 to i32
%206 = load i64, i64* %44
%207 = call i32 @_br2_store(i32 %205, i64 %206, i32 8)
%208 = load i64, i64* %3
%209 = add i64 %208, 32
%210 = trunc i64 %209 to i32
%211 = load i64, i64* %45
%212 = call i32 @_br2_store(i32 %210, i64 %211, i32 8)
%213 = load i64, i64* %3
%214 = add i64 %213, 36
%215 = trunc i64 %214 to i32
%216 = load i64, i64* %46
%217 = call i32 @_br2_store(i32 %215, i64 %216, i32 8)
ret void
}

LLVM IR (-O2):
define void @internal_fiat_25519_carry(i64 %0, i64 %1) {
%3 = trunc i64 %1 to i32
%4 = tail call i64 @_br2_load(i32 %3, i32 8)
%5 = add i32 %3, 4
%6 = tail call i64 @_br2_load(i32 %5, i32 8)
%7 = add i32 %3, 8
%8 = tail call i64 @_br2_load(i32 %7, i32 8)
%9 = add i32 %3, 12
%10 = tail call i64 @_br2_load(i32 %9, i32 8)
%11 = add i32 %3, 16
%12 = tail call i64 @_br2_load(i32 %11, i32 8)
%13 = add i32 %3, 20
%14 = tail call i64 @_br2_load(i32 %13, i32 8)
%15 = add i32 %3, 24
%16 = tail call i64 @_br2_load(i32 %15, i32 8)
%17 = add i32 %3, 28
%18 = tail call i64 @_br2_load(i32 %17, i32 8)
%19 = add i32 %3, 32
%20 = tail call i64 @_br2_load(i32 %19, i32 8)
%21 = add i32 %3, 36
%22 = tail call i64 @_br2_load(i32 %21, i32 8)
%23 = lshr i64 %4, 26
%24 = add i64 %23, %6
%25 = lshr i64 %24, 25
%26 = add i64 %25, %8
%27 = lshr i64 %26, 26
%28 = add i64 %27, %10
%29 = lshr i64 %28, 25
%30 = add i64 %29, %12
%31 = lshr i64 %30, 26
%32 = add i64 %31, %14
%33 = lshr i64 %32, 25
%34 = add i64 %33, %16
%35 = lshr i64 %34, 26
%36 = add i64 %35, %18
%37 = lshr i64 %36, 25
%38 = add i64 %37, %20
%39 = lshr i64 %38, 26
%40 = add i64 %39, %22
%41 = and i64 %4, 67108863
%42 = lshr i64 %40, 25
%43 = mul nuw nsw i64 %42, 19
%44 = add nuw nsw i64 %43, %41
%45 = lshr i64 %44, 26
%46 = and i64 %24, 33554431
%47 = add nuw nsw i64 %45, %46
%48 = and i64 %44, 67108863
%49 = and i64 %47, 33554431
%50 = lshr i64 %47, 25
%51 = and i64 %26, 67108863
%52 = add nuw nsw i64 %50, %51
%53 = and i64 %28, 33554431
%54 = and i64 %30, 67108863
%55 = and i64 %32, 33554431
%56 = and i64 %34, 67108863
%57 = and i64 %36, 33554431
%58 = and i64 %38, 67108863
%59 = and i64 %40, 33554431
%60 = trunc i64 %0 to i32
%61 = tail call i32 @_br2_store(i32 %60, i64 %48, i32 8)
%62 = add i32 %60, 4
%63 = tail call i32 @_br2_store(i32 %62, i64 %49, i32 8)
%64 = add i32 %60, 8
%65 = tail call i32 @_br2_store(i32 %64, i64 %52, i32 8)
%66 = add i32 %60, 12
%67 = tail call i32 @_br2_store(i32 %66, i64 %53, i32 8)
%68 = add i32 %60, 16
%69 = tail call i32 @_br2_store(i32 %68, i64 %54, i32 8)
%70 = add i32 %60, 20
%71 = tail call i32 @_br2_store(i32 %70, i64 %55, i32 8)
%72 = add i32 %60, 24
%73 = tail call i32 @_br2_store(i32 %72, i64 %56, i32 8)
%74 = add i32 %60, 28
%75 = tail call i32 @_br2_store(i32 %74, i64 %57, i32 8)
%76 = add i32 %60, 32
%77 = tail call i32 @_br2_store(i32 %76, i64 %58, i32 8)
%78 = add i32 %60, 36
%79 = tail call i32 @_br2_store(i32 %78, i64 %59, i32 8)
ret void
}