// File: redpony[P]libpopt/./lbfgs.h
// Function: scitbx::lbfgs::detail::mcsrch<double, unsigned long>::run(double const&, double const&, double const&, unsigned long, double*, double, double const*, double*, unsigned long, double&, double, double, unsigned long, int&, unsigned long&, double*)
void mcsrch<FloatType, SizeType>::run(
      FloatType const& gtol,
      FloatType const& stpmin,
      FloatType const& stpmax,
      SizeType n,
      FloatType* x,
      FloatType f,
      const FloatType* g,
      FloatType* s,
      SizeType is0,
      FloatType& stp,
      FloatType ftol,
      FloatType xtol,
      SizeType maxfev,
      int& info,
      SizeType& nfev,
      FloatType* wa)
    {
      if (info != -1) {
        infoc = 1;
        if (   n == 0
            || maxfev == 0
            || gtol < FloatType(0)
            || xtol < FloatType(0)
            || stpmin < FloatType(0)
            || stpmax < stpmin) {
          throw error_internal_error(__FILE__, __LINE__);
        }
        if (stp <= FloatType(0) || ftol < FloatType(0)) {
          throw error_internal_error(__FILE__, __LINE__);
        }
        // Compute the initial gradient in the search direction
        // and check that s is a descent direction.
        dginit = FloatType(0);
        for (SizeType j = 0; j < n; j++) {
          dginit += g[j] * s[is0+j];
        }
        if (dginit >= FloatType(0)) {
          throw error_search_direction_not_descent();
        }
        brackt = false;
        stage1 = true;
        nfev = 0;
        finit = f;
        dgtest = ftol*dginit;
        width = stpmax - stpmin;
        width1 = FloatType(2) * width;
        std::copy(x, x+n, wa);
        // The variables stx, fx, dgx contain the values of the step,
        // function, and directional derivative at the best step.
        // The variables sty, fy, dgy contain the value of the step,
        // function, and derivative at the other endpoint of
        // the interval of uncertainty.
        // The variables stp, f, dg contain the values of the step,
        // function, and derivative at the current step.
        stx = FloatType(0);
        fx = finit;
        dgx = dginit;
        sty = FloatType(0);
        fy = finit;
        dgy = dginit;
      }
      for (;;) {
        if (info != -1) {
          // Set the minimum and maximum steps to correspond
          // to the present interval of uncertainty.
          if (brackt) {
            stmin = std::min(stx, sty);
            stmax = std::max(stx, sty);
          }
          else {
            stmin = stx;
            stmax = stp + FloatType(4) * (stp - stx);
          }
          // Force the step to be within the bounds stpmax and stpmin.
          stp = std::max(stp, stpmin);
          stp = std::min(stp, stpmax);
          // If an unusual termination is to occur then let
          // stp be the lowest point obtained so far.
          if (   (brackt && (stp <= stmin || stp >= stmax))
              || nfev >= maxfev - 1 || infoc == 0
              || (brackt && stmax - stmin <= xtol * stmax)) {
            stp = stx;
          }
          // Evaluate the function and gradient at stp
          // and compute the directional derivative.
          // We return to main program to obtain F and G.
          for (SizeType j = 0; j < n; j++) {
            x[j] = wa[j] + stp * s[is0+j];
          }
          info=-1;
          break;
        }
        info = 0;
        nfev++;
        FloatType dg(0);
        for (SizeType j = 0; j < n; j++) {
          dg += g[j] * s[is0+j];
        }
        FloatType ftest1 = finit + stp*dgtest;
        // Test for convergence.
        if ((brackt && (stp <= stmin || stp >= stmax)) || infoc == 0) {
          throw error_line_search_failed_rounding_errors(
            "Rounding errors prevent further progress."
            " There may not be a step which satisfies the"
            " sufficient decrease and curvature conditions."
            " Tolerances may be too small.");
        }
        if (stp == stpmax && f <= ftest1 && dg <= dgtest) {
          throw error_line_search_failed(
            "The step is at the upper bound stpmax().");
        }
        if (stp == stpmin && (f > ftest1 || dg >= dgtest)) {
          throw error_line_search_failed(
            "The step is at the lower bound stpmin().");
        }
        if (nfev >= maxfev) {
          throw error_line_search_failed(
            "Number of function evaluations has reached maxfev().");
        }
        if (brackt && stmax - stmin <= xtol * stmax) {
          throw error_line_search_failed(
            "Relative width of the interval of uncertainty"
            " is at most xtol().");
        }
        // Check for termination.
        if (f <= ftest1 && abs(dg) <= gtol * (-dginit)) {
          info = 1;
          break;
        }
        // In the first stage we seek a step for which the modified
        // function has a nonpositive value and nonnegative derivative.
        if (   stage1 && f <= ftest1
            && dg >= std::min(ftol, gtol) * dginit) {
          stage1 = false;
        }
        // A modified function is used to predict the step only if
        // we have not obtained a step for which the modified
        // function has a nonpositive function value and nonnegative
        // derivative, and if a lower function value has been
        // obtained but the decrease is not sufficient.
        if (stage1 && f <= fx && f > ftest1) {
          // Define the modified function and derivative values.
          FloatType fm = f - stp*dgtest;
          FloatType fxm = fx - stx*dgtest;
          FloatType fym = fy - sty*dgtest;
          FloatType dgm = dg - dgtest;
          FloatType dgxm = dgx - dgtest;
          FloatType dgym = dgy - dgtest;
          // Call cstep to update the interval of uncertainty
          // and to compute the new step.
          infoc = mcstep(stx, fxm, dgxm, sty, fym, dgym, stp, fm, dgm,
                         brackt, stmin, stmax);
          // Reset the function and gradient values for f.
          fx = fxm + stx*dgtest;
          fy = fym + sty*dgtest;
          dgx = dgxm + dgtest;
          dgy = dgym + dgtest;
        }
        else {
          // Call mcstep to update the interval of uncertainty
          // and to compute the new step.
          infoc = mcstep(stx, fx, dgx, sty, fy, dgy, stp, f, dg,
                         brackt, stmin, stmax);
        }
        // Force a sufficient decrease in the size of the
        // interval of uncertainty.
        if (brackt) {
          if (abs(sty - stx) >= FloatType(0.66) * width1) {
            stp = stx + FloatType(0.5) * (sty - stx);
          }
          width1 = width;
          width = abs(sty - stx);
        }
      }
    }

