// File: /workspace/github_cpp_makefile_star2_O2/marxn[P]pupp/3rdparty/gmp/./mini-gmp/mini-gmp.c
// Function: mpz_ior
void
mpz_ior (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)
    {
      mpz_set (r, u);
      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 negative, by sign extension higher limbs
     don't matter. */
  rn = vx ? vn : un;

  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 0x64a5
movq %rax, %r14
movq %rsi, %r8
jmp 0x64b1
movq %rdx, %r14
movq %rax, %rdx
movq %r15, %r8
movq %rsi, %r15
testq %r14, %r14
je 0x64f8
movl 0x4(%r15), %r13d
shrl $0x1f, %r13d
movl 0x4(%r8), %eax
movl %eax, %r12d
shrl $0x1f, %r12d
movq %r12, %rbx
orq %r13, %rbx
testl %eax, %eax
cmovsq %r14, %rdx
leaq (%rbx,%rdx), %rsi
movslq (%rdi), %rax
cmpq %rax, %rsi
movq %rdi, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
jbe 0x650e
movq %r8, -0x30(%rbp)
callq 0x228f
movq -0x30(%rbp), %r8
jmp 0x6512
movq %r15, %rsi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2236
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
orq %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 0x653a
cmpq %r11, %r15
jb 0x660d
movq -0x40(%rbp), %r14
cmpq %r14, %r8
jae 0x65c7
movq (%rdi,%r8,8), %r10
xorq %rcx, %r10
xorl %r11d, %r11d
addq %r13, %r10
setb %r11b
orq %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 0x6594
testq %r9, %r9
je 0x65d9
movq $0x1, (%rax,%r14,8)
incq %r14
jmp 0x65e7
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), %rcx
movl %eax, 0x4(%rcx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3082(%rip), %rdi      # 0x9696
leaq 0x2a49(%rip), %rsi      # 0x9064
leaq 0x30c5(%rip), %rcx      # 0x96e7
movl $0xe92, %edx            # imm = 0xE92
callq 0x1090