#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 */

/* Variables and functions */
int /*<<< orphan*/ da_renorm_add1(double const, double const, double const,
                                  double const, double const, double const,
                                  double const, double const, double const,
                                  double const, double, double *, double *,
                                  double *, double *, double *, double *,
                                  double *, double *, double *, double *);
void da_add_da_d(const double *a, double b, double *c) {
  da_renorm_add1(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], b,
                 &c[0], &c[1], &c[2], &c[3], &c[4], &c[5], &c[6], &c[7], &c[8],
                 &c[9]);
}


x86 assembly (clang, -O0):
<da_add_da_d>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x58,%rsp
mov    %rdi,-0x10(%rbp)
movsd  %xmm0,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm3
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm4
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm5
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm6
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm7
mov    -0x10(%rbp),%rax
movsd  0x40(%rax),%xmm10
mov    -0x10(%rbp),%rax
movsd  0x48(%rax),%xmm9
movsd  -0x18(%rbp),%xmm8
mov    -0x20(%rbp),%rdi
mov    -0x20(%rbp),%rsi
add    $0x8,%rsi
mov    -0x20(%rbp),%rdx
add    $0x10,%rdx
mov    -0x20(%rbp),%rcx
add    $0x18,%rcx
mov    -0x20(%rbp),%r8
add    $0x20,%r8
mov    -0x20(%rbp),%r9
add    $0x28,%r9
mov    -0x20(%rbp),%rbx
add    $0x30,%rbx
mov    -0x20(%rbp),%r11
add    $0x38,%r11
mov    -0x20(%rbp),%r10
add    $0x40,%r10
mov    -0x20(%rbp),%rax
add    $0x48,%rax
movsd  %xmm10,(%rsp)
movsd  %xmm9,0x8(%rsp)
movsd  %xmm8,0x10(%rsp)
mov    %rbx,0x18(%rsp)
mov    %r11,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
call   1030 <da_renorm_add1@plt>
add    $0x58,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<da_add_da_d>:
push   %rbx
sub    $0x40,%rsp
mov    %rsi,%rax
movsd  (%rdi),%xmm8
movsd  0x8(%rdi),%xmm1
movsd  0x10(%rdi),%xmm2
movsd  0x18(%rdi),%xmm3
movsd  0x20(%rdi),%xmm4
movsd  0x28(%rdi),%xmm5
movsd  0x30(%rdi),%xmm6
movsd  0x38(%rdi),%xmm7
movups 0x40(%rdi),%xmm9
lea    0x8(%rsi),%rsi
lea    0x10(%rax),%rdx
lea    0x18(%rax),%rcx
lea    0x20(%rax),%r8
lea    0x28(%rax),%r9
lea    0x30(%rax),%r10
lea    0x38(%rax),%r11
lea    0x40(%rax),%rdi
lea    0x48(%rax),%rbx
mov    %rbx,0x30(%rsp)
mov    %rdi,0x28(%rsp)
mov    %r11,0x20(%rsp)
mov    %r10,0x18(%rsp)
movsd  %xmm0,0x10(%rsp)
movups %xmm9,(%rsp)
movaps %xmm8,%xmm0
mov    %rax,%rdi
call   1030 <da_renorm_add1@plt>
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @da_add_da_d(double* %0, double %1, double* %2) {
%4 = alloca double*
%5 = alloca double
%6 = alloca double*
store double* %0, double** %4
store double %1, double* %5
store double* %2, double** %6
%7 = load double*, double** %4
%8 = getelementptr inbounds double, double* %7, i64 0
%9 = load double, double* %8
%10 = load double*, double** %4
%11 = getelementptr inbounds double, double* %10, i64 1
%12 = load double, double* %11
%13 = load double*, double** %4
%14 = getelementptr inbounds double, double* %13, i64 2
%15 = load double, double* %14
%16 = load double*, double** %4
%17 = getelementptr inbounds double, double* %16, i64 3
%18 = load double, double* %17
%19 = load double*, double** %4
%20 = getelementptr inbounds double, double* %19, i64 4
%21 = load double, double* %20
%22 = load double*, double** %4
%23 = getelementptr inbounds double, double* %22, i64 5
%24 = load double, double* %23
%25 = load double*, double** %4
%26 = getelementptr inbounds double, double* %25, i64 6
%27 = load double, double* %26
%28 = load double*, double** %4
%29 = getelementptr inbounds double, double* %28, i64 7
%30 = load double, double* %29
%31 = load double*, double** %4
%32 = getelementptr inbounds double, double* %31, i64 8
%33 = load double, double* %32
%34 = load double*, double** %4
%35 = getelementptr inbounds double, double* %34, i64 9
%36 = load double, double* %35
%37 = load double, double* %5
%38 = load double*, double** %6
%39 = getelementptr inbounds double, double* %38, i64 0
%40 = load double*, double** %6
%41 = getelementptr inbounds double, double* %40, i64 1
%42 = load double*, double** %6
%43 = getelementptr inbounds double, double* %42, i64 2
%44 = load double*, double** %6
%45 = getelementptr inbounds double, double* %44, i64 3
%46 = load double*, double** %6
%47 = getelementptr inbounds double, double* %46, i64 4
%48 = load double*, double** %6
%49 = getelementptr inbounds double, double* %48, i64 5
%50 = load double*, double** %6
%51 = getelementptr inbounds double, double* %50, i64 6
%52 = load double*, double** %6
%53 = getelementptr inbounds double, double* %52, i64 7
%54 = load double*, double** %6
%55 = getelementptr inbounds double, double* %54, i64 8
%56 = load double*, double** %6
%57 = getelementptr inbounds double, double* %56, i64 9
%58 = call i32 @da_renorm_add1(double %9, double %12, double %15, double %18, double %21, double %24, double %27, double %30, double %33, double %36, double %37, double* %39, double* %41, double* %43, double* %45, double* %47, double* %49, double* %51, double* %53, double* %55, double* %57)
ret void
}

