// File: /workspace/github_cpp_makefile_star2_O2/marxn[P]pupp/3rdparty/gmp/./mini-gmp/mini-gmp.c
// Function: mpz_xor
void
mpz_xor (mpz_t r, const mpz_t u, const mpz_t v)
{
  mp_size_t un, vn, 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)
    {
      mpz_set (r, u);
      return;
    }

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

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

  rp = MPZ_REALLOC (r, un + 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 < un; i++)
    {
      ul = (up[i] ^ ux) + uc;
      uc = ul < uc;

      rl = (ul ^ ux) + rc;
      rc = rl < rc;
      rp[i] = rl;
    }
  if (rc)
    rp[un++] = rc;
  else
    un = mpn_normalized_size (rp, un);

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %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 0x6660
movq %rax, %rcx
movq %rsi, %rbx
jmp 0x666c
movq %rdx, %rcx
movq %rax, %rdx
movq %r15, %rbx
movq %rsi, %r15
testq %rcx, %rcx
je 0x66a6
movl 0x4(%r15), %r14d
shrl $0x1f, %r14d
movl 0x4(%rbx), %r12d
shrl $0x1f, %r12d
movq %r12, %r13
xorq %r14, %r13
leaq (%rdx,%r13), %rsi
movslq (%rdi), %rax
cmpq %rax, %rsi
movq %rdi, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movq %rcx, -0x50(%rbp)
jbe 0x66bc
callq 0x228f
jmp 0x66c0
movq %r15, %rsi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2236
movq 0x8(%rdi), %rax
movq %r14, %rcx
negq %rcx
movq %r12, %r8
negq %r8
movq %r13, %r9
negq %r9
movq 0x8(%r15), %rdx
movq 0x8(%rbx), %rsi
movq %rsi, -0x58(%rbp)
xorl %esi, %esi
movq %r14, -0x38(%rbp)
movq %r14, %rdi
movq %r12, -0x30(%rbp)
movq %r12, %r15
movq -0x50(%rbp), %r10
movq %r15, %r11
movq (%rdx,%rsi,8), %r12
xorq %rcx, %r12
addq %rdi, %r12
setb %r14b
xorl %edi, %edi
movq -0x58(%rbp), %rbx
movq (%rbx,%rsi,8), %rbx
xorq %r8, %rbx
xorl %r15d, %r15d
addq %r11, %rbx
setb %r15b
xorq %r9, %r12
xorq %rbx, %r12
addq %r13, %r12
movb %r14b, %dil
setb %r14b
movq %r12, (%rax,%rsi,8)
xorl %r13d, %r13d
movb %r14b, %r13b
incq %rsi
cmpq %r10, %rsi
jb 0x66f2
cmpq %r11, %rbx
jb 0x67c0
movq -0x40(%rbp), %r11
cmpq %r11, %rsi
jae 0x6777
movq (%rdx,%rsi,8), %r8
xorq %rcx, %r8
xorl %r9d, %r9d
addq %rdi, %r8
setb %r9b
xorq %rcx, %r8
xorl %r10d, %r10d
addq %r13, %r8
setb %r10b
movq %r8, (%rax,%rsi,8)
incq %rsi
movq %r9, %rdi
movq %r10, %r13
jmp 0x6745
testq %r13, %r13
je 0x6789
movq $0x1, (%rax,%r11,8)
incq %r11
jmp 0x6797
movq %rax, %rdi
movq %r11, %rsi
callq 0x1369
movq %rax, %r11
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %rdx
movl %r11d, %eax
negl %eax
cmpl %edx, %ecx
cmovel %r11d, %eax
movq -0x48(%rbp), %rcx
movl %eax, 0x4(%rcx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2ecf(%rip), %rdi      # 0x9696
leaq 0x2896(%rip), %rsi      # 0x9064
leaq 0x2f5b(%rip), %rcx      # 0x9730
movl $0xed7, %edx            # imm = 0xED7
callq 0x1090