// File: /workspace/github_c_makefile_star2_O3/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 $0x1b8, %rsp            # imm = 0x1B8
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
testq %rdx, %rdx
je 0xb3903
movq %rbx, %rdi
callq 0xfcc32
testb %al, %al
jne 0xb3dd3
callq 0x11ac6c
leaq 0x40(%rsp), %rdi
movq %rax, 0x20(%rdi)
leaq 0x14(%rsp), %rsi
movl %ebp, %edx
movq %r14, %rcx
movq %rbx, %r8
jmp 0xb391e
callq 0x11ac6c
leaq 0x40(%rsp), %rdi
movq %rax, 0x20(%rdi)
leaq 0x14(%rsp), %rsi
movl %ebp, %edx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0xb3df1
movl %eax, %r14d
xorl %r15d, %r15d
movl $0x0, %r12d
testl %eax, %eax
jne 0xb3d98
cmpl %ebp, 0x14(%rsp)
jne 0xb3dd8
movzbl 0x59(%rsp), %ebp
shll $0x6, %ebp
orl $0x3, %ebp
movq 0x60(%rsp), %rdi
callq 0x11b0a1
xorl %r12d, %r12d
leaq 0xb8(%rsp), %rdi
movl %ebp, %esi
movq %rax, %rdx
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x1a2288
movl %eax, %ebp
testl %eax, %eax
jne 0xb3d86
movq 0xb8(%rsp), %rdi
callq 0xe7b9c
movq %rax, 0x18(%rsp)
cmpb $0x1, 0x59(%rsp)
movl %r14d, 0x3c(%rsp)
movl %ebp, 0x38(%rsp)
jne 0xb39b0
movq 0x138(%rsp), %rdi
callq 0x18c2e1
movq %rax, 0x68(%rsp)
jmp 0xb39b9
movq $0x0, 0x68(%rsp)
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0xb8(%rsp), %rdx
movq %rbx, %rcx
callq 0x1a09fc
movq %rax, 0x28(%rsp)
movq 0xb8(%rsp), %rdi
movl 0x100(%rsp), %esi
xorl %edx, %edx
callq 0xe91b2
movq %rax, %r14
movq 0xb8(%rsp), %rdi
movl 0x100(%rsp), %esi
xorl %edx, %edx
callq 0xe91b2
movq %rax, %rbp
movq 0xb8(%rsp), %rdi
callq 0xebcd9
movq %rax, 0x70(%rsp)
cmpq $0x0, 0x50(%rsp)
movq 0x18(%rsp), %rbx
je 0xb3d4c
xorl %r12d, %r12d
xorl %r15d, %r15d
xorl %r13d, %r13d
movq $0x0, 0x20(%rsp)
leaq 0x8(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x1a0b0e
movq %rax, %r8
cmpb $0x1, 0x58(%rsp)
movq %rax, 0x30(%rsp)
jne 0xb3a88
movq 0x405474(%rip), %rax    # 0x4b8ed8
movq (%rax), %rsi
movq 0x8(%rsp), %rcx
movq 0x70(%rsp), %rdi
movq %r8, %rdx
callq 0xd1412
movl $0xa, %edi
callq 0x17a20
movq 0x30(%rsp), %r8
cmpb $0x1, 0x59(%rsp)
jne 0xb3c4d
movq 0x8(%rsp), %rcx
movl 0x130(%rsp), %esi
cmpq %rsi, %rcx
movq %r12, (%rsp)
jae 0xb3b8d
movq 0x138(%rsp), %rdi
movq %r8, %rdx
callq 0x18eb50
movq %rax, %r15
leaq 0x80(%rsp), %rdi
movq %rax, %rsi
callq 0x18ebff
testb %al, %al
je 0xb3b80
movq %rbx, %r12
cmpq %rbx, %r12
jne 0xb3af5
movq 0x110(%rsp), %rax
movq 0x88(%rsp), %rcx
movq (%rax,%rcx,8), %r12
jmp 0xb3b68
movq 0x88(%rsp), %rbx
cmpq 0x90(%rsp), %rbx
ja 0xb3b63
movq 0x8(%rsp), %r9
movq 0xb8(%rsp), %rdi
movl 0x100(%rsp), %esi
movq 0x110(%rsp), %rax
leaq 0x78(%rsp), %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
pushq %rbp
pushq %r14
pushq (%rax,%rbx,8)
pushq %r12
callq 0xedc49
addq $0x20, %rsp
testl %eax, %eax
jne 0xb3dce
movq 0x78(%rsp), %r9
cmpq 0x8(%rsp), %r9
jne 0xb3dce
incq %rbx
cmpq 0x90(%rsp), %rbx
jbe 0xb3b0c
movq 0x18(%rsp), %rbx
leaq 0x80(%rsp), %rdi
movq %r15, %rsi
callq 0x18ebff
testb %al, %al
jne 0xb3ada
movq %r15, %rdi
callq 0x18ec6f
jmp 0xb3c46
movl %esi, %eax
decl %eax
js 0xb3bc0
movl $0x1, %eax
xorl %r12d, %r12d
movq 0x68(%rsp), %rdi
decl %esi
movzbl (%r8,%rsi), %ecx
cmpq $0xfd, %rcx
ja 0xb3bc5
movq (%rdi,%rsi,8), %rdx
addq (%rdx,%rcx,8), %r12
incl %eax
testl %esi, %esi
jg 0xb3ba0
jmp 0xb3bd2
xorl %r12d, %r12d
jmp 0xb3bd2
movq 0x20(%rsp), %r12
testl %eax, %eax
jne 0xb3dec
movq 0x138(%rsp), %rsi
leaq 0xa0(%rsp), %rdi
movq %r12, %rdx
callq 0x18bf15
movq 0xa8(%rsp), %rax
testq %rax, %rax
je 0xb3c41
movq 0xb8(%rsp), %rdi
movq 0x110(%rsp), %rsi
movq 0xa0(%rsp), %rdx
leaq (%rax,%rdx), %rcx
decq %rcx
movl 0x130(%rsp), %r8d
movl 0x100(%rsp), %r9d
pushq 0x8(%rsp)
pushq 0x38(%rsp)
callq 0x1a3e08
addq $0x10, %rsp
movq %rax, %r15
movq %r12, 0x20(%rsp)
jmp 0xb3c49
movq %r12, 0x20(%rsp)
xorl %r15d, %r15d
movq (%rsp), %r12
movb 0x5a(%rsp), %al
cmpb $0x1, %al
jne 0xb3c8d
movq 0xb8(%rsp), %rdi
movq 0x110(%rsp), %rsi
movl 0x100(%rsp), %r9d
xorl %edx, %edx
movq %rbx, %rcx
xorl %r8d, %r8d
pushq 0x8(%rsp)
pushq 0x38(%rsp)
callq 0x1a3e08
addq $0x10, %rsp
movq %rax, %r13
movb 0x5a(%rsp), %al
testb $0x1, %al
je 0xb3ce0
cmpb $0x1, 0x59(%rsp)
jne 0xb3ce0
movq %r12, (%rsp)
movq %r15, %rdi
callq 0x1a3f17
movl %eax, %r12d
movq %r13, %rdi
callq 0x1a3f17
testb %r12b, %r12b
je 0xb3cc1
testb %al, %al
movq (%rsp), %r12
jne 0xb3ce0
jmp 0xb3de7
testb %al, %al
jne 0xb3de2
movq %r15, %rdi
movq %r13, %rsi
callq 0x1a3f2b
testb %al, %al
movq (%rsp), %r12
je 0xb3ddd
cmpb $0x1, 0x59(%rsp)
jne 0xb3d10
testq %r15, %r15
leaq 0x98(%rsp), %rbx
je 0xb3d18
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1a3ee5
testb %al, %al
jne 0xb3cf4
movq %r15, %rdi
callq 0x1a3f54
xorl %r15d, %r15d
jmp 0xb3d18
leaq 0x98(%rsp), %rbx
cmpb $0x1, 0x5a(%rsp)
jne 0xb3d39
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1a3ee5
testb %al, %al
jne 0xb3d1f
movq %r13, %rdi
callq 0x1a3f54
xorl %r13d, %r13d
incq %r12
cmpq 0x50(%rsp), %r12
movq 0x18(%rsp), %rbx
jb 0xb3a3f
movq %r14, %rdi
callq 0xe9204
movq %rbp, %rdi
callq 0xe9204
cmpb $0x1, 0x58(%rsp)
jne 0xb3d6d
movq 0x28(%rsp), %rdi
callq 0x1a0c15
movq 0x28(%rsp), %rdi
callq 0x1a0cd4
movl 0x3c(%rsp), %r14d
xorl %r15d, %r15d
xorl %r12d, %r12d
movl 0x38(%rsp), %ebp
leaq 0xb8(%rsp), %rdi
callq 0x1a1540
negl %ebp
sbbl %r12d, %r12d
movq 0x60(%rsp), %rdi
callq 0x11bdbf
cmpl $0x2, %r14d
je 0xb3db9
cmpl $0x1, %r14d
jne 0xb3db6
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
jmp 0xb3db9
movl %r12d, %r15d
movl %r15d, %eax
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1d3b3
callq 0x1d308
callq 0x1d341
callq 0x1d3ec
callq 0x1d411
callq 0x1d436
callq 0x1d37a