// File: /workspace/github_cpp_makefile_star2_O3/marxn[P]pupp/3rdparty/gmp/mpn/toom32_mul.c
// Function: _gmpn_toom32_mul
void
mpn_toom32_mul (mp_ptr pp,
		mp_srcptr ap, mp_size_t an,
		mp_srcptr bp, mp_size_t bn,
		mp_ptr scratch)
{
  mp_size_t n, s, t;
  int vm1_neg;
  mp_limb_t cy;
  mp_limb_signed_t hi;
  mp_limb_t ap1_hi, bp1_hi;

#define a0  ap
#define a1  (ap + n)
#define a2  (ap + 2 * n)
#define b0  bp
#define b1  (bp + n)

  /* Required, to ensure that s + t >= n. */
  ASSERT (bn + 2 <= an && an + 6 <= 3*bn);

  n = 1 + (2 * an >= 3 * bn ? (an - 1) / (size_t) 3 : (bn - 1) >> 1);

  s = an - 2 * n;
  t = bn - n;

  ASSERT (0 < s && s <= n);
  ASSERT (0 < t && t <= n);
  ASSERT (s + t >= n);

  /* Product area of size an + bn = 3*n + s + t >= 4*n + 2. */
#define ap1 (pp)		/* n, most significant limb in ap1_hi */
#define bp1 (pp + n)		/* n, most significant bit in bp1_hi */
#define am1 (pp + 2*n)		/* n, most significant bit in hi */
#define bm1 (pp + 3*n)		/* n */
#define v1 (scratch)		/* 2n + 1 */
#define vm1 (pp)		/* 2n + 1 */
#define scratch_out (scratch + 2*n + 1) /* Currently unused. */

  /* Scratch need: 2*n + 1 + scratch for the recursive multiplications. */

  /* FIXME: Keep v1[2*n] and vm1[2*n] in scalar variables? */

  /* Compute ap1 = a0 + a1 + a3, am1 = a0 - a1 + a3 */
  ap1_hi = mpn_add (ap1, a0, n, a2, s);
#if HAVE_NATIVE_mpn_add_n_sub_n
  if (ap1_hi == 0 && mpn_cmp (ap1, a1, n) < 0)
    {
      ap1_hi = mpn_add_n_sub_n (ap1, am1, a1, ap1, n) >> 1;
      hi = 0;
      vm1_neg = 1;
    }
  else
    {
      cy = mpn_add_n_sub_n (ap1, am1, ap1, a1, n);
      hi = ap1_hi - (cy & 1);
      ap1_hi += (cy >> 1);
      vm1_neg = 0;
    }
#else
  if (ap1_hi == 0 && mpn_cmp (ap1, a1, n) < 0)
    {
      ASSERT_NOCARRY (mpn_sub_n (am1, a1, ap1, n));
      hi = 0;
      vm1_neg = 1;
    }
  else
    {
      hi = ap1_hi - mpn_sub_n (am1, ap1, a1, n);
      vm1_neg = 0;
    }
  ap1_hi += mpn_add_n (ap1, ap1, a1, n);
#endif

  /* Compute bp1 = b0 + b1 and bm1 = b0 - b1. */
  if (t == n)
    {
#if HAVE_NATIVE_mpn_add_n_sub_n
      if (mpn_cmp (b0, b1, n) < 0)
	{
	  cy = mpn_add_n_sub_n (bp1, bm1, b1, b0, n);
	  vm1_neg ^= 1;
	}
      else
	{
	  cy = mpn_add_n_sub_n (bp1, bm1, b0, b1, n);
	}
      bp1_hi = cy >> 1;
#else
      bp1_hi = mpn_add_n (bp1, b0, b1, n);

      if (mpn_cmp (b0, b1, n) < 0)
	{
	  ASSERT_NOCARRY (mpn_sub_n (bm1, b1, b0, n));
	  vm1_neg ^= 1;
	}
      else
	{
	  ASSERT_NOCARRY (mpn_sub_n (bm1, b0, b1, n));
	}
#endif
    }
  else
    {
      /* FIXME: Should still use mpn_add_n_sub_n for the main part. */
      bp1_hi = mpn_add (bp1, b0, n, b1, t);

      if (mpn_zero_p (b0 + t, n - t) && mpn_cmp (b0, b1, t) < 0)
	{
	  ASSERT_NOCARRY (mpn_sub_n (bm1, b1, b0, t));
	  MPN_ZERO (bm1 + t, n - t);
	  vm1_neg ^= 1;
	}
      else
	{
	  ASSERT_NOCARRY (mpn_sub (bm1, b0, n, b1, t));
	}
    }

  TOOM32_MUL_N_REC (v1, ap1, bp1, n, scratch_out);
  if (ap1_hi == 1)
    {
      cy = bp1_hi + mpn_add_n (v1 + n, v1 + n, bp1, n);
    }
  else if (ap1_hi == 2)
    {
#if HAVE_NATIVE_mpn_addlsh1_n
      cy = 2 * bp1_hi + mpn_addlsh1_n (v1 + n, v1 + n, bp1, n);
#else
      cy = 2 * bp1_hi + mpn_addmul_1 (v1 + n, bp1, n, CNST_LIMB(2));
#endif
    }
  else
    cy = 0;
  if (bp1_hi != 0)
    cy += mpn_add_n (v1 + n, v1 + n, ap1, n);
  v1[2 * n] = cy;

  TOOM32_MUL_N_REC (vm1, am1, bm1, n, scratch_out);
  if (hi)
    hi = mpn_add_n (vm1+n, vm1+n, bm1, n);

  vm1[2*n] = hi;

  /* v1 <-- (v1 + vm1) / 2 = x0 + x2 */
  if (vm1_neg)
    {
#if HAVE_NATIVE_mpn_rsh1sub_n
      mpn_rsh1sub_n (v1, v1, vm1, 2*n+1);
#else
      mpn_sub_n (v1, v1, vm1, 2*n+1);
      ASSERT_NOCARRY (mpn_rshift (v1, v1, 2*n+1, 1));
#endif
    }
  else
    {
#if HAVE_NATIVE_mpn_rsh1add_n
      mpn_rsh1add_n (v1, v1, vm1, 2*n+1);
#else
      mpn_add_n (v1, v1, vm1, 2*n+1);
      ASSERT_NOCARRY (mpn_rshift (v1, v1, 2*n+1, 1));
#endif
    }

  /* We get x1 + x3 = (x0 + x2) - (x0 - x1 + x2 - x3), and hence

     y = x1 + x3 + (x0 + x2) * B
       = (x0 + x2) * B + (x0 + x2) - vm1.

     y is 3*n + 1 limbs, y = y0 + y1 B + y2 B^2. We store them as
     follows: y0 at scratch, y1 at pp + 2*n, and y2 at scratch + n
     (already in place, except for carry propagation).

     We thus add

   B^3  B^2   B    1
    |    |    |    |
   +-----+----+
 + |  x0 + x2 |
   +----+-----+----+
 +      |  x0 + x2 |
	+----------+
 -      |  vm1     |
 --+----++----+----+-
   | y2  | y1 | y0 |
   +-----+----+----+

  Since we store y0 at the same location as the low half of x0 + x2, we
  need to do the middle sum first. */

  hi = vm1[2*n];
  cy = mpn_add_n (pp + 2*n, v1, v1 + n, n);
  MPN_INCR_U (v1 + n, n + 1, cy + v1[2*n]);

  /* FIXME: Can we get rid of this second vm1_neg conditional by
     swapping the location of +1 and -1 values? */
  if (vm1_neg)
    {
      cy = mpn_add_n (v1, v1, vm1, n);
      hi += mpn_add_nc (pp + 2*n, pp + 2*n, vm1 + n, n, cy);
      MPN_INCR_U (v1 + n, n+1, hi);
    }
  else
    {
      cy = mpn_sub_n (v1, v1, vm1, n);
      hi += mpn_sub_nc (pp + 2*n, pp + 2*n, vm1 + n, n, cy);
      MPN_DECR_U (v1 + n, n+1, hi);
    }

  TOOM32_MUL_N_REC (pp, a0, b0, n, scratch_out);
  /* vinf, s+t limbs.  Use mpn_mul for now, to handle unbalanced operands */
  if (s > t)  mpn_mul (pp+3*n, a2, s, b1, t);
  else        mpn_mul (pp+3*n, b1, t, a2, s);

  /* Remaining interpolation.

     y * B + x0 + x3 B^3 - x0 B^2 - x3 B
     = (x1 + x3) B + (x0 + x2) B^2 + x0 + x3 B^3 - x0 B^2 - x3 B
     = y0 B + y1 B^2 + y3 B^3 + Lx0 + H x0 B
       + L x3 B^3 + H x3 B^4 - Lx0 B^2 - H x0 B^3 - L x3 B - H x3 B^2
     = L x0 + (y0 + H x0 - L x3) B + (y1 - L x0 - H x3) B^2
       + (y2 - (H x0 - L x3)) B^3 + H x3 B^4

	  B^4       B^3       B^2        B         1
 |         |         |         |         |         |
   +-------+                   +---------+---------+
   |  Hx3  |                   | Hx0-Lx3 |    Lx0  |
   +------+----------+---------+---------+---------+
	  |    y2    |  y1     |   y0    |
	  ++---------+---------+---------+
	  -| Hx0-Lx3 | - Lx0   |
	   +---------+---------+
		      | - Hx3  |
		      +--------+

    We must take into account the carry from Hx0 - Lx3.
  */

  cy = mpn_sub_n (pp + n, pp + n, pp+3*n, n);
  hi = scratch[2*n] + cy;

  cy = mpn_sub_nc (pp + 2*n, pp + 2*n, pp, n, cy);
  hi -= mpn_sub_nc (pp + 3*n, scratch + n, pp + n, n, cy);

  hi += mpn_add (pp + n, pp + n, 3*n, scratch, n);

  /* FIXME: Is support for s + t == n needed? */
  if (LIKELY (s + t > n))
    {
      hi -= mpn_sub (pp + 2*n, pp + 2*n, 2*n, pp + 4*n, s+t-n);

      if (hi < 0)
	MPN_DECR_U (pp + 4*n, s+t-n, -hi);
      else
	MPN_INCR_U (pp + 4*n, s+t-n, hi);
    }
  else
    ASSERT (hi == 0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
leaq (%rdx,%rdx), %rax
leaq (%r8,%r8,2), %rcx
cmpq %rcx, %rax
jge 0x6711
leaq -0x1(%r8), %rdi
sarq %rdi
jmp 0x6721
leaq -0x1(%r12), %rax
pushq $0x3
popq %rcx
xorl %edx, %edx
divq %rcx
movq %rax, %rdi
movq %r9, 0x10(%rsp)
leaq 0x1(%rdi), %rbp
leaq 0x2(,%rdi,2), %rcx
movq %r8, 0x58(%rsp)
subq %rbp, %r8
movq %r8, 0x20(%rsp)
movq %rbp, %rdx
shlq $0x4, %rdx
addq %r15, %rdx
movq %r12, 0x78(%rsp)
movq %rcx, 0x38(%rsp)
subq %rcx, %r12
movq %rdi, 0x48(%rsp)
movq %rdx, 0x70(%rsp)
je 0x679f
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rcx
callq 0x1ba80
movq 0x48(%rsp), %rdi
movq %r12, %rcx
testq %rax, %rax
je 0x67a1
pushq $0x1
popq %r13
movq %r12, %rax
cmpq %rdi, %rax
jg 0x67f3
movq (%r15,%rax,8), %rdx
leaq 0x1(%rax), %rcx
incq %rdx
movq %rdx, (%r14,%rax,8)
movq %rcx, %rax
je 0x6784
jmp 0x67a1
xorl %ecx, %ecx
cmpq %r15, %r14
je 0x67bb
cmpq %rdi, %rcx
jg 0x67bb
movq (%r15,%rcx,8), %rax
movq %rax, (%r14,%rcx,8)
incq %rcx
cmpq %rcx, %rbp
jne 0x67ab
leaq (%r15,%rbp,8), %rsi
shlq $0x4, %rdi
leaq (%rdi,%r15), %rax
addq $0x8, %rax
xorl %r13d, %r13d
movq %rbp, %rcx
testq %rcx, %rcx
jle 0x67f3
movq -0x8(%r14,%rcx,8), %rdx
decq %rcx
movq (%rax), %rdi
addq $-0x8, %rax
cmpq %rdi, %rdx
je 0x67d1
jbe 0x6912
xorl %r13d, %r13d
movq 0x38(%rsp), %rax
leaq (%r14,%rax,8), %rdi
leaq (%r15,%rbp,8), %rdx
movq %r14, %rsi
movq %rbp, %rcx
callq 0x1bca0
cmpq %rax, %r13
sete 0x30(%rsp)
movl $0x0, (%rsp)
leaq (%r15,%rbp,8), %rdx
movq %r14, %rdi
movq %r14, %rsi
movq %rbp, %rcx
callq 0x1ba80
addq %r13, %rax
movq %rbp, %r13
leaq (%r14,%rbp,8), %rdx
leaq (%rbx,%rbp,8), %r8
movq 0x20(%rsp), %rcx
subq %rcx, %r13
movq %rdx, 0x8(%rsp)
movq %r8, 0x18(%rsp)
movq %rax, 0x28(%rsp)
jne 0x68be
movq %rdx, %rdi
movq %rbx, %rsi
movq %r8, %rdx
movq %rbp, %rcx
callq 0x1ba80
movq 0x48(%rsp), %rcx
shlq $0x4, %rcx
leaq (%rcx,%rbx), %rdi
addq $0x8, %rdi
movq %rbp, %rcx
movq 0x10(%rsp), %r13
movq %rax, 0x40(%rsp)
testq %rcx, %rcx
jle 0x68a2
leaq -0x1(%rcx), %rdx
movq (%rdi), %rsi
addq $-0x8, %rdi
cmpq %rsi, -0x8(%rbx,%rcx,8)
movq %rdx, %rcx
je 0x6882
jbe 0x6a56
imulq $0x18, %rbp, %rdi
addq %r14, %rdi
movq %rbx, %rsi
movq 0x18(%rsp), %rdx
movq %rbp, %rcx
callq 0x1bca0
jmp 0x6ab6
testq %rcx, %rcx
je 0x6939
movq %rdx, %rdi
movq %rbx, %rsi
movq %r8, %rdx
callq 0x1ba80
movq 0x8(%rsp), %rdx
movq 0x20(%rsp), %rcx
movq %rcx, %r8
testq %rax, %rax
movq 0x58(%rsp), %rsi
movq 0x48(%rsp), %rdi
je 0x6946
leaq (%r14,%rsi,8), %rax
pushq $0x1
popq %r10
movq %rcx, %r8
cmpq %rdi, %r8
jg 0x696f
movq (%rbx,%r8,8), %r9
incq %r8
incq %r9
movq %r9, (%rax)
leaq 0x8(%rax), %rax
je 0x68f8
jmp 0x6946
movq 0x38(%rsp), %rax
leaq (%r14,%rax,8), %rdi
movq %r14, %rdx
movq %rbp, %rcx
callq 0x1bca0
movb $0x1, 0x30(%rsp)
pushq $0x1
popq %rax
movl %eax, (%rsp)
xorl %r13d, %r13d
jmp 0x681a
xorl %r8d, %r8d
movq 0x58(%rsp), %rsi
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdx
setne %al
cmpq %rdi, %r8
setle %r9b
andb %al, %r9b
xorl %r10d, %r10d
cmpb $0x1, %r9b
jne 0x696f
movq (%rbx,%r8,8), %rax
movq %rax, (%rdx,%r8,8)
incq %r8
cmpq %r8, %rbp
jne 0x695f
movq %rsi, %rax
subq %rdi, %rax
subq %rdi, %rax
addq $-0x2, %rax
leaq (%rbx,%rdi,8), %r8
xorl %r9d, %r9d
movq %r10, 0x40(%rsp)
cmpq $0x0, (%r8,%r9,8)
jne 0x69be
decq %r9
cmpq %r9, %rax
jne 0x6988
leaq -0x1(%rsi), %rax
movq %rcx, %r8
testq %r8, %r8
jle 0x69be
leaq -0x1(%r8), %r9
movq (%rbx,%rax,8), %rsi
decq %rax
cmpq %rsi, -0x8(%rbx,%r8,8)
movq %r9, %r8
je 0x699e
jbe 0x6a73
imulq $0x18, %rbp, %r13
addq %r14, %r13
testq %rcx, %rcx
je 0x6a26
movq %r13, %rdi
movq %rbx, %rsi
movq 0x18(%rsp), %rdx
callq 0x1bca0
movq 0x8(%rsp), %rdx
movq 0x20(%rsp), %rsi
movq 0x48(%rsp), %rdi
movq 0x58(%rsp), %r8
movq %rsi, %rcx
testq %rax, %rax
je 0x6a28
movq %rdi, %rax
shlq $0x4, %rax
leaq (%rax,%r8,8), %rax
addq %r14, %rax
addq $0x10, %rax
movq %rsi, %rcx
cmpq %rdi, %rcx
jg 0x6a4f
movq (%rbx,%rcx,8), %rsi
incq %rcx
subq $0x1, %rsi
movq %rsi, (%rax)
leaq 0x8(%rax), %rax
jb 0x6a0b
jmp 0x6a28
xorl %ecx, %ecx
cmpq %rbx, %r13
setne %al
cmpq %rdi, %rcx
setle %sil
andb %al, %sil
cmpb $0x1, %sil
jne 0x6a4f
movq (%rbx,%rcx,8), %rax
movq %rax, (%r13,%rcx,8)
incq %rcx
cmpq %rcx, %rbp
jne 0x6a3e
movq 0x10(%rsp), %r13
jmp 0x6abb
imulq $0x18, %rbp, %rdi
addq %r14, %rdi
movq 0x18(%rsp), %rsi
movq %rbx, %rdx
movq %rbp, %rcx
callq 0x1bca0
xorl $0x1, (%rsp)
jmp 0x6ab6
imulq $0x18, %rbp, %rdi
addq %r14, %rdi
movq %rdi, 0x50(%rsp)
movq 0x18(%rsp), %rsi
movq %rbx, %rdx
callq 0x1bca0
testq %r13, %r13
je 0x6aad
movq 0x50(%rsp), %rax
movq 0x20(%rsp), %rcx
leaq (%rax,%rcx,8), %rdi
shlq $0x3, %r13
xorl %esi, %esi
movq %r13, %rdx
callq 0x6170
xorl $0x1, (%rsp)
movq 0x10(%rsp), %r13
movq 0x8(%rsp), %rdx
movq %r13, %rdi
movq %r14, %rsi
movq %rbp, %rcx
callq 0x1d348
movq 0x28(%rsp), %rax
cmpq $0x2, %rax
je 0x6b02
cmpq $0x1, %rax
jne 0x6b28
leaq (,%rbp,8), %rdi
addq %r13, %rdi
movq %rdi, %rsi
movq 0x8(%rsp), %rdx
movq %rbp, %rcx
callq 0x1ba80
movq %rax, %r13
movq 0x40(%rsp), %rcx
addq %rcx, %r13
jmp 0x6b30
leaq (,%rbp,8), %rdi
addq %r13, %rdi
movq %rdi, %rsi
movq 0x8(%rsp), %rdx
movq %rbp, %rcx
callq 0x2f200
movq 0x40(%rsp), %rcx
leaq (%rax,%rcx,2), %r13
jmp 0x6b30
xorl %r13d, %r13d
movq 0x40(%rsp), %rcx
movq %r15, 0x40(%rsp)
testq %rcx, %rcx
je 0x6b56
movq 0x10(%rsp), %r15
leaq (%r15,%rbp,8), %rdi
movq %rdi, %rsi
movq %r14, %rdx
movq %rbp, %rcx
callq 0x1ba80
addq %rax, %r13
jmp 0x6b5b
movq 0x10(%rsp), %r15
movq 0x38(%rsp), %rax
movq %r13, (%r15,%rax,8)
leaq (%r14,%rax,8), %r15
leaq (,%rbp,2), %rax
addq %rbp, %rax
movq %rax, 0x80(%rsp)
leaq (%r14,%rax,8), %r13
movq %r14, %rdi
movq %r15, %rsi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x1d348
cmpb $0x0, 0x30(%rsp)
movq %r13, 0x50(%rsp)
je 0x6ba0
xorl %eax, %eax
jmp 0x6bb3
movq 0x8(%rsp), %rdi
movq %rdi, %rsi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x1ba80
movl (%rsp), %edx
movq %r15, 0x30(%rsp)
movq %rax, (%r15)
movq 0x38(%rsp), %rcx
orq $0x1, %rcx
movl %edx, (%rsp)
testl %edx, %edx
movq %rbx, 0x68(%rsp)
je 0x6be8
movq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2f670
jmp 0x6bfb
movq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2f530
movq 0x30(%rsp), %r13
movq (%r13), %rax
movq %rax, 0x60(%rsp)
leaq (%r15,%rbp,8), %rbx
movq %r13, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %rbp, %rcx
callq 0x1ba80
movq 0x38(%rsp), %rcx
addq (%r15,%rcx,8), %rax
movq %rbx, 0x28(%rsp)
addq %rax, (%rbx)
jae 0x6c3c
addq $0x1, 0x8(%rbx)
leaq 0x8(%rbx), %rbx
jb 0x6c31
cmpl $0x0, (%rsp)
je 0x6c85
movq %r15, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbp, %rcx
callq 0x1ba80
movq %r13, %rdi
movq %r13, %rsi
movq 0x8(%rsp), %rdx
movq %rbp, %rcx
movq %rax, %r8
callq 0x1ba60
addq 0x60(%rsp), %rax
movq 0x28(%rsp), %rcx
addq %rax, (%rcx)
jae 0x6c83
addq $0x1, 0x8(%rcx)
leaq 0x8(%rcx), %rcx
jb 0x6c78
jmp 0x6cc6
movq %r15, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbp, %rcx
callq 0x1bca0
movq %r13, %rdi
movq %r13, %rsi
movq 0x8(%rsp), %rdx
movq %rbp, %rcx
movq %rax, %r8
callq 0x1bc80
addq 0x60(%rsp), %rax
movq 0x28(%rsp), %rcx
subq %rax, (%rcx)
jae 0x6cc6
subq $0x1, 0x8(%rcx)
leaq 0x8(%rcx), %rcx
jb 0x6cbb
movq 0x68(%rsp), %rdx
movq %r14, %rdi
movq 0x40(%rsp), %rsi
movq %rbp, %rcx
callq 0x1d348
movq 0x20(%rsp), %rax
cmpq %rax, %r12
jle 0x6cff
movq 0x50(%rsp), %rbx
movq %rbx, %rdi
movq 0x70(%rsp), %rsi
movq %r12, %rdx
movq 0x18(%rsp), %rcx
movq %rax, %r8
jmp 0x6d17
movq 0x50(%rsp), %rbx
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
movq %rax, %rdx
movq 0x70(%rsp), %rcx
movq %r12, %r8
callq 0x1c838
movq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r13, %rsi
movq %rbx, %rdx
movq %rbp, %rcx
callq 0x1bca0
movq %rax, %r8
movq 0x38(%rsp), %rax
movq 0x10(%rsp), %r15
movq (%r15,%rax,8), %rax
movq %rax, (%rsp)
movq 0x30(%rsp), %rdi
movq %rdi, %rsi
movq %r14, %rdx
movq %rbp, %rcx
movq %r8, 0x18(%rsp)
callq 0x1bc80
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
movq %r13, %rdx
movq %rbp, %rcx
movq %rax, %r8
callq 0x1bc80
movq %rax, 0x28(%rsp)
testq %rbp, %rbp
je 0x6dc8
movq %r13, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %rbp, %rcx
callq 0x1ba80
testq %rax, %rax
je 0x6dc8
pushq $0x1
popq %r13
movq 0x30(%rsp), %rax
movq %rbp, %rcx
movq 0x20(%rsp), %rdx
movq 0x80(%rsp), %rsi
movq (%rsp), %rbx
cmpq %rsi, %rcx
jge 0x6dd4
incq %rcx
incq (%rax)
leaq 0x8(%rax), %rax
je 0x6db2
xorl %r13d, %r13d
jmp 0x6dd4
xorl %r13d, %r13d
movq 0x20(%rsp), %rdx
movq (%rsp), %rbx
addq %rdx, %r12
cmpq %rbp, %r12
jle 0x6e7c
addq 0x18(%rsp), %rbx
movq %rbp, %r15
shlq $0x5, %r15
addq %r14, %r15
subq %rbp, %r12
je 0x6e48
movq 0x30(%rsp), %rdi
movq %rdi, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x1bca0
testq %rax, %rax
je 0x6e48
movq 0x58(%rsp), %rax
addq 0x78(%rsp), %rax
shlq $0x3, %rax
movq 0x48(%rsp), %rcx
shlq $0x4, %rcx
subq %rcx, %rax
leaq (%rax,%r14), %rcx
addq $-0x10, %rcx
pushq $0x1
popq %rax
movq 0x38(%rsp), %rdx
cmpq %rdx, %r12
jge 0x6e4a
incq %r12
subq $0x1, (%rcx)
leaq 0x8(%rcx), %rcx
jb 0x6e36
xorl %eax, %eax
addq %r13, %rbx
addq 0x28(%rsp), %rax
subq %rax, %rbx
js 0x6e69
addq %rbx, (%r15)
jae 0x6e67
addq $0x1, 0x8(%r15)
leaq 0x8(%r15), %r15
jb 0x6e5c
jmp 0x6e7c
negq %rbx
subq %rbx, (%r15)
jae 0x6e7c
subq $0x1, 0x8(%r15)
leaq 0x8(%r15), %r15
jb 0x6e71
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq