#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int j1;
typedef int j;
typedef int i1;
typedef int i;

/* Variables and functions */
int /*<<< orphan*/ approxit(float *, float const *, float *, int, int const,
                            float);
scalar_t__ safe_in(float const, float const);
void rcd_border_interpolate(float *out, const float *cfa, const int *cfarray,
                            const int width, const int height, int border,
                            float scaler) {
  const float revscaler = 1.0f / scaler;
  for (int i = 0; i < height; i++) {
    float sum[6];
    for (int j = 0; j < border; j++) {
      for (int x = 0; x < 6; x++) {
        sum[x] = 0.0f;
      }
      for (int i1 = i - 1; i1 < i + 2; i1++) {
        for (int j1 = j - 1; j1 < j + 2; j1++) {
          if ((i1 > -1) && (i1 < height) && (j1 > -1)) {
            const int c = (cfarray[(((i1)&1) << 1) | ((j1)&1)]);
            sum[c] += safe_in(cfa[i1 * width + j1], revscaler);
            sum[c + 3]++;
          }
        }
      }
      approxit(out, cfa, sum, i * width + j,
               (cfarray[(((i)&1) << 1) | ((j)&1)]), scaler);
    }
    for (int j = width - border; j < width; j++) {
      for (int x = 0; x < 6; x++) {
        sum[x] = 0.0f;
      }
      for (int i1 = i - 1; i1 < i + 2; i1++) {
        for (int j1 = j - 1; j1 < j + 2; j1++) {
          if ((i1 > -1) && (i1 < height) && (j1 < width)) {
            const int c = (cfarray[(((i1)&1) << 1) | ((j1)&1)]);
            sum[c] += safe_in(cfa[i1 * width + j1], revscaler);
            sum[c + 3]++;
          }
        }
      }
      approxit(out, cfa, sum, i * width + j,
               (cfarray[(((i)&1) << 1) | ((j)&1)]), scaler);
    }
  }
  for (int i = 0; i < border; i++) {
    float sum[6];
    for (int j = border; j < width - border; j++) {
      for (int x = 0; x < 6; x++) {
        sum[x] = 0.0f;
      }
      for (int i1 = i - 1; i1 < i + 2; i1++) {
        for (int j1 = j - 1; j1 < j + 2; j1++) {
          if ((i1 > -1) && (i1 < height) && (j1 > -1)) {
            const int c = (cfarray[(((i1)&1) << 1) | ((j1)&1)]);
            sum[c] += safe_in(cfa[i1 * width + j1], revscaler);
            sum[c + 3]++;
          }
        }
      }
      approxit(out, cfa, sum, i * width + j,
               (cfarray[(((i)&1) << 1) | ((j)&1)]), scaler);
    }
  }
  for (int i = height - border; i < height; i++) {
    float sum[6];
    for (int j = border; j < width - border; j++) {
      for (int x = 0; x < 6; x++) {
        sum[x] = 0.0f;
      }
      for (int i1 = i - 1; i1 < i + 2; i1++) {
        for (int j1 = j - 1; j1 < j + 2; j1++) {
          if ((i1 > -1) && (i1 < height) && (j1 < width)) {
            const int c = (cfarray[(((i1)&1) << 1) | ((j1)&1)]);
            sum[c] += safe_in(cfa[i1 * width + j1], revscaler);
            sum[c + 3]++;
          }
        }
      }
      approxit(out, cfa, sum, i * width + j,
               (cfarray[(((i)&1) << 1) | ((j)&1)]), scaler);
    }
  }
}


