#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_poly1305_opp(uintptr_t out0, uintptr_t in0) {
  uintptr_t x0, x1, x2, x3, x4, x5, x6, x7, x8;
  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 = ((uintptr_t)35184372088822ULL) - (x0);
  x4 = ((uintptr_t)17592186044414ULL) - (x1);
  x5 = ((uintptr_t)17592186044414ULL) - (x2);
  x6 = x3;
  x7 = x4;
  x8 = x5;
  _br2_store((out0) + ((uintptr_t)0ULL), x6, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)8ULL), x7, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)16ULL), x8, sizeof(uintptr_t));
  return;
}


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

x86 assembly (clang, -O2):
<internal_fiat_poly1305_opp>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %ebx,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r15
lea    0x8(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r12
add    $0x10,%ebx
mov    %ebx,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
movabs $0x1ffffffffff6,%rsi
sub    %r15,%rsi
movabs $0xffffffffffe,%rbx
mov    %rbx,%r15
sub    %r12,%r15
sub    %rax,%rbx
mov    %r14d,%edi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
lea    0x8(%r14),%edi
mov    %r15,%rsi
mov    $0x8,%edx
call   1040 <_br2_store@plt>
add    $0x10,%r14d
mov    %r14d,%edi
mov    %rbx,%rsi
mov    $0x8,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1040 <_br2_store@plt>

LLVM IR (-O0):
define void @internal_fiat_poly1305_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
store i64 %0, i64* %3
store i64 %1, i64* %4
%14 = load i64, i64* %4
%15 = add i64 %14, 0
%16 = trunc i64 %15 to i32
%17 = call i64 @_br2_load(i32 %16, i32 8)
store i64 %17, i64* %5
%18 = load i64, i64* %4
%19 = add i64 %18, 8
%20 = trunc i64 %19 to i32
%21 = call i64 @_br2_load(i32 %20, i32 8)
store i64 %21, i64* %6
%22 = load i64, i64* %4
%23 = add i64 %22, 16
%24 = trunc i64 %23 to i32
%25 = call i64 @_br2_load(i32 %24, i32 8)
store i64 %25, i64* %7
%26 = load i64, i64* %5
%27 = sub i64 35184372088822, %26
store i64 %27, i64* %8
%28 = load i64, i64* %6
%29 = sub i64 17592186044414, %28
store i64 %29, i64* %9
%30 = load i64, i64* %7
%31 = sub i64 17592186044414, %30
store i64 %31, i64* %10
%32 = load i64, i64* %8
store i64 %32, i64* %11
%33 = load i64, i64* %9
store i64 %33, i64* %12
%34 = load i64, i64* %10
store i64 %34, i64* %13
%35 = load i64, i64* %3
%36 = add i64 %35, 0
%37 = trunc i64 %36 to i32
%38 = load i64, i64* %11
%39 = call i32 @_br2_store(i32 %37, i64 %38, i32 8)
%40 = load i64, i64* %3
%41 = add i64 %40, 8
%42 = trunc i64 %41 to i32
%43 = load i64, i64* %12
%44 = call i32 @_br2_store(i32 %42, i64 %43, i32 8)
%45 = load i64, i64* %3
%46 = add i64 %45, 16
%47 = trunc i64 %46 to i32
%48 = load i64, i64* %13
%49 = call i32 @_br2_store(i32 %47, i64 %48, i32 8)
ret void
}

LLVM IR (-O2):
define void @internal_fiat_poly1305_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 = sub i64 35184372088822, %4
%10 = sub i64 17592186044414, %6
%11 = sub i64 17592186044414, %8
%12 = trunc i64 %0 to i32
%13 = tail call i32 @_br2_store(i32 %12, i64 %9, i32 8)
%14 = add i32 %12, 8
%15 = tail call i32 @_br2_store(i32 %14, i64 %10, i32 8)
%16 = add i32 %12, 16
%17 = tail call i32 @_br2_store(i32 %16, i64 %11, i32 8)
ret void
}