void merge_matrix_fix_3ft(int np, int nm, const double *mat_ll,
                          const double *mat_lh, const double *mat_hl,
                          const double *mat_hh, double *mat) {
  int i, j;
  int ii, jj;
  int i6, j6;
  int n6;
  int nl, nh;
  n6 = np * 6;
  nl = nm * 6;
  nh = n6 - nl;
  for (i = 0; i < nm; ++i) {
    i6 = i * 6;
    for (j = 0; j < nm; ++j) {
      j6 = j * 6;
      for (ii = 0; ii < 6; ++ii) {
        for (jj = 0; jj < 6; ++jj) {
          mat[(i6 + ii) * n6 + j6 + jj] = mat_ll[(i6 + ii) * nl + j6 + jj];
        }
      }
    }
  }
  for (i = 0; i < nm; ++i) {
    i6 = i * 6;
    for (j = nm; j < np; ++j) {
      j6 = j * 6;
      for (ii = 0; ii < 6; ++ii) {
        for (jj = 0; jj < 6; ++jj) {
          mat[(i6 + ii) * n6 + j6 + jj] =
              mat_lh[(i6 + ii) * nh + (j - nm) * 6 + jj];
        }
      }
    }
  }
  for (i = nm; i < np; ++i) {
    i6 = i * 6;
    for (j = 0; j < nm; ++j) {
      j6 = j * 6;
      for (ii = 0; ii < 6; ++ii) {
        for (jj = 0; jj < 6; ++jj) {
          mat[(i6 + ii) * n6 + j6 + jj] =
              mat_hl[((i - nm) * 6 + ii) * nl + j6 + jj];
        }
      }
    }
  }
  for (i = nm; i < np; ++i) {
    i6 = i * 6;
    for (j = nm; j < np; ++j) {
      j6 = j * 6;
      for (ii = 0; ii < 6; ++ii) {
        for (jj = 0; jj < 6; ++jj) {
          mat[(i6 + ii) * n6 + j6 + jj] =
              mat_hh[((i - nm) * 6 + ii) * nh + (j - nm) * 6 + jj];
        }
      }
    }
  }
}