x86 assembly (clang, -O0):
<rcd_border_interpolate>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
movss  %xmm0,-0x28(%rbp)
movss  0xeb1(%rip),%xmm0
divss  -0x28(%rbp),%xmm0
movss  %xmm0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1473 <rcd_border_interpolate+0x353>
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    12e4 <rcd_border_interpolate+0x1c4>
movl   $0x0,-0x58(%rbp)
cmpl   $0x6,-0x58(%rbp)
jge    11ab <rcd_border_interpolate+0x8b>
movslq -0x58(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,-0x50(%rbp,%rax,4)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    1186 <rcd_border_interpolate+0x66>
mov    -0x30(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
mov    -0x30(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    1294 <rcd_border_interpolate+0x174>
mov    -0x54(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x60(%rbp)
mov    -0x60(%rbp),%eax
mov    -0x54(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    1281 <rcd_border_interpolate+0x161>
cmpl   $0xffffffff,-0x5c(%rbp)
jle    126e <rcd_border_interpolate+0x14e>
mov    -0x5c(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    126e <rcd_border_interpolate+0x14e>
cmpl   $0xffffffff,-0x60(%rbp)
jle    126e <rcd_border_interpolate+0x14e>
mov    -0x18(%rbp),%rax
mov    -0x5c(%rbp),%ecx
and    $0x1,%ecx
shl    $0x1,%ecx
mov    -0x60(%rbp),%edx
and    $0x1,%edx
or     %edx,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x64(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x5c(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
add    -0x60(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
movss  -0x2c(%rbp),%xmm1
call   1040 <safe_in@plt>
cvtsi2ss %rax,%xmm0
movslq -0x64(%rbp),%rax
addss  -0x50(%rbp,%rax,4),%xmm0
movss  %xmm0,-0x50(%rbp,%rax,4)
mov    -0x64(%rbp),%eax
add    $0x3,%eax
cltq
movss  0xd9e(%rip),%xmm0
addss  -0x50(%rbp,%rax,4),%xmm0
movss  %xmm0,-0x50(%rbp,%rax,4)
jmp    1273 <rcd_border_interpolate+0x153>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    11ce <rcd_border_interpolate+0xae>
jmp    1286 <rcd_border_interpolate+0x166>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    11b4 <rcd_border_interpolate+0x94>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x50(%rbp),%rdx
mov    -0x30(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
add    -0x54(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%r8d
and    $0x1,%r8d
shl    $0x1,%r8d
mov    -0x54(%rbp),%r9d
and    $0x1,%r9d
or     %r9d,%r8d
movslq %r8d,%r8
mov    (%rax,%r8,4),%r8d
movss  -0x28(%rbp),%xmm0
call   1030 <approxit@plt>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1173 <rcd_border_interpolate+0x53>
mov    -0x1c(%rbp),%eax
sub    -0x24(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1460 <rcd_border_interpolate+0x340>
movl   $0x0,-0x6c(%rbp)
cmpl   $0x6,-0x6c(%rbp)
jge    1325 <rcd_border_interpolate+0x205>
movslq -0x6c(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,-0x50(%rbp,%rax,4)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
jmp    1300 <rcd_border_interpolate+0x1e0>
mov    -0x30(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x70(%rbp)
mov    -0x70(%rbp),%eax
mov    -0x30(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    1410 <rcd_border_interpolate+0x2f0>
mov    -0x68(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    -0x74(%rbp),%eax
mov    -0x68(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    13fd <rcd_border_interpolate+0x2dd>
cmpl   $0xffffffff,-0x70(%rbp)
jle    13ea <rcd_border_interpolate+0x2ca>
mov    -0x70(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    13ea <rcd_border_interpolate+0x2ca>
mov    -0x74(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    13ea <rcd_border_interpolate+0x2ca>
mov    -0x18(%rbp),%rax
mov    -0x70(%rbp),%ecx
and    $0x1,%ecx
shl    $0x1,%ecx
mov    -0x74(%rbp),%edx
and    $0x1,%edx
or     %edx,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x78(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x70(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
add    -0x74(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
movss  -0x2c(%rbp),%xmm1
call   1040 <safe_in@plt>
cvtsi2ss %rax,%xmm0
movslq -0x78(%rbp),%rax
addss  -0x50(%rbp,%rax,4),%xmm0
movss  %xmm0,-0x50(%rbp,%rax,4)
mov    -0x78(%rbp),%eax
add    $0x3,%eax
cltq
movss  0xc22(%rip),%xmm0
addss  -0x50(%rbp,%rax,4),%xmm0
movss  %xmm0,-0x50(%rbp,%rax,4)
jmp    13ef <rcd_border_interpolate+0x2cf>
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    1348 <rcd_border_interpolate+0x228>
jmp    1402 <rcd_border_interpolate+0x2e2>
mov    -0x70(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x70(%rbp)
jmp    132e <rcd_border_interpolate+0x20e>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x50(%rbp),%rdx
mov    -0x30(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
add    -0x68(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%r8d
and    $0x1,%r8d
shl    $0x1,%r8d
mov    -0x68(%rbp),%r9d
and    $0x1,%r9d
or     %r9d,%r8d
movslq %r8d,%r8
mov    (%rax,%r8,4),%r8d
movss  -0x28(%rbp),%xmm0
call   1030 <approxit@plt>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    12ed <rcd_border_interpolate+0x1cd>
jmp    1465 <rcd_border_interpolate+0x345>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1160 <rcd_border_interpolate+0x40>
movl   $0x0,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1684 <rcd_border_interpolate+0x564>
mov    -0x24(%rbp),%eax
mov    %eax,-0xa4(%rbp)
mov    -0xa4(%rbp),%eax
mov    -0x1c(%rbp),%ecx
sub    -0x24(%rbp),%ecx
cmp    %ecx,%eax
jge    1671 <rcd_border_interpolate+0x551>
movl   $0x0,-0xa8(%rbp)
cmpl   $0x6,-0xa8(%rbp)
jge    14e1 <rcd_border_interpolate+0x3c1>
movslq -0xa8(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,-0xa0(%rbp,%rax,4)
ff ff
mov    -0xa8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa8(%rbp)
jmp    14ad <rcd_border_interpolate+0x38d>
mov    -0x7c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0xac(%rbp)
mov    -0xac(%rbp),%eax
mov    -0x7c(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    1612 <rcd_border_interpolate+0x4f2>
mov    -0xa4(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0xb0(%rbp)
mov    -0xb0(%rbp),%eax
mov    -0xa4(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    15f9 <rcd_border_interpolate+0x4d9>
cmpl   $0xffffffff,-0xac(%rbp)
jle    15e0 <rcd_border_interpolate+0x4c0>
mov    -0xac(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    15e0 <rcd_border_interpolate+0x4c0>
cmpl   $0xffffffff,-0xb0(%rbp)
jle    15e0 <rcd_border_interpolate+0x4c0>
mov    -0x18(%rbp),%rax
mov    -0xac(%rbp),%ecx
and    $0x1,%ecx
shl    $0x1,%ecx
mov    -0xb0(%rbp),%edx
and    $0x1,%edx
or     %edx,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0xb4(%rbp)
mov    -0x10(%rbp),%rax
mov    -0xac(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
add    -0xb0(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
movss  -0x2c(%rbp),%xmm1
call   1040 <safe_in@plt>
cvtsi2ss %rax,%xmm0
movslq -0xb4(%rbp),%rax
addss  -0xa0(%rbp,%rax,4),%xmm0
ff ff
movss  %xmm0,-0xa0(%rbp,%rax,4)
ff ff
mov    -0xb4(%rbp),%eax
add    $0x3,%eax
cltq
movss  0xa32(%rip),%xmm0
addss  -0xa0(%rbp,%rax,4),%xmm0
ff ff
movss  %xmm0,-0xa0(%rbp,%rax,4)
ff ff
jmp    15e5 <rcd_border_interpolate+0x4c5>
mov    -0xb0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb0(%rbp)
jmp    1510 <rcd_border_interpolate+0x3f0>
jmp    15fe <rcd_border_interpolate+0x4de>
mov    -0xac(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xac(%rbp)
jmp    14ed <rcd_border_interpolate+0x3cd>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0xa0(%rbp),%rdx
mov    -0x7c(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
add    -0xa4(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    -0x7c(%rbp),%r8d
and    $0x1,%r8d
shl    $0x1,%r8d
mov    -0xa4(%rbp),%r9d
and    $0x1,%r9d
or     %r9d,%r8d
movslq %r8d,%r8
mov    (%rax,%r8,4),%r8d
movss  -0x28(%rbp),%xmm0
call   1030 <approxit@plt>
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    148f <rcd_border_interpolate+0x36f>
jmp    1676 <rcd_border_interpolate+0x556>
mov    -0x7c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7c(%rbp)
jmp    147a <rcd_border_interpolate+0x35a>
mov    -0x20(%rbp),%eax
sub    -0x24(%rbp),%eax
mov    %eax,-0xb8(%rbp)
mov    -0xb8(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    18b1 <rcd_border_interpolate+0x791>
mov    -0x24(%rbp),%eax
mov    %eax,-0xd4(%rbp)
mov    -0xd4(%rbp),%eax
mov    -0x1c(%rbp),%ecx
sub    -0x24(%rbp),%ecx
cmp    %ecx,%eax
jge    1898 <rcd_border_interpolate+0x778>
movl   $0x0,-0xd8(%rbp)
cmpl   $0x6,-0xd8(%rbp)
jge    16fa <rcd_border_interpolate+0x5da>
movslq -0xd8(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,-0xd0(%rbp,%rax,4)
ff ff
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd8(%rbp)
jmp    16c6 <rcd_border_interpolate+0x5a6>
mov    -0xb8(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0xdc(%rbp)
mov    -0xdc(%rbp),%eax
mov    -0xb8(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    1833 <rcd_border_interpolate+0x713>
mov    -0xd4(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0xe0(%rbp)
mov    -0xe0(%rbp),%eax
mov    -0xd4(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    181a <rcd_border_interpolate+0x6fa>
cmpl   $0xffffffff,-0xdc(%rbp)
jle    1801 <rcd_border_interpolate+0x6e1>
mov    -0xdc(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1801 <rcd_border_interpolate+0x6e1>
mov    -0xe0(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1801 <rcd_border_interpolate+0x6e1>
mov    -0x18(%rbp),%rax
mov    -0xdc(%rbp),%ecx
and    $0x1,%ecx
shl    $0x1,%ecx
mov    -0xe0(%rbp),%edx
and    $0x1,%edx
or     %edx,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0xe4(%rbp)
mov    -0x10(%rbp),%rax
mov    -0xdc(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
add    -0xe0(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
movss  -0x2c(%rbp),%xmm1
call   1040 <safe_in@plt>
cvtsi2ss %rax,%xmm0
movslq -0xe4(%rbp),%rax
addss  -0xd0(%rbp,%rax,4),%xmm0
ff ff
movss  %xmm0,-0xd0(%rbp,%rax,4)
ff ff
mov    -0xe4(%rbp),%eax
add    $0x3,%eax
cltq
movss  0x811(%rip),%xmm0
addss  -0xd0(%rbp,%rax,4),%xmm0
ff ff
movss  %xmm0,-0xd0(%rbp,%rax,4)
ff ff
jmp    1806 <rcd_border_interpolate+0x6e6>
mov    -0xe0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe0(%rbp)
jmp    172f <rcd_border_interpolate+0x60f>
jmp    181f <rcd_border_interpolate+0x6ff>
mov    -0xdc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xdc(%rbp)
jmp    1709 <rcd_border_interpolate+0x5e9>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0xd0(%rbp),%rdx
mov    -0xb8(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
add    -0xd4(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    -0xb8(%rbp),%r8d
and    $0x1,%r8d
shl    $0x1,%r8d
mov    -0xd4(%rbp),%r9d
and    $0x1,%r9d
or     %r9d,%r8d
movslq %r8d,%r8
mov    (%rax,%r8,4),%r8d
movss  -0x28(%rbp),%xmm0
call   1030 <approxit@plt>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    16a8 <rcd_border_interpolate+0x588>
jmp    189d <rcd_border_interpolate+0x77d>
mov    -0xb8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb8(%rbp)
jmp    1690 <rcd_border_interpolate+0x570>
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rcd_border_interpolate>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x108,%rsp
mov    %rdx,0x38(%rsp)
mov    %rsi,0x58(%rsp)
mov    %rdi,0xd8(%rsp)
movss  0xeb5(%rip),%xmm1
movss  %xmm0,0x44(%rsp)
divss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
mov    %rcx,%rax
mov    %rcx,0x48(%rsp)
movslq %ecx,%r15
mov    %r9d,%eax
not    %eax
mov    %rax,0xa8(%rsp)
mov    %r8d,0xa4(%rsp)
test   %r8d,%r8d
mov    %r9,0xd0(%rsp)
mov    %r15,0xe0(%rsp)
jle    174a <rcd_border_interpolate+0x62a>
mov    %r15d,%eax
sub    %r9d,%eax
mov    0xa4(%rsp),%r14d
mov    0x48(%rsp),%rcx
mov    0xa8(%rsp),%rdx
add    %edx,%ecx
mov    %ecx,0xec(%rsp)
cltq
mov    %rax,0xf8(%rsp)
mov    0x58(%rsp),%rax
add    $0x8,%rax
mov    %rax,0x100(%rsp)
lea    0x0(,%r15,4),%rax
mov    %rax,0xb8(%rsp)
movq   $0xffffffffffffffff,0x30(%rsp)
ff ff
mov    $0x2,%eax
mov    %rax,0xc0(%rsp)
xor    %eax,%eax
mov    %r14,0x98(%rsp)
jmp    122c <rcd_border_interpolate+0x10c>
cs nopw 0x0(%rax,%rax,1)
nop
addq   $0x1,0x30(%rsp)
add    $0x1,%rax
addq   $0x1,0xc0(%rsp)
cmp    %r14,%rax
je     174a <rcd_border_interpolate+0x62a>
test   %r9d,%r9d
jle    1210 <rcd_border_interpolate+0xf0>
lea    (%rax,%rax,1),%ecx
and    $0x2,%ecx
mov    %ecx,0x60(%rsp)
mov    %rax,0xf0(%rsp)
imul   0x48(%rsp),%eax
mov    %rax,0xb0(%rsp)
mov    0x30(%rsp),%rax
imul   %rax,%r15
mov    %r15,0x50(%rsp)
add    %eax,%eax
mov    %eax,0xc8(%rsp)
xor    %ebx,%ebx
mov    $0xffffffffffffffff,%rcx
jmp    12d8 <rcd_border_interpolate+0x1b8>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0xb0(%rsp),%rax
mov    0x70(%rsp),%rbx
lea    (%rbx,%rax,1),%ecx
mov    %ebx,%eax
and    $0x1,%eax
or     0x60(%rsp),%eax
mov    0x38(%rsp),%rdx
mov    (%rdx,%rax,4),%r8d
mov    0xd8(%rsp),%rdi
mov    0x58(%rsp),%rsi
lea    0x10(%rsp),%rdx
movss  0x44(%rsp),%xmm0
call   1030 <approxit@plt>
add    $0x1,%ebx
mov    0x68(%rsp),%rcx
mov    0xd0(%rsp),%r9
cmp    %r9d,%ebx
je     1480 <rcd_border_interpolate+0x360>
mov    %rbx,0x70(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0x10(%rsp)
movq   $0x0,0x20(%rsp)
lea    0x1(%rcx),%rax
mov    %ecx,%edx
and    $0x1,%edx
mov    %edx,0x88(%rsp)
mov    %rax,0x68(%rsp)
and    $0x1,%eax
mov    %eax,0x80(%rsp)
lea    0x2(%rcx),%eax
and    $0x1,%eax
mov    %eax,0x78(%rsp)
mov    0x50(%rsp),%rax
mov    %rcx,0x90(%rsp)
add    %rcx,%rax
mov    0x100(%rsp),%rcx
lea    (%rcx,%rax,4),%r13
mov    0xc8(%rsp),%r12d
mov    0x30(%rsp),%r15
jmp    136e <rcd_border_interpolate+0x24e>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%r15
add    0xb8(%rsp),%r13
add    $0x2,%r12d
cmp    %r15,0xc0(%rsp)
je     1280 <rcd_border_interpolate+0x160>
test   %r15,%r15
js     1350 <rcd_border_interpolate+0x230>
mov    %r12d,%ebp
and    $0x2,%ebp
cmp    %r14,%r15
jge    13d4 <rcd_border_interpolate+0x2b4>
cmpq   $0x0,0x90(%rsp)
js     13d4 <rcd_border_interpolate+0x2b4>
mov    0x88(%rsp),%eax
or     %ebp,%eax
mov    0x38(%rsp),%rcx
movslq (%rcx,%rax,4),%rbx
movss  -0x8(%r13),%xmm0
movss  0xc(%rsp),%xmm1
call   1040 <safe_in@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0x10(%rsp,%rbx,4),%xmm0
movss  %xmm0,0x10(%rsp,%rbx,4)
movss  0x1c(%rsp,%rbx,4),%xmm0
addss  0xc32(%rip),%xmm0
movss  %xmm0,0x1c(%rsp,%rbx,4)
cmp    %r14,%r15
jge    1350 <rcd_border_interpolate+0x230>
mov    0x80(%rsp),%eax
or     %ebp,%eax
mov    0x38(%rsp),%r14
movslq (%r14,%rax,4),%rbx
movss  -0x4(%r13),%xmm0
movss  0xc(%rsp),%xmm1
call   1040 <safe_in@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0x10(%rsp,%rbx,4),%xmm0
movss  %xmm0,0x10(%rsp,%rbx,4)
movss  0x1c(%rsp,%rbx,4),%xmm0
movss  0xbde(%rip),%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,0x1c(%rsp,%rbx,4)
or     0x78(%rsp),%ebp
movslq (%r14,%rbp,4),%rbx
mov    0x98(%rsp),%r14
movss  0x0(%r13),%xmm0
movss  0xc(%rsp),%xmm1
call   1040 <safe_in@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0x10(%rsp,%rbx,4),%xmm0
movss  %xmm0,0x10(%rsp,%rbx,4)
movss  0x1c(%rsp,%rbx,4),%xmm0
addss  0xb91(%rip),%xmm0
movss  %xmm0,0x1c(%rsp,%rbx,4)
jmp    1350 <rcd_border_interpolate+0x230>
nopw   0x0(%rax,%rax,1)
test   %r9d,%r9d
mov    0xe0(%rsp),%r15
mov    0xf0(%rsp),%rax
jle    1210 <rcd_border_interpolate+0xf0>
mov    %rax,%rcx
imul   %r15,%rcx
mov    %rcx,0x60(%rsp)
add    %eax,%eax
and    $0x2,%eax
mov    %rax,0xb0(%rsp)
mov    0x30(%rsp),%rcx
lea    (%rcx,%rcx,1),%eax
and    $0x2,%eax
mov    %rax,0x90(%rsp)
lea    0x1(%rcx),%rax
lea    (%rax,%rax,1),%edx
and    $0x2,%edx
mov    %rdx,0x88(%rsp)
mov    %rax,0xc8(%rsp)
imul   %r15,%rax
lea    0x2(%rcx),%r13
lea    0x0(%r13,%r13,1),%ecx
and    $0x2,%ecx
mov    %rcx,0x80(%rsp)
mov    %r13,%rcx
imul   %r15,%rcx
mov    0x58(%rsp),%rdx
mov    0x50(%rsp),%rsi
lea    (%rdx,%rsi,4),%rsi
mov    %rsi,0x78(%rsp)
lea    (%rdx,%rax,4),%rax
mov    %rax,0x70(%rsp)
lea    (%rdx,%rcx,4),%rax
mov    %rax,0x68(%rsp)
mov    0xf8(%rsp),%r14
mov    0xec(%rsp),%eax
jmp    1591 <rcd_border_interpolate+0x471>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x60(%rsp),%rax
lea    (%r14,%rax,1),%ecx
mov    %r14d,%eax
and    $0x1,%eax
or     0xb0(%rsp),%rax
mov    0x38(%rsp),%rdx
mov    (%rdx,%rax,4),%r8d
mov    0xd8(%rsp),%rdi
mov    0x58(%rsp),%rsi
lea    0x10(%rsp),%rdx
movss  0x44(%rsp),%xmm0
call   1030 <approxit@plt>
add    $0x1,%r14
mov    0x50(%rsp),%eax
add    $0x1,%eax
cmp    %r15,%r14
jge    1720 <rcd_border_interpolate+0x600>
mov    %eax,0x50(%rsp)
movslq %eax,%r12
xorps  %xmm0,%xmm0
movaps %xmm0,0x10(%rsp)
movq   $0x0,0x20(%rsp)
mov    %r12,%rbx
jmp    15bc <rcd_border_interpolate+0x49c>
xchg   %ax,%ax
lea    0x1(%rbx),%rax
cmp    %r14,%rbx
mov    %rax,%rbx
jg     1620 <rcd_border_interpolate+0x500>
cmpq   $0x0,0x30(%rsp)
js     15b0 <rcd_border_interpolate+0x490>
cmp    %r15,%rbx
jge    15b0 <rcd_border_interpolate+0x490>
mov    %ebx,%eax
and    $0x1,%eax
or     0x90(%rsp),%rax
mov    0x38(%rsp),%rcx
movslq (%rcx,%rax,4),%rbp
mov    0x78(%rsp),%rax
movss  (%rax,%rbx,4),%xmm0
movss  0xc(%rsp),%xmm1
call   1040 <safe_in@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0x10(%rsp,%rbp,4),%xmm0
movss  %xmm0,0x10(%rsp,%rbp,4)
movss  0x1c(%rsp,%rbp,4),%xmm0
addss  0x9ea(%rip),%xmm0
movss  %xmm0,0x1c(%rsp,%rbp,4)
jmp    15b0 <rcd_border_interpolate+0x490>
xchg   %ax,%ax
mov    %r12,%rbx
jmp    163c <rcd_border_interpolate+0x51c>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0x1(%rbx),%rax
cmp    %r14,%rbx
mov    %rax,%rbx
jg     16b1 <rcd_border_interpolate+0x591>
cmp    %r15,%rbx
jge    1630 <rcd_border_interpolate+0x510>
mov    %ebx,%eax
and    $0x1,%eax
or     0x88(%rsp),%rax
mov    0x38(%rsp),%rcx
movslq (%rcx,%rax,4),%rbp
mov    0x70(%rsp),%rax
movss  (%rax,%rbx,4),%xmm0
movss  0xc(%rsp),%xmm1
call   1040 <safe_in@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0x10(%rsp,%rbp,4),%xmm0
movss  %xmm0,0x10(%rsp,%rbp,4)
movss  0x1c(%rsp,%rbp,4),%xmm0
addss  0x972(%rip),%xmm0
movss  %xmm0,0x1c(%rsp,%rbp,4)
jmp    1630 <rcd_border_interpolate+0x510>
cs nopw 0x0(%rax,%rax,1)
lea    0x1(%r12),%rax
cmp    %r14,%r12
mov    %rax,%r12
jg     1540 <rcd_border_interpolate+0x420>
cmp    0x98(%rsp),%r13
jge    16a0 <rcd_border_interpolate+0x580>
cmp    %r15,%r12
jge    16a0 <rcd_border_interpolate+0x580>
mov    %r12d,%eax
and    $0x1,%eax
or     0x80(%rsp),%rax
mov    0x38(%rsp),%rcx
movslq (%rcx,%rax,4),%rbx
mov    0x68(%rsp),%rax
movss  (%rax,%r12,4),%xmm0
movss  0xc(%rsp),%xmm1
call   1040 <safe_in@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0x10(%rsp,%rbx,4),%xmm0
movss  %xmm0,0x10(%rsp,%rbx,4)
movss  0x1c(%rsp,%rbx,4),%xmm0
addss  0x8f1(%rip),%xmm0
movss  %xmm0,0x1c(%rsp,%rbx,4)
jmp    16a0 <rcd_border_interpolate+0x580>
nopw   0x0(%rax,%rax,1)
mov    0xc8(%rsp),%rax
mov    %rax,0x30(%rsp)
mov    0xd0(%rsp),%r9
mov    0x98(%rsp),%r14
mov    0xf0(%rsp),%rax
jmp    1216 <rcd_border_interpolate+0xf6>
test   %r9d,%r9d
jle    1cc3 <rcd_border_interpolate+0xba3>
mov    0x48(%rsp),%rax
sub    %r9d,%eax
mov    %rax,0x48(%rsp)
lea    -0x1(%r9),%eax
mov    %eax,0xc8(%rsp)
movslq 0xa4(%rsp),%rbp
mov    %r9d,%edi
mov    $0xffffffffffffffff,%r13
xor    %eax,%eax
mov    %rbp,0xc0(%rsp)
mov    %rdi,0xb0(%rsp)
jmp    17b1 <rcd_border_interpolate+0x691>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%r13
add    $0x1,%rax
cmp    %rdi,%rax
je     1a7a <rcd_border_interpolate+0x95a>
cmp    %r9d,0x48(%rsp)
jle    17a0 <rcd_border_interpolate+0x680>
mov    %rax,%rcx
imul   %r15,%rcx
mov    %rcx,0x68(%rsp)
mov    %rax,0x60(%rsp)
add    %eax,%eax
and    $0x2,%eax
mov    %rax,0x50(%rsp)
lea    0x0(%r13,%r13,1),%eax
and    $0x2,%eax
mov    %rax,0x80(%rsp)
mov    %r13,%rax
imul   %r15,%rax
lea    0x1(%r13),%rcx
lea    (%rcx,%rcx,1),%edx
and    $0x2,%edx
mov    %rdx,0x98(%rsp)
mov    %rcx,0xb8(%rsp)
imul   %r15,%rcx
lea    0x2(%r13),%rdx
lea    (%rdx,%rdx,1),%esi
and    $0x2,%esi
mov    %rsi,0x30(%rsp)
mov    %rdx,%r14
imul   %r15,%rdx
mov    0x58(%rsp),%rsi
lea    (%rsi,%rax,4),%rax
mov    %rax,0x78(%rsp)
lea    (%rsi,%rcx,4),%rax
mov    %rax,0x90(%rsp)
lea    (%rsi,%rdx,4),%rax
mov    %rax,0x88(%rsp)
mov    %rdi,%r15
mov    0xc8(%rsp),%eax
jmp    18a0 <rcd_border_interpolate+0x780>
mov    0x68(%rsp),%rax
lea    (%r15,%rax,1),%ecx
mov    %r15d,%eax
and    $0x1,%eax
or     0x50(%rsp),%rax
mov    0x38(%rsp),%rdx
mov    (%rdx,%rax,4),%r8d
mov    0xd8(%rsp),%rdi
mov    0x58(%rsp),%rsi
lea    0x10(%rsp),%rdx
movss  0x44(%rsp),%xmm0
call   1030 <approxit@plt>
add    $0x1,%r15
mov    0x70(%rsp),%eax
add    $0x1,%eax
cmp    %r15d,0x48(%rsp)
je     1a50 <rcd_border_interpolate+0x930>
mov    %eax,0x70(%rsp)
movslq %eax,%r12
xorps  %xmm0,%xmm0
movaps %xmm0,0x10(%rsp)
movq   $0x0,0x20(%rsp)
mov    %r12,%rbx
jmp    18cc <rcd_border_interpolate+0x7ac>
nopl   (%rax)
lea    0x1(%rbx),%rax
cmp    %r15,%rbx
mov    %rax,%rbx
jg     1940 <rcd_border_interpolate+0x820>
test   %r13,%r13
js     18c0 <rcd_border_interpolate+0x7a0>
cmp    %rbp,%r13
jge    18c0 <rcd_border_interpolate+0x7a0>
test   %rbx,%rbx
js     18c0 <rcd_border_interpolate+0x7a0>
mov    %ebx,%eax
and    $0x1,%eax
or     0x80(%rsp),%rax
mov    0x38(%rsp),%rcx
movslq (%rcx,%rax,4),%rbp
mov    0x78(%rsp),%rax
movss  (%rax,%rbx,4),%xmm0
movss  0xc(%rsp),%xmm1
call   1040 <safe_in@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0x10(%rsp,%rbp,4),%xmm0
movss  %xmm0,0x10(%rsp,%rbp,4)
movss  0x1c(%rsp,%rbp,4),%xmm0
addss  0x6d8(%rip),%xmm0
movss  %xmm0,0x1c(%rsp,%rbp,4)
mov    0xc0(%rsp),%rbp
jmp    18c0 <rcd_border_interpolate+0x7a0>
nopl   0x0(%rax,%rax,1)
mov    %r12,%rbx
jmp    1960 <rcd_border_interpolate+0x840>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0x1(%rbx),%rax
cmp    %r15,%rbx
mov    %rax,%rbx
jg     19e1 <rcd_border_interpolate+0x8c1>
cmp    %rbp,0xb8(%rsp)
jge    1950 <rcd_border_interpolate+0x830>
test   %rbx,%rbx
js     1950 <rcd_border_interpolate+0x830>
mov    %ebx,%eax
and    $0x1,%eax
or     0x98(%rsp),%rax
mov    0x38(%rsp),%rcx
movslq (%rcx,%rax,4),%rbp
mov    0x90(%rsp),%rax
movss  (%rax,%rbx,4),%xmm0
movss  0xc(%rsp),%xmm1
call   1040 <safe_in@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0x10(%rsp,%rbp,4),%xmm0
movss  %xmm0,0x10(%rsp,%rbp,4)
movss  0x1c(%rsp,%rbp,4),%xmm0
addss  0x641(%rip),%xmm0
movss  %xmm0,0x1c(%rsp,%rbp,4)
mov    0xc0(%rsp),%rbp
jmp    1950 <rcd_border_interpolate+0x830>
nop
lea    0x1(%r12),%rax
cmp    %r15,%r12
mov    %rax,%r12
jg     1850 <rcd_border_interpolate+0x730>
cmp    %rbp,%r14
jge    19d0 <rcd_border_interpolate+0x8b0>
test   %r12,%r12
js     19d0 <rcd_border_interpolate+0x8b0>
mov    %r12d,%eax
and    $0x1,%eax
or     0x30(%rsp),%rax
mov    0x38(%rsp),%rcx
movslq (%rcx,%rax,4),%rbx
mov    0x88(%rsp),%rax
movss  (%rax,%r12,4),%xmm0
movss  0xc(%rsp),%xmm1
call   1040 <safe_in@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0x10(%rsp,%rbx,4),%xmm0
movss  %xmm0,0x10(%rsp,%rbx,4)
movss  0x1c(%rsp,%rbx,4),%xmm0
addss  0x5c6(%rip),%xmm0
movss  %xmm0,0x1c(%rsp,%rbx,4)
jmp    19d0 <rcd_border_interpolate+0x8b0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0xb8(%rsp),%r13
mov    0xe0(%rsp),%r15
mov    0xd0(%rsp),%r9
mov    0xb0(%rsp),%rdi
mov    0x60(%rsp),%rax
jmp    17a4 <rcd_border_interpolate+0x684>
test   %r9d,%r9d
jle    1cc3 <rcd_border_interpolate+0xba3>
lea    -0x1(%r9),%eax
mov    %eax,0x60(%rsp)
mov    0xa8(%rsp),%rax
mov    0xa4(%rsp),%ecx
add    %ecx,%eax
mov    %rax,0xa8(%rsp)
sub    %r9d,%ecx
movslq %ecx,%rax
mov    %rax,0x30(%rsp)
movslq 0x48(%rsp),%rax
mov    %rax,0x50(%rsp)
lea    0x0(,%r15,4),%rax
mov    %rax,0x90(%rsp)
jmp    1b02 <rcd_border_interpolate+0x9e2>
nopl   0x0(%rax,%rax,1)
mov    0x30(%rsp),%rcx
add    $0x1,%rcx
mov    0xa8(%rsp),%rax
add    $0x1,%eax
mov    %rax,0xa8(%rsp)
mov    %rcx,0x30(%rsp)
cmp    %rbp,%rcx
mov    0xd0(%rsp),%r9
jge    1cc3 <rcd_border_interpolate+0xba3>
cmp    %r9d,0x48(%rsp)
jle    1ad0 <rcd_border_interpolate+0x9b0>
movslq 0xa8(%rsp),%rcx
mov    %r15,%rax
mov    %rcx,0x80(%rsp)
imul   %rcx,%rax
mov    0x58(%rsp),%rcx
lea    (%rcx,%rax,4),%rax
mov    %rax,0x78(%rsp)
mov    0x30(%rsp),%rax
mov    %rax,%rcx
imul   %r15,%rcx
mov    %rcx,0x70(%rsp)
add    %eax,%eax
and    $0x2,%eax
mov    %rax,0x68(%rsp)
mov    0xb0(%rsp),%r12
mov    0x60(%rsp),%eax
jmp    1bb3 <rcd_border_interpolate+0xa93>
nopw   0x0(%rax,%rax,1)
mov    0x70(%rsp),%rax
lea    (%r12,%rax,1),%ecx
mov    %r12d,%eax
and    $0x1,%eax
or     0x68(%rsp),%rax
mov    0x38(%rsp),%rdx
mov    (%rdx,%rax,4),%r8d
mov    0xd8(%rsp),%rdi
mov    0x58(%rsp),%rsi
lea    0x10(%rsp),%rdx
movss  0x44(%rsp),%xmm0
call   1030 <approxit@plt>
add    $0x1,%r12
mov    0x88(%rsp),%eax
add    $0x1,%eax
cmp    0x50(%rsp),%r12
je     1ad0 <rcd_border_interpolate+0x9b0>
mov    %eax,0x88(%rsp)
cltq
mov    %rax,0x98(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0x10(%rsp)
movq   $0x0,0x20(%rsp)
mov    0x78(%rsp),%r13
mov    0x80(%rsp),%rcx
jmp    1c1a <rcd_border_interpolate+0xafa>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0xb8(%rsp),%rcx
lea    0x1(%rcx),%rax
add    0x90(%rsp),%r13
cmp    0x30(%rsp),%rcx
mov    %rax,%rcx
mov    0xc0(%rsp),%rbp
jg     1b60 <rcd_border_interpolate+0xa40>
test   %rcx,%rcx
setns  %al
cmp    %rbp,%rcx
setl   %bpl
and    %al,%bpl
mov    %rcx,0xb8(%rsp)
lea    (%rcx,%rcx,1),%ebx
and    $0x2,%ebx
mov    0x98(%rsp),%r14
jmp    1c5c <rcd_border_interpolate+0xb3c>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0x1(%r14),%rax
cmp    %r12,%r14
mov    %rax,%r14
jg     1bf0 <rcd_border_interpolate+0xad0>
cmp    %r15,%r14
setl   %al
and    %bpl,%al
cmp    $0x1,%al
jne    1c50 <rcd_border_interpolate+0xb30>
mov    %r14d,%eax
and    $0x1,%eax
or     %rbx,%rax
mov    0x38(%rsp),%rcx
movslq (%rcx,%rax,4),%r15
movss  0x0(%r13,%r14,4),%xmm0
movss  0xc(%rsp),%xmm1
call   1040 <safe_in@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0x10(%rsp,%r15,4),%xmm0
movss  %xmm0,0x10(%rsp,%r15,4)
movss  0x1c(%rsp,%r15,4),%xmm0
addss  0x34e(%rip),%xmm0
movss  %xmm0,0x1c(%rsp,%r15,4)
mov    0xe0(%rsp),%r15
jmp    1c50 <rcd_border_interpolate+0xb30>
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @rcd_border_interpolate(float* %0, float* %1, i32* %2, i32 %3, i32 %4, i32 %5, float %6) {
%8 = alloca float*
%9 = alloca float*
%10 = alloca i32*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca float
%15 = alloca float
%16 = alloca i32
%17 = alloca [6 x float]
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca [6 x float]
%30 = alloca i32
%31 = alloca i32
%32 = alloca i32
%33 = alloca i32
%34 = alloca i32
%35 = alloca i32
%36 = alloca [6 x float]
%37 = alloca i32
%38 = alloca i32
%39 = alloca i32
%40 = alloca i32
%41 = alloca i32
store float* %0, float** %8
store float* %1, float** %9
store i32* %2, i32** %10
store i32 %3, i32* %11
store i32 %4, i32* %12
store i32 %5, i32* %13
store float %6, float* %14
%42 = load float, float* %14
%43 = fdiv float 1.000000e+00, %42
store float %43, float* %15
store i32 0, i32* %16
br label %44
44: ; preds = %269, %7
%45 = load i32, i32* %16
%46 = load i32, i32* %12
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %272
48: ; preds = %44
store i32 0, i32* %18
br label %49
49: ; preds = %153, %48
%50 = load i32, i32* %18
%51 = load i32, i32* %13
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %156
53: ; preds = %49
store i32 0, i32* %19
br label %54
54: ; preds = %61, %53
%55 = load i32, i32* %19
%56 = icmp slt i32 %55, 6
br i1 %56, label %57, label %64
57: ; preds = %54
%58 = load i32, i32* %19
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [6 x float], [6 x float]* %17, i64 0, i64 %59
store float 0.000000e+00, float* %60
br label %61
61: ; preds = %57
%62 = load i32, i32* %19
%63 = add nsw i32 %62, 1
store i32 %63, i32* %19
br label %54
64: ; preds = %54
%65 = load i32, i32* %16
%66 = sub nsw i32 %65, 1
store i32 %66, i32* %20
br label %67
67: ; preds = %129, %64
%68 = load i32, i32* %20
%69 = load i32, i32* %16
%70 = add nsw i32 %69, 2
%71 = icmp slt i32 %68, %70
br i1 %71, label %72, label %132
72: ; preds = %67
%73 = load i32, i32* %18
%74 = sub nsw i32 %73, 1
store i32 %74, i32* %21
br label %75
75: ; preds = %125, %72
%76 = load i32, i32* %21
%77 = load i32, i32* %18
%78 = add nsw i32 %77, 2
%79 = icmp slt i32 %76, %78
br i1 %79, label %80, label %128
80: ; preds = %75
%81 = load i32, i32* %20
%82 = icmp sgt i32 %81, -1
br i1 %82, label %83, label %124
83: ; preds = %80
%84 = load i32, i32* %20
%85 = load i32, i32* %12
%86 = icmp slt i32 %84, %85
br i1 %86, label %87, label %124
87: ; preds = %83
%88 = load i32, i32* %21
%89 = icmp sgt i32 %88, -1
br i1 %89, label %90, label %124
90: ; preds = %87
%91 = load i32*, i32** %10
%92 = load i32, i32* %20
%93 = and i32 %92, 1
%94 = shl i32 %93, 1
%95 = load i32, i32* %21
%96 = and i32 %95, 1
%97 = or i32 %94, %96
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i32, i32* %91, i64 %98
%100 = load i32, i32* %99
store i32 %100, i32* %22
%101 = load float*, float** %9
%102 = load i32, i32* %20
%103 = load i32, i32* %11
%104 = mul nsw i32 %102, %103
%105 = load i32, i32* %21
%106 = add nsw i32 %104, %105
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds float, float* %101, i64 %107
%109 = load float, float* %108
%110 = load float, float* %15
%111 = call i64 @safe_in(float %109, float %110)
%112 = sitofp i64 %111 to float
%113 = load i32, i32* %22
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [6 x float], [6 x float]* %17, i64 0, i64 %114
%116 = load float, float* %115
%117 = fadd float %116, %112
store float %117, float* %115
%118 = load i32, i32* %22
%119 = add nsw i32 %118, 3
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [6 x float], [6 x float]* %17, i64 0, i64 %120
%122 = load float, float* %121
%123 = fadd float %122, 1.000000e+00
store float %123, float* %121
br label %124
124: ; preds = %90, %87, %83, %80
br label %125
125: ; preds = %124
%126 = load i32, i32* %21
%127 = add nsw i32 %126, 1
store i32 %127, i32* %21
br label %75
128: ; preds = %75
br label %129
129: ; preds = %128
%130 = load i32, i32* %20
%131 = add nsw i32 %130, 1
store i32 %131, i32* %20
br label %67
132: ; preds = %67
%133 = load float*, float** %8
%134 = load float*, float** %9
%135 = getelementptr inbounds [6 x float], [6 x float]* %17, i64 0, i64 0
%136 = load i32, i32* %16
%137 = load i32, i32* %11
%138 = mul nsw i32 %136, %137
%139 = load i32, i32* %18
%140 = add nsw i32 %138, %139
%141 = load i32*, i32** %10
%142 = load i32, i32* %16
%143 = and i32 %142, 1
%144 = shl i32 %143, 1
%145 = load i32, i32* %18
%146 = and i32 %145, 1
%147 = or i32 %144, %146
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds i32, i32* %141, i64 %148
%150 = load i32, i32* %149
%151 = load float, float* %14
%152 = call i32 @approxit(float* %133, float* %134, float* %135, i32 %140, i32 %150, float %151)
br label %153
153: ; preds = %132
%154 = load i32, i32* %18
%155 = add nsw i32 %154, 1
store i32 %155, i32* %18
br label %49
156: ; preds = %49
%157 = load i32, i32* %11
%158 = load i32, i32* %13
%159 = sub nsw i32 %157, %158
store i32 %159, i32* %23
br label %160
160: ; preds = %265, %156
%161 = load i32, i32* %23
%162 = load i32, i32* %11
%163 = icmp slt i32 %161, %162
br i1 %163, label %164, label %268
164: ; preds = %160
store i32 0, i32* %24
br label %165
165: ; preds = %172, %164
%166 = load i32, i32* %24
%167 = icmp slt i32 %166, 6
br i1 %167, label %168, label %175
168: ; preds = %165
%169 = load i32, i32* %24
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds [6 x float], [6 x float]* %17, i64 0, i64 %170
store float 0.000000e+00, float* %171
br label %172
172: ; preds = %168
%173 = load i32, i32* %24
%174 = add nsw i32 %173, 1
store i32 %174, i32* %24
br label %165
175: ; preds = %165
%176 = load i32, i32* %16
%177 = sub nsw i32 %176, 1
store i32 %177, i32* %25
br label %178
178: ; preds = %241, %175
%179 = load i32, i32* %25
%180 = load i32, i32* %16
%181 = add nsw i32 %180, 2
%182 = icmp slt i32 %179, %181
br i1 %182, label %183, label %244
183: ; preds = %178
%184 = load i32, i32* %23
%185 = sub nsw i32 %184, 1
store i32 %185, i32* %26
br label %186
186: ; preds = %237, %183
%187 = load i32, i32* %26
%188 = load i32, i32* %23
%189 = add nsw i32 %188, 2
%190 = icmp slt i32 %187, %189
br i1 %190, label %191, label %240
191: ; preds = %186
%192 = load i32, i32* %25
%193 = icmp sgt i32 %192, -1
br i1 %193, label %194, label %236
194: ; preds = %191
%195 = load i32, i32* %25
%196 = load i32, i32* %12
%197 = icmp slt i32 %195, %196
br i1 %197, label %198, label %236
198: ; preds = %194
%199 = load i32, i32* %26
%200 = load i32, i32* %11
%201 = icmp slt i32 %199, %200
br i1 %201, label %202, label %236
202: ; preds = %198
%203 = load i32*, i32** %10
%204 = load i32, i32* %25
%205 = and i32 %204, 1
%206 = shl i32 %205, 1
%207 = load i32, i32* %26
%208 = and i32 %207, 1
%209 = or i32 %206, %208
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds i32, i32* %203, i64 %210
%212 = load i32, i32* %211
store i32 %212, i32* %27
%213 = load float*, float** %9
%214 = load i32, i32* %25
%215 = load i32, i32* %11
%216 = mul nsw i32 %214, %215
%217 = load i32, i32* %26
%218 = add nsw i32 %216, %217
%219 = sext i32 %218 to i64
%220 = getelementptr inbounds float, float* %213, i64 %219
%221 = load float, float* %220
%222 = load float, float* %15
%223 = call i64 @safe_in(float %221, float %222)
%224 = sitofp i64 %223 to float
%225 = load i32, i32* %27
%226 = sext i32 %225 to i64
%227 = getelementptr inbounds [6 x float], [6 x float]* %17, i64 0, i64 %226
%228 = load float, float* %227
%229 = fadd float %228, %224
store float %229, float* %227
%230 = load i32, i32* %27
%231 = add nsw i32 %230, 3
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds [6 x float], [6 x float]* %17, i64 0, i64 %232
%234 = load float, float* %233
%235 = fadd float %234, 1.000000e+00
store float %235, float* %233
br label %236
236: ; preds = %202, %198, %194, %191
br label %237
237: ; preds = %236
%238 = load i32, i32* %26
%239 = add nsw i32 %238, 1
store i32 %239, i32* %26
br label %186
240: ; preds = %186
br label %241
241: ; preds = %240
%242 = load i32, i32* %25
%243 = add nsw i32 %242, 1
store i32 %243, i32* %25
br label %178
244: ; preds = %178
%245 = load float*, float** %8
%246 = load float*, float** %9
%247 = getelementptr inbounds [6 x float], [6 x float]* %17, i64 0, i64 0
%248 = load i32, i32* %16
%249 = load i32, i32* %11
%250 = mul nsw i32 %248, %249
%251 = load i32, i32* %23
%252 = add nsw i32 %250, %251
%253 = load i32*, i32** %10
%254 = load i32, i32* %16
%255 = and i32 %254, 1
%256 = shl i32 %255, 1
%257 = load i32, i32* %23
%258 = and i32 %257, 1
%259 = or i32 %256, %258
%260 = sext i32 %259 to i64
%261 = getelementptr inbounds i32, i32* %253, i64 %260
%262 = load i32, i32* %261
%263 = load float, float* %14
%264 = call i32 @approxit(float* %245, float* %246, float* %247, i32 %252, i32 %262, float %263)
br label %265
265: ; preds = %244
%266 = load i32, i32* %23
%267 = add nsw i32 %266, 1
store i32 %267, i32* %23
br label %160
268: ; preds = %160
br label %269
269: ; preds = %268
%270 = load i32, i32* %16
%271 = add nsw i32 %270, 1
store i32 %271, i32* %16
br label %44
272: ; preds = %44
store i32 0, i32* %28
br label %273
273: ; preds = %389, %272
%274 = load i32, i32* %28
%275 = load i32, i32* %13
%276 = icmp slt i32 %274, %275
br i1 %276, label %277, label %392
277: ; preds = %273
%278 = load i32, i32* %13
store i32 %278, i32* %30
br label %279
279: ; preds = %385, %277
%280 = load i32, i32* %30
%281 = load i32, i32* %11
%282 = load i32, i32* %13
%283 = sub nsw i32 %281, %282
%284 = icmp slt i32 %280, %283
br i1 %284, label %285, label %388
285: ; preds = %279
store i32 0, i32* %31
br label %286
286: ; preds = %293, %285
%287 = load i32, i32* %31
%288 = icmp slt i32 %287, 6
br i1 %288, label %289, label %296
289: ; preds = %286
%290 = load i32, i32* %31
%291 = sext i32 %290 to i64
%292 = getelementptr inbounds [6 x float], [6 x float]* %29, i64 0, i64 %291
store float 0.000000e+00, float* %292
br label %293
293: ; preds = %289
%294 = load i32, i32* %31
%295 = add nsw i32 %294, 1
store i32 %295, i32* %31
br label %286
296: ; preds = %286
%297 = load i32, i32* %28
%298 = sub nsw i32 %297, 1
store i32 %298, i32* %32
br label %299
299: ; preds = %361, %296
%300 = load i32, i32* %32
%301 = load i32, i32* %28
%302 = add nsw i32 %301, 2
%303 = icmp slt i32 %300, %302
br i1 %303, label %304, label %364
304: ; preds = %299
%305 = load i32, i32* %30
%306 = sub nsw i32 %305, 1
store i32 %306, i32* %33
br label %307
307: ; preds = %357, %304
%308 = load i32, i32* %33
%309 = load i32, i32* %30
%310 = add nsw i32 %309, 2
%311 = icmp slt i32 %308, %310
br i1 %311, label %312, label %360
312: ; preds = %307
%313 = load i32, i32* %32
%314 = icmp sgt i32 %313, -1
br i1 %314, label %315, label %356
315: ; preds = %312
%316 = load i32, i32* %32
%317 = load i32, i32* %12
%318 = icmp slt i32 %316, %317
br i1 %318, label %319, label %356
319: ; preds = %315
%320 = load i32, i32* %33
%321 = icmp sgt i32 %320, -1
br i1 %321, label %322, label %356
322: ; preds = %319
%323 = load i32*, i32** %10
%324 = load i32, i32* %32
%325 = and i32 %324, 1
%326 = shl i32 %325, 1
%327 = load i32, i32* %33
%328 = and i32 %327, 1
%329 = or i32 %326, %328
%330 = sext i32 %329 to i64
%331 = getelementptr inbounds i32, i32* %323, i64 %330
%332 = load i32, i32* %331
store i32 %332, i32* %34
%333 = load float*, float** %9
%334 = load i32, i32* %32
%335 = load i32, i32* %11
%336 = mul nsw i32 %334, %335
%337 = load i32, i32* %33
%338 = add nsw i32 %336, %337
%339 = sext i32 %338 to i64
%340 = getelementptr inbounds float, float* %333, i64 %339
%341 = load float, float* %340
%342 = load float, float* %15
%343 = call i64 @safe_in(float %341, float %342)
%344 = sitofp i64 %343 to float
%345 = load i32, i32* %34
%346 = sext i32 %345 to i64
%347 = getelementptr inbounds [6 x float], [6 x float]* %29, i64 0, i64 %346
%348 = load float, float* %347
%349 = fadd float %348, %344
store float %349, float* %347
%350 = load i32, i32* %34
%351 = add nsw i32 %350, 3
%352 = sext i32 %351 to i64
%353 = getelementptr inbounds [6 x float], [6 x float]* %29, i64 0, i64 %352
%354 = load float, float* %353
%355 = fadd float %354, 1.000000e+00
store float %355, float* %353
br label %356
356: ; preds = %322, %319, %315, %312
br label %357
357: ; preds = %356
%358 = load i32, i32* %33
%359 = add nsw i32 %358, 1
store i32 %359, i32* %33
br label %307
360: ; preds = %307
br label %361
361: ; preds = %360
%362 = load i32, i32* %32
%363 = add nsw i32 %362, 1
store i32 %363, i32* %32
br label %299
364: ; preds = %299
%365 = load float*, float** %8
%366 = load float*, float** %9
%367 = getelementptr inbounds [6 x float], [6 x float]* %29, i64 0, i64 0
%368 = load i32, i32* %28
%369 = load i32, i32* %11
%370 = mul nsw i32 %368, %369
%371 = load i32, i32* %30
%372 = add nsw i32 %370, %371
%373 = load i32*, i32** %10
%374 = load i32, i32* %28
%375 = and i32 %374, 1
%376 = shl i32 %375, 1
%377 = load i32, i32* %30
%378 = and i32 %377, 1
%379 = or i32 %376, %378
%380 = sext i32 %379 to i64
%381 = getelementptr inbounds i32, i32* %373, i64 %380
%382 = load i32, i32* %381
%383 = load float, float* %14
%384 = call i32 @approxit(float* %365, float* %366, float* %367, i32 %372, i32 %382, float %383)
br label %385
385: ; preds = %364
%386 = load i32, i32* %30
%387 = add nsw i32 %386, 1
store i32 %387, i32* %30
br label %279
388: ; preds = %279
br label %389
389: ; preds = %388
%390 = load i32, i32* %28
%391 = add nsw i32 %390, 1
store i32 %391, i32* %28
br label %273
392: ; preds = %273
%393 = load i32, i32* %12
%394 = load i32, i32* %13
%395 = sub nsw i32 %393, %394
store i32 %395, i32* %35
br label %396
396: ; preds = %513, %392
%397 = load i32, i32* %35
%398 = load i32, i32* %12
%399 = icmp slt i32 %397, %398
br i1 %399, label %400, label %516
400: ; preds = %396
%401 = load i32, i32* %13
store i32 %401, i32* %37
br label %402
402: ; preds = %509, %400
%403 = load i32, i32* %37
%404 = load i32, i32* %11
%405 = load i32, i32* %13
%406 = sub nsw i32 %404, %405
%407 = icmp slt i32 %403, %406
br i1 %407, label %408, label %512
408: ; preds = %402
store i32 0, i32* %38
br label %409
409: ; preds = %416, %408
%410 = load i32, i32* %38
%411 = icmp slt i32 %410, 6
br i1 %411, label %412, label %419
412: ; preds = %409
%413 = load i32, i32* %38
%414 = sext i32 %413 to i64
%415 = getelementptr inbounds [6 x float], [6 x float]* %36, i64 0, i64 %414
store float 0.000000e+00, float* %415
br label %416
416: ; preds = %412
%417 = load i32, i32* %38
%418 = add nsw i32 %417, 1
store i32 %418, i32* %38
br label %409
419: ; preds = %409
%420 = load i32, i32* %35
%421 = sub nsw i32 %420, 1
store i32 %421, i32* %39
br label %422
422: ; preds = %485, %419
%423 = load i32, i32* %39
%424 = load i32, i32* %35
%425 = add nsw i32 %424, 2
%426 = icmp slt i32 %423, %425
br i1 %426, label %427, label %488
427: ; preds = %422
%428 = load i32, i32* %37
%429 = sub nsw i32 %428, 1
store i32 %429, i32* %40
br label %430
430: ; preds = %481, %427
%431 = load i32, i32* %40
%432 = load i32, i32* %37
%433 = add nsw i32 %432, 2
%434 = icmp slt i32 %431, %433
br i1 %434, label %435, label %484
435: ; preds = %430
%436 = load i32, i32* %39
%437 = icmp sgt i32 %436, -1
br i1 %437, label %438, label %480
438: ; preds = %435
%439 = load i32, i32* %39
%440 = load i32, i32* %12
%441 = icmp slt i32 %439, %440
br i1 %441, label %442, label %480
442: ; preds = %438
%443 = load i32, i32* %40
%444 = load i32, i32* %11
%445 = icmp slt i32 %443, %444
br i1 %445, label %446, label %480
446: ; preds = %442
%447 = load i32*, i32** %10
%448 = load i32, i32* %39
%449 = and i32 %448, 1
%450 = shl i32 %449, 1
%451 = load i32, i32* %40
%452 = and i32 %451, 1
%453 = or i32 %450, %452
%454 = sext i32 %453 to i64
%455 = getelementptr inbounds i32, i32* %447, i64 %454
%456 = load i32, i32* %455
store i32 %456, i32* %41
%457 = load float*, float** %9
%458 = load i32, i32* %39
%459 = load i32, i32* %11
%460 = mul nsw i32 %458, %459
%461 = load i32, i32* %40
%462 = add nsw i32 %460, %461
%463 = sext i32 %462 to i64
%464 = getelementptr inbounds float, float* %457, i64 %463
%465 = load float, float* %464
%466 = load float, float* %15
%467 = call i64 @safe_in(float %465, float %466)
%468 = sitofp i64 %467 to float
%469 = load i32, i32* %41
%470 = sext i32 %469 to i64
%471 = getelementptr inbounds [6 x float], [6 x float]* %36, i64 0, i64 %470
%472 = load float, float* %471
%473 = fadd float %472, %468
store float %473, float* %471
%474 = load i32, i32* %41
%475 = add nsw i32 %474, 3
%476 = sext i32 %475 to i64
%477 = getelementptr inbounds [6 x float], [6 x float]* %36, i64 0, i64 %476
%478 = load float, float* %477
%479 = fadd float %478, 1.000000e+00
store float %479, float* %477
br label %480
480: ; preds = %446, %442, %438, %435
br label %481
481: ; preds = %480
%482 = load i32, i32* %40
%483 = add nsw i32 %482, 1
store i32 %483, i32* %40
br label %430
484: ; preds = %430
br label %485
485: ; preds = %484
%486 = load i32, i32* %39
%487 = add nsw i32 %486, 1
store i32 %487, i32* %39
br label %422
488: ; preds = %422
%489 = load float*, float** %8
%490 = load float*, float** %9
%491 = getelementptr inbounds [6 x float], [6 x float]* %36, i64 0, i64 0
%492 = load i32, i32* %35
%493 = load i32, i32* %11
%494 = mul nsw i32 %492, %493
%495 = load i32, i32* %37
%496 = add nsw i32 %494, %495
%497 = load i32*, i32** %10
%498 = load i32, i32* %35
%499 = and i32 %498, 1
%500 = shl i32 %499, 1
%501 = load i32, i32* %37
%502 = and i32 %501, 1
%503 = or i32 %500, %502
%504 = sext i32 %503 to i64
%505 = getelementptr inbounds i32, i32* %497, i64 %504
%506 = load i32, i32* %505
%507 = load float, float* %14
%508 = call i32 @approxit(float* %489, float* %490, float* %491, i32 %496, i32 %506, float %507)
br label %509
509: ; preds = %488
%510 = load i32, i32* %37
%511 = add nsw i32 %510, 1
store i32 %511, i32* %37
br label %402
512: ; preds = %402
br label %513
513: ; preds = %512
%514 = load i32, i32* %35
%515 = add nsw i32 %514, 1
store i32 %515, i32* %35
br label %396
516: ; preds = %396
ret void
}

LLVM IR (-O2):
define void @rcd_border_interpolate(float* %0, float* %1, i32* nocapture %2, i32 %3, i32 %4, i32 %5, float %6) {
%8 = alloca [6 x float]
%9 = bitcast [6 x float]* %8 to i8*
%10 = alloca [6 x float]
%11 = bitcast [6 x float]* %10 to i8*
%12 = alloca [6 x float]
%13 = bitcast [6 x float]* %12 to i8*
%14 = fdiv float 1.000000e+00, %6
%15 = icmp sgt i32 %4, 0
br i1 %15, label %16, label %26
16: ; preds = %7
%17 = icmp sgt i32 %5, 0
%18 = getelementptr inbounds [6 x float], [6 x float]* %8, i64 0, i64 0
%19 = sub i32 %3, %5
%20 = sext i32 %3 to i64
%21 = zext i32 %4 to i64
%22 = xor i32 %5, -1
%23 = add i32 %22, %3
%24 = sext i32 %19 to i64
%25 = zext i32 %4 to i64
br label %37
26: ; preds = %165, %7
%27 = icmp sgt i32 %5, 0
br i1 %27, label %28, label %395
28: ; preds = %26
%29 = sub i32 %3, %5
%30 = icmp sgt i32 %29, %5
%31 = getelementptr inbounds [6 x float], [6 x float]* %10, i64 0, i64 0
%32 = add nsw i32 %5, -1
%33 = sext i32 %3 to i64
%34 = sext i32 %4 to i64
%35 = zext i32 %5 to i64
%36 = zext i32 %5 to i64
br label %272
37: ; preds = %16, %165
%38 = phi i64 [ 0, %16 ], [ %167, %165 ]
%39 = phi i64 [ 2, %16 ], [ %168, %165 ]
%40 = phi i64 [ -1, %16 ], [ %166, %165 ]
br i1 %17, label %41, label %61
41: ; preds = %37
%42 = trunc i64 %38 to i32
%43 = shl i32 %42, 1
%44 = and i32 %43, 2
%45 = trunc i64 %38 to i32
%46 = mul i32 %45, %3
br label %47
47: ; preds = %41, %80
%48 = phi i64 [ -1, %41 ], [ %158, %80 ]
%49 = phi i32 [ 0, %41 ], [ %88, %80 ]
%50 = add nsw i64 %48, 1
%51 = icmp sgt i64 %48, -1
%52 = trunc i64 %48 to i32
%53 = and i32 %52, 1
%54 = add nsw i64 %48, 1
%55 = trunc i64 %54 to i32
%56 = and i32 %55, 1
%57 = add nsw i64 %48, 2
%58 = trunc i64 %57 to i32
%59 = and i32 %58, 1
br label %90
60: ; preds = %80
br i1 %17, label %63, label %61
61: ; preds = %37, %60
%62 = add nsw i64 %40, 1
br label %165
63: ; preds = %60
%64 = mul nsw i64 %38, %20
%65 = shl nuw i64 %38, 1
%66 = and i64 %65, 2
%67 = icmp sgt i64 %40, -1
%68 = shl i64 %40, 1
%69 = and i64 %68, 2
%70 = mul nsw i64 %40, %20
%71 = add nsw i64 %40, 1
%72 = shl i64 %71, 1
%73 = and i64 %72, 2
%74 = mul nsw i64 %71, %20
%75 = add nsw i64 %40, 2
%76 = icmp slt i64 %75, %21
%77 = shl i64 %75, 1
%78 = and i64 %77, 2
%79 = mul nsw i64 %75, %20
br label %161
80: ; preds = %157
%81 = add nsw i32 %49, %46
%82 = and i32 %49, 1
%83 = or i32 %82, %44
%84 = zext i32 %83 to i64
%85 = getelementptr inbounds i32, i32* %2, i64 %84
%86 = load i32, i32* %85
%87 = call i32 @approxit(float* %0, float* %1, float* %18, i32 %81, i32 %86, float %6)
%88 = add nuw nsw i32 %49, 1
%89 = icmp eq i32 %88, %5
br i1 %89, label %60, label %47
90: ; preds = %47, %157
%91 = phi i64 [ %40, %47 ], [ %159, %157 ]
%92 = icmp sgt i64 %91, -1
%93 = icmp slt i64 %91, %21
%94 = trunc i64 %91 to i32
%95 = shl nuw i32 %94, 1
%96 = and i32 %95, 2
%97 = mul nsw i64 %91, %20
br i1 %92, label %98, label %157
98: ; preds = %90
%99 = select i1 %93, i1 %51, i1 false
br i1 %99, label %100, label %119
100: ; preds = %98
%101 = or i32 %53, %96
%102 = zext i32 %101 to i64
%103 = getelementptr inbounds i32, i32* %2, i64 %102
%104 = load i32, i32* %103
%105 = add nsw i64 %48, %97
%106 = getelementptr inbounds float, float* %1, i64 %105
%107 = load float, float* %106
%108 = call i64 @safe_in(float %107, float %14)
%109 = sitofp i64 %108 to float
%110 = sext i32 %104 to i64
%111 = getelementptr inbounds [6 x float], [6 x float]* %8, i64 0, i64 %110
%112 = load float, float* %111
%113 = fadd float %112, %109
store float %113, float* %111
%114 = add nsw i32 %104, 3
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [6 x float], [6 x float]* %8, i64 0, i64 %115
%117 = load float, float* %116
%118 = fadd float %117, 1.000000e+00
store float %118, float* %116
br label %119
119: ; preds = %98, %100
br i1 %93, label %120, label %157
120: ; preds = %119
%121 = or i32 %56, %96
%122 = zext i32 %121 to i64
%123 = getelementptr inbounds i32, i32* %2, i64 %122
%124 = load i32, i32* %123
%125 = add nsw i64 %54, %97
%126 = getelementptr inbounds float, float* %1, i64 %125
%127 = load float, float* %126
%128 = call i64 @safe_in(float %127, float %14)
%129 = sitofp i64 %128 to float
%130 = sext i32 %124 to i64
%131 = getelementptr inbounds [6 x float], [6 x float]* %8, i64 0, i64 %130
%132 = load float, float* %131
%133 = fadd float %132, %129
store float %133, float* %131
%134 = add nsw i32 %124, 3
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds [6 x float], [6 x float]* %8, i64 0, i64 %135
%137 = load float, float* %136
%138 = fadd float %137, 1.000000e+00
store float %138, float* %136
%139 = or i32 %59, %96
%140 = zext i32 %139 to i64
%141 = getelementptr inbounds i32, i32* %2, i64 %140
%142 = load i32, i32* %141
%143 = add nsw i64 %57, %97
%144 = getelementptr inbounds float, float* %1, i64 %143
%145 = load float, float* %144
%146 = call i64 @safe_in(float %145, float %14)
%147 = sitofp i64 %146 to float
%148 = sext i32 %142 to i64
%149 = getelementptr inbounds [6 x float], [6 x float]* %8, i64 0, i64 %148
%150 = load float, float* %149
%151 = fadd float %150, %147
store float %151, float* %149
%152 = add nsw i32 %142, 3
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds [6 x float], [6 x float]* %8, i64 0, i64 %153
%155 = load float, float* %154
%156 = fadd float %155, 1.000000e+00
store float %156, float* %154
br label %157
157: ; preds = %119, %90, %120
%158 = phi i64 [ %54, %120 ], [ %50, %90 ], [ %54, %119 ]
%159 = add nsw i64 %91, 1
%160 = icmp eq i64 %159, %39
br i1 %160, label %80, label %90
161: ; preds = %63, %221
%162 = phi i64 [ %24, %63 ], [ %229, %221 ]
%163 = phi i32 [ %23, %63 ], [ %231, %221 ]
%164 = sext i32 %163 to i64
br label %232
165: ; preds = %221, %61
%166 = phi i64 [ %62, %61 ], [ %71, %221 ]
%167 = add nuw nsw i64 %38, 1
%168 = add nuw nsw i64 %39, 1
%169 = icmp eq i64 %167, %25
br i1 %169, label %26, label %37
170: ; preds = %255, %192
%171 = phi i64 [ %193, %192 ], [ %164, %255 ]
%172 = icmp slt i64 %171, %20
br i1 %172, label %173, label %192
173: ; preds = %170
%174 = and i64 %171, 1
%175 = or i64 %174, %73
%176 = getelementptr inbounds i32, i32* %2, i64 %175
%177 = load i32, i32* %176
%178 = add nsw i64 %171, %74
%179 = getelementptr inbounds float, float* %1, i64 %178
%180 = load float, float* %179
%181 = call i64 @safe_in(float %180, float %14)
%182 = sitofp i64 %181 to float
%183 = sext i32 %177 to i64
%184 = getelementptr inbounds [6 x float], [6 x float]* %8, i64 0, i64 %183
%185 = load float, float* %184
%186 = fadd float %185, %182
store float %186, float* %184
%187 = add nsw i32 %177, 3
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds [6 x float], [6 x float]* %8, i64 0, i64 %188
%190 = load float, float* %189
%191 = fadd float %190, 1.000000e+00
store float %191, float* %189
br label %192
192: ; preds = %173, %170
%193 = add nsw i64 %171, 1
%194 = icmp sgt i64 %171, %162
br i1 %194, label %195, label %170
195: ; preds = %192, %218
%196 = phi i64 [ %219, %218 ], [ %164, %192 ]
%197 = icmp slt i64 %196, %20
%198 = select i1 %76, i1 %197, i1 false
br i1 %198, label %199, label %218
199: ; preds = %195
%200 = and i64 %196, 1
%201 = or i64 %200, %78
%202 = getelementptr inbounds i32, i32* %2, i64 %201
%203 = load i32, i32* %202
%204 = add nsw i64 %196, %79
%205 = getelementptr inbounds float, float* %1, i64 %204
%206 = load float, float* %205
%207 = call i64 @safe_in(float %206, float %14)
%208 = sitofp i64 %207 to float
%209 = sext i32 %203 to i64
%210 = getelementptr inbounds [6 x float], [6 x float]* %8, i64 0, i64 %209
%211 = load float, float* %210
%212 = fadd float %211, %208
store float %212, float* %210
%213 = add nsw i32 %203, 3
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds [6 x float], [6 x float]* %8, i64 0, i64 %214
%216 = load float, float* %215
%217 = fadd float %216, 1.000000e+00
store float %217, float* %215
br label %218
218: ; preds = %199, %195
%219 = add nsw i64 %196, 1
%220 = icmp sgt i64 %196, %162
br i1 %220, label %221, label %195
221: ; preds = %218
%222 = add nsw i64 %162, %64
%223 = and i64 %162, 1
%224 = or i64 %223, %66
%225 = getelementptr inbounds i32, i32* %2, i64 %224
%226 = load i32, i32* %225
%227 = trunc i64 %222 to i32
%228 = call i32 @approxit(float* %0, float* %1, float* %18, i32 %227, i32 %226, float %6)
%229 = add nsw i64 %162, 1
%230 = icmp slt i64 %229, %20
%231 = add i32 %163, 1
br i1 %230, label %161, label %165
232: ; preds = %161, %255
%233 = phi i64 [ %164, %161 ], [ %256, %255 ]
%234 = icmp slt i64 %233, %20
%235 = select i1 %67, i1 %234, i1 false
br i1 %235, label %236, label %255
236: ; preds = %232
%237 = and i64 %233, 1
%238 = or i64 %237, %69
%239 = getelementptr inbounds i32, i32* %2, i64 %238
%240 = load i32, i32* %239
%241 = add nsw i64 %233, %70
%242 = getelementptr inbounds float, float* %1, i64 %241
%243 = load float, float* %242
%244 = call i64 @safe_in(float %243, float %14)
%245 = sitofp i64 %244 to float
%246 = sext i32 %240 to i64
%247 = getelementptr inbounds [6 x float], [6 x float]* %8, i64 0, i64 %246
%248 = load float, float* %247
%249 = fadd float %248, %245
store float %249, float* %247
%250 = add nsw i32 %240, 3
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds [6 x float], [6 x float]* %8, i64 0, i64 %251
%253 = load float, float* %252
%254 = fadd float %253, 1.000000e+00
store float %254, float* %252
br label %255
255: ; preds = %232, %236
%256 = add i64 %233, 1
%257 = icmp sgt i64 %233, %162
br i1 %257, label %170, label %232
258: ; preds = %300
br i1 %27, label %259, label %395
259: ; preds = %258
%260 = sub i32 %4, %5
%261 = sub i32 %3, %5
%262 = icmp sgt i32 %261, %5
%263 = getelementptr inbounds [6 x float], [6 x float]* %12, i64 0, i64 0
%264 = add nsw i32 %5, -1
%265 = sext i32 %3 to i64
%266 = xor i32 %5, -1
%267 = add i32 %266, %4
%268 = sext i32 %4 to i64
%269 = zext i32 %5 to i64
%270 = sext i32 %260 to i64
%271 = sext i32 %261 to i64
br label %396
272: ; preds = %28, %300
%273 = phi i64 [ 0, %28 ], [ %302, %300 ]
%274 = phi i64 [ -1, %28 ], [ %301, %300 ]
br i1 %30, label %277, label %275
275: ; preds = %272
%276 = add nsw i64 %274, 1
br label %300
277: ; preds = %272
%278 = mul nsw i64 %273, %33
%279 = shl nuw i64 %273, 1
%280 = and i64 %279, 2
%281 = icmp sgt i64 %274, -1
%282 = icmp slt i64 %274, %34
%283 = shl i64 %274, 1
%284 = and i64 %283, 2
%285 = mul nsw i64 %274, %33
%286 = add nsw i64 %274, 1
%287 = icmp slt i64 %286, %34
%288 = shl i64 %286, 1
%289 = and i64 %288, 2
%290 = mul nsw i64 %286, %33
%291 = add nsw i64 %274, 2
%292 = icmp slt i64 %291, %34
%293 = shl i64 %291, 1
%294 = and i64 %293, 2
%295 = mul nsw i64 %291, %33
br label %296
296: ; preds = %277, %356
%297 = phi i64 [ %35, %277 ], [ %364, %356 ]
%298 = phi i32 [ %32, %277 ], [ %365, %356 ]
%299 = sext i32 %298 to i64
br label %368
300: ; preds = %356, %275
%301 = phi i64 [ %276, %275 ], [ %286, %356 ]
%302 = add nuw nsw i64 %273, 1
%303 = icmp eq i64 %302, %36
br i1 %303, label %258, label %272
304: ; preds = %392, %327
%305 = phi i64 [ %328, %327 ], [ %299, %392 ]
%306 = icmp sgt i64 %305, -1
%307 = select i1 %287, i1 %306, i1 false
br i1 %307, label %308, label %327
308: ; preds = %304
%309 = and i64 %305, 1
%310 = or i64 %309, %289
%311 = getelementptr inbounds i32, i32* %2, i64 %310
%312 = load i32, i32* %311
%313 = add nsw i64 %305, %290
%314 = getelementptr inbounds float, float* %1, i64 %313
%315 = load float, float* %314
%316 = call i64 @safe_in(float %315, float %14)
%317 = sitofp i64 %316 to float
%318 = sext i32 %312 to i64
%319 = getelementptr inbounds [6 x float], [6 x float]* %10, i64 0, i64 %318
%320 = load float, float* %319
%321 = fadd float %320, %317
store float %321, float* %319
%322 = add nsw i32 %312, 3
%323 = sext i32 %322 to i64
%324 = getelementptr inbounds [6 x float], [6 x float]* %10, i64 0, i64 %323
%325 = load float, float* %324
%326 = fadd float %325, 1.000000e+00
store float %326, float* %324
br label %327
327: ; preds = %308, %304
%328 = add nsw i64 %305, 1
%329 = icmp sgt i64 %305, %297
br i1 %329, label %330, label %304
330: ; preds = %327, %353
%331 = phi i64 [ %354, %353 ], [ %299, %327 ]
%332 = icmp sgt i64 %331, -1
%333 = select i1 %292, i1 %332, i1 false
br i1 %333, label %334, label %353
334: ; preds = %330
%335 = and i64 %331, 1
%336 = or i64 %335, %294
%337 = getelementptr inbounds i32, i32* %2, i64 %336
%338 = load i32, i32* %337
%339 = add nsw i64 %331, %295
%340 = getelementptr inbounds float, float* %1, i64 %339
%341 = load float, float* %340
%342 = call i64 @safe_in(float %341, float %14)
%343 = sitofp i64 %342 to float
%344 = sext i32 %338 to i64
%345 = getelementptr inbounds [6 x float], [6 x float]* %10, i64 0, i64 %344
%346 = load float, float* %345
%347 = fadd float %346, %343
store float %347, float* %345
%348 = add nsw i32 %338, 3
%349 = sext i32 %348 to i64
%350 = getelementptr inbounds [6 x float], [6 x float]* %10, i64 0, i64 %349
%351 = load float, float* %350
%352 = fadd float %351, 1.000000e+00
store float %352, float* %350
br label %353
353: ; preds = %334, %330
%354 = add nsw i64 %331, 1
%355 = icmp sgt i64 %331, %297
br i1 %355, label %356, label %330
356: ; preds = %353
%357 = add nsw i64 %297, %278
%358 = and i64 %297, 1
%359 = or i64 %358, %280
%360 = getelementptr inbounds i32, i32* %2, i64 %359
%361 = load i32, i32* %360
%362 = trunc i64 %357 to i32
%363 = call i32 @approxit(float* %0, float* %1, float* %31, i32 %362, i32 %361, float %6)
%364 = add nuw nsw i64 %297, 1
%365 = add i32 %298, 1
%366 = trunc i64 %364 to i32
%367 = icmp eq i32 %29, %366
br i1 %367, label %300, label %296
368: ; preds = %296, %392
%369 = phi i64 [ %299, %296 ], [ %393, %392 ]
br i1 %281, label %370, label %392
370: ; preds = %368
%371 = icmp sgt i64 %369, -1
%372 = select i1 %282, i1 %371, i1 false
br i1 %372, label %373, label %392
373: ; preds = %370
%374 = and i64 %369, 1
%375 = or i64 %374, %284
%376 = getelementptr inbounds i32, i32* %2, i64 %375
%377 = load i32, i32* %376
%378 = add nsw i64 %369, %285
%379 = getelementptr inbounds float, float* %1, i64 %378
%380 = load float, float* %379
%381 = call i64 @safe_in(float %380, float %14)
%382 = sitofp i64 %381 to float
%383 = sext i32 %377 to i64
%384 = getelementptr inbounds [6 x float], [6 x float]* %10, i64 0, i64 %383
%385 = load float, float* %384
%386 = fadd float %385, %382
store float %386, float* %384
%387 = add nsw i32 %377, 3
%388 = sext i32 %387 to i64
%389 = getelementptr inbounds [6 x float], [6 x float]* %10, i64 0, i64 %388
%390 = load float, float* %389
%391 = fadd float %390, 1.000000e+00
store float %391, float* %389
br label %392
392: ; preds = %368, %370, %373
%393 = add i64 %369, 1
%394 = icmp sgt i64 %369, %297
br i1 %394, label %304, label %368
395: ; preds = %408, %26, %258
ret void
396: ; preds = %259, %408
%397 = phi i64 [ %270, %259 ], [ %409, %408 ]
%398 = phi i32 [ %267, %259 ], [ %411, %408 ]
%399 = sext i32 %398 to i64
br i1 %262, label %400, label %408
400: ; preds = %396
%401 = mul nsw i64 %397, %265
%402 = shl i64 %397, 1
%403 = and i64 %402, 2
br label %404
404: ; preds = %400, %412
%405 = phi i64 [ %269, %400 ], [ %420, %412 ]
%406 = phi i32 [ %264, %400 ], [ %421, %412 ]
%407 = sext i32 %406 to i64
br label %423
408: ; preds = %412, %396
%409 = add nsw i64 %397, 1
%410 = icmp slt i64 %409, %268
%411 = add i32 %398, 1
br i1 %410, label %396, label %395
412: ; preds = %431
%413 = add nsw i64 %405, %401
%414 = and i64 %405, 1
%415 = or i64 %414, %403
%416 = getelementptr inbounds i32, i32* %2, i64 %415
%417 = load i32, i32* %416
%418 = trunc i64 %413 to i32
%419 = call i32 @approxit(float* %0, float* %1, float* %263, i32 %418, i32 %417, float %6)
%420 = add nuw nsw i64 %405, 1
%421 = add i32 %406, 1
%422 = icmp eq i64 %420, %271
br i1 %422, label %408, label %404
423: ; preds = %404, %431
%424 = phi i64 [ %399, %404 ], [ %432, %431 ]
%425 = icmp sgt i64 %424, -1
%426 = icmp slt i64 %424, %268
%427 = and i1 %425, %426
%428 = shl i64 %424, 1
%429 = and i64 %428, 2
%430 = mul nsw i64 %424, %265
br label %434
431: ; preds = %457
%432 = add i64 %424, 1
%433 = icmp sgt i64 %424, %397
br i1 %433, label %412, label %423
434: ; preds = %423, %457
%435 = phi i64 [ %407, %423 ], [ %458, %457 ]
%436 = icmp slt i64 %435, %265
%437 = select i1 %427, i1 %436, i1 false
br i1 %437, label %438, label %457
438: ; preds = %434
%439 = and i64 %435, 1
%440 = or i64 %439, %429
%441 = getelementptr inbounds i32, i32* %2, i64 %440
%442 = load i32, i32* %441
%443 = add nsw i64 %435, %430
%444 = getelementptr inbounds float, float* %1, i64 %443
%445 = load float, float* %444
%446 = call i64 @safe_in(float %445, float %14)
%447 = sitofp i64 %446 to float
%448 = sext i32 %442 to i64
%449 = getelementptr inbounds [6 x float], [6 x float]* %12, i64 0, i64 %448
%450 = load float, float* %449
%451 = fadd float %450, %447
store float %451, float* %449
%452 = add nsw i32 %442, 3
%453 = sext i32 %452 to i64
%454 = getelementptr inbounds [6 x float], [6 x float]* %12, i64 0, i64 %453
%455 = load float, float* %454
%456 = fadd float %455, 1.000000e+00
store float %456, float* %454
br label %457
457: ; preds = %434, %438
%458 = add i64 %435, 1
%459 = icmp sgt i64 %435, %405
br i1 %459, label %431, label %434
}