// File: /workspace/github_c_makefile_star2_O0/zpole[P]IICV/vl/sift.c
// Function: vl_sift_calc_raw_descriptor
VL_EXPORT
void
vl_sift_calc_raw_descriptor (VlSiftFilt const *f,
                             vl_sift_pix const* grad,
                             vl_sift_pix *descr,
                             int width, int height,
                             double x, double y,
                             double sigma,
                             double angle0)
{
  double const magnif = f-> magnif ;

  int          w      = width ;
  int          h      = height ;
  int const    xo     = 2 ;         /* x-stride */
  int const    yo     = 2 * w ;     /* y-stride */

  int          xi     = (int) (x + 0.5) ;
  int          yi     = (int) (y + 0.5) ;

  double const st0    = sin (angle0) ;
  double const ct0    = cos (angle0) ;
  double const SBP    = magnif * sigma + VL_EPSILON_D ;
  int    const W      = floor
    (sqrt(2.0) * SBP * (NBP + 1) / 2.0 + 0.5) ;

  int const binto = 1 ;          /* bin theta-stride */
  int const binyo = NBO * NBP ;  /* bin y-stride */
  int const binxo = NBO ;        /* bin x-stride */

  int bin, dxi, dyi ;
  vl_sift_pix const *pt ;
  vl_sift_pix       *dpt ;

  /* check bounds */
  if(xi    <  0               ||
     xi    >= w               ||
     yi    <  0               ||
     yi    >= h -    1        )
    return ;

  /* clear descriptor */
  memset (descr, 0, sizeof(vl_sift_pix) * NBO*NBP*NBP) ;

  /* Center the scale space and the descriptor on the current keypoint.
   * Note that dpt is pointing to the bin of center (SBP/2,SBP/2,0).
   */
  pt  = grad + xi*xo + yi*yo ;
  dpt = descr + (NBP/2) * binyo + (NBP/2) * binxo ;

#undef atd
#define atd(dbinx,dbiny,dbint) *(dpt + (dbint)*binto + (dbiny)*binyo + (dbinx)*binxo)

  /*
   * Process pixels in the intersection of the image rectangle
   * (1,1)-(M-1,N-1) and the keypoint bounding box.
   */
  for(dyi =  VL_MAX(- W,   - yi   ) ;
      dyi <= VL_MIN(+ W, h - yi -1) ; ++ dyi) {

    for(dxi =  VL_MAX(- W,   - xi   ) ;
        dxi <= VL_MIN(+ W, w - xi -1) ; ++ dxi) {

      /* retrieve */
      vl_sift_pix mod   = *( pt + dxi*xo + dyi*yo + 0 ) ;
      vl_sift_pix angle = *( pt + dxi*xo + dyi*yo + 1 ) ;
      vl_sift_pix theta = vl_mod_2pi_f (angle - angle0) ;

      /* fractional displacement */
      vl_sift_pix dx = xi + dxi - x;
      vl_sift_pix dy = yi + dyi - y;

      /* get the displacement normalized w.r.t. the keypoint
         orientation and extension */
      vl_sift_pix nx = ( ct0 * dx + st0 * dy) / SBP ;
      vl_sift_pix ny = (-st0 * dx + ct0 * dy) / SBP ;
      vl_sift_pix nt = NBO * theta / (2 * VL_PI) ;

      /* Get the Gaussian weight of the sample. The Gaussian window
       * has a standard deviation equal to NBP/2. Note that dx and dy
       * are in the normalized frame, so that -NBP/2 <= dx <=
       * NBP/2. */
      vl_sift_pix const wsigma = f->windowSize ;
      vl_sift_pix win = fast_expn
        ((nx*nx + ny*ny)/(2.0 * wsigma * wsigma)) ;

      /* The sample will be distributed in 8 adjacent bins.
         We start from the ``lower-left'' bin. */
      int         binx = (int)vl_floor_f (nx - 0.5) ;
      int         biny = (int)vl_floor_f (ny - 0.5) ;
      int         bint = (int)vl_floor_f (nt) ;
      vl_sift_pix rbinx = nx - (binx + 0.5) ;
      vl_sift_pix rbiny = ny - (biny + 0.5) ;
      vl_sift_pix rbint = nt - bint ;
      int         dbinx ;
      int         dbiny ;
      int         dbint ;

      /* Distribute the current sample into the 8 adjacent bins*/
      for(dbinx = 0 ; dbinx < 2 ; ++dbinx) {
        for(dbiny = 0 ; dbiny < 2 ; ++dbiny) {
          for(dbint = 0 ; dbint < 2 ; ++dbint) {

            if (binx + dbinx >= - (NBP/2) &&
                binx + dbinx <    (NBP/2) &&
                biny + dbiny >= - (NBP/2) &&
                biny + dbiny <    (NBP/2) ) {
              vl_sift_pix weight = win
                * mod
                * vl_abs_f (1 - dbinx - rbinx)
                * vl_abs_f (1 - dbiny - rbiny)
                * vl_abs_f (1 - dbint - rbint) ;

              atd(binx+dbinx, biny+dbiny, (bint+dbint) % NBO) += weight ;
            }
          }
        }
      }
    }
  }

  /* Standard SIFT descriptors are normalized, truncated and normalized again */
  if(1) {

    /* normalize L2 norm */
    vl_sift_pix norm = normalize_histogram (descr, descr + NBO*NBP*NBP) ;

    /*
       Set the descriptor to zero if it is lower than our
       norm_threshold.  We divide by the number of samples in the
       descriptor region because the Gaussian window used in the
       calculation of the descriptor is not normalized.
     */
    int numSamples =
      (VL_MIN(W, w - xi -1) - VL_MAX(-W, - xi) + 1) *
      (VL_MIN(W, h - yi -1) - VL_MAX(-W, - yi) + 1) ;

    if(f-> norm_thresh && norm < f-> norm_thresh * numSamples) {
        for(bin = 0; bin < NBO*NBP*NBP ; ++ bin)
            descr [bin] = 0;
    }
    else {
      /* truncate at 0.2. */
      for(bin = 0; bin < NBO*NBP*NBP ; ++ bin) {
        if (descr [bin] > 0.2) descr [bin] = 0.2;
      }

      /* normalize again. */
      normalize_histogram (descr, descr + NBO*NBP*NBP) ;
    }
  }
}

