// File: /workspace/github_c_makefile_star2_O3/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
movl %esi, %eax
andl $-0x3, %eax
movl %eax, 0x8(%rsp)
leaq 0x32e8b(%rip), %rdx     # 0x10291a
movl $0x1, %edi
movl $0x38, %esi
movl $0xc5e, %ecx            # imm = 0xC5E
callq 0x359a6
movq %rax, %r12
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
movq %rbx, %rsi
movl %ebp, %edx
movq %r14, 0x10(%rsp)
movq %r14, %rcx
callq 0xc12b5
movq %rbx, %rdi
callq 0xc1740
testb %al, %al
je 0xcfadd
xorl %edi, %edi
movq %r12, %rsi
callq 0xc4ca3
movq %rax, %r8
jmp 0xcfae9
movzbl 0x3a8(%rbx), %eax
movq 0x30(%rbx,%rax,8), %r8
movl %ebp, %eax
andl $-0x2, %eax
movl %eax, 0x1c(%rsp)
xorl %edx, %edx
cmpl $0x1, 0x8(%rsp)
setne %dl
movq 0x10(%r12), %rcx
leaq 0x78(%rsp), %rdi
movq %rcx, 0x10(%rdi)
movq %rbx, %rsi
callq 0xc4efb
movq %rax, 0x10(%r12)
leaq 0x32dfc(%rip), %rdx     # 0x10291a
movl $0x1, %edi
movl $0x38, %esi
movl $0xc5e, %ecx            # imm = 0xC5E
callq 0x359a6
movq %rax, %r13
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
movq %rbx, %rsi
movl %ebp, %edx
movq %r15, %rcx
callq 0xc12b5
movq %rbx, %rdi
callq 0xc1740
testb %al, %al
movq %r12, 0x20(%rsp)
je 0xcfb6c
xorl %edi, %edi
movq %r13, %rsi
callq 0xc4ca3
movq %rax, %r8
jmp 0xcfb78
movzbl 0x3a8(%rbx), %eax
movq 0x30(%rbx,%rax,8), %r8
xorl %ebp, %ebp
cmpl $0x2, 0x1c(%rsp)
sete %bpl
xorl %r14d, %r14d
movl 0x8(%rsp), %r12d
cmpl $0x1, %r12d
setne %r14b
movq 0x10(%r13), %rcx
leaq 0x60(%rsp), %rdi
movq %rcx, 0x10(%rdi)
movq %rbx, %rsi
movl %r14d, %edx
callq 0xc4efb
movq %rax, 0x10(%r13)
movq 0x20(%rsp), %rdi
callq 0xc15cc
movq %r13, %rdi
callq 0xc15cc
leaq 0x50(%rsp), %rdx
leaq 0x78(%rsp), %rcx
movl %r14d, %edi
movl %ebp, %esi
leaq 0x60(%rsp), %r8
callq 0xc54d8
cmpl $0x1, %r12d
movq %rbx, 0x38(%rsp)
movl %eax, 0xc(%rsp)
je 0xcfc18
movq 0x38(%rbx), %rdx
movq %rdx, %rcx
movq 0x10(%rsp), %r8
subq %r8, %rcx
jbe 0xcfe7c
movq %rdx, %rdi
subq %r15, %rdi
jbe 0xcfe81
movq %rdx, 0x28(%rsp)
cmpq %rdi, %rcx
cmovbq %rcx, %rdi
jmp 0xcfc45
movq 0x30(%rbx), %rcx
movq 0x38(%rbx), %rax
movq %rax, 0x28(%rsp)
decq %rcx
movq %rcx, %r8
subq 0x10(%rsp), %r8
subq %r15, %rcx
leaq 0x1(%r8), %rsi
leaq 0x1(%rcx), %rdi
cmpq %rdi, %rsi
cmovbq %rsi, %rdi
movq %rcx, %r15
cmpq $0x20, %rdi
movl $0x20, %eax
cmovbq %rdi, %rax
movq %rax, 0x40(%rsp)
incq %rax
movq %rax, 0x48(%rsp)
xorl %r12d, %r12d
movq %r15, 0x30(%rsp)
movq 0x38(%rsp), %rbx
movq 0x40(%rsp), %r14
movq %r12, 0x10(%rsp)
xorl %r13d, %r13d
cmpl $0x2, 0x1c(%rsp)
sete %r13b
xorl %r15d, %r15d
cmpl $0x1, 0x8(%rsp)
setne %r15b
movq 0x28(%rsp), %r12
movq %r12, (%rsp)
movq %rbx, %rdi
movl %r15d, %esi
movl %r13d, %edx
movq %r8, %rcx
movq %r8, %rbp
movq %r14, %r8
movq 0x10(%rsp), %r9
callq 0xcfe86
movq %rax, 0x20(%rsp)
movq %r12, (%rsp)
movq 0x10(%rsp), %r12
movq %rbx, %rdi
movl %r15d, %esi
movq 0x30(%rsp), %r15
movl %r13d, %edx
movq %r15, %rcx
movq %r14, %r8
movq %r12, %r9
callq 0xcfe86
movq 0x20(%rsp), %rcx
cmpq %rax, %rcx
jne 0xcfd10
xorl %r13d, %r13d
cmpq %r15, %rbp
movq %rbp, %r8
jne 0xcfcfb
cmpq $0x100, %rcx            # imm = 0x100
jae 0xcfd40
incq %r12
cmpq %r12, 0x48(%rsp)
jne 0xcfc71
movq 0x40(%rsp), %r12
jmp 0xcfd40
cmpl $0x1, 0x8(%rsp)
jne 0xcfd30
cmpq $0x100, %rcx            # imm = 0x100
jb 0xcfd30
cmpq $0x100, %rax            # imm = 0x100
jb 0xcfd30
xorl %r13d, %r13d
cmpq %rcx, %rax
jmp 0xcfd36
xorl %r13d, %r13d
cmpq %rax, %rcx
sbbl %r13d, %r13d
orl $0x1, %r13d
movq %rbp, %r8
movl 0xc(%rsp), %ebx
cmpl %r13d, %ebx
jne 0xcfd64
movl 0x50(%rsp), %eax
cmpq %rax, %r12
jne 0xcfd64
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %esi, %esi
cmpl $0x1, 0x8(%rsp)
leaq 0x3ba20(%rip), %rax     # 0x10b792
leaq 0x24e36(%rip), %rcx     # 0xf4baf
movq %rcx, %rdx
cmovneq %rax, %rdx
setne %sil
movl %esi, 0x10(%rsp)
xorl %ebp, %ebp
cmpl $0x2, 0x1c(%rsp)
sete %bpl
movq %r15, %r9
movq 0x81223(%rip), %r15     # 0x150fc0
movq (%r15), %rdi
cmoveq %rax, %rcx
leaq 0x36e0a(%rip), %rsi     # 0x106bb5
movq %r8, %r14
xorl %eax, %eax
callq 0xb8d0
movq (%r15), %rdi
leaq 0x36e21(%rip), %rsi     # 0x106be0
movl %ebx, %edx
movl %r13d, %ecx
xorl %eax, %eax
callq 0xb8d0
movq (%r15), %rdi
movl 0x50(%rsp), %edx
leaq 0x36e19(%rip), %rsi     # 0x106bf2
movq %r12, %rcx
xorl %eax, %eax
callq 0xb8d0
movq (%r15), %rdi
movl 0x10(%rsp), %r12d
movl %r12d, %esi
movl %ebp, %edx
movq 0x38(%rsp), %rbx
movq %rbx, %rcx
movq %r14, %r8
callq 0xc5b2a
movq 0x78(%rsp), %rsi
leaq 0xe0(%rsp), %r14
movq %r14, %rdi
callq 0xcfa3a
movq (%r15), %rdi
movl 0x80(%rsp), %ecx
leaq 0x36def(%rip), %rsi     # 0x106c15
movq %r14, %rdx
xorl %eax, %eax
callq 0xb8d0
movq (%r15), %rdi
movl %r12d, %esi
movl %ebp, %edx
movq %rbx, %rcx
movq 0x30(%rsp), %r8
callq 0xc5b2a
movq 0x60(%rsp), %rsi
leaq 0x90(%rsp), %rbx
movq %rbx, %rdi
callq 0xcfa3a
movq (%r15), %rdi
movl 0x68(%rsp), %ecx
leaq 0x36dc8(%rip), %rsi     # 0x106c30
movq %rbx, %rdx
xorl %eax, %eax
callq 0xb8d0
movl $0x2, %edi
callq 0xb7b0
callq 0x2eaee
callq 0x2eb27