LLVM IR (-O2):
define void @da_add_da_d(double* nocapture %0, double %1, double* %2) {
%4 = load double, double* %0
%5 = getelementptr inbounds double, double* %0, i64 1
%6 = load double, double* %5
%7 = getelementptr inbounds double, double* %0, i64 2
%8 = load double, double* %7
%9 = getelementptr inbounds double, double* %0, i64 3
%10 = load double, double* %9
%11 = getelementptr inbounds double, double* %0, i64 4
%12 = load double, double* %11
%13 = getelementptr inbounds double, double* %0, i64 5
%14 = load double, double* %13
%15 = getelementptr inbounds double, double* %0, i64 6
%16 = load double, double* %15
%17 = getelementptr inbounds double, double* %0, i64 7
%18 = load double, double* %17
%19 = getelementptr inbounds double, double* %0, i64 8
%20 = load double, double* %19
%21 = getelementptr inbounds double, double* %0, i64 9
%22 = load double, double* %21
%23 = getelementptr inbounds double, double* %2, i64 1
%24 = getelementptr inbounds double, double* %2, i64 2
%25 = getelementptr inbounds double, double* %2, i64 3
%26 = getelementptr inbounds double, double* %2, i64 4
%27 = getelementptr inbounds double, double* %2, i64 5
%28 = getelementptr inbounds double, double* %2, i64 6
%29 = getelementptr inbounds double, double* %2, i64 7
%30 = getelementptr inbounds double, double* %2, i64 8
%31 = getelementptr inbounds double, double* %2, i64 9
%32 = tail call i32 @da_renorm_add1(double %4, double %6, double %8, double %10, double %12, double %14, double %16, double %18, double %20, double %22, double %1, double* %2, double* %23, double* %24, double* %25, double* %26, double* %27, double* %28, double* %29, double* %30, double* %31)
ret void
}