// File: /workspace/github_cpp_makefile_star2_O1/marxn[P]pupp/3rdparty/gmp/mpn/toom6h_mul.c
// Function: _gmpn_toom6h_mul
void
mpn_toom6h_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 p, q, half;
  int sign;

  /***************************** decomposition *******************************/

  ASSERT (an >= bn);
  /* Can not handle too much unbalancement */
  ASSERT (bn >= 42);
  /* Can not handle too much unbalancement */
  ASSERT ((an*3 <  bn * 8) || (bn >= 46 && an * 6 <  bn * 17));

  /* Limit num/den is a rational number between
     (12/11)^(log(4)/log(2*4-1)) and (12/11)^(log(6)/log(2*6-1))             */
#define LIMIT_numerator (18)
#define LIMIT_denominat (17)

  if (LIKELY (an * LIMIT_denominat < LIMIT_numerator * bn)) /* is 6*... < 6*... */
    {
      n = 1 + (an - 1) / (size_t) 6;
      p = q = 5;
      half = 0;

      s = an - 5 * n;
      t = bn - 5 * n;
    }
  else {
    if (an * 5 * LIMIT_numerator < LIMIT_denominat * 7 * bn)
      { p = 7; q = 6; }
    else if (an * 5 * LIMIT_denominat < LIMIT_numerator * 7 * bn)
      { p = 7; q = 5; }
    else if (an * LIMIT_numerator < LIMIT_denominat * 2 * bn)  /* is 4*... < 8*... */
      { p = 8; q = 5; }
    else if (an * LIMIT_denominat < LIMIT_numerator * 2 * bn)  /* is 4*... < 8*... */
      { p = 8; q = 4; }
    else
      { p = 9; q = 4; }

    half = (p ^ q) & 1;
    n = 1 + (q * an >= p * bn ? (an - 1) / (size_t) p : (bn - 1) / (size_t) q);
    p--; q--;

    s = an - p * n;
    t = bn - q * n;

    /* With LIMIT = 16/15, the following recover is needed only if bn<=73*/
    if (half) { /* Recover from badly chosen splitting */
      if (UNLIKELY (s<1)) {p--; s+=n; half=0;}
      else if (UNLIKELY (t<1)) {q--; t+=n; half=0;}
    }
  }
#undef LIMIT_numerator
#undef LIMIT_denominat

  ASSERT (0 < s && s <= n);
  ASSERT (0 < t && t <= n);
  ASSERT (half || s + t > 3);
  ASSERT (n > 2);

#define   r4    (pp + 3 * n)			/* 3n+1 */
#define   r2    (pp + 7 * n)			/* 3n+1 */
#define   r0    (pp +11 * n)			/* s+t <= 2*n */
#define   r5    (scratch)			/* 3n+1 */
#define   r3    (scratch + 3 * n + 1)		/* 3n+1 */
#define   r1    (scratch + 6 * n + 2)		/* 3n+1 */
#define   v0    (pp + 7 * n)			/* n+1 */
#define   v1    (pp + 8 * n+1)			/* n+1 */
#define   v2    (pp + 9 * n+2)			/* n+1 */
#define   v3    (scratch + 9 * n + 3)		/* n+1 */
#define   wsi   (scratch + 9 * n + 3)		/* 3n+1 */
#define   wse   (scratch +10 * n + 4)		/* 2n+1 */

  /* Alloc also 3n+1 limbs for wsi... toom_interpolate_12pts may
     need all of them  */
/*   if (scratch == NULL) */
/*     scratch = TMP_SALLOC_LIMBS(mpn_toom6_sqr_itch(n * 6)); */
  ASSERT (12 * n + 6 <= mpn_toom6h_mul_itch(an,bn));
  ASSERT (12 * n + 6 <= mpn_toom6_sqr_itch(n * 6));

  /********************** evaluation and recursive calls *********************/
  /* $\pm1/2$ */
  sign = mpn_toom_eval_pm2rexp (v2, v0, p, ap, n, s, 1, pp) ^
	 mpn_toom_eval_pm2rexp (v3, v1, q, bp, n, t, 1, pp);
  /* A(-1/2)*B(-1/2)*2^. */ /* A(+1/2)*B(+1/2)*2^. */
  TOOM6H_MUL_N_REC(pp, v0, v1, 2, r5, v2, v3, n + 1, wse);
  mpn_toom_couple_handling (r5, 2 * n + 1, pp, sign, n, 1+half , half);

  /* $\pm1$ */
  sign = mpn_toom_eval_pm1 (v2, v0, p, ap, n, s,    pp);
  if (UNLIKELY (q == 3))
    sign ^= mpn_toom_eval_dgr3_pm1 (v3, v1, bp, n, t,    pp);
  else
    sign ^= mpn_toom_eval_pm1 (v3, v1, q, bp, n, t,    pp);
  /* A(-1)*B(-1) */ /* A(1)*B(1) */
  TOOM6H_MUL_N_REC(pp, v0, v1, 2, r3, v2, v3, n + 1, wse);
  mpn_toom_couple_handling (r3, 2 * n + 1, pp, sign, n, 0, 0);

  /* $\pm4$ */
  sign = mpn_toom_eval_pm2exp (v2, v0, p, ap, n, s, 2, pp) ^
	 mpn_toom_eval_pm2exp (v3, v1, q, bp, n, t, 2, pp);
  /* A(-4)*B(-4) */
  TOOM6H_MUL_N_REC(pp, v0, v1, 2, r1, v2, v3, n + 1, wse); /* A(+4)*B(+4) */
  mpn_toom_couple_handling (r1, 2 * n + 1, pp, sign, n, 2, 4);

  /* $\pm1/4$ */
  sign = mpn_toom_eval_pm2rexp (v2, v0, p, ap, n, s, 2, pp) ^
	 mpn_toom_eval_pm2rexp (v3, v1, q, bp, n, t, 2, pp);
  /* A(-1/4)*B(-1/4)*4^. */ /* A(+1/4)*B(+1/4)*4^. */
  TOOM6H_MUL_N_REC(pp, v0, v1, 2, r4, v2, v3, n + 1, wse);
  mpn_toom_couple_handling (r4, 2 * n + 1, pp, sign, n, 2*(1+half), 2*(half));

  /* $\pm2$ */
  sign = mpn_toom_eval_pm2 (v2, v0, p, ap, n, s, pp) ^
	 mpn_toom_eval_pm2 (v3, v1, q, bp, n, t, pp);
  /* A(-2)*B(-2) */ /* A(+2)*B(+2) */
  TOOM6H_MUL_N_REC(pp, v0, v1, 2, r2, v2, v3, n + 1, wse);
  mpn_toom_couple_handling (r2, 2 * n + 1, pp, sign, n, 1, 2);

#undef v0
#undef v1
#undef v2
#undef v3
#undef wse

  /* A(0)*B(0) */
  TOOM6H_MUL_N_REC(pp, ap, bp, 0, pp, ap, bp, n, wsi);

  /* Infinity */
  if (UNLIKELY (half != 0)) {
    if (s > t) {
      TOOM6H_MUL_REC(r0, ap + p * n, s, bp + q * n, t, wsi);
    } else {
      TOOM6H_MUL_REC(r0, bp + q * n, t, ap + p * n, s, wsi);
    };
  };

  mpn_toom_interpolate_12pts (pp, r1, r3, r5, n, s+t, half, wsi);

