// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/dsift.c
// Function: vl_dsift_process
void vl_dsift_process (VlDsiftFilter* self, float const* im)
{
  int t, x, y ;

  /* update buffers */
  _vl_dsift_alloc_buffers (self) ;

  /* clear integral images */
  for (t = 0 ; t < self->geom.numBinT ; ++t)
    memset (self->grads[t], 0,
            sizeof(float) * self->imWidth * self->imHeight) ;

#undef at
#define at(x,y) (im[(y)*self->imWidth+(x)])

  /* Compute gradients, their norm, and their angle */

  for (y = 0 ; y < self->imHeight ; ++ y) {
    for (x = 0 ; x < self->imWidth ; ++ x) {
      float gx, gy ;
      float angle, mod, nt, rbint ;
      int bint ;

      /* y derivative */
      if (y == 0) {
        gy = at(x,y+1) - at(x,y) ;
      } else if (y == self->imHeight - 1) {
        gy = at(x,y) - at(x,y-1) ;
      } else {
        gy = 0.5F * (at(x,y+1) - at(x,y-1)) ;
      }

      /* x derivative */
      if (x == 0) {
        gx = at(x+1,y) - at(x,y) ;
      } else if (x == self->imWidth - 1) {
        gx = at(x,y) - at(x-1,y) ;
      } else {
        gx = 0.5F * (at(x+1,y) - at(x-1,y)) ;
      }

      /* angle and modulus */
      angle = vl_fast_atan2_f (gy,gx) ;
      mod = vl_fast_sqrt_f (gx*gx + gy*gy) ;

      /* quantize angle */
      nt = vl_mod_2pi_f (angle) * (self->geom.numBinT / (2*VL_PI)) ;
      bint = (int) vl_floor_f (nt) ;
      rbint = nt - bint ;

      /* write it back */
      self->grads [(bint    ) % self->geom.numBinT][x + y * self->imWidth] = (1 - rbint) * mod ;
      self->grads [(bint + 1) % self->geom.numBinT][x + y * self->imWidth] = (    rbint) * mod ;
    }
  }

  if (self->useFlatWindow) {
    _vl_dsift_with_flat_window(self) ;
  } else {
    _vl_dsift_with_gaussian_window(self) ;
  }

  {
    VlDsiftKeypoint* frameIter = self->frames ;
    float * descrIter = self->descrs ;
    int framex, framey, bint ;

    int frameSizeX = self->geom.binSizeX * (self->geom.numBinX - 1) + 1 ;
    int frameSizeY = self->geom.binSizeY * (self->geom.numBinY - 1) + 1 ;
    int descrSize = vl_dsift_get_descriptor_size (self) ;

    float deltaCenterX = 0.5F * self->geom.binSizeX * (self->geom.numBinX - 1) ;
    float deltaCenterY = 0.5F * self->geom.binSizeY * (self->geom.numBinY - 1) ;

    float normConstant = frameSizeX * frameSizeY ;

    for (framey  = self->boundMinY ;
         framey <= self->boundMaxY - frameSizeY + 1 ;
         framey += self->stepY) {

      for (framex  = self->boundMinX ;
           framex <= self->boundMaxX - frameSizeX + 1 ;
           framex += self->stepX) {

        frameIter->x    = framex + deltaCenterX ;
        frameIter->y    = framey + deltaCenterY ;

        /* mass */
        {
          float mass = 0 ;
          for (bint = 0 ; bint < descrSize ; ++ bint)
            mass += descrIter[bint] ;
          mass /= normConstant ;
          frameIter->norm = mass ;
        }

        /* L2 normalize */
        _vl_dsift_normalize_histogram (descrIter, descrIter + descrSize) ;

        /* clamp */
        for(bint = 0 ; bint < descrSize ; ++ bint)
          if (descrIter[bint] > 0.2F) descrIter[bint] = 0.2F ;

        /* L2 normalize */
        _vl_dsift_normalize_histogram (descrIter, descrIter + descrSize) ;

        frameIter ++ ;
        descrIter += descrSize ;
      } /* for framex */
    } /* for framey */
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbp
callq 0x9790
movl 0x20(%rbp), %r13d
movl 0x40(%rbp), %eax
movl 0x44(%rbp), %ecx
cmpl 0x58(%rbp), %ecx
movq %rbp, (%rsp)
jne 0xf2ba
cmpl 0x60(%rbp), %r13d
jne 0xf2ba
cmpl 0x5c(%rbp), %eax
je 0xf34a
movl %eax, 0x8(%rsp)
movslq %eax, %rbx
movl %ecx, 0x10(%rsp)
movslq %ecx, %r15
movslq %r13d, %r12
movq %rbp, %rdi
callq 0xf1f1
movq %rbx, %rdi
shlq $0x5, %rdi
callq 0x95b0
movq %rax, 0x48(%rbp)
imulq %rbx, %r15
shlq $0x2, %r15
movq %r15, %rdi
callq 0x95b0
movq %rax, 0x50(%rbp)
shlq $0x3, %r12
movq %r12, %rdi
callq 0x95b0
movq %rax, 0x68(%rbp)
testl %r13d, %r13d
jle 0xf334
xorl %r15d, %r15d
movslq (%rbp), %rax
movslq 0x4(%rbp), %rdi
imulq %rax, %rdi
shlq $0x2, %rdi
callq 0x95b0
movq 0x68(%rbp), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
cmpq %r15, %r13
jne 0xf30f
movl 0x10(%rsp), %eax
movl %eax, 0x58(%rbp)
movl %r13d, 0x60(%rbp)
movl 0x8(%rsp), %eax
movl %eax, 0x5c(%rbp)
movl 0x20(%rbp), %r13d
testl %r13d, %r13d
jle 0xf380
xorl %r15d, %r15d
movq (%rsp), %rbx
movq 0x68(%rbx), %rax
movq (%rax,%r15,8), %rdi
movslq (%rbx), %rax
movslq 0x4(%rbx), %rdx
imulq %rax, %rdx
shlq $0x2, %rdx
xorl %esi, %esi
callq 0x9400
incq %r15
movslq 0x20(%rbx), %r13
cmpq %r13, %r15
jl 0xf356
movq (%rsp), %rax
movslq 0x4(%rax), %rax
movq %rax, 0x48(%rsp)
testq %rax, %rax
jle 0xf711
movq (%rsp), %rax
movl (%rax), %esi
movq 0x48(%rsp), %rax
decl %eax
movq %rax, 0x10(%rsp)
cvtsi2sd %r13d, %xmm0
leal -0x1(%rsi), %r8d
divsd 0x22ff7(%rip), %xmm0    # 0x323b0
movslq %esi, %rax
movq %rax, 0x60(%rsp)
leaq (%r14,%rax,4), %rax
movq %rax, 0x30(%rsp)
leaq 0x4(%r14), %rax
movq %rax, 0x58(%rsp)
leaq -0x4(%r14), %rax
movq %rax, 0x50(%rsp)
leaq (%r14,%r8,4), %r12
xorl %r11d, %r11d
movaps 0x22d86(%rip), %xmm6    # 0x32170
movss 0x22f71(%rip), %xmm8    # 0x32364
xorps %xmm3, %xmm3
movss 0x22f71(%rip), %xmm11   # 0x32370
movss 0x22f6c(%rip), %xmm13   # 0x32374
movaps 0x22c01(%rip), %xmm5    # 0x32010
movss 0x22f64(%rip), %xmm9    # 0x3237c
movss 0x22f5f(%rip), %xmm10   # 0x32380
testl %esi, %esi
jle 0xf700
leaq 0x1(%r11), %rax
movq %rax, 0x18(%rsp)
movq 0x60(%rsp), %rcx
imulq %rcx, %rax
leaq -0x1(%r11), %rdx
imulq %rcx, %rdx
movq %r11, %rbp
imulq %rcx, %rbp
movq (%rsp), %rcx
movq 0x68(%rcx), %rcx
leaq (%r14,%rax,4), %rax
movq %rax, 0x40(%rsp)
leaq (%r14,%rdx,4), %r15
leaq (%r14,%rbp,4), %rax
movq %rax, 0x28(%rsp)
movq 0x58(%rsp), %rax
leaq (%rax,%rbp,4), %rax
movq %rax, 0x38(%rsp)
movq 0x50(%rsp), %rax
leaq (%rax,%rbp,4), %rax
movq %rax, 0x20(%rsp)
xorl %r9d, %r9d
testq %r11, %r11
je 0xf4a6
cmpq 0x10(%rsp), %r11
jne 0xf4b9
movq 0x28(%rsp), %rax
movss (%rax,%r9,4), %xmm4
subss (%r15,%r9,4), %xmm4
jmp 0xf4d2
movq 0x30(%rsp), %rax
movss (%rax,%r9,4), %xmm4
subss (%r14,%r9,4), %xmm4
jmp 0xf4d2
movq 0x40(%rsp), %rax
movss (%rax,%r9,4), %xmm4
subss (%r15,%r9,4), %xmm4
mulss 0x22e8e(%rip), %xmm4    # 0x32360
testq %r9, %r9
je 0xf4eb
cmpq %r8, %r9
jne 0xf4fa
movss (%r12,%rbp,4), %xmm12
subss -0x4(%r12,%rbp,4), %xmm12
jmp 0xf519
movss 0x4(%r14,%rbp,4), %xmm12
subss (%r14,%rbp,4), %xmm12
jmp 0xf519
movq 0x38(%rsp), %rax
movss (%rax,%r9,4), %xmm12
movq 0x20(%rsp), %rax
subss (%rax,%r9,4), %xmm12
mulss 0x22e47(%rip), %xmm12   # 0x32360
movaps %xmm4, %xmm2
andps %xmm6, %xmm2
addss %xmm8, %xmm2
ucomiss %xmm3, %xmm12
jae 0xf545
movaps %xmm2, %xmm1
addss %xmm12, %xmm1
subss %xmm12, %xmm2
divss %xmm2, %xmm1
movss 0x22e29(%rip), %xmm2    # 0x3236c
jmp 0xf55e
movaps %xmm12, %xmm1
subss %xmm2, %xmm1
addss %xmm12, %xmm2
divss %xmm2, %xmm1
movss 0x22e0a(%rip), %xmm2    # 0x32368
movss %xmm2, 0x8(%rsp)
movaps %xmm1, %xmm14
mulss %xmm11, %xmm14
mulss %xmm1, %xmm14
addss %xmm13, %xmm14
movaps %xmm4, %xmm15
mulss %xmm4, %xmm15
mulss %xmm12, %xmm12
addss %xmm15, %xmm12
xorps %xmm15, %xmm15
cvtss2sd %xmm12, %xmm15
movsd 0x22e1d(%rip), %xmm2    # 0x323b8
ucomisd %xmm15, %xmm2
xorps %xmm7, %xmm7
ja 0xf62e
movd %xmm12, %eax
sarl %eax
movl $0x5f3759df, %edx       # imm = 0x5F3759DF
subl %eax, %edx
movapd %xmm0, %xmm5
movaps %xmm13, %xmm0
movaps %xmm11, %xmm13
movaps %xmm8, %xmm11
movaps %xmm6, %xmm8
movd %edx, %xmm6
movaps %xmm12, %xmm7
mulss 0x22d7d(%rip), %xmm7    # 0x32358
movaps %xmm7, %xmm15
mulss %xmm6, %xmm15
mulss %xmm6, %xmm15
movss 0x22d87(%rip), %xmm2    # 0x32378
addss %xmm2, %xmm15
mulss %xmm6, %xmm15
movaps %xmm8, %xmm6
movaps %xmm11, %xmm8
movaps %xmm13, %xmm11
movaps %xmm0, %xmm13
movapd %xmm5, %xmm0
movaps 0x229fa(%rip), %xmm5    # 0x32010
mulss %xmm15, %xmm7
mulss %xmm15, %xmm7
addss %xmm2, %xmm7
mulss %xmm15, %xmm7
mulss %xmm12, %xmm7
mulss %xmm1, %xmm14
addss 0x8(%rsp), %xmm14
cmpltss 0x22d45(%rip), %xmm4    # 0x32388
movaps %xmm4, %xmm1
andnps %xmm14, %xmm1
xorps %xmm5, %xmm14
andps %xmm4, %xmm14
orps %xmm1, %xmm14
ucomiss %xmm9, %xmm14
jbe 0xf668
addss %xmm10, %xmm14
jmp 0xf656
addss %xmm9, %xmm14
ucomiss %xmm14, %xmm3
ja 0xf663
xorps %xmm1, %xmm1
cvtss2sd %xmm14, %xmm1
mulsd %xmm0, %xmm1
cvtsd2ss %xmm1, %xmm1
cvttss2si %xmm1, %r10
xorps %xmm2, %xmm2
cvtsi2ss %r10, %xmm2
cmpneqps %xmm1, %xmm2
xorps %xmm4, %xmm4
cmpnleps %xmm1, %xmm4
andps %xmm2, %xmm4
movd %xmm4, %ebx
leal (%r10,%rbx), %eax
xorps %xmm2, %xmm2
cvtsi2ss %eax, %xmm2
subss %xmm2, %xmm1
movss 0x22ca8(%rip), %xmm2    # 0x3235c
subss %xmm1, %xmm2
mulss %xmm7, %xmm2
cltd
idivl %r13d
movslq %edx, %rax
movq (%rcx,%rax,8), %rax
leaq (%r9,%rbp), %rdi
movss %xmm2, (%rax,%rdi,4)
mulss %xmm7, %xmm1
leal (%r10,%rbx), %eax
incl %eax
cltd
idivl %r13d
movslq %edx, %rax
movq (%rcx,%rax,8), %rax
movss %xmm1, (%rax,%rdi,4)
incq %r9
cmpq %rsi, %r9
jne 0xf487
movq 0x18(%rsp), %rax
movq %rax, %r11
jmp 0xf706
incq %r11
movq %r11, %rax
cmpq 0x48(%rsp), %rax
jne 0xf421
movq (%rsp), %rbx
cmpl $0x0, 0x34(%rbx)
je 0xf951
testl %r13d, %r13d
jle 0xfb6b
xorl %r14d, %r14d
movq 0x68(%rbx), %rax
movq 0x70(%rbx), %rdi
movslq 0x4(%rbx), %rsi
movq (%rax,%r14,8), %rdx
movslq (%rbx), %rcx
movslq 0x30(%rbx), %rax
subq $0x8, %rsp
movq %rsi, %r8
movq %rcx, %r9
movl $0x5, %r15d
pushq %r15
movl $0x1, %r12d
pushq %r12
pushq %rax
callq 0x95d0
addq $0x20, %rsp
movq 0x70(%rbx), %rdx
movq 0x78(%rbx), %rdi
movslq (%rbx), %rsi
movslq 0x4(%rbx), %rcx
movslq 0x2c(%rbx), %rax
subq $0x8, %rsp
movq %rsi, %r8
movq %rcx, %r9
pushq %r15
pushq %r12
pushq %rax
callq 0x95d0
addq $0x20, %rsp
movl 0x28(%rbx), %esi
testl %esi, %esi
movq %r14, 0x18(%rsp)
jle 0xf937
movl 0x30(%rbx), %edi
xorl %edx, %edx
leaq (,%r14,4), %rax
movq %rax, 0x20(%rsp)
movsd 0x38(%rbx), %xmm0
movl %edx, 0x28(%rsp)
callq 0xfe58
movl 0x24(%rbx), %esi
movl 0x30(%rbx), %edi
testl %esi, %esi
jle 0xf918
xorps %xmm1, %xmm1
cvtsi2ss %edi, %xmm1
mulss %xmm1, %xmm0
movss %xmm0, 0x38(%rsp)
movl 0x2c(%rbx), %eax
movl %eax, 0x8(%rsp)
xorl %r14d, %r14d
movq (%rsp), %rbx
movsd 0x38(%rbx), %xmm0
movl 0x8(%rsp), %edi
movl %r14d, %edx
callq 0xfe58
movl 0x2c(%rbx), %eax
movl %eax, 0x8(%rsp)
movl 0x30(%rbx), %edi
movl 0x28(%rbx), %eax
movq %rax, 0x30(%rsp)
decl %eax
imull %edi, %eax
movl 0x14(%rbx), %edx
movl 0x1c(%rbx), %r8d
subl %eax, %r8d
movl 0x24(%rbx), %eax
movq %rax, 0x10(%rsp)
cmpl %r8d, %edx
jg 0xf905
movl 0x8(%rsp), %ebp
xorps %xmm1, %xmm1
cvtsi2ss %ebp, %xmm1
mulss %xmm1, %xmm0
mulss 0x38(%rsp), %xmm0
movq (%rsp), %r11
movslq 0x44(%r11), %r9
movq 0x10(%rsp), %r10
leal -0x1(%r10), %eax
imull %ebp, %eax
movq 0x50(%r11), %rcx
addq 0x20(%rsp), %rcx
movl 0x20(%r11), %esi
movl %edi, 0x40(%rsp)
movl 0x28(%rsp), %edi
imull %edi, %r10d
imull %esi, %r10d
imull %r14d, %esi
movslq %esi, %rsi
leaq (%rcx,%rsi,4), %rcx
movslq %r10d, %rsi
leaq (%rcx,%rsi,4), %r10
movslq 0x10(%r11), %rbx
movl 0xc(%r11), %r13d
movl 0x18(%r11), %r15d
subl %eax, %r15d
movslq %r15d, %r12
movl %ebp, %eax
imull %r14d, %eax
movslq %eax, %rbp
shlq $0x2, %rbp
addq 0x78(%r11), %rbp
movl %edi, %eax
movl 0x40(%rsp), %edi
imull %edi, %eax
addl %edx, %eax
shlq $0x2, %r9
cmpl %r15d, %ebx
jg 0xf8fa
movq (%rsp), %rsi
movslq (%rsi), %rcx
movslq 0x8(%rsi), %rsi
movslq %eax, %r11
imulq %rcx, %r11
leaq (,%r11,4), %rcx
addq %rbp, %rcx
movq %rbx, %r11
movss (%rcx,%r11,4), %xmm1
mulss %xmm0, %xmm1
movss %xmm1, (%r10)
addq %rsi, %r11
addq %r9, %r10
cmpq %r12, %r11
jle 0xf8e0
addl %r13d, %edx
addl %r13d, %eax
cmpl %r8d, %edx
jle 0xf8bb
incl %r14d
movq 0x10(%rsp), %rsi
cmpl %esi, %r14d
jl 0xf7ea
jmp 0xf920
movl 0x28(%rbx), %eax
movq %rax, 0x30(%rsp)
movl 0x28(%rsp), %edx
incl %edx
movq 0x30(%rsp), %rsi
cmpl %esi, %edx
movq (%rsp), %rbx
jl 0xf7b3
movq 0x18(%rsp), %r14
incq %r14
movslq 0x20(%rbx), %rax
cmpq %rax, %r14
jl 0xf72b
jmp 0xfb6e
movl 0x28(%rbx), %esi
testl %esi, %esi
jle 0xfb6e
movslq 0x30(%rbx), %rax
movslq 0x2c(%rbx), %rcx
movl $0x1, %edx
movl $0x1, %edi
subq %rax, %rdi
movq %rdi, 0x38(%rsp)
decq %rax
movq %rax, 0x30(%rsp)
subq %rcx, %rdx
movq %rdx, 0x28(%rsp)
decq %rcx
movq %rcx, 0x40(%rsp)
xorl %edx, %edx
movl 0x30(%rbx), %edi
movsd 0x38(%rbx), %xmm0
movq %rdx, 0x18(%rsp)
callq 0xef54
movq %rax, 0x10(%rsp)
movl 0x24(%rbx), %esi
testl %esi, %esi
jle 0xfb4d
xorl %edx, %edx
movl 0x2c(%rbx), %edi
movsd 0x38(%rbx), %xmm0
movl %edx, 0x20(%rsp)
callq 0xef54
movq %rax, 0x8(%rsp)
cmpl $0x0, 0x20(%rbx)
jle 0xfb32
xorl %r13d, %r13d
movq 0x68(%rbx), %rax
movq 0x70(%rbx), %rdi
movslq 0x4(%rbx), %rsi
movq (%rax,%r13,8), %rdx
movslq (%rbx), %rcx
subq $0x8, %rsp
movq %rsi, %r8
movq %rcx, %r9
movl $0x5, %r14d
pushq %r14
movl $0x1, %r15d
pushq %r15
pushq 0x48(%rsp)
pushq 0x58(%rsp)
pushq 0x38(%rsp)
callq 0x92b0
addq $0x30, %rsp
movq 0x70(%rbx), %rdx
movq 0x78(%rbx), %rdi
movslq (%rbx), %rsi
movslq 0x4(%rbx), %rcx
subq $0x8, %rsp
movq %rsi, %r8
movq %rcx, %r9
pushq %r14
pushq %r15
pushq 0x58(%rsp)
pushq 0x48(%rsp)
pushq 0x30(%rsp)
callq 0x92b0
addq $0x30, %rsp
movl 0x30(%rbx), %eax
movl 0x28(%rbx), %esi
decl %esi
imull %eax, %esi
movl 0x14(%rbx), %ecx
movl 0x1c(%rbx), %edx
subl %esi, %edx
movslq 0x20(%rbx), %rsi
cmpl %edx, %ecx
jg 0xfb22
movq (%rsp), %r15
movslq 0x44(%r15), %rdi
movl 0x2c(%r15), %ebx
movl 0x24(%r15), %r8d
leal -0x1(%r8), %ebp
imull %ebx, %ebp
leaq (,%r13,4), %r9
addq 0x50(%r15), %r9
movl %esi, %r10d
movl 0x20(%rsp), %r14d
imull %r14d, %r10d
movslq %r10d, %r10
leaq (%r9,%r10,4), %r9
movl %esi, %r10d
movq 0x18(%rsp), %r12
imull %r12d, %r10d
imull %r8d, %r10d
movslq %r10d, %r8
leaq (%r9,%r8,4), %r8
movslq 0x10(%r15), %r9
movl 0xc(%r15), %r10d
movl 0x18(%r15), %r11d
subl %ebp, %r11d
imull %r14d, %ebx
movslq %ebx, %r14
shlq $0x2, %r14
addq 0x78(%r15), %r14
movslq %r11d, %r15
imull %r12d, %eax
addl %ecx, %eax
shlq $0x2, %rdi
cmpl %r11d, %r9d
jg 0xfb18
movq (%rsp), %r12
movslq (%r12), %rbx
movslq 0x8(%r12), %r12
movslq %eax, %rbp
imulq %rbx, %rbp
leaq (%r14,%rbp,4), %rbp
movq %r9, %rbx
movss (%rbp,%rbx,4), %xmm0
movss %xmm0, (%r8)
addq %r12, %rbx
addq %rdi, %r8
cmpq %r15, %rbx
jle 0xfb02
addl %r10d, %ecx
addl %r10d, %eax
cmpl %edx, %ecx
jle 0xfae2
incq %r13
cmpq %rsi, %r13
movq (%rsp), %rbx
jl 0xf9d7
movq 0x8(%rsp), %rdi
callq 0x9580
movl 0x20(%rsp), %edx
incl %edx
movl 0x24(%rbx), %esi
cmpl %esi, %edx
jl 0xf9b4
movq 0x10(%rsp), %rdi
callq 0x9580
movq 0x18(%rsp), %rdx
incl %edx
movl 0x28(%rbx), %esi
cmpl %esi, %edx
jl 0xf990
jmp 0xfb6e
movl 0x28(%rbx), %esi
movl 0x30(%rbx), %r9d
decl %esi
movl %esi, %edx
imull %r9d, %edx
movl 0x14(%rbx), %eax
movl 0x1c(%rbx), %ecx
subl %edx, %ecx
cmpl %ecx, %eax
jg 0xfe49
movl 0x2c(%rbx), %edi
movl 0x24(%rbx), %r10d
decl %r10d
xorps %xmm1, %xmm1
cvtsi2ss %r10d, %xmm1
imull %edi, %r10d
leal 0x1(%r10), %r8d
xorps %xmm0, %xmm0
cvtsi2ss %edi, %xmm0
incl %edx
imull %r8d, %edx
movss 0x227a7(%rip), %xmm2    # 0x32360
mulss %xmm2, %xmm0
mulss %xmm1, %xmm0
xorps %xmm3, %xmm3
cvtsi2ss %r9d, %xmm3
mulss %xmm2, %xmm3
xorps %xmm1, %xmm1
cvtsi2ss %esi, %xmm1
mulss %xmm3, %xmm1
xorps %xmm2, %xmm2
cvtsi2ss %edx, %xmm2
movl 0x44(%rbx), %edx
movq 0x50(%rbx), %r11
movq 0x48(%rbx), %rsi
movl 0xc(%rbx), %edi
movl 0x10(%rbx), %r8d
movl 0x18(%rbx), %r9d
subl %r10d, %r9d
movslq %edx, %r10
xorps %xmm3, %xmm3
divss %xmm2, %xmm3
cvtss2sd %xmm3, %xmm3
movss 0x22756(%rip), %xmm4    # 0x32364
movsd 0x227a2(%rip), %xmm5    # 0x323b8
movss 0x22766(%rip), %xmm6    # 0x32384
movss 0x22732(%rip), %xmm7    # 0x32358
movss 0x22749(%rip), %xmm8    # 0x32378
cmpl %r9d, %r8d
jle 0xfc3c
movq %r11, %r15
jmp 0xfe38
xorps %xmm9, %xmm9
cvtsi2ss %eax, %xmm9
addss %xmm1, %xmm9
cvtss2sd %xmm9, %xmm9
movl 0x8(%rbx), %ebp
movl %r8d, %r14d
xorps %xmm10, %xmm10
cvtsi2ss %r14d, %xmm10
addss %xmm0, %xmm10
cvtss2sd %xmm10, %xmm10
movsd %xmm10, (%rsi)
movsd %xmm9, 0x8(%rsi)
testl %edx, %edx
jle 0xfcc4
xorps %xmm10, %xmm10
xorl %ebx, %ebx
addss (%r11,%rbx,4), %xmm10
incq %rbx
cmpq %rbx, %rdx
jne 0xfc7d
divss %xmm2, %xmm10
cvtss2sd %xmm10, %xmm10
movsd %xmm10, 0x18(%rsi)
leaq (%r11,%r10,4), %r15
testl %edx, %edx
jle 0xfccd
xorps %xmm10, %xmm10
movq %r11, %rbx
movss (%rbx), %xmm11
mulss %xmm11, %xmm11
addss %xmm11, %xmm10
addq $0x4, %rbx
cmpq %r15, %rbx
jb 0xfcaa
jmp 0xfcd1
movsd %xmm3, 0x18(%rsi)
leaq (%r11,%r10,4), %r15
xorps %xmm10, %xmm10
xorps %xmm11, %xmm11
cvtss2sd %xmm10, %xmm11
ucomisd %xmm11, %xmm5
movaps %xmm4, %xmm11
ja 0xfd39
movd %xmm10, %ebx
sarl %ebx
movl $0x5f3759df, %r12d      # imm = 0x5F3759DF
subl %ebx, %r12d
movd %r12d, %xmm12
movaps %xmm10, %xmm11
mulss %xmm7, %xmm11
movaps %xmm11, %xmm13
mulss %xmm12, %xmm13
mulss %xmm12, %xmm13
addss %xmm8, %xmm13
mulss %xmm12, %xmm13
mulss %xmm13, %xmm11
mulss %xmm13, %xmm11
addss %xmm8, %xmm11
mulss %xmm13, %xmm11
mulss %xmm10, %xmm11
addss %xmm4, %xmm11
xorps %xmm10, %xmm10
testl %edx, %edx
jle 0xfda1
movq %r11, %rbx
movss (%rbx), %xmm12
divss %xmm11, %xmm12
movss %xmm12, (%rbx)
addq $0x4, %rbx
cmpq %r15, %rbx
jb 0xfd44
testl %edx, %edx
jle 0xfda1
xorl %ebx, %ebx
movss (%r11,%rbx,4), %xmm11
ucomiss %xmm6, %xmm11
jbe 0xfd76
movl $0x3e4ccccd, (%r11,%rbx,4) # imm = 0x3E4CCCCD
incq %rbx
cmpq %rbx, %rdx
jne 0xfd62
testl %edx, %edx
jle 0xfda1
xorps %xmm10, %xmm10
movq %r11, %rbx
movss (%rbx), %xmm11
mulss %xmm11, %xmm11
addss %xmm11, %xmm10
addq $0x4, %rbx
cmpq %r15, %rbx
jb 0xfd89
xorps %xmm11, %xmm11
cvtss2sd %xmm10, %xmm11
ucomisd %xmm11, %xmm5
movaps %xmm4, %xmm11
ja 0xfe09
movd %xmm10, %ebx
sarl %ebx
movl $0x5f3759df, %r12d      # imm = 0x5F3759DF
subl %ebx, %r12d
movd %r12d, %xmm12
movaps %xmm10, %xmm11
mulss %xmm7, %xmm11
movaps %xmm11, %xmm13
mulss %xmm12, %xmm13
mulss %xmm12, %xmm13
addss %xmm8, %xmm13
mulss %xmm12, %xmm13
mulss %xmm13, %xmm11
mulss %xmm13, %xmm11
addss %xmm8, %xmm11
mulss %xmm13, %xmm11
mulss %xmm10, %xmm11
addss %xmm4, %xmm11
testl %edx, %edx
jle 0xfe25
movss (%r11), %xmm10
divss %xmm11, %xmm10
movss %xmm10, (%r11)
addq $0x4, %r11
cmpq %r15, %r11
jb 0xfe0d
addq $0x20, %rsi
addl %ebp, %r14d
movq %r15, %r11
cmpl %r9d, %r14d
jle 0xfc55
addl %edi, %eax
movq %r15, %r11
cmpl %ecx, %eax
movq (%rsp), %rbx
jle 0xfc2f
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq