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

/* Variables and functions */
int /*<<< orphan*/ UINT32_C(int);
void fiat_secp256k1_divstep_precomp(uint32_t out1[8]) {
  out1[0] = UINT32_C(0x31525e0a);
  out1[1] = UINT32_C(0xf201a418);
  out1[2] = UINT32_C(0xcd648d85);
  out1[3] = UINT32_C(0x9953f9dd);
  out1[4] = UINT32_C(0x3db210a9);
  out1[5] = UINT32_C(0xe8602946);
  out1[6] = UINT32_C(0x4b03709);
  out1[7] = UINT32_C(0x24fb8a31);
}


x86 assembly (clang, -O0):
<fiat_secp256k1_divstep_precomp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x31525e0a,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    $0xf201a418,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    $0xcd648d85,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x8(%rax)
mov    $0x9953f9dd,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0xc(%rax)
mov    $0x3db210a9,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x10(%rax)
mov    $0xe8602946,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x14(%rax)
mov    $0x4b03709,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x18(%rax)
mov    $0x24fb8a31,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x1c(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fiat_secp256k1_divstep_precomp>:
push   %rbx
mov    %rdi,%rbx
mov    $0x31525e0a,%edi
call   1030 <UINT32_C@plt>
mov    %eax,(%rbx)
mov    $0xf201a418,%edi
call   1030 <UINT32_C@plt>
mov    %eax,0x4(%rbx)
mov    $0xcd648d85,%edi
call   1030 <UINT32_C@plt>
mov    %eax,0x8(%rbx)
mov    $0x9953f9dd,%edi
call   1030 <UINT32_C@plt>
mov    %eax,0xc(%rbx)
mov    $0x3db210a9,%edi
call   1030 <UINT32_C@plt>
mov    %eax,0x10(%rbx)
mov    $0xe8602946,%edi
call   1030 <UINT32_C@plt>
mov    %eax,0x14(%rbx)
mov    $0x4b03709,%edi
call   1030 <UINT32_C@plt>
mov    %eax,0x18(%rbx)
mov    $0x24fb8a31,%edi
call   1030 <UINT32_C@plt>
mov    %eax,0x1c(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @fiat_secp256k1_divstep_precomp(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = call i32 @UINT32_C(i32 827481610)
%4 = load i32*, i32** %2
%5 = getelementptr inbounds i32, i32* %4, i64 0
store i32 %3, i32* %5
%6 = call i32 @UINT32_C(i32 -234773480)
%7 = load i32*, i32** %2
%8 = getelementptr inbounds i32, i32* %7, i64 1
store i32 %6, i32* %8
%9 = call i32 @UINT32_C(i32 -849048187)
%10 = load i32*, i32** %2
%11 = getelementptr inbounds i32, i32* %10, i64 2
store i32 %9, i32* %11
%12 = call i32 @UINT32_C(i32 -1722549795)
%13 = load i32*, i32** %2
%14 = getelementptr inbounds i32, i32* %13, i64 3
store i32 %12, i32* %14
%15 = call i32 @UINT32_C(i32 1035079849)
%16 = load i32*, i32** %2
%17 = getelementptr inbounds i32, i32* %16, i64 4
store i32 %15, i32* %17
%18 = call i32 @UINT32_C(i32 -396351162)
%19 = load i32*, i32** %2
%20 = getelementptr inbounds i32, i32* %19, i64 5
store i32 %18, i32* %20
%21 = call i32 @UINT32_C(i32 78657289)
%22 = load i32*, i32** %2
%23 = getelementptr inbounds i32, i32* %22, i64 6
store i32 %21, i32* %23
%24 = call i32 @UINT32_C(i32 620464689)
%25 = load i32*, i32** %2
%26 = getelementptr inbounds i32, i32* %25, i64 7
store i32 %24, i32* %26
ret void
}

LLVM IR (-O2):
define void @fiat_secp256k1_divstep_precomp(i32* nocapture writeonly %0) {
%2 = tail call i32 @UINT32_C(i32 827481610)
store i32 %2, i32* %0
%3 = tail call i32 @UINT32_C(i32 -234773480)
%4 = getelementptr inbounds i32, i32* %0, i64 1
store i32 %3, i32* %4
%5 = tail call i32 @UINT32_C(i32 -849048187)
%6 = getelementptr inbounds i32, i32* %0, i64 2
store i32 %5, i32* %6
%7 = tail call i32 @UINT32_C(i32 -1722549795)
%8 = getelementptr inbounds i32, i32* %0, i64 3
store i32 %7, i32* %8
%9 = tail call i32 @UINT32_C(i32 1035079849)
%10 = getelementptr inbounds i32, i32* %0, i64 4
store i32 %9, i32* %10
%11 = tail call i32 @UINT32_C(i32 -396351162)
%12 = getelementptr inbounds i32, i32* %0, i64 5
store i32 %11, i32* %12
%13 = tail call i32 @UINT32_C(i32 78657289)
%14 = getelementptr inbounds i32, i32* %0, i64 6
store i32 %13, i32* %14
%15 = tail call i32 @UINT32_C(i32 620464689)
%16 = getelementptr inbounds i32, i32* %0, i64 7
store i32 %15, i32* %16
ret void
}