#undef r0
#undef r1
#undef r2
#undef r3
#undef r4
#undef r5
#undef wsi
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %r9, 0x20(%rsp)
movq %rcx, 0x40(%rsp)
movq %rdx, %r14
movq %rsi, 0x50(%rsp)
movq %rdi, %r15
movq %rdx, %rax
shlq $0x4, %rax
addq %rdx, %rax
leaq (%r8,%r8), %rdx
leaq (%rdx,%rdx,8), %rcx
cmpq %rcx, %rax
jge 0x2466d
leaq -0x1(%r14), %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
mulq %rcx
movq %rdx, %r13
shrq $0x2, %r13
incq %r13
leaq (,%r13,4), %rax
addq %r13, %rax
subq %rax, %r14
subq %rax, %r8
movq %r8, 0x58(%rsp)
movq $0x0, 0x88(%rsp)
movb $0x1, %al
movq %rax, 0xa0(%rsp)
movl $0x5, %edx
movl $0x5, %eax
movq %rax, 0x78(%rsp)
leaq (,%r13,8), %rax
leaq (%rax,%rax,8), %r12
leaq (%r15,%r12), %rax
addq $0x10, %rax
movq %rax, 0x18(%rsp)
imulq $0x38, %r13, %rbx
addq %r15, %rbx
movq %r15, 0x8(%rsp)
movl $0x1, %ecx
movl %ecx, (%rsp)
movq %rax, %rdi
movq %rbx, %rsi
movq %rdx, 0x98(%rsp)
movq 0x50(%rsp), %rcx
movq %r13, %r8
movq %r14, 0x90(%rsp)
movq %r14, %r9
callq 0x281b8
movl %eax, %r14d
movq 0x20(%rsp), %rax
addq %rax, %r12
addq $0x18, %r12
movq %r13, %rax
shlq $0x6, %rax
leaq (%r15,%rax), %rbp
addq $0x8, %rbp
movq %r15, 0x8(%rsp)
movl $0x1, %eax
movl %eax, (%rsp)
movq %r12, %rdi
movq %rbp, %rsi
movq 0x78(%rsp), %rdx
movq 0x40(%rsp), %rcx
movq %r13, %r8
movq 0x58(%rsp), %r9
callq 0x281b8
xorl %r14d, %eax
movl %eax, 0x48(%rsp)
leaq 0x1(%r13), %r14
cmpq $0x4f, %r13
movq %r12, 0x10(%rsp)
movq %rbx, 0x30(%rsp)
movq %r14, 0x38(%rsp)
movq %rbp, 0x28(%rsp)
jle 0x23b89
leaq (,%r13,4), %rax
addq %r13, %rax
shlq $0x4, %rax
cmpq $0xf0, %r13
jle 0x23bf3
movq 0x20(%rsp), %r12
addq %r12, %rax
addq $0x20, %rax
cmpq $0x157, %r13            # imm = 0x157
movq 0x30(%rsp), %r14
movq 0x18(%rsp), %rbp
movq 0x28(%rsp), %rcx
movq %rax, 0x70(%rsp)
movq %r15, %rdi
movq %r14, %rsi
jle 0x23c48
movq 0x38(%rsp), %rbx
movq %rbx, %rdx
movq %rbx, %r8
movq %rax, %r9
callq 0x239ac
movq %r12, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
movq 0x10(%rsp), %rcx
movq %rbx, %r8
movq 0x70(%rsp), %r9
callq 0x239ac
jmp 0x23c76
leaq (,%r13,4), %rax
addq %r13, %rax
shlq $0x4, %rax
movq 0x20(%rsp), %rcx
leaq (%rcx,%rax), %r9
addq $0x20, %r9
movq %r9, 0x70(%rsp)
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %rbp, %rcx
movq %r14, %r8
callq 0x20908
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rbp
movq %rbp, %rsi
movq %r14, %rdx
movq 0x10(%rsp), %rcx
movq %r14, %r8
movq 0x70(%rsp), %r9
movq 0x20(%rsp), %r14
callq 0x20908
movq %rbx, %rax
movq %r14, %rbx
movq %rax, %r14
jmp 0x23c79
movq 0x20(%rsp), %rcx
leaq (%rcx,%rax), %r12
addq $0x20, %r12
movq %r15, %rdi
movq 0x30(%rsp), %rbx
movq %rbx, %rsi
movq %r14, %rdx
movq 0x28(%rsp), %rcx
movq %r14, %r8
movq %r12, %r9
callq 0x2169c
movq 0x20(%rsp), %rdi
movq %r14, %rdx
movq %rbx, %r14
movq 0x18(%rsp), %rbp
movq %rbp, %rsi
movq 0x10(%rsp), %rcx
movq %rdx, %r8
movq %r12, %r9
movq 0x20(%rsp), %rbx
callq 0x2169c
jmp 0x23c79
movq 0x38(%rsp), %rbx
movq %rbx, %rdx
movq %rbx, %r8
movq %rax, %r9
callq 0x2347c
movq %r12, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
movq 0x10(%rsp), %rcx
movq %rbx, %r8
movq 0x70(%rsp), %r9
callq 0x2347c
movq %r12, %rbx
leaq 0x1(,%r13,2), %rsi
movq 0x88(%rsp), %rax
leal 0x1(%rax), %r9d
movl %eax, (%rsp)
movq %rbx, %rdi
movq %rsi, 0x70(%rsp)
movq %r15, %rdx
movl 0x48(%rsp), %ecx
movq %r13, %r8
movl %r9d, 0xac(%rsp)
callq 0x26da4
movq %r15, (%rsp)
movq %rbp, %rdi
movq %r14, %rsi
movq 0x98(%rsp), %rdx
movq 0x50(%rsp), %rcx
movq %r13, %r8
movq 0x90(%rsp), %r9
callq 0x27b38
movl %eax, %r12d
movq 0x78(%rsp), %rdx
cmpl $0x3, %edx
je 0x24750
movq %r15, (%rsp)
movq 0x10(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x40(%rsp), %rcx
movq %r13, %r8
movq 0x58(%rsp), %r9
callq 0x27b38
movl %eax, %ebp
xorl %r12d, %ebp
leaq (,%r13,2), %rax
addq %r13, %rax
cmpq $0x4f, %r13
movq %rax, 0x48(%rsp)
jle 0x23dba
movq 0x20(%rsp), %r12
leaq (%r12,%rax,8), %rdx
addq $0x8, %rdx
cmpq $0xf0, %r13
movq 0x90(%rsp), %rbx
movq %rdx, 0x80(%rsp)
leaq (%r13,%r13,4), %rax
jle 0x23e38
shlq $0x4, %rax
addq %r12, %rax
addq $0x20, %rax
cmpq $0x157, %r13            # imm = 0x157
movq %rax, 0x60(%rsp)
movq %r15, %rdi
movq %r14, %rsi
movq %r15, %r14
jle 0x23e91
movq 0x38(%rsp), %r15
movq %r15, %rdx
movq 0x28(%rsp), %rcx
movq %r15, %r8
movq %rax, %r9
callq 0x239ac
movq 0x80(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %r15, %rdx
movq 0x10(%rsp), %rcx
movq %r15, %r8
movq 0x60(%rsp), %r9
callq 0x239ac
jmp 0x23ecb
movl %ebp, 0x80(%rsp)
movq %rax, %rbp
leaq (,%r13,4), %rax
addq %r13, %rax
shlq $0x4, %rax
movq 0x20(%rsp), %rbx
leaq (%rbx,%rax), %r12
addq $0x20, %r12
movq %r15, %rdi
movq %r14, %rsi
movq %r15, %r14
movq 0x38(%rsp), %r15
movq %r15, %rdx
movq 0x28(%rsp), %rcx
movq %r15, %r8
movq %r12, %r9
callq 0x20908
leaq (%rbx,%rbp,8), %rdi
addq $0x8, %rdi
movl 0x80(%rsp), %ebp
movq 0x18(%rsp), %rsi
movq %r15, %rdx
movq 0x10(%rsp), %rcx
movq %r15, %r8
movq %r12, %r9
movq %rbx, %r12
callq 0x20908
movq 0x90(%rsp), %rbx
jmp 0x23ecb
shlq $0x4, %rax
movq 0x20(%rsp), %rcx
leaq (%rcx,%rax), %r12
addq $0x20, %r12
movq %r15, %rdi
movq %r14, %rsi
movq %r15, %r14
movq 0x38(%rsp), %r15
movq %r15, %rdx
movq 0x28(%rsp), %rcx
movq %r15, %r8
movq %r12, %r9
callq 0x2169c
movq 0x80(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %r15, %rdx
movq 0x10(%rsp), %rcx
movq %r15, %r8
movq %r12, %r9
movq 0x20(%rsp), %r12
callq 0x2169c
jmp 0x23ecb
movq 0x38(%rsp), %r15
movq %r15, %rdx
movq 0x28(%rsp), %rcx
movq %r15, %r8
movq %rax, %r9
callq 0x2347c
movq 0x80(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %r15, %rdx
movq 0x10(%rsp), %rcx
movq %r15, %r8
movq 0x60(%rsp), %r9
callq 0x2347c
movq 0x48(%rsp), %rax
leaq (%r12,%rax,8), %rdi
addq $0x8, %rdi
movl $0x0, (%rsp)
movq %rdi, 0x80(%rsp)
movq 0x70(%rsp), %rsi
movq %r14, %rdx
movl %ebp, %ecx
movq %r13, %r8
xorl %r9d, %r9d
callq 0x26da4
movq %r14, 0x8(%rsp)
movl $0x2, %ebp
movl %ebp, (%rsp)
movq 0x18(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x98(%rsp), %rdx
movq 0x50(%rsp), %rcx
movq %r13, %r8
movq %rbx, %r9
callq 0x27fb4
movq %r12, %rbx
movl %eax, %r12d
movq %r14, 0x8(%rsp)
movl %ebp, (%rsp)
movq 0x10(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x78(%rsp), %rdx
movq 0x40(%rsp), %rcx
movq %r13, %r8
movq 0x58(%rsp), %r9
callq 0x27fb4
movl %eax, %ebp
xorl %r12d, %ebp
cmpq $0x4f, %r13
movq %r14, %r15
jle 0x24009
movq 0x30(%rsp), %rdx
movq 0x48(%rsp), %rax
shlq $0x4, %rax
leaq (%rbx,%rax), %rsi
addq $0x10, %rsi
cmpq $0xf0, %r13
movq %rsi, 0x60(%rsp)
jle 0x2407e
movq %rbx, %r12
leaq (,%r13,4), %rax
addq %r13, %rax
shlq $0x4, %rax
addq %rbx, %rax
addq $0x20, %rax
cmpq $0x157, %r13            # imm = 0x157
movq 0x18(%rsp), %rbx
movq 0x38(%rsp), %r14
movq %rax, 0x68(%rsp)
movq %r15, %rdi
movq %rdx, %rsi
movq %r14, %rdx
jle 0x240df
movq 0x28(%rsp), %rcx
movq %r14, %r8
movq %rax, %r9
callq 0x239ac
movq 0x60(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r14, %r8
movq 0x30(%rsp), %r14
movq 0x10(%rsp), %rcx
movq 0x68(%rsp), %r9
callq 0x239ac
jmp 0x24111
leaq (,%r13,4), %rax
addq %r13, %rax
shlq $0x4, %rax
leaq (%rbx,%rax), %r12
addq $0x20, %r12
movq %r15, %rdi
movq 0x30(%rsp), %r14
movq %r14, %rsi
movq %r15, 0x60(%rsp)
movq 0x38(%rsp), %r15
movq %r15, %rdx
movq 0x28(%rsp), %rcx
movq %r15, %r8
movq %r12, %r9
callq 0x20908
movq 0x48(%rsp), %rax
shlq $0x4, %rax
leaq (%rbx,%rax), %rdi
addq $0x10, %rdi
movq 0x18(%rsp), %rsi
movq %r15, %rdx
movq 0x10(%rsp), %rcx
movq %r15, %r8
movq 0x60(%rsp), %r15
movq %r12, %r9
callq 0x20908
movq %rbx, %r12
jmp 0x24111
leaq (,%r13,4), %rax
addq %r13, %rax
shlq $0x4, %rax
movq 0x20(%rsp), %rcx
leaq (%rcx,%rax), %r12
addq $0x20, %r12
movq %r15, %rdi
movq %rdx, %r14
movq %rdx, %rsi
movq 0x38(%rsp), %rbx
movq %rbx, %rdx
movq 0x28(%rsp), %rcx
movq %rbx, %r8
movq %r12, %r9
callq 0x2169c
movq 0x60(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %rbx, %rdx
movq 0x10(%rsp), %rcx
movq %rbx, %r8
movq %r12, %r9
movq 0x20(%rsp), %r12
callq 0x2169c
jmp 0x24111
movq 0x28(%rsp), %rcx
movq %r14, %r8
movq %rax, %r9
callq 0x2347c
movq 0x60(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r14, %r8
movq 0x30(%rsp), %r14
movq 0x10(%rsp), %rcx
movq 0x68(%rsp), %r9
callq 0x2347c
movq 0x48(%rsp), %rax
shlq $0x4, %rax
leaq (%r12,%rax), %rdi
addq $0x10, %rdi
movl $0x4, (%rsp)
movl $0x2, %ebx
movq %rdi, 0x60(%rsp)
movq 0x70(%rsp), %rsi
movq %r15, %rdx
movl %ebp, %ecx
movq %r13, %r8
movl $0x2, %r9d
callq 0x26da4
movq %r15, 0x8(%rsp)
movl %ebx, (%rsp)
movq 0x18(%rsp), %rdi
movq %r14, %rsi
movq 0x98(%rsp), %rdx
movq 0x50(%rsp), %rcx
movq %r13, %r8
movq 0x90(%rsp), %r9
callq 0x281b8
movq %r12, %rbp
movl %eax, %r12d
movq %r15, 0x8(%rsp)
movl %ebx, (%rsp)
movq 0x10(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x78(%rsp), %rdx
movq 0x40(%rsp), %rcx
movq %r13, %r8
movq 0x58(%rsp), %r9
callq 0x281b8
movl %eax, %ebx
xorl %r12d, %ebx
cmpq $0x4f, %r13
jle 0x2424e
movq 0x48(%rsp), %rax
leaq (%r15,%rax,8), %r14
cmpq $0xf0, %r13
jle 0x242bc
movq %r14, 0x68(%rsp)
leaq (,%r13,4), %rax
addq %r13, %rax
shlq $0x4, %rax
movq 0x20(%rsp), %rcx
addq %rcx, %rax
addq $0x20, %rax
cmpq $0x157, %r13            # imm = 0x157
movq 0x10(%rsp), %r14
movq %rax, 0xb0(%rsp)
movq %r15, %rdi
jle 0x24322
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %r12
movq %r12, %rdx
movq 0x28(%rsp), %rbp
movq %rbp, %rcx
movq %r12, %r8
movq %rax, %r9
callq 0x239ac
movq 0x68(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %r12, %rdx
movq %r14, %rcx
movq %r12, %r8
movq 0xb0(%rsp), %r9
callq 0x239ac
jmp 0x24362
leaq (,%r13,4), %rax
addq %r13, %rax
shlq $0x4, %rax
leaq (%rax,%rbp), %r12
addq $0x20, %r12
movq %r15, %rdi
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rbp
movq %rbp, %rdx
movl %ebx, 0x68(%rsp)
movq 0x28(%rsp), %rbx
movq %rbx, %rcx
movq %rbp, %r8
movq %r12, %r9
callq 0x20908
movq 0x48(%rsp), %rax
leaq (%r15,%rax,8), %rdi
movq 0x18(%rsp), %rsi
movq %rbp, %rdx
movq 0x10(%rsp), %r14
movq %r14, %rcx
movq %rbp, %r8
movq %r12, %r9
callq 0x20908
movq %rbx, %rbp
movl 0x68(%rsp), %ebx
jmp 0x24362
leaq (,%r13,4), %rax
addq %r13, %rax
shlq $0x4, %rax
movq 0x20(%rsp), %rcx
leaq (%rcx,%rax), %r9
addq $0x20, %r9
movq %r9, 0x68(%rsp)
movq %r15, %rdi
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rbp
movq %rbp, %rdx
movq 0x28(%rsp), %r12
movq %r12, %rcx
movq %rbp, %r8
callq 0x2169c
movq %r14, %rdi
movq 0x18(%rsp), %rsi
movq %rbp, %rdx
movq 0x10(%rsp), %r14
movq %r14, %rcx
movq %rbp, %r8
movq %r12, %rbp
movq 0x68(%rsp), %r9
callq 0x2169c
jmp 0x24362
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %r12
movq %r12, %rdx
movq 0x28(%rsp), %rbp
movq %rbp, %rcx
movq %r12, %r8
movq %rax, %r9
callq 0x2347c
movq 0x68(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %r12, %rdx
movq %r14, %rcx
movq %r12, %r8
movq 0xb0(%rsp), %r9
callq 0x2347c
movq 0x48(%rsp), %rax
leaq (%r15,%rax,8), %rdi
movl 0xac(%rsp), %r9d
addl %r9d, %r9d
movq 0x88(%rsp), %rax
addl %eax, %eax
movl %eax, (%rsp)
movq 0x70(%rsp), %rsi
movq %r15, %rdx
movl %ebx, %ecx
movq %r13, %r8
callq 0x26da4
movq %r15, (%rsp)
movq 0x18(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x98(%rsp), %rdx
movq 0x50(%rsp), %rcx
movq %r13, %r8
movq 0x90(%rsp), %r9
callq 0x27d20
movl %eax, %r12d
movq %r15, (%rsp)
movq %r14, %rdi
movq %rbp, %rsi
movq 0x78(%rsp), %rdx
movq 0x40(%rsp), %rcx
movq %r13, %r8
movq 0x58(%rsp), %r9
callq 0x27d20
xorl %r12d, %eax
movl %eax, 0x48(%rsp)
cmpq $0x4f, %r13
jle 0x24464
cmpq $0xf0, %r13
movq 0x20(%rsp), %r12
leaq (%r13,%r13,4), %rax
jle 0x244ca
shlq $0x4, %rax
addq %r12, %rax
addq $0x20, %rax
cmpq $0x157, %r13            # imm = 0x157
movq 0x38(%rsp), %r14
movq %r15, %rdi
jle 0x2451e
movq 0x30(%rsp), %rbx
movq %rbx, %rsi
movq %r14, %rdx
movq %rbp, %rcx
movq %r14, %r8
movq %rax, %rbp
movq %rax, %r9
callq 0x239ac
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
movq %r14, %rdx
movq 0x10(%rsp), %rcx
movq %r14, %r8
movq %rbp, %r9
callq 0x239ac
jmp 0x24555
leaq (,%r13,4), %rax
addq %r13, %rax
shlq $0x4, %rax
movq %r15, %rbx
movq 0x20(%rsp), %r15
leaq (%r15,%rax), %r12
addq $0x20, %r12
movq %rbx, %rdi
movq 0x30(%rsp), %r14
movq %r14, %rsi
movq %rbp, %rcx
movq 0x38(%rsp), %rbp
movq %rbp, %rdx
movq %rbp, %r8
movq %r12, %r9
callq 0x20908
movq %r14, %rdi
movq 0x18(%rsp), %rsi
movq %rbp, %rdx
movq 0x10(%rsp), %rcx
movq %rbp, %r8
movq %r12, %r9
movq %r15, %r12
movq %rbx, %r15
callq 0x20908
jmp 0x24555
shlq $0x4, %rax
movq 0x20(%rsp), %rcx
leaq (%rcx,%rax), %r12
addq $0x20, %r12
movq %r15, %rdi
movq 0x30(%rsp), %r14
movq %r14, %rsi
movq 0x38(%rsp), %rbx
movq %rbx, %rdx
movq %rbp, %rcx
movq %rbx, %r8
movq %r12, %r9
callq 0x2169c
movq %r14, %rdi
movq 0x18(%rsp), %rsi
movq %rbx, %rdx
movq 0x10(%rsp), %rcx
movq %rbx, %r8
movq %r12, %r9
movq 0x20(%rsp), %r12
callq 0x2169c
jmp 0x24555
movq 0x30(%rsp), %rbx
movq %rbx, %rsi
movq %r14, %rdx
movq %rbp, %rcx
movq %r14, %r8
movq %rax, %rbp
movq %rax, %r9
callq 0x2347c
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
movq %r14, %rdx
movq 0x10(%rsp), %rcx
movq %r14, %r8
movq %rbp, %r9
callq 0x2347c
movl $0x2, (%rsp)
movq 0x30(%rsp), %rdi
movq 0x70(%rsp), %rsi
movq %r15, %rdx
movl 0x48(%rsp), %ecx
movq %r13, %r8
movl $0x1, %r9d
callq 0x26da4
cmpq $0x50, %r13
movq 0x88(%rsp), %r14
jle 0x245c5
cmpq $0xf1, %r13
movq 0x90(%rsp), %rbx
movq 0x10(%rsp), %rbp
movq %r15, %rdi
jle 0x245ef
cmpq $0x158, %r13            # imm = 0x158
jle 0x24609
movq 0x50(%rsp), %rsi
movq %r13, %rdx
movq 0x40(%rsp), %rcx
movq %r13, %r8
movq %rbp, %r9
callq 0x239ac
jmp 0x24621
movq %r15, %rdi
movq 0x50(%rsp), %rsi
movq %r13, %rdx
movq 0x40(%rsp), %rcx
movq %r13, %r8
movq 0x10(%rsp), %rbp
movq %rbp, %r9
callq 0x20908
movq 0x90(%rsp), %rbx
jmp 0x24621
movq 0x50(%rsp), %rsi
movq %r13, %rdx
movq 0x40(%rsp), %rcx
movq %r13, %r8
movq %rbp, %r9
callq 0x2169c
jmp 0x24621
movq 0x50(%rsp), %rsi
movq %r13, %rdx
movq 0x40(%rsp), %rcx
movq %r13, %r8
movq %rbp, %r9
callq 0x2347c
cmpb $0x0, 0xa0(%rsp)
movq 0x58(%rsp), %r9
je 0x24774
addq %rbx, %r9
movq %rbp, 0x8(%rsp)
movl %r14d, (%rsp)
movq %r15, %rdi
movq 0x60(%rsp), %rsi
movq 0x80(%rsp), %rdx
movq %r12, %rcx
movq %r13, %r8
callq 0x28ecc
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
imulq $0x5a, %r14, %r9
imulq $0x77, %r8, %r10
movl $0x6, %esi
movl $0x7, %ecx
cmpq %r10, %r9
jl 0x246d5
imulq $0x55, %r14, %r9
movq %r8, %r10
shlq $0x7, %r10
subq %rdx, %r10
movl $0x5, %esi
cmpq %r10, %r9
jl 0x246d5
leaq (%r14,%r14), %rcx
leaq (%rcx,%rcx,8), %rdx
movq %r8, %rcx
shlq $0x5, %rcx
leaq (%rcx,%r8,2), %r9
movl $0x8, %ecx
cmpq %r9, %rdx
jl 0x246d5
leaq (,%r8,4), %rcx
leaq (%rcx,%rcx,8), %rdx
xorl %ecx, %ecx
cmpq %rdx, %rax
setl %cl
xorl $0x9, %ecx
movl $0x4, %esi
movl %esi, %r10d
xorl %ecx, %r10d
movl %esi, %edx
movq %rdx, %rax
imulq %r14, %rax
movl %ecx, %r11d
movq %r11, %r9
imulq %r8, %r9
cmpq %r9, %rax
movq %r14, %rax
cmovlq %r8, %rax
cmovlq %rdx, %r11
decq %rax
xorl %edx, %edx
divq %r11
movq %rax, %r13
incq %r13
leal -0x1(%rcx), %edx
leal -0x1(%rsi), %r11d
movq %rdx, %rax
imulq %r13, %rax
subq %rax, %r14
movq %r11, %rax
imulq %r13, %rax
subq %rax, %r8
testb $0x1, %r10b
movq %r8, 0x58(%rsp)
movq %r11, 0x78(%rsp)
jne 0x247ad
movb $0x1, %al
movq %rax, 0xa0(%rsp)
movq $0x0, 0x88(%rsp)
jmp 0x23a43
movq 0x10(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq %r13, %rcx
movq 0x58(%rsp), %r8
movq %r15, %r9
callq 0x27890
jmp 0x23d07
imulq $0x58, %r13, %rdi
addq %r15, %rdi
cmpq %r9, %rbx
jle 0x247d5
movl 0x98(%rsp), %eax
imulq %r13, %rax
movq 0x50(%rsp), %rcx
leaq (%rcx,%rax,8), %rsi
movl 0x78(%rsp), %eax
imulq %r13, %rax
movq 0x40(%rsp), %rcx
leaq (%rcx,%rax,8), %rcx
movq %rbx, %rdx
movq %r9, %r8
jmp 0x24800
testq %r14, %r14
jle 0x2480f
testq %r8, %r8
jle 0x24832
movl $0x1, %eax
movq %rax, 0x88(%rsp)
movq $0x0, 0xa0(%rsp)
jmp 0x23a43
movl 0x78(%rsp), %eax
imulq %r13, %rax
movq 0x40(%rsp), %rcx
leaq (%rcx,%rax,8), %rsi
movl 0x98(%rsp), %eax
imulq %r13, %rax
movq 0x50(%rsp), %rcx
leaq (%rcx,%rax,8), %rcx
movq %r9, %rdx
movq %rbx, %r8
callq 0x1cd58
movq 0x58(%rsp), %r9
jmp 0x24634
movb $0x1, %al
movq %rax, 0xa0(%rsp)
movq $0x0, 0x88(%rsp)
addl $-0x2, %ecx
addq %r13, %r14
movl %ecx, %edx
jmp 0x23a43
movq %r8, %rcx
movb $0x1, %al
movq %rax, 0xa0(%rsp)
movq $0x0, 0x88(%rsp)
addl $-0x2, %esi
addq %r13, %rcx
movq %rcx, 0x58(%rsp)
movq %rsi, 0x78(%rsp)
jmp 0x23a43