#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 x4;
typedef uintptr_t x3;
typedef uintptr_t x2;
typedef uintptr_t x1;
typedef uintptr_t x0;
typedef int /*<<< orphan*/ out0;
typedef int /*<<< orphan*/ in1;
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_poly1305_add(uintptr_t out0, uintptr_t in0, uintptr_t in1) {
  uintptr_t x0, x5, x1, x6, x2, x7, x3, x8, x4, x9, x10, x11, x12, x13, x14,
      x15, x16, x17, x18, x19;
  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((in1) + ((uintptr_t)0ULL), sizeof(uintptr_t));
  x6 = _br2_load((in1) + ((uintptr_t)4ULL), sizeof(uintptr_t));
  x7 = _br2_load((in1) + ((uintptr_t)8ULL), sizeof(uintptr_t));
  x8 = _br2_load((in1) + ((uintptr_t)12ULL), sizeof(uintptr_t));
  x9 = _br2_load((in1) + ((uintptr_t)16ULL), sizeof(uintptr_t));
  x10 = (x0) + (x5);
  x11 = (x1) + (x6);
  x12 = (x2) + (x7);
  x13 = (x3) + (x8);
  x14 = (x4) + (x9);
  x15 = x10;
  x16 = x11;
  x17 = x12;
  x18 = x13;
  x19 = x14;
  _br2_store((out0) + ((uintptr_t)0ULL), x15, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)4ULL), x16, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)8ULL), x17, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)12ULL), x18, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)16ULL), x19, sizeof(uintptr_t));
  return;
}


x86 assembly (clang, -O0):
<internal_fiat_poly1305_add>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
add    $0x0,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
add    $0x4,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
add    $0xc,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x50(%rbp)
mov    -0x10(%rbp),%rax
add    $0x10,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x60(%rbp)
mov    -0x18(%rbp),%rax
add    $0x0,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rax
add    $0x4,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x38(%rbp)
mov    -0x18(%rbp),%rax
add    $0x8,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x48(%rbp)
mov    -0x18(%rbp),%rax
add    $0xc,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x58(%rbp)
mov    -0x18(%rbp),%rax
add    $0x10,%rax
mov    %eax,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,-0x68(%rbp)
mov    -0x20(%rbp),%rax
add    -0x28(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x30(%rbp),%rax
add    -0x38(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x40(%rbp),%rax
add    -0x48(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x50(%rbp),%rax
add    -0x58(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x60(%rbp),%rax
add    -0x68(%rbp),%rax
mov    %rax,-0x90(%rbp)
mov    -0x70(%rbp),%rax
mov    %rax,-0x98(%rbp)
mov    -0x78(%rbp),%rax
mov    %rax,-0xa0(%rbp)
mov    -0x80(%rbp),%rax
mov    %rax,-0xa8(%rbp)
mov    -0x88(%rbp),%rax
mov    %rax,-0xb0(%rbp)
mov    -0x90(%rbp),%rax
mov    %rax,-0xb8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x0,%rax
mov    %eax,%edi
mov    -0x98(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %eax,%edi
mov    -0xa0(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x8,%rax
mov    %eax,%edi
mov    -0xa8(%rbp),%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0xc,%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>
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<internal_fiat_poly1305_add>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rdx,%rbx
mov    %rsi,%rbp
mov    %rdi,%r15
mov    %ebp,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x20(%rsp)
lea    0x4(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x18(%rsp)
lea    0x8(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x10(%rsp)
lea    0xc(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,0x8(%rsp)
add    $0x10,%ebp
mov    %ebp,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,(%rsp)
mov    %ebx,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r13
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,%r12
lea    0xc(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r14
add    $0x10,%ebx
mov    %ebx,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
add    0x20(%rsp),%r13
add    0x18(%rsp),%rbp
add    0x10(%rsp),%r12
add    0x8(%rsp),%r14
mov    (%rsp),%rbx
add    %rax,%rbx
mov    %r15d,%edi
mov    %r13,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x4(%r15),%edi
mov    %rbp,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x8(%r15),%edi
mov    %r12,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0xc(%r15),%edi
mov    %r14,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
add    $0x10,%r15d
mov    %r15d,%edi
mov    %rbx,%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_poly1305_add(i64 %0, i64 %1, i64 %2) {
%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
store i64 %0, i64* %4
store i64 %1, i64* %5
store i64 %2, i64* %6
%27 = load i64, i64* %5
%28 = add i64 %27, 0
%29 = trunc i64 %28 to i32
%30 = call i64 @_br2_load(i32 %29, i32 8)
store i64 %30, i64* %7
%31 = load i64, i64* %5
%32 = add i64 %31, 4
%33 = trunc i64 %32 to i32
%34 = call i64 @_br2_load(i32 %33, i32 8)
store i64 %34, i64* %9
%35 = load i64, i64* %5
%36 = add i64 %35, 8
%37 = trunc i64 %36 to i32
%38 = call i64 @_br2_load(i32 %37, i32 8)
store i64 %38, i64* %11
%39 = load i64, i64* %5
%40 = add i64 %39, 12
%41 = trunc i64 %40 to i32
%42 = call i64 @_br2_load(i32 %41, i32 8)
store i64 %42, i64* %13
%43 = load i64, i64* %5
%44 = add i64 %43, 16
%45 = trunc i64 %44 to i32
%46 = call i64 @_br2_load(i32 %45, i32 8)
store i64 %46, i64* %15
%47 = load i64, i64* %6
%48 = add i64 %47, 0
%49 = trunc i64 %48 to i32
%50 = call i64 @_br2_load(i32 %49, i32 8)
store i64 %50, i64* %8
%51 = load i64, i64* %6
%52 = add i64 %51, 4
%53 = trunc i64 %52 to i32
%54 = call i64 @_br2_load(i32 %53, i32 8)
store i64 %54, i64* %10
%55 = load i64, i64* %6
%56 = add i64 %55, 8
%57 = trunc i64 %56 to i32
%58 = call i64 @_br2_load(i32 %57, i32 8)
store i64 %58, i64* %12
%59 = load i64, i64* %6
%60 = add i64 %59, 12
%61 = trunc i64 %60 to i32
%62 = call i64 @_br2_load(i32 %61, i32 8)
store i64 %62, i64* %14
%63 = load i64, i64* %6
%64 = add i64 %63, 16
%65 = trunc i64 %64 to i32
%66 = call i64 @_br2_load(i32 %65, i32 8)
store i64 %66, i64* %16
%67 = load i64, i64* %7
%68 = load i64, i64* %8
%69 = add i64 %67, %68
store i64 %69, i64* %17
%70 = load i64, i64* %9
%71 = load i64, i64* %10
%72 = add i64 %70, %71
store i64 %72, i64* %18
%73 = load i64, i64* %11
%74 = load i64, i64* %12
%75 = add i64 %73, %74
store i64 %75, i64* %19
%76 = load i64, i64* %13
%77 = load i64, i64* %14
%78 = add i64 %76, %77
store i64 %78, i64* %20
%79 = load i64, i64* %15
%80 = load i64, i64* %16
%81 = add i64 %79, %80
store i64 %81, i64* %21
%82 = load i64, i64* %17
store i64 %82, i64* %22
%83 = load i64, i64* %18
store i64 %83, i64* %23
%84 = load i64, i64* %19
store i64 %84, i64* %24
%85 = load i64, i64* %20
store i64 %85, i64* %25
%86 = load i64, i64* %21
store i64 %86, i64* %26
%87 = load i64, i64* %4
%88 = add i64 %87, 0
%89 = trunc i64 %88 to i32
%90 = load i64, i64* %22
%91 = call i32 @_br2_store(i32 %89, i64 %90, i32 8)
%92 = load i64, i64* %4
%93 = add i64 %92, 4
%94 = trunc i64 %93 to i32
%95 = load i64, i64* %23
%96 = call i32 @_br2_store(i32 %94, i64 %95, i32 8)
%97 = load i64, i64* %4
%98 = add i64 %97, 8
%99 = trunc i64 %98 to i32
%100 = load i64, i64* %24
%101 = call i32 @_br2_store(i32 %99, i64 %100, i32 8)
%102 = load i64, i64* %4
%103 = add i64 %102, 12
%104 = trunc i64 %103 to i32
%105 = load i64, i64* %25
%106 = call i32 @_br2_store(i32 %104, i64 %105, i32 8)
%107 = load i64, i64* %4
%108 = add i64 %107, 16
%109 = trunc i64 %108 to i32
%110 = load i64, i64* %26
%111 = call i32 @_br2_store(i32 %109, i64 %110, i32 8)
ret void
}

LLVM IR (-O2):
define void @internal_fiat_poly1305_add(i64 %0, i64 %1, i64 %2) {
%4 = trunc i64 %1 to i32
%5 = tail call i64 @_br2_load(i32 %4, i32 8)
%6 = add i32 %4, 4
%7 = tail call i64 @_br2_load(i32 %6, i32 8)
%8 = add i32 %4, 8
%9 = tail call i64 @_br2_load(i32 %8, i32 8)
%10 = add i32 %4, 12
%11 = tail call i64 @_br2_load(i32 %10, i32 8)
%12 = add i32 %4, 16
%13 = tail call i64 @_br2_load(i32 %12, i32 8)
%14 = trunc i64 %2 to i32
%15 = tail call i64 @_br2_load(i32 %14, i32 8)
%16 = add i32 %14, 4
%17 = tail call i64 @_br2_load(i32 %16, i32 8)
%18 = add i32 %14, 8
%19 = tail call i64 @_br2_load(i32 %18, i32 8)
%20 = add i32 %14, 12
%21 = tail call i64 @_br2_load(i32 %20, i32 8)
%22 = add i32 %14, 16
%23 = tail call i64 @_br2_load(i32 %22, i32 8)
%24 = add i64 %15, %5
%25 = add i64 %17, %7
%26 = add i64 %19, %9
%27 = add i64 %21, %11
%28 = add i64 %23, %13
%29 = trunc i64 %0 to i32
%30 = tail call i32 @_br2_store(i32 %29, i64 %24, i32 8)
%31 = add i32 %29, 4
%32 = tail call i32 @_br2_store(i32 %31, i64 %25, i32 8)
%33 = add i32 %29, 8
%34 = tail call i32 @_br2_store(i32 %33, i64 %26, i32 8)
%35 = add i32 %29, 12
%36 = tail call i32 @_br2_store(i32 %35, i64 %27, i32 8)
%37 = add i32 %29, 16
%38 = tail call i32 @_br2_store(i32 %37, i64 %28, i32 8)
ret void
}