// File: /workspace/github_cpp_makefile_star2_O2/marxn[P]pupp/3rdparty/gmp/./mini-gmp/mini-gmp.c
// Function: mpz_and
void
mpz_and (mpz_t r, const mpz_t u, const mpz_t v)
{
  mp_size_t un, vn, rn, i;
  mp_ptr up, vp, rp;

  mp_limb_t ux, vx, rx;
  mp_limb_t uc, vc, rc;
  mp_limb_t ul, vl, rl;

  un = GMP_ABS (u->_mp_size);
  vn = GMP_ABS (v->_mp_size);
  if (un < vn)
    {
      MPZ_SRCPTR_SWAP (u, v);
      MP_SIZE_T_SWAP (un, vn);
    }
  if (vn == 0)
    {
      r->_mp_size = 0;
      return;
    }

  uc = u->_mp_size < 0;
  vc = v->_mp_size < 0;
  rc = uc & vc;

  ux = -uc;
  vx = -vc;
  rx = -rc;

  /* If the smaller input is positive, higher limbs don't matter. */
  rn = vx ? un : vn;

  rp = MPZ_REALLOC (r, rn + rc);

  up = u->_mp_d;
  vp = v->_mp_d;

  i = 0;
  do
    {
      ul = (up[i] ^ ux) + uc;
      uc = ul < uc;

      vl = (vp[i] ^ vx) + vc;
      vc = vl < vc;

      rl = ( (ul & vl) ^ rx) + rc;
      rc = rl < rc;
      rp[i] = rl;
    }
  while (++i < vn);
  assert (vc == 0);

  for (; i < rn; i++)
    {
      ul = (up[i] ^ ux) + uc;
      uc = ul < uc;

      rl = ( (ul & vx) ^ rx) + rc;
      rc = rl < rc;
      rp[i] = rl;
    }
  if (rc)
    rp[rn++] = rc;
  else
    rn = mpn_normalized_size (rp, rn);

  r->_mp_size = rx ? -rn : rn;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r15
movl 0x4(%rsi), %ecx
movl %ecx, %eax
negl %eax
cmovsl %ecx, %eax
movl 0x4(%rdx), %ecx
movl %ecx, %edx
negl %edx
cmovsl %ecx, %edx
cmpl %edx, %eax
jae 0x62f9
movq %rax, %r14
movq %rsi, %r8
jmp 0x6305
movq %rdx, %r14
movq %rax, %rdx
movq %r15, %r8
movq %rsi, %r15
testq %r14, %r14
je 0x634c
movl 0x4(%r15), %r13d
shrl $0x1f, %r13d
movl 0x4(%r8), %eax
movl %eax, %r12d
shrl $0x1f, %r12d
movl %r12d, %ebx
andl %r13d, %ebx
testl %eax, %eax
cmovnsq %r14, %rdx
leaq (%rbx,%rdx), %rsi
movslq (%rdi), %rax
cmpq %rax, %rsi
movq %rdi, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
jbe 0x6353
movq %r8, -0x30(%rbp)
callq 0x228f
movq -0x30(%rbp), %r8
jmp 0x6357
xorl %eax, %eax
jmp 0x6440
movq 0x8(%rdi), %rax
movq %r13, %rcx
negq %rcx
movq %r12, %rdx
negq %rdx
movq %rbx, %rsi
negq %rsi
movq 0x8(%r15), %rdi
movq 0x8(%r8), %r8
movq %r8, -0x30(%rbp)
xorl %r8d, %r8d
movq %rbx, -0x38(%rbp)
movq %rbx, %r9
movq %r12, %r11
movq (%rdi,%r8,8), %rbx
xorq %rcx, %rbx
addq %r13, %rbx
movq %r14, %r10
setb %r14b
xorl %r13d, %r13d
movq -0x30(%rbp), %r15
movq (%r15,%r8,8), %r15
xorq %rdx, %r15
xorl %r12d, %r12d
addq %r11, %r15
setb %r12b
andq %r15, %rbx
xorq %rsi, %rbx
addq %r9, %rbx
movb %r14b, %r13b
setb %r14b
movq %rbx, (%rax,%r8,8)
xorl %r9d, %r9d
movb %r14b, %r9b
movq %r10, %r14
incq %r8
cmpq %r10, %r8
jb 0x637f
cmpq %r11, %r15
jb 0x6452
movq -0x40(%rbp), %r14
cmpq %r14, %r8
jae 0x640c
movq (%rdi,%r8,8), %r10
xorq %rcx, %r10
xorl %r11d, %r11d
addq %r13, %r10
setb %r11b
andq %rdx, %r10
xorq %rsi, %r10
xorl %ebx, %ebx
addq %r9, %r10
setb %bl
movq %r10, (%rax,%r8,8)
incq %r8
movq %r11, %r13
movq %rbx, %r9
jmp 0x63d9
testq %r9, %r9
je 0x641e
movq $0x1, (%rax,%r14,8)
incq %r14
jmp 0x642c
movq %rax, %rdi
movq %r14, %rsi
callq 0x1369
movq %rax, %r14
movq -0x38(%rbp), %rcx
movl %r14d, %eax
negl %eax
testq %rcx, %rcx
cmovel %r14d, %eax
movq -0x48(%rbp), %rdi
movl %eax, 0x4(%rdi)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x323d(%rip), %rdi      # 0x9696
leaq 0x2c04(%rip), %rsi      # 0x9064
leaq 0x3237(%rip), %rcx      # 0x969e
movl $0xe49, %edx            # imm = 0xE49
callq 0x1090