#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 */

/* Variables and functions */
float abs(float);
double sin(double);
void image_c_resampling_lanczos2(float *org, int noy, int nox, float *trg,
                                 int ny, int nx) {
  float scaley = noy / (float)ny;
  float scalex = nox / (float)nx;
  int x, y;
  int xi, yi;
  float xt, yt;
  int u, v;
  int wy, wx;
  float p, q;
  float dx, dy;
  for (y = 0; y < ny; ++y) {
    yt = y * scaley;
    yi = (int)yt;
    for (x = 0; x < nx; ++x) {
      xt = x * scalex;
      xi = (int)xt;
      q = 0;
      for (wy = -1; wy < 3; ++wy) {
        v = yi + wy;
        if (v >= noy) {
          continue;
        }
        if (v < 0) {
          continue;
        }
        dy = yt - v;
        if (abs(dy) > 2.0f) {
          dy = 2.0f;
        }
        p = 0;
        for (wx = -1; wx < 3; ++wx) {
          u = xi + wx;
          if (u >= nox) {
            continue;
          }
          if (u < 0) {
            continue;
          }
          dx = xt - u;
          if (abs(dx) > 2.0f) {
            dx = 2.0f;
          }
          p = p +
              org[v * nox + u] *
                  ((dx) == (0)
                       ? 1
                       : sin(3.141592653589793238462643383279 * (dx)) /
                             (3.141592653589793238462643383279 * (dx))) *
                  ((dx * 0.5f) == (0)
                       ? 1
                       : sin(3.141592653589793238462643383279 * (dx * 0.5f)) /
                             (3.141592653589793238462643383279 * (dx * 0.5f)));
        }
        q = q +
            p *
                ((dy) == (0) ? 1
                             : sin(3.141592653589793238462643383279 * (dy)) /
                                   (3.141592653589793238462643383279 * (dy))) *
                ((dy * 0.5f) == (0)
                     ? 1
                     : sin(3.141592653589793238462643383279 * (dy * 0.5f)) /
                           (3.141592653589793238462643383279 * (dy * 0.5f)));
      }
      trg[y * nx + x] += q;
    }
  }
}


