// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/tools/gt_patternmatch.c
// Function: gt_patternmatch
int gt_patternmatch(int argc, const char **argv, GtError *err)
{
  bool haserr = false;
  int parsed_args;
  Pmatchoptions pmopt;
  GtOPrval oprval;

  gt_error_check(err);

  pmopt.indexname = gt_str_new();
  oprval = parse_options(&pmopt,&parsed_args, argc, argv, err);
  if (oprval == GT_OPTION_PARSER_OK)
  {
    gt_assert(parsed_args == argc);
    if (callpatternmatcher(&pmopt,err) != 0)
    {
      haserr = true;
    }
  }
  gt_str_delete(pmopt.indexname);
  if (oprval == GT_OPTION_PARSER_REQUESTS_EXIT)
  {
    return 0;
  }
  if (oprval == GT_OPTION_PARSER_ERROR)
  {
    return -1;
  }
  return haserr ? -1 : 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1c8, %rsp            # imm = 0x1C8
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
testq %rdx, %rdx
je 0x37332
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x37972
callq 0xacb84
movq %rax, 0x38(%rsp)
testq %rbx, %rbx
je 0x37351
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x379a0
leaq 0x2baf56(%rip), %rdi    # 0x2f22ae
leaq 0x2baf67(%rip), %rsi    # 0x2f22c6
callq 0x97df5
movq %rax, %r15
leaq 0x2aef5e(%rip), %rsi    # 0x2e62cc
movq %rax, %rdi
callq 0x98288
leaq 0x2baf62(%rip), %rdi    # 0x2f22df
leaq 0x2baf61(%rip), %rsi    # 0x2f22e5
leaq 0x18(%rsp), %rdx
pushq $0x14
popq %rcx
callq 0x9a9e6
movq %r15, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x20(%rsp), %rdx
leaq 0x2baf5f(%rip), %rdi    # 0x2f2307
leaq 0x2baf5e(%rip), %rsi    # 0x2f230d
pushq $0x1e
popq %rcx
callq 0x9a9e6
movq %r15, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x28(%rsp), %rdx
leaq 0x2baf73(%rip), %rdi    # 0x2f2341
leaq 0x2baf5a(%rip), %rsi    # 0x2f232f
movl $0x186a0, %ecx          # imm = 0x186A0
callq 0x9a9e6
movq %r15, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x30(%rsp), %rdx
leaq 0x2c4273(%rip), %rdi    # 0x2fb669
leaq 0x2baf4c(%rip), %rsi    # 0x2f2349
xorl %r13d, %r13d
xorl %ecx, %ecx
callq 0x9a997
movq %r15, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x31(%rsp), %rdx
leaq 0x3077ed(%rip), %rdi    # 0x33ec0b
leaq 0x2baf3b(%rip), %rsi    # 0x2f2360
xorl %ecx, %ecx
callq 0x9a997
movq %r15, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x32(%rsp), %r12
leaq 0x2baf37(%rip), %rdi    # 0x2f237a
leaq 0x2baf34(%rip), %rsi    # 0x2f237e
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x9a997
movq %r15, %rdi
movq %rax, %rsi
callq 0x97f31
movq 0x6(%r12), %rdx
leaq 0x31c468(%rip), %rdi    # 0x3538d3
leaq 0x2baf20(%rip), %rsi    # 0x2f2392
xorl %ecx, %ecx
callq 0x9ad12
movq %rax, %r12
movq %r15, %rdi
movq %rax, %rsi
callq 0x97f31
movq %r12, %rdi
callq 0x9ae37
leaq 0x7b7ba(%rip), %r8      # 0xb2c50
leaq 0x5c(%rsp), %rsi
movq %r15, %rdi
movl %ebp, %edx
movq %r14, %rcx
movq %rbx, %r9
callq 0x98cb0
movl %eax, %r14d
movq %r15, %rdi
callq 0x9a844
movl $0x0, %r15d
testl %r14d, %r14d
jne 0x37906
cmpl %ebp, 0x5c(%rsp)
jne 0x37a4b
movzbl 0x31(%rsp), %ebp
shll $0x6, %ebp
orl $0x3, %ebp
movq 0x38(%rsp), %rdi
callq 0xad1fa
xorl %r15d, %r15d
leaq 0xc8(%rsp), %rdi
movl %ebp, %esi
movq %rax, %rdx
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x14de4e
movl %eax, %ebp
testl %eax, %eax
jne 0x378f4
movl %ebp, 0x54(%rsp)
movq 0xc8(%rsp), %rdi
callq 0x7055e
movq %rax, 0x48(%rsp)
cmpb $0x1, 0x31(%rsp)
movl %r14d, 0x58(%rsp)
jne 0x3753e
movq 0x148(%rsp), %rdi
callq 0x1359d4
movq %rax, 0x60(%rsp)
jmp 0x37547
movq $0x0, 0x60(%rsp)
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0xc8(%rsp), %rdx
movq %rbx, %rcx
callq 0x14c4d8
movq %rax, 0x40(%rsp)
movq 0xc8(%rsp), %rdi
movl 0x110(%rsp), %esi
movq $0x0, 0x68(%rsp)
xorl %edx, %edx
callq 0x72260
movq %rax, %r14
movq 0xc8(%rsp), %rdi
movl 0x110(%rsp), %esi
xorl %edx, %edx
callq 0x72260
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
callq 0x754dd
movq %rax, 0x78(%rsp)
leaq 0x88(%rsp), %r13
xorl %r12d, %r12d
xorl %r15d, %r15d
xorl %ebp, %ebp
cmpq 0x28(%rsp), %rbp
jae 0x378ba
leaq 0x8(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x14c5db
movq %rax, %r10
cmpb $0x1, 0x30(%rsp)
movq %rbp, 0x80(%rsp)
jne 0x3761f
movq 0x4008ba(%rip), %rax    # 0x437eb0
movq (%rax), %rsi
movq 0x8(%rsp), %rcx
movq 0x78(%rsp), %rdi
movq %r10, %rdx
movq %r12, %rbp
movq %r10, %r12
callq 0x5703f
pushq $0xa
popq %rdi
callq 0x179c0
movq %r12, %r10
movq %rbp, %r12
cmpb $0x1, 0x31(%rsp)
movq %r10, 0x10(%rsp)
jne 0x377c7
movq 0x8(%rsp), %rcx
movl 0x140(%rsp), %esi
cmpq %rsi, %rcx
jae 0x376ff
movq %r12, 0x70(%rsp)
movq 0x148(%rsp), %rdi
movq %r10, %rdx
callq 0x1380e0
movq %rax, %r15
movq 0x48(%rsp), %r12
leaq 0x98(%rsp), %rdi
movq %r15, %rsi
callq 0x138214
testb %al, %al
je 0x3773a
cmpq 0x48(%rsp), %r12
je 0x376e6
movq 0xa0(%rsp), %rbp
cmpq 0xa8(%rsp), %rbp
ja 0x37661
movq 0xc8(%rsp), %rdi
movl 0x110(%rsp), %esi
movq 0x8(%rsp), %r9
movq 0x120(%rsp), %rax
movq %r13, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
pushq %rbx
pushq %r14
pushq (%rax,%rbp,8)
pushq %r12
callq 0x77ebd
addq $0x20, %rsp
testl %eax, %eax
jne 0x3793a
movq 0x88(%rsp), %rax
incq %rbp
cmpq 0x8(%rsp), %rax
je 0x37688
jmp 0x3793a
movq 0x120(%rsp), %rax
movq 0xa0(%rsp), %rcx
movq (%rax,%rcx,8), %r12
jmp 0x37661
movl %esi, %eax
decq %rsi
decl %eax
xorl %ecx, %ecx
xorl %edx, %edx
movq 0x60(%rsp), %r9
movl %eax, %edi
addl %ecx, %edi
js 0x3775a
leaq (%rsi,%rcx), %rdi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
movzbl (%r10,%rdi), %r8d
cmpq $0xfd, %r8
ja 0x3774c
movq (%r9,%rdi,8), %rdi
addq (%rdi,%r8,8), %rdx
decq %rcx
jmp 0x3770f
movq %r15, %rdi
callq 0x138284
xorl %r15d, %r15d
movq 0x70(%rsp), %r12
jmp 0x377c7
cmpl $0x1, %ecx
movq 0x68(%rsp), %rdx
jne 0x37a1a
movq 0x148(%rsp), %rsi
leaq 0xb0(%rsp), %rdi
movq %rdx, 0x68(%rsp)
callq 0x135534
movq 0xb8(%rsp), %rax
testq %rax, %rax
je 0x377c4
movq 0xc8(%rsp), %rdi
movq 0x120(%rsp), %rsi
movq 0xb0(%rsp), %rdx
leaq (%rax,%rdx), %rcx
decq %rcx
movl 0x140(%rsp), %r8d
movl 0x110(%rsp), %r9d
pushq 0x8(%rsp)
pushq 0x18(%rsp)
callq 0x14fb98
popq %rcx
popq %rdx
movq %rax, %r15
jmp 0x377c7
xorl %r15d, %r15d
movb 0x32(%rsp), %al
cmpb $0x1, %al
jne 0x37807
movq 0xc8(%rsp), %rdi
movq 0x120(%rsp), %rsi
movl 0x110(%rsp), %r9d
xorl %edx, %edx
movq 0x48(%rsp), %rcx
xorl %r8d, %r8d
pushq 0x8(%rsp)
pushq 0x18(%rsp)
callq 0x14fb98
popq %rcx
popq %rdx
movq %rax, %r12
movb 0x32(%rsp), %al
testb $0x1, %al
je 0x37851
cmpb $0x1, 0x31(%rsp)
jne 0x37851
movq %r15, %rdi
callq 0x14fcf1
movb %al, 0x10(%rsp)
movq %r12, %rdi
callq 0x14fcf1
cmpb $0x0, 0x10(%rsp)
je 0x37836
testb %al, %al
jne 0x37851
jmp 0x379e1
testb %al, %al
jne 0x379ce
movq %r15, %rdi
movq %r12, %rsi
callq 0x14fd05
testb %al, %al
je 0x379f6
cmpb $0x1, 0x31(%rsp)
jne 0x37881
testq %r15, %r15
leaq 0x90(%rsp), %rbp
je 0x37889
movq %rbp, %rdi
movq %r15, %rsi
callq 0x14fc8c
testb %al, %al
jne 0x37865
movq %r15, %rdi
callq 0x14fd61
xorl %r15d, %r15d
jmp 0x37889
leaq 0x90(%rsp), %rbp
cmpb $0x1, 0x32(%rsp)
jne 0x378aa
movq %rbp, %rdi
movq %r12, %rsi
callq 0x14fc8c
testb %al, %al
jne 0x37890
movq %r12, %rdi
callq 0x14fd61
xorl %r12d, %r12d
movq 0x80(%rsp), %rbp
incq %rbp
jmp 0x375c3
movq %r14, %rdi
callq 0x722ae
movq %rbx, %rdi
callq 0x722ae
cmpb $0x1, 0x30(%rsp)
jne 0x378db
movq 0x40(%rsp), %rdi
callq 0x14c6d0
movq 0x40(%rsp), %rdi
callq 0x14c781
xorl %r13d, %r13d
movl 0x58(%rsp), %r14d
xorl %r15d, %r15d
movl 0x54(%rsp), %ebp
leaq 0xc8(%rsp), %rdi
callq 0x14d148
negl %ebp
sbbl %r15d, %r15d
movq 0x38(%rsp), %rdi
callq 0xae103
cmpl $0x2, %r14d
je 0x37925
cmpl $0x1, %r14d
jne 0x37922
pushq $-0x1
popq %r13
jmp 0x37925
movl %r15d, %r13d
movl %r13d, %eax
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x400627(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2ad6c8(%rip), %rsi    # 0x2e5013
leaq 0x2baa54(%rip), %rdx    # 0x2f23a6
leaq 0x2baa71(%rip), %rcx    # 0x2f23ca
leaq 0x2ba932(%rip), %r8     # 0x2f2292
movl $0xa4, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x4005ef(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2ad690(%rip), %rsi    # 0x2e5013
leaq 0x2ad835(%rip), %rdx    # 0x2e51bf
leaq 0x2ba8f1(%rip), %rcx    # 0x2f2282
leaq 0x2ba8fa(%rip), %r8     # 0x2f2292
movl $0x133, %r9d            # imm = 0x133
jmp 0x37966
movq 0x4005c1(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2ad662(%rip), %rsi    # 0x2e5013
leaq 0x2ad807(%rip), %rdx    # 0x2e51bf
leaq 0x32a533(%rip), %rcx    # 0x361ef2
leaq 0x2ba8cc(%rip), %r8     # 0x2f2292
movl $0xfd, %r9d
jmp 0x37966
movq 0x400593(%rip), %rax    # 0x437f68
movq (%rax), %rcx
leaq 0x2baa45(%rip), %rdi    # 0x2f2424
jmp 0x379f2
movq 0x400580(%rip), %rax    # 0x437f68
movq (%rax), %rcx
leaq 0x2baa14(%rip), %rdi    # 0x2f2406
pushq $0x1d
jmp 0x37a09
movq 0x40056b(%rip), %rax    # 0x437f68
movq (%rax), %rcx
leaq 0x2baa3b(%rip), %rdi    # 0x2f2442
pushq $0x1e
popq %rsi
pushq $0x1
popq %rdx
callq 0x17f00
pushq $0x2
popq %rdi
callq 0x178f0
movq 0x400547(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2ad5e8(%rip), %rsi    # 0x2e5013
leaq 0x2ba9ab(%rip), %rdx    # 0x2f23dd
leaq 0x2ba991(%rip), %rcx    # 0x2f23ca
leaq 0x2ba852(%rip), %r8     # 0x2f2292
movl $0xaf, %r9d
jmp 0x37966
movq 0x400516(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2ad5b7(%rip), %rsi    # 0x2e5013
leaq 0x2aee5d(%rip), %rdx    # 0x2e68c0
leaq 0x2ba818(%rip), %rcx    # 0x2f2282
leaq 0x2ba821(%rip), %r8     # 0x2f2292
movl $0x139, %r9d            # imm = 0x139
jmp 0x37966