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

/* Variables and functions */
int UINT32_C(int);
void fiat_p384_msat(uint32_t out1[13]) {
  out1[0] = UINT32_C(0xffffffff);
  out1[1] = 0x0;
  out1[2] = 0x0;
  out1[3] = UINT32_C(0xffffffff);
  out1[4] = UINT32_C(0xfffffffe);
  out1[5] = UINT32_C(0xffffffff);
  out1[6] = UINT32_C(0xffffffff);
  out1[7] = UINT32_C(0xffffffff);
  out1[8] = UINT32_C(0xffffffff);
  out1[9] = UINT32_C(0xffffffff);
  out1[10] = UINT32_C(0xffffffff);
  out1[11] = UINT32_C(0xffffffff);
  out1[12] = 0x0;
}


x86 assembly (clang, -O0):
<fiat_p384_msat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0xffffffff,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
movl   $0x0,0x4(%rax)
mov    -0x8(%rbp),%rax
movl   $0x0,0x8(%rax)
mov    $0xffffffff,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0xc(%rax)
mov    $0xfffffffe,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x10(%rax)
mov    $0xffffffff,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x14(%rax)
mov    $0xffffffff,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x18(%rax)
mov    $0xffffffff,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x1c(%rax)
mov    $0xffffffff,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x20(%rax)
mov    $0xffffffff,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x24(%rax)
mov    $0xffffffff,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x28(%rax)
mov    $0xffffffff,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x2c(%rax)
mov    -0x8(%rbp),%rax
movl   $0x0,0x30(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fiat_p384_msat>:
push   %rbx
mov    %rdi,%rbx
mov    $0xffffffff,%edi
call   1030 <UINT32_C@plt>
mov    %eax,(%rbx)
movq   $0x0,0x4(%rbx)
mov    $0xffffffff,%edi
call   1030 <UINT32_C@plt>
mov    %eax,0xc(%rbx)
mov    $0xfffffffe,%edi
call   1030 <UINT32_C@plt>
mov    %eax,0x10(%rbx)
mov    $0xffffffff,%edi
call   1030 <UINT32_C@plt>
mov    %eax,0x14(%rbx)
mov    $0xffffffff,%edi
call   1030 <UINT32_C@plt>
mov    %eax,0x18(%rbx)
mov    $0xffffffff,%edi
call   1030 <UINT32_C@plt>
mov    %eax,0x1c(%rbx)
mov    $0xffffffff,%edi
call   1030 <UINT32_C@plt>
mov    %eax,0x20(%rbx)
mov    $0xffffffff,%edi
call   1030 <UINT32_C@plt>
mov    %eax,0x24(%rbx)
mov    $0xffffffff,%edi
call   1030 <UINT32_C@plt>
mov    %eax,0x28(%rbx)
mov    $0xffffffff,%edi
call   1030 <UINT32_C@plt>
mov    %eax,0x2c(%rbx)
movl   $0x0,0x30(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @fiat_p384_msat(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = call i32 @UINT32_C(i32 -1)
%4 = load i32*, i32** %2
%5 = getelementptr inbounds i32, i32* %4, i64 0
store i32 %3, i32* %5
%6 = load i32*, i32** %2
%7 = getelementptr inbounds i32, i32* %6, i64 1
store i32 0, i32* %7
%8 = load i32*, i32** %2
%9 = getelementptr inbounds i32, i32* %8, i64 2
store i32 0, i32* %9
%10 = call i32 @UINT32_C(i32 -1)
%11 = load i32*, i32** %2
%12 = getelementptr inbounds i32, i32* %11, i64 3
store i32 %10, i32* %12
%13 = call i32 @UINT32_C(i32 -2)
%14 = load i32*, i32** %2
%15 = getelementptr inbounds i32, i32* %14, i64 4
store i32 %13, i32* %15
%16 = call i32 @UINT32_C(i32 -1)
%17 = load i32*, i32** %2
%18 = getelementptr inbounds i32, i32* %17, i64 5
store i32 %16, i32* %18
%19 = call i32 @UINT32_C(i32 -1)
%20 = load i32*, i32** %2
%21 = getelementptr inbounds i32, i32* %20, i64 6
store i32 %19, i32* %21
%22 = call i32 @UINT32_C(i32 -1)
%23 = load i32*, i32** %2
%24 = getelementptr inbounds i32, i32* %23, i64 7
store i32 %22, i32* %24
%25 = call i32 @UINT32_C(i32 -1)
%26 = load i32*, i32** %2
%27 = getelementptr inbounds i32, i32* %26, i64 8
store i32 %25, i32* %27
%28 = call i32 @UINT32_C(i32 -1)
%29 = load i32*, i32** %2
%30 = getelementptr inbounds i32, i32* %29, i64 9
store i32 %28, i32* %30
%31 = call i32 @UINT32_C(i32 -1)
%32 = load i32*, i32** %2
%33 = getelementptr inbounds i32, i32* %32, i64 10
store i32 %31, i32* %33
%34 = call i32 @UINT32_C(i32 -1)
%35 = load i32*, i32** %2
%36 = getelementptr inbounds i32, i32* %35, i64 11
store i32 %34, i32* %36
%37 = load i32*, i32** %2
%38 = getelementptr inbounds i32, i32* %37, i64 12
store i32 0, i32* %38
ret void
}

LLVM IR (-O2):
define void @fiat_p384_msat(i32* nocapture writeonly %0) {
%2 = tail call i32 @UINT32_C(i32 -1)
store i32 %2, i32* %0
%3 = getelementptr inbounds i32, i32* %0, i64 1
store i32 0, i32* %3
%4 = getelementptr inbounds i32, i32* %0, i64 2
store i32 0, i32* %4
%5 = tail call i32 @UINT32_C(i32 -1)
%6 = getelementptr inbounds i32, i32* %0, i64 3
store i32 %5, i32* %6
%7 = tail call i32 @UINT32_C(i32 -2)
%8 = getelementptr inbounds i32, i32* %0, i64 4
store i32 %7, i32* %8
%9 = tail call i32 @UINT32_C(i32 -1)
%10 = getelementptr inbounds i32, i32* %0, i64 5
store i32 %9, i32* %10
%11 = tail call i32 @UINT32_C(i32 -1)
%12 = getelementptr inbounds i32, i32* %0, i64 6
store i32 %11, i32* %12
%13 = tail call i32 @UINT32_C(i32 -1)
%14 = getelementptr inbounds i32, i32* %0, i64 7
store i32 %13, i32* %14
%15 = tail call i32 @UINT32_C(i32 -1)
%16 = getelementptr inbounds i32, i32* %0, i64 8
store i32 %15, i32* %16
%17 = tail call i32 @UINT32_C(i32 -1)
%18 = getelementptr inbounds i32, i32* %0, i64 9
store i32 %17, i32* %18
%19 = tail call i32 @UINT32_C(i32 -1)
%20 = getelementptr inbounds i32, i32* %0, i64 10
store i32 %19, i32* %20
%21 = tail call i32 @UINT32_C(i32 -1)
%22 = getelementptr inbounds i32, i32* %0, i64 11
store i32 %21, i32* %22
%23 = getelementptr inbounds i32, i32* %0, i64 12
store i32 0, i32* %23
ret void
}