x86 assembly (clang, -O0):
<merge_matrix_fix_3ft>:
push   %rbp
mov    %rsp,%rbp
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
imul   $0x6,-0x4(%rbp),%eax
mov    %eax,-0x44(%rbp)
imul   $0x6,-0x8(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x44(%rbp),%eax
sub    -0x48(%rbp),%eax
mov    %eax,-0x4c(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    120a <merge_matrix_fix_3ft+0x10a>
imul   $0x6,-0x2c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11f7 <merge_matrix_fix_3ft+0xf7>
imul   $0x6,-0x30(%rbp),%eax
mov    %eax,-0x40(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x6,-0x34(%rbp)
jge    11e4 <merge_matrix_fix_3ft+0xe4>
movl   $0x0,-0x38(%rbp)
cmpl   $0x6,-0x38(%rbp)
jge    11d1 <merge_matrix_fix_3ft+0xd1>
mov    -0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x34(%rbp),%ecx
imul   -0x48(%rbp),%ecx
add    -0x40(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x34(%rbp),%ecx
imul   -0x44(%rbp),%ecx
add    -0x40(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1181 <merge_matrix_fix_3ft+0x81>
jmp    11d6 <merge_matrix_fix_3ft+0xd6>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1170 <merge_matrix_fix_3ft+0x70>
jmp    11e9 <merge_matrix_fix_3ft+0xe9>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1156 <merge_matrix_fix_3ft+0x56>
jmp    11fc <merge_matrix_fix_3ft+0xfc>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    113c <merge_matrix_fix_3ft+0x3c>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12e6 <merge_matrix_fix_3ft+0x1e6>
imul   $0x6,-0x2c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12d3 <merge_matrix_fix_3ft+0x1d3>
imul   $0x6,-0x30(%rbp),%eax
mov    %eax,-0x40(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x6,-0x34(%rbp)
jge    12c0 <merge_matrix_fix_3ft+0x1c0>
movl   $0x0,-0x38(%rbp)
cmpl   $0x6,-0x38(%rbp)
jge    12ad <merge_matrix_fix_3ft+0x1ad>
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x34(%rbp),%ecx
imul   -0x4c(%rbp),%ecx
mov    -0x30(%rbp),%edx
sub    -0x8(%rbp),%edx
imul   $0x6,%edx,%edx
add    %edx,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x34(%rbp),%ecx
imul   -0x44(%rbp),%ecx
add    -0x40(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1255 <merge_matrix_fix_3ft+0x155>
jmp    12b2 <merge_matrix_fix_3ft+0x1b2>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1244 <merge_matrix_fix_3ft+0x144>
jmp    12c5 <merge_matrix_fix_3ft+0x1c5>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    122a <merge_matrix_fix_3ft+0x12a>
jmp    12d8 <merge_matrix_fix_3ft+0x1d8>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1211 <merge_matrix_fix_3ft+0x111>
mov    -0x8(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    13c0 <merge_matrix_fix_3ft+0x2c0>
imul   $0x6,-0x2c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13ad <merge_matrix_fix_3ft+0x2ad>
imul   $0x6,-0x30(%rbp),%eax
mov    %eax,-0x40(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x6,-0x34(%rbp)
jge    139a <merge_matrix_fix_3ft+0x29a>
movl   $0x0,-0x38(%rbp)
cmpl   $0x6,-0x38(%rbp)
jge    1387 <merge_matrix_fix_3ft+0x287>
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    -0x8(%rbp),%ecx
imul   $0x6,%ecx,%ecx
add    -0x34(%rbp),%ecx
imul   -0x48(%rbp),%ecx
add    -0x40(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x34(%rbp),%ecx
imul   -0x44(%rbp),%ecx
add    -0x40(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1331 <merge_matrix_fix_3ft+0x231>
jmp    138c <merge_matrix_fix_3ft+0x28c>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1320 <merge_matrix_fix_3ft+0x220>
jmp    139f <merge_matrix_fix_3ft+0x29f>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1306 <merge_matrix_fix_3ft+0x206>
jmp    13b2 <merge_matrix_fix_3ft+0x2b2>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    12ec <merge_matrix_fix_3ft+0x1ec>
mov    -0x8(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    14a1 <merge_matrix_fix_3ft+0x3a1>
imul   $0x6,-0x2c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    148e <merge_matrix_fix_3ft+0x38e>
imul   $0x6,-0x30(%rbp),%eax
mov    %eax,-0x40(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x6,-0x34(%rbp)
jge    147b <merge_matrix_fix_3ft+0x37b>
movl   $0x0,-0x38(%rbp)
cmpl   $0x6,-0x38(%rbp)
jge    1468 <merge_matrix_fix_3ft+0x368>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    -0x8(%rbp),%ecx
imul   $0x6,%ecx,%ecx
add    -0x34(%rbp),%ecx
imul   -0x4c(%rbp),%ecx
mov    -0x30(%rbp),%edx
sub    -0x8(%rbp),%edx
imul   $0x6,%edx,%edx
add    %edx,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x34(%rbp),%ecx
imul   -0x44(%rbp),%ecx
add    -0x40(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    140a <merge_matrix_fix_3ft+0x30a>
jmp    146d <merge_matrix_fix_3ft+0x36d>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    13f9 <merge_matrix_fix_3ft+0x2f9>
jmp    1480 <merge_matrix_fix_3ft+0x380>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    13df <merge_matrix_fix_3ft+0x2df>
jmp    1493 <merge_matrix_fix_3ft+0x393>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    13c6 <merge_matrix_fix_3ft+0x2c6>
pop    %rbp
ret

x86 assembly (clang, -O2):
<merge_matrix_fix_3ft>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %r9,-0x8(%rsp)
mov    %rcx,-0x18(%rsp)
mov    0x38(%rsp),%rax
lea    (%rdi,%rdi,1),%ecx
lea    (%rcx,%rcx,2),%r10d
lea    (%rsi,%rsi,1),%ecx
lea    (%rcx,%rcx,2),%ebx
mov    %r10d,%ecx
sub    %ebx,%ecx
mov    %ecx,-0x24(%rsp)
mov    %esi,%r14d
test   %esi,%esi
mov    %rsi,-0x10(%rsp)
mov    %rdi,-0x20(%rsp)
jle    137c <merge_matrix_fix_3ft+0x27c>
lea    0x0(,%rdi,4),%ecx
lea    (%rcx,%rcx,8),%ecx
mov    %ecx,-0x30(%rsp)
lea    0x0(,%rsi,4),%ecx
lea    (%rcx,%rcx,8),%ecx
mov    %ecx,-0x38(%rsp)
xor    %ecx,%ecx
xor    %edi,%edi
xor    %r11d,%r11d
nopw   0x0(%rax,%rax,1)
mov    %rcx,-0x40(%rsp)
mov    %ecx,%r15d
mov    %edi,%ebp
xor    %esi,%esi
nopl   0x0(%rax)
mov    $0x6,%r9d
mov    %r15d,%r12d
mov    %ebp,%r13d
nopl   0x0(%rax)
movslq %r12d,%r12
movsd  (%rdx,%r12,8),%xmm0
movslq %r13d,%r13
movsd  %xmm0,(%rax,%r13,8)
lea    0x1(%r12),%ecx
movslq %ecx,%rcx
movsd  (%rdx,%rcx,8),%xmm0
lea    0x1(%r13),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
lea    0x2(%r12),%ecx
movslq %ecx,%rcx
movsd  (%rdx,%rcx,8),%xmm0
lea    0x2(%r13),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
lea    0x3(%r12),%ecx
movslq %ecx,%rcx
movsd  (%rdx,%rcx,8),%xmm0
lea    0x3(%r13),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
lea    0x4(%r12),%ecx
movslq %ecx,%rcx
movsd  (%rdx,%rcx,8),%xmm0
lea    0x4(%r13),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
lea    0x5(%r12),%ecx
movslq %ecx,%rcx
movsd  (%rdx,%rcx,8),%xmm0
lea    0x5(%r13),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
add    %r10d,%r13d
add    %ebx,%r12d
add    $0xffffffffffffffff,%r9
jne    1190 <merge_matrix_fix_3ft+0x90>
add    $0x1,%rsi
add    $0x6,%ebp
add    $0x6,%r15d
cmp    %r14,%rsi
jne    1180 <merge_matrix_fix_3ft+0x80>
add    $0x1,%r11
add    -0x30(%rsp),%edi
mov    -0x40(%rsp),%rcx
add    -0x38(%rsp),%ecx
cmp    %r14,%r11
jne    1170 <merge_matrix_fix_3ft+0x70>
mov    -0x10(%rsp),%rsi
test   %esi,%esi
mov    -0x20(%rsp),%rdi
jle    137c <merge_matrix_fix_3ft+0x27c>
movslq -0x24(%rsp),%rdx
movslq %r10d,%rbp
movslq %edi,%r11
lea    (%r14,%r14,2),%rcx
shl    $0x4,%rcx
add    %rax,%rcx
add    $0x28,%rcx
mov    %rcx,-0x40(%rsp)
mov    %rbp,%rcx
shl    $0x4,%rcx
lea    (%rcx,%rcx,2),%rcx
mov    %rcx,-0x30(%rsp)
shl    $0x3,%rbp
addq   $0x28,-0x18(%rsp)
mov    %rdx,%rcx
shl    $0x4,%rcx
lea    (%rcx,%rcx,2),%rcx
mov    %rcx,-0x38(%rsp)
shl    $0x3,%rdx
xor    %r13d,%r13d
jmp    12fb <merge_matrix_fix_3ft+0x1fb>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%r13
mov    -0x30(%rsp),%rcx
add    %rcx,-0x40(%rsp)
mov    -0x38(%rsp),%rcx
add    %rcx,-0x18(%rsp)
cmp    %r14,%r13
mov    -0x10(%rsp),%rsi
mov    -0x20(%rsp),%rdi
je     137c <merge_matrix_fix_3ft+0x27c>
cmp    %edi,%esi
jge    12d0 <merge_matrix_fix_3ft+0x1d0>
mov    -0x18(%rsp),%r9
mov    -0x40(%rsp),%r15
mov    %r14,%rdi
nopl   0x0(%rax)
mov    $0x6,%r12d
mov    %r9,%rcx
mov    %r15,%rsi
nopl   0x0(%rax)
movsd  -0x28(%rcx),%xmm0
movsd  %xmm0,-0x28(%rsi)
movsd  -0x20(%rcx),%xmm0
movsd  %xmm0,-0x20(%rsi)
movsd  -0x18(%rcx),%xmm0
movsd  %xmm0,-0x18(%rsi)
movsd  -0x10(%rcx),%xmm0
movsd  %xmm0,-0x10(%rsi)
movsd  -0x8(%rcx),%xmm0
movsd  %xmm0,-0x8(%rsi)
movsd  (%rcx),%xmm0
movsd  %xmm0,(%rsi)
add    %rbp,%rsi
add    %rdx,%rcx
add    $0xffffffffffffffff,%r12
jne    1320 <merge_matrix_fix_3ft+0x220>
add    $0x1,%rdi
add    $0x30,%r15
add    $0x30,%r9
cmp    %r11,%rdi
jne    1310 <merge_matrix_fix_3ft+0x210>
jmp    12d0 <merge_matrix_fix_3ft+0x1d0>
cmp    %edi,%esi
jge    15bb <merge_matrix_fix_3ft+0x4bb>
movslq %esi,%rcx
movslq %edi,%r13
mov    %esi,%edx
imul   %edi,%edx
shl    $0x2,%edx
lea    (%rdx,%rdx,8),%r9d
lea    0x0(,%rdi,4),%edx
lea    (%rdx,%rdx,8),%edx
mov    %edx,-0x30(%rsp)
lea    0x0(,%rsi,4),%edx
lea    (%rdx,%rdx,8),%edx
mov    %edx,-0x38(%rsp)
xor    %r11d,%r11d
jmp    13e1 <merge_matrix_fix_3ft+0x2e1>
nopw   0x0(%rax,%rax,1)
mov    -0x40(%rsp),%rcx
add    $0x1,%rcx
add    -0x30(%rsp),%r9d
add    -0x38(%rsp),%r11d
cmp    %r13,%rcx
mov    -0x10(%rsp),%rsi
je     14cc <merge_matrix_fix_3ft+0x3cc>
mov    %rcx,-0x40(%rsp)
test   %esi,%esi
jle    13c0 <merge_matrix_fix_3ft+0x2c0>
mov    %r11d,%edi
mov    %r9d,%esi
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0x6,%edx
mov    %edi,%r15d
mov    %esi,%r12d
nopl   0x0(%rax,%rax,1)
movslq %r15d,%r15
movsd  (%r8,%r15,8),%xmm0
movslq %r12d,%r12
movsd  %xmm0,(%rax,%r12,8)
lea    0x1(%r15),%ecx
movslq %ecx,%rcx
movsd  (%r8,%rcx,8),%xmm0
lea    0x1(%r12),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
lea    0x2(%r15),%ecx
movslq %ecx,%rcx
movsd  (%r8,%rcx,8),%xmm0
lea    0x2(%r12),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
lea    0x3(%r15),%ecx
movslq %ecx,%rcx
movsd  (%r8,%rcx,8),%xmm0
lea    0x3(%r12),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
lea    0x4(%r15),%ecx
movslq %ecx,%rcx
movsd  (%r8,%rcx,8),%xmm0
lea    0x4(%r12),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
lea    0x5(%r15),%ecx
movslq %ecx,%rcx
movsd  (%r8,%rcx,8),%xmm0
lea    0x5(%r12),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
add    %r10d,%r12d
add    %ebx,%r15d
add    $0xffffffffffffffff,%rdx
jne    1410 <merge_matrix_fix_3ft+0x310>
add    $0x1,%rbp
add    $0x6,%esi
add    $0x6,%edi
cmp    %r14,%rbp
jne    1400 <merge_matrix_fix_3ft+0x300>
jmp    13c0 <merge_matrix_fix_3ft+0x2c0>
cmp    -0x20(%rsp),%esi
mov    -0x8(%rsp),%r12
jge    15bb <merge_matrix_fix_3ft+0x4bb>
movslq -0x24(%rsp),%rdx
movslq %r10d,%rdi
movslq %esi,%r8
lea    (%rdi,%rdi,2),%rcx
add    %rcx,%rcx
add    $0x6,%rcx
imul   %r8,%rcx
lea    (%rax,%rcx,8),%r11
add    $0x28,%r11
mov    %rdi,%rax
shl    $0x4,%rax
lea    (%rax,%rax,2),%r9
shl    $0x3,%rdi
add    $0x28,%r12
mov    %rdx,%rax
shl    $0x4,%rax
lea    (%rax,%rax,2),%r10
shl    $0x3,%rdx
mov    %r8,%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r12,%r15
mov    %r11,%rcx
mov    %r8,%rbx
nopl   0x0(%rax)
mov    $0x6,%esi
mov    %r15,%rbp
mov    %rcx,%rax
nopl   0x0(%rax,%rax,1)
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rax)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rax)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x18(%rax)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rax)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x8(%rax)
movsd  0x0(%rbp),%xmm0
movsd  %xmm0,(%rax)
add    %rdi,%rax
add    %rdx,%rbp
add    $0xffffffffffffffff,%rsi
jne    1550 <merge_matrix_fix_3ft+0x450>
add    $0x1,%rbx
add    $0x30,%rcx
add    $0x30,%r15
cmp    %r13,%rbx
jne    1540 <merge_matrix_fix_3ft+0x440>
add    $0x1,%r14
add    %r9,%r11
add    %r10,%r12
cmp    %r13,%r14
jne    1530 <merge_matrix_fix_3ft+0x430>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @merge_matrix_fix_3ft(i32 %0, i32 %1, double* nocapture %2, double* nocapture %3, double* nocapture %4, double* nocapture %5, double* nocapture writeonly %6) {
%8 = mul nsw i32 %0, 6
%9 = mul i32 %1, 6
%10 = sub i32 %8, %9
%11 = icmp sgt i32 %1, 0
br i1 %11, label %12, label %96
12: ; preds = %7
%13 = zext i32 %1 to i64
br label %22
14: ; preds = %93
br i1 %11, label %15, label %96
15: ; preds = %14
%16 = icmp slt i32 %1, %0
%17 = sext i32 %10 to i64
%18 = sext i32 %8 to i64
%19 = zext i32 %1 to i64
%20 = zext i32 %1 to i64
%21 = sext i32 %0 to i64
br label %102
22: ; preds = %93, %12
%23 = phi i64 [ 0, %12 ], [ %94, %93 ]
%24 = mul nuw nsw i64 %23, 6
br label %25
25: ; preds = %22, %90
%26 = phi i64 [ 0, %22 ], [ %91, %90 ]
%27 = mul nuw nsw i64 %26, 6
%28 = trunc i64 %27 to i32
%29 = trunc i64 %27 to i32
%30 = or i32 %29, 1
%31 = trunc i64 %27 to i32
%32 = add i32 %31, 2
%33 = trunc i64 %27 to i32
%34 = add i32 %33, 3
%35 = trunc i64 %27 to i32
%36 = add i32 %35, 4
%37 = trunc i64 %27 to i32
%38 = add i32 %37, 5
br label %39
39: ; preds = %25, %39
%40 = phi i64 [ 0, %25 ], [ %88, %39 ]
%41 = add nuw nsw i64 %40, %24
%42 = trunc i64 %41 to i32
%43 = mul i32 %9, %42
%44 = add i32 %43, %28
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double, double* %2, i64 %45
%47 = load double, double* %46
%48 = trunc i64 %41 to i32
%49 = mul i32 %8, %48
%50 = add i32 %49, %28
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds double, double* %6, i64 %51
store double %47, double* %52
%53 = add i32 %30, %43
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds double, double* %2, i64 %54
%56 = load double, double* %55
%57 = add i32 %30, %49
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds double, double* %6, i64 %58
store double %56, double* %59
%60 = add i32 %32, %43
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds double, double* %2, i64 %61
%63 = load double, double* %62
%64 = add i32 %32, %49
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds double, double* %6, i64 %65
store double %63, double* %66
%67 = add i32 %34, %43
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds double, double* %2, i64 %68
%70 = load double, double* %69
%71 = add i32 %34, %49
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double, double* %6, i64 %72
store double %70, double* %73
%74 = add i32 %36, %43
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, double* %2, i64 %75
%77 = load double, double* %76
%78 = add i32 %36, %49
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds double, double* %6, i64 %79
store double %77, double* %80
%81 = add i32 %38, %43
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds double, double* %2, i64 %82
%84 = load double, double* %83
%85 = add i32 %38, %49
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds double, double* %6, i64 %86
store double %84, double* %87
%88 = add nuw nsw i64 %40, 1
%89 = icmp eq i64 %88, 6
br i1 %89, label %90, label %39
90: ; preds = %39
%91 = add nuw nsw i64 %26, 1
%92 = icmp eq i64 %91, %13
br i1 %92, label %93, label %25
93: ; preds = %90
%94 = add nuw nsw i64 %23, 1
%95 = icmp eq i64 %94, %13
br i1 %95, label %14, label %22
96: ; preds = %150, %7, %14
%97 = icmp slt i32 %1, %0
br i1 %97, label %98, label %291
98: ; preds = %96
%99 = sext i32 %1 to i64
%100 = sext i32 %0 to i64
%101 = zext i32 %1 to i64
br label %159
102: ; preds = %15, %150
%103 = phi i64 [ 0, %15 ], [ %151, %150 ]
%104 = mul nuw nsw i64 %103, 6
br i1 %16, label %105, label %150
105: ; preds = %102, %147
%106 = phi i64 [ %148, %147 ], [ %19, %102 ]
%107 = mul nsw i64 %106, 6
%108 = sub nsw i64 %106, %19
%109 = mul nuw nsw i64 %108, 6
br label %110
110: ; preds = %105, %110
%111 = phi i64 [ 0, %105 ], [ %145, %110 ]
%112 = add nuw nsw i64 %111, %104
%113 = mul nsw i64 %112, %17
%114 = add nsw i64 %113, %109
%115 = mul nsw i64 %112, %18
%116 = add nsw i64 %115, %107
%117 = getelementptr inbounds double, double* %3, i64 %114
%118 = load double, double* %117
%119 = getelementptr inbounds double, double* %6, i64 %116
store double %118, double* %119
%120 = or i64 %114, 1
%121 = getelementptr inbounds double, double* %3, i64 %120
%122 = load double, double* %121
%123 = or i64 %116, 1
%124 = getelementptr inbounds double, double* %6, i64 %123
store double %122, double* %124
%125 = add nsw i64 %114, 2
%126 = getelementptr inbounds double, double* %3, i64 %125
%127 = load double, double* %126
%128 = add nsw i64 %116, 2
%129 = getelementptr inbounds double, double* %6, i64 %128
store double %127, double* %129
%130 = add nsw i64 %114, 3
%131 = getelementptr inbounds double, double* %3, i64 %130
%132 = load double, double* %131
%133 = add nsw i64 %116, 3
%134 = getelementptr inbounds double, double* %6, i64 %133
store double %132, double* %134
%135 = add nsw i64 %114, 4
%136 = getelementptr inbounds double, double* %3, i64 %135
%137 = load double, double* %136
%138 = add nsw i64 %116, 4
%139 = getelementptr inbounds double, double* %6, i64 %138
store double %137, double* %139
%140 = add nsw i64 %114, 5
%141 = getelementptr inbounds double, double* %3, i64 %140
%142 = load double, double* %141
%143 = add nsw i64 %116, 5
%144 = getelementptr inbounds double, double* %6, i64 %143
store double %142, double* %144
%145 = add nuw nsw i64 %111, 1
%146 = icmp eq i64 %145, 6
br i1 %146, label %147, label %110
147: ; preds = %110
%148 = add nuw nsw i64 %106, 1
%149 = icmp eq i64 %148, %21
br i1 %149, label %150, label %105
150: ; preds = %147, %102
%151 = add nuw nsw i64 %103, 1
%152 = icmp eq i64 %151, %20
br i1 %152, label %96, label %102
153: ; preds = %234
br i1 %97, label %154, label %291
154: ; preds = %153
%155 = sext i32 %10 to i64
%156 = sext i32 %8 to i64
%157 = sext i32 %1 to i64
%158 = sext i32 %0 to i64
br label %237
159: ; preds = %98, %234
%160 = phi i64 [ %99, %98 ], [ %235, %234 ]
%161 = mul nsw i64 %160, 6
br i1 %11, label %162, label %234
162: ; preds = %159
%163 = sub nsw i64 %160, %99
%164 = mul nuw nsw i64 %163, 6
br label %165
165: ; preds = %162, %231
%166 = phi i64 [ 0, %162 ], [ %232, %231 ]
%167 = mul nuw nsw i64 %166, 6
%168 = trunc i64 %167 to i32
%169 = trunc i64 %167 to i32
%170 = or i32 %169, 1
%171 = trunc i64 %167 to i32
%172 = add i32 %171, 2
%173 = trunc i64 %167 to i32
%174 = add i32 %173, 3
%175 = trunc i64 %167 to i32
%176 = add i32 %175, 4
%177 = trunc i64 %167 to i32
%178 = add i32 %177, 5
br label %179
179: ; preds = %165, %179
%180 = phi i64 [ 0, %165 ], [ %229, %179 ]
%181 = add nuw nsw i64 %180, %164
%182 = add nsw i64 %180, %161
%183 = trunc i64 %181 to i32
%184 = mul i32 %9, %183
%185 = add i32 %184, %168
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds double, double* %4, i64 %186
%188 = load double, double* %187
%189 = trunc i64 %182 to i32
%190 = mul i32 %8, %189
%191 = add i32 %190, %168
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds double, double* %6, i64 %192
store double %188, double* %193
%194 = add i32 %170, %184
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds double, double* %4, i64 %195
%197 = load double, double* %196
%198 = add i32 %170, %190
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds double, double* %6, i64 %199
store double %197, double* %200
%201 = add i32 %172, %184
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds double, double* %4, i64 %202
%204 = load double, double* %203
%205 = add i32 %172, %190
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds double, double* %6, i64 %206
store double %204, double* %207
%208 = add i32 %174, %184
%209 = sext i32 %208 to i64
%210 = getelementptr inbounds double, double* %4, i64 %209
%211 = load double, double* %210
%212 = add i32 %174, %190
%213 = sext i32 %212 to i64
%214 = getelementptr inbounds double, double* %6, i64 %213
store double %211, double* %214
%215 = add i32 %176, %184
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds double, double* %4, i64 %216
%218 = load double, double* %217
%219 = add i32 %176, %190
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds double, double* %6, i64 %220
store double %218, double* %221
%222 = add i32 %178, %184
%223 = sext i32 %222 to i64
%224 = getelementptr inbounds double, double* %4, i64 %223
%225 = load double, double* %224
%226 = add i32 %178, %190
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds double, double* %6, i64 %227
store double %225, double* %228
%229 = add nuw nsw i64 %180, 1
%230 = icmp eq i64 %229, 6
br i1 %230, label %231, label %179
231: ; preds = %179
%232 = add nuw nsw i64 %166, 1
%233 = icmp eq i64 %232, %101
br i1 %233, label %234, label %165
234: ; preds = %231, %159
%235 = add nsw i64 %160, 1
%236 = icmp eq i64 %235, %100
br i1 %236, label %153, label %159
237: ; preds = %288, %154
%238 = phi i64 [ %157, %154 ], [ %289, %288 ]
%239 = mul nsw i64 %238, 6
%240 = sub nsw i64 %238, %157
%241 = mul nuw nsw i64 %240, 6
br label %242
242: ; preds = %237, %285
%243 = phi i64 [ %157, %237 ], [ %286, %285 ]
%244 = mul nsw i64 %243, 6
%245 = sub nsw i64 %243, %157
%246 = mul nuw nsw i64 %245, 6
br label %247
247: ; preds = %242, %247
%248 = phi i64 [ 0, %242 ], [ %283, %247 ]
%249 = add nuw nsw i64 %248, %241
%250 = mul nsw i64 %249, %155
%251 = add nsw i64 %250, %246
%252 = add nsw i64 %248, %239
%253 = mul nsw i64 %252, %156
%254 = add nsw i64 %253, %244
%255 = getelementptr inbounds double, double* %5, i64 %251
%256 = load double, double* %255
%257 = getelementptr inbounds double, double* %6, i64 %254
store double %256, double* %257
%258 = or i64 %251, 1
%259 = getelementptr inbounds double, double* %5, i64 %258
%260 = load double, double* %259
%261 = or i64 %254, 1
%262 = getelementptr inbounds double, double* %6, i64 %261
store double %260, double* %262
%263 = add nsw i64 %251, 2
%264 = getelementptr inbounds double, double* %5, i64 %263
%265 = load double, double* %264
%266 = add nsw i64 %254, 2
%267 = getelementptr inbounds double, double* %6, i64 %266
store double %265, double* %267
%268 = add nsw i64 %251, 3
%269 = getelementptr inbounds double, double* %5, i64 %268
%270 = load double, double* %269
%271 = add nsw i64 %254, 3
%272 = getelementptr inbounds double, double* %6, i64 %271
store double %270, double* %272
%273 = add nsw i64 %251, 4
%274 = getelementptr inbounds double, double* %5, i64 %273
%275 = load double, double* %274
%276 = add nsw i64 %254, 4
%277 = getelementptr inbounds double, double* %6, i64 %276
store double %275, double* %277
%278 = add nsw i64 %251, 5
%279 = getelementptr inbounds double, double* %5, i64 %278
%280 = load double, double* %279
%281 = add nsw i64 %254, 5
%282 = getelementptr inbounds double, double* %6, i64 %281
store double %280, double* %282
%283 = add nuw nsw i64 %248, 1
%284 = icmp eq i64 %283, 6
br i1 %284, label %285, label %247
285: ; preds = %247
%286 = add nsw i64 %243, 1
%287 = icmp eq i64 %286, %158
br i1 %287, label %288, label %242
288: ; preds = %285
%289 = add nsw i64 %238, 1
%290 = icmp eq i64 %289, %158
br i1 %290, label %291, label %237
291: ; preds = %288, %96, %153
ret void
}