#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_mod_384(int *, int *);
int /*<<< orphan*/ mp_mul_384(int *, int *, int *);
int /*<<< orphan*/ stdout;
int main(int argc, char *argv[]) {
  uint64_t a[6], b[6], c[12], r[6];
  a[5] = 0xaa87ca22be8b0537;
  a[4] = 0x8eb1c71ef320ad74;
  a[3] = 0x6e1d3b628ba79b98;
  a[2] = 0x59f741e082542a38;
  a[1] = 0x5502f25dbf55296c;
  a[0] = 0x3a545e3872760aB7;
  b[5] = 0x3617de4a96262c6f;
  b[4] = 0x5d9e98bf9292dc29;
  b[3] = 0xf8f41dbd289a147c;
  b[2] = 0xe9da3113b5f0b8c0;
  b[1] = 0x0a60b1ce1d7e819d;
  b[0] = 0x7a431d7c90ea0e5F;
  mp_mul_384(c, a, b);
  mp_mod_384(r, c);
  hex_out(stdout, c, 12);
  hex_out(stdout, r, 6);
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0xbe8b0537,-0x1c(%rbp)
movl   $0xf320ad74,-0x20(%rbp)
movl   $0x8ba79b98,-0x24(%rbp)
movl   $0x82542a38,-0x28(%rbp)
movl   $0xbf55296c,-0x2c(%rbp)
movl   $0x72760ab7,-0x30(%rbp)
movl   $0x96262c6f,-0x3c(%rbp)
movl   $0x9292dc29,-0x40(%rbp)
movl   $0x289a147c,-0x44(%rbp)
movl   $0xb5f0b8c0,-0x48(%rbp)
movl   $0x1d7e819d,-0x4c(%rbp)
movl   $0x90ea0e5f,-0x50(%rbp)
lea    -0x80(%rbp),%rdi
lea    -0x30(%rbp),%rsi
lea    -0x50(%rbp),%rdx
call   1040 <mp_mul_384@plt>
lea    -0xa0(%rbp),%rdi
lea    -0x80(%rbp),%rsi
call   1050 <mp_mod_384@plt>
mov    0x2e0b(%rip),%rax
mov    (%rax),%edi
lea    -0x80(%rbp),%rsi
mov    $0xc,%edx
call   1030 <hex_out@plt>
mov    0x2df4(%rip),%rax
mov    (%rax),%edi
lea    -0xa0(%rbp),%rsi
mov    $0x6,%edx
call   1030 <hex_out@plt>
mov    0x2dd2(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x90,%rsp
movabs $0xbe8b0537f320ad74,%rax
05 8b be
mov    %rax,0x30(%rsp)
movaps 0xe9e(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movabs $0x96262c6f9292dc29,%rax
2c 26 96
mov    %rax,0x10(%rsp)
movaps 0xe93(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0x60(%rsp),%rbx
lea    0x20(%rsp),%rsi
mov    %rsp,%rdx
mov    %rbx,%rdi
call   1040 <mp_mul_384@plt>
lea    0x40(%rsp),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <mp_mod_384@plt>
mov    0x2e33(%rip),%r15
mov    (%r15),%edi
mov    %rbx,%rsi
mov    $0xc,%edx
call   1030 <hex_out@plt>
mov    (%r15),%edi
mov    %r14,%rsi
mov    $0x6,%edx
call   1030 <hex_out@plt>
mov    0x2e04(%rip),%rax
mov    (%rax),%edi
call   1060 <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 [6 x i32]
%7 = alloca [6 x i32]
%8 = alloca [12 x i32]
%9 = alloca [6 x i32]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = getelementptr inbounds [6 x i32], [6 x i32]* %6, i64 0, i64 5
store i32 -1098185417, i32* %10
%11 = getelementptr inbounds [6 x i32], [6 x i32]* %6, i64 0, i64 4
store i32 -215962252, i32* %11
%12 = getelementptr inbounds [6 x i32], [6 x i32]* %6, i64 0, i64 3
store i32 -1951949928, i32* %12
%13 = getelementptr inbounds [6 x i32], [6 x i32]* %6, i64 0, i64 2
store i32 -2108413384, i32* %13
%14 = getelementptr inbounds [6 x i32], [6 x i32]* %6, i64 0, i64 1
store i32 -1084937876, i32* %14
%15 = getelementptr inbounds [6 x i32], [6 x i32]* %6, i64 0, i64 0
store i32 1920338615, i32* %15
%16 = getelementptr inbounds [6 x i32], [6 x i32]* %7, i64 0, i64 5
store i32 -1775883153, i32* %16
%17 = getelementptr inbounds [6 x i32], [6 x i32]* %7, i64 0, i64 4
store i32 -1835869143, i32* %17
%18 = getelementptr inbounds [6 x i32], [6 x i32]* %7, i64 0, i64 3
store i32 681186428, i32* %18
%19 = getelementptr inbounds [6 x i32], [6 x i32]* %7, i64 0, i64 2
store i32 -1242515264, i32* %19
%20 = getelementptr inbounds [6 x i32], [6 x i32]* %7, i64 0, i64 1
store i32 494829981, i32* %20
%21 = getelementptr inbounds [6 x i32], [6 x i32]* %7, i64 0, i64 0
store i32 -1863709089, i32* %21
%22 = getelementptr inbounds [12 x i32], [12 x i32]* %8, i64 0, i64 0
%23 = getelementptr inbounds [6 x i32], [6 x i32]* %6, i64 0, i64 0
%24 = getelementptr inbounds [6 x i32], [6 x i32]* %7, i64 0, i64 0
%25 = call i32 @mp_mul_384(i32* %22, i32* %23, i32* %24)
%26 = getelementptr inbounds [6 x i32], [6 x i32]* %9, i64 0, i64 0
%27 = getelementptr inbounds [12 x i32], [12 x i32]* %8, i64 0, i64 0
%28 = call i32 @mp_mod_384(i32* %26, i32* %27)
%29 = load i32, i32* @stdout
%30 = getelementptr inbounds [12 x i32], [12 x i32]* %8, i64 0, i64 0
%31 = call i32 @hex_out(i32 %29, i32* %30, i32 12)
%32 = load i32, i32* @stdout
%33 = getelementptr inbounds [6 x i32], [6 x i32]* %9, i64 0, i64 0
%34 = call i32 @hex_out(i32 %32, i32* %33, i32 6)
%35 = load i32, i32* @EXIT_SUCCESS
%36 = call i32 @exit(i32 %35)
unreachable
}

LLVM IR (-O2):
@stdout = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [6 x i32]
%4 = alloca [6 x i32]
%5 = alloca [12 x i32]
%6 = alloca [6 x i32]
%7 = bitcast [6 x i32]* %3 to i8*
%8 = bitcast [6 x i32]* %4 to i8*
%9 = bitcast [12 x i32]* %5 to i8*
%10 = bitcast [6 x i32]* %6 to i8*
%11 = getelementptr inbounds [6 x i32], [6 x i32]* %3, i64 0, i64 5
store i32 -1098185417, i32* %11
%12 = getelementptr inbounds [6 x i32], [6 x i32]* %3, i64 0, i64 4
store i32 -215962252, i32* %12
%13 = getelementptr inbounds [6 x i32], [6 x i32]* %3, i64 0, i64 0
%14 = bitcast [6 x i32]* %3 to <4 x i32>*
store <4 x i32> <i32 1920338615, i32 -1084937876, i32 -2108413384, i32 -1951949928>, <4 x i32>* %14
%15 = getelementptr inbounds [6 x i32], [6 x i32]* %4, i64 0, i64 5
store i32 -1775883153, i32* %15
%16 = getelementptr inbounds [6 x i32], [6 x i32]* %4, i64 0, i64 4
store i32 -1835869143, i32* %16
%17 = getelementptr inbounds [6 x i32], [6 x i32]* %4, i64 0, i64 0
%18 = bitcast [6 x i32]* %4 to <4 x i32>*
store <4 x i32> <i32 -1863709089, i32 494829981, i32 -1242515264, i32 681186428>, <4 x i32>* %18
%19 = getelementptr inbounds [12 x i32], [12 x i32]* %5, i64 0, i64 0
%20 = call i32 @mp_mul_384(i32* %19, i32* %13, i32* %17)
%21 = getelementptr inbounds [6 x i32], [6 x i32]* %6, i64 0, i64 0
%22 = call i32 @mp_mod_384(i32* %21, i32* %19)
%23 = load i32, i32* @stdout
%24 = call i32 @hex_out(i32 %23, i32* %19, i32 12)
%25 = load i32, i32* @stdout
%26 = call i32 @hex_out(i32 %25, i32* %21, i32 6)
%27 = load i32, i32* @EXIT_SUCCESS
%28 = call i32 @exit(i32 %27)
unreachable
}