void achtdc(v1, v2, npix, direction, hasscale, dirale, bzero) double *v1;
char *v2;
int npix;
int direction;
int hasscale;
double dirale;
double bzero;
{
  if (hasscale) {
    if (direction) {
      while (npix--)
        v1[npix] = v2[npix] * dirale + bzero;
    } else {
      while (npix--)
        v1[npix] = (v2[npix] - bzero) / dirale;
    }
  } else {
    while (npix--)
      v1[npix] = v2[npix];
  }
}


x86 assembly (clang, -O0):
<achtdc>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
movsd  %xmm0,-0x28(%rbp)
movsd  %xmm1,-0x30(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     11d5 <achtdc+0xd5>
cmpl   $0x0,-0x18(%rbp)
je     1186 <achtdc+0x86>
jmp    1139 <achtdc+0x39>
mov    -0x14(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x14(%rbp)
cmp    $0x0,%eax
je     1181 <achtdc+0x81>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cvtsi2sd %eax,%xmm0
movsd  -0x28(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    1139 <achtdc+0x39>
jmp    11d0 <achtdc+0xd0>
jmp    118b <achtdc+0x8b>
mov    -0x14(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x14(%rbp)
cmp    $0x0,%eax
je     11cb <achtdc+0xcb>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cvtsi2sd %eax,%xmm0
subsd  -0x30(%rbp),%xmm0
divsd  -0x28(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    118b <achtdc+0x8b>
jmp    11d0 <achtdc+0xd0>
jmp    1215 <achtdc+0x115>
jmp    11da <achtdc+0xda>
mov    -0x14(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x14(%rbp)
cmp    $0x0,%eax
je     1210 <achtdc+0x110>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cvtsi2sd %eax,%xmm0
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    11da <achtdc+0xda>
jmp    1215 <achtdc+0x115>
pop    %rbp
ret

x86 assembly (clang, -O2):
<achtdc>:
push   %rbp
push   %rbx
test   %r8d,%r8d
je     116b <achtdc+0x6b>
test   %ecx,%ecx
je     133c <achtdc+0x23c>
test   %edx,%edx
je     16af <achtdc+0x5af>
movslq %edx,%rax
add    $0xffffffff,%edx
cmp    $0x3,%edx
jb     114c <achtdc+0x4c>
mov    %rdx,%rcx
not    %rcx
add    %rax,%rcx
lea    (%rdi,%rcx,8),%rbp
lea    (%rsi,%rax,1),%rbx
cmp    %rbp,%rbx
jbe    1468 <achtdc+0x368>
lea    (%rdi,%rax,8),%rbp
add    %rsi,%rcx
cmp    %rbp,%rcx
jae    1468 <achtdc+0x368>
mov    %rax,%r9
test   $0x1,%r9b
jne    1392 <achtdc+0x292>
mov    %r9,%rax
cmp    $0x1,%r9d
jne    13c0 <achtdc+0x2c0>
jmp    16af <achtdc+0x5af>
test   %edx,%edx
je     16af <achtdc+0x5af>
movslq %edx,%rax
add    $0xffffffff,%edx
cmp    $0x3,%edx
jb     12f9 <achtdc+0x1f9>
mov    %rdx,%rcx
not    %rcx
add    %rax,%rcx
lea    (%rdi,%rcx,8),%r8
lea    (%rsi,%rax,1),%rbx
cmp    %r8,%rbx
jbe    11a8 <achtdc+0xa8>
lea    (%rdi,%rax,8),%rbx
add    %rsi,%rcx
cmp    %rbx,%rcx
jb     12f9 <achtdc+0x1f9>
add    $0x1,%rdx
mov    %rdx,%r8
and    $0xfffffffffffffffc,%r8
lea    -0x4(%r8),%rcx
mov    %rcx,%r9
shr    $0x2,%r9
add    $0x1,%r9
test   %rcx,%rcx
je     15dc <achtdc+0x4dc>
mov    %r9,%r10
and    $0xfffffffffffffffe,%r10
lea    (%rdi,%rax,8),%r11
add    $0xfffffffffffffff0,%r11
lea    (%rsi,%rax,1),%rbx
add    $0xfffffffffffffffe,%rbx
mov    $0xfffffffffffffffe,%rcx
nopl   0x0(%rax)
movzwl 0x2(%rbx,%rcx,1),%ebp
movd   %ebp,%xmm0
punpcklbw %xmm0,%xmm0
movzwl (%rbx,%rcx,1),%ebp
movd   %ebp,%xmm1
punpcklbw %xmm1,%xmm1
pshuflw $0x24,%xmm0,%xmm0
psrad  $0x18,%xmm0
cvtdq2pd %xmm0,%xmm0
pshuflw $0x24,%xmm1,%xmm1
psrad  $0x18,%xmm1
cvtdq2pd %xmm1,%xmm1
shufps $0x4e,%xmm0,%xmm0
movups %xmm0,0x10(%r11,%rcx,8)
shufps $0x4e,%xmm1,%xmm1
movups %xmm1,(%r11,%rcx,8)
movzwl -0x2(%rbx,%rcx,1),%ebp
movd   %ebp,%xmm0
punpcklbw %xmm0,%xmm0
movzwl -0x4(%rbx,%rcx,1),%ebp
movd   %ebp,%xmm1
punpcklbw %xmm1,%xmm1
pshuflw $0x24,%xmm0,%xmm0
psrad  $0x18,%xmm0
cvtdq2pd %xmm0,%xmm0
pshuflw $0x24,%xmm1,%xmm1
psrad  $0x18,%xmm1
cvtdq2pd %xmm1,%xmm1
shufpd $0x1,%xmm0,%xmm0
movupd %xmm0,-0x10(%r11,%rcx,8)
shufpd $0x1,%xmm1,%xmm1
movupd %xmm1,-0x20(%r11,%rcx,8)
add    $0xfffffffffffffff8,%rcx
add    $0xfffffffffffffffe,%r10
jne    11f0 <achtdc+0xf0>
add    $0x1,%rcx
test   $0x1,%r9b
je     12ed <achtdc+0x1ed>
add    %rax,%rcx
movzwl -0x1(%rsi,%rcx,1),%ebp
movd   %ebp,%xmm0
movzwl -0x3(%rsi,%rcx,1),%ebp
movd   %ebp,%xmm1
punpcklbw %xmm0,%xmm0
pshuflw $0x24,%xmm0,%xmm0
psrad  $0x18,%xmm0
cvtdq2pd %xmm0,%xmm0
punpcklbw %xmm1,%xmm1
pshuflw $0x24,%xmm1,%xmm1
psrad  $0x18,%xmm1
cvtdq2pd %xmm1,%xmm1
shufpd $0x1,%xmm0,%xmm0
movupd %xmm0,-0x8(%rdi,%rcx,8)
shufpd $0x1,%xmm1,%xmm1
movupd %xmm1,-0x18(%rdi,%rcx,8)
cmp    %r8,%rdx
je     16af <achtdc+0x5af>
sub    %r8,%rax
lea    -0x1(%rax),%edx
mov    %eax,%ebx
and    $0x3,%ebx
je     1404 <achtdc+0x304>
nopw   0x0(%rax,%rax,1)
lea    -0x1(%rax),%rcx
movsbl -0x1(%rsi,%rax,1),%ebp
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
movsd  %xmm0,-0x8(%rdi,%rax,8)
mov    %rcx,%rax
add    $0xffffffff,%ebx
jne    1310 <achtdc+0x210>
cmp    $0x3,%edx
jae    1410 <achtdc+0x310>
jmp    16af <achtdc+0x5af>
test   %edx,%edx
je     16af <achtdc+0x5af>
movslq %edx,%r9
add    $0xffffffff,%edx
je     1376 <achtdc+0x276>
mov    %rdx,%rcx
not    %rcx
add    %r9,%rcx
lea    (%rdi,%rcx,8),%rbp
lea    (%rdi,%r9,8),%r10
lea    (%rsi,%r9,1),%rax
cmp    %rbp,%rax
jbe    1521 <achtdc+0x421>
add    %rsi,%rcx
cmp    %r10,%rcx
jae    1521 <achtdc+0x421>
test   $0x1,%r9b
jne    1642 <achtdc+0x542>
mov    %r9,%rax
cmp    $0x1,%r9d
jne    1670 <achtdc+0x570>
jmp    16af <achtdc+0x5af>
movsbl -0x1(%rsi,%r9,1),%eax
xorps  %xmm2,%xmm2
cvtsi2sd %eax,%xmm2
lea    -0x1(%r9),%rax
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,-0x8(%rdi,%r9,8)
cmp    $0x1,%r9d
je     16af <achtdc+0x5af>
nopl   0x0(%rax)
movsbl -0x1(%rsi,%rax,1),%ecx
xorps  %xmm2,%xmm2
cvtsi2sd %ecx,%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,-0x8(%rdi,%rax,8)
movsbl -0x2(%rsi,%rax,1),%ecx
xorps  %xmm2,%xmm2
cvtsi2sd %ecx,%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,-0x10(%rdi,%rax,8)
lea    -0x2(%rax),%rcx
mov    %rcx,%rax
test   %ecx,%ecx
jne    13c0 <achtdc+0x2c0>
jmp    16af <achtdc+0x5af>
mov    %rax,%rcx
cmp    $0x3,%edx
jb     16af <achtdc+0x5af>
movsbl -0x1(%rsi,%rcx,1),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x8(%rdi,%rcx,8)
movsbl -0x2(%rsi,%rcx,1),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x10(%rdi,%rcx,8)
movsbl -0x3(%rsi,%rcx,1),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x18(%rdi,%rcx,8)
movsbl -0x4(%rsi,%rcx,1),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x20(%rdi,%rcx,8)
lea    -0x4(%rcx),%rax
mov    %rax,%rcx
test   %eax,%eax
jne    1410 <achtdc+0x310>
jmp    16af <achtdc+0x5af>
add    $0x1,%rdx
mov    %rdx,%r8
and    $0xfffffffffffffffc,%r8
mov    %rax,%r9
sub    %r8,%r9
movapd %xmm0,%xmm2
unpcklpd %xmm0,%xmm2
movapd %xmm1,%xmm3
unpcklpd %xmm1,%xmm3
lea    (%rsi,%rax,1),%rbx
add    $0xfffffffffffffffe,%rbx
lea    (%rdi,%rax,8),%rcx
add    $0xfffffffffffffff0,%rcx
mov    %r8,%r10
neg    %r10
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movzwl (%rbx,%rax,1),%ebp
movd   %ebp,%xmm4
punpcklbw %xmm4,%xmm4
movzwl -0x2(%rbx,%rax,1),%ebp
movd   %ebp,%xmm5
punpcklbw %xmm5,%xmm5
pshuflw $0x24,%xmm4,%xmm4
psrad  $0x18,%xmm4
cvtdq2pd %xmm4,%xmm4
pshuflw $0x24,%xmm5,%xmm5
psrad  $0x18,%xmm5
cvtdq2pd %xmm5,%xmm5
mulpd  %xmm2,%xmm4
addpd  %xmm3,%xmm4
mulpd  %xmm2,%xmm5
addpd  %xmm3,%xmm5
shufpd $0x1,%xmm4,%xmm4
movupd %xmm4,(%rcx,%rax,8)
shufpd $0x1,%xmm5,%xmm5
movupd %xmm5,-0x10(%rcx,%rax,8)
add    $0xfffffffffffffffc,%rax
cmp    %rax,%r10
jne    14b0 <achtdc+0x3b0>
cmp    %r8,%rdx
je     16af <achtdc+0x5af>
jmp    114f <achtdc+0x4f>
add    $0x1,%rdx
movabs $0x1fffffffc,%r8
or     $0x2,%r8
and    %rdx,%r8
movapd %xmm1,%xmm2
unpcklpd %xmm1,%xmm2
movapd %xmm0,%xmm3
unpcklpd %xmm0,%xmm3
lea    -0x2(%r8),%rcx
mov    %rcx,%r11
shr    %r11
add    $0x1,%r11
test   %rcx,%rcx
je     15f2 <achtdc+0x4f2>
mov    %r11,%rbx
and    $0xfffffffffffffffe,%rbx
mov    $0xfffffffffffffffe,%rcx
nopl   0x0(%rax,%rax,1)
movzwl (%rax,%rcx,1),%ebp
movd   %ebp,%xmm4
punpcklbw %xmm4,%xmm4
pshuflw $0x24,%xmm4,%xmm4
psrad  $0x18,%xmm4
cvtdq2pd %xmm4,%xmm4
subpd  %xmm2,%xmm4
divpd  %xmm3,%xmm4
shufpd $0x1,%xmm4,%xmm4
movupd %xmm4,(%r10,%rcx,8)
movzwl -0x2(%rax,%rcx,1),%ebp
movd   %ebp,%xmm4
punpcklbw %xmm4,%xmm4
pshuflw $0x24,%xmm4,%xmm4
psrad  $0x18,%xmm4
cvtdq2pd %xmm4,%xmm4
subpd  %xmm2,%xmm4
divpd  %xmm3,%xmm4
shufpd $0x1,%xmm4,%xmm4
movupd %xmm4,-0x10(%r10,%rcx,8)
add    $0xfffffffffffffffc,%rcx
add    $0xfffffffffffffffe,%rbx
jne    1570 <achtdc+0x470>
add    $0x1,%rcx
jmp    15f9 <achtdc+0x4f9>
mov    $0xffffffffffffffff,%rcx
test   $0x1,%r9b
jne    129e <achtdc+0x19e>
jmp    12ed <achtdc+0x1ed>
mov    $0xffffffffffffffff,%rcx
test   $0x1,%r11b
je     1630 <achtdc+0x530>
add    %r9,%rcx
movzwl -0x1(%rsi,%rcx,1),%eax
movd   %eax,%xmm4
punpcklbw %xmm4,%xmm4
pshuflw $0x24,%xmm4,%xmm4
psrad  $0x18,%xmm4
cvtdq2pd %xmm4,%xmm4
subpd  %xmm2,%xmm4
divpd  %xmm3,%xmm4
shufpd $0x1,%xmm4,%xmm4
movupd %xmm4,-0x8(%rdi,%rcx,8)
cmp    %r8,%rdx
je     16af <achtdc+0x5af>
sub    %r8,%r9
test   $0x1,%r9b
je     1380 <achtdc+0x280>
movsbl -0x1(%rsi,%r9,1),%eax
xorps  %xmm2,%xmm2
cvtsi2sd %eax,%xmm2
lea    -0x1(%r9),%rax
subsd  %xmm1,%xmm2
divsd  %xmm0,%xmm2
movsd  %xmm2,-0x8(%rdi,%r9,8)
cmp    $0x1,%r9d
je     16af <achtdc+0x5af>
nopl   0x0(%rax,%rax,1)
movsbl -0x1(%rsi,%rax,1),%ecx
xorps  %xmm2,%xmm2
cvtsi2sd %ecx,%xmm2
subsd  %xmm1,%xmm2
divsd  %xmm0,%xmm2
movsd  %xmm2,-0x8(%rdi,%rax,8)
movsbl -0x2(%rsi,%rax,1),%ecx
xorps  %xmm2,%xmm2
cvtsi2sd %ecx,%xmm2
subsd  %xmm1,%xmm2
divsd  %xmm0,%xmm2
movsd  %xmm2,-0x10(%rdi,%rax,8)
lea    -0x2(%rax),%rcx
mov    %rcx,%rax
test   %ecx,%ecx
jne    1670 <achtdc+0x570>
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define void @achtdc(double* %0, i8* %1, i32 %2, i32 %3, i32 %4, double %5, double %6) {
%8 = alloca double*
%9 = alloca i8*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca double
%14 = alloca double
store double* %0, double** %8
store i8* %1, i8** %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i32 %4, i32* %12
store double %5, double* %13
store double %6, double* %14
%15 = load i32, i32* %12
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %64
17: ; preds = %7
%18 = load i32, i32* %11
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %41
20: ; preds = %17
br label %21
21: ; preds = %25, %20
%22 = load i32, i32* %10
%23 = add nsw i32 %22, -1
store i32 %23, i32* %10
%24 = icmp ne i32 %22, 0
br i1 %24, label %25, label %40
25: ; preds = %21
%26 = load i8*, i8** %9
%27 = load i32, i32* %10
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, i8* %26, i64 %28
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = sitofp i32 %31 to double
%33 = load double, double* %13
%34 = load double, double* %14
%35 = call double @llvm.fmuladd.f64(double %32, double %33, double %34)
%36 = load double*, double** %8
%37 = load i32, i32* %10
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, double* %36, i64 %38
store double %35, double* %39
br label %21
40: ; preds = %21
br label %63
41: ; preds = %17
br label %42
42: ; preds = %46, %41
%43 = load i32, i32* %10
%44 = add nsw i32 %43, -1
store i32 %44, i32* %10
%45 = icmp ne i32 %43, 0
br i1 %45, label %46, label %62
46: ; preds = %42
%47 = load i8*, i8** %9
%48 = load i32, i32* %10
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, i8* %47, i64 %49
%51 = load i8, i8* %50
%52 = sext i8 %51 to i32
%53 = sitofp i32 %52 to double
%54 = load double, double* %14
%55 = fsub double %53, %54
%56 = load double, double* %13
%57 = fdiv double %55, %56
%58 = load double*, double** %8
%59 = load i32, i32* %10
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds double, double* %58, i64 %60
store double %57, double* %61
br label %42
62: ; preds = %42
br label %63
63: ; preds = %62, %40
br label %81
64: ; preds = %7
br label %65
65: ; preds = %69, %64
%66 = load i32, i32* %10
%67 = add nsw i32 %66, -1
store i32 %67, i32* %10
%68 = icmp ne i32 %66, 0
br i1 %68, label %69, label %80
69: ; preds = %65
%70 = load i8*, i8** %9
%71 = load i32, i32* %10
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, i8* %70, i64 %72
%74 = load i8, i8* %73
%75 = sitofp i8 %74 to double
%76 = load double*, double** %8
%77 = load i32, i32* %10
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds double, double* %76, i64 %78
store double %75, double* %79
br label %65
80: ; preds = %65
br label %81
81: ; preds = %80, %63
ret void
}

LLVM IR (-O2):
define void @achtdc(double* nocapture writeonly %0, i8* nocapture %1, i32 %2, i32 %3, i32 %4, double %5, double %6) {
%8 = icmp eq i32 %4, 0
br i1 %8, label %9, label %139
9: ; preds = %7
%10 = icmp eq i32 %2, 0
br i1 %10, label %383, label %11
11: ; preds = %9
%12 = sext i32 %2 to i64
%13 = add i32 %2, -1
%14 = zext i32 %13 to i64
%15 = add nuw nsw i64 %14, 1
%16 = icmp ult i32 %13, 3
br i1 %16, label %120, label %17
17: ; preds = %11
%18 = add i32 %2, -1
%19 = zext i32 %18 to i64
%20 = xor i64 %19, -1
%21 = add nsw i64 %20, %12
%22 = getelementptr double, double* %0, i64 %21
%23 = bitcast double* %22 to i8*
%24 = getelementptr double, double* %0, i64 %12
%25 = bitcast double* %24 to i8*
%26 = getelementptr i8, i8* %1, i64 %21
%27 = getelementptr i8, i8* %1, i64 %12
%28 = icmp ugt i8* %27, %23
%29 = icmp ult i8* %26, %25
%30 = and i1 %28, %29
br i1 %30, label %120, label %31
31: ; preds = %17
%32 = and i64 %15, 8589934588
%33 = sub nsw i64 %12, %32
%34 = add nsw i64 %32, -4
%35 = lshr exact i64 %34, 2
%36 = add nuw nsw i64 %35, 1
%37 = and i64 %36, 1
%38 = icmp eq i64 %34, 0
br i1 %38, label %93, label %39
39: ; preds = %31
%40 = and i64 %36, 9223372036854775806
br label %41
41: ; preds = %41, %39
%42 = phi i64 [ 0, %39 ], [ %88, %41 ]
%43 = phi i64 [ 0, %39 ], [ %89, %41 ]
%44 = xor i64 %42, -1
%45 = add i64 %44, %12
%46 = getelementptr inbounds i8, i8* %1, i64 %45
%47 = getelementptr inbounds i8, i8* %46, i64 -1
%48 = bitcast i8* %47 to <2 x i8>*
%49 = load <2 x i8>, <2 x i8>* %48
%50 = shufflevector <2 x i8> %49, <2 x i8> poison, <2 x i32> <i32 1, i32 0>
%51 = getelementptr inbounds i8, i8* %46, i64 -2
%52 = getelementptr inbounds i8, i8* %51, i64 -1
%53 = bitcast i8* %52 to <2 x i8>*
%54 = load <2 x i8>, <2 x i8>* %53
%55 = shufflevector <2 x i8> %54, <2 x i8> poison, <2 x i32> <i32 1, i32 0>
%56 = sitofp <2 x i8> %50 to <2 x double>
%57 = sitofp <2 x i8> %55 to <2 x double>
%58 = getelementptr inbounds double, double* %0, i64 %45
%59 = shufflevector <2 x double> %56, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%60 = getelementptr inbounds double, double* %58, i64 -1
%61 = bitcast double* %60 to <2 x double>*
store <2 x double> %59, <2 x double>* %61
%62 = shufflevector <2 x double> %57, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%63 = getelementptr inbounds double, double* %58, i64 -2
%64 = getelementptr inbounds double, double* %63, i64 -1
%65 = bitcast double* %64 to <2 x double>*
store <2 x double> %62, <2 x double>* %65
%66 = sub nuw nsw i64 -5, %42
%67 = add i64 %66, %12
%68 = getelementptr inbounds i8, i8* %1, i64 %67
%69 = getelementptr inbounds i8, i8* %68, i64 -1
%70 = bitcast i8* %69 to <2 x i8>*
%71 = load <2 x i8>, <2 x i8>* %70
%72 = shufflevector <2 x i8> %71, <2 x i8> poison, <2 x i32> <i32 1, i32 0>
%73 = getelementptr inbounds i8, i8* %68, i64 -2
%74 = getelementptr inbounds i8, i8* %73, i64 -1
%75 = bitcast i8* %74 to <2 x i8>*
%76 = load <2 x i8>, <2 x i8>* %75
%77 = shufflevector <2 x i8> %76, <2 x i8> poison, <2 x i32> <i32 1, i32 0>
%78 = sitofp <2 x i8> %72 to <2 x double>
%79 = sitofp <2 x i8> %77 to <2 x double>
%80 = getelementptr inbounds double, double* %0, i64 %67
%81 = shufflevector <2 x double> %78, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%82 = getelementptr inbounds double, double* %80, i64 -1
%83 = bitcast double* %82 to <2 x double>*
store <2 x double> %81, <2 x double>* %83
%84 = shufflevector <2 x double> %79, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%85 = getelementptr inbounds double, double* %80, i64 -2
%86 = getelementptr inbounds double, double* %85, i64 -1
%87 = bitcast double* %86 to <2 x double>*
store <2 x double> %84, <2 x double>* %87
%88 = add nuw i64 %42, 8
%89 = add i64 %43, 2
%90 = icmp eq i64 %89, %40
br i1 %90, label %91, label %41
91: ; preds = %41
%92 = sub i64 -9, %42
br label %93
93: ; preds = %91, %31
%94 = phi i64 [ -1, %31 ], [ %92, %91 ]
%95 = icmp eq i64 %37, 0
br i1 %95, label %118, label %96
96: ; preds = %93
%97 = add i64 %94, %12
%98 = getelementptr inbounds i8, i8* %1, i64 %97
%99 = getelementptr inbounds i8, i8* %98, i64 -1
%100 = bitcast i8* %99 to <2 x i8>*
%101 = load <2 x i8>, <2 x i8>* %100
%102 = shufflevector <2 x i8> %101, <2 x i8> poison, <2 x i32> <i32 1, i32 0>
%103 = getelementptr inbounds i8, i8* %98, i64 -2
%104 = getelementptr inbounds i8, i8* %103, i64 -1
%105 = bitcast i8* %104 to <2 x i8>*
%106 = load <2 x i8>, <2 x i8>* %105
%107 = shufflevector <2 x i8> %106, <2 x i8> poison, <2 x i32> <i32 1, i32 0>
%108 = sitofp <2 x i8> %102 to <2 x double>
%109 = sitofp <2 x i8> %107 to <2 x double>
%110 = getelementptr inbounds double, double* %0, i64 %97
%111 = shufflevector <2 x double> %108, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%112 = getelementptr inbounds double, double* %110, i64 -1
%113 = bitcast double* %112 to <2 x double>*
store <2 x double> %111, <2 x double>* %113
%114 = shufflevector <2 x double> %109, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%115 = getelementptr inbounds double, double* %110, i64 -2
%116 = getelementptr inbounds double, double* %115, i64 -1
%117 = bitcast double* %116 to <2 x double>*
store <2 x double> %114, <2 x double>* %117
br label %118
118: ; preds = %93, %96
%119 = icmp eq i64 %15, %32
br i1 %119, label %383, label %120
120: ; preds = %17, %11, %118
%121 = phi i64 [ %12, %17 ], [ %12, %11 ], [ %33, %118 ]
%122 = trunc i64 %121 to i32
%123 = add i32 %122, -1
%124 = and i32 %122, 3
%125 = icmp eq i32 %124, 0
br i1 %125, label %136, label %126
126: ; preds = %120, %126
%127 = phi i64 [ %129, %126 ], [ %121, %120 ]
%128 = phi i32 [ %134, %126 ], [ 0, %120 ]
%129 = add nsw i64 %127, -1
%130 = getelementptr inbounds i8, i8* %1, i64 %129
%131 = load i8, i8* %130
%132 = sitofp i8 %131 to double
%133 = getelementptr inbounds double, double* %0, i64 %129
store double %132, double* %133
%134 = add i32 %128, 1
%135 = icmp eq i32 %134, %124
br i1 %135, label %136, label %126
136: ; preds = %126, %120
%137 = phi i64 [ %121, %120 ], [ %129, %126 ]
%138 = icmp ult i32 %123, 3
br i1 %138, label %383, label %359
139: ; preds = %7
%140 = icmp eq i32 %3, 0
%141 = icmp eq i32 %2, 0
br i1 %140, label %219, label %142
142: ; preds = %139
br i1 %141, label %383, label %143
143: ; preds = %142
%144 = sext i32 %2 to i64
%145 = add i32 %2, -1
%146 = zext i32 %145 to i64
%147 = add nuw nsw i64 %146, 1
%148 = icmp ult i32 %145, 3
br i1 %148, label %204, label %149
149: ; preds = %143
%150 = add i32 %2, -1
%151 = zext i32 %150 to i64
%152 = xor i64 %151, -1
%153 = add nsw i64 %152, %144
%154 = getelementptr double, double* %0, i64 %153
%155 = bitcast double* %154 to i8*
%156 = getelementptr double, double* %0, i64 %144
%157 = bitcast double* %156 to i8*
%158 = getelementptr i8, i8* %1, i64 %153
%159 = getelementptr i8, i8* %1, i64 %144
%160 = icmp ugt i8* %159, %155
%161 = icmp ult i8* %158, %157
%162 = and i1 %160, %161
br i1 %162, label %204, label %163
163: ; preds = %149
%164 = and i64 %147, 8589934588
%165 = sub nsw i64 %144, %164
%166 = insertelement <2 x double> poison, double %5, i64 0
%167 = shufflevector <2 x double> %166, <2 x double> poison, <2 x i32> zeroinitializer
%168 = insertelement <2 x double> poison, double %6, i64 0
%169 = shufflevector <2 x double> %168, <2 x double> poison, <2 x i32> zeroinitializer
%170 = insertelement <2 x double> poison, double %5, i64 0
%171 = shufflevector <2 x double> %170, <2 x double> poison, <2 x i32> zeroinitializer
%172 = insertelement <2 x double> poison, double %6, i64 0
%173 = shufflevector <2 x double> %172, <2 x double> poison, <2 x i32> zeroinitializer
br label %174
174: ; preds = %174, %163
%175 = phi i64 [ 0, %163 ], [ %200, %174 ]
%176 = xor i64 %175, -1
%177 = add i64 %176, %144
%178 = getelementptr inbounds i8, i8* %1, i64 %177
%179 = getelementptr inbounds i8, i8* %178, i64 -1
%180 = bitcast i8* %179 to <2 x i8>*
%181 = load <2 x i8>, <2 x i8>* %180
%182 = shufflevector <2 x i8> %181, <2 x i8> poison, <2 x i32> <i32 1, i32 0>
%183 = getelementptr inbounds i8, i8* %178, i64 -2
%184 = getelementptr inbounds i8, i8* %183, i64 -1
%185 = bitcast i8* %184 to <2 x i8>*
%186 = load <2 x i8>, <2 x i8>* %185
%187 = shufflevector <2 x i8> %186, <2 x i8> poison, <2 x i32> <i32 1, i32 0>
%188 = sitofp <2 x i8> %182 to <2 x double>
%189 = sitofp <2 x i8> %187 to <2 x double>
%190 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %188, <2 x double> %167, <2 x double> %169)
%191 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %189, <2 x double> %171, <2 x double> %173)
%192 = getelementptr inbounds double, double* %0, i64 %177
%193 = shufflevector <2 x double> %190, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%194 = getelementptr inbounds double, double* %192, i64 -1
%195 = bitcast double* %194 to <2 x double>*
store <2 x double> %193, <2 x double>* %195
%196 = shufflevector <2 x double> %191, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%197 = getelementptr inbounds double, double* %192, i64 -2
%198 = getelementptr inbounds double, double* %197, i64 -1
%199 = bitcast double* %198 to <2 x double>*
store <2 x double> %196, <2 x double>* %199
%200 = add nuw i64 %175, 4
%201 = icmp eq i64 %200, %164
br i1 %201, label %202, label %174
202: ; preds = %174
%203 = icmp eq i64 %147, %164
br i1 %203, label %383, label %204
204: ; preds = %149, %143, %202
%205 = phi i64 [ %144, %149 ], [ %144, %143 ], [ %165, %202 ]
%206 = trunc i64 %205 to i32
%207 = and i32 %206, 1
%208 = icmp eq i32 %207, 0
br i1 %208, label %216, label %209
209: ; preds = %204
%210 = add nsw i64 %205, -1
%211 = getelementptr inbounds i8, i8* %1, i64 %210
%212 = load i8, i8* %211
%213 = sitofp i8 %212 to double
%214 = tail call double @llvm.fmuladd.f64(double %213, double %5, double %6)
%215 = getelementptr inbounds double, double* %0, i64 %210
store double %214, double* %215
br label %216
216: ; preds = %209, %204
%217 = phi i64 [ %205, %204 ], [ %210, %209 ]
%218 = icmp eq i32 %206, 1
br i1 %218, label %383, label %325
219: ; preds = %139
br i1 %141, label %383, label %220
220: ; preds = %219
%221 = sext i32 %2 to i64
%222 = add i32 %2, -1
%223 = zext i32 %222 to i64
%224 = add nuw nsw i64 %223, 1
%225 = icmp eq i32 %222, 0
br i1 %225, label %309, label %226
226: ; preds = %220
%227 = add i32 %2, -1
%228 = zext i32 %227 to i64
%229 = xor i64 %228, -1
%230 = add nsw i64 %229, %221
%231 = getelementptr double, double* %0, i64 %230
%232 = bitcast double* %231 to i8*
%233 = getelementptr double, double* %0, i64 %221
%234 = bitcast double* %233 to i8*
%235 = getelementptr i8, i8* %1, i64 %230
%236 = getelementptr i8, i8* %1, i64 %221
%237 = icmp ugt i8* %236, %232
%238 = icmp ult i8* %235, %234
%239 = and i1 %237, %238
br i1 %239, label %309, label %240
240: ; preds = %226
%241 = and i64 %224, 8589934590
%242 = sub nsw i64 %221, %241
%243 = insertelement <2 x double> poison, double %6, i64 0
%244 = shufflevector <2 x double> %243, <2 x double> poison, <2 x i32> zeroinitializer
%245 = insertelement <2 x double> poison, double %5, i64 0
%246 = shufflevector <2 x double> %245, <2 x double> poison, <2 x i32> zeroinitializer
%247 = add nsw i64 %241, -2
%248 = lshr exact i64 %247, 1
%249 = add nuw i64 %248, 1
%250 = and i64 %249, 1
%251 = icmp eq i64 %247, 0
br i1 %251, label %290, label %252
252: ; preds = %240
%253 = and i64 %249, -2
%254 = getelementptr inbounds i8, i8* %1, i64 -1
%255 = getelementptr inbounds double, double* %0, i64 -1
%256 = getelementptr inbounds i8, i8* %1, i64 -1
%257 = getelementptr inbounds double, double* %0, i64 -1
br label %258
258: ; preds = %258, %252
%259 = phi i64 [ 0, %252 ], [ %285, %258 ]
%260 = phi i64 [ 0, %252 ], [ %286, %258 ]
%261 = xor i64 %259, -1
%262 = add i64 %261, %221
%263 = getelementptr inbounds i8, i8* %254, i64 %262
%264 = bitcast i8* %263 to <2 x i8>*
%265 = load <2 x i8>, <2 x i8>* %264
%266 = shufflevector <2 x i8> %265, <2 x i8> poison, <2 x i32> <i32 1, i32 0>
%267 = sitofp <2 x i8> %266 to <2 x double>
%268 = fsub <2 x double> %267, %244
%269 = fdiv <2 x double> %268, %246
%270 = shufflevector <2 x double> %269, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%271 = getelementptr inbounds double, double* %255, i64 %262
%272 = bitcast double* %271 to <2 x double>*
store <2 x double> %270, <2 x double>* %272
%273 = sub nuw nsw i64 -3, %259
%274 = add i64 %273, %221
%275 = getelementptr inbounds i8, i8* %256, i64 %274
%276 = bitcast i8* %275 to <2 x i8>*
%277 = load <2 x i8>, <2 x i8>* %276
%278 = shufflevector <2 x i8> %277, <2 x i8> poison, <2 x i32> <i32 1, i32 0>
%279 = sitofp <2 x i8> %278 to <2 x double>
%280 = fsub <2 x double> %279, %244
%281 = fdiv <2 x double> %280, %246
%282 = shufflevector <2 x double> %281, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%283 = getelementptr inbounds double, double* %257, i64 %274
%284 = bitcast double* %283 to <2 x double>*
store <2 x double> %282, <2 x double>* %284
%285 = add nuw i64 %259, 4
%286 = add nuw i64 %260, 2
%287 = icmp eq i64 %286, %253
br i1 %287, label %288, label %258
288: ; preds = %258
%289 = sub i64 -5, %259
br label %290
290: ; preds = %288, %240
%291 = phi i64 [ -1, %240 ], [ %289, %288 ]
%292 = icmp eq i64 %250, 0
br i1 %292, label %307, label %293
293: ; preds = %290
%294 = add i64 %291, %221
%295 = getelementptr inbounds i8, i8* %1, i64 -1
%296 = getelementptr inbounds i8, i8* %295, i64 %294
%297 = bitcast i8* %296 to <2 x i8>*
%298 = load <2 x i8>, <2 x i8>* %297
%299 = shufflevector <2 x i8> %298, <2 x i8> poison, <2 x i32> <i32 1, i32 0>
%300 = sitofp <2 x i8> %299 to <2 x double>
%301 = fsub <2 x double> %300, %244
%302 = fdiv <2 x double> %301, %246
%303 = getelementptr inbounds double, double* %0, i64 -1
%304 = shufflevector <2 x double> %302, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%305 = getelementptr inbounds double, double* %303, i64 %294
%306 = bitcast double* %305 to <2 x double>*
store <2 x double> %304, <2 x double>* %306
br label %307
307: ; preds = %290, %293
%308 = icmp eq i64 %224, %241
br i1 %308, label %383, label %309
309: ; preds = %226, %220, %307
%310 = phi i64 [ %221, %226 ], [ %221, %220 ], [ %242, %307 ]
%311 = trunc i64 %310 to i32
%312 = and i32 %311, 1
%313 = icmp eq i32 %312, 0
br i1 %313, label %322, label %314
314: ; preds = %309
%315 = add nsw i64 %310, -1
%316 = getelementptr inbounds i8, i8* %1, i64 %315
%317 = load i8, i8* %316
%318 = sitofp i8 %317 to double
%319 = fsub double %318, %6
%320 = fdiv double %319, %5
%321 = getelementptr inbounds double, double* %0, i64 %315
store double %320, double* %321
br label %322
322: ; preds = %314, %309
%323 = phi i64 [ %310, %309 ], [ %315, %314 ]
%324 = icmp eq i32 %311, 1
br i1 %324, label %383, label %341
325: ; preds = %216, %325
%326 = phi i64 [ %333, %325 ], [ %217, %216 ]
%327 = add nsw i64 %326, -1
%328 = getelementptr inbounds i8, i8* %1, i64 %327
%329 = load i8, i8* %328
%330 = sitofp i8 %329 to double
%331 = tail call double @llvm.fmuladd.f64(double %330, double %5, double %6)
%332 = getelementptr inbounds double, double* %0, i64 %327
store double %331, double* %332
%333 = add nsw i64 %326, -2
%334 = getelementptr inbounds i8, i8* %1, i64 %333
%335 = load i8, i8* %334
%336 = sitofp i8 %335 to double
%337 = tail call double @llvm.fmuladd.f64(double %336, double %5, double %6)
%338 = getelementptr inbounds double, double* %0, i64 %333
store double %337, double* %338
%339 = trunc i64 %333 to i32
%340 = icmp eq i32 %339, 0
br i1 %340, label %383, label %325
341: ; preds = %322, %341
%342 = phi i64 [ %350, %341 ], [ %323, %322 ]
%343 = add nsw i64 %342, -1
%344 = getelementptr inbounds i8, i8* %1, i64 %343
%345 = load i8, i8* %344
%346 = sitofp i8 %345 to double
%347 = fsub double %346, %6
%348 = fdiv double %347, %5
%349 = getelementptr inbounds double, double* %0, i64 %343
store double %348, double* %349
%350 = add nsw i64 %342, -2
%351 = getelementptr inbounds i8, i8* %1, i64 %350
%352 = load i8, i8* %351
%353 = sitofp i8 %352 to double
%354 = fsub double %353, %6
%355 = fdiv double %354, %5
%356 = getelementptr inbounds double, double* %0, i64 %350
store double %355, double* %356
%357 = trunc i64 %350 to i32
%358 = icmp eq i32 %357, 0
br i1 %358, label %383, label %341
359: ; preds = %136, %359
%360 = phi i64 [ %376, %359 ], [ %137, %136 ]
%361 = add nsw i64 %360, -1
%362 = getelementptr inbounds i8, i8* %1, i64 %361
%363 = load i8, i8* %362
%364 = sitofp i8 %363 to double
%365 = getelementptr inbounds double, double* %0, i64 %361
store double %364, double* %365
%366 = add nsw i64 %360, -2
%367 = getelementptr inbounds i8, i8* %1, i64 %366
%368 = load i8, i8* %367
%369 = sitofp i8 %368 to double
%370 = getelementptr inbounds double, double* %0, i64 %366
store double %369, double* %370
%371 = add nsw i64 %360, -3
%372 = getelementptr inbounds i8, i8* %1, i64 %371
%373 = load i8, i8* %372
%374 = sitofp i8 %373 to double
%375 = getelementptr inbounds double, double* %0, i64 %371
store double %374, double* %375
%376 = add nsw i64 %360, -4
%377 = getelementptr inbounds i8, i8* %1, i64 %376
%378 = load i8, i8* %377
%379 = sitofp i8 %378 to double
%380 = getelementptr inbounds double, double* %0, i64 %376
store double %379, double* %380
%381 = trunc i64 %376 to i32
%382 = icmp eq i32 %381, 0
br i1 %382, label %383, label %359
383: ; preds = %216, %325, %322, %341, %136, %359, %202, %307, %118, %142, %219, %9
ret void
}