// File: /workspace/github_c_makefile_star2_O1/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 0xb5a62
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0xb609e
callq 0x1208f8
movq %rax, 0x40(%rsp)
testq %rbx, %rbx
je 0xb5a81
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0xb60a3
leaq 0x2a584e(%rip), %rdi    # 0x35b2d6
leaq 0x2a585f(%rip), %rsi    # 0x35b2ee
callq 0x10cc4e
movq %rax, %r15
leaq 0x29982e(%rip), %rsi    # 0x34f2cc
movq %rax, %rdi
callq 0x10ceab
leaq 0x2a585a(%rip), %rdi    # 0x35b307
leaq 0x2a5859(%rip), %rsi    # 0x35b30d
leaq 0x20(%rsp), %rdx
movl $0x14, %ecx
callq 0x10f4c7
movq %r15, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x28(%rsp), %rdx
leaq 0x2a5855(%rip), %rdi    # 0x35b32f
leaq 0x2a5854(%rip), %rsi    # 0x35b335
movl $0x1e, %ecx
callq 0x10f4c7
movq %r15, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x30(%rsp), %rdx
leaq 0x2a5867(%rip), %rdi    # 0x35b369
leaq 0x2a584e(%rip), %rsi    # 0x35b357
movl $0x186a0, %ecx          # imm = 0x186A0
callq 0x10f4c7
movq %r15, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x38(%rsp), %rdx
leaq 0x2aec89(%rip), %rdi    # 0x3647b3
leaq 0x2a5840(%rip), %rsi    # 0x35b371
xorl %r13d, %r13d
xorl %ecx, %ecx
callq 0x10f451
movq %r15, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x39(%rsp), %rdx
leaq 0x2f2251(%rip), %rdi    # 0x3a7da3
leaq 0x2a582f(%rip), %rsi    # 0x35b388
xorl %ecx, %ecx
callq 0x10f451
movq %r15, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x3a(%rsp), %r12
leaq 0x2a582b(%rip), %rdi    # 0x35b3a2
leaq 0x2a5828(%rip), %rsi    # 0x35b3a6
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x10f451
movq %r15, %rdi
movq %rax, %rsi
callq 0x10cd10
movq 0x6(%r12), %rdx
leaq 0x306ef4(%rip), %rdi    # 0x3bca93
leaq 0x2a5814(%rip), %rsi    # 0x35b3ba
xorl %ecx, %ecx
callq 0x10f987
movq %rax, %r12
movq %r15, %rdi
movq %rax, %rsi
callq 0x10cd10
movq %r12, %rdi
callq 0x10fa96
leaq 0x6f7fe(%rip), %r8      # 0x1253c8
leaq 0x5c(%rsp), %rsi
movq %r15, %rdi
movl %ebp, %edx
movq %r14, %rcx
movq %rbx, %r9
callq 0x10d796
movq %r15, %rdi
movl %eax, %r15d
callq 0x10f2d0
movl $0x0, %r14d
testl %r15d, %r15d
jne 0xb605e
cmpl %ebp, 0x5c(%rsp)
jne 0xb60a8
movzbl 0x39(%rsp), %ebp
shll $0x6, %ebp
orl $0x3, %ebp
movq 0x40(%rsp), %rdi
callq 0x120d23
movq $0x0, 0x18(%rsp)
leaq 0xb8(%rsp), %rdi
movl %ebp, %esi
movq %rax, %rdx
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x1aab20
movl %eax, %ebp
testl %eax, %eax
jne 0xb5c50
movq 0xb8(%rsp), %rdi
callq 0xec1d8
movq %rax, 0x18(%rsp)
testl %ebp, %ebp
jne 0xb6049
cmpb $0x1, 0x39(%rsp)
movl %r15d, 0x58(%rsp)
movl %ebp, 0x54(%rsp)
jne 0xb5c7c
movq 0x138(%rsp), %rdi
callq 0x194994
movq %rax, 0x60(%rsp)
jmp 0xb5c85
movq $0x0, 0x60(%rsp)
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0xb8(%rsp), %rdx
movq %rbx, %rcx
callq 0x1a91f0
movq %rax, 0x48(%rsp)
movq 0xb8(%rsp), %rdi
movl 0x100(%rsp), %esi
xorl %edx, %edx
callq 0xed76d
movq %rax, %r14
movq 0xb8(%rsp), %rdi
movl 0x100(%rsp), %esi
xorl %edx, %edx
callq 0xed76d
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
callq 0xf02da
movq %rax, 0x70(%rsp)
cmpq $0x0, 0x30(%rsp)
movq 0x18(%rsp), %rbp
je 0xb6012
xorl %eax, %eax
xorl %r15d, %r15d
xorl %r13d, %r13d
movq $0x0, 0x68(%rsp)
movq %rax, (%rsp)
leaq 0x10(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0x1a9308
movq %rax, %r12
cmpb $0x1, 0x38(%rsp)
jne 0xb5d4d
movq 0x40e1ba(%rip), %rax    # 0x4c3ee8
movq (%rax), %rsi
movq 0x10(%rsp), %rcx
movq 0x70(%rsp), %rdi
movq %r12, %rdx
callq 0xd394b
movl $0xa, %edi
callq 0x17a20
cmpb $0x1, 0x39(%rsp)
movq %r12, 0x78(%rsp)
jne 0xb5f09
movq 0x10(%rsp), %rcx
movl 0x130(%rsp), %esi
cmpq %rsi, %rcx
jae 0xb5e51
movq 0x138(%rsp), %rdi
movq %r12, %rdx
callq 0x1971c4
movq %rax, %r15
leaq 0x88(%rsp), %rdi
movq %rax, %rsi
callq 0x197273
testb %al, %al
je 0xb5e44
movq %rbp, %r12
cmpq %rbp, %r12
jne 0xb5dbb
movq 0x110(%rsp), %rax
movq 0x90(%rsp), %rcx
movq (%rax,%rcx,8), %r12
jmp 0xb5e2c
movq 0x90(%rsp), %rbp
cmpq 0x98(%rsp), %rbp
ja 0xb5e27
movq 0xb8(%rsp), %rdi
movl 0x100(%rsp), %esi
movq 0x10(%rsp), %r9
movq 0x110(%rsp), %rax
leaq 0x80(%rsp), %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
pushq %rbx
pushq %r14
pushq (%rax,%rbp,8)
pushq %r12
callq 0xf2285
addq $0x20, %rsp
testl %eax, %eax
jne 0xb6094
movq 0x80(%rsp), %rax
cmpq 0x10(%rsp), %rax
jne 0xb6094
incq %rbp
jmp 0xb5dc3
movq 0x18(%rsp), %rbp
leaq 0x88(%rsp), %rdi
movq %r15, %rsi
callq 0x197273
testb %al, %al
jne 0xb5da0
movq %r15, %rdi
callq 0x1972d9
jmp 0xb5f06
movl %esi, %eax
decl %eax
js 0xb5e8c
movl %esi, %eax
xorl %ecx, %ecx
movq 0x60(%rsp), %r8
movq 0x68(%rsp), %rdx
leal -0x1(%rax), %r9d
movzbl (%r12,%r9), %edi
cmpq $0xfd, %rdi
ja 0xb5e92
movq (%r8,%r9,8), %rax
addq (%rax,%rdi,8), %rcx
movl %r9d, %eax
testl %r9d, %r9d
jg 0xb5e65
movq %rcx, %rdx
jmp 0xb5e8e
xorl %edx, %edx
movl %esi, %eax
jmp 0xb5e94
decl %eax
cmpl %esi, %eax
jne 0xb6099
movq 0x138(%rsp), %rsi
leaq 0xa0(%rsp), %rdi
movq %rdx, 0x68(%rsp)
callq 0x194590
movq 0xa8(%rsp), %rax
testq %rax, %rax
je 0xb5f06
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 0x10(%rsp)
pushq %r12
callq 0x1ac81c
addq $0x10, %rsp
movq %rax, %r15
jmp 0xb5f09
xorl %r15d, %r15d
movq (%rsp), %rax
leaq 0x8(%rsp), %r12
cmpb $0x1, 0x3a(%rsp)
jne 0xb5f59
movq 0xb8(%rsp), %rdi
movq 0x110(%rsp), %rsi
movl 0x100(%rsp), %r9d
xorl %edx, %edx
movq %rbp, %rcx
xorl %r8d, %r8d
pushq 0x10(%rsp)
pushq 0x80(%rsp)
callq 0x1ac81c
leaq 0x18(%rsp), %r12
addq $0x10, %rsp
movq %rax, %r13
movq (%rsp), %rax
cmpb $0x1, 0x3a(%rsp)
jne 0xb5fb5
cmpb $0x1, 0x39(%rsp)
jne 0xb5fb5
movq %r15, %rdi
callq 0x1ac92b
movl %eax, %r12d
movq %r13, %rdi
callq 0x1ac92b
testb %r12b, %r12b
je 0xb5f91
testb %al, %al
movq (%rsp), %rax
leaq 0x8(%rsp), %r12
jne 0xb5fb5
jmp 0xb60b7
testb %al, %al
jne 0xb60b2
movq %r15, %rdi
movq %r13, %rsi
callq 0x1ac93f
testb %al, %al
movq (%rsp), %rax
leaq 0x8(%rsp), %r12
je 0xb60ad
cmpb $0x1, 0x39(%rsp)
jne 0xb5fdf
testq %r15, %r15
je 0xb5fdf
movq %r12, %rdi
movq %r15, %rsi
callq 0x1ac8f9
testb %al, %al
jne 0xb5fc1
movq %r15, %rdi
callq 0x1ac968
xorl %r15d, %r15d
movq (%rsp), %rax
cmpb $0x1, 0x3a(%rsp)
jne 0xb6004
movq %r12, %rdi
movq %r13, %rsi
callq 0x1ac8f9
testb %al, %al
jne 0xb5fe6
movq %r13, %rdi
callq 0x1ac968
xorl %r13d, %r13d
movq (%rsp), %rax
incq %rax
cmpq 0x30(%rsp), %rax
jb 0xb5d0a
movq %r14, %rdi
callq 0xed7bf
movq %rbx, %rdi
callq 0xed7bf
cmpb $0x1, 0x38(%rsp)
jne 0xb6033
movq 0x48(%rsp), %rdi
callq 0x1a9403
movq 0x48(%rsp), %rdi
callq 0x1a94bc
xorl %r13d, %r13d
movl 0x58(%rsp), %r15d
movl 0x54(%rsp), %ebp
leaq 0xb8(%rsp), %rdi
callq 0x1a9e1c
xorl %r14d, %r14d
negl %ebp
sbbl %r14d, %r14d
movq 0x40(%rsp), %rdi
callq 0x121b03
cmpl $0x2, %r15d
je 0xb607f
cmpl $0x1, %r15d
jne 0xb607c
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
jmp 0xb607f
movl %r14d, %r13d
movl %r13d, %eax
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1d5eb
callq 0x1d5b2
callq 0x1d507
callq 0x1d540
callq 0x1d579
callq 0x1d624
callq 0x1d649
callq 0x1d66e