void set_pharos_load_record(struct module *mod, double st_array[],
                            unsigned long long pre_array[],
                            unsigned long long cur_array[], int inter) {
  st_array[0] = cur_array[0];
  st_array[1] = cur_array[1];
  st_array[2] = cur_array[2];
  st_array[3] = cur_array[3];
  st_array[4] = cur_array[4];
  st_array[5] = cur_array[5];
  st_array[6] = cur_array[6];
  st_array[7] = cur_array[7];
  st_array[8] = cur_array[8];
  st_array[9] = cur_array[9];
  st_array[10] = cur_array[10];
  st_array[11] = cur_array[11];
  st_array[12] = cur_array[12];
}


x86 assembly (clang, -O0):
<set_pharos_load_record>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    -0x20(%rbp),%rax
movq   (%rax),%xmm0
movaps 0xed9(%rip),%xmm2
punpckldq %xmm2,%xmm0
movapd 0xedd(%rip),%xmm1
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm3
unpckhpd %xmm0,%xmm0
addsd  %xmm3,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movq   0x8(%rax),%xmm0
punpckldq %xmm2,%xmm0
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm3
unpckhpd %xmm0,%xmm0
addsd  %xmm3,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x20(%rbp),%rax
movq   0x10(%rax),%xmm0
punpckldq %xmm2,%xmm0
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm3
unpckhpd %xmm0,%xmm0
addsd  %xmm3,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x20(%rbp),%rax
movq   0x18(%rax),%xmm0
punpckldq %xmm2,%xmm0
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm3
unpckhpd %xmm0,%xmm0
addsd  %xmm3,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x20(%rbp),%rax
movq   0x20(%rax),%xmm0
punpckldq %xmm2,%xmm0
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm3
unpckhpd %xmm0,%xmm0
addsd  %xmm3,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x20(%rax)
mov    -0x20(%rbp),%rax
movq   0x28(%rax),%xmm0
punpckldq %xmm2,%xmm0
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm3
unpckhpd %xmm0,%xmm0
addsd  %xmm3,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x28(%rax)
mov    -0x20(%rbp),%rax
movq   0x30(%rax),%xmm0
punpckldq %xmm2,%xmm0
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm3
unpckhpd %xmm0,%xmm0
addsd  %xmm3,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    -0x20(%rbp),%rax
movq   0x38(%rax),%xmm0
punpckldq %xmm2,%xmm0
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm3
unpckhpd %xmm0,%xmm0
addsd  %xmm3,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x38(%rax)
mov    -0x20(%rbp),%rax
movq   0x40(%rax),%xmm0
punpckldq %xmm2,%xmm0
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm3
unpckhpd %xmm0,%xmm0
addsd  %xmm3,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x40(%rax)
mov    -0x20(%rbp),%rax
movq   0x48(%rax),%xmm0
punpckldq %xmm2,%xmm0
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm3
unpckhpd %xmm0,%xmm0
addsd  %xmm3,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x48(%rax)
mov    -0x20(%rbp),%rax
movq   0x50(%rax),%xmm0
punpckldq %xmm2,%xmm0
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm3
unpckhpd %xmm0,%xmm0
addsd  %xmm3,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x50(%rax)
mov    -0x20(%rbp),%rax
movq   0x58(%rax),%xmm0
punpckldq %xmm2,%xmm0
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm3
unpckhpd %xmm0,%xmm0
addsd  %xmm3,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x58(%rax)
mov    -0x20(%rbp),%rax
movq   0x60(%rax),%xmm0
punpckldq %xmm2,%xmm0
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x60(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_pharos_load_record>:
movdqu (%rcx),%xmm4
movdqa 0xef4(%rip),%xmm0
movdqa %xmm4,%xmm5
pand   %xmm0,%xmm5
movdqa 0xef4(%rip),%xmm1
por    %xmm1,%xmm5
psrlq  $0x20,%xmm4
movdqa 0xef3(%rip),%xmm2
por    %xmm2,%xmm4
movapd 0xef7(%rip),%xmm3
subpd  %xmm3,%xmm4
addpd  %xmm5,%xmm4
movupd %xmm4,(%rsi)
movdqu 0x10(%rcx),%xmm4
movdqa %xmm4,%xmm5
pand   %xmm0,%xmm5
por    %xmm1,%xmm5
psrlq  $0x20,%xmm4
por    %xmm2,%xmm4
subpd  %xmm3,%xmm4
addpd  %xmm5,%xmm4
movupd %xmm4,0x10(%rsi)
movdqu 0x20(%rcx),%xmm4
movdqa %xmm4,%xmm5
pand   %xmm0,%xmm5
por    %xmm1,%xmm5
psrlq  $0x20,%xmm4
por    %xmm2,%xmm4
subpd  %xmm3,%xmm4
addpd  %xmm5,%xmm4
movupd %xmm4,0x20(%rsi)
movdqu 0x30(%rcx),%xmm4
movdqa %xmm4,%xmm5
pand   %xmm0,%xmm5
por    %xmm1,%xmm5
psrlq  $0x20,%xmm4
por    %xmm2,%xmm4
subpd  %xmm3,%xmm4
addpd  %xmm5,%xmm4
movupd %xmm4,0x30(%rsi)
movdqu 0x40(%rcx),%xmm4
movdqa %xmm4,%xmm5
pand   %xmm0,%xmm5
por    %xmm1,%xmm5
psrlq  $0x20,%xmm4
por    %xmm2,%xmm4
subpd  %xmm3,%xmm4
addpd  %xmm5,%xmm4
movupd %xmm4,0x40(%rsi)
movdqu 0x50(%rcx),%xmm4
pand   %xmm4,%xmm0
por    %xmm1,%xmm0
psrlq  $0x20,%xmm4
por    %xmm2,%xmm4
subpd  %xmm3,%xmm4
addpd  %xmm0,%xmm4
movupd %xmm4,0x50(%rsi)
movsd  0x60(%rcx),%xmm0
unpcklps 0xe30(%rip),%xmm0
subpd  0xe38(%rip),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x60(%rsi)
ret

LLVM IR (-O0):
%struct.module = type opaque
define void @set_pharos_load_record(%struct.module* %0, double* %1, i64* %2, i64* %3, i32 %4) {
%6 = alloca %struct.module*
%7 = alloca double*
%8 = alloca i64*
%9 = alloca i64*
%10 = alloca i32
store %struct.module* %0, %struct.module** %6
store double* %1, double** %7
store i64* %2, i64** %8
store i64* %3, i64** %9
store i32 %4, i32* %10
%11 = load i64*, i64** %9
%12 = getelementptr inbounds i64, i64* %11, i64 0
%13 = load i64, i64* %12
%14 = uitofp i64 %13 to double
%15 = load double*, double** %7
%16 = getelementptr inbounds double, double* %15, i64 0
store double %14, double* %16
%17 = load i64*, i64** %9
%18 = getelementptr inbounds i64, i64* %17, i64 1
%19 = load i64, i64* %18
%20 = uitofp i64 %19 to double
%21 = load double*, double** %7
%22 = getelementptr inbounds double, double* %21, i64 1
store double %20, double* %22
%23 = load i64*, i64** %9
%24 = getelementptr inbounds i64, i64* %23, i64 2
%25 = load i64, i64* %24
%26 = uitofp i64 %25 to double
%27 = load double*, double** %7
%28 = getelementptr inbounds double, double* %27, i64 2
store double %26, double* %28
%29 = load i64*, i64** %9
%30 = getelementptr inbounds i64, i64* %29, i64 3
%31 = load i64, i64* %30
%32 = uitofp i64 %31 to double
%33 = load double*, double** %7
%34 = getelementptr inbounds double, double* %33, i64 3
store double %32, double* %34
%35 = load i64*, i64** %9
%36 = getelementptr inbounds i64, i64* %35, i64 4
%37 = load i64, i64* %36
%38 = uitofp i64 %37 to double
%39 = load double*, double** %7
%40 = getelementptr inbounds double, double* %39, i64 4
store double %38, double* %40
%41 = load i64*, i64** %9
%42 = getelementptr inbounds i64, i64* %41, i64 5
%43 = load i64, i64* %42
%44 = uitofp i64 %43 to double
%45 = load double*, double** %7
%46 = getelementptr inbounds double, double* %45, i64 5
store double %44, double* %46
%47 = load i64*, i64** %9
%48 = getelementptr inbounds i64, i64* %47, i64 6
%49 = load i64, i64* %48
%50 = uitofp i64 %49 to double
%51 = load double*, double** %7
%52 = getelementptr inbounds double, double* %51, i64 6
store double %50, double* %52
%53 = load i64*, i64** %9
%54 = getelementptr inbounds i64, i64* %53, i64 7
%55 = load i64, i64* %54
%56 = uitofp i64 %55 to double
%57 = load double*, double** %7
%58 = getelementptr inbounds double, double* %57, i64 7
store double %56, double* %58
%59 = load i64*, i64** %9
%60 = getelementptr inbounds i64, i64* %59, i64 8
%61 = load i64, i64* %60
%62 = uitofp i64 %61 to double
%63 = load double*, double** %7
%64 = getelementptr inbounds double, double* %63, i64 8
store double %62, double* %64
%65 = load i64*, i64** %9
%66 = getelementptr inbounds i64, i64* %65, i64 9
%67 = load i64, i64* %66
%68 = uitofp i64 %67 to double
%69 = load double*, double** %7
%70 = getelementptr inbounds double, double* %69, i64 9
store double %68, double* %70
%71 = load i64*, i64** %9
%72 = getelementptr inbounds i64, i64* %71, i64 10
%73 = load i64, i64* %72
%74 = uitofp i64 %73 to double
%75 = load double*, double** %7
%76 = getelementptr inbounds double, double* %75, i64 10
store double %74, double* %76
%77 = load i64*, i64** %9
%78 = getelementptr inbounds i64, i64* %77, i64 11
%79 = load i64, i64* %78
%80 = uitofp i64 %79 to double
%81 = load double*, double** %7
%82 = getelementptr inbounds double, double* %81, i64 11
store double %80, double* %82
%83 = load i64*, i64** %9
%84 = getelementptr inbounds i64, i64* %83, i64 12
%85 = load i64, i64* %84
%86 = uitofp i64 %85 to double
%87 = load double*, double** %7
%88 = getelementptr inbounds double, double* %87, i64 12
store double %86, double* %88
ret void
}

LLVM IR (-O2):
%struct.module = type opaque
define void @set_pharos_load_record(%struct.module* nocapture readnone %0, double* nocapture writeonly %1, i64* nocapture readnone %2, i64* nocapture %3, i32 %4) {
%6 = bitcast i64* %3 to <2 x i64>*
%7 = load <2 x i64>, <2 x i64>* %6
%8 = uitofp <2 x i64> %7 to <2 x double>
%9 = bitcast double* %1 to <2 x double>*
store <2 x double> %8, <2 x double>* %9
%10 = getelementptr inbounds i64, i64* %3, i64 2
%11 = getelementptr inbounds double, double* %1, i64 2
%12 = bitcast i64* %10 to <2 x i64>*
%13 = load <2 x i64>, <2 x i64>* %12
%14 = uitofp <2 x i64> %13 to <2 x double>
%15 = bitcast double* %11 to <2 x double>*
store <2 x double> %14, <2 x double>* %15
%16 = getelementptr inbounds i64, i64* %3, i64 4
%17 = getelementptr inbounds double, double* %1, i64 4
%18 = bitcast i64* %16 to <2 x i64>*
%19 = load <2 x i64>, <2 x i64>* %18
%20 = uitofp <2 x i64> %19 to <2 x double>
%21 = bitcast double* %17 to <2 x double>*
store <2 x double> %20, <2 x double>* %21
%22 = getelementptr inbounds i64, i64* %3, i64 6
%23 = getelementptr inbounds double, double* %1, i64 6
%24 = bitcast i64* %22 to <2 x i64>*
%25 = load <2 x i64>, <2 x i64>* %24
%26 = uitofp <2 x i64> %25 to <2 x double>
%27 = bitcast double* %23 to <2 x double>*
store <2 x double> %26, <2 x double>* %27
%28 = getelementptr inbounds i64, i64* %3, i64 8
%29 = getelementptr inbounds double, double* %1, i64 8
%30 = bitcast i64* %28 to <2 x i64>*
%31 = load <2 x i64>, <2 x i64>* %30
%32 = uitofp <2 x i64> %31 to <2 x double>
%33 = bitcast double* %29 to <2 x double>*
store <2 x double> %32, <2 x double>* %33
%34 = getelementptr inbounds i64, i64* %3, i64 10
%35 = getelementptr inbounds double, double* %1, i64 10
%36 = bitcast i64* %34 to <2 x i64>*
%37 = load <2 x i64>, <2 x i64>* %36
%38 = uitofp <2 x i64> %37 to <2 x double>
%39 = bitcast double* %35 to <2 x double>*
store <2 x double> %38, <2 x double>* %39
%40 = getelementptr inbounds i64, i64* %3, i64 12
%41 = load i64, i64* %40
%42 = uitofp i64 %41 to double
%43 = getelementptr inbounds double, double* %1, i64 12
store double %42, double* %43
ret void
}