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

/* Variables and functions */
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ hex_out(int /*<<< orphan*/, int *, int);
int /*<<< orphan*/ mp_mul_521(int *, int *, int *);
int /*<<< orphan*/ stdout;
int main(int argc, char *argv[]) {
  uint64_t a[10], b[10], c[18];
  a[9] = 0x0;
  a[8] = 0x000000c6858e06b7;
  a[7] = 0x00404e9cd9e3ecb6;
  a[6] = 0x062395b4429c6481;
  a[5] = 0x039053fb521f828a;
  a[4] = 0x0f606b4d3dbaa14b;
  a[3] = 0x05e77efe75928fe1;
  a[2] = 0x0dc127a2ffa8de33;
  a[1] = 0x048b3c1856a429bf;
  a[0] = 0x097e7e31c2e5bd66;
  b[9] = 0x0;
  b[8] = 0x0000011839296a78;
  b[7] = 0x09a3bc0045c8a5fb;
  b[6] = 0x042c7d1bd998f544;
  b[5] = 0x049579b446817afb;
  b[4] = 0x0d17273e662c97ee;
  b[3] = 0x072995ef42640c55;
  b[2] = 0x00b9013fad076135;
  b[1] = 0x03c7086a272c2408;
  b[0] = 0x08be94769fd16650;
  mp_mul_521(c, a, b);
  hex_out(stdout, c, 18);
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x858e06b7,-0x20(%rbp)
movl   $0xd9e3ecb6,-0x24(%rbp)
movl   $0x429c6481,-0x28(%rbp)
movl   $0x521f828a,-0x2c(%rbp)
movl   $0x3dbaa14b,-0x30(%rbp)
movl   $0x75928fe1,-0x34(%rbp)
movl   $0xffa8de33,-0x38(%rbp)
movl   $0x56a429bf,-0x3c(%rbp)
movl   $0xc2e5bd66,-0x40(%rbp)
movl   $0x0,-0x4c(%rbp)
movl   $0x39296a78,-0x50(%rbp)
movl   $0x45c8a5fb,-0x54(%rbp)
movl   $0xd998f544,-0x58(%rbp)
movl   $0x46817afb,-0x5c(%rbp)
movl   $0x662c97ee,-0x60(%rbp)
movl   $0x42640c55,-0x64(%rbp)
movl   $0xad076135,-0x68(%rbp)
movl   $0x272c2408,-0x6c(%rbp)
movl   $0x9fd16650,-0x70(%rbp)
lea    -0xc0(%rbp),%rdi
lea    -0x40(%rbp),%rsi
lea    -0x70(%rbp),%rdx
call   1040 <mp_mul_521@plt>
mov    0x2df0(%rip),%rax
mov    (%rax),%edi
lea    -0xc0(%rbp),%rsi
mov    $0x12,%edx
call   1030 <hex_out@plt>
mov    0x2dce(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0xb0,%rsp
mov    $0x858e06b7,%eax
mov    %rax,0x50(%rsp)
movaps 0xeb7(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xebb(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movq   $0x39296a78,0x20(%rsp)
29 39
movaps 0xeb6(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeba(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0x60(%rsp),%rbx
lea    0x30(%rsp),%rsi
mov    %rsp,%rdx
mov    %rbx,%rdi
call   1040 <mp_mul_521@plt>
mov    0x2e4a(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
mov    $0x12,%edx
call   1030 <hex_out@plt>
mov    0x2e2c(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stdout = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [10 x i32]
%7 = alloca [10 x i32]
%8 = alloca [18 x i32]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 9
store i32 0, i32* %9
%10 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 8
store i32 -2054289737, i32* %10
%11 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 7
store i32 -639374154, i32* %11
%12 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 6
store i32 1117545601, i32* %12
%13 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 5
store i32 1377796746, i32* %13
%14 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 4
store i32 1035641163, i32* %14
%15 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 3
store i32 1972539361, i32* %15
%16 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 2
store i32 -5710285, i32* %16
%17 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 1
store i32 1453599167, i32* %17
%18 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 0
store i32 -1025131162, i32* %18
%19 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 9
store i32 0, i32* %19
%20 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 8
store i32 959015544, i32* %20
%21 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 7
store i32 1170777595, i32* %21
%22 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 6
store i32 -644287164, i32* %22
%23 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 5
store i32 1182890747, i32* %23
%24 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 4
store i32 1714198510, i32* %24
%25 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 3
store i32 1113853013, i32* %25
%26 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 2
store i32 -1392025291, i32* %26
%27 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 1
store i32 657204232, i32* %27
%28 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 0
store i32 -1613666736, i32* %28
%29 = getelementptr inbounds [18 x i32], [18 x i32]* %8, i64 0, i64 0
%30 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 0
%31 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 0
%32 = call i32 @mp_mul_521(i32* %29, i32* %30, i32* %31)
%33 = load i32, i32* @stdout
%34 = getelementptr inbounds [18 x i32], [18 x i32]* %8, i64 0, i64 0
%35 = call i32 @hex_out(i32 %33, i32* %34, i32 18)
%36 = load i32, i32* @EXIT_SUCCESS
%37 = call i32 @exit(i32 %36)
unreachable
}

LLVM IR (-O2):
@stdout = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [10 x i32]
%4 = alloca [10 x i32]
%5 = alloca [18 x i32]
%6 = bitcast [10 x i32]* %3 to i8*
%7 = bitcast [10 x i32]* %4 to i8*
%8 = bitcast [18 x i32]* %5 to i8*
%9 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 9
store i32 0, i32* %9
%10 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 8
store i32 -2054289737, i32* %10
%11 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 4
%12 = bitcast i32* %11 to <4 x i32>*
store <4 x i32> <i32 1035641163, i32 1377796746, i32 1117545601, i32 -639374154>, <4 x i32>* %12
%13 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 0
%14 = bitcast [10 x i32]* %3 to <4 x i32>*
store <4 x i32> <i32 -1025131162, i32 1453599167, i32 -5710285, i32 1972539361>, <4 x i32>* %14
%15 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 9
store i32 0, i32* %15
%16 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 8
store i32 959015544, i32* %16
%17 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 4
%18 = bitcast i32* %17 to <4 x i32>*
store <4 x i32> <i32 1714198510, i32 1182890747, i32 -644287164, i32 1170777595>, <4 x i32>* %18
%19 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 0
%20 = bitcast [10 x i32]* %4 to <4 x i32>*
store <4 x i32> <i32 -1613666736, i32 657204232, i32 -1392025291, i32 1113853013>, <4 x i32>* %20
%21 = getelementptr inbounds [18 x i32], [18 x i32]* %5, i64 0, i64 0
%22 = call i32 @mp_mul_521(i32* %21, i32* %13, i32* %19)
%23 = load i32, i32* @stdout
%24 = call i32 @hex_out(i32 %23, i32* %21, i32 18)
%25 = load i32, i32* @EXIT_SUCCESS
%26 = call i32 @exit(i32 %25)
unreachable
}