// File: /workspace/github_cpp_makefile_star2_O3/marxn[P]pupp/3rdparty/gmp/mpn/div_q.c
// Function: _gmpn_div_q
void
mpn_div_q (mp_ptr qp,
	   mp_srcptr np, mp_size_t nn,
	   mp_srcptr dp, mp_size_t dn, mp_ptr scratch)
{
  mp_ptr new_dp, new_np, tp, rp;
  mp_limb_t cy, dh, qh;
  mp_size_t new_nn, qn;
  gmp_pi1_t dinv;
  int cnt;
  TMP_DECL;
  TMP_MARK;

  ASSERT (nn >= dn);
  ASSERT (dn > 0);
  ASSERT (dp[dn - 1] != 0);
  ASSERT (! MPN_OVERLAP_P (qp, nn - dn + 1, np, nn));
  ASSERT (! MPN_OVERLAP_P (qp, nn - dn + 1, dp, dn));
  ASSERT (MPN_SAME_OR_SEPARATE_P (np, scratch, nn));

  ASSERT_ALWAYS (FUDGE >= 2);

  if (dn == 1)
    {
      mpn_divrem_1 (qp, 0L, np, nn, dp[dn - 1]);
      return;
    }

  qn = nn - dn + 1;		/* Quotient size, high limb might be zero */

  if (qn + FUDGE >= dn)
    {
      /* |________________________|
                          |_______|  */
      new_np = scratch;

      dh = dp[dn - 1];
      if (LIKELY ((dh & GMP_NUMB_HIGHBIT) == 0))
	{
	  count_leading_zeros (cnt, dh);

	  cy = mpn_lshift (new_np, np, nn, cnt);
	  new_np[nn] = cy;
	  new_nn = nn + (cy != 0);

	  new_dp = TMP_ALLOC_LIMBS (dn);
	  mpn_lshift (new_dp, dp, dn, cnt);

	  if (dn == 2)
	    {
	      qh = mpn_divrem_2 (qp, 0L, new_np, new_nn, new_dp);
	    }
	  else if (BELOW_THRESHOLD (dn, DC_DIV_Q_THRESHOLD) ||
		   BELOW_THRESHOLD (new_nn - dn, DC_DIV_Q_THRESHOLD))
	    {
	      invert_pi1 (dinv, new_dp[dn - 1], new_dp[dn - 2]);
	      qh = mpn_sbpi1_div_q (qp, new_np, new_nn, new_dp, dn, dinv.inv32);
	    }
	  else if (BELOW_THRESHOLD (dn, MUPI_DIV_Q_THRESHOLD) ||   /* fast condition */
		   BELOW_THRESHOLD (nn, 2 * MU_DIV_Q_THRESHOLD) || /* fast condition */
		   (double) (2 * (MU_DIV_Q_THRESHOLD - MUPI_DIV_Q_THRESHOLD)) * dn /* slow... */
		   + (double) MUPI_DIV_Q_THRESHOLD * nn > (double) dn * nn)   /* ...condition */
	    {
	      invert_pi1 (dinv, new_dp[dn - 1], new_dp[dn - 2]);
	      qh = mpn_dcpi1_div_q (qp, new_np, new_nn, new_dp, dn, &dinv);
	    }
	  else
	    {
	      mp_size_t itch = mpn_mu_div_q_itch (new_nn, dn, 0);
	      mp_ptr scratch = TMP_ALLOC_LIMBS (itch);
	      qh = mpn_mu_div_q (qp, new_np, new_nn, new_dp, dn, scratch);
	    }
	  if (cy == 0)
	    qp[qn - 1] = qh;
	  else if (UNLIKELY (qh != 0))
	    {
	      /* This happens only when the quotient is close to B^n and
		 mpn_*_divappr_q returned B^n.  */
	      mp_size_t i, n;
	      n = new_nn - dn;
	      for (i = 0; i < n; i++)
		qp[i] = GMP_NUMB_MAX;
	      qh = 0;		/* currently ignored */
	    }
	}
      else  /* divisor is already normalised */
	{
	  if (new_np != np)
	    MPN_COPY (new_np, np, nn);

	  if (dn == 2)
	    {
	      qh = mpn_divrem_2 (qp, 0L, new_np, nn, dp);
	    }
	  else if (BELOW_THRESHOLD (dn, DC_DIV_Q_THRESHOLD) ||
		   BELOW_THRESHOLD (nn - dn, DC_DIV_Q_THRESHOLD))
	    {
	      invert_pi1 (dinv, dh, dp[dn - 2]);
	      qh = mpn_sbpi1_div_q (qp, new_np, nn, dp, dn, dinv.inv32);
	    }
	  else if (BELOW_THRESHOLD (dn, MUPI_DIV_Q_THRESHOLD) ||   /* fast condition */
		   BELOW_THRESHOLD (nn, 2 * MU_DIV_Q_THRESHOLD) || /* fast condition */
		   (double) (2 * (MU_DIV_Q_THRESHOLD - MUPI_DIV_Q_THRESHOLD)) * dn /* slow... */
		   + (double) MUPI_DIV_Q_THRESHOLD * nn > (double) dn * nn)   /* ...condition */
	    {
	      invert_pi1 (dinv, dh, dp[dn - 2]);
	      qh = mpn_dcpi1_div_q (qp, new_np, nn, dp, dn, &dinv);
	    }
	  else
	    {
	      mp_size_t itch = mpn_mu_div_q_itch (nn, dn, 0);
	      mp_ptr scratch = TMP_ALLOC_LIMBS (itch);
	      qh = mpn_mu_div_q (qp, np, nn, dp, dn, scratch);
	    }
	  qp[nn - dn] = qh;
	}
    }
  else
    {
      /* |________________________|
                |_________________|  */
      tp = TMP_ALLOC_LIMBS (qn + 1);

      new_np = scratch;
      new_nn = 2 * qn + 1;
      if (new_np == np)
	/* We need {np,nn} to remain untouched until the final adjustment, so
	   we need to allocate separate space for new_np.  */
	new_np = TMP_ALLOC_LIMBS (new_nn + 1);


      dh = dp[dn - 1];
      if (LIKELY ((dh & GMP_NUMB_HIGHBIT) == 0))
	{
	  count_leading_zeros (cnt, dh);

	  cy = mpn_lshift (new_np, np + nn - new_nn, new_nn, cnt);
	  new_np[new_nn] = cy;

	  new_nn += (cy != 0);

	  new_dp = TMP_ALLOC_LIMBS (qn + 1);
	  mpn_lshift (new_dp, dp + dn - (qn + 1), qn + 1, cnt);
	  new_dp[0] |= dp[dn - (qn + 1) - 1] >> (GMP_NUMB_BITS - cnt);

	  if (qn + 1 == 2)
	    {
	      qh = mpn_divrem_2 (tp, 0L, new_np, new_nn, new_dp);
	    }
	  else if (BELOW_THRESHOLD (qn, DC_DIVAPPR_Q_THRESHOLD - 1))
	    {
	      invert_pi1 (dinv, new_dp[qn], new_dp[qn - 1]);
	      qh = mpn_sbpi1_divappr_q (tp, new_np, new_nn, new_dp, qn + 1, dinv.inv32);
	    }
	  else if (BELOW_THRESHOLD (qn, MU_DIVAPPR_Q_THRESHOLD - 1))
	    {
	      invert_pi1 (dinv, new_dp[qn], new_dp[qn - 1]);
	      qh = mpn_dcpi1_divappr_q (tp, new_np, new_nn, new_dp, qn + 1, &dinv);
	    }
	  else
	    {
	      mp_size_t itch = mpn_mu_divappr_q_itch (new_nn, qn + 1, 0);
	      mp_ptr scratch = TMP_ALLOC_LIMBS (itch);
	      qh = mpn_mu_divappr_q (tp, new_np, new_nn, new_dp, qn + 1, scratch);
	    }
	  if (cy == 0)
	    tp[qn] = qh;
	  else if (UNLIKELY (qh != 0))
	    {
	      /* This happens only when the quotient is close to B^n and
		 mpn_*_divappr_q returned B^n.  */
	      mp_size_t i, n;
	      n = new_nn - (qn + 1);
	      for (i = 0; i < n; i++)
		tp[i] = GMP_NUMB_MAX;
	      qh = 0;		/* currently ignored */
	    }
	}
      else  /* divisor is already normalised */
	{
	  MPN_COPY (new_np, np + nn - new_nn, new_nn); /* pointless if MU will be used */

	  new_dp = (mp_ptr) dp + dn - (qn + 1);

	  if (qn == 2 - 1)
	    {
	      qh = mpn_divrem_2 (tp, 0L, new_np, new_nn, new_dp);
	    }
	  else if (BELOW_THRESHOLD (qn, DC_DIVAPPR_Q_THRESHOLD - 1))
	    {
	      invert_pi1 (dinv, dh, new_dp[qn - 1]);
	      qh = mpn_sbpi1_divappr_q (tp, new_np, new_nn, new_dp, qn + 1, dinv.inv32);
	    }
	  else if (BELOW_THRESHOLD (qn, MU_DIVAPPR_Q_THRESHOLD - 1))
	    {
	      invert_pi1 (dinv, dh, new_dp[qn - 1]);
	      qh = mpn_dcpi1_divappr_q (tp, new_np, new_nn, new_dp, qn + 1, &dinv);
	    }
	  else
	    {
	      mp_size_t itch = mpn_mu_divappr_q_itch (new_nn, qn + 1, 0);
	      mp_ptr scratch = TMP_ALLOC_LIMBS (itch);
	      qh = mpn_mu_divappr_q (tp, new_np, new_nn, new_dp, qn + 1, scratch);
	    }
	  tp[qn] = qh;
	}

      MPN_COPY (qp, tp + 1, qn);
      if (tp[0] <= 4)
        {
	  mp_size_t rn;

          rp = TMP_ALLOC_LIMBS (dn + qn);
          mpn_mul (rp, dp, dn, tp + 1, qn);
	  rn = dn + qn;
	  rn -= rp[rn - 1] == 0;

          if (rn > nn || mpn_cmp (np, rp, nn) < 0)
            mpn_decr_u (qp, 1);
        }
    }

  TMP_FREE;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdx, %r15
movq %rsi, %r10
movq %rdi, %r14
movq $0x0, -0x58(%rbp)
cmpq $0x1, %r8
jne 0x1eb68
movq (%rcx), %r8
movq %r14, %rdi
xorl %esi, %esi
movq %r10, %rdx
movq %r15, %rcx
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1c4e0
movq %r15, %r12
subq %r8, %r12
leaq 0x6(%r12), %rax
cmpq %r8, %rax
movq %r8, -0x30(%rbp)
movq %r12, -0x68(%rbp)
movq %rcx, -0x50(%rbp)
jge 0x1ed00
leaq 0x10(,%r12,8), %rbx
cmpq $0x7f00, %rbx           # imm = 0x7F00
movq %r10, -0x90(%rbp)
ja 0x1f201
movq %rsp, %rdx
leaq 0xf(%rbx), %rax
andq $-0x10, %rax
subq %rax, %rdx
movq %rdx, -0x38(%rbp)
movq %rdx, %rsp
leaq 0x1(%r12), %r13
cmpq %r10, %r9
movq %r13, -0x98(%rbp)
jne 0x1ebf3
movq %r13, %rsi
shlq $0x4, %rsi
addq $0x10, %rsi
cmpq $0x7f00, %rsi           # imm = 0x7F00
ja 0x1f450
movq %rsp, %r9
addq $0xf, %rsi
andq $-0x10, %rsi
subq %rsi, %r9
movq %r9, %rsp
movq %r14, -0x70(%rbp)
leaq 0x2(%r12), %rax
movq %rax, -0x48(%rbp)
leaq 0x1(,%r13,2), %r14
leaq (%rcx,%r8,8), %rax
movq %rax, -0x88(%rbp)
movq -0x8(%rax), %r12
testq %r12, %r12
movq %r9, -0x40(%rbp)
js 0x1f22b
movq %r12, -0xb0(%rbp)
bsrq -0xb0(%rbp), %r12
xorl $0x3f, %r12d
leaq (%r10,%r15,8), %rsi
leaq (,%r14,8), %rax
subq %rax, %rsi
movq %r9, %rdi
movq %r14, %rdx
movl %r12d, %ecx
movq %r9, %r13
callq 0x1bf80
cmpq $0x1, %rax
movq %r14, %rcx
sbbq $-0x1, %rcx
movq %rcx, -0x60(%rbp)
movq %rax, -0x80(%rbp)
movq %rax, (%r13,%r14,8)
cmpq $0x7f00, %rbx           # imm = 0x7F00
ja 0x1f2cb
movq %rsp, %r13
addq $0xf, %rbx
andq $-0x10, %rbx
subq %rbx, %r13
movq %r13, %rsp
movq $-0x2, %rax
movq -0x68(%rbp), %rbx
subq %rbx, %rax
movq -0x88(%rbp), %rcx
leaq (%rcx,%rax,8), %rsi
movq %r13, %rdi
movq -0x48(%rbp), %rdx
movl %r12d, %ecx
callq 0x1bf80
movq -0x30(%rbp), %rdx
movq %rdx, %rax
subq %rbx, %rax
movq -0x50(%rbp), %rcx
movq -0x18(%rcx,%rax,8), %rax
negb %r12b
movl %r12d, %ecx
shrq %cl, %rax
orq %rax, (%r13)
cmpq %rdx, %r15
jne 0x1edac
movq -0x38(%rbp), %rdi
xorl %esi, %esi
movq -0x40(%rbp), %rdx
movq -0x60(%rbp), %rcx
movq %r13, %r8
callq 0x1c700
movq -0x70(%rbp), %r14
movq %rbx, %r12
jmp 0x1f0c0
movq -0x8(%rcx,%r8,8), %r12
testq %r12, %r12
js 0x1f285
movq %r12, -0xd8(%rbp)
bsrq -0xd8(%rbp), %r13
xorl $0x3f, %r13d
movq %r9, %rdi
movq %r10, %rsi
movq %r15, %rdx
movl %r13d, %ecx
movq %r9, %rbx
callq 0x1bf80
movq -0x30(%rbp), %rdx
movq %rbx, -0x40(%rbp)
movq %rax, (%rbx,%r15,8)
movq %rax, -0x38(%rbp)
cmpq $0x1, %rax
movq %r15, %rbx
sbbq $-0x1, %rbx
leaq (,%rdx,8), %rsi
cmpq $0x7f00, %rsi           # imm = 0x7F00
ja 0x1f2df
movq %rsp, %r12
addq $0xf, %rsi
andq $-0x10, %rsi
subq %rsi, %r12
movq %r12, %rsp
movq %r12, %rdi
movq -0x50(%rbp), %rsi
movl %r13d, %ecx
callq 0x1bf80
movq -0x30(%rbp), %rsi
cmpq $0x2, %rsi
jne 0x1ee1e
movq %r14, %rdi
xorl %esi, %esi
movq -0x40(%rbp), %rdx
movq %rbx, %rcx
movq %r12, %r8
callq 0x1c700
jmp 0x1ef79
cmpq $0x105, %rbx            # imm = 0x105
movq -0x70(%rbp), %r14
movq %rbx, %r12
jle 0x1efb6
cmpq $0x6d5, %r12            # imm = 0x6D5
jbe 0x1f03c
movq -0x60(%rbp), %rdi
movq -0x48(%rbp), %rsi
xorl %edx, %edx
callq 0x2ea34
shlq $0x3, %rax
cmpq $0x7f00, %rax           # imm = 0x7F00
ja 0x1f65b
movq %rsp, %r9
addq $0xf, %rax
andq $-0x10, %rax
subq %rax, %r9
movq %r9, %rsp
movq -0x40(%rbp), %rsi
movq -0x80(%rbp), %rbx
movq -0x38(%rbp), %rdi
movq -0x60(%rbp), %rdx
movq %r13, %rcx
movq -0x48(%rbp), %r8
callq 0x2e348
jmp 0x1f0c4
cmpq $0x108, %rsi            # imm = 0x108
jl 0x1eefa
movq %rbx, %rax
subq %rsi, %rax
cmpq $0x107, %rax            # imm = 0x107
jle 0x1eefa
cmpq $0xdb0, %r15            # imm = 0xDB0
jl 0x1ee76
cvtsi2sd %rsi, %xmm0
cvtsi2sd %r15, %xmm1
movsd 0x1ab28(%rip), %xmm2    # 0x39980
mulsd %xmm1, %xmm2
mulsd %xmm0, %xmm1
mulsd 0x1ab20(%rip), %xmm0    # 0x39988
addsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x1f1b7
movq -0x8(%r12,%rsi,8), %r15
movq %r15, %rdi
callq 0x2f170
movq -0x30(%rbp), %r8
movq %rax, %rcx
movq %rax, %rdi
imulq %r15, %rdi
movq -0x10(%r12,%r8,8), %r9
addq %r9, %rdi
jae 0x1eeb9
xorl %eax, %eax
cmpq %r15, %rdi
movl $0x0, %edx
adcq $-0x2, %rdx
cmpq %r15, %rdi
cmovaeq %r15, %rax
addq %rdx, %rcx
addq %r15, %rax
subq %rax, %rdi
movq -0x40(%rbp), %rsi
movq %rcx, -0xc8(%rbp)
movq %r9, %rax
mulq -0xc8(%rbp)
addq %rdi, %rdx
jae 0x1eee3
leaq -0x1(%rcx), %rdi
cmpq %r15, %rdx
jae 0x1f686
movq %rdi, %rcx
leaq -0x78(%rbp), %r9
movq %rcx, (%r9)
movq %r14, %rdi
movq %rbx, %rdx
movq %r12, %rcx
callq 0x2c6a4
jmp 0x1ef79
movq -0x8(%r12,%rsi,8), %r15
movq %r15, %rdi
callq 0x2f170
movq -0x30(%rbp), %r8
movq %rax, %r9
movq %rax, %rsi
imulq %r15, %rsi
movq -0x10(%r12,%r8,8), %rcx
addq %rcx, %rsi
jae 0x1ef3d
xorl %eax, %eax
cmpq %r15, %rsi
movl $0x0, %edx
adcq $-0x2, %rdx
cmpq %r15, %rsi
cmovaeq %r15, %rax
addq %rdx, %r9
addq %r15, %rax
subq %rax, %rsi
movq %r9, -0xd0(%rbp)
movq %rcx, %rax
mulq -0xd0(%rbp)
addq %rsi, %rdx
movq -0x40(%rbp), %rsi
jae 0x1ef67
leaq -0x1(%r9), %rdi
cmpq %r15, %rdx
jae 0x1f644
movq %rdi, %r9
movq %r9, -0x78(%rbp)
movq %r14, %rdi
movq %rbx, %rdx
movq %r12, %rcx
callq 0x2b03c
movq -0x38(%rbp), %r15
testq %r15, %r15
movq -0x68(%rbp), %rcx
je 0x1f588
testq %rax, %rax
je 0x1f58c
subq -0x30(%rbp), %rbx
jle 0x1f58c
shlq $0x3, %rbx
movq %r14, %rdi
movl $0xff, %esi
movq %rbx, %rdx
callq 0x6170
jmp 0x1f58c
movq 0x8(%r13,%r12,8), %rbx
movq %rbx, %rdi
callq 0x2f170
movq %rax, %r9
movq %rax, %rsi
imulq %rbx, %rsi
movq (%r13,%r12,8), %rcx
addq %rcx, %rsi
jae 0x1eff5
xorl %eax, %eax
cmpq %rbx, %rsi
movl $0x0, %edx
adcq $-0x2, %rdx
cmpq %rbx, %rsi
cmovaeq %rbx, %rax
addq %rdx, %r9
addq %rbx, %rax
subq %rax, %rsi
movq %r9, -0xa8(%rbp)
movq %rcx, %rax
mulq -0xa8(%rbp)
addq %rsi, %rdx
movq -0x40(%rbp), %rsi
jae 0x1f01f
leaq -0x1(%r9), %rdi
cmpq %rbx, %rdx
jae 0x1f66f
movq %rdi, %r9
movq %r9, -0x78(%rbp)
movq -0x38(%rbp), %rdi
movq -0x60(%rbp), %rdx
movq %r13, %rcx
movq -0x48(%rbp), %r8
callq 0x2be5c
jmp 0x1f0c0
movq 0x8(%r13,%r12,8), %rbx
movq %rbx, %rdi
callq 0x2f170
movq %rax, %rcx
movq %rax, %rdi
imulq %rbx, %rdi
movq (%r13,%r12,8), %r8
addq %r8, %rdi
jae 0x1f07b
xorl %eax, %eax
cmpq %rbx, %rdi
movl $0x0, %edx
adcq $-0x2, %rdx
cmpq %rbx, %rdi
cmovaeq %rbx, %rax
addq %rdx, %rcx
addq %rbx, %rax
subq %rax, %rdi
movq -0x40(%rbp), %rsi
movq %rcx, -0xa0(%rbp)
movq %r8, %rax
mulq -0xa0(%rbp)
addq %rdi, %rdx
jae 0x1f0a5
leaq -0x1(%rcx), %rdi
cmpq %rbx, %rdx
jae 0x1f6ea
movq %rdi, %rcx
leaq -0x78(%rbp), %r9
movq %rcx, (%r9)
movq -0x38(%rbp), %rdi
movq -0x60(%rbp), %rdx
movq %r13, %rcx
movq -0x48(%rbp), %r8
callq 0x2d435
movq -0x80(%rbp), %rbx
testq %rbx, %rbx
movq -0x98(%rbp), %r13
je 0x1f0fe
testq %rax, %rax
movq -0x38(%rbp), %r12
je 0x1f10a
movq -0x60(%rbp), %rax
subq -0x48(%rbp), %rax
movq %rax, -0x60(%rbp)
jle 0x1f10a
movq -0x60(%rbp), %rdx
shlq $0x3, %rdx
movq %r12, %rdi
movl $0xff, %esi
callq 0x6170
jmp 0x1f10a
movq -0x38(%rbp), %rcx
movq %rax, 0x8(%rcx,%r12,8)
movq %rcx, %r12
leaq 0x8(%r12), %rbx
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x2f106
cmpq $0x4, (%r12)
movq -0x90(%rbp), %r13
ja 0x1f58c
leaq 0x1(%r15), %r14
leaq 0x8(,%r15,8), %rsi
cmpq $0x7f00, %rsi           # imm = 0x7F00
ja 0x1f2f4
movq %rsp, %r12
addq $0xf, %rsi
andq $-0x10, %rsi
subq %rsi, %r12
movq %r12, %rsp
movq %r12, %rdi
movq -0x50(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq %rbx, %rcx
movq -0x98(%rbp), %r8
callq 0x1c838
cmpq $0x1, (%r12,%r15,8)
sbbq $0x0, %r14
cmpq %r15, %r14
movq -0x70(%rbp), %rdx
jle 0x1f194
subq $0x1, (%rdx)
leaq 0x8(%rdx), %rdx
jb 0x1f185
jmp 0x1f58c
testq %r15, %r15
jle 0x1f58c
movq -0x8(%r12,%r15,8), %rax
leaq -0x1(%r15), %rcx
cmpq %rax, -0x8(%r13,%r15,8)
movq %rcx, %r15
je 0x1f194
jbe 0x1f185
jmp 0x1f58c
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2ef62
shlq $0x3, %rax
cmpq $0x7f00, %rax           # imm = 0x7F00
ja 0x1f701
movq %rsp, %r9
addq $0xf, %rax
andq $-0x10, %rax
subq %rax, %r9
movq %r9, %rsp
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %r15
movq %r14, %rdi
movq %rbx, %rdx
movq %r12, %rcx
movq -0x30(%rbp), %r8
callq 0x2eaa0
jmp 0x1ef7d
leaq -0x58(%rbp), %rdi
movq %rbx, %rsi
movq %r9, %r13
callq 0x2fdb0
movq -0x90(%rbp), %r10
movq -0x50(%rbp), %rcx
movq %r13, %r9
movq -0x30(%rbp), %r8
movq %rax, -0x38(%rbp)
jmp 0x1ebb9
leaq (%r10,%r15,8), %rsi
leaq (,%r14,8), %rax
subq %rax, %rsi
movq %r9, %rdi
movq %r14, %rbx
movq %r14, %rdx
callq 0x2f106
movq $-0x2, %rax
subq -0x68(%rbp), %rax
movq -0x88(%rbp), %rcx
leaq (%rcx,%rax,8), %r14
cmpq -0x30(%rbp), %r15
jne 0x1f305
movq -0x38(%rbp), %r12
movq %r12, %rdi
xorl %esi, %esi
movq -0x40(%rbp), %rdx
movq %rbx, %rcx
movq %r14, %r8
callq 0x1c700
jmp 0x1f632
cmpq %r10, %r9
je 0x1f2a4
movq %r9, %rdi
movq %r10, %rsi
movq %r15, %rdx
movq %r9, %rbx
movq %r10, %r13
callq 0x2f106
movq %r13, %r10
movq %rbx, %r9
movq -0x30(%rbp), %rcx
cmpq $0x2, %rcx
jne 0x1f36f
movq %r14, %rdi
xorl %esi, %esi
movq %r9, %rdx
movq %r15, %rcx
movq -0x50(%rbp), %r8
callq 0x1c700
jmp 0x1f584
leaq -0x58(%rbp), %rdi
movq %rbx, %rsi
callq 0x2fdb0
movq %rax, %r13
jmp 0x1ec8d
leaq -0x58(%rbp), %rdi
callq 0x2fdb0
movq -0x30(%rbp), %rdx
movq %rax, %r12
jmp 0x1ed76
leaq -0x58(%rbp), %rdi
callq 0x2fdb0
movq %rax, %r12
jmp 0x1f159
cmpq $0x105, -0x68(%rbp)     # imm = 0x105
jle 0x1f479
cmpq $0x6d5, -0x68(%rbp)     # imm = 0x6D5
jbe 0x1f5ab
movq %rbx, %rdi
movq -0x48(%rbp), %rsi
xorl %edx, %edx
callq 0x2ea34
shlq $0x3, %rax
cmpq $0x7f00, %rax           # imm = 0x7F00
ja 0x1f715
movq %rsp, %r9
addq $0xf, %rax
andq $-0x10, %rax
subq %rax, %r9
movq %r9, %rsp
movq -0x38(%rbp), %r12
movq %r12, %rdi
movq -0x40(%rbp), %rsi
movq %rbx, %rdx
movq %r14, %rcx
movq -0x48(%rbp), %r8
callq 0x2e348
jmp 0x1f632
movq %r9, %rbx
movl $0x108, %eax            # imm = 0x108
cmpq %rax, %rcx
setge %cl
cmpq %rax, -0x68(%rbp)
setge %al
testb %al, %cl
je 0x1f502
cmpq $0xdb0, %r15            # imm = 0xDB0
jl 0x1f3c6
cvtsi2sdq -0x30(%rbp), %xmm0
cvtsi2sd %r15, %xmm1
movsd 0x1a5d8(%rip), %xmm2    # 0x39980
mulsd %xmm1, %xmm2
mulsd %xmm0, %xmm1
mulsd 0x1a5d0(%rip), %xmm0    # 0x39988
addsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x1f69d
movq %r12, %rdi
callq 0x2f170
movq %rax, %rcx
movq %rax, %rdi
imulq %r12, %rdi
movq -0x30(%rbp), %rax
movq -0x50(%rbp), %rdx
movq -0x10(%rdx,%rax,8), %rsi
addq %rsi, %rdi
jae 0x1f408
xorl %eax, %eax
cmpq %r12, %rdi
movl $0x0, %edx
adcq $-0x2, %rdx
cmpq %r12, %rdi
cmovaeq %r12, %rax
addq %rdx, %rcx
addq %r12, %rax
subq %rax, %rdi
movq %rcx, -0xe0(%rbp)
movq %rsi, %rax
mulq -0xe0(%rbp)
addq %rdi, %rdx
jae 0x1f42e
leaq -0x1(%rcx), %rdi
cmpq %r12, %rdx
jae 0x1f757
movq %rdi, %rcx
leaq -0x78(%rbp), %r9
movq %rcx, (%r9)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq -0x50(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x2c6a4
jmp 0x1f584
leaq -0x58(%rbp), %rdi
movq %rcx, %r13
callq 0x2fdb0
movq -0x90(%rbp), %r10
movq %r13, %rcx
movq -0x98(%rbp), %r13
movq -0x30(%rbp), %r8
movq %rax, %r9
jmp 0x1ebf3
movq %r12, %rdi
callq 0x2f170
movq %rax, %r9
movq %rax, %rsi
imulq %r12, %rsi
movq -0x88(%rbp), %rax
movq -0x10(%rax), %rcx
addq %rcx, %rsi
jae 0x1f4b9
xorl %eax, %eax
cmpq %r12, %rsi
movl $0x0, %edx
adcq $-0x2, %rdx
cmpq %r12, %rsi
cmovaeq %r12, %rax
addq %rdx, %r9
addq %r12, %rax
subq %rax, %rsi
movq %r9, -0xc0(%rbp)
movq %rcx, %rax
mulq -0xc0(%rbp)
addq %rsi, %rdx
jae 0x1f4df
leaq -0x1(%r9), %rsi
cmpq %r12, %rdx
jae 0x1f729
movq %rsi, %r9
movq %r9, -0x78(%rbp)
movq -0x38(%rbp), %r12
movq %r12, %rdi
movq -0x40(%rbp), %rsi
movq %rbx, %rdx
movq %r14, %rcx
movq -0x48(%rbp), %r8
callq 0x2be5c
jmp 0x1f632
movq %r12, %rdi
callq 0x2f170
movq %rax, %r9
movq %rax, %rsi
imulq %r12, %rsi
movq -0x30(%rbp), %rax
movq -0x50(%rbp), %rcx
movq -0x10(%rcx,%rax,8), %rcx
addq %rcx, %rsi
jae 0x1f544
xorl %eax, %eax
cmpq %r12, %rsi
movl $0x0, %edx
adcq $-0x2, %rdx
cmpq %r12, %rsi
cmovaeq %r12, %rax
addq %rdx, %r9
addq %r12, %rax
subq %rax, %rsi
movq %r9, -0xe8(%rbp)
movq %rcx, %rax
mulq -0xe8(%rbp)
addq %rsi, %rdx
jae 0x1f56a
leaq -0x1(%r9), %rsi
cmpq %r12, %rdx
jae 0x1f740
movq %rsi, %r9
movq %r9, -0x78(%rbp)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq -0x50(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x2b03c
movq -0x68(%rbp), %rcx
movq %rax, (%r14,%rcx,8)
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
jne 0x1f5a4
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2fde3
jmp 0x1f595
movq %r12, %rdi
callq 0x2f170
movq %rax, %rcx
movq %rax, %rdi
imulq %r12, %rdi
movq -0x88(%rbp), %rax
movq -0x10(%rax), %rsi
addq %rsi, %rdi
jae 0x1f5eb
xorl %eax, %eax
cmpq %r12, %rdi
movl $0x0, %edx
adcq $-0x2, %rdx
cmpq %r12, %rdi
cmovaeq %r12, %rax
addq %rdx, %rcx
addq %r12, %rax
subq %rax, %rdi
movq %rcx, -0xb8(%rbp)
movq %rsi, %rax
mulq -0xb8(%rbp)
addq %rdi, %rdx
jae 0x1f611
leaq -0x1(%rcx), %rdi
cmpq %r12, %rdx
jae 0x1f76e
movq %rdi, %rcx
leaq -0x78(%rbp), %r9
movq %rcx, (%r9)
movq -0x38(%rbp), %r12
movq %r12, %rdi
movq -0x40(%rbp), %rsi
movq %rbx, %rdx
movq %r14, %rcx
movq -0x48(%rbp), %r8
callq 0x2d435
movq -0x70(%rbp), %r14
movq -0x68(%rbp), %rcx
movq %rax, 0x8(%r12,%rcx,8)
jmp 0x1f10a
addq $-0x2, %r9
cmpq %rcx, %rax
cmovaeq %r9, %rdi
cmpq %r15, %rdx
cmovbeq %rdi, %r9
jmp 0x1ef67
leaq -0x58(%rbp), %rdi
movq %rax, %rsi
callq 0x2fdb0
movq %rax, %r9
jmp 0x1edfd
addq $-0x2, %r9
cmpq %rcx, %rax
cmovaeq %r9, %rdi
cmpq %rbx, %rdx
cmovbeq %rdi, %r9
jmp 0x1f01f
addq $-0x2, %rcx
cmpq %r9, %rax
cmovaeq %rcx, %rdi
cmpq %r15, %rdx
cmovbeq %rdi, %rcx
jmp 0x1eee3
movq %r10, %r13
movq %r15, %rdi
movq -0x30(%rbp), %rsi
xorl %edx, %edx
callq 0x2ef62
shlq $0x3, %rax
cmpq $0x7f00, %rax           # imm = 0x7F00
ja 0x1f785
movq %rsp, %r9
addq $0xf, %rax
andq $-0x10, %rax
subq %rax, %r9
movq %r9, %rsp
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq -0x50(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x2eaa0
jmp 0x1f584
addq $-0x2, %rcx
cmpq %r8, %rax
cmovaeq %rcx, %rdi
cmpq %rbx, %rdx
cmovbeq %rdi, %rcx
jmp 0x1f0a5
leaq -0x58(%rbp), %rdi
movq %rax, %rsi
callq 0x2fdb0
movq %rax, %r9
jmp 0x1f1e2
leaq -0x58(%rbp), %rdi
movq %rax, %rsi
callq 0x2fdb0
movq %rax, %r9
jmp 0x1f350
addq $-0x2, %r9
cmpq %rcx, %rax
cmovaeq %r9, %rsi
cmpq %r12, %rdx
cmovbeq %rsi, %r9
jmp 0x1f4df
addq $-0x2, %r9
cmpq %rcx, %rax
cmovaeq %r9, %rsi
cmpq %r12, %rdx
cmovbeq %rsi, %r9
jmp 0x1f56a
addq $-0x2, %rcx
cmpq %rsi, %rax
cmovaeq %rcx, %rdi
cmpq %r12, %rdx
cmovbeq %rdi, %rcx
jmp 0x1f42e
addq $-0x2, %rcx
cmpq %rsi, %rax
cmovaeq %rcx, %rdi
cmpq %r12, %rdx
cmovbeq %rdi, %rcx
jmp 0x1f611
leaq -0x58(%rbp), %rdi
movq %rax, %rsi
callq 0x2fdb0
movq %rax, %r9
jmp 0x1f6cf
nopl (%rax)