// File: /workspace/github_cpp_makefile_star2_O1/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 %r9, 0x20(%rsp)
movq %r8, %r15
movq %rcx, %rbx
movq %rdx, %r12
movq %rdi, %r14
leaq (%rdx,%rdx), %rax
leaq (%r8,%r8,2), %rcx
cmpq %rcx, %rax
jge 0x66fe
leaq -0x1(%r15), %rdi
sarq %rdi
jmp 0x670e
leaq -0x1(%r12), %rax
pushq $0x3
popq %rcx
xorl %edx, %edx
divq %rcx
movq %rax, %rdi
leaq 0x1(%rdi), %rbp
leaq 0x2(,%rdi,2), %rcx
movq %rbp, %rdx
shlq $0x4, %rdx
addq %rsi, %rdx
movq %r12, 0x78(%rsp)
movq %rcx, 0x40(%rsp)
subq %rcx, %r12
movq %rdi, 0x48(%rsp)
movq %rdx, 0x70(%rsp)
je 0x677d
movq %r14, %rdi
movq %r12, %rcx
movq %rsi, %r13
callq 0x1bfa0
movq %r13, %rsi
movq 0x48(%rsp), %rdi
movq %r12, %rcx
testq %rax, %rax
je 0x677f
pushq $0x1
popq %r13
movq %r12, %rax
cmpq %rdi, %rax
jg 0x67a3
movq (%rsi,%rax,8), %rdx
leaq 0x1(%rax), %rcx
incq %rdx
movq %rdx, (%r14,%rax,8)
movq %rcx, %rax
je 0x6762
jmp 0x677f
xorl %ecx, %ecx
xorl %r13d, %r13d
movb $0x1, %al
cmpq %rsi, %r14
je 0x67a5
cmpq %rdi, %rcx
jg 0x67a5
xorl %r13d, %r13d
movq (%rsi,%rcx,8), %rdx
movq %rdx, (%r14,%rcx,8)
incq %rcx
cmpq %rcx, %rbp
jne 0x6791
jmp 0x67a5
xorl %eax, %eax
movq %r15, 0x60(%rsp)
subq %rbp, %r15
movq %r15, 0x38(%rsp)
leaq (%rsi,%rbp,8), %r15
testb %al, %al
movq %rsi, 0x58(%rsp)
je 0x67ee
shlq $0x4, %rdi
leaq (%rdi,%rsi), %rax
addq $0x8, %rax
movq %rbp, %rcx
testq %rcx, %rcx
jle 0x67ee
leaq -0x1(%rcx), %rdx
movq (%rax), %rdi
addq $-0x8, %rax
cmpq %rdi, -0x8(%r14,%rcx,8)
movq %rdx, %rcx
je 0x67ce
jbe 0x6a97
movq 0x40(%rsp), %rax
leaq (%r14,%rax,8), %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbp, %rcx
callq 0x1c1c0
cmpq %rax, %r13
sete 0x50(%rsp)
movl $0x0, 0x30(%rsp)
movq %r14, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbp, %rcx
callq 0x1bfa0
addq %r13, %rax
movq %rax, 0x8(%rsp)
movq %rbp, %r13
leaq (%r14,%rbp,8), %rdx
leaq (%rbx,%rbp,8), %rax
movq 0x38(%rsp), %rcx
subq %rcx, %r13
movq %rdx, 0x10(%rsp)
movq %rax, 0x18(%rsp)
jne 0x68bd
movq %rdx, %rdi
movq %rbx, %rsi
movq %rax, %rdx
movq %rbp, %rcx
callq 0x1bfa0
movq 0x48(%rsp), %rcx
shlq $0x4, %rcx
leaq (%rcx,%rbx), %rdi
addq $0x8, %rdi
movq %rbp, %rcx
movq 0x20(%rsp), %r15
movq 0x8(%rsp), %r13
movq %rax, 0x28(%rsp)
testq %rcx, %rcx
jle 0x68a1
leaq -0x1(%rcx), %rdx
movq (%rdi), %rsi
addq $-0x8, %rdi
cmpq %rsi, -0x8(%rbx,%rcx,8)
movq %rdx, %rcx
je 0x6881
jbe 0x6abf
imulq $0x18, %rbp, %rdi
addq %r14, %rdi
movq %rbx, %rsi
movq 0x18(%rsp), %rdx
movq %rbp, %rcx
callq 0x1c1c0
jmp 0x6adb
testq %rcx, %rcx
movq 0x60(%rsp), %r15
je 0x6915
movq %rdx, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x1bfa0
movq 0x10(%rsp), %rdx
movq 0x38(%rsp), %rcx
movq %rcx, %rsi
testq %rax, %rax
movq 0x48(%rsp), %r8
je 0x691c
leaq (%r14,%r15,8), %rax
pushq $0x1
popq %r9
movq %rcx, %rsi
cmpq %r8, %rsi
jg 0x6eb5
movq (%rbx,%rsi,8), %rdi
incq %rsi
incq %rdi
movq %rdi, (%rax)
leaq 0x8(%rax), %rax
je 0x68f7
jmp 0x691c
xorl %esi, %esi
movq 0x48(%rsp), %r8
cmpq %rbx, %rdx
setne %al
cmpq %r8, %rsi
setle %dil
andb %al, %dil
cmpb $0x1, %dil
jne 0x6942
movq (%rbx,%rsi,8), %rax
movq %rax, (%rdx,%rsi,8)
incq %rsi
cmpq %rsi, %rbp
jne 0x6932
movq $0x0, 0x28(%rsp)
leaq (%r8,%r8), %rax
notq %rax
addq %r15, %rax
leaq (%rbx,%r8,8), %r9
xorl %r10d, %r10d
movq (%r9,%r10,8), %rsi
testq %rsi, %rsi
jne 0x6971
leaq -0x1(%r10), %rdi
cmpq %r10, %rax
movq %rdi, %r10
jne 0x695c
testq %rsi, %rsi
je 0x69ef
imulq $0x18, %rbp, %r15
addq %r14, %r15
testq %rcx, %rcx
je 0x6a63
movq %r15, %rdi
movq %rbx, %rsi
movq 0x18(%rsp), %rdx
callq 0x1c1c0
movq 0x10(%rsp), %rdx
movq 0x38(%rsp), %rsi
movq 0x48(%rsp), %r8
movq %rsi, %rcx
testq %rax, %rax
movq 0x8(%rsp), %r13
je 0x6a6a
movq %r8, %rax
shlq $0x4, %rax
movq 0x60(%rsp), %rcx
leaq (%rax,%rcx,8), %rax
addq %r14, %rax
addq $0x10, %rax
movq %rsi, %rcx
cmpq %r8, %rcx
jg 0x6a90
movq (%rbx,%rcx,8), %rsi
incq %rcx
subq $0x1, %rsi
movq %rsi, (%rax)
leaq 0x8(%rax), %rax
jb 0x69d0
jmp 0x6a6a
leaq -0x1(%r15), %rax
movq %rcx, %rdi
testq %rdi, %rdi
jle 0x6976
leaq -0x1(%rdi), %r9
movq (%rbx,%rax,8), %rsi
decq %rax
cmpq %rsi, -0x8(%rbx,%rdi,8)
movq %r9, %rdi
je 0x69f6
ja 0x6976
imulq $0x18, %rbp, %r15
addq %r14, %r15
movq %r15, %rdi
movq 0x18(%rsp), %rsi
movq %rbx, %rdx
callq 0x1c1c0
testq %r13, %r13
je 0x6a4d
movq 0x38(%rsp), %rax
leaq (%r15,%rax,8), %rdi
shlq $0x3, %r13
xorl %esi, %esi
movq %r13, %rdx
callq 0x6170
xorl $0x1, 0x30(%rsp)
movq 0x20(%rsp), %r15
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %r13
jmp 0x6ae0
xorl %ecx, %ecx
movq 0x8(%rsp), %r13
cmpq %rbx, %r15
setne %al
cmpq %r8, %rcx
setle %sil
andb %al, %sil
cmpb $0x1, %sil
jne 0x6a90
movq (%rbx,%rcx,8), %rax
movq %rax, (%r15,%rcx,8)
incq %rcx
cmpq %rcx, %rbp
jne 0x6a80
movq 0x20(%rsp), %r15
jmp 0x6ae0
movq 0x40(%rsp), %rax
leaq (%r14,%rax,8), %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbp, %rcx
callq 0x1c1c0
movb $0x1, 0x50(%rsp)
pushq $0x1
popq %rax
movl %eax, 0x30(%rsp)
jmp 0x6815
imulq $0x18, %rbp, %rdi
addq %r14, %rdi
movq 0x18(%rsp), %rsi
movq %rbx, %rdx
movq %rbp, %rcx
callq 0x1c1c0
xorl $0x1, 0x30(%rsp)
movq 0x10(%rsp), %rdx
movq %r15, %rdi
movq %r14, %rsi
movq %rbp, %rcx
callq 0x1d864
cmpq $0x2, %r13
je 0x6b1b
cmpq $0x1, %r13
jne 0x6b3a
leaq (%r15,%rbp,8), %rdi
movq %rdi, %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rcx
callq 0x1bfa0
movq %rax, %r15
movq 0x28(%rsp), %rcx
addq %rcx, %r15
jmp 0x6b42
leaq (%r15,%rbp,8), %rdi
movq %rdi, %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rcx
callq 0x2f5c0
movq 0x28(%rsp), %rcx
leaq (%rax,%rcx,2), %r15
jmp 0x6b42
xorl %r15d, %r15d
movq 0x28(%rsp), %rcx
testq %rcx, %rcx
je 0x6b6a
movq 0x20(%rsp), %r13
leaq (,%rbp,8), %rdi
addq %r13, %rdi
movq %rdi, %rsi
movq %r14, %rdx
movq %rbp, %rcx
callq 0x1bfa0
addq %rax, %r15
jmp 0x6b6f
movq 0x20(%rsp), %r13
movq 0x40(%rsp), %rax
movq %r15, (%r13,%rax,8)
leaq (%r14,%rax,8), %r13
leaq (,%rbp,2), %rax
addq %rbp, %rax
movq %rax, 0x80(%rsp)
leaq (%r14,%rax,8), %r15
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %rbp, %rcx
callq 0x1d864
cmpb $0x0, 0x50(%rsp)
je 0x6bb0
xorl %eax, %eax
jmp 0x6bc3
movq 0x10(%rsp), %rdi
movq %rdi, %rsi
movq %r15, %rdx
movq %rbp, %rcx
callq 0x1bfa0
movq %r15, 0x50(%rsp)
movq %rax, (%r13)
movq 0x40(%rsp), %rcx
orq $0x1, %rcx
cmpl $0x0, 0x30(%rsp)
je 0x6bf1
movq 0x20(%rsp), %r15
movq %r15, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2fa30
jmp 0x6c04
movq 0x20(%rsp), %r15
movq %r15, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2f8f0
movq (%r13), %rax
movq %rax, 0x68(%rsp)
movq %r13, %rdi
leaq (%r15,%rbp,8), %r13
movq %rdi, 0x8(%rsp)
movq %r15, %rsi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x1bfa0
movq 0x40(%rsp), %rcx
addq (%r15,%rcx,8), %rax
movq %r13, %rcx
addq %rax, (%rcx)
jae 0x6c43
addq $0x1, 0x8(%rcx)
leaq 0x8(%rcx), %rcx
jb 0x6c38
cmpl $0x0, 0x30(%rsp)
je 0x6c90
movq %r15, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbp, %rcx
callq 0x1bfa0
movq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r15, %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rcx
movq %rax, %r8
callq 0x1bf80
addq 0x68(%rsp), %rax
movq %r13, %rcx
addq %rax, (%rcx)
jae 0x6c8e
addq $0x1, 0x8(%rcx)
leaq 0x8(%rcx), %rcx
jb 0x6c83
jmp 0x6cd4
movq %r15, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbp, %rcx
callq 0x1c1c0
movq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r15, %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rcx
movq %rax, %r8
callq 0x1c1a0
addq 0x68(%rsp), %rax
movq %r13, %rcx
subq %rax, (%rcx)
jae 0x6cd4
subq $0x1, 0x8(%rcx)
leaq 0x8(%rcx), %rcx
jb 0x6cc9
movq %r14, %rdi
movq 0x58(%rsp), %rsi
movq %rbx, %rdx
movq %rbp, %rcx
callq 0x1d864
movq 0x38(%rsp), %r8
cmpq %r8, %r12
movq 0x50(%rsp), %rbx
movq %r13, 0x28(%rsp)
movq %rbx, %rdi
jle 0x6d0d
movq 0x70(%rsp), %rsi
movq %r12, %rdx
movq 0x18(%rsp), %rcx
jmp 0x6d1d
movq 0x18(%rsp), %rsi
movq %r8, %rdx
movq 0x70(%rsp), %rcx
movq %r12, %r8
callq 0x1cd58
movq 0x10(%rsp), %r13
movq %r13, %rdi
movq %r13, %rsi
movq %rbx, %rdx
movq %rbp, %rcx
callq 0x1c1c0
movq %rax, %r8
movq 0x40(%rsp), %rax
movq 0x20(%rsp), %r15
movq (%r15,%rax,8), %rax
movq %rax, 0x30(%rsp)
movq 0x8(%rsp), %rdi
movq %rdi, %rsi
movq %r14, %rdx
movq %rbp, %rcx
movq %r8, 0x58(%rsp)
callq 0x1c1a0
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
movq %r13, %rdx
movq %rbp, %rcx
movq %rax, %r8
callq 0x1c1a0
movq %rax, 0x18(%rsp)
testq %rbp, %rbp
je 0x6dd3
movq %r13, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %rbp, %rcx
callq 0x1bfa0
testq %rax, %rax
movq 0x30(%rsp), %rbx
je 0x6de7
pushq $0x1
popq %r13
movq 0x8(%rsp), %rdi
movq %rdi, %rax
movq %rbp, %rcx
movq 0x38(%rsp), %rdx
movq 0x80(%rsp), %rsi
cmpq %rsi, %rcx
jge 0x6df4
incq %rcx
incq (%rax)
leaq 0x8(%rax), %rax
je 0x6dbd
xorl %r13d, %r13d
jmp 0x6df4
xorl %r13d, %r13d
movq 0x38(%rsp), %rdx
movq 0x8(%rsp), %rdi
movq 0x30(%rsp), %rbx
jmp 0x6df4
xorl %r13d, %r13d
movq 0x38(%rsp), %rdx
movq 0x8(%rsp), %rdi
addq %rdx, %r12
cmpq %rbp, %r12
jle 0x6ea3
addq 0x58(%rsp), %rbx
movq %rbp, %r15
shlq $0x5, %r15
addq %r14, %r15
subq %rbp, %r12
je 0x6e6c
movq %rdi, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x1c1c0
testq %rax, %rax
je 0x6e6c
movq 0x60(%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 0x40(%rsp), %rdx
movq 0x18(%rsp), %rsi
cmpq %rdx, %r12
jge 0x6e73
incq %r12
subq $0x1, (%rcx)
leaq 0x8(%rcx), %rcx
jb 0x6e56
xorl %eax, %eax
jmp 0x6e73
xorl %eax, %eax
movq 0x18(%rsp), %rsi
addq %r13, %rbx
addq %rsi, %rax
subq %rax, %rbx
js 0x6e90
addq %rbx, (%r15)
jae 0x6e8e
addq $0x1, 0x8(%r15)
leaq 0x8(%r15), %r15
jb 0x6e83
jmp 0x6ea3
negq %rbx
subq %rbx, (%r15)
jae 0x6ea3
subq $0x1, 0x8(%r15)
leaq 0x8(%r15), %r15
jb 0x6e98
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r9, 0x28(%rsp)
jmp 0x694b