#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 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, x3, x1, x4, x2, x5, x6, x7, x8, x9, x10, x11;
  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((in1) + ((uintptr_t)0ULL), sizeof(uintptr_t));
  x4 = _br2_load((in1) + ((uintptr_t)8ULL), sizeof(uintptr_t));
  x5 = _br2_load((in1) + ((uintptr_t)16ULL), sizeof(uintptr_t));
  x6 = (x0) + (x3);
  x7 = (x1) + (x4);
  x8 = (x2) + (x5);
  x9 = x6;
  x10 = x7;
  x11 = x8;
  _br2_store((out0) + ((uintptr_t)0ULL), x9, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)8ULL), x10, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)16ULL), x11, sizeof(uintptr_t));
  return;
}


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

x86 assembly (clang, -O2):
<internal_fiat_poly1305_add>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdx,%rbp
mov    %rsi,%rbx
mov    %rdi,%r15
mov    %ebx,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,(%rsp)
lea    0x8(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r13
add    $0x10,%ebx
mov    %ebx,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r14
mov    %ebp,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%rbx
lea    0x8(%rbp),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r12
add    $0x10,%ebp
mov    %ebp,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
add    (%rsp),%rbx
add    %r13,%r12
add    %rax,%r14
mov    %r15d,%edi
mov    %rbx,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x8(%r15),%edi
mov    %r12,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
add    $0x10,%r15d
mov    %r15d,%edi
mov    %r14,%rsi
mov    $0x8,%edx
add    $0x8,%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
store i64 %0, i64* %4
store i64 %1, i64* %5
store i64 %2, i64* %6
%19 = load i64, i64* %5
%20 = add i64 %19, 0
%21 = trunc i64 %20 to i32
%22 = call i64 @_br2_load(i32 %21, i32 8)
store i64 %22, i64* %7
%23 = load i64, i64* %5
%24 = add i64 %23, 8
%25 = trunc i64 %24 to i32
%26 = call i64 @_br2_load(i32 %25, i32 8)
store i64 %26, i64* %9
%27 = load i64, i64* %5
%28 = add i64 %27, 16
%29 = trunc i64 %28 to i32
%30 = call i64 @_br2_load(i32 %29, i32 8)
store i64 %30, i64* %11
%31 = load i64, i64* %6
%32 = add i64 %31, 0
%33 = trunc i64 %32 to i32
%34 = call i64 @_br2_load(i32 %33, i32 8)
store i64 %34, i64* %8
%35 = load i64, i64* %6
%36 = add i64 %35, 8
%37 = trunc i64 %36 to i32
%38 = call i64 @_br2_load(i32 %37, i32 8)
store i64 %38, i64* %10
%39 = load i64, i64* %6
%40 = add i64 %39, 16
%41 = trunc i64 %40 to i32
%42 = call i64 @_br2_load(i32 %41, i32 8)
store i64 %42, i64* %12
%43 = load i64, i64* %7
%44 = load i64, i64* %8
%45 = add i64 %43, %44
store i64 %45, i64* %13
%46 = load i64, i64* %9
%47 = load i64, i64* %10
%48 = add i64 %46, %47
store i64 %48, i64* %14
%49 = load i64, i64* %11
%50 = load i64, i64* %12
%51 = add i64 %49, %50
store i64 %51, i64* %15
%52 = load i64, i64* %13
store i64 %52, i64* %16
%53 = load i64, i64* %14
store i64 %53, i64* %17
%54 = load i64, i64* %15
store i64 %54, i64* %18
%55 = load i64, i64* %4
%56 = add i64 %55, 0
%57 = trunc i64 %56 to i32
%58 = load i64, i64* %16
%59 = call i32 @_br2_store(i32 %57, i64 %58, i32 8)
%60 = load i64, i64* %4
%61 = add i64 %60, 8
%62 = trunc i64 %61 to i32
%63 = load i64, i64* %17
%64 = call i32 @_br2_store(i32 %62, i64 %63, i32 8)
%65 = load i64, i64* %4
%66 = add i64 %65, 16
%67 = trunc i64 %66 to i32
%68 = load i64, i64* %18
%69 = call i32 @_br2_store(i32 %67, i64 %68, 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, 8
%7 = tail call i64 @_br2_load(i32 %6, i32 8)
%8 = add i32 %4, 16
%9 = tail call i64 @_br2_load(i32 %8, i32 8)
%10 = trunc i64 %2 to i32
%11 = tail call i64 @_br2_load(i32 %10, i32 8)
%12 = add i32 %10, 8
%13 = tail call i64 @_br2_load(i32 %12, i32 8)
%14 = add i32 %10, 16
%15 = tail call i64 @_br2_load(i32 %14, i32 8)
%16 = add i64 %11, %5
%17 = add i64 %13, %7
%18 = add i64 %15, %9
%19 = trunc i64 %0 to i32
%20 = tail call i32 @_br2_store(i32 %19, i64 %16, i32 8)
%21 = add i32 %19, 8
%22 = tail call i32 @_br2_store(i32 %21, i64 %17, i32 8)
%23 = add i32 %19, 16
%24 = tail call i32 @_br2_store(i32 %23, i64 %18, i32 8)
ret void
}