// Assembly:
subq $0x148, %rsp            # imm = 0x148
movq %rdi, 0x140(%rsp)
movq %rsi, 0x138(%rsp)
movq %rdx, 0x130(%rsp)
movl %ecx, 0x12c(%rsp)
movl %r8d, 0x128(%rsp)
movsd %xmm0, 0x120(%rsp)
movsd %xmm1, 0x118(%rsp)
movsd %xmm2, 0x110(%rsp)
movsd %xmm3, 0x108(%rsp)
movq 0x140(%rsp), %rax
movsd 0xa0(%rax), %xmm0
movsd %xmm0, 0x100(%rsp)
movl 0x12c(%rsp), %eax
movl %eax, 0xfc(%rsp)
movl 0x128(%rsp), %eax
movl %eax, 0xf8(%rsp)
movl $0x2, 0xf4(%rsp)
movl 0xfc(%rsp), %eax
shll %eax
movl %eax, 0xf0(%rsp)
movsd 0x8716(%rip), %xmm0     # 0x59080
addsd 0x120(%rsp), %xmm0
cvttsd2si %xmm0, %eax
movl %eax, 0xec(%rsp)
movsd 0x86fa(%rip), %xmm0     # 0x59080
addsd 0x118(%rsp), %xmm0
cvttsd2si %xmm0, %eax
movl %eax, 0xe8(%rsp)
movsd 0x108(%rsp), %xmm0
callq 0x99e0
movsd %xmm0, 0xe0(%rsp)
movsd 0x108(%rsp), %xmm0
callq 0x94e0
movsd %xmm0, 0xd8(%rsp)
movsd 0x100(%rsp), %xmm0
movsd 0x110(%rsp), %xmm1
mulsd %xmm1, %xmm0
movsd 0x8fe2(%rip), %xmm1     # 0x599c8
addsd %xmm1, %xmm0
movsd %xmm0, 0xd0(%rsp)
movsd 0x86e5(%rip), %xmm0     # 0x590e0
callq 0x9b20
mulsd 0xd0(%rsp), %xmm0
movsd 0x870f(%rip), %xmm1     # 0x59120
mulsd %xmm1, %xmm0
movsd 0x86c3(%rip), %xmm1     # 0x590e0
divsd %xmm1, %xmm0
movsd 0x8657(%rip), %xmm1     # 0x59080
addsd %xmm1, %xmm0
callq 0x9a00
cvttsd2si %xmm0, %eax
movl %eax, 0xcc(%rsp)
movl $0x1, 0xc8(%rsp)
movl $0x20, 0xc4(%rsp)
movl $0x8, 0xc0(%rsp)
cmpl $0x0, 0xec(%rsp)
jl 0x50a97
movl 0xec(%rsp), %eax
cmpl 0xfc(%rsp), %eax
jge 0x50a97
cmpl $0x0, 0xe8(%rsp)
jl 0x50a97
movl 0xe8(%rsp), %eax
movl 0xf8(%rsp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jl 0x50a9c
jmp 0x51383
movq 0x130(%rsp), %rdi
xorl %esi, %esi
movl $0x200, %edx            # imm = 0x200
callq 0x9480
movq 0x138(%rsp), %rax
movl 0xec(%rsp), %ecx
shll %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movl 0xe8(%rsp), %ecx
imull 0xf0(%rsp), %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, 0xa8(%rsp)
movq 0x130(%rsp), %rax
addq $0x100, %rax            # imm = 0x100
addq $0x40, %rax
movq %rax, 0xa0(%rsp)
xorl %eax, %eax
subl 0xcc(%rsp), %eax
xorl %ecx, %ecx
subl 0xe8(%rsp), %ecx
cmpl %ecx, %eax
jle 0x50b2b
xorl %eax, %eax
subl 0xcc(%rsp), %eax
movl %eax, 0x44(%rsp)
jmp 0x50b38
xorl %eax, %eax
subl 0xe8(%rsp), %eax
movl %eax, 0x44(%rsp)
movl 0x44(%rsp), %eax
movl %eax, 0xb4(%rsp)
movl 0xb4(%rsp), %eax
movl %eax, 0x40(%rsp)
movl 0xcc(%rsp), %eax
movl 0xf8(%rsp), %ecx
subl 0xe8(%rsp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x50b77
movl 0xcc(%rsp), %eax
movl %eax, 0x3c(%rsp)
jmp 0x50b8c
movl 0xf8(%rsp), %eax
subl 0xe8(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x3c(%rsp)
movl 0x40(%rsp), %eax
movl 0x3c(%rsp), %ecx
cmpl %ecx, %eax
jg 0x5112f
xorl %eax, %eax
subl 0xcc(%rsp), %eax
xorl %ecx, %ecx
subl 0xec(%rsp), %ecx
cmpl %ecx, %eax
jle 0x50bc1
xorl %eax, %eax
subl 0xcc(%rsp), %eax
movl %eax, 0x38(%rsp)
jmp 0x50bce
xorl %eax, %eax
subl 0xec(%rsp), %eax
movl %eax, 0x38(%rsp)
movl 0x38(%rsp), %eax
movl %eax, 0xb8(%rsp)
movl 0xb8(%rsp), %eax
movl %eax, 0x34(%rsp)
movl 0xcc(%rsp), %eax
movl 0xfc(%rsp), %ecx
subl 0xec(%rsp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x50c0d
movl 0xcc(%rsp), %eax
movl %eax, 0x30(%rsp)
jmp 0x50c22
movl 0xfc(%rsp), %eax
subl 0xec(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x30(%rsp)
movl 0x34(%rsp), %eax
movl 0x30(%rsp), %ecx
cmpl %ecx, %eax
jg 0x51117
movq 0xa8(%rsp), %rax
movl 0xb8(%rsp), %ecx
shll %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movl 0xb4(%rsp), %ecx
imull 0xf0(%rsp), %ecx
movslq %ecx, %rcx
movss (%rax,%rcx,4), %xmm0
movss %xmm0, 0x9c(%rsp)
movq 0xa8(%rsp), %rax
movl 0xb8(%rsp), %ecx
shll %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movl 0xb4(%rsp), %ecx
imull 0xf0(%rsp), %ecx
movslq %ecx, %rcx
movss 0x4(%rax,%rcx,4), %xmm0
movss %xmm0, 0x98(%rsp)
movss 0x98(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
subsd 0x108(%rsp), %xmm0
cvtsd2ss %xmm0, %xmm0
callq 0x51390
movss %xmm0, 0x94(%rsp)
movl 0xec(%rsp), %eax
addl 0xb8(%rsp), %eax
cvtsi2sd %eax, %xmm0
subsd 0x120(%rsp), %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x90(%rsp)
movl 0xe8(%rsp), %eax
addl 0xb4(%rsp), %eax
cvtsi2sd %eax, %xmm0
subsd 0x118(%rsp), %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x8c(%rsp)
movsd 0xd8(%rsp), %xmm0
movss 0x90(%rsp), %xmm1
cvtss2sd %xmm1, %xmm2
movsd 0xe0(%rsp), %xmm1
movss 0x8c(%rsp), %xmm3
cvtss2sd %xmm3, %xmm3
mulsd %xmm3, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
divsd 0xd0(%rsp), %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x88(%rsp)
movsd 0xe0(%rsp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movss 0x90(%rsp), %xmm1
cvtss2sd %xmm1, %xmm2
movsd 0xd8(%rsp), %xmm1
movss 0x8c(%rsp), %xmm3
cvtss2sd %xmm3, %xmm3
mulsd %xmm3, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
divsd 0xd0(%rsp), %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x84(%rsp)
movss 0x93a4(%rip), %xmm0     # 0x5a180
mulss 0x94(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x843f(%rip), %xmm1     # 0x59230
divsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x80(%rsp)
movq 0x140(%rsp), %rax
movsd 0xa8(%rax), %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x7c(%rsp)
movss 0x88(%rsp), %xmm0
movss 0x88(%rsp), %xmm2
movss 0x84(%rsp), %xmm1
mulss 0x84(%rsp), %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
movss 0x7c(%rsp), %xmm1
cvtss2sd %xmm1, %xmm2
movsd 0x8282(%rip), %xmm1     # 0x590e0
mulsd %xmm2, %xmm1
movss 0x7c(%rsp), %xmm2
cvtss2sd %xmm2, %xmm2
mulsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x50790
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x78(%rsp)
movss 0x88(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x81e8(%rip), %xmm1     # 0x59080
subsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
callq 0x513f0
movl %eax, 0x74(%rsp)
movss 0x84(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x81c2(%rip), %xmm1     # 0x59080
subsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
callq 0x513f0
movl %eax, 0x70(%rsp)
movss 0x80(%rsp), %xmm0
callq 0x513f0
movl %eax, 0x6c(%rsp)
movss 0x88(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
cvtsi2sdl 0x74(%rsp), %xmm1
movsd 0x8184(%rip), %xmm2     # 0x59080
addsd %xmm2, %xmm1
subsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x68(%rsp)
movss 0x84(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
cvtsi2sdl 0x70(%rsp), %xmm1
movsd 0x8157(%rip), %xmm2     # 0x59080
addsd %xmm2, %xmm1
subsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x64(%rsp)
movss 0x80(%rsp), %xmm0
cvtsi2ssl 0x6c(%rsp), %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x60(%rsp)
movl $0x0, 0x5c(%rsp)
cmpl $0x2, 0x5c(%rsp)
jge 0x510ff
movl $0x0, 0x58(%rsp)
cmpl $0x2, 0x58(%rsp)
jge 0x510ed
movl $0x0, 0x54(%rsp)
cmpl $0x2, 0x54(%rsp)
jge 0x510db
movl 0x74(%rsp), %eax
addl 0x5c(%rsp), %eax
cmpl $-0x2, %eax
jl 0x510c9
movl 0x74(%rsp), %eax
addl 0x5c(%rsp), %eax
cmpl $0x2, %eax
jge 0x510c9
movl 0x70(%rsp), %eax
addl 0x58(%rsp), %eax
cmpl $-0x2, %eax
jl 0x510c9
movl 0x70(%rsp), %eax
addl 0x58(%rsp), %eax
cmpl $0x2, %eax
jge 0x510c9
movss 0x78(%rsp), %xmm0
mulss 0x9c(%rsp), %xmm0
movss %xmm0, 0x1c(%rsp)
movl $0x1, %eax
subl 0x5c(%rsp), %eax
cvtsi2ss %eax, %xmm0
subss 0x68(%rsp), %xmm0
callq 0x51440
movaps %xmm0, %xmm1
movss 0x1c(%rsp), %xmm0
mulss %xmm1, %xmm0
movss %xmm0, 0x20(%rsp)
movl $0x1, %eax
subl 0x58(%rsp), %eax
cvtsi2ss %eax, %xmm0
subss 0x64(%rsp), %xmm0
callq 0x51440
movaps %xmm0, %xmm1
movss 0x20(%rsp), %xmm0
mulss %xmm1, %xmm0
movss %xmm0, 0x24(%rsp)
movl $0x1, %eax
subl 0x54(%rsp), %eax
cvtsi2ss %eax, %xmm0
subss 0x60(%rsp), %xmm0
callq 0x51440
movaps %xmm0, %xmm1
movss 0x24(%rsp), %xmm0
mulss %xmm1, %xmm0
movss %xmm0, 0x50(%rsp)
movss 0x50(%rsp), %xmm0
movq 0xa0(%rsp), %rax
movq %rax, 0x28(%rsp)
movl 0x6c(%rsp), %eax
addl 0x54(%rsp), %eax
movl $0x8, %ecx
cltd
idivl %ecx
movq 0x28(%rsp), %rax
shll $0x0, %edx
movslq %edx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movl 0x70(%rsp), %ecx
addl 0x58(%rsp), %ecx
shll $0x5, %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movl 0x74(%rsp), %ecx
addl 0x5c(%rsp), %ecx
shll $0x3, %ecx
movslq %ecx, %rcx
addss (%rax,%rcx,4), %xmm0
movss %xmm0, (%rax,%rcx,4)
jmp 0x510cb
movl 0x54(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x54(%rsp)
jmp 0x50f82
jmp 0x510dd
movl 0x58(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x58(%rsp)
jmp 0x50f6f
jmp 0x510ef
movl 0x5c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x5c(%rsp)
jmp 0x50f5c
jmp 0x51101
movl 0xb8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xb8(%rsp)
jmp 0x50bd9
jmp 0x51119
movl 0xb4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xb4(%rsp)
jmp 0x50b43
movq 0x130(%rsp), %rdi
movq 0x130(%rsp), %rsi
addq $0x200, %rsi            # imm = 0x200
callq 0x51460
movss %xmm0, 0x4c(%rsp)
movl 0xcc(%rsp), %eax
movl 0xfc(%rsp), %ecx
subl 0xec(%rsp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x5117a
movl 0xcc(%rsp), %eax
movl %eax, 0x18(%rsp)
jmp 0x5118f
movl 0xfc(%rsp), %eax
subl 0xec(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x18(%rsp)
movl 0x18(%rsp), %eax
movl %eax, 0x14(%rsp)
xorl %eax, %eax
subl 0xcc(%rsp), %eax
xorl %ecx, %ecx
subl 0xec(%rsp), %ecx
cmpl %ecx, %eax
jle 0x511bc
xorl %eax, %eax
subl 0xcc(%rsp), %eax
movl %eax, 0x10(%rsp)
jmp 0x511c9
xorl %eax, %eax
subl 0xec(%rsp), %eax
movl %eax, 0x10(%rsp)
movl 0x14(%rsp), %eax
movl 0x10(%rsp), %ecx
subl %ecx, %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
movl 0xcc(%rsp), %eax
movl 0xf8(%rsp), %ecx
subl 0xe8(%rsp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x51203
movl 0xcc(%rsp), %eax
movl %eax, 0x8(%rsp)
jmp 0x51218
movl 0xf8(%rsp), %eax
subl 0xe8(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x8(%rsp)
movl 0x8(%rsp), %eax
movl %eax, 0x4(%rsp)
xorl %eax, %eax
subl 0xcc(%rsp), %eax
xorl %ecx, %ecx
subl 0xe8(%rsp), %ecx
cmpl %ecx, %eax
jle 0x51244
xorl %eax, %eax
subl 0xcc(%rsp), %eax
movl %eax, (%rsp)
jmp 0x51250
xorl %eax, %eax
subl 0xe8(%rsp), %eax
movl %eax, (%rsp)
movl 0xc(%rsp), %eax
movl 0x4(%rsp), %ecx
movl (%rsp), %edx
subl %edx, %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl %eax, 0x48(%rsp)
movq 0x140(%rsp), %rax
movsd 0x98(%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x51284
jp 0x51284
jmp 0x512f6
movss 0x4c(%rsp), %xmm0
cvtss2sd %xmm0, %xmm1
movq 0x140(%rsp), %rax
movsd 0x98(%rax), %xmm0
cvtsi2sdl 0x48(%rsp), %xmm2
mulsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x512f6
movl $0x0, 0xbc(%rsp)
cmpl $0x80, 0xbc(%rsp)
jge 0x512f1
movq 0x130(%rsp), %rax
movslq 0xbc(%rsp), %rcx
xorps %xmm0, %xmm0
movss %xmm0, (%rax,%rcx,4)
movl 0xbc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xbc(%rsp)
jmp 0x512b9
jmp 0x51383
movl $0x0, 0xbc(%rsp)
cmpl $0x80, 0xbc(%rsp)
jge 0x51367
movq 0x130(%rsp), %rax
movslq 0xbc(%rsp), %rcx
movss (%rax,%rcx,4), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x84d9(%rip), %xmm1     # 0x59808
ucomisd %xmm1, %xmm0
jbe 0x51352
movq 0x130(%rsp), %rax
movslq 0xbc(%rsp), %rcx
movss 0x7ea7(%rip), %xmm0     # 0x591f4
movss %xmm0, (%rax,%rcx,4)
jmp 0x51354
movl 0xbc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xbc(%rsp)
jmp 0x51301
movq 0x130(%rsp), %rdi
movq 0x130(%rsp), %rsi
addq $0x200, %rsi            # imm = 0x200
callq 0x51460
addq $0x148, %rsp            # imm = 0x148
retq
nopl (%rax,%rax)