#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;

/* Variables and functions */
int /*<<< orphan*/ _br2_store(int /*<<< orphan*/, uintptr_t, int);
void internal_fiat_p384_set_one(uintptr_t out0) {
  uintptr_t x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11;
  x0 = (uintptr_t)1ULL;
  x1 = (uintptr_t)4294967295ULL;
  x2 = (uintptr_t)4294967295ULL;
  x3 = (uintptr_t)0ULL;
  x4 = (uintptr_t)1ULL;
  x5 = (uintptr_t)0ULL;
  x6 = (uintptr_t)0ULL;
  x7 = (uintptr_t)0ULL;
  x8 = (uintptr_t)0ULL;
  x9 = (uintptr_t)0ULL;
  x10 = (uintptr_t)0ULL;
  x11 = (uintptr_t)0ULL;
  _br2_store((out0) + ((uintptr_t)0ULL), x0, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)4ULL), x1, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)8ULL), x2, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)12ULL), x3, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)16ULL), x4, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)20ULL), x5, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)24ULL), x6, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)28ULL), x7, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)32ULL), x8, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)36ULL), x9, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)40ULL), x10, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)44ULL), x11, sizeof(uintptr_t));
  return;
}


x86 assembly (clang, -O0):
<internal_fiat_p384_set_one>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
movq   $0x1,-0x10(%rbp)
mov    $0xffffffff,%eax
mov    %rax,-0x18(%rbp)
mov    $0xffffffff,%eax
mov    %rax,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x1,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
movq   $0x0,-0x40(%rbp)
movq   $0x0,-0x48(%rbp)
movq   $0x0,-0x50(%rbp)
movq   $0x0,-0x58(%rbp)
movq   $0x0,-0x60(%rbp)
movq   $0x0,-0x68(%rbp)
mov    -0x8(%rbp),%rax
add    $0x0,%rax
mov    %eax,%edi
mov    -0x10(%rbp),%rsi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %eax,%edi
mov    -0x18(%rbp),%rsi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x8,%rax
mov    %eax,%edi
mov    -0x20(%rbp),%rsi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0xc,%rax
mov    %eax,%edi
mov    -0x28(%rbp),%rsi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rax
mov    %eax,%edi
mov    -0x30(%rbp),%rsi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x14,%rax
mov    %eax,%edi
mov    -0x38(%rbp),%rsi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x18,%rax
mov    %eax,%edi
mov    -0x40(%rbp),%rsi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x1c,%rax
mov    %eax,%edi
mov    -0x48(%rbp),%rsi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x20,%rax
mov    %eax,%edi
mov    -0x50(%rbp),%rsi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x24,%rax
mov    %eax,%edi
mov    -0x58(%rbp),%rsi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x28,%rax
mov    %eax,%edi
mov    -0x60(%rbp),%rsi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x2c,%rax
mov    %eax,%edi
mov    -0x68(%rbp),%rsi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<internal_fiat_p384_set_one>:
push   %rbx
mov    %rdi,%rbx
mov    $0x1,%esi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
lea    0x4(%rbx),%edi
mov    $0xffffffff,%esi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
lea    0x8(%rbx),%edi
mov    $0xffffffff,%esi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
lea    0xc(%rbx),%edi
xor    %esi,%esi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
lea    0x10(%rbx),%edi
mov    $0x1,%esi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
lea    0x14(%rbx),%edi
xor    %esi,%esi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
lea    0x18(%rbx),%edi
xor    %esi,%esi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
lea    0x1c(%rbx),%edi
xor    %esi,%esi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
lea    0x20(%rbx),%edi
xor    %esi,%esi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
lea    0x24(%rbx),%edi
xor    %esi,%esi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
lea    0x28(%rbx),%edi
xor    %esi,%esi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
add    $0x2c,%ebx
mov    %ebx,%edi
xor    %esi,%esi
mov    $0x8,%edx
pop    %rbx
jmp    1030 <_br2_store@plt>

LLVM IR (-O0):
define void @internal_fiat_p384_set_one(i64 %0) {
%2 = alloca i64
%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
store i64 %0, i64* %2
store i64 1, i64* %3
store i64 4294967295, i64* %4
store i64 4294967295, i64* %5
store i64 0, i64* %6
store i64 1, i64* %7
store i64 0, i64* %8
store i64 0, i64* %9
store i64 0, i64* %10
store i64 0, i64* %11
store i64 0, i64* %12
store i64 0, i64* %13
store i64 0, i64* %14
%15 = load i64, i64* %2
%16 = add i64 %15, 0
%17 = trunc i64 %16 to i32
%18 = load i64, i64* %3
%19 = call i32 @_br2_store(i32 %17, i64 %18, i32 8)
%20 = load i64, i64* %2
%21 = add i64 %20, 4
%22 = trunc i64 %21 to i32
%23 = load i64, i64* %4
%24 = call i32 @_br2_store(i32 %22, i64 %23, i32 8)
%25 = load i64, i64* %2
%26 = add i64 %25, 8
%27 = trunc i64 %26 to i32
%28 = load i64, i64* %5
%29 = call i32 @_br2_store(i32 %27, i64 %28, i32 8)
%30 = load i64, i64* %2
%31 = add i64 %30, 12
%32 = trunc i64 %31 to i32
%33 = load i64, i64* %6
%34 = call i32 @_br2_store(i32 %32, i64 %33, i32 8)
%35 = load i64, i64* %2
%36 = add i64 %35, 16
%37 = trunc i64 %36 to i32
%38 = load i64, i64* %7
%39 = call i32 @_br2_store(i32 %37, i64 %38, i32 8)
%40 = load i64, i64* %2
%41 = add i64 %40, 20
%42 = trunc i64 %41 to i32
%43 = load i64, i64* %8
%44 = call i32 @_br2_store(i32 %42, i64 %43, i32 8)
%45 = load i64, i64* %2
%46 = add i64 %45, 24
%47 = trunc i64 %46 to i32
%48 = load i64, i64* %9
%49 = call i32 @_br2_store(i32 %47, i64 %48, i32 8)
%50 = load i64, i64* %2
%51 = add i64 %50, 28
%52 = trunc i64 %51 to i32
%53 = load i64, i64* %10
%54 = call i32 @_br2_store(i32 %52, i64 %53, i32 8)
%55 = load i64, i64* %2
%56 = add i64 %55, 32
%57 = trunc i64 %56 to i32
%58 = load i64, i64* %11
%59 = call i32 @_br2_store(i32 %57, i64 %58, i32 8)
%60 = load i64, i64* %2
%61 = add i64 %60, 36
%62 = trunc i64 %61 to i32
%63 = load i64, i64* %12
%64 = call i32 @_br2_store(i32 %62, i64 %63, i32 8)
%65 = load i64, i64* %2
%66 = add i64 %65, 40
%67 = trunc i64 %66 to i32
%68 = load i64, i64* %13
%69 = call i32 @_br2_store(i32 %67, i64 %68, i32 8)
%70 = load i64, i64* %2
%71 = add i64 %70, 44
%72 = trunc i64 %71 to i32
%73 = load i64, i64* %14
%74 = call i32 @_br2_store(i32 %72, i64 %73, i32 8)
ret void
}

LLVM IR (-O2):
define void @internal_fiat_p384_set_one(i64 %0) {
%2 = trunc i64 %0 to i32
%3 = tail call i32 @_br2_store(i32 %2, i64 1, i32 8)
%4 = add i32 %2, 4
%5 = tail call i32 @_br2_store(i32 %4, i64 4294967295, i32 8)
%6 = add i32 %2, 8
%7 = tail call i32 @_br2_store(i32 %6, i64 4294967295, i32 8)
%8 = add i32 %2, 12
%9 = tail call i32 @_br2_store(i32 %8, i64 0, i32 8)
%10 = add i32 %2, 16
%11 = tail call i32 @_br2_store(i32 %10, i64 1, i32 8)
%12 = add i32 %2, 20
%13 = tail call i32 @_br2_store(i32 %12, i64 0, i32 8)
%14 = add i32 %2, 24
%15 = tail call i32 @_br2_store(i32 %14, i64 0, i32 8)
%16 = add i32 %2, 28
%17 = tail call i32 @_br2_store(i32 %16, i64 0, i32 8)
%18 = add i32 %2, 32
%19 = tail call i32 @_br2_store(i32 %18, i64 0, i32 8)
%20 = add i32 %2, 36
%21 = tail call i32 @_br2_store(i32 %20, i64 0, i32 8)
%22 = add i32 %2, 40
%23 = tail call i32 @_br2_store(i32 %22, i64 0, i32 8)
%24 = add i32 %2, 44
%25 = tail call i32 @_br2_store(i32 %24, i64 0, i32 8)
ret void
}