// Assembly:
subq $0x218, %rsp            # imm = 0x218
movq 0x258(%rsp), %rax
movq 0x250(%rsp), %rax
movq 0x248(%rsp), %rax
movq 0x240(%rsp), %rax
movq 0x238(%rsp), %rax
movq 0x230(%rsp), %rax
movq 0x228(%rsp), %rax
movq 0x220(%rsp), %rax
movq %rdi, 0x210(%rsp)
movq %rsi, 0x208(%rsp)
movq %rdx, 0x200(%rsp)
movq %rcx, 0x1f8(%rsp)
movq %r8, 0x1f0(%rsp)
movq %r9, 0x1e8(%rsp)
movsd %xmm0, 0x1e0(%rsp)
movsd %xmm1, 0x1d8(%rsp)
movsd %xmm2, 0x1d0(%rsp)
movq 0x210(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x248(%rsp), %rax
cmpl $-0x1, (%rax)
je 0xad20
movq 0x88(%rsp), %rax
movl $0x1, (%rax)
cmpq $0x0, 0x1f0(%rsp)
je 0xaad5
cmpq $0x0, 0x240(%rsp)
je 0xaad5
movq 0x208(%rsp), %rax
xorps %xmm0, %xmm0
ucomisd (%rax), %xmm0
ja 0xaad5
xorps %xmm0, %xmm0
ucomisd 0x1d0(%rsp), %xmm0
ja 0xaad5
movq 0x200(%rsp), %rax
xorps %xmm0, %xmm0
ucomisd (%rax), %xmm0
ja 0xaad5
movq 0x1f8(%rsp), %rax
movsd (%rax), %xmm1
movq 0x200(%rsp), %rax
movsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0xab16
movl $0x28, %edi
callq 0x3100
movq %rax, %rdi
movq %rdi, 0x80(%rsp)
leaq 0x3a25(%rip), %rsi      # 0xe516
movl $0x1af, %edx            # imm = 0x1AF
callq 0xa740
movq 0x80(%rsp), %rdi
leaq 0x715e(%rip), %rsi      # 0x11c68
leaq -0x271(%rip), %rdx      # 0xa8a0
callq 0x3380
movq 0x238(%rsp), %rax
xorps %xmm0, %xmm0
ucomisd (%rax), %xmm0
jae 0xab35
xorps %xmm0, %xmm0
ucomisd 0x1d8(%rsp), %xmm0
jbe 0xab70
movl $0x28, %edi
callq 0x3100
movq %rax, %rdi
movq %rdi, 0x78(%rsp)
leaq 0x39c8(%rip), %rsi      # 0xe516
movl $0x1b2, %edx            # imm = 0x1B2
callq 0xa740
movq 0x78(%rsp), %rdi
leaq 0x7104(%rip), %rsi      # 0x11c68
leaq -0x2cb(%rip), %rdx      # 0xa8a0
callq 0x3380
movq 0x88(%rsp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x8(%rax)
movq $0x0, 0x1c8(%rsp)
movq 0x1c8(%rsp), %rax
cmpq 0x1f0(%rsp), %rax
jae 0xac00
movq 0x88(%rsp), %rax
movq 0x220(%rsp), %rcx
movq 0x1c8(%rsp), %rdx
movsd (%rcx,%rdx,8), %xmm0
movq 0x228(%rsp), %rcx
movq 0x230(%rsp), %rdx
addq 0x1c8(%rsp), %rdx
movsd (%rcx,%rdx,8), %xmm2
movsd 0x8(%rax), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rax)
movq 0x1c8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x1c8(%rsp)
jmp 0xab8c
movq 0x88(%rsp), %rax
movsd 0x8(%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0xac45
movl $0x28, %edi
callq 0x3100
movq %rax, %rdi
movq %rdi, 0x70(%rsp)
callq 0xc2f0
movq 0x70(%rsp), %rdi
leaq 0x70af(%rip), %rsi      # 0x11ce8
leaq 0x1730(%rip), %rdx      # 0xc370
callq 0x3380
movq 0x88(%rsp), %rax
movb $0x0, 0x10(%rax)
movb $0x1, 0x11(%rax)
movq 0x250(%rsp), %rcx
movq $0x0, (%rcx)
movsd 0x1e0(%rsp), %xmm0
movsd %xmm0, 0x18(%rax)
movsd 0x1d8(%rsp), %xmm0
mulsd 0x8(%rax), %xmm0
movsd %xmm0, 0x20(%rax)
movq 0x1f8(%rsp), %rcx
movsd (%rcx), %xmm0
movq 0x200(%rsp), %rcx
subsd (%rcx), %xmm0
movsd %xmm0, 0x28(%rax)
movsd 0x3386(%rip), %xmm0     # 0xe030
mulsd 0x28(%rax), %xmm0
movsd %xmm0, 0x30(%rax)
movq 0x1e8(%rsp), %rdi
movq 0x1e8(%rsp), %rsi
movq 0x1f0(%rsp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq 0x258(%rsp), %rdx
callq 0xa910
movq 0x88(%rsp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x38(%rax)
movsd 0x18(%rax), %xmm0
movsd %xmm0, 0x40(%rax)
movsd 0x8(%rax), %xmm0
movsd %xmm0, 0x48(%rax)
xorps %xmm0, %xmm0
movsd %xmm0, 0x50(%rax)
movsd 0x18(%rax), %xmm0
movsd %xmm0, 0x58(%rax)
movsd 0x8(%rax), %xmm0
movsd %xmm0, 0x60(%rax)
jmp 0xad22
movq 0x248(%rsp), %rax
cmpl $-0x1, (%rax)
je 0xaf84
movq 0x88(%rsp), %rax
testb $0x1, 0x10(%rax)
je 0xad90
movq 0x88(%rsp), %rsi
movq %rsi, %rdi
addq $0x38, %rdi
addq $0x50, %rsi
callq 0x7c90
movq 0x88(%rsp), %rsi
movsd (%rax), %xmm0
movsd %xmm0, 0x68(%rsi)
movq %rsi, %rdi
addq $0x38, %rdi
addq $0x50, %rsi
callq 0x5cb0
movq %rax, %rcx
movq 0x88(%rsp), %rax
movsd (%rcx), %xmm0
movsd %xmm0, 0x70(%rax)
jmp 0xadd4
movq 0x88(%rsp), %rax
movsd 0x38(%rax), %xmm0
movsd %xmm0, 0x68(%rax)
movq 0x238(%rsp), %rcx
movsd (%rcx), %xmm1
movq 0x238(%rsp), %rcx
movsd (%rcx), %xmm0
subsd 0x38(%rax), %xmm0
movsd 0x3251(%rip), %xmm2     # 0xe018
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x70(%rax)
movq 0x238(%rsp), %rdi
movq 0x200(%rsp), %rsi
callq 0x5cb0
movsd (%rax), %xmm0
movq 0x238(%rsp), %rax
movsd %xmm0, (%rax)
movq 0x238(%rsp), %rdi
movq 0x1f8(%rsp), %rsi
callq 0x7c90
movq %rax, %rcx
movq 0x88(%rsp), %rax
movsd (%rcx), %xmm0
movq 0x238(%rsp), %rcx
movsd %xmm0, (%rcx)
testb $0x1, 0x10(%rax)
je 0xae69
movq 0x88(%rsp), %rax
movq 0x238(%rsp), %rcx
movsd (%rcx), %xmm1
movsd 0x68(%rax), %xmm0
ucomisd %xmm1, %xmm0
jae 0xaec6
movq 0x88(%rsp), %rax
movq 0x238(%rsp), %rcx
movsd (%rcx), %xmm0
ucomisd 0x70(%rax), %xmm0
jae 0xaec6
movq 0x250(%rsp), %rax
movq (%rax), %rax
movq 0x240(%rsp), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0xaec6
movq 0x88(%rsp), %rax
cmpl $0x0, (%rax)
je 0xaec6
movq 0x88(%rsp), %rax
testb $0x1, 0x10(%rax)
je 0xaedf
movq 0x88(%rsp), %rax
movsd 0x70(%rax), %xmm1
subsd 0x68(%rax), %xmm1
movsd 0x1d0(%rsp), %xmm0
mulsd 0x70(%rax), %xmm0
ucomisd %xmm1, %xmm0
jb 0xaedf
movq 0x88(%rsp), %rax
movsd 0x38(%rax), %xmm0
movq 0x238(%rsp), %rax
movsd %xmm0, (%rax)
movq $0x0, 0x1c0(%rsp)
movq 0x1c0(%rsp), %rax
cmpq 0x1f0(%rsp), %rax
jae 0xaf71
movq 0x258(%rsp), %rax
movq 0x1c0(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq 0x238(%rsp), %rax
movsd (%rax), %xmm0
movq 0x228(%rsp), %rax
movq 0x230(%rsp), %rcx
addq 0x1c0(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq 0x1e8(%rsp), %rax
movq 0x1c0(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x1c0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x1c0(%rsp)
jmp 0xaeeb
movq 0x248(%rsp), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
jmp 0xba45
movq 0x248(%rsp), %rax
movl $0x0, (%rax)
movq 0x250(%rsp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
xorps %xmm0, %xmm0
movsd %xmm0, 0x1b8(%rsp)
movq $0x0, 0x1b0(%rsp)
movq 0x1b0(%rsp), %rax
cmpq 0x1f0(%rsp), %rax
jae 0xb030
movq 0x220(%rsp), %rax
movq 0x1b0(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x228(%rsp), %rax
movq 0x230(%rsp), %rcx
addq 0x1b0(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
movsd 0x1b8(%rsp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x1b8(%rsp)
movq 0x1b0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x1b0(%rsp)
jmp 0xafbc
movq 0x88(%rsp), %rax
movsd 0x18(%rax), %xmm1
movq 0x238(%rsp), %rcx
movsd (%rcx), %xmm0
movsd 0x20(%rax), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x1a8(%rsp)
testb $0x1, 0x10(%rax)
je 0xb09f
movq 0x88(%rsp), %rax
movq 0x238(%rsp), %rcx
movsd (%rcx), %xmm1
movsd 0x68(%rax), %xmm0
ucomisd %xmm1, %xmm0
jae 0xb0b0
movq 0x88(%rsp), %rax
movq 0x238(%rsp), %rcx
movsd (%rcx), %xmm0
ucomisd 0x70(%rax), %xmm0
jae 0xb0b0
movq 0x88(%rsp), %rax
cmpl $0x0, (%rax)
jne 0xb18a
movb $0x1, 0x173(%rsp)
movl $0x28, %edi
callq 0x3100
movq %rax, 0x60(%rsp)
leaq 0x187(%rsp), %rdi
movq %rdi, 0x68(%rsp)
callq 0x33c0
movq 0x68(%rsp), %rdx
leaq 0x3544(%rip), %rsi      # 0xe629
leaq 0x188(%rsp), %rdi
callq 0x55c0
jmp 0xb0f4
movq 0x60(%rsp), %rdi
leaq 0x188(%rsp), %rsi
callq 0xc380
movq 0x60(%rsp), %rdi
movb $0x0, 0x173(%rsp)
leaq 0x6bfe(%rip), %rsi      # 0x11d18
leaq 0x129f(%rip), %rdx      # 0xc3c0
callq 0x3380
jmp 0xba5a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x178(%rsp)
movl %eax, 0x174(%rsp)
jmp 0xb162
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x178(%rsp)
movl %eax, 0x174(%rsp)
leaq 0x188(%rsp), %rdi
callq 0x3140
leaq 0x187(%rsp), %rdi
callq 0x3270
testb $0x1, 0x173(%rsp)
jne 0xb17b
jmp 0xb185
movq 0x60(%rsp), %rdi
callq 0x3190
jmp 0xba4d
movq 0x238(%rsp), %rax
movsd (%rax), %xmm0
movq 0x1f8(%rsp), %rax
ucomisd (%rax), %xmm0
jne 0xb2c4
jp 0xb2c4
movsd 0x1e0(%rsp), %xmm1
movsd 0x1a8(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jb 0xb2c4
movq 0x88(%rsp), %rax
movsd 0x1b8(%rsp), %xmm1
movsd 0x20(%rax), %xmm0
ucomisd %xmm1, %xmm0
jb 0xb2c4
movb $0x1, 0x14e(%rsp)
movl $0x28, %edi
callq 0x3100
movq %rax, 0x50(%rsp)
leaq 0x14f(%rsp), %rdi
movq %rdi, 0x58(%rsp)
callq 0x33c0
movq 0x58(%rsp), %rdx
leaq 0x34ab(%rip), %rsi      # 0xe6ca
leaq 0x150(%rsp), %rdi
callq 0x55c0
jmp 0xb22e
movq 0x50(%rsp), %rdi
leaq 0x150(%rsp), %rsi
callq 0xc3d0
movq 0x50(%rsp), %rdi
movb $0x0, 0x14e(%rsp)
leaq 0x6aac(%rip), %rsi      # 0x11d00
leaq 0x11e5(%rip), %rdx      # 0xc440
callq 0x3380
jmp 0xba5a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x178(%rsp)
movl %eax, 0x174(%rsp)
jmp 0xb29c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x178(%rsp)
movl %eax, 0x174(%rsp)
leaq 0x150(%rsp), %rdi
callq 0x3140
leaq 0x14f(%rsp), %rdi
callq 0x3270
testb $0x1, 0x14e(%rsp)
jne 0xb2b5
jmp 0xb2bf
movq 0x50(%rsp), %rdi
callq 0x3190
jmp 0xba4d
movq 0x238(%rsp), %rax
movsd (%rax), %xmm0
movq 0x200(%rsp), %rax
ucomisd (%rax), %xmm0
jne 0xb3f2
jp 0xb3f2
movsd 0x1e0(%rsp), %xmm0
ucomisd 0x1a8(%rsp), %xmm0
ja 0xb318
movq 0x88(%rsp), %rax
movsd 0x1b8(%rsp), %xmm0
ucomisd 0x20(%rax), %xmm0
jb 0xb3f2
movb $0x1, 0x126(%rsp)
movl $0x28, %edi
callq 0x3100
movq %rax, 0x40(%rsp)
leaq 0x127(%rsp), %rdi
movq %rdi, 0x48(%rsp)
callq 0x33c0
movq 0x48(%rsp), %rdx
leaq 0x33a6(%rip), %rsi      # 0xe6f3
leaq 0x128(%rsp), %rdi
callq 0x55c0
jmp 0xb35c
movq 0x40(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0xc3d0
movq 0x40(%rsp), %rdi
movb $0x0, 0x126(%rsp)
leaq 0x697e(%rip), %rsi      # 0x11d00
leaq 0x10b7(%rip), %rdx      # 0xc440
callq 0x3380
jmp 0xba5a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x178(%rsp)
movl %eax, 0x174(%rsp)
jmp 0xb3ca
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x178(%rsp)
movl %eax, 0x174(%rsp)
leaq 0x128(%rsp), %rdi
callq 0x3140
leaq 0x127(%rsp), %rdi
callq 0x3270
testb $0x1, 0x126(%rsp)
jne 0xb3e3
jmp 0xb3ed
movq 0x40(%rsp), %rdi
callq 0x3190
jmp 0xba4d
movq 0x250(%rsp), %rax
movq (%rax), %rax
cmpq 0x240(%rsp), %rax
jb 0xb4e5
movb $0x1, 0xfe(%rsp)
movl $0x28, %edi
callq 0x3100
movq %rax, 0x30(%rsp)
leaq 0xff(%rsp), %rdi
movq %rdi, 0x38(%rsp)
callq 0x33c0
movq 0x38(%rsp), %rdx
leaq 0x32dc(%rip), %rsi      # 0xe71c
leaq 0x100(%rsp), %rdi
callq 0x55c0
jmp 0xb44f
movq 0x30(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0xc3d0
movq 0x30(%rsp), %rdi
movb $0x0, 0xfe(%rsp)
leaq 0x688b(%rip), %rsi      # 0x11d00
leaq 0xfc4(%rip), %rdx       # 0xc440
callq 0x3380
jmp 0xba5a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x178(%rsp)
movl %eax, 0x174(%rsp)
jmp 0xb4bd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x178(%rsp)
movl %eax, 0x174(%rsp)
leaq 0x100(%rsp), %rdi
callq 0x3140
leaq 0xff(%rsp), %rdi
callq 0x3270
testb $0x1, 0xfe(%rsp)
jne 0xb4d6
jmp 0xb4e0
movq 0x30(%rsp), %rdi
callq 0x3190
jmp 0xba4d
movq 0x88(%rsp), %rax
testb $0x1, 0x10(%rax)
je 0xb5fb
movq 0x88(%rsp), %rax
movsd 0x70(%rax), %xmm1
subsd 0x68(%rax), %xmm1
movsd 0x1d0(%rsp), %xmm0
mulsd 0x70(%rax), %xmm0
ucomisd %xmm1, %xmm0
jb 0xb5fb
movb $0x1, 0xd6(%rsp)
movl $0x28, %edi
callq 0x3100
movq %rax, 0x20(%rsp)
leaq 0xd7(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x33c0
movq 0x28(%rsp), %rdx
leaq 0x31fb(%rip), %rsi      # 0xe751
leaq 0xd8(%rsp), %rdi
callq 0x55c0
jmp 0xb565
movq 0x20(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0xc3d0
movq 0x20(%rsp), %rdi
movb $0x0, 0xd6(%rsp)
leaq 0x6775(%rip), %rsi      # 0x11d00
leaq 0xeae(%rip), %rdx       # 0xc440
callq 0x3380
jmp 0xba5a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x178(%rsp)
movl %eax, 0x174(%rsp)
jmp 0xb5d3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x178(%rsp)
movl %eax, 0x174(%rsp)
leaq 0xd8(%rsp), %rdi
callq 0x3140
leaq 0xd7(%rsp), %rdi
callq 0x3270
testb $0x1, 0xd6(%rsp)
jne 0xb5ec
jmp 0xb5f6
movq 0x20(%rsp), %rdi
callq 0x3190
jmp 0xba4d
movsd 0x1e0(%rsp), %xmm1
movsd 0x1a8(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jb 0xb670
leaq 0x1b8(%rsp), %rdi
callq 0xc450
movq 0x88(%rsp), %rax
movaps %xmm0, %xmm1
movq 0x208(%rsp), %rcx
movsd (%rcx), %xmm0
movsd 0x8(%rax), %xmm2
movq %xmm2, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm2
mulsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jb 0xb670
movq 0x248(%rsp), %rax
movl $0x1, (%rax)
jmp 0xba45
movq 0x88(%rsp), %rax
testb $0x1, 0x11(%rax)
je 0xb6e6
movsd 0x1e0(%rsp), %xmm1
movsd 0x1a8(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jb 0xb6e6
movsd 0x1b8(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x208(%rsp), %rsi
leaq 0x1d8(%rsp), %rdi
callq 0x7c90
movsd 0x18(%rsp), %xmm0
movq %rax, %rcx
movq 0x88(%rsp), %rax
movsd (%rcx), %xmm1
mulsd 0x8(%rax), %xmm1
ucomisd %xmm1, %xmm0
jb 0xb6e6
movq 0x88(%rsp), %rax
movb $0x0, 0x11(%rax)
movq 0x88(%rsp), %rax
testb $0x1, 0x11(%rax)
je 0xb900
movq 0x88(%rsp), %rax
movsd 0x1e0(%rsp), %xmm1
movsd 0x40(%rax), %xmm0
ucomisd %xmm1, %xmm0
jb 0xb900
movsd 0x1e0(%rsp), %xmm0
ucomisd 0x1a8(%rsp), %xmm0
jbe 0xb900
movq 0x88(%rsp), %rdx
movsd 0x1e0(%rsp), %xmm1
movq 0x238(%rsp), %rax
movsd (%rax), %xmm0
movsd 0x20(%rdx), %xmm2
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xc8(%rsp)
movsd 0x40(%rdx), %xmm1
movsd 0x38(%rdx), %xmm0
movsd 0x20(%rdx), %xmm2
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xc0(%rsp)
movsd 0x58(%rdx), %xmm1
movsd 0x50(%rdx), %xmm0
movsd 0x20(%rdx), %xmm2
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xb8(%rsp)
movsd 0x1b8(%rsp), %xmm0
subsd 0x20(%rdx), %xmm0
movsd %xmm0, 0xb0(%rsp)
movsd 0x48(%rdx), %xmm0
subsd 0x20(%rdx), %xmm0
movsd %xmm0, 0xa8(%rsp)
movsd 0x60(%rdx), %xmm0
subsd 0x20(%rdx), %xmm0
movsd %xmm0, 0xa0(%rsp)
movq %rdx, %rdi
addq $0x38, %rdi
movq %rdx, %rcx
addq $0x50, %rcx
movq 0x238(%rsp), %r10
movsd 0xc8(%rsp), %xmm0
movsd 0xb0(%rsp), %xmm1
movq %rdx, %rax
addq $0x10, %rax
movsd 0x68(%rdx), %xmm2
movsd 0x70(%rdx), %xmm3
leaq 0xc0(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
leaq 0xb8(%rsp), %r8
leaq 0xa0(%rsp), %r9
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0xc4b0
movl %eax, %ecx
movq 0x88(%rsp), %rax
movl %ecx, (%rax)
movsd 0xc0(%rsp), %xmm1
movsd 0x38(%rax), %xmm0
movsd 0x20(%rax), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x40(%rax)
movsd 0xb8(%rsp), %xmm1
movsd 0x50(%rax), %xmm0
movsd 0x20(%rax), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x58(%rax)
movsd 0xa8(%rsp), %xmm0
addsd 0x20(%rax), %xmm0
movsd %xmm0, 0x48(%rax)
movsd 0xa0(%rsp), %xmm0
addsd 0x20(%rax), %xmm0
movsd %xmm0, 0x60(%rax)
jmp 0xb979
movq 0x88(%rsp), %r11
movq %r11, %rdi
addq $0x38, %rdi
movq %r11, %rsi
addq $0x40, %rsi
movq %r11, %rdx
addq $0x48, %rdx
movq %r11, %rcx
addq $0x50, %rcx
movq %r11, %r8
addq $0x58, %r8
movq %r11, %r9
addq $0x60, %r9
movq 0x238(%rsp), %r10
movsd 0x1e0(%rsp), %xmm0
movsd 0x1b8(%rsp), %xmm1
movq %r11, %rax
addq $0x10, %rax
movsd 0x68(%r11), %xmm2
movsd 0x70(%r11), %xmm3
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0xc4b0
movl %eax, %ecx
movq 0x88(%rsp), %rax
movl %ecx, (%rax)
movq 0x88(%rsp), %rax
testb $0x1, 0x10(%rax)
je 0xba40
movq 0x88(%rsp), %rax
movsd 0x50(%rax), %xmm0
subsd 0x38(%rax), %xmm0
movsd %xmm0, 0x98(%rsp)
leaq 0x98(%rsp), %rdi
callq 0xc450
movq 0x88(%rsp), %rax
movsd 0x2a05(%rip), %xmm1     # 0xe3c8
mulsd 0x30(%rax), %xmm1
ucomisd %xmm1, %xmm0
jb 0xba01
movq 0x88(%rsp), %rax
movsd 0x38(%rax), %xmm1
movsd 0x50(%rax), %xmm0
subsd 0x38(%rax), %xmm0
movsd 0x265b(%rip), %xmm2     # 0xe048
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq 0x238(%rsp), %rax
movsd %xmm0, (%rax)
movq 0x88(%rsp), %rax
movsd 0x28(%rax), %xmm0
movsd %xmm0, 0x30(%rax)
movsd 0x50(%rax), %xmm0
subsd 0x38(%rax), %xmm0
movsd %xmm0, 0x90(%rsp)
leaq 0x90(%rsp), %rdi
callq 0xc450
movq 0x88(%rsp), %rax
movsd %xmm0, 0x28(%rax)
jmp 0xad22
addq $0x218, %rsp            # imm = 0x218
retq
movq 0x178(%rsp), %rdi
callq 0x33b0
nopw (%rax,%rax)