// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/encseq.c
// Function: multicharactercompare_withtest
static void multicharactercompare_withtest(const GtEncseq *encseq,
                                           GtReadmode readmode,
                                           GtUword pos1,
                                           GtUword pos2)
{
  GtEndofTwobitencoding ptbe1, ptbe2;
  GtCommonunits commonunits1;
  GtUword commonunits2, twobitencodingstoppos1, twobitencodingstoppos2;
  int ret1, ret2;
  GtEncseqReader *esr1, *esr2;
  bool fwd = GT_ISDIRREVERSE(readmode) ? false : true,
       complement = GT_ISDIRCOMPLEMENT(readmode) ? true : false;

  esr1 = gt_encseq_create_reader_with_readmode(encseq, readmode, pos1);
  if (gt_encseq_has_twobitencoding_stoppos_support(encseq))
    twobitencodingstoppos1 = gt_getnexttwobitencodingstoppos (fwd, esr1);
  else
    twobitencodingstoppos1 = GT_TWOBITENCODINGSTOPPOSUNDEF(encseq);

  ptbe1.referstartpos = esr1->currentpos;
  esr1->currentpos = gt_encseq_extract2bitenc(&ptbe1, encseq, fwd,
                                              esr1->currentpos,
                                              twobitencodingstoppos1);
  esr2 = gt_encseq_create_reader_with_readmode(encseq, readmode, pos2);
  if (gt_encseq_has_twobitencoding_stoppos_support(encseq))
    twobitencodingstoppos2 = gt_getnexttwobitencodingstoppos (fwd, esr2);
  else
    twobitencodingstoppos2 = GT_TWOBITENCODINGSTOPPOSUNDEF(encseq);

  ptbe2.referstartpos = esr2->currentpos;
  esr2->currentpos = gt_encseq_extract2bitenc(&ptbe2, encseq, fwd,
                                              esr2->currentpos,
                                              twobitencodingstoppos2);
  gt_encseq_reader_delete(esr1);
  gt_encseq_reader_delete(esr2);
  ret1 = gt_encseq_compare_pairof_twobitencodings(fwd, complement,
                                                  &commonunits1, &ptbe1,
                                                  &ptbe2);
  commonunits2 = (GtUword) GT_UNITSIN2BITENC;
  if (GT_ISDIRREVERSE(readmode)) {
    pos1 = GT_REVERSEPOS(encseq->totallength, pos1);
    pos2 = GT_REVERSEPOS(encseq->totallength, pos2);
  }
  ret2 = gt_encseq_check_comparetwostrings(encseq, fwd, complement,
                                           &commonunits2, pos1, pos2, 0);
  if (ret1 != ret2 || commonunits2 != (GtUword) commonunits1.common) {
    char buf1[GT_INTWORDSIZE+1], buf2[GT_INTWORDSIZE+1];

    fprintf(stderr, "fwd=%s, complement=%s: "
                   "pos1="GT_WU", pos2="GT_WU"\n",
            fwd ? "true" : "false",
            complement ? "true" : "false",
            pos1, pos2);
    fprintf(stderr, "ret1=%d, ret2=%d\n", ret1, ret2);
    fprintf(stderr, "commonunits1=%u, commonunits2="GT_WU"\n",
            commonunits1.common, commonunits2);
    gt_encseq_showatstartpos(stderr, fwd, complement, encseq, pos1);
    gt_bitsequence_tostring(buf1, ptbe1.tbe);
    fprintf(stderr, "v1=%s(unitsnotspecial=%u)\n", buf1, ptbe1.unitsnotspecial);
    gt_encseq_showatstartpos(stderr, fwd, complement, encseq, pos2);
    gt_bitsequence_tostring(buf2, ptbe2.tbe);
    fprintf(stderr, "v2=%s(unitsnotspecial=%u)\n", buf2, ptbe2.unitsnotspecial);
    exit(GT_EXIT_PROGRAMMING_ERROR);
  }
}

