// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/string_matching.c
// Function: gt_string_matching_shift_and
void gt_string_matching_shift_and(const char *s, GtUword n,
                                  const char *p, GtUword m,
                                  GtProcessMatch process_match, void *data)
{
  GtBittab *D, *B[UCHAR_MAX] = { NULL };
  GtUword i, j;
  gt_assert(s && p);
  if (m > n || !m || !n) /* no match possible */
    return;
  /* preprocessing */
  for (j = 0; j < m; j++) {
    if (!B[(unsigned) p[j]])
      B[(unsigned) p[j]] = gt_bittab_new(m);
    gt_bittab_set_bit(B[(unsigned) p[j]], j);
  }
  /* searching */
  D = gt_bittab_new(m);
  for (i = 0; i < n; i++) {
    gt_bittab_shift_left_equal(D);
    gt_bittab_set_bit(D, 0);
    if (B[(unsigned) s[i]])
      gt_bittab_and_equal(D, B[(unsigned) s[i]]);
    else
      gt_bittab_unset(D);
    if (gt_bittab_bit_is_set(D, m - 1) && process_match) {
      if (process_match(i - m + 1, data))
        break;
    }
  }
  /* free */
  for (i = 0; i < UCHAR_MAX; i++)
    gt_bittab_delete(B[i]);
  gt_bittab_delete(D);
}

// Assembly:
subq $0x848, %rsp            # imm = 0x848
movq %rdi, 0x840(%rsp)
movq %rsi, 0x838(%rsp)
movq %rdx, 0x830(%rsp)
movq %rcx, 0x828(%rsp)
movq %r8, 0x820(%rsp)
movq %r9, 0x818(%rsp)
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
movl $0x7f8, %edx            # imm = 0x7F8
callq 0x19360
cmpq $0x0, 0x840(%rsp)
je 0x1ea0ae
cmpq $0x0, 0x830(%rsp)
jne 0x1ea0e6
movq 0x451eeb(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x32bf54(%rip), %rsi    # 0x516013
leaq 0x37e077(%rip), %rdx    # 0x56813d
leaq 0x37e0c4(%rip), %rcx    # 0x568191
leaq 0x37e087(%rip), %r8     # 0x56815b
movl $0x82, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1ea0e8
movq 0x828(%rsp), %rax
cmpq 0x838(%rsp), %rax
ja 0x1ea110
cmpq $0x0, 0x828(%rsp)
je 0x1ea110
cmpq $0x0, 0x838(%rsp)
jne 0x1ea115
jmp 0x1ea2e4
movq $0x0, (%rsp)
movq (%rsp), %rax
cmpq 0x828(%rsp), %rax
jae 0x1ea19a
movq 0x830(%rsp), %rax
movq (%rsp), %rcx
movsbl (%rax,%rcx), %eax
movl %eax, %eax
cmpq $0x0, 0x10(%rsp,%rax,8)
jne 0x1ea16c
movq 0x828(%rsp), %rdi
callq 0x89a20
movq %rax, %rcx
movq 0x830(%rsp), %rax
movq (%rsp), %rdx
movsbl (%rax,%rdx), %eax
movl %eax, %eax
movq %rcx, 0x10(%rsp,%rax,8)
movq 0x830(%rsp), %rax
movq (%rsp), %rcx
movsbl (%rax,%rcx), %eax
movl %eax, %eax
movq 0x10(%rsp,%rax,8), %rdi
movq (%rsp), %rsi
callq 0x89b00
movq (%rsp), %rax
addq $0x1, %rax
movq %rax, (%rsp)
jmp 0x1ea11d
movq 0x828(%rsp), %rdi
callq 0x89a20
movq %rax, 0x810(%rsp)
movq $0x0, 0x8(%rsp)
movq 0x8(%rsp), %rax
cmpq 0x838(%rsp), %rax
jae 0x1ea2a4
movq 0x810(%rsp), %rdi
callq 0x8a480
movq 0x810(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x89b00
movq 0x840(%rsp), %rax
movq 0x8(%rsp), %rcx
movsbl (%rax,%rcx), %eax
movl %eax, %eax
cmpq $0x0, 0x10(%rsp,%rax,8)
je 0x1ea22b
movq 0x810(%rsp), %rdi
movq 0x840(%rsp), %rax
movq 0x8(%rsp), %rcx
movsbl (%rax,%rcx), %eax
movl %eax, %eax
movq 0x10(%rsp,%rax,8), %rsi
callq 0x8a280
jmp 0x1ea238
movq 0x810(%rsp), %rdi
callq 0x8a640
movq 0x810(%rsp), %rdi
movq 0x828(%rsp), %rsi
subq $0x1, %rsi
callq 0x8a780
testb $0x1, %al
jne 0x1ea257
jmp 0x1ea28f
cmpq $0x0, 0x820(%rsp)
je 0x1ea28f
movq 0x820(%rsp), %rax
movq 0x8(%rsp), %rdi
subq 0x828(%rsp), %rdi
addq $0x1, %rdi
movq 0x818(%rsp), %rsi
callq *%rax
testb $0x1, %al
jne 0x1ea28b
jmp 0x1ea28d
jmp 0x1ea2a4
jmp 0x1ea28f
jmp 0x1ea291
movq 0x8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x1ea1b8
movq $0x0, 0x8(%rsp)
cmpq $0xff, 0x8(%rsp)
jae 0x1ea2d7
movq 0x8(%rsp), %rax
movq 0x10(%rsp,%rax,8), %rdi
callq 0x8af40
movq 0x8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x1ea2ad
movq 0x810(%rsp), %rdi
callq 0x8af40
addq $0x848, %rsp            # imm = 0x848
retq
nopl (%rax)