// File: /workspace/github_cpp_makefile_star2_O2/marxn[P]pupp/3rdparty/gmp/mpn/mul_fft.c
// Function: mpn_fft_fft
static void
mpn_fft_fft (mp_ptr *Ap, mp_size_t K, int **ll,
	     mp_size_t omega, mp_size_t n, mp_size_t inc, mp_ptr tp)
{
  if (K == 2)
    {
      mp_limb_t cy;
#if HAVE_NATIVE_mpn_add_n_sub_n
      cy = mpn_add_n_sub_n (Ap[0], Ap[inc], Ap[0], Ap[inc], n + 1) & 1;
#else
      MPN_COPY (tp, Ap[0], n + 1);
      mpn_add_n (Ap[0], Ap[0], Ap[inc], n + 1);
      cy = mpn_sub_n (Ap[inc], tp, Ap[inc], n + 1);
#endif
      if (Ap[0][n] > 1) /* can be 2 or 3 */
	Ap[0][n] = 1 - mpn_sub_1 (Ap[0], Ap[0], n, Ap[0][n] - 1);
      if (cy) /* Ap[inc][n] can be -1 or -2 */
	Ap[inc][n] = mpn_add_1 (Ap[inc], Ap[inc], n, ~Ap[inc][n] + 1);
    }
  else
    {
      mp_size_t j, K2 = K >> 1;
      int *lk = *ll;

      mpn_fft_fft (Ap,     K2, ll-1, 2 * omega, n, inc * 2, tp);
      mpn_fft_fft (Ap+inc, K2, ll-1, 2 * omega, n, inc * 2, tp);
      /* A[2*j*inc]   <- A[2*j*inc] + omega^l[k][2*j*inc] A[(2j+1)inc]
	 A[(2j+1)inc] <- A[2*j*inc] + omega^l[k][(2j+1)inc] A[(2j+1)inc] */
      for (j = 0; j < K2; j++, lk += 2, Ap += 2 * inc)
	{
	  /* Ap[inc] <- Ap[0] + Ap[inc] * 2^(lk[1] * omega)
	     Ap[0]   <- Ap[0] + Ap[inc] * 2^(lk[0] * omega) */
	  mpn_fft_mul_2exp_modF (tp, Ap[inc], lk[0] * omega, n);
	  mpn_fft_sub_modF (Ap[inc], Ap[0], tp, n);
	  mpn_fft_add_modF (Ap[0],   Ap[0], tp, n);
	}
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %r12
movq %r8, %rbx
movq %rdi, %r15
movq 0x60(%rsp), %r14
cmpq $0x2, %rsi
movq %r9, 0x10(%rsp)
jne 0x2b627
movq (%r15), %rsi
leaq 0x1(%rbx), %r13
movq %r14, %rdi
movq %r13, %rdx
callq 0x290c6
movq (%r15), %rdi
movq (%r15,%r12,8), %rdx
movq %rdi, %rsi
movq %r13, %rcx
callq 0x17cf0
movq (%r15,%r12,8), %rdi
movq %r14, %rsi
movq %rdi, %rdx
movq %r13, %rcx
callq 0x17ed0
movq %rax, %r14
movq (%r15), %rdi
movq (%rdi,%rbx,8), %rcx
cmpq $0x2, %rcx
jb 0x2b5f1
decq %rcx
movq %rdi, %rsi
movq %rbx, %rdx
callq 0x17e44
pushq $0x1
popq %rcx
subq %rax, %rcx
movq (%r15), %rax
movq %rcx, (%rax,%rbx,8)
testq %r14, %r14
je 0x2b618
movq 0x10(%rsp), %r14
movq (%r15,%r14,8), %rdi
xorl %ecx, %ecx
subq (%rdi,%rbx,8), %rcx
movq %rdi, %rsi
movq %rbx, %rdx
callq 0x29e1c
movq (%r15,%r14,8), %rcx
movq %rax, (%rcx,%rbx,8)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %r13
movq %rsi, %rbp
sarq %rbp
movq (%rdx), %rax
movq %rax, 0x18(%rsp)
addq $-0x8, %r13
movq %rcx, 0x20(%rsp)
addq %rcx, %rcx
movq %rcx, 0x8(%rsp)
leaq (%r12,%r12), %r9
movq %r14, (%rsp)
movq %r15, %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq %rbx, %r8
movq %r9, %r14
callq 0x2b565
leaq (%r15,%r12,8), %rdi
movq 0x60(%rsp), %rax
movq %rax, (%rsp)
movq %rbp, %rsi
movq %r13, %rdx
movq 0x8(%rsp), %rcx
movq %rbx, %r8
movq %r14, %r9
callq 0x2b565
xorl %r13d, %r13d
testq %rbp, %rbp
cmovleq %r13, %rbp
shlq $0x4, %r12
movq %r12, 0x8(%rsp)
movq 0x10(%rsp), %r14
cmpq %r13, %rbp
je 0x2b618
movq (%r15,%r14,8), %rsi
movq 0x18(%rsp), %rax
movslq (%rax,%r13,8), %rdx
imulq 0x20(%rsp), %rdx
movq %rbp, %r12
movq 0x60(%rsp), %rbp
movq %rbp, %rdi
movq %rbx, %rcx
callq 0x2b34f
movq (%r15,%r14,8), %rdi
movq (%r15), %rsi
movq %rbp, %rdx
movq %rbx, %rcx
callq 0x2b868
movq (%r15), %rdi
movq %rdi, %rsi
movq %rbp, %rdx
movq %r12, %rbp
movq %rbx, %rcx
callq 0x2b8bc
incq %r13
addq 0x8(%rsp), %r15
jmp 0x2b6a0