#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*/ 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_sub(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 = (((uintptr_t)35184372088822ULL) + (x0)) - (x3);
  x7 = (((uintptr_t)17592186044414ULL) + (x1)) - (x4);
  x8 = (((uintptr_t)17592186044414ULL) + (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_sub>:
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)
movabs $0x1ffffffffff6,%rax
add    -0x20(%rbp),%rax
sub    -0x28(%rbp),%rax
mov    %rax,-0x50(%rbp)
movabs $0xffffffffffe,%rax
add    -0x30(%rbp),%rax
sub    -0x38(%rbp),%rax
mov    %rax,-0x58(%rbp)
movabs $0xffffffffffe,%rax
add    -0x40(%rbp),%rax
sub    -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_sub>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdx,%rbp
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %ebx,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r13
lea    0x8(%rbx),%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r15
add    $0x10,%ebx
mov    %ebx,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
mov    %rax,%r12
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,(%rsp)
add    $0x10,%ebp
mov    %ebp,%edi
mov    $0x8,%esi
call   1030 <_br2_load@plt>
sub    %rbx,%r13
movabs $0x1ffffffffff6,%rsi
add    %r13,%rsi
movabs $0xffffffffffe,%rcx
add    %rcx,%r15
sub    (%rsp),%r15
add    %rcx,%r12
sub    %rax,%r12
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    %r12,%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_sub(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 = add i64 35184372088822, %43
%45 = load i64, i64* %8
%46 = sub i64 %44, %45
store i64 %46, i64* %13
%47 = load i64, i64* %9
%48 = add i64 17592186044414, %47
%49 = load i64, i64* %10
%50 = sub i64 %48, %49
store i64 %50, i64* %14
%51 = load i64, i64* %11
%52 = add i64 17592186044414, %51
%53 = load i64, i64* %12
%54 = sub i64 %52, %53
store i64 %54, i64* %15
%55 = load i64, i64* %13
store i64 %55, i64* %16
%56 = load i64, i64* %14
store i64 %56, i64* %17
%57 = load i64, i64* %15
store i64 %57, i64* %18
%58 = load i64, i64* %4
%59 = add i64 %58, 0
%60 = trunc i64 %59 to i32
%61 = load i64, i64* %16
%62 = call i32 @_br2_store(i32 %60, i64 %61, i32 8)
%63 = load i64, i64* %4
%64 = add i64 %63, 8
%65 = trunc i64 %64 to i32
%66 = load i64, i64* %17
%67 = call i32 @_br2_store(i32 %65, i64 %66, i32 8)
%68 = load i64, i64* %4
%69 = add i64 %68, 16
%70 = trunc i64 %69 to i32
%71 = load i64, i64* %18
%72 = call i32 @_br2_store(i32 %70, i64 %71, i32 8)
ret void
}

LLVM IR (-O2):
define void @internal_fiat_poly1305_sub(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 %5, 35184372088822
%17 = sub i64 %16, %11
%18 = add i64 %7, 17592186044414
%19 = sub i64 %18, %13
%20 = add i64 %9, 17592186044414
%21 = sub i64 %20, %15
%22 = trunc i64 %0 to i32
%23 = tail call i32 @_br2_store(i32 %22, i64 %17, i32 8)
%24 = add i32 %22, 8
%25 = tail call i32 @_br2_store(i32 %24, i64 %19, i32 8)
%26 = add i32 %22, 16
%27 = tail call i32 @_br2_store(i32 %26, i64 %21, i32 8)
ret void
}