// File: /workspace/github_cpp_makefile_star2_O1/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 0x1f07c
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 0x1ca00
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 0x1f214
leaq 0x10(,%r12,8), %rbx
cmpq $0x7f00, %rbx           # imm = 0x7F00
movq %r10, -0x90(%rbp)
ja 0x1f715
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 0x1f107
movq %r13, %rsi
shlq $0x4, %rsi
addq $0x10, %rsi
cmpq $0x7f00, %rsi           # imm = 0x7F00
ja 0x1f964
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 0x1f73f
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 0x1c4a0
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 0x1f7df
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 0x1c4a0
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 0x1f2c0
movq -0x38(%rbp), %rdi
xorl %esi, %esi
movq -0x40(%rbp), %rdx
movq -0x60(%rbp), %rcx
movq %r13, %r8
callq 0x1cc20
movq -0x70(%rbp), %r14
movq %rbx, %r12
jmp 0x1f5d4
movq -0x8(%rcx,%r8,8), %r12
testq %r12, %r12
js 0x1f799
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 0x1c4a0
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 0x1f7f3
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 0x1c4a0
movq -0x30(%rbp), %rsi
cmpq $0x2, %rsi
jne 0x1f332
movq %r14, %rdi
xorl %esi, %esi
movq -0x40(%rbp), %rdx
movq %rbx, %rcx
movq %r12, %r8
callq 0x1cc20
jmp 0x1f48d
cmpq $0x105, %rbx            # imm = 0x105
movq -0x70(%rbp), %r14
movq %rbx, %r12
jle 0x1f4ca
cmpq $0x6d5, %r12            # imm = 0x6D5
jle 0x1f550
movq -0x60(%rbp), %rdi
movq -0x48(%rbp), %rsi
xorl %edx, %edx
callq 0x2edfd
shlq $0x3, %rax
cmpq $0x7f00, %rax           # imm = 0x7F00
ja 0x1fb6f
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 0x2e6f8
jmp 0x1f5d8
cmpq $0x108, %rsi            # imm = 0x108
jl 0x1f40e
movq %rbx, %rax
subq %rsi, %rax
cmpq $0x107, %rax            # imm = 0x107
jle 0x1f40e
cmpq $0xdb0, %r15            # imm = 0xDB0
jl 0x1f38a
cvtsi2sd %rsi, %xmm0
cvtsi2sd %r15, %xmm1
movsd 0x1b624(%rip), %xmm2    # 0x3a990
mulsd %xmm1, %xmm2
mulsd %xmm0, %xmm1
mulsd 0x1b61c(%rip), %xmm0    # 0x3a998
addsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x1f6cb
movq -0x8(%r12,%rsi,8), %r15
movq %r15, %rdi
callq 0x2f530
movq -0x30(%rbp), %r8
movq %rax, %rcx
movq %rax, %rdi
imulq %r15, %rdi
movq -0x10(%r12,%r8,8), %r9
addq %r9, %rdi
jae 0x1f3cd
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 0x1f3f7
leaq -0x1(%rcx), %rdi
cmpq %r15, %rdx
jae 0x1fb9a
movq %rdi, %rcx
leaq -0x78(%rbp), %r9
movq %rcx, (%r9)
movq %r14, %rdi
movq %rbx, %rdx
movq %r12, %rcx
callq 0x2cab0
jmp 0x1f48d
movq -0x8(%r12,%rsi,8), %r15
movq %r15, %rdi
callq 0x2f530
movq -0x30(%rbp), %r8
movq %rax, %r9
movq %rax, %rsi
imulq %r15, %rsi
movq -0x10(%r12,%r8,8), %rcx
addq %rcx, %rsi
jae 0x1f451
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 0x1f47b
leaq -0x1(%r9), %rdi
cmpq %r15, %rdx
jae 0x1fb58
movq %rdi, %r9
movq %r9, -0x78(%rbp)
movq %r14, %rdi
movq %rbx, %rdx
movq %r12, %rcx
callq 0x2b3d0
movq -0x38(%rbp), %r15
testq %r15, %r15
movq -0x68(%rbp), %rcx
je 0x1fa9c
testq %rax, %rax
je 0x1faa0
subq -0x30(%rbp), %rbx
jle 0x1faa0
shlq $0x3, %rbx
movq %r14, %rdi
movl $0xff, %esi
movq %rbx, %rdx
callq 0x6170
jmp 0x1faa0
movq 0x8(%r13,%r12,8), %rbx
movq %rbx, %rdi
callq 0x2f530
movq %rax, %r9
movq %rax, %rsi
imulq %rbx, %rsi
movq (%r13,%r12,8), %rcx
addq %rcx, %rsi
jae 0x1f509
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 0x1f533
leaq -0x1(%r9), %rdi
cmpq %rbx, %rdx
jae 0x1fb83
movq %rdi, %r9
movq %r9, -0x78(%rbp)
movq -0x38(%rbp), %rdi
movq -0x60(%rbp), %rdx
movq %r13, %rcx
movq -0x48(%rbp), %r8
callq 0x2c274
jmp 0x1f5d4
movq 0x8(%r13,%r12,8), %rbx
movq %rbx, %rdi
callq 0x2f530
movq %rax, %rcx
movq %rax, %rdi
imulq %rbx, %rdi
movq (%r13,%r12,8), %r8
addq %r8, %rdi
jae 0x1f58f
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 0x1f5b9
leaq -0x1(%rcx), %rdi
cmpq %rbx, %rdx
jae 0x1fbfe
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 0x2d7f9
movq -0x80(%rbp), %rbx
testq %rbx, %rbx
movq -0x98(%rbp), %r13
je 0x1f612
testq %rax, %rax
movq -0x38(%rbp), %r12
je 0x1f61e
movq -0x60(%rbp), %rax
subq -0x48(%rbp), %rax
movq %rax, -0x60(%rbp)
jle 0x1f61e
movq -0x60(%rbp), %rdx
shlq $0x3, %rdx
movq %r12, %rdi
movl $0xff, %esi
callq 0x6170
jmp 0x1f61e
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 0x2f4c6
cmpq $0x4, (%r12)
movq -0x90(%rbp), %r13
ja 0x1faa0
leaq 0x1(%r15), %r14
leaq 0x8(,%r15,8), %rsi
cmpq $0x7f00, %rsi           # imm = 0x7F00
ja 0x1f808
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 0x1cd58
cmpq $0x1, (%r12,%r15,8)
sbbq $0x0, %r14
cmpq %r15, %r14
movq -0x70(%rbp), %rdx
jle 0x1f6a8
subq $0x1, (%rdx)
leaq 0x8(%rdx), %rdx
jb 0x1f699
jmp 0x1faa0
testq %r15, %r15
jle 0x1faa0
movq -0x8(%r12,%r15,8), %rax
leaq -0x1(%r15), %rcx
cmpq %rax, -0x8(%r13,%r15,8)
movq %rcx, %r15
je 0x1f6a8
jbe 0x1f699
jmp 0x1faa0
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2f2fe
shlq $0x3, %rax
cmpq $0x7f00, %rax           # imm = 0x7F00
ja 0x1fc15
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 0x2ee68
jmp 0x1f491
leaq -0x58(%rbp), %rdi
movq %rbx, %rsi
movq %r9, %r13
callq 0x30170
movq -0x90(%rbp), %r10
movq -0x50(%rbp), %rcx
movq %r13, %r9
movq -0x30(%rbp), %r8
movq %rax, -0x38(%rbp)
jmp 0x1f0cd
leaq (%r10,%r15,8), %rsi
leaq (,%r14,8), %rax
subq %rax, %rsi
movq %r9, %rdi
movq %r14, %rbx
movq %r14, %rdx
callq 0x2f4c6
movq $-0x2, %rax
subq -0x68(%rbp), %rax
movq -0x88(%rbp), %rcx
leaq (%rcx,%rax,8), %r14
cmpq -0x30(%rbp), %r15
jne 0x1f819
movq -0x38(%rbp), %r12
movq %r12, %rdi
xorl %esi, %esi
movq -0x40(%rbp), %rdx
movq %rbx, %rcx
movq %r14, %r8
callq 0x1cc20
jmp 0x1fb46
cmpq %r10, %r9
je 0x1f7b8
movq %r9, %rdi
movq %r10, %rsi
movq %r15, %rdx
movq %r9, %rbx
movq %r10, %r13
callq 0x2f4c6
movq %r13, %r10
movq %rbx, %r9
movq -0x30(%rbp), %rcx
cmpq $0x2, %rcx
jne 0x1f883
movq %r14, %rdi
xorl %esi, %esi
movq %r9, %rdx
movq %r15, %rcx
movq -0x50(%rbp), %r8
callq 0x1cc20
jmp 0x1fa98
leaq -0x58(%rbp), %rdi
movq %rbx, %rsi
callq 0x30170
movq %rax, %r13
jmp 0x1f1a1
leaq -0x58(%rbp), %rdi
callq 0x30170
movq -0x30(%rbp), %rdx
movq %rax, %r12
jmp 0x1f28a
leaq -0x58(%rbp), %rdi
callq 0x30170
movq %rax, %r12
jmp 0x1f66d
cmpq $0x105, -0x68(%rbp)     # imm = 0x105
jle 0x1f98d
cmpq $0x6d5, -0x68(%rbp)     # imm = 0x6D5
jle 0x1fabf
movq %rbx, %rdi
movq -0x48(%rbp), %rsi
xorl %edx, %edx
callq 0x2edfd
shlq $0x3, %rax
cmpq $0x7f00, %rax           # imm = 0x7F00
ja 0x1fc29
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 0x2e6f8
jmp 0x1fb46
movq %r9, %rbx
movl $0x108, %eax            # imm = 0x108
cmpq %rax, %rcx
setge %cl
cmpq %rax, -0x68(%rbp)
setge %al
testb %al, %cl
je 0x1fa16
cmpq $0xdb0, %r15            # imm = 0xDB0
jl 0x1f8da
cvtsi2sdq -0x30(%rbp), %xmm0
cvtsi2sd %r15, %xmm1
movsd 0x1b0d4(%rip), %xmm2    # 0x3a990
mulsd %xmm1, %xmm2
mulsd %xmm0, %xmm1
mulsd 0x1b0cc(%rip), %xmm0    # 0x3a998
addsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x1fbb1
movq %r12, %rdi
callq 0x2f530
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 0x1f91c
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 0x1f942
leaq -0x1(%rcx), %rdi
cmpq %r12, %rdx
jae 0x1fc6b
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 0x2cab0
jmp 0x1fa98
leaq -0x58(%rbp), %rdi
movq %rcx, %r13
callq 0x30170
movq -0x90(%rbp), %r10
movq %r13, %rcx
movq -0x98(%rbp), %r13
movq -0x30(%rbp), %r8
movq %rax, %r9
jmp 0x1f107
movq %r12, %rdi
callq 0x2f530
movq %rax, %r9
movq %rax, %rsi
imulq %r12, %rsi
movq -0x88(%rbp), %rax
movq -0x10(%rax), %rcx
addq %rcx, %rsi
jae 0x1f9cd
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 0x1f9f3
leaq -0x1(%r9), %rsi
cmpq %r12, %rdx
jae 0x1fc3d
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 0x2c274
jmp 0x1fb46
movq %r12, %rdi
callq 0x2f530
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 0x1fa58
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 0x1fa7e
leaq -0x1(%r9), %rsi
cmpq %r12, %rdx
jae 0x1fc54
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 0x2b3d0
movq -0x68(%rbp), %rcx
movq %rax, (%r14,%rcx,8)
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
jne 0x1fab8
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x301a3
jmp 0x1faa9
movq %r12, %rdi
callq 0x2f530
movq %rax, %rcx
movq %rax, %rdi
imulq %r12, %rdi
movq -0x88(%rbp), %rax
movq -0x10(%rax), %rsi
addq %rsi, %rdi
jae 0x1faff
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 0x1fb25
leaq -0x1(%rcx), %rdi
cmpq %r12, %rdx
jae 0x1fc82
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 0x2d7f9
movq -0x70(%rbp), %r14
movq -0x68(%rbp), %rcx
movq %rax, 0x8(%r12,%rcx,8)
jmp 0x1f61e
addq $-0x2, %r9
cmpq %rcx, %rax
cmovaeq %r9, %rdi
cmpq %r15, %rdx
cmovbeq %rdi, %r9
jmp 0x1f47b
leaq -0x58(%rbp), %rdi
movq %rax, %rsi
callq 0x30170
movq %rax, %r9
jmp 0x1f311
addq $-0x2, %r9
cmpq %rcx, %rax
cmovaeq %r9, %rdi
cmpq %rbx, %rdx
cmovbeq %rdi, %r9
jmp 0x1f533
addq $-0x2, %rcx
cmpq %r9, %rax
cmovaeq %rcx, %rdi
cmpq %r15, %rdx
cmovbeq %rdi, %rcx
jmp 0x1f3f7
movq %r10, %r13
movq %r15, %rdi
movq -0x30(%rbp), %rsi
xorl %edx, %edx
callq 0x2f2fe
shlq $0x3, %rax
cmpq $0x7f00, %rax           # imm = 0x7F00
ja 0x1fc99
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 0x2ee68
jmp 0x1fa98
addq $-0x2, %rcx
cmpq %r8, %rax
cmovaeq %rcx, %rdi
cmpq %rbx, %rdx
cmovbeq %rdi, %rcx
jmp 0x1f5b9
leaq -0x58(%rbp), %rdi
movq %rax, %rsi
callq 0x30170
movq %rax, %r9
jmp 0x1f6f6
leaq -0x58(%rbp), %rdi
movq %rax, %rsi
callq 0x30170
movq %rax, %r9
jmp 0x1f864
addq $-0x2, %r9
cmpq %rcx, %rax
cmovaeq %r9, %rsi
cmpq %r12, %rdx
cmovbeq %rsi, %r9
jmp 0x1f9f3
addq $-0x2, %r9
cmpq %rcx, %rax
cmovaeq %r9, %rsi
cmpq %r12, %rdx
cmovbeq %rsi, %r9
jmp 0x1fa7e
addq $-0x2, %rcx
cmpq %rsi, %rax
cmovaeq %rcx, %rdi
cmpq %r12, %rdx
cmovbeq %rdi, %rcx
jmp 0x1f942
addq $-0x2, %rcx
cmpq %rsi, %rax
cmovaeq %rcx, %rdi
cmpq %r12, %rdx
cmovbeq %rdi, %rcx
jmp 0x1fb25
leaq -0x58(%rbp), %rdi
movq %rax, %rsi
callq 0x30170
movq %rax, %r9
jmp 0x1fbe3
nopl (%rax)