// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_twobitencoding_strcmp
int gt_encseq_twobitencoding_strcmp(GtCommonunits *commonunits,
                                    const GtEncseq *encseq1,
                                    const GtEncseq *encseq2,
                                    GtReadmode readmode,
                                    GtUword depth,
                                    GtUword maxdepth,
                                    GtViatwobitkeyvalues *vtk1,
                                    GtViatwobitkeyvalues *vtk2)
{
  GtEndofTwobitencoding ptbe1, ptbe2;
  int retval;
  GtUword cc1, cc2;
  bool fwd = GT_ISDIRREVERSE(readmode) ? false : true,
       complement = GT_ISDIRCOMPLEMENT(readmode) ? true : false;
  GtUchar tmp;

  ptbe1.referstartpos = vtk1->pos;
  ptbe2.referstartpos = vtk2->pos;
  do {
    if (vtk1->pos < vtk1->endpos) {
      if (vtk2->pos < vtk2->endpos) {
        vtk1->twobitcurrentpos =
          gt_encseq_extract2bitenc(&ptbe1, encseq1, fwd, vtk1->twobitcurrentpos,
                                   vtk1->twobitencodingstoppos);
        vtk2->twobitcurrentpos =
          gt_encseq_extract2bitenc(&ptbe2, encseq2, fwd, vtk2->twobitcurrentpos,
                                   vtk2->twobitencodingstoppos);
        retval = gt_encseq_compare_pairof_twobitencodings(fwd, complement,
                                                          commonunits,
                                                          &ptbe1, &ptbe2);
        if (maxdepth == 0 || depth + commonunits->common < maxdepth) {
          depth += commonunits->common;
          vtk1->pos += commonunits->common;
          vtk2->pos += commonunits->common;
        }
        else {
          depth = maxdepth;
          retval = 0;
          break;
        }
      }
      else {
        GT_ENCSEQ_DEREF_STOPPOS(cc1, commonunits->leftspecial, tmp, encseq1,
                                readmode, vtk1->pos);
        cc2 = GT_UNIQUEINT(vtk2->pos);
        commonunits->rightspecial = true;
        gt_assert(cc1 != cc2);
        retval = (cc1 < cc2) ? -1 : 1;
        break;
      }
    }
    else {
      cc1 = GT_UNIQUEINT(vtk1->pos);
      commonunits->leftspecial = true;
      if (vtk2->pos < vtk2->endpos) {
        GT_ENCSEQ_DEREF_STOPPOS(cc2, commonunits->rightspecial, tmp, encseq2,
                                readmode, vtk2->pos);
      }
      else {
        cc2 = GT_UNIQUEINT(vtk2->pos);
        commonunits->rightspecial = true;
      }
      gt_assert(cc1 != cc2);
      retval = (cc1 < cc2) ? -1 : 1;
      break;
    }
  } while (retval == 0);
  commonunits->finaldepth = depth;
  return retval;
}

// Assembly:
subq $0x88, %rsp
movq 0x98(%rsp), %rax
movq 0x90(%rsp), %rax
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq %rdx, 0x70(%rsp)
movl %ecx, 0x6c(%rsp)
movq %r8, 0x60(%rsp)
movq %r9, 0x58(%rsp)
movb $0x1, %al
cmpl $0x1, 0x6c(%rsp)
movb %al, 0xc(%rsp)
je 0x11f000
cmpl $0x3, 0x6c(%rsp)
sete %al
movb %al, 0xc(%rsp)
movb 0xc(%rsp), %dl
movl $0x1, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movb %al, 0xf(%rsp)
movb $0x1, %al
cmpl $0x2, 0x6c(%rsp)
movb %al, 0xb(%rsp)
je 0x11f036
cmpl $0x3, 0x6c(%rsp)
sete %al
movb %al, 0xb(%rsp)
movb 0xb(%rsp), %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movb %al, 0xe(%rsp)
movq 0x90(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x50(%rsp)
movq 0x98(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x90(%rsp), %rax
movq (%rax), %rax
movq 0x90(%rsp), %rcx
cmpq 0x10(%rcx), %rax
jae 0x11f2d6
movq 0x98(%rsp), %rax
movq (%rax), %rax
movq 0x98(%rsp), %rcx
cmpq 0x10(%rcx), %rax
jae 0x11f1e3
movq 0x78(%rsp), %rsi
movb 0xf(%rsp), %al
movq 0x90(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq 0x90(%rsp), %rdx
movq 0x18(%rdx), %r8
leaq 0x40(%rsp), %rdi
andb $0x1, %al
movzbl %al, %edx
callq 0x11d840
movq %rax, %rcx
movq 0x90(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x70(%rsp), %rsi
movb 0xf(%rsp), %al
movq 0x98(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq 0x98(%rsp), %rdx
movq 0x18(%rdx), %r8
leaq 0x28(%rsp), %rdi
andb $0x1, %al
movzbl %al, %edx
callq 0x11d840
movq %rax, %rcx
movq 0x98(%rsp), %rax
movq %rcx, 0x8(%rax)
movb 0xf(%rsp), %sil
movb 0xe(%rsp), %al
movq 0x80(%rsp), %rdx
leaq 0x40(%rsp), %rcx
leaq 0x28(%rsp), %r8
andb $0x1, %sil
andb $0x1, %al
movzbl %sil, %edi
movzbl %al, %esi
callq 0x11e600
movl %eax, 0x24(%rsp)
cmpq $0x0, 0x58(%rsp)
je 0x11f17d
movq 0x60(%rsp), %rax
movq 0x80(%rsp), %rcx
movl (%rcx), %ecx
addq %rcx, %rax
cmpq 0x58(%rsp), %rax
jae 0x11f1c7
movq 0x80(%rsp), %rax
movl (%rax), %eax
addq 0x60(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x80(%rsp), %rax
movl (%rax), %eax
movl %eax, %ecx
movq 0x90(%rsp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
movq 0x80(%rsp), %rax
movl (%rax), %eax
movl %eax, %ecx
movq 0x98(%rsp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
jmp 0x11f1de
movq 0x58(%rsp), %rax
movq %rax, 0x60(%rsp)
movl $0x0, 0x24(%rsp)
jmp 0x11f40d
jmp 0x11f2d1
movq 0x78(%rsp), %rdi
movq 0x90(%rsp), %rax
movq (%rax), %rsi
movl 0x6c(%rsp), %edx
callq 0x113f80
movb %al, 0xd(%rsp)
movzbl 0xd(%rsp), %eax
cmpl $0xfe, %eax
jge 0x11f224
movzbl 0xd(%rsp), %eax
movq %rax, 0x18(%rsp)
movq 0x80(%rsp), %rax
movb $0x0, 0x4(%rax)
jmp 0x11f246
movq 0x90(%rsp), %rax
movq (%rax), %rax
addq $0x100, %rax            # imm = 0x100
movq %rax, 0x18(%rsp)
movq 0x80(%rsp), %rax
movb $0x1, 0x4(%rax)
movq 0x98(%rsp), %rax
movq (%rax), %rax
addq $0x100, %rax            # imm = 0x100
movq %rax, 0x10(%rsp)
movq 0x80(%rsp), %rax
movb $0x1, 0x5(%rax)
movq 0x18(%rsp), %rax
cmpq 0x10(%rsp), %rax
jne 0x11f2ac
movq 0x94d5d(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x3ede1(%rip), %rsi     # 0x15e066
leaq 0x676af(%rip), %rdx     # 0x18693b
leaq 0x676b3(%rip), %rcx     # 0x186946
leaq 0x663c4(%rip), %r8      # 0x18565e
movl $0x1a10, %r9d           # imm = 0x1A10
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x11f2ae
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rsi
movl $0x1, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rsi, %rdx
cmovbl %ecx, %eax
movl %eax, 0x24(%rsp)
jmp 0x11f40d
jmp 0x11f400
movq 0x90(%rsp), %rax
movq (%rax), %rax
addq $0x100, %rax            # imm = 0x100
movq %rax, 0x18(%rsp)
movq 0x80(%rsp), %rax
movb $0x1, 0x4(%rax)
movq 0x98(%rsp), %rax
movq (%rax), %rax
movq 0x98(%rsp), %rcx
cmpq 0x10(%rcx), %rax
jae 0x11f376
movq 0x70(%rsp), %rdi
movq 0x98(%rsp), %rax
movq (%rax), %rsi
movl 0x6c(%rsp), %edx
callq 0x113f80
movb %al, 0xd(%rsp)
movzbl 0xd(%rsp), %eax
cmpl $0xfe, %eax
jge 0x11f352
movzbl 0xd(%rsp), %eax
movq %rax, 0x10(%rsp)
movq 0x80(%rsp), %rax
movb $0x0, 0x5(%rax)
jmp 0x11f374
movq 0x98(%rsp), %rax
movq (%rax), %rax
addq $0x100, %rax            # imm = 0x100
movq %rax, 0x10(%rsp)
movq 0x80(%rsp), %rax
movb $0x1, 0x5(%rax)
jmp 0x11f398
movq 0x98(%rsp), %rax
movq (%rax), %rax
addq $0x100, %rax            # imm = 0x100
movq %rax, 0x10(%rsp)
movq 0x80(%rsp), %rax
movb $0x1, 0x5(%rax)
jmp 0x11f39a
movq 0x18(%rsp), %rax
cmpq 0x10(%rsp), %rax
jne 0x11f3de
movq 0x94c2b(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x3ecaf(%rip), %rsi     # 0x15e066
leaq 0x6757d(%rip), %rdx     # 0x18693b
leaq 0x67581(%rip), %rcx     # 0x186946
leaq 0x66292(%rip), %r8      # 0x18565e
movl $0x1a20, %r9d           # imm = 0x1A20
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x11f3e0
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rsi
movl $0x1, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rsi, %rdx
cmovbl %ecx, %eax
movl %eax, 0x24(%rsp)
jmp 0x11f40d
jmp 0x11f402
cmpl $0x0, 0x24(%rsp)
je 0x11f073
movq 0x60(%rsp), %rcx
movq 0x80(%rsp), %rax
movq %rcx, 0x8(%rax)
movl 0x24(%rsp), %eax
addq $0x88, %rsp
retq
nopw (%rax,%rax)