// File: marxn[P]pupp/3rdparty/gmp/mpn/dcpi1_div_qr.c
// Function: _gmpn_dcpi1_div_qr
mp_limb_t
mpn_dcpi1_div_qr (mp_ptr qp,
		  mp_ptr np, mp_size_t nn,
		  mp_srcptr dp, mp_size_t dn,
		  gmp_pi1_t *dinv)
{
  mp_size_t qn;
  mp_limb_t qh, cy;
  mp_ptr tp;
  TMP_DECL;

  TMP_MARK;

  ASSERT (dn >= 6);		/* to adhere to mpn_sbpi1_div_qr's limits */
  ASSERT (nn - dn >= 3);	/* to adhere to mpn_sbpi1_div_qr's limits */
  ASSERT (dp[dn-1] & GMP_NUMB_HIGHBIT);

  tp = TMP_ALLOC_LIMBS (dn);

  qn = nn - dn;
  qp += qn;
  np += nn;
  dp += dn;

  if (qn > dn)
    {
      /* Reduce qn mod dn without division, optimizing small operations.  */
      do
	qn -= dn;
      while (qn > dn);

      qp -= qn;			/* point at low limb of next quotient block */
      np -= qn;			/* point in the middle of partial remainder */

      /* Perform the typically smaller block first.  */
      if (qn == 1)
	{
	  mp_limb_t q, n2, n1, n0, d1, d0;

	  /* Handle qh up front, for simplicity. */
	  qh = mpn_cmp (np - dn + 1, dp - dn, dn) >= 0;
	  if (qh)
	    ASSERT_NOCARRY (mpn_sub_n (np - dn + 1, np - dn + 1, dp - dn, dn));

	  /* A single iteration of schoolbook: One 3/2 division,
	     followed by the bignum update and adjustment. */
	  n2 = np[0];
	  n1 = np[-1];
	  n0 = np[-2];
	  d1 = dp[-1];
	  d0 = dp[-2];

	  ASSERT (n2 < d1 || (n2 == d1 && n1 <= d0));

	  if (UNLIKELY (n2 == d1) && n1 == d0)
	    {
	      q = GMP_NUMB_MASK;
	      cy = mpn_submul_1 (np - dn, dp - dn, dn, q);
	      ASSERT (cy == n2);
	    }
	  else
	    {
	      udiv_qr_3by2 (q, n1, n0, n2, n1, n0, d1, d0, dinv->inv32);

	      if (dn > 2)
		{
		  mp_limb_t cy, cy1;
		  cy = mpn_submul_1 (np - dn, dp - dn, dn - 2, q);

		  cy1 = n0 < cy;
		  n0 = (n0 - cy) & GMP_NUMB_MASK;
		  cy = n1 < cy1;
		  n1 = (n1 - cy1) & GMP_NUMB_MASK;
		  np[-2] = n0;

		  if (UNLIKELY (cy != 0))
		    {
		      n1 += d1 + mpn_add_n (np - dn, np - dn, dp - dn, dn - 1);
		      qh -= (q == 0);
		      q = (q - 1) & GMP_NUMB_MASK;
		    }
		}
	      else
		np[-2] = n0;

	      np[-1] = n1;
	    }
	  qp[0] = q;
	}
      else
	{
	  /* Do a 2qn / qn division */
	  if (qn == 2)
	    qh = mpn_divrem_2 (qp, 0L, np - 2, 4, dp - 2); /* FIXME: obsolete function. Use 5/3 division? */
	  else if (BELOW_THRESHOLD (qn, DC_DIV_QR_THRESHOLD))
	    qh = mpn_sbpi1_div_qr (qp, np - qn, 2 * qn, dp - qn, qn, dinv->inv32);
	  else
	    qh = mpn_dcpi1_div_qr_n (qp, np - qn, dp - qn, qn, dinv, tp);

	  if (qn != dn)
	    {
	      if (qn > dn - qn)
		mpn_mul (tp, qp, qn, dp - dn, dn - qn);
	      else
		mpn_mul (tp, dp - dn, dn - qn, qp, qn);

	      cy = mpn_sub_n (np - dn, np - dn, tp, dn);
	      if (qh != 0)
		cy += mpn_sub_n (np - dn + qn, np - dn + qn, dp - dn, dn - qn);

	      while (cy != 0)
		{
		  qh -= mpn_sub_1 (qp, qp, qn, 1);
		  cy -= mpn_add_n (np - dn, np - dn, dp - dn, dn);
		}
	    }
	}

      qn = nn - dn - qn;
      do
	{
	  qp -= dn;
	  np -= dn;
	  mpn_dcpi1_div_qr_n (qp, np - dn, dp - dn, dn, dinv, tp);
	  qn -= dn;
	}
      while (qn > 0);
    }
  else
    {
      qp -= qn;			/* point at low limb of next quotient block */
      np -= qn;			/* point in the middle of partial remainder */

      if (BELOW_THRESHOLD (qn, DC_DIV_QR_THRESHOLD))
	qh = mpn_sbpi1_div_qr (qp, np - qn, 2 * qn, dp - qn, qn, dinv->inv32);
      else
	qh = mpn_dcpi1_div_qr_n (qp, np - qn, dp - qn, qn, dinv, tp);

      if (qn != dn)
	{
	  if (qn > dn - qn)
	    mpn_mul (tp, qp, qn, dp - dn, dn - qn);
	  else
	    mpn_mul (tp, dp - dn, dn - qn, qp, qn);

	  cy = mpn_sub_n (np - dn, np - dn, tp, dn);
	  if (qh != 0)
	    cy += mpn_sub_n (np - dn + qn, np - dn + qn, dp - dn, dn - qn);

	  while (cy != 0)
	    {
	      qh -= mpn_sub_1 (qp, qp, qn, 1);
	      cy -= mpn_add_n (np - dn, np - dn, dp - dn, dn);
	    }
	}
    }

  TMP_FREE;
  return qh;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq $0x0, -0x58(%rbp)
jmp 0x51dfd
jmp 0x51dff
jmp 0x51e01
jmp 0x51e03
jmp 0x51e05
movq -0x28(%rbp), %rax
shlq $0x3, %rax
cmpq $0x7f00, %rax           # imm = 0x7F00
setbe %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x51e50
movq -0x28(%rbp), %rax
leaq 0xf(,%rax,8), %rcx
andq $-0x10, %rcx
movq %rsp, %rax
subq %rcx, %rax
movq %rax, %rsp
movq %rax, -0x120(%rbp)
jmp 0x51e68
movq -0x28(%rbp), %rsi
shlq $0x3, %rsi
leaq -0x58(%rbp), %rdi
callq 0x56430
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rax
subq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
shlq $0x3, %rax
addq -0x8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x18(%rbp), %rax
shlq $0x3, %rax
addq -0x10(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x28(%rbp), %rax
shlq $0x3, %rax
addq -0x20(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x28(%rbp), %rax
jle 0x526bf
jmp 0x51ebf
movq -0x28(%rbp), %rcx
movq -0x38(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x28(%rbp), %rax
jg 0x51ebf
movq -0x38(%rbp), %rdx
movq -0x8(%rbp), %rax
xorl %ecx, %ecx
subq %rdx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x8(%rbp)
movq -0x38(%rbp), %rdx
movq -0x10(%rbp), %rax
xorl %ecx, %ecx
subq %rdx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
cmpq $0x1, -0x38(%rbp)
jne 0x523ea
movq -0x10(%rbp), %rdi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
addq $0x8, %rdi
movq -0x20(%rbp), %rsi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x28(%rbp), %rdx
callq 0x3b060
cmpl $0x0, %eax
setge %al
andb $0x1, %al
movzbl %al, %eax
cltq
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0x51f9e
movq -0x10(%rbp), %rdi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
addq $0x8, %rdi
movq -0x10(%rbp), %rsi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
addq $0x8, %rsi
movq -0x20(%rbp), %rdx
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
movq -0x28(%rbp), %rcx
callq 0x36fe0
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rax
movq -0x8(%rax), %rax
movq %rax, -0x70(%rbp)
movq -0x10(%rbp), %rax
movq -0x10(%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x20(%rbp), %rax
movq -0x8(%rax), %rax
movq %rax, -0x80(%rbp)
movq -0x20(%rbp), %rax
movq -0x10(%rax), %rax
movq %rax, -0x88(%rbp)
jmp 0x51fde
movq -0x68(%rbp), %rax
cmpq -0x80(%rbp), %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x52050
movq -0x70(%rbp), %rax
cmpq -0x88(%rbp), %rax
jne 0x52050
movq $-0x1, -0x60(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x20(%rbp), %rsi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x28(%rbp), %rdx
movq -0x60(%rbp), %rcx
callq 0x56760
movq %rax, -0x48(%rbp)
jmp 0x5204b
jmp 0x523da
jmp 0x52052
movq -0x68(%rbp), %rax
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
movq %rcx, -0x108(%rbp)
mulq -0x108(%rbp)
movq %rax, -0x90(%rbp)
movq %rdx, -0x60(%rbp)
movq -0x60(%rbp), %rcx
movq -0x68(%rbp), %rsi
movq -0x90(%rbp), %rax
movq -0x70(%rbp), %rdx
movq %rsi, -0xf8(%rbp)
movq %rdx, -0x100(%rbp)
addq -0x100(%rbp), %rax
adcq -0xf8(%rbp), %rcx
movq %rcx, -0x60(%rbp)
movq %rax, -0x90(%rbp)
movq -0x70(%rbp), %rax
movq -0x80(%rbp), %rcx
imulq -0x60(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rcx
movq -0x80(%rbp), %rsi
movq -0x78(%rbp), %rax
movq -0x88(%rbp), %rdx
movq %rsi, -0xe8(%rbp)
movq %rdx, -0xf0(%rbp)
subq -0xf0(%rbp), %rax
sbbq -0xe8(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq %rax, -0x78(%rbp)
movq -0x88(%rbp), %rax
movq -0x60(%rbp), %rcx
movq %rcx, -0xe0(%rbp)
mulq -0xe0(%rbp)
movq %rax, -0xa0(%rbp)
movq %rdx, -0x98(%rbp)
movq -0x70(%rbp), %rcx
movq -0x98(%rbp), %rsi
movq -0x78(%rbp), %rax
movq -0xa0(%rbp), %rdx
movq %rsi, -0xd0(%rbp)
movq %rdx, -0xd8(%rbp)
subq -0xd8(%rbp), %rax
sbbq -0xd0(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq %rax, -0x78(%rbp)
movq -0x60(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x60(%rbp)
movq -0x70(%rbp), %rax
cmpq -0x90(%rbp), %rax
setae %al
andb $0x1, %al
movzbl %al, %eax
movslq %eax, %rcx
xorl %eax, %eax
subq %rcx, %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
addq -0x60(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x70(%rbp), %rcx
movq -0xa8(%rbp), %rsi
andq -0x80(%rbp), %rsi
movq -0x78(%rbp), %rax
movq -0xa8(%rbp), %rdx
andq -0x88(%rbp), %rdx
movq %rsi, -0xc0(%rbp)
movq %rdx, -0xc8(%rbp)
addq -0xc8(%rbp), %rax
adcq -0xc0(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq %rax, -0x78(%rbp)
movq -0x70(%rbp), %rax
cmpq -0x80(%rbp), %rax
setae %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x5225d
movq -0x70(%rbp), %rax
cmpq -0x80(%rbp), %rax
ja 0x52218
movq -0x78(%rbp), %rax
cmpq -0x88(%rbp), %rax
jb 0x5225b
movq -0x60(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x60(%rbp)
movq -0x70(%rbp), %rcx
movq -0x80(%rbp), %rsi
movq -0x78(%rbp), %rax
movq -0x88(%rbp), %rdx
movq %rsi, -0x110(%rbp)
movq %rdx, -0x118(%rbp)
subq -0x118(%rbp), %rax
sbbq -0x110(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq %rax, -0x78(%rbp)
jmp 0x5225d
jmp 0x5225f
cmpq $0x2, -0x28(%rbp)
jle 0x523c2
movq -0x10(%rbp), %rdi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x20(%rbp), %rsi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x28(%rbp), %rdx
subq $0x2, %rdx
movq -0x60(%rbp), %rcx
callq 0x56760
movq %rax, -0xb0(%rbp)
movq -0x78(%rbp), %rax
cmpq -0xb0(%rbp), %rax
setb %al
andb $0x1, %al
movzbl %al, %eax
cltq
movq %rax, -0xb8(%rbp)
movq -0x78(%rbp), %rax
subq -0xb0(%rbp), %rax
andq $-0x1, %rax
movq %rax, -0x78(%rbp)
movq -0x70(%rbp), %rax
cmpq -0xb8(%rbp), %rax
setb %al
andb $0x1, %al
movzbl %al, %eax
cltq
movq %rax, -0xb0(%rbp)
movq -0x70(%rbp), %rax
subq -0xb8(%rbp), %rax
andq $-0x1, %rax
movq %rax, -0x70(%rbp)
movq -0x78(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, -0x10(%rax)
cmpq $0x0, -0xb0(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x523c0
movq -0x80(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x10(%rbp), %rsi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x20(%rbp), %rdx
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
movq -0x28(%rbp), %rcx
subq $0x1, %rcx
callq 0x36c80
movq %rax, %rcx
movq -0x128(%rbp), %rax
addq %rcx, %rax
addq -0x70(%rbp), %rax
movq %rax, -0x70(%rbp)
cmpq $0x0, -0x60(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
movslq %eax, %rcx
movq -0x40(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x60(%rbp), %rax
subq $0x1, %rax
andq $-0x1, %rax
movq %rax, -0x60(%rbp)
jmp 0x523ce
movq -0x78(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, -0x10(%rax)
movq -0x70(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, -0x8(%rax)
movq -0x60(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
jmp 0x5262d
cmpq $0x2, -0x38(%rbp)
jne 0x5241c
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rdx
addq $-0x10, %rdx
movq -0x20(%rbp), %r8
addq $-0x10, %r8
xorl %eax, %eax
movl %eax, %esi
movl $0x4, %ecx
callq 0x37dc0
movq %rax, -0x40(%rbp)
jmp 0x524a3
cmpq $0x33, -0x38(%rbp)
jge 0x52466
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
xorl %eax, %eax
subq -0x38(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x38(%rbp), %rdx
shlq %rdx
movq -0x20(%rbp), %rcx
xorl %eax, %eax
subq -0x38(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rcx
movq -0x38(%rbp), %r8
movq -0x30(%rbp), %rax
movq (%rax), %r9
callq 0x505f0
movq %rax, -0x40(%rbp)
jmp 0x524a1
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
xorl %eax, %eax
subq -0x38(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x20(%rbp), %rdx
xorl %eax, %eax
subq -0x38(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %r8
movq -0x50(%rbp), %r9
callq 0x51ab0
movq %rax, -0x40(%rbp)
jmp 0x524a3
movq -0x38(%rbp), %rax
cmpq -0x28(%rbp), %rax
je 0x5262b
movq -0x38(%rbp), %rax
movq -0x28(%rbp), %rcx
subq -0x38(%rbp), %rcx
cmpq %rcx, %rax
jle 0x524ee
movq -0x50(%rbp), %rdi
movq -0x8(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq -0x20(%rbp), %rcx
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rcx
movq -0x28(%rbp), %r8
subq -0x38(%rbp), %r8
callq 0x37f00
jmp 0x52518
movq -0x50(%rbp), %rdi
movq -0x20(%rbp), %rsi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x28(%rbp), %rdx
subq -0x38(%rbp), %rdx
movq -0x8(%rbp), %rcx
movq -0x38(%rbp), %r8
callq 0x37f00
movq -0x10(%rbp), %rdi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x10(%rbp), %rsi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x50(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0x36fe0
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0x525b0
movq -0x10(%rbp), %rdi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x38(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x10(%rbp), %rsi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x38(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x20(%rbp), %rdx
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
movq -0x28(%rbp), %rcx
subq -0x38(%rbp), %rcx
callq 0x36fe0
addq -0x48(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x525b2
cmpq $0x0, -0x48(%rbp)
je 0x52629
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
movq -0x38(%rbp), %rdx
movl $0x1, %ecx
callq 0x36e60
movq %rax, %rcx
movq -0x40(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x10(%rbp), %rsi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x20(%rbp), %rdx
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
movq -0x28(%rbp), %rcx
callq 0x36c80
movq %rax, %rcx
movq -0x48(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x48(%rbp)
jmp 0x525b2
jmp 0x5262b
jmp 0x5262d
movq -0x18(%rbp), %rax
subq -0x28(%rbp), %rax
subq -0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rdx
movq -0x8(%rbp), %rax
xorl %ecx, %ecx
subq %rdx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x8(%rbp)
movq -0x28(%rbp), %rdx
movq -0x10(%rbp), %rax
xorl %ecx, %ecx
subq %rdx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x20(%rbp), %rdx
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
movq -0x50(%rbp), %r9
callq 0x51ab0
movq -0x28(%rbp), %rcx
movq -0x38(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jg 0x5263d
jmp 0x528fe
movq -0x38(%rbp), %rdx
movq -0x8(%rbp), %rax
xorl %ecx, %ecx
subq %rdx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x8(%rbp)
movq -0x38(%rbp), %rdx
movq -0x10(%rbp), %rax
xorl %ecx, %ecx
subq %rdx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
cmpq $0x33, -0x38(%rbp)
jge 0x52739
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
xorl %eax, %eax
subq -0x38(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x38(%rbp), %rdx
shlq %rdx
movq -0x20(%rbp), %rcx
xorl %eax, %eax
subq -0x38(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rcx
movq -0x38(%rbp), %r8
movq -0x30(%rbp), %rax
movq (%rax), %r9
callq 0x505f0
movq %rax, -0x40(%rbp)
jmp 0x52774
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
xorl %eax, %eax
subq -0x38(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x20(%rbp), %rdx
xorl %eax, %eax
subq -0x38(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %r8
movq -0x50(%rbp), %r9
callq 0x51ab0
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x28(%rbp), %rax
je 0x528fc
movq -0x38(%rbp), %rax
movq -0x28(%rbp), %rcx
subq -0x38(%rbp), %rcx
cmpq %rcx, %rax
jle 0x527bf
movq -0x50(%rbp), %rdi
movq -0x8(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq -0x20(%rbp), %rcx
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rcx
movq -0x28(%rbp), %r8
subq -0x38(%rbp), %r8
callq 0x37f00
jmp 0x527e9
movq -0x50(%rbp), %rdi
movq -0x20(%rbp), %rsi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x28(%rbp), %rdx
subq -0x38(%rbp), %rdx
movq -0x8(%rbp), %rcx
movq -0x38(%rbp), %r8
callq 0x37f00
movq -0x10(%rbp), %rdi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x10(%rbp), %rsi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x50(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0x36fe0
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0x52881
movq -0x10(%rbp), %rdi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x38(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x10(%rbp), %rsi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x38(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x20(%rbp), %rdx
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
movq -0x28(%rbp), %rcx
subq -0x38(%rbp), %rcx
callq 0x36fe0
addq -0x48(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x52883
cmpq $0x0, -0x48(%rbp)
je 0x528fa
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
movq -0x38(%rbp), %rdx
movl $0x1, %ecx
callq 0x36e60
movq %rax, %rcx
movq -0x40(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x10(%rbp), %rsi
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x20(%rbp), %rdx
xorl %eax, %eax
subq -0x28(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
movq -0x28(%rbp), %rcx
callq 0x36c80
movq %rax, %rcx
movq -0x48(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x48(%rbp)
jmp 0x52883
jmp 0x528fc
jmp 0x528fe
jmp 0x52900
cmpq $0x0, -0x58(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x52929
movq -0x58(%rbp), %rdi
callq 0x564a0
jmp 0x5292b
movq -0x40(%rbp), %rax
movq %rbp, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop