#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_p256_divstep_precomp(uintptr_t out0) {
  uintptr_t x0, x1, x2, x3, x4, x5, x6, x7;
  x0 = (uintptr_t)3087007744ULL;
  x1 = (uintptr_t)1744830463ULL;
  x2 = (uintptr_t)939524096ULL;
  x3 = (uintptr_t)3221225472ULL;
  x4 = (uintptr_t)2147483647ULL;
  x5 = (uintptr_t)3623878656ULL;
  x6 = (uintptr_t)4294967295ULL;
  x7 = (uintptr_t)805306367ULL;
  _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));
  return;
}


x86 assembly (clang, -O0):
<internal_fiat_p256_divstep_precomp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0xb8000000,%eax
mov    %rax,-0x10(%rbp)
movq   $0x67ffffff,-0x18(%rbp)
67
movq   $0x38000000,-0x20(%rbp)
38
mov    $0xc0000000,%eax
mov    %rax,-0x28(%rbp)
movq   $0x7fffffff,-0x30(%rbp)
7f
mov    $0xd8000000,%eax
mov    %rax,-0x38(%rbp)
mov    $0xffffffff,%eax
mov    %rax,-0x40(%rbp)
movq   $0x2fffffff,-0x48(%rbp)
2f
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>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<internal_fiat_p256_divstep_precomp>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    $0xb8000000,%r14d
mov    $0xb8000000,%esi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
lea    0x4(%rbx),%edi
mov    $0x67ffffff,%esi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
lea    0x8(%rbx),%edi
mov    $0x38000000,%esi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
lea    0xc(%rbx),%edi
lea    0x8000000(%r14),%rsi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
lea    0x10(%rbx),%edi
mov    $0x7fffffff,%esi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
lea    0x14(%rbx),%edi
lea    0x20000000(%r14),%rsi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
lea    0x18(%rbx),%edi
or     $0x47ffffff,%r14
mov    %r14,%rsi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
add    $0x1c,%ebx
mov    $0x2fffffff,%esi
mov    %ebx,%edi
mov    $0x8,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <_br2_store@plt>

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

LLVM IR (-O2):
define void @internal_fiat_p256_divstep_precomp(i64 %0) {
%2 = trunc i64 %0 to i32
%3 = tail call i32 @_br2_store(i32 %2, i64 3087007744, i32 8)
%4 = add i32 %2, 4
%5 = tail call i32 @_br2_store(i32 %4, i64 1744830463, i32 8)
%6 = add i32 %2, 8
%7 = tail call i32 @_br2_store(i32 %6, i64 939524096, i32 8)
%8 = add i32 %2, 12
%9 = tail call i32 @_br2_store(i32 %8, i64 3221225472, i32 8)
%10 = add i32 %2, 16
%11 = tail call i32 @_br2_store(i32 %10, i64 2147483647, i32 8)
%12 = add i32 %2, 20
%13 = tail call i32 @_br2_store(i32 %12, i64 3623878656, i32 8)
%14 = add i32 %2, 24
%15 = tail call i32 @_br2_store(i32 %14, i64 4294967295, i32 8)
%16 = add i32 %2, 28
%17 = tail call i32 @_br2_store(i32 %16, i64 805306367, i32 8)
ret void
}