#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_secp256k1_divstep_precomp(uintptr_t out0) {
  uintptr_t x0, x1, x2, x3;
  x0 = (uintptr_t)17438399655968923146ULL;
  x1 = (uintptr_t)11048449041898966405ULL;
  x2 = (uintptr_t)16744428796223033513ULL;
  x3 = (uintptr_t)2664875547656468233ULL;
  _br2_store((out0) + ((uintptr_t)0ULL), x0, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)8ULL), x1, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)16ULL), x2, sizeof(uintptr_t));
  _br2_store((out0) + ((uintptr_t)24ULL), x3, sizeof(uintptr_t));
  return;
}


x86 assembly (clang, -O0):
<internal_fiat_secp256k1_divstep_precomp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
movabs $0xf201a41831525e0a,%rax
a4 01 f2
mov    %rax,-0x10(%rbp)
movabs $0x9953f9ddcd648d85,%rax
f9 53 99
mov    %rax,-0x18(%rbp)
movabs $0xe86029463db210a9,%rax
29 60 e8
mov    %rax,-0x20(%rbp)
movabs $0x24fb8a3104b03709,%rax
8a fb 24
mov    %rax,-0x28(%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    $0x8,%rax
mov    %eax,%edi
mov    -0x18(%rbp),%rsi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rax
mov    %eax,%edi
mov    -0x20(%rbp),%rsi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
mov    -0x8(%rbp),%rax
add    $0x18,%rax
mov    %eax,%edi
mov    -0x28(%rbp),%rsi
mov    $0x8,%edx
call   1030 <_br2_store@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<internal_fiat_secp256k1_divstep_precomp>:
push   %rbx
mov    %rdi,%rbx
movabs $0xf201a41831525e0a,%rsi
a4 01 f2
mov    $0x8,%edx
call   1030 <_br2_store@plt>
lea    0x8(%rbx),%edi
movabs $0x9953f9ddcd648d85,%rsi
f9 53 99
mov    $0x8,%edx
call   1030 <_br2_store@plt>
lea    0x10(%rbx),%edi
movabs $0xe86029463db210a9,%rsi
29 60 e8
mov    $0x8,%edx
call   1030 <_br2_store@plt>
add    $0x18,%ebx
movabs $0x24fb8a3104b03709,%rsi
8a fb 24
mov    %ebx,%edi
mov    $0x8,%edx
pop    %rbx
jmp    1030 <_br2_store@plt>

LLVM IR (-O0):
define void @internal_fiat_secp256k1_divstep_precomp(i64 %0) {
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
store i64 %0, i64* %2
store i64 -1008344417740628470, i64* %3
store i64 -7398295031810585211, i64* %4
store i64 -1702315277486518103, i64* %5
store i64 2664875547656468233, i64* %6
%7 = load i64, i64* %2
%8 = add i64 %7, 0
%9 = trunc i64 %8 to i32
%10 = load i64, i64* %3
%11 = call i32 @_br2_store(i32 %9, i64 %10, i32 8)
%12 = load i64, i64* %2
%13 = add i64 %12, 8
%14 = trunc i64 %13 to i32
%15 = load i64, i64* %4
%16 = call i32 @_br2_store(i32 %14, i64 %15, i32 8)
%17 = load i64, i64* %2
%18 = add i64 %17, 16
%19 = trunc i64 %18 to i32
%20 = load i64, i64* %5
%21 = call i32 @_br2_store(i32 %19, i64 %20, i32 8)
%22 = load i64, i64* %2
%23 = add i64 %22, 24
%24 = trunc i64 %23 to i32
%25 = load i64, i64* %6
%26 = call i32 @_br2_store(i32 %24, i64 %25, i32 8)
ret void
}

LLVM IR (-O2):
define void @internal_fiat_secp256k1_divstep_precomp(i64 %0) {
%2 = trunc i64 %0 to i32
%3 = tail call i32 @_br2_store(i32 %2, i64 -1008344417740628470, i32 8)
%4 = add i32 %2, 8
%5 = tail call i32 @_br2_store(i32 %4, i64 -7398295031810585211, i32 8)
%6 = add i32 %2, 16
%7 = tail call i32 @_br2_store(i32 %6, i64 -1702315277486518103, i32 8)
%8 = add i32 %2, 24
%9 = tail call i32 @_br2_store(i32 %8, i64 2664875547656468233, i32 8)
ret void
}