x86 assembly (clang, -O0):
<image_c_resampling_lanczos2>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9d,-0x20(%rbp)
cvtsi2ssl -0xc(%rbp),%xmm0
cvtsi2ssl -0x1c(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
cvtsi2ssl -0x10(%rbp),%xmm0
cvtsi2ssl -0x20(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x28(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    15a2 <image_c_resampling_lanczos2+0x482>
cvtsi2ssl -0x30(%rbp),%xmm0
mulss  -0x24(%rbp),%xmm0
movss  %xmm0,-0x40(%rbp)
cvttss2si -0x40(%rbp),%eax
mov    %eax,-0x38(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    158f <image_c_resampling_lanczos2+0x46f>
cvtsi2ssl -0x2c(%rbp),%xmm0
mulss  -0x28(%rbp),%xmm0
movss  %xmm0,-0x3c(%rbp)
cvttss2si -0x3c(%rbp),%eax
mov    %eax,-0x34(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x58(%rbp)
movl   $0xffffffff,-0x4c(%rbp)
cmpl   $0x3,-0x4c(%rbp)
jge    1561 <image_c_resampling_lanczos2+0x441>
mov    -0x38(%rbp),%eax
add    -0x4c(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0xc(%rbp),%eax
jl     11ee <image_c_resampling_lanczos2+0xce>
jmp    1553 <image_c_resampling_lanczos2+0x433>
cmpl   $0x0,-0x48(%rbp)
jge    11fd <image_c_resampling_lanczos2+0xdd>
jmp    1553 <image_c_resampling_lanczos2+0x433>
movss  -0x40(%rbp),%xmm0
cvtsi2ssl -0x48(%rbp),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x60(%rbp)
movss  -0x60(%rbp),%xmm0
call   1030 <abs@plt>
movss  0xdde(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    1238 <image_c_resampling_lanczos2+0x118>
movss  0xdcd(%rip),%xmm0
movss  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x54(%rbp)
movl   $0xffffffff,-0x50(%rbp)
cmpl   $0x3,-0x50(%rbp)
jge    1406 <image_c_resampling_lanczos2+0x2e6>
mov    -0x34(%rbp),%eax
add    -0x50(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x10(%rbp),%eax
jl     126b <image_c_resampling_lanczos2+0x14b>
jmp    13f8 <image_c_resampling_lanczos2+0x2d8>
cmpl   $0x0,-0x44(%rbp)
jge    127a <image_c_resampling_lanczos2+0x15a>
jmp    13f8 <image_c_resampling_lanczos2+0x2d8>
movss  -0x3c(%rbp),%xmm0
cvtsi2ssl -0x44(%rbp),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x5c(%rbp)
movss  -0x5c(%rbp),%xmm0
call   1030 <abs@plt>
movss  0xd61(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    12b5 <image_c_resampling_lanczos2+0x195>
movss  0xd50(%rip),%xmm0
movss  %xmm0,-0x5c(%rbp)
movss  -0x54(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x48(%rbp),%ecx
imul   -0x10(%rbp),%ecx
add    -0x44(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
movss  -0x5c(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    130b <image_c_resampling_lanczos2+0x1eb>
jp     130b <image_c_resampling_lanczos2+0x1eb>
movsd  0xd0f(%rip),%xmm0
movsd  %xmm0,-0x78(%rbp)
jmp    1343 <image_c_resampling_lanczos2+0x223>
movss  -0x5c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xcec(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1040 <sin@plt>
movss  -0x5c(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xcd2(%rip),%xmm1
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movss  0xca6(%rip),%xmm0
mulss  -0x5c(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    138a <image_c_resampling_lanczos2+0x26a>
jp     138a <image_c_resampling_lanczos2+0x26a>
movsd  0xc93(%rip),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
jmp    13d5 <image_c_resampling_lanczos2+0x2b5>
movss  0xc72(%rip),%xmm0
mulss  -0x5c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xc65(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1040 <sin@plt>
movss  0xc50(%rip),%xmm1
mulss  -0x5c(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xc43(%rip),%xmm1
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x70(%rbp),%xmm1
movsd  -0x80(%rbp),%xmm0
movsd  -0x88(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x54(%rbp)
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    1247 <image_c_resampling_lanczos2+0x127>
movss  -0x58(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movss  -0x54(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movss  -0x60(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1454 <image_c_resampling_lanczos2+0x334>
jp     1454 <image_c_resampling_lanczos2+0x334>
movsd  0xbc9(%rip),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
jmp    148f <image_c_resampling_lanczos2+0x36f>
movss  -0x60(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xba3(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1040 <sin@plt>
movss  -0x60(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xb89(%rip),%xmm1
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm1
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movss  0xb51(%rip),%xmm0
mulss  -0x60(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    14df <image_c_resampling_lanczos2+0x3bf>
jp     14df <image_c_resampling_lanczos2+0x3bf>
movsd  0xb3e(%rip),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
jmp    152a <image_c_resampling_lanczos2+0x40a>
movss  0xb1d(%rip),%xmm0
mulss  -0x60(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xb10(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1040 <sin@plt>
movss  0xafb(%rip),%xmm1
mulss  -0x60(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xaee(%rip),%xmm1
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x98(%rbp),%xmm1
ff
movsd  -0xa8(%rbp),%xmm0
ff
movsd  -0xb0(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x58(%rbp)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    11ca <image_c_resampling_lanczos2+0xaa>
movss  -0x58(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%ecx
imul   -0x20(%rbp),%ecx
add    -0x2c(%rbp),%ecx
movslq %ecx,%rcx
addss  (%rax,%rcx,4),%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1198 <image_c_resampling_lanczos2+0x78>
jmp    1594 <image_c_resampling_lanczos2+0x474>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    116e <image_c_resampling_lanczos2+0x4e>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<image_c_resampling_lanczos2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x108,%rsp
mov    %r9d,0x44(%rsp)
mov    %rcx,0x98(%rsp)
mov    %rdi,0x80(%rsp)
test   %r8d,%r8d
jle    18bc <image_c_resampling_lanczos2+0x79c>
cvtsi2ss %esi,%xmm2
cvtsi2ss %r8d,%xmm0
cvtsi2ss %edx,%xmm3
mov    0x44(%rsp),%eax
cvtsi2ss %eax,%xmm1
divss  %xmm0,%xmm2
movss  %xmm2,0x50(%rsp)
divss  %xmm1,%xmm3
movss  %xmm3,0x54(%rsp)
movslq %edx,%rcx
movslq %esi,%rbp
cltq
mov    %r8d,%edx
mov    %rdx,0x88(%rsp)
mov    %rax,0x78(%rsp)
mov    %eax,%eax
mov    %rax,0x90(%rsp)
mov    %rcx,0x70(%rsp)
lea    0x0(,%rcx,4),%r14
xor    %eax,%eax
mov    %rax,0x48(%rsp)
jmp    11cf <image_c_resampling_lanczos2+0xaf>
mov    0x48(%rsp),%rcx
add    $0x1,%rcx
mov    %rcx,%rax
mov    %rcx,0x48(%rsp)
cmp    0x88(%rsp),%rcx
je     18bc <image_c_resampling_lanczos2+0x79c>
cmpl   $0x0,0x44(%rsp)
jle    11b0 <image_c_resampling_lanczos2+0x90>
mov    0x48(%rsp),%rax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
mulss  0x50(%rsp),%xmm0
movss  %xmm0,0x58(%rsp)
cvttss2si %xmm0,%ecx
imul   0x78(%rsp),%rax
mov    %rax,0xa8(%rsp)
mov    %rcx,0xb8(%rsp)
movslq %ecx,%r13
lea    -0x1(%r13),%rax
imul   0x70(%rsp),%rax
mov    0x80(%rsp),%rcx
lea    (%rcx,%rax,4),%rax
mov    %rax,0xa0(%rsp)
xor    %edx,%edx
jmp    1267 <image_c_resampling_lanczos2+0x147>
nopl   (%rax)
mov    0xa8(%rsp),%rax
mov    0xb0(%rsp),%rdx
add    %rdx,%rax
mov    0x98(%rsp),%rcx
addss  (%rcx,%rax,4),%xmm0
movss  %xmm0,(%rcx,%rax,4)
add    $0x1,%rdx
cmp    0x90(%rsp),%rdx
je     11b0 <image_c_resampling_lanczos2+0x90>
mov    %rdx,0xb0(%rsp)
xorps  %xmm1,%xmm1
cvtsi2ss %edx,%xmm1
mulss  0x54(%rsp),%xmm1
cvttss2si %xmm1,%eax
cltq
lea    -0x1(%rax),%esi
test   %eax,%eax
setle  %dl
sets   %r8b
mov    0x70(%rsp),%rdi
cmp    %edi,%eax
setg   %cl
setge  %bl
or     %dl,%cl
mov    %cl,0x7(%rsp)
xorps  %xmm0,%xmm0
cvtsi2ss %esi,%xmm0
movaps %xmm1,%xmm2
subss  %xmm0,%xmm2
movaps %xmm2,0xe0(%rsp)
or     %r8b,%bl
mov    %bl,0x6(%rsp)
cvttps2dq %xmm1,%xmm0
cvtdq2ps %xmm0,%xmm0
movaps %xmm1,%xmm2
subss  %xmm0,%xmm2
movaps %xmm2,0xd0(%rsp)
lea    0x1(%rax),%rcx
cmp    %rdi,%rcx
setge  %dl
cmp    $0xffffffff,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %ecx,%xmm0
setl   %cl
or     %dl,%cl
mov    %cl,0x5(%rsp)
movaps %xmm1,%xmm2
subss  %xmm0,%xmm2
movaps %xmm2,0xc0(%rsp)
lea    0x2(%rax),%rcx
cmp    %rdi,%rcx
setge  %dl
cmp    $0xfffffffe,%eax
setl   %bl
or     %dl,%bl
xorps  %xmm0,%xmm0
cvtsi2ss %ecx,%xmm0
subss  %xmm0,%xmm1
movaps %xmm1,0xf0(%rsp)
mov    0xa0(%rsp),%rcx
lea    (%rcx,%rax,4),%r12
xorps  %xmm0,%xmm0
mov    $0xffffffffffffffff,%r15
jmp    1372 <image_c_resampling_lanczos2+0x252>
nopl   (%rax)
movss  0x5c(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
cvtss2sd %xmm2,%xmm2
mulsd  %xmm2,%xmm4
mulsd  %xmm0,%xmm4
addsd  %xmm1,%xmm4
xorps  %xmm0,%xmm0
cvtsd2ss %xmm4,%xmm0
add    $0x1,%r15
add    %r14,%r12
cmp    $0x3,%r15
je     1230 <image_c_resampling_lanczos2+0x110>
lea    (%r15,%r13,1),%rax
cmp    %rbp,%rax
jge    1361 <image_c_resampling_lanczos2+0x241>
test   %rax,%rax
js     1361 <image_c_resampling_lanczos2+0x241>
movss  %xmm0,0x5c(%rsp)
mov    0xb8(%rsp),%rax
add    %r15d,%eax
xorps  %xmm1,%xmm1
cvtsi2ss %eax,%xmm1
movss  0x58(%rsp),%xmm0
subss  %xmm1,%xmm0
movaps %xmm0,0x60(%rsp)
call   1030 <abs@plt>
movss  %xmm0,0x38(%rsp)
xorps  %xmm2,%xmm2
cmpb   $0x0,0x7(%rsp)
je     13f0 <image_c_resampling_lanczos2+0x2d0>
cmpb   $0x0,0x6(%rsp)
je     14ec <image_c_resampling_lanczos2+0x3cc>
cmpb   $0x0,0x5(%rsp)
je     15f2 <image_c_resampling_lanczos2+0x4d2>
xorps  %xmm3,%xmm3
test   %bl,%bl
je     16f9 <image_c_resampling_lanczos2+0x5d9>
jmp    17f8 <image_c_resampling_lanczos2+0x6d8>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movaps 0xe0(%rsp),%xmm0
call   1030 <abs@plt>
movss  0xbfb(%rip),%xmm1
movaps %xmm1,%xmm4
cmpltss %xmm0,%xmm4
movaps %xmm4,%xmm0
andps  %xmm1,%xmm0
andnps 0xe0(%rsp),%xmm4
orps   %xmm0,%xmm4
movss  -0x4(%r12),%xmm2
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm4
movsd  0xbd5(%rip),%xmm0
movapd %xmm0,%xmm3
jne    143b <image_c_resampling_lanczos2+0x31b>
jnp    147e <image_c_resampling_lanczos2+0x35e>
xorps  %xmm0,%xmm0
cvtss2sd %xmm4,%xmm0
mulsd  0xbc6(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movss  %xmm2,(%rsp)
movaps %xmm4,0x20(%rsp)
call   1040 <sin@plt>
movaps 0x20(%rsp),%xmm4
movss  (%rsp),%xmm2
xorps  %xmm1,%xmm1
movapd %xmm0,%xmm3
movsd  0xb90(%rip),%xmm0
divsd  0x10(%rsp),%xmm3
mulss  0xb7e(%rip),%xmm4
ucomiss %xmm1,%xmm4
jne    148d <image_c_resampling_lanczos2+0x36d>
jnp    14c3 <image_c_resampling_lanczos2+0x3a3>
xorps  %xmm0,%xmm0
cvtss2sd %xmm4,%xmm0
mulsd  0xb74(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movss  %xmm2,(%rsp)
movsd  %xmm3,0x20(%rsp)
call   1040 <sin@plt>
movsd  0x20(%rsp),%xmm3
movss  (%rsp),%xmm2
divsd  0x10(%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm2,%xmm1
mulsd  %xmm1,%xmm3
mulsd  %xmm0,%xmm3
addsd  0xb3e(%rip),%xmm3
xorps  %xmm2,%xmm2
cvtsd2ss %xmm3,%xmm2
cmpb   $0x0,0x6(%rsp)
jne    13c7 <image_c_resampling_lanczos2+0x2a7>
movss  %xmm2,(%rsp)
movaps 0xd0(%rsp),%xmm0
call   1030 <abs@plt>
movss  0xafa(%rip),%xmm1
movaps %xmm1,%xmm4
cmpltss %xmm0,%xmm4
movaps %xmm4,%xmm0
andps  %xmm1,%xmm0
andnps 0xd0(%rsp),%xmm4
orps   %xmm0,%xmm4
movss  (%r12),%xmm2
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm4
movsd  0xad5(%rip),%xmm0
movapd %xmm0,%xmm3
jne    153b <image_c_resampling_lanczos2+0x41b>
jnp    1580 <image_c_resampling_lanczos2+0x460>
xorps  %xmm0,%xmm0
cvtss2sd %xmm4,%xmm0
mulsd  0xac6(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movss  %xmm2,0x20(%rsp)
movaps %xmm4,0x10(%rsp)
call   1040 <sin@plt>
movaps 0x10(%rsp),%xmm4
movss  0x20(%rsp),%xmm2
xorps  %xmm1,%xmm1
movapd %xmm0,%xmm3
movsd  0xa8e(%rip),%xmm0
divsd  0x8(%rsp),%xmm3
mulss  0xa7c(%rip),%xmm4
ucomiss %xmm1,%xmm4
jne    158f <image_c_resampling_lanczos2+0x46f>
jnp    15c7 <image_c_resampling_lanczos2+0x4a7>
xorps  %xmm0,%xmm0
cvtss2sd %xmm4,%xmm0
mulsd  0xa72(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movss  %xmm2,0x20(%rsp)
movsd  %xmm3,0x10(%rsp)
call   1040 <sin@plt>
movsd  0x10(%rsp),%xmm3
movss  0x20(%rsp),%xmm2
divsd  0x8(%rsp),%xmm0
movss  (%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
cvtss2sd %xmm2,%xmm2
mulsd  %xmm2,%xmm3
mulsd  %xmm0,%xmm3
addsd  %xmm1,%xmm3
xorps  %xmm2,%xmm2
cvtsd2ss %xmm3,%xmm2
cmpb   $0x0,0x5(%rsp)
jne    13d2 <image_c_resampling_lanczos2+0x2b2>
movss  %xmm2,(%rsp)
movaps 0xc0(%rsp),%xmm0
call   1030 <abs@plt>
movss  0x9f4(%rip),%xmm1
movaps %xmm1,%xmm5
cmpltss %xmm0,%xmm5
movaps %xmm5,%xmm0
andps  %xmm1,%xmm0
andnps 0xc0(%rsp),%xmm5
orps   %xmm0,%xmm5
movss  0x4(%r12),%xmm2
xorps  %xmm3,%xmm3
ucomiss %xmm3,%xmm5
movsd  0x9ce(%rip),%xmm0
movapd %xmm0,%xmm4
jne    1642 <image_c_resampling_lanczos2+0x522>
jnp    1687 <image_c_resampling_lanczos2+0x567>
xorps  %xmm0,%xmm0
cvtss2sd %xmm5,%xmm0
mulsd  0x9bf(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movss  %xmm2,0x20(%rsp)
movaps %xmm5,0x10(%rsp)
call   1040 <sin@plt>
movaps 0x10(%rsp),%xmm5
movss  0x20(%rsp),%xmm2
xorps  %xmm3,%xmm3
movapd %xmm0,%xmm4
movsd  0x987(%rip),%xmm0
divsd  0x8(%rsp),%xmm4
mulss  0x975(%rip),%xmm5
ucomiss %xmm3,%xmm5
jne    1696 <image_c_resampling_lanczos2+0x576>
jnp    16d1 <image_c_resampling_lanczos2+0x5b1>
xorps  %xmm0,%xmm0
cvtss2sd %xmm5,%xmm0
mulsd  0x96b(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movss  %xmm2,0x20(%rsp)
movsd  %xmm4,0x10(%rsp)
call   1040 <sin@plt>
movsd  0x10(%rsp),%xmm4
movss  0x20(%rsp),%xmm2
xorps  %xmm3,%xmm3
divsd  0x8(%rsp),%xmm0
movss  (%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
cvtss2sd %xmm2,%xmm2
mulsd  %xmm2,%xmm4
mulsd  %xmm0,%xmm4
addsd  %xmm1,%xmm4
xorps  %xmm2,%xmm2
cvtsd2ss %xmm4,%xmm2
test   %bl,%bl
jne    17f8 <image_c_resampling_lanczos2+0x6d8>
movss  %xmm2,(%rsp)
movaps 0xf0(%rsp),%xmm0
call   1030 <abs@plt>
xorps  %xmm3,%xmm3
movss  0x8ea(%rip),%xmm1
movaps %xmm1,%xmm5
cmpltss %xmm0,%xmm5
movaps %xmm5,%xmm0
andps  %xmm1,%xmm0
andnps 0xf0(%rsp),%xmm5
orps   %xmm0,%xmm5
movss  0x8(%r12),%xmm2
ucomiss %xmm3,%xmm5
movsd  0x8c7(%rip),%xmm0
movapd %xmm0,%xmm4
jne    1749 <image_c_resampling_lanczos2+0x629>
jnp    178e <image_c_resampling_lanczos2+0x66e>
xorps  %xmm0,%xmm0
cvtss2sd %xmm5,%xmm0
mulsd  0x8b8(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movss  %xmm2,0x20(%rsp)
movaps %xmm5,0x10(%rsp)
call   1040 <sin@plt>
movaps 0x10(%rsp),%xmm5
movss  0x20(%rsp),%xmm2
xorps  %xmm3,%xmm3
movapd %xmm0,%xmm4
movsd  0x880(%rip),%xmm0
divsd  0x8(%rsp),%xmm4
mulss  0x86e(%rip),%xmm5
ucomiss %xmm3,%xmm5
jne    179d <image_c_resampling_lanczos2+0x67d>
jnp    17d8 <image_c_resampling_lanczos2+0x6b8>
xorps  %xmm0,%xmm0
cvtss2sd %xmm5,%xmm0
mulsd  0x864(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movss  %xmm2,0x20(%rsp)
movsd  %xmm4,0x10(%rsp)
call   1040 <sin@plt>
movsd  0x10(%rsp),%xmm4
movss  0x20(%rsp),%xmm2
xorps  %xmm3,%xmm3
divsd  0x8(%rsp),%xmm0
movss  (%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
cvtss2sd %xmm2,%xmm2
mulsd  %xmm2,%xmm4
mulsd  %xmm0,%xmm4
addsd  %xmm1,%xmm4
xorps  %xmm2,%xmm2
cvtsd2ss %xmm4,%xmm2
movss  0x800(%rip),%xmm1
movaps %xmm1,%xmm5
cmpltss 0x38(%rsp),%xmm5
movaps %xmm5,%xmm0
andps  %xmm1,%xmm0
andnps 0x60(%rsp),%xmm5
orps   %xmm0,%xmm5
ucomiss %xmm3,%xmm5
movsd  0x7e5(%rip),%xmm0
movapd %xmm0,%xmm4
jne    182b <image_c_resampling_lanczos2+0x70b>
jnp    186e <image_c_resampling_lanczos2+0x74e>
xorps  %xmm0,%xmm0
cvtss2sd %xmm5,%xmm0
mulsd  0x7d6(%rip),%xmm0
movsd  %xmm0,0x38(%rsp)
movss  %xmm2,(%rsp)
movaps %xmm5,0x60(%rsp)
call   1040 <sin@plt>
movaps 0x60(%rsp),%xmm5
movss  (%rsp),%xmm2
xorps  %xmm3,%xmm3
movapd %xmm0,%xmm4
movsd  0x7a0(%rip),%xmm0
divsd  0x38(%rsp),%xmm4
mulss  0x78e(%rip),%xmm5
ucomiss %xmm3,%xmm5
jne    1881 <image_c_resampling_lanczos2+0x761>
jnp    1340 <image_c_resampling_lanczos2+0x220>
xorps  %xmm0,%xmm0
cvtss2sd %xmm5,%xmm0
mulsd  0x780(%rip),%xmm0
movsd  %xmm0,0x38(%rsp)
movss  %xmm2,(%rsp)
movsd  %xmm4,0x60(%rsp)
call   1040 <sin@plt>
movsd  0x60(%rsp),%xmm4
movss  (%rsp),%xmm2
divsd  0x38(%rsp),%xmm0
jmp    1340 <image_c_resampling_lanczos2+0x220>
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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