// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/covdet.c
// Function: vl_covdet_detect
void
vl_covdet_detect (VlCovDet * self)
{
  VlScaleSpaceGeometry geom = vl_scalespace_get_geometry(self->gss) ;
  VlScaleSpaceGeometry cgeom ;
  float * levelxx = NULL ;
  float * levelyy = NULL ;
  float * levelxy = NULL ;
  vl_index o, s ;

  assert (self) ;
  assert (self->gss) ;

  /* clear previous detections if any */
  self->numFeatures = 0 ;

  /* prepare buffers ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
  cgeom = geom ;
  if (self->method == VL_COVDET_METHOD_DOG) {
    cgeom.octaveLastSubdivision -= 1 ;
  }
  if (!self->css ||
      !vl_scalespacegeometry_is_equal(cgeom,
                                      vl_scalespace_get_geometry(self->css)))
  {
    if (self->css) vl_scalespace_delete(self->css) ;
    self->css = vl_scalespace_new_with_geometry(cgeom) ;
  }
  if (self->method == VL_COVDET_METHOD_HARRIS_LAPLACE ||
      self->method == VL_COVDET_METHOD_MULTISCALE_HARRIS) {
    VlScaleSpaceOctaveGeometry oct = vl_scalespace_get_octave_geometry(self->gss, geom.firstOctave) ;
    levelxx = vl_malloc(oct.width * oct.height * sizeof(float)) ;
    levelyy = vl_malloc(oct.width * oct.height * sizeof(float)) ;
    levelxy = vl_malloc(oct.width * oct.height * sizeof(float)) ;
  }

  /* compute cornerness ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
  for (o = cgeom.firstOctave ; o <= cgeom.lastOctave ; ++o) {
    VlScaleSpaceOctaveGeometry oct = vl_scalespace_get_octave_geometry(self->css, o) ;

    for (s = cgeom.octaveFirstSubdivision ; s <= cgeom.octaveLastSubdivision ; ++s) {
      float * level = vl_scalespace_get_level(self->gss, o, s) ;
      float * clevel = vl_scalespace_get_level(self->css, o, s) ;
      double sigma = vl_scalespace_get_level_sigma(self->css, o, s) ;
      switch (self->method) {
        case VL_COVDET_METHOD_DOG:
          _vl_dog_response(clevel,
                           vl_scalespace_get_level(self->gss, o, s + 1),
                           level,
                           oct.width, oct.height) ;
          break ;

        case VL_COVDET_METHOD_HARRIS_LAPLACE:
        case VL_COVDET_METHOD_MULTISCALE_HARRIS:
          _vl_harris_response(clevel,
                              level, oct.width, oct.height, oct.step,
                              sigma, 1.4 * sigma, 0.05) ;
          break ;

        case VL_COVDET_METHOD_HESSIAN:
        case VL_COVDET_METHOD_HESSIAN_LAPLACE:
        case VL_COVDET_METHOD_MULTISCALE_HESSIAN:
          _vl_det_hessian_response(clevel, level, oct.width, oct.height, oct.step, sigma) ;
          break ;

        default:
          assert(0) ;
      }
    }
  }

  /* find and refine local maxima ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
  {
    vl_index * extrema = NULL ;
    vl_size extremaBufferSize = 0 ;
    vl_size numExtrema ;
    vl_size index ;
    for (o = cgeom.firstOctave ; o <= cgeom.lastOctave ; ++o) {
      VlScaleSpaceOctaveGeometry octgeom = vl_scalespace_get_octave_geometry(self->css, o) ;
      double step = octgeom.step ;
      vl_size width = octgeom.width ;
      vl_size height = octgeom.height ;
      vl_size depth = cgeom.octaveLastSubdivision - cgeom.octaveFirstSubdivision + 1 ;

      switch (self->method) {
        case VL_COVDET_METHOD_DOG:
        case VL_COVDET_METHOD_HESSIAN:
        {
          /* scale-space extrema */
          float const * octave =
          vl_scalespace_get_level(self->css, o, cgeom.octaveFirstSubdivision) ;
          numExtrema = vl_find_local_extrema_3(&extrema, &extremaBufferSize,
                                               octave, width, height, depth,
                                               0.8 * self->peakThreshold);
          for (index = 0 ; index < numExtrema ; ++index) {
            VlCovDetExtremum3 refined ;
            VlCovDetFeature feature ;
            vl_bool ok ;
            memset(&feature, 0, sizeof(feature)) ;
            ok = vl_refine_local_extreum_3(&refined,
                                           octave, width, height, depth,
                                           extrema[3*index+0],
                                           extrema[3*index+1],
                                           extrema[3*index+2]) ;
            ok &= fabs(refined.peakScore) > self->peakThreshold ;
            ok &= refined.edgeScore < self->edgeThreshold ;
            if (ok) {
              double sigma = cgeom.baseScale *
              pow(2.0, o + (refined.z + cgeom.octaveFirstSubdivision)
                  / cgeom.octaveResolution) ;
              feature.frame.x = refined.x * step ;
              feature.frame.y = refined.y * step ;
              feature.frame.a11 = sigma ;
              feature.frame.a12 = 0.0 ;
              feature.frame.a21 = 0.0 ;
              feature.frame.a22 = sigma ;
              feature.peakScore = refined.peakScore ;
              feature.edgeScore = refined.edgeScore ;
              vl_covdet_append_feature(self, &feature) ;
            }
          }
          break ;
        }

        default:
        {
          for (s = cgeom.octaveFirstSubdivision ; s < cgeom.octaveLastSubdivision ; ++s) {
            /* space extrema */
            float const * level = vl_scalespace_get_level(self->css,o,s) ;
            numExtrema = vl_find_local_extrema_2(&extrema, &extremaBufferSize,
                                                 level,
                                                 width, height,
                                                 0.8 * self->peakThreshold);
            for (index = 0 ; index < numExtrema ; ++index) {
              VlCovDetExtremum2 refined ;
              VlCovDetFeature feature ;
              vl_bool ok ;
              memset(&feature, 0, sizeof(feature)) ;
              ok = vl_refine_local_extreum_2(&refined,
                                             level, width, height,
                                             extrema[2*index+0],
                                             extrema[2*index+1]);
              ok &= fabs(refined.peakScore) > self->peakThreshold ;
              ok &= refined.edgeScore < self->edgeThreshold ;
              if (ok) {
                double sigma = cgeom.baseScale *
                pow(2.0, o + (double)s / cgeom.octaveResolution) ;
                feature.frame.x = refined.x * step ;
                feature.frame.y = refined.y * step ;
                feature.frame.a11 = sigma ;
                feature.frame.a12 = 0.0 ;
                feature.frame.a21 = 0.0 ;
                feature.frame.a22 = sigma ;
                feature.peakScore = refined.peakScore ;
                feature.edgeScore = refined.edgeScore ;
                vl_covdet_append_feature(self, &feature) ;
              }
            }
          }
          break ;
        }
      }
    } /* next octave */

    if (extrema) { vl_free(extrema) ; extrema = 0 ; }
  }

  /* Laplacian scale selection for certain methods */
  switch (self->method) {
    case VL_COVDET_METHOD_HARRIS_LAPLACE :
    case VL_COVDET_METHOD_HESSIAN_LAPLACE :
      vl_covdet_extract_laplacian_scales (self) ;
      break ;
    default:
      break ;
  }

  if (self->nonExtremaSuppression) {
    vl_index i, j ;
    double tol = self->nonExtremaSuppression ;
    self->numNonExtremaSuppressed = 0 ;
    for (i = 0 ; i < (signed)self->numFeatures ; ++i) {
      double x = self->features[i].frame.x ;
      double y = self->features[i].frame.y ;
      double sigma = self->features[i].frame.a11 ;
      double score = self->features[i].peakScore ;

      for (j = 0 ; j < (signed)self->numFeatures ; ++j) {
        double dx_ = self->features[j].frame.x - x ;
        double dy_ = self->features[j].frame.y - y ;
        double sigma_ = self->features[j].frame.a11 ;
        double score_ = self->features[j].peakScore ;
        if (score_ == 0) continue ;
        if (sigma < (1+tol) * sigma_ &&
            sigma_ < (1+tol) * sigma &&
            vl_abs_d(dx_) < tol * sigma &&
            vl_abs_d(dy_) < tol * sigma &&
            vl_abs_d(score) > vl_abs_d(score_)) {
          self->features[j].peakScore = 0 ;
          self->numNonExtremaSuppressed ++ ;
        }
      }
    }
    j = 0 ;
    for (i = 0 ; i < (signed)self->numFeatures ; ++i) {
      VlCovDetFeature feature = self->features[i] ;
      if (self->features[i].peakScore != 0) {
        self->features[j++] = feature ;
      }
    }
    self->numFeatures = j ;
  }

  if (levelxx) vl_free(levelxx) ;
  if (levelyy) vl_free(levelyy) ;
  if (levelxy) vl_free(levelxy) ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rdi, %r14