// Assembly:
subq $0x148, %rsp            # imm = 0x148
movq %rdi, 0x140(%rsp)
movl %esi, 0x13c(%rsp)
movq %rdx, 0x130(%rsp)
movq %rcx, 0x128(%rsp)
movb $0x1, %al
cmpl $0x1, 0x13c(%rsp)
movb %al, 0x1f(%rsp)
je 0x133555
cmpl $0x3, 0x13c(%rsp)
sete %al
movb %al, 0x1f(%rsp)
movb 0x1f(%rsp), %dl
movl $0x1, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movb %al, 0xb7(%rsp)
movb $0x1, %al
cmpl $0x2, 0x13c(%rsp)
movb %al, 0x1e(%rsp)
je 0x133594
cmpl $0x3, 0x13c(%rsp)
sete %al
movb %al, 0x1e(%rsp)
movb 0x1e(%rsp), %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movb %al, 0xb6(%rsp)
movq 0x140(%rsp), %rdi
movl 0x13c(%rsp), %esi
movq 0x130(%rsp), %rdx
callq 0x116560
movq %rax, 0xc0(%rsp)
movq 0x140(%rsp), %rdi
callq 0x116950
testb $0x1, %al
jne 0x1335eb
jmp 0x13360e
movb 0xb7(%rsp), %al
movq 0xc0(%rsp), %rsi
andb $0x1, %al
movzbl %al, %edi
callq 0x11d360
movq %rax, 0xd8(%rsp)
jmp 0x133650
movq 0x140(%rsp), %rax
testb $0x1, 0x3a8(%rax)
je 0x133632
movq 0x140(%rsp), %rax
movq 0x38(%rax), %rax
movq %rax, 0x10(%rsp)
jmp 0x133643
movq 0x140(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0xd8(%rsp)
movq 0xc0(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x120(%rsp)
movq 0x140(%rsp), %rsi
movb 0xb7(%rsp), %al
movq 0xc0(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq 0xd8(%rsp), %r8
leaq 0x110(%rsp), %rdi
andb $0x1, %al
movzbl %al, %edx
callq 0x11d840
movq %rax, %rcx
movq 0xc0(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x140(%rsp), %rdi
movl 0x13c(%rsp), %esi
movq 0x128(%rsp), %rdx
callq 0x116560
movq %rax, 0xb8(%rsp)
movq 0x140(%rsp), %rdi
callq 0x116950
testb $0x1, %al
jne 0x1336df
jmp 0x133702
movb 0xb7(%rsp), %al
movq 0xb8(%rsp), %rsi
andb $0x1, %al
movzbl %al, %edi
callq 0x11d360
movq %rax, 0xd0(%rsp)
jmp 0x133744
movq 0x140(%rsp), %rax
testb $0x1, 0x3a8(%rax)
je 0x133726
movq 0x140(%rsp), %rax
movq 0x38(%rax), %rax
movq %rax, 0x8(%rsp)
jmp 0x133737
movq 0x140(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0xb8(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x108(%rsp)
movq 0x140(%rsp), %rsi
movb 0xb7(%rsp), %al
movq 0xb8(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq 0xd0(%rsp), %r8
leaq 0xf8(%rsp), %rdi
andb $0x1, %al
movzbl %al, %edx
callq 0x11d840
movq %rax, %rcx
movq 0xb8(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0xc0(%rsp), %rdi
callq 0x1165d0
movq 0xb8(%rsp), %rdi
callq 0x1165d0
movb 0xb7(%rsp), %sil
movb 0xb6(%rsp), %al
leaq 0xe8(%rsp), %rdx
leaq 0x110(%rsp), %rcx
leaq 0xf8(%rsp), %r8
andb $0x1, %sil
andb $0x1, %al
movzbl %sil, %edi
movzbl %al, %esi
callq 0x11e600
movl %eax, 0xcc(%rsp)
movq $0x20, 0xe0(%rsp)
cmpl $0x1, 0x13c(%rsp)
je 0x133816
cmpl $0x3, 0x13c(%rsp)
jne 0x133856
movq 0x140(%rsp), %rax
movq 0x30(%rax), %rax
subq $0x1, %rax
subq 0x130(%rsp), %rax
movq %rax, 0x130(%rsp)
movq 0x140(%rsp), %rax
movq 0x30(%rax), %rax
subq $0x1, %rax
subq 0x128(%rsp), %rax
movq %rax, 0x128(%rsp)
movq 0x140(%rsp), %rdi
movb 0xb7(%rsp), %dl
movb 0xb6(%rsp), %al
movq 0x130(%rsp), %r8
movq 0x128(%rsp), %r9
leaq 0xe0(%rsp), %rcx
xorl %esi, %esi
andb $0x1, %dl
andb $0x1, %al
movzbl %dl, %esi
movzbl %al, %edx
movq $0x0, (%rsp)
callq 0x133a70
movl %eax, 0xc8(%rsp)
movl 0xcc(%rsp), %eax
cmpl 0xc8(%rsp), %eax
jne 0x1338cd
movq 0xe0(%rsp), %rax
movl 0xe8(%rsp), %ecx
cmpq %rcx, %rax
je 0x133a62
movq 0x80704(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
movb 0xb7(%rsp), %cl
leaq 0x3f481(%rip), %rdx     # 0x172d66
leaq 0x5ad5e(%rip), %rax     # 0x18e64a
testb $0x1, %cl
cmovneq %rax, %rdx
movb 0xb6(%rsp), %sil
leaq 0x3f464(%rip), %rcx     # 0x172d66
leaq 0x5ad41(%rip), %rax     # 0x18e64a
testb $0x1, %sil
cmovneq %rax, %rcx
movq 0x130(%rsp), %r8
movq 0x128(%rsp), %r9
leaq 0x56140(%rip), %rsi     # 0x189a68
movb $0x0, %al
callq 0xb890
movq 0x806a2(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
movl 0xcc(%rsp), %edx
movl 0xc8(%rsp), %ecx
leaq 0x56145(%rip), %rsi     # 0x189a93
movb $0x0, %al
callq 0xb890
movq 0x8067c(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
movl 0xe8(%rsp), %edx
movq 0xe0(%rsp), %rcx
leaq 0x56130(%rip), %rsi     # 0x189aa5
movb $0x0, %al
callq 0xb890
movq 0x80655(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
movb 0xb7(%rsp), %dl
movb 0xb6(%rsp), %al
movq 0x140(%rsp), %rcx
movq 0x130(%rsp), %r8
andb $0x1, %dl
andb $0x1, %al
movzbl %dl, %esi
movzbl %al, %edx
callq 0x11f720
leaq 0x70(%rsp), %rdi
movq 0x110(%rsp), %rsi
callq 0x133490
movq 0x8060b(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x70(%rsp), %rdx
movl 0x118(%rsp), %ecx
leaq 0x560e5(%rip), %rsi     # 0x189ac8
movb $0x0, %al
callq 0xb890
movq 0x805e7(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
movb 0xb7(%rsp), %dl
movb 0xb6(%rsp), %al
movq 0x140(%rsp), %rcx
movq 0x128(%rsp), %r8
andb $0x1, %dl
andb $0x1, %al
movzbl %dl, %esi
movzbl %al, %edx
callq 0x11f720
leaq 0x20(%rsp), %rdi
movq 0xf8(%rsp), %rsi
callq 0x133490
movq 0x8059d(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x20(%rsp), %rdx
movl 0x100(%rsp), %ecx
leaq 0x56092(%rip), %rsi     # 0x189ae3
movb $0x0, %al
callq 0xb890
movl $0x2, %edi
callq 0xb780
addq $0x148, %rsp            # imm = 0x148
retq
nopw (%rax,%rax)