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

/* Variables and functions */
scalar_t__ internal_fiat_p256_divstep(uintptr_t, uintptr_t, uintptr_t,
                                      uintptr_t, uintptr_t, uintptr_t,
                                      uintptr_t, uintptr_t, uintptr_t);
void fiat_p256_divstep(uint32_t *out1, uint32_t out2[9], uint32_t out3[9],
                       uint32_t out4[8], uint32_t out5[8], uint32_t arg1,
                       const uint32_t arg2[9], const uint32_t arg3[9],
                       const uint32_t arg4[8], const uint32_t arg5[8]) {
  *out1 = (uint32_t)internal_fiat_p256_divstep(
      (uintptr_t)out2, (uintptr_t)out3, (uintptr_t)out4, (uintptr_t)out5,
      (uintptr_t)arg1, (uintptr_t)arg2, (uintptr_t)arg3, (uintptr_t)arg4,
      (uintptr_t)arg5);
}


x86 assembly (clang, -O0):
<fiat_p256_divstep>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x30(%rbp),%r8
mov    0x10(%rbp),%r9
mov    0x18(%rbp),%r11
mov    0x20(%rbp),%r10
mov    0x28(%rbp),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <internal_fiat_p256_divstep@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fiat_p256_divstep>:
push   %rbx
sub    $0x20,%rsp
mov    %r9,%rax
mov    %rdi,%rbx
mov    0x30(%rsp),%r9
movups 0x38(%rsp),%xmm0
mov    0x48(%rsp),%rdi
mov    %rdi,0x10(%rsp)
movups %xmm0,(%rsp)
mov    %rsi,%rdi
mov    %rdx,%rsi
mov    %rcx,%rdx
mov    %r8,%rcx
mov    %rax,%r8
call   1030 <internal_fiat_p256_divstep@plt>
mov    %rax,(%rbx)
add    $0x20,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
define void @fiat_p256_divstep(i64* nocapture writeonly %0, i64* %1, i64* %2, i64* %3, i64* %4, i64 %5, i64* %6, i64* %7, i64* %8, i64* %9) {
%11 = ptrtoint i64* %1 to i64
%12 = ptrtoint i64* %2 to i64
%13 = ptrtoint i64* %3 to i64
%14 = ptrtoint i64* %4 to i64
%15 = ptrtoint i64* %6 to i64
%16 = ptrtoint i64* %7 to i64
%17 = ptrtoint i64* %8 to i64
%18 = ptrtoint i64* %9 to i64
%19 = tail call i64 @internal_fiat_p256_divstep(i64 %11, i64 %12, i64 %13, i64 %14, i64 %5, i64 %15, i64 %16, i64 %17, i64 %18)
store i64 %19, i64* %0
ret void
}