movq (%rdi), %rsi
leaq 0x1c8(%rsp), %rbx
movq %rbx, %rdi
callq 0x98c0
movq $0x0, 0x58(%r14)
leaq 0x140(%rsp), %rdi
movl $0x9, %ecx
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
cmpl $0x1, 0x10(%r14)
jne 0xc0bc
decq 0x170(%rsp)
movq 0x8(%r14), %rsi
testq %rsi, %rsi
je 0xc115
leaq 0x210(%rsp), %rbx
movq %rbx, %rdi
callq 0x98c0
leaq 0x140(%rsp), %rsi
movl $0x9, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x48(%rsp), %rdi
movl $0x9, %ecx
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x9560
testl %eax, %eax
movq %r14, %r8
jne 0xc134
movq 0x8(%r8), %rdi
testq %rdi, %rdi
movq %r8, %r14
je 0xc115
callq 0x9820
leaq 0x140(%rsp), %rsi
movl $0x9, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
callq 0x98b0
movq %rax, 0x8(%r14)
movq %r14, %r8
movl 0x10(%r8), %eax
orl $0x2, %eax
cmpl $0x6, %eax
movq %r8, 0x98(%rsp)
jne 0xc1a9
movq (%r8), %rsi
movq 0x1d8(%rsp), %rdx
leaq 0xf0(%rsp), %rbx
movq %rbx, %rdi
callq 0x95f0
movq (%rbx), %rdi
imulq 0x8(%rbx), %rdi
shlq $0x2, %rdi
callq 0x95b0
movq %rax, %r14
movq (%rbx), %rdi
imulq 0x8(%rbx), %rdi
shlq $0x2, %rdi
callq 0x95b0
movq %rax, %r15
movq (%rbx), %rdi
imulq 0x8(%rbx), %rdi
shlq $0x2, %rdi
callq 0x95b0
movq 0x98(%rsp), %r8
movq %rax, %rbx
jmp 0xc1b1
xorl %ebx, %ebx
xorl %r15d, %r15d
xorl %r14d, %r14d
movq 0x150(%rsp), %rbp
movq 0x158(%rsp), %rax
cmpq %rax, %rbp
movq %rbx, 0x130(%rsp)
movq %r14, 0x128(%rsp)
movq %r15, 0x120(%rsp)
jg 0xc83e
movq 0x8(%r8), %rsi
leaq 0xf0(%rsp), %rdi
movq %rbp, %rdx
callq 0x95f0
movq 0x98(%rsp), %r8
movq 0x168(%rsp), %r14
cmpq 0x170(%rsp), %r14
jg 0xc806
movq %rbp, 0xb0(%rsp)
movq (%r8), %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x9050
movq %rax, %rbx
movq 0x98(%rsp), %rax
movq 0x8(%rax), %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x9050
movq %rax, %r15
movq 0x98(%rsp), %rax
movq 0x8(%rax), %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x97e0
movq 0x98(%rsp), %r8
movl 0x10(%r8), %eax
cmpl $0x6, %eax
ja 0xc7f1
movl $0x2c, %ecx
btl %eax, %ecx
jb 0xc4a7
movl $0x50, %ecx
btl %eax, %ecx
jae 0xc652
movq %r14, 0xd0(%rsp)
movq 0xf0(%rsp), %r14
movq 0xf8(%rsp), %r12
movq %r12, 0xe0(%rsp)
movsd 0x100(%rsp), %xmm2
movapd %xmm0, %xmm1
mulsd 0x25f94(%rip), %xmm1    # 0x32258
movsd %xmm1, 0xa0(%rsp)
movsd %xmm2, 0xc0(%rsp)
divsd %xmm2, %xmm0
movsd 0x25f6e(%rip), %xmm1    # 0x32250
callq 0x9270
movsd %xmm0, 0xb8(%rsp)
movq %r14, %r13
imulq %r12, %r13
shlq $0x2, %r13
movq %r13, %rdi
callq 0x95b0
movq %rax, %r12
movq %r13, %rdi
callq 0x95b0
movq %rax, %rbp
movq %r13, %rdi
callq 0x95b0
movq %rax, %r13
movq %r14, 0x8(%rsp)
movq 0xe0(%rsp), %rax
movq %rax, (%rsp)
movl $0x1, %edx
movq %r12, %rdi
movq %rbp, %rsi
movq %r14, %rcx
movq %rbx, %r8
movq %r14, %r9
callq 0x9170
movq 0xe0(%rsp), %r8
movl %r14d, %eax
imull %r8d, %eax
movslq %eax, %rbx
testq %rbx, %rbx
jle 0xc745
movsd 0xc0(%rsp), %xmm4
movsd 0xa0(%rsp), %xmm3
xorps %xmm0, %xmm0
cvtsd2ss 0xb8(%rsp), %xmm0
movss %xmm0, 0xb8(%rsp)
xorl %eax, %eax
movss (%r12,%rax,4), %xmm0
movss (%rbp,%rax,4), %xmm1
movaps %xmm0, %xmm2
mulss %xmm0, %xmm2
movss %xmm2, (%r12,%rax,4)
mulss %xmm1, %xmm0
mulss %xmm1, %xmm1
movss %xmm1, (%rbp,%rax,4)
movss %xmm0, (%r13,%rax,4)
incq %rax
cmpq %rax, %rbx
jne 0xc38a
movapd %xmm3, %xmm0
divsd %xmm4, %xmm0
movsd %xmm0, 0xa0(%rsp)
movq %r12, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %r14, %rcx
movq %r14, %r9
movapd %xmm0, %xmm1
callq 0x9770
movq %rbp, %rdi
movq %r14, %rsi
movq %rbp, %rdx
movq %r14, %rcx
movq 0xe0(%rsp), %r8
movq %r14, %r9
movsd 0xa0(%rsp), %xmm0
movaps %xmm0, %xmm1
callq 0x9770
movq %r13, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r14, %rcx
movq 0xe0(%rsp), %r8
movq %r14, %r9
movsd 0xa0(%rsp), %xmm0
movaps %xmm0, %xmm1
callq 0x9770
xorps %xmm0, %xmm0
cvtss2sd 0xb8(%rsp), %xmm0
xorl %eax, %eax
movsd 0x25e11(%rip), %xmm5    # 0x32260
movss (%r12,%rax,4), %xmm1
movss (%rbp,%rax,4), %xmm2
movss (%r13,%rax,4), %xmm3
mulss %xmm3, %xmm3
movaps %xmm1, %xmm4
mulss %xmm2, %xmm4
subss %xmm3, %xmm4
addss %xmm2, %xmm1
xorps %xmm2, %xmm2
cvtss2sd %xmm4, %xmm2
mulss %xmm1, %xmm1
cvtss2sd %xmm1, %xmm1
mulsd %xmm5, %xmm1
addsd %xmm2, %xmm1
mulsd %xmm0, %xmm1
cvtsd2ss %xmm1, %xmm1
movss %xmm1, (%r15,%rax,4)
incq %rax
cmpq %rax, %rbx
jne 0xc44f
jmp 0xc7c1
movq %r14, 0xd0(%rsp)
movq 0xf0(%rsp), %r14
movq 0xf8(%rsp), %r13
movsd 0x100(%rsp), %xmm1
divsd %xmm1, %xmm0
movsd 0x25d7c(%rip), %xmm1    # 0x32250
callq 0x9270
leaq 0x4(%r15), %r12
decq %r13
cmpq $0x2, %r13
jb 0xc6ac
cvtsd2ss %xmm0, %xmm0
leaq (%r12,%r14,4), %rax
leaq (%rbx,%r14,4), %rdi
movq %r14, %rcx
negq %rcx
movq %rcx, 0xa0(%rsp)
movl $0x1, %ecx
movl $0x1, %edx
subq %r14, %rdx
leaq -0x1(%r14), %rsi
leaq -0x2(%r14), %r8
movq %r8, 0xe0(%rsp)
leaq (,%r14,4), %r8
movq %r8, %r9
negq %r9
movss 0x25d74(%rip), %xmm10   # 0x322ac
leaq 0x8(%rdi), %r10
cmpq $0x2, %rsi
jb 0xc600
movss (%rdi,%r14,4), %xmm7
movss 0x4(%rdi,%r14,4), %xmm8
movss (%rdi), %xmm5
movss 0x4(%rdi), %xmm3
movss (%rdi,%rdx,4), %xmm1
movq 0xa0(%rsp), %r11
movss (%rdi,%r11,4), %xmm2
leaq (%rdi,%r8), %rbx
addq $0x8, %rbx
leaq (%rdi,%r9), %rbp
addq $0x8, %rbp
xorl %r11d, %r11d
movq 0xe0(%rsp), %rdi
subss %xmm7, %xmm2
movss (%rbp,%r11), %xmm4
movaps %xmm3, %xmm6
addss %xmm3, %xmm6
movaps %xmm6, %xmm9
subss %xmm5, %xmm9
movaps %xmm3, %xmm5
movss (%r10,%r11), %xmm3
subss %xmm1, %xmm6
subss %xmm8, %xmm6
movaps %xmm8, %xmm7
movss (%rbx,%r11), %xmm8
subss %xmm3, %xmm9
mulss %xmm9, %xmm6
subss %xmm4, %xmm2
addss %xmm8, %xmm2
mulss %xmm10, %xmm2
mulss %xmm2, %xmm2
subss %xmm2, %xmm6
mulss %xmm0, %xmm6
movss %xmm6, (%rax,%r11)
addq $0x4, %r11
movaps %xmm1, %xmm2
movaps %xmm4, %xmm1
decq %rdi
jne 0xc58a
addq %r11, %rax
addq %r11, %r10
addq $0x8, %rax
incq %rcx
movq %r10, %rdi
cmpq %r13, %rcx
jne 0xc538
leaq (%r15,%r14,4), %rbp
leaq (%r15,%r14,4), %rsi
addq $0x4, %rsi
leaq -0x8(,%r14,4), %rbx
movq %r12, %rdi
movq %rbx, %rdx
callq 0x95a0
movq 0xa0(%rsp), %rax
leaq 0x4(,%rax,4), %r12
addq %rbp, %r12
movq 0xb0(%rsp), %rbp
jmp 0xc6da
cmpl $0x1, %eax
jne 0xc7f1
movq (%r8), %rdi
leaq 0x1(%r14), %rdx
movq %rbp, %rsi
callq 0x9050
movq 0x98(%rsp), %r8
movl 0xf0(%rsp), %ecx
imull 0xf8(%rsp), %ecx
movslq %ecx, %rcx
testq %rcx, %rcx
jle 0xc7f1
xorl %edx, %edx
movss (%rbx,%rdx,4), %xmm0
subss (%rax,%rdx,4), %xmm0
movss %xmm0, (%r15,%rdx,4)
incq %rdx
cmpq %rdx, %rcx
jne 0xc68f
jmp 0xc7f1
movq %r14, %rax
negq %rax
movq %rax, 0xa0(%rsp)
leaq (%r15,%r14,4), %rsi
addq $0x4, %rsi
leaq -0x8(,%r14,4), %rbx
movq %r12, %rdi
movq %rbx, %rdx
callq 0x95a0
testq %r13, %r13
je 0xc706
leaq (,%r14,4), %rax
movss (%r12), %xmm0
movss %xmm0, (%r15)
movss -0xc(%r12,%rax), %xmm0
addq %rax, %r12
movss %xmm0, -0x4(%r15,%rax)
addq %rax, %r15
decq %r13
jne 0xc6e2
movq 0xa0(%rsp), %rax
leaq (%r12,%rax,4), %rsi
movss (%rsi), %xmm0
movss %xmm0, (%r15)
movss -0xc(%r12), %xmm0
movss %xmm0, -0x4(%r15,%r14,4)
addq $0x4, %r15
movq %r15, %rdi
movq %rbx, %rdx
callq 0x95a0
movq 0x98(%rsp), %r8
jmp 0xc7e9
movsd 0xa0(%rsp), %xmm0
divsd 0xc0(%rsp), %xmm0
movsd %xmm0, 0xa0(%rsp)
movq %r12, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %r14, %rcx
movq %r8, %rbx
movq %r14, %r9
movapd %xmm0, %xmm1
callq 0x9770
movq %rbp, %rdi
movq %r14, %rsi
movq %rbp, %rdx
movq %r14, %rcx
movq %rbx, %r8
movq %r14, %r9
movsd 0xa0(%rsp), %xmm0
movaps %xmm0, %xmm1
callq 0x9770
movq %r13, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r14, %rcx
movq %rbx, %r8
movq %r14, %r9
movsd 0xa0(%rsp), %xmm0
movaps %xmm0, %xmm1
callq 0x9770
movq %r13, %rdi
callq 0x9580
movq %rbp, %rdi
callq 0x9580
movq %r12, %rdi
callq 0x9580
movq 0x98(%rsp), %r8
movq 0xb0(%rsp), %rbp
movq 0xd0(%rsp), %r14
leaq 0x1(%r14), %rax
cmpq 0x170(%rsp), %r14
movq %rax, %r14
jl 0xc21c
leaq 0x1(%rbp), %rcx
movq 0x158(%rsp), %rax
cmpq %rax, %rbp
movq %rcx, %rbp
jl 0xc1e2
movq 0x150(%rsp), %rbp
movq 0x130(%rsp), %rbx
movq 0x128(%rsp), %r14
movq 0x120(%rsp), %r15
xorl %ecx, %ecx
movq %rcx, 0xc8(%rsp)
movq %rcx, 0x138(%rsp)
cmpq %rax, %rbp
jg 0xcd34
movq 0x8(%r8), %rsi
leaq 0x1b0(%rsp), %rdi
movq %rbp, %rdx
callq 0x95f0
movq 0x98(%rsp), %r8
movsd 0x1c0(%rsp), %xmm0
movapd %xmm0, 0xd0(%rsp)
movq 0x1b0(%rsp), %r15
movq %rbp, %rsi
movq 0x1b8(%rsp), %rbp
movq 0x168(%rsp), %r13
movq 0x170(%rsp), %r14
movl 0x10(%r8), %eax
decl %eax
cmpl $0x2, %eax
movq %rsi, 0xb0(%rsp)
jae 0xcae5
subq %r13, %r14
incq %r14
movq 0x8(%r8), %rdi
movq %r13, %rdx
callq 0x9050
movq %rax, %rbx
movq 0x98(%rsp), %rax
movsd 0x18(%rax), %xmm0
mulsd 0x2597d(%rip), %xmm0    # 0x32268
leaq 0xc8(%rsp), %rdi
leaq 0x138(%rsp), %rsi
movq %rbx, %rdx
movq %r15, %rcx
movq %rbp, %r8
movq %r14, %r9
callq 0x9980
movq 0x98(%rsp), %r8
testq %rax, %rax
je 0xcce8
movq %rax, %r13
xorps %xmm0, %xmm0
cvtsi2ssq 0xb0(%rsp), %xmm0
movss %xmm0, 0xb8(%rsp)
movq 0xc8(%rsp), %r12
movaps 0xd0(%rsp), %xmm0
movlhps %xmm0, %xmm0            # xmm0 = xmm0[0,0]
movaps %xmm0, 0xd0(%rsp)
addq $0x10, %r12
movq %r14, 0xc0(%rsp)
movq $0x0, 0x1a8(%rsp)
movq -0x10(%r12), %r9
movups -0x8(%r12), %xmm0
movups %xmm0, (%rsp)
leaq 0xf0(%rsp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %rbp, %rcx
movq %r14, %r8
callq 0x90d0
movq 0x98(%rsp), %r8
movsd 0x114(%rsp), %xmm2
movaps %xmm2, %xmm0
shufps $0x55, %xmm2, %xmm0     # xmm0 = xmm0[1,1],xmm2[1,1]
cvtss2sd %xmm0, %xmm0
movsd 0x20(%r8), %xmm1
ucomisd %xmm0, %xmm1
jbe 0xcad3
movaps %xmm2, %xmm0
andps 0x257a9(%rip), %xmm0    # 0x32170
cvtss2sd %xmm0, %xmm0
ucomisd 0x18(%r8), %xmm0
jbe 0xcad3
testl %eax, %eax
je 0xcad3
movq 0x160(%rsp), %rax
testq %rax, %rax
movaps %xmm2, 0xa0(%rsp)
js 0xc9fe
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
jmp 0xca16
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
xorps %xmm1, %xmm1
cvtsi2ssq 0x168(%rsp), %xmm1
addss 0x110(%rsp), %xmm1
movsd 0x178(%rsp), %xmm2
movsd %xmm2, 0xe0(%rsp)
divss %xmm0, %xmm1
addss 0xb8(%rsp), %xmm1
xorps %xmm0, %xmm0
cvtss2sd %xmm1, %xmm0
callq 0x9040
cvtps2pd 0x108(%rsp), %xmm1
mulpd 0xd0(%rsp), %xmm1
cvtpd2ps %xmm1, %xmm1
mulsd 0xe0(%rsp), %xmm0
movlpd %xmm1, 0x188(%rsp)
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x190(%rsp)
movq $0x0, 0x194(%rsp)
movss %xmm0, 0x19c(%rsp)
movaps 0xa0(%rsp), %xmm0
movlps %xmm0, 0x1a0(%rsp)
movq 0x98(%rsp), %r14
movq %r14, %rdi
leaq 0x188(%rsp), %rsi
callq 0x94e0
movq %r14, %r8
movq 0xc0(%rsp), %r14
addq $0x18, %r12
decq %r13
jne 0xc95d
jmp 0xcce8
cmpq %r13, %r14
jle 0xcce8
xorps %xmm0, %xmm0
cvtsi2sdq 0xb0(%rsp), %xmm0
movsd %xmm0, 0xb8(%rsp)
movaps 0xd0(%rsp), %xmm0
movlhps %xmm0, %xmm0            # xmm0 = xmm0[0,0]
movaps %xmm0, 0xd0(%rsp)
movq 0x8(%r8), %rdi
movq 0xb0(%rsp), %rsi
movq %r13, %rdx
movq %r8, %r14
callq 0x9050
movq %rax, %rbx
movsd 0x18(%r14), %xmm0
mulsd 0x25729(%rip), %xmm0    # 0x32268
leaq 0xc8(%rsp), %rdi
leaq 0x138(%rsp), %rsi
movq %rax, %rdx
movq %r15, %rcx
movq %rbp, %r8
callq 0x9590
testq %rax, %rax
je 0xcccf
movq %rax, %r12
movq 0xc8(%rsp), %r14
xorps %xmm0, %xmm0
cvtsi2sd %r13, %xmm0
movsd %xmm0, 0xc0(%rsp)
addq $0x8, %r14
movq $0x0, 0x110(%rsp)
movq -0x8(%r14), %r8
movq (%r14), %r9
leaq 0x188(%rsp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %rbp, %rcx
callq 0x9680
movsd 0x1a0(%rsp), %xmm2
movaps %xmm2, %xmm0
shufps $0x55, %xmm2, %xmm0     # xmm0 = xmm0[1,1],xmm2[1,1]
cvtss2sd %xmm0, %xmm0
movq 0x98(%rsp), %rcx
movsd 0x20(%rcx), %xmm1
ucomisd %xmm0, %xmm1
jbe 0xccc2
movaps %xmm2, %xmm0
andps 0x2558c(%rip), %xmm0    # 0x32170
cvtss2sd %xmm0, %xmm0
ucomisd 0x18(%rcx), %xmm0
jbe 0xccc2
testl %eax, %eax
je 0xccc2
movsd 0x178(%rsp), %xmm0
movsd %xmm0, 0xa0(%rsp)
movsd 0x160(%rsp), %xmm0
unpcklps 0x25563(%rip), %xmm0    # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x2556b(%rip), %xmm0    # 0x32190
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0xc0(%rsp), %xmm0
divsd %xmm1, %xmm0
addsd 0xb8(%rsp), %xmm0
movaps %xmm2, 0xe0(%rsp)
callq 0x9040
cvtps2pd 0x198(%rsp), %xmm1
mulpd 0xd0(%rsp), %xmm1
cvtpd2ps %xmm1, %xmm1
mulsd 0xa0(%rsp), %xmm0
movlpd %xmm1, 0xf0(%rsp)
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xf8(%rsp)
movq $0x0, 0xfc(%rsp)
movss %xmm0, 0x104(%rsp)
movaps 0xe0(%rsp), %xmm0
movlps %xmm0, 0x108(%rsp)
movq 0x98(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
callq 0x94e0
addq $0x10, %r14
decq %r12
jne 0xcb86
incq %r13
cmpq 0x170(%rsp), %r13
movq 0x98(%rsp), %r8
jl 0xcb17
movq 0xb0(%rsp), %rcx
leaq 0x1(%rcx), %rbp
cmpq 0x158(%rsp), %rcx
jl 0xc859
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
movq 0x130(%rsp), %rbx
movq 0x128(%rsp), %r14
movq 0x120(%rsp), %r15
je 0xcd34
callq 0x9580
movq 0x98(%rsp), %r8
movl 0x10(%r8), %eax
addl $-0x3, %eax
cmpl $0x1, %eax
ja 0xcd50
movq %r8, %rdi
callq 0x9930
movq 0x98(%rsp), %r8
movsd 0x40(%r8), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0xcd65
jnp 0xcee0
movq $0x0, 0x48(%r8)
movq 0x58(%r8), %rax
movslq %eax, %rcx
testq %rcx, %rcx
jle 0xce73
movq 0x98(%rsp), %rdx
movq 0x50(%rdx), %rdx
movsd 0x254df(%rip), %xmm1    # 0x32270
addsd %xmm0, %xmm1
leaq 0x18(%rdx), %rsi
xorl %edi, %edi
movaps 0x253ce(%rip), %xmm2    # 0x32170
xorps %xmm3, %xmm3
movapd 0x25353(%rip), %xmm4    # 0x32100
xorl %r8d, %r8d
leaq (%r8,%r8,4), %r9
cvtps2pd (%rdx,%r9,8), %xmm5
xorps %xmm6, %xmm6
cvtss2sd 0x8(%rdx,%r9,8), %xmm6
movapd %xmm1, %xmm7
mulsd %xmm6, %xmm7
movapd %xmm0, %xmm8
mulsd %xmm6, %xmm8
movss 0x18(%rdx,%r9,8), %xmm9
andps %xmm2, %xmm9
unpcklpd %xmm8, %xmm8            # xmm8 = xmm8[0,0]
movq %rsi, %r9
movq %rcx, %r10
movss (%r9), %xmm10
ucomiss %xmm3, %xmm10
jne 0xce03
jp 0xce03
addq $0x28, %r9
decq %r10
jne 0xcdeb
jmp 0xce67
xorps %xmm11, %xmm11
cvtss2sd -0x10(%r9), %xmm11
ucomisd %xmm11, %xmm7
jbe 0xcdf8
mulsd %xmm1, %xmm11
ucomisd %xmm6, %xmm11
jbe 0xcdf8
cvtps2pd -0x18(%r9), %xmm11
subpd %xmm5, %xmm11
andpd %xmm4, %xmm11
cmpltpd %xmm8, %xmm11
movmskpd %xmm11, %r11d
testb $0x1, %r11b
je 0xcdf8
shrb %r11b
je 0xcdf8
andps %xmm2, %xmm10
ucomiss %xmm10, %xmm9
jbe 0xcdf8
movl $0x0, (%r9)
incq %rdi
movq 0x98(%rsp), %r11
movq %rdi, 0x48(%r11)
jmp 0xcdf8
incq %r8
cmpq %rcx, %r8
jne 0xcdb0
testl %eax, %eax
jle 0xced2
xorl %ecx, %ecx
xorpd %xmm0, %xmm0
xorl %esi, %esi
xorl %edx, %edx
movq 0x98(%rsp), %r9
movq 0x50(%r9), %rdi
movss 0x18(%rdi,%rcx), %xmm1
ucomiss %xmm0, %xmm1
jne 0xce9a
jnp 0xcec1
leaq (%rdx,%rdx,4), %rax
incq %rdx
movups (%rdi,%rcx), %xmm1
movups 0x10(%rdi,%rcx), %xmm2
movq 0x20(%rdi,%rcx), %r8
movq %r8, 0x20(%rdi,%rax,8)
movups %xmm2, 0x10(%rdi,%rax,8)
movups %xmm1, (%rdi,%rax,8)
movq 0x58(%r9), %rax
incq %rsi
movslq %eax, %rdi
addq $0x28, %rcx
cmpq %rdi, %rsi
jl 0xce89
jmp 0xcedc
xorl %edx, %edx
movq 0x98(%rsp), %r9
movq %rdx, 0x58(%r9)
testq %r14, %r14
je 0xceed
movq %r14, %rdi
callq 0x9580
testq %r15, %r15
je 0xcefa
movq %r15, %rdi
callq 0x9580
testq %rbx, %rbx
je 0xcf07
movq %rbx, %rdi
callq 0x9580
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq