void rdft2dsort(int n1, int n2, int isgn, double **a) {
  int n1h, i;
  double x, y;
  n1h = n1 >> 1;
  if (isgn < 0) {
    for (i = n1h + 1; i < n1; i++) {
      a[i][0] = a[i][n2 + 1];
      a[i][1] = a[i][n2];
    }
    a[0][1] = a[0][n2];
    a[n1h][1] = a[n1h][n2];
  } else {
    for (i = n1h + 1; i < n1; i++) {
      y = a[i][0];
      x = a[i][1];
      a[i][n2] = x;
      a[i][n2 + 1] = y;
      a[n1 - i][n2] = x;
      a[n1 - i][n2 + 1] = -y;
      a[i][0] = a[n1 - i][0];
      a[i][1] = -a[n1 - i][1];
    }
    a[0][n2] = a[0][1];
    a[0][n2 + 1] = 0;
    a[0][1] = 0;
    a[n1h][n2] = a[n1h][1];
    a[n1h][n2 + 1] = 0;
    a[n1h][1] = 0;
  }
}


x86 assembly (clang, -O0):
<rdft2dsort>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0xc(%rbp)
jge    11de <rdft2dsort+0xde>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1197 <rdft2dsort+0x97>
mov    -0x18(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x8(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    112d <rdft2dsort+0x2d>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movslq -0x8(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x8(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  %xmm0,0x8(%rax)
jmp    13bc <rdft2dsort+0x2bc>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1322 <rdft2dsort+0x222>
mov    -0x18(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x8(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x30(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x28(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    -0x20(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x8(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x18(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    -0x20(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    -0x20(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    -0x20(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movsd  0x8(%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11e7 <rdft2dsort+0xe7>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movsd  0x8(%rax),%xmm0
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movslq -0x8(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  0x8(%rax),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x8(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<rdft2dsort>:
mov    %edi,%eax
sar    %eax
lea    0x1(%rax),%r9d
test   %edx,%edx
js     11c6 <rdft2dsort+0xc6>
lea    0x1(%rsi),%r8d
movslq %esi,%r10
movslq %r8d,%r11
movslq %eax,%r8
cmp    %edi,%r9d
jge    1188 <rdft2dsort+0x88>
movslq %edi,%r9
lea    (%rcx,%r8,8),%rdi
add    $0x8,%rdi
mov    %r8,%rax
not    %rax
add    %r9,%rax
movaps 0xec3(%rip),%xmm0
nopl   (%rax)
mov    (%rdi),%rdx
movsd  (%rdx),%xmm1
movsd  0x8(%rdx),%xmm2
movsd  %xmm2,(%rdx,%r10,8)
movsd  %xmm1,(%rdx,%r11,8)
mov    (%rcx,%rax,8),%rsi
movsd  %xmm2,(%rsi,%r10,8)
xorps  %xmm0,%xmm1
movlps %xmm1,(%rsi,%r11,8)
movsd  (%rsi),%xmm1
movsd  %xmm1,(%rdx)
movsd  0x8(%rsi),%xmm1
xorps  %xmm0,%xmm1
movlps %xmm1,0x8(%rdx)
add    $0x8,%rdi
add    $0xffffffffffffffff,%rax
jne    1140 <rdft2dsort+0x40>
mov    (%rcx),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,(%rax,%r10,8)
movq   $0x0,(%rax,%r11,8)
movq   $0x0,0x8(%rax)
mov    (%rcx,%r8,8),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,(%rax,%r10,8)
movq   $0x0,(%rax,%r11,8)
movq   $0x0,0x8(%rax)
ret
cmp    %edi,%r9d
jge    129e <rdft2dsort+0x19e>
lea    0x1(%rsi),%edx
movslq %edx,%rdx
movslq %esi,%r10
movslq %eax,%r8
lea    0x1(%r8),%rsi
movslq %edi,%r9
not    %eax
add    %edi,%eax
mov    %r9,%r11
sub    %r8,%r11
add    $0xfffffffffffffffe,%r11
and    $0x3,%rax
je     1222 <rdft2dsort+0x122>
cs nopw 0x0(%rax,%rax,1)
mov    (%rcx,%rsi,8),%rdi
movsd  (%rdi,%rdx,8),%xmm0
movsd  %xmm0,(%rdi)
movsd  (%rdi,%r10,8),%xmm0
movsd  %xmm0,0x8(%rdi)
add    $0x1,%rsi
add    $0xffffffffffffffff,%rax
jne    1200 <rdft2dsort+0x100>
cmp    $0x3,%r11
jb     12a4 <rdft2dsort+0x1a4>
nopl   0x0(%rax,%rax,1)
mov    (%rcx,%rsi,8),%rax
movsd  (%rax,%rdx,8),%xmm0
movsd  %xmm0,(%rax)
movsd  (%rax,%r10,8),%xmm0
movsd  %xmm0,0x8(%rax)
mov    0x8(%rcx,%rsi,8),%rax
movsd  (%rax,%rdx,8),%xmm0
movsd  %xmm0,(%rax)
movsd  (%rax,%r10,8),%xmm0
movsd  %xmm0,0x8(%rax)
mov    0x10(%rcx,%rsi,8),%rax
movsd  (%rax,%rdx,8),%xmm0
movsd  %xmm0,(%rax)
movsd  (%rax,%r10,8),%xmm0
movsd  %xmm0,0x8(%rax)
mov    0x18(%rcx,%rsi,8),%rax
movsd  (%rax,%rdx,8),%xmm0
movsd  %xmm0,(%rax)
movsd  (%rax,%r10,8),%xmm0
movsd  %xmm0,0x8(%rax)
add    $0x4,%rsi
cmp    %rsi,%r9
jne    1230 <rdft2dsort+0x130>
jmp    12a4 <rdft2dsort+0x1a4>
movslq %esi,%r10
movslq %eax,%r8
mov    (%rcx),%rax
movsd  (%rax,%r10,8),%xmm0
movsd  %xmm0,0x8(%rax)
mov    (%rcx,%r8,8),%rax
movsd  (%rax,%r10,8),%xmm0
movsd  %xmm0,0x8(%rax)
ret

LLVM IR (-O0):
define void @rdft2dsort(i32 %0, i32 %1, i32 %2, double** %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca double**
%9 = alloca i32
%10 = alloca i32
%11 = alloca double
%12 = alloca double
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store double** %3, double*** %8
%13 = load i32, i32* %5
%14 = ashr i32 %13, 1
store i32 %14, i32* %9
%15 = load i32, i32* %7
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %86
17: ; preds = %4
%18 = load i32, i32* %9
%19 = add nsw i32 %18, 1
store i32 %19, i32* %10
br label %20
20: ; preds = %56, %17
%21 = load i32, i32* %10
%22 = load i32, i32* %5
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %59
24: ; preds = %20
%25 = load double**, double*** %8
%26 = load i32, i32* %10
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds double*, double** %25, i64 %27
%29 = load double*, double** %28
%30 = load i32, i32* %6
%31 = add nsw i32 %30, 1
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds double, double* %29, i64 %32
%34 = load double, double* %33
%35 = load double**, double*** %8
%36 = load i32, i32* %10
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds double*, double** %35, i64 %37
%39 = load double*, double** %38
%40 = getelementptr inbounds double, double* %39, i64 0
store double %34, double* %40
%41 = load double**, double*** %8
%42 = load i32, i32* %10
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds double*, double** %41, i64 %43
%45 = load double*, double** %44
%46 = load i32, i32* %6
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds double, double* %45, i64 %47
%49 = load double, double* %48
%50 = load double**, double*** %8
%51 = load i32, i32* %10
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds double*, double** %50, i64 %52
%54 = load double*, double** %53
%55 = getelementptr inbounds double, double* %54, i64 1
store double %49, double* %55
br label %56
56: ; preds = %24
%57 = load i32, i32* %10
%58 = add nsw i32 %57, 1
store i32 %58, i32* %10
br label %20
59: ; preds = %20
%60 = load double**, double*** %8
%61 = getelementptr inbounds double*, double** %60, i64 0
%62 = load double*, double** %61
%63 = load i32, i32* %6
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds double, double* %62, i64 %64
%66 = load double, double* %65
%67 = load double**, double*** %8
%68 = getelementptr inbounds double*, double** %67, i64 0
%69 = load double*, double** %68
%70 = getelementptr inbounds double, double* %69, i64 1
store double %66, double* %70
%71 = load double**, double*** %8
%72 = load i32, i32* %9
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds double*, double** %71, i64 %73
%75 = load double*, double** %74
%76 = load i32, i32* %6
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds double, double* %75, i64 %77
%79 = load double, double* %78
%80 = load double**, double*** %8
%81 = load i32, i32* %9
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds double*, double** %80, i64 %82
%84 = load double*, double** %83
%85 = getelementptr inbounds double, double* %84, i64 1
store double %79, double* %85
br label %238
86: ; preds = %4
%87 = load i32, i32* %9
%88 = add nsw i32 %87, 1
store i32 %88, i32* %10
br label %89
89: ; preds = %182, %86
%90 = load i32, i32* %10
%91 = load i32, i32* %5
%92 = icmp slt i32 %90, %91
br i1 %92, label %93, label %185
93: ; preds = %89
%94 = load double**, double*** %8
%95 = load i32, i32* %10
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds double*, double** %94, i64 %96
%98 = load double*, double** %97
%99 = getelementptr inbounds double, double* %98, i64 0
%100 = load double, double* %99
store double %100, double* %12
%101 = load double**, double*** %8
%102 = load i32, i32* %10
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds double*, double** %101, i64 %103
%105 = load double*, double** %104
%106 = getelementptr inbounds double, double* %105, i64 1
%107 = load double, double* %106
store double %107, double* %11
%108 = load double, double* %11
%109 = load double**, double*** %8
%110 = load i32, i32* %10
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds double*, double** %109, i64 %111
%113 = load double*, double** %112
%114 = load i32, i32* %6
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds double, double* %113, i64 %115
store double %108, double* %116
%117 = load double, double* %12
%118 = load double**, double*** %8
%119 = load i32, i32* %10
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds double*, double** %118, i64 %120
%122 = load double*, double** %121
%123 = load i32, i32* %6
%124 = add nsw i32 %123, 1
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds double, double* %122, i64 %125
store double %117, double* %126
%127 = load double, double* %11
%128 = load double**, double*** %8
%129 = load i32, i32* %5
%130 = load i32, i32* %10
%131 = sub nsw i32 %129, %130
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds double*, double** %128, i64 %132
%134 = load double*, double** %133
%135 = load i32, i32* %6
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds double, double* %134, i64 %136
store double %127, double* %137
%138 = load double, double* %12
%139 = fneg double %138
%140 = load double**, double*** %8
%141 = load i32, i32* %5
%142 = load i32, i32* %10
%143 = sub nsw i32 %141, %142
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds double*, double** %140, i64 %144
%146 = load double*, double** %145
%147 = load i32, i32* %6
%148 = add nsw i32 %147, 1
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds double, double* %146, i64 %149
store double %139, double* %150
%151 = load double**, double*** %8
%152 = load i32, i32* %5
%153 = load i32, i32* %10
%154 = sub nsw i32 %152, %153
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds double*, double** %151, i64 %155
%157 = load double*, double** %156
%158 = getelementptr inbounds double, double* %157, i64 0
%159 = load double, double* %158
%160 = load double**, double*** %8
%161 = load i32, i32* %10
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds double*, double** %160, i64 %162
%164 = load double*, double** %163
%165 = getelementptr inbounds double, double* %164, i64 0
store double %159, double* %165
%166 = load double**, double*** %8
%167 = load i32, i32* %5
%168 = load i32, i32* %10
%169 = sub nsw i32 %167, %168
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds double*, double** %166, i64 %170
%172 = load double*, double** %171
%173 = getelementptr inbounds double, double* %172, i64 1
%174 = load double, double* %173
%175 = fneg double %174
%176 = load double**, double*** %8
%177 = load i32, i32* %10
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds double*, double** %176, i64 %178
%180 = load double*, double** %179
%181 = getelementptr inbounds double, double* %180, i64 1
store double %175, double* %181
br label %182
182: ; preds = %93
%183 = load i32, i32* %10
%184 = add nsw i32 %183, 1
store i32 %184, i32* %10
br label %89
185: ; preds = %89
%186 = load double**, double*** %8
%187 = getelementptr inbounds double*, double** %186, i64 0
%188 = load double*, double** %187
%189 = getelementptr inbounds double, double* %188, i64 1
%190 = load double, double* %189
%191 = load double**, double*** %8
%192 = getelementptr inbounds double*, double** %191, i64 0
%193 = load double*, double** %192
%194 = load i32, i32* %6
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds double, double* %193, i64 %195
store double %190, double* %196
%197 = load double**, double*** %8
%198 = getelementptr inbounds double*, double** %197, i64 0
%199 = load double*, double** %198
%200 = load i32, i32* %6
%201 = add nsw i32 %200, 1
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds double, double* %199, i64 %202
store double 0.000000e+00, double* %203
%204 = load double**, double*** %8
%205 = getelementptr inbounds double*, double** %204, i64 0
%206 = load double*, double** %205
%207 = getelementptr inbounds double, double* %206, i64 1
store double 0.000000e+00, double* %207
%208 = load double**, double*** %8
%209 = load i32, i32* %9
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds double*, double** %208, i64 %210
%212 = load double*, double** %211
%213 = getelementptr inbounds double, double* %212, i64 1
%214 = load double, double* %213
%215 = load double**, double*** %8
%216 = load i32, i32* %9
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds double*, double** %215, i64 %217
%219 = load double*, double** %218
%220 = load i32, i32* %6
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds double, double* %219, i64 %221
store double %214, double* %222
%223 = load double**, double*** %8
%224 = load i32, i32* %9
%225 = sext i32 %224 to i64
%226 = getelementptr inbounds double*, double** %223, i64 %225
%227 = load double*, double** %226
%228 = load i32, i32* %6
%229 = add nsw i32 %228, 1
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds double, double* %227, i64 %230
store double 0.000000e+00, double* %231
%232 = load double**, double*** %8
%233 = load i32, i32* %9
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds double*, double** %232, i64 %234
%236 = load double*, double** %235
%237 = getelementptr inbounds double, double* %236, i64 1
store double 0.000000e+00, double* %237
br label %238
238: ; preds = %185, %59
ret void
}

LLVM IR (-O2):
define void @rdft2dsort(i32 %0, i32 %1, i32 %2, double** nocapture %3) {
%5 = ashr i32 %0, 1
%6 = icmp slt i32 %2, 0
%7 = add nsw i32 %5, 1
%8 = icmp slt i32 %7, %0
br i1 %6, label %17, label %9
9: ; preds = %4
%10 = sext i32 %1 to i64
%11 = add nsw i32 %1, 1
%12 = sext i32 %11 to i64
%13 = sext i32 %5 to i64
br i1 %8, label %14, label %118
14: ; preds = %9
%15 = add nsw i64 %13, 1
%16 = sext i32 %0 to i64
br label %97
17: ; preds = %4
br i1 %8, label %21, label %18
18: ; preds = %17
%19 = sext i32 %1 to i64
%20 = sext i32 %5 to i64
br label %85
21: ; preds = %17
%22 = add nsw i32 %1, 1
%23 = sext i32 %22 to i64
%24 = sext i32 %1 to i64
%25 = sext i32 %5 to i64
%26 = add nsw i64 %25, 1
%27 = sext i32 %0 to i64
%28 = xor i64 %25, -1
%29 = add nsw i64 %28, %27
%30 = add nsw i64 %27, -2
%31 = sub nsw i64 %30, %25
%32 = and i64 %29, 3
%33 = icmp eq i64 %32, 0
br i1 %33, label %47, label %34
34: ; preds = %21, %34
%35 = phi i64 [ %44, %34 ], [ %26, %21 ]
%36 = phi i64 [ %45, %34 ], [ 0, %21 ]
%37 = getelementptr inbounds double*, double** %3, i64 %35
%38 = load double*, double** %37
%39 = getelementptr inbounds double, double* %38, i64 %23
%40 = load double, double* %39
store double %40, double* %38
%41 = getelementptr inbounds double, double* %38, i64 %24
%42 = load double, double* %41
%43 = getelementptr inbounds double, double* %38, i64 1
store double %42, double* %43
%44 = add nsw i64 %35, 1
%45 = add i64 %36, 1
%46 = icmp eq i64 %45, %32
br i1 %46, label %47, label %34
47: ; preds = %34, %21
%48 = phi i64 [ %26, %21 ], [ %44, %34 ]
%49 = icmp ult i64 %31, 3
br i1 %49, label %85, label %50
50: ; preds = %47, %50
%51 = phi i64 [ %83, %50 ], [ %48, %47 ]
%52 = getelementptr inbounds double*, double** %3, i64 %51
%53 = load double*, double** %52
%54 = getelementptr inbounds double, double* %53, i64 %23
%55 = load double, double* %54
store double %55, double* %53
%56 = getelementptr inbounds double, double* %53, i64 %24
%57 = load double, double* %56
%58 = getelementptr inbounds double, double* %53, i64 1
store double %57, double* %58
%59 = add nsw i64 %51, 1
%60 = getelementptr inbounds double*, double** %3, i64 %59
%61 = load double*, double** %60
%62 = getelementptr inbounds double, double* %61, i64 %23
%63 = load double, double* %62
store double %63, double* %61
%64 = getelementptr inbounds double, double* %61, i64 %24
%65 = load double, double* %64
%66 = getelementptr inbounds double, double* %61, i64 1
store double %65, double* %66
%67 = add nsw i64 %51, 2
%68 = getelementptr inbounds double*, double** %3, i64 %67
%69 = load double*, double** %68
%70 = getelementptr inbounds double, double* %69, i64 %23
%71 = load double, double* %70
store double %71, double* %69
%72 = getelementptr inbounds double, double* %69, i64 %24
%73 = load double, double* %72
%74 = getelementptr inbounds double, double* %69, i64 1
store double %73, double* %74
%75 = add nsw i64 %51, 3
%76 = getelementptr inbounds double*, double** %3, i64 %75
%77 = load double*, double** %76
%78 = getelementptr inbounds double, double* %77, i64 %23
%79 = load double, double* %78
store double %79, double* %77
%80 = getelementptr inbounds double, double* %77, i64 %24
%81 = load double, double* %80
%82 = getelementptr inbounds double, double* %77, i64 1
store double %81, double* %82
%83 = add nsw i64 %51, 4
%84 = icmp eq i64 %83, %27
br i1 %84, label %85, label %50
85: ; preds = %47, %50, %18
%86 = phi i64 [ %20, %18 ], [ %25, %50 ], [ %25, %47 ]
%87 = phi i64 [ %19, %18 ], [ %24, %50 ], [ %24, %47 ]
%88 = load double*, double** %3
%89 = getelementptr inbounds double, double* %88, i64 %87
%90 = load double, double* %89
%91 = getelementptr inbounds double, double* %88, i64 1
store double %90, double* %91
%92 = getelementptr inbounds double*, double** %3, i64 %86
%93 = load double*, double** %92
%94 = getelementptr inbounds double, double* %93, i64 %87
%95 = load double, double* %94
%96 = getelementptr inbounds double, double* %93, i64 1
store double %95, double* %96
br label %130
97: ; preds = %14, %97
%98 = phi i64 [ %15, %14 ], [ %116, %97 ]
%99 = getelementptr inbounds double*, double** %3, i64 %98
%100 = load double*, double** %99
%101 = load double, double* %100
%102 = getelementptr inbounds double, double* %100, i64 1
%103 = load double, double* %102
%104 = getelementptr inbounds double, double* %100, i64 %10
store double %103, double* %104
%105 = getelementptr inbounds double, double* %100, i64 %12
store double %101, double* %105
%106 = sub nsw i64 %16, %98
%107 = getelementptr inbounds double*, double** %3, i64 %106
%108 = load double*, double** %107
%109 = getelementptr inbounds double, double* %108, i64 %10
store double %103, double* %109
%110 = fneg double %101
%111 = getelementptr inbounds double, double* %108, i64 %12
store double %110, double* %111
%112 = load double, double* %108
store double %112, double* %100
%113 = getelementptr inbounds double, double* %108, i64 1
%114 = load double, double* %113
%115 = fneg double %114
store double %115, double* %102
%116 = add nsw i64 %98, 1
%117 = icmp eq i64 %116, %16
br i1 %117, label %118, label %97
118: ; preds = %97, %9
%119 = load double*, double** %3
%120 = getelementptr inbounds double, double* %119, i64 1
%121 = load double, double* %120
%122 = getelementptr inbounds double, double* %119, i64 %10
store double %121, double* %122
%123 = getelementptr inbounds double, double* %119, i64 %12
store double 0.000000e+00, double* %123
store double 0.000000e+00, double* %120
%124 = getelementptr inbounds double*, double** %3, i64 %13
%125 = load double*, double** %124
%126 = getelementptr inbounds double, double* %125, i64 1
%127 = load double, double* %126
%128 = getelementptr inbounds double, double* %125, i64 %10
store double %127, double* %128
%129 = getelementptr inbounds double, double* %125, i64 %12
store double 0.000000e+00, double* %129
store double 0.000000e+00, double* %126
br label %130
130: ; preds = %118, %85
ret void
}