// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/tools/gt_mergeesa.c
// Function: gt_mergeesa
int gt_mergeesa(int argc, const char **argv, GtError *err)
{
  GtStr *storeindex;
  GtStrArray *indexnametab;
  bool haserr = false;
  int parsed_args;

  gt_error_check(err);

  storeindex = gt_str_new();
  indexnametab = gt_str_array_new();
  switch (parse_options(storeindex, indexnametab, &parsed_args, argc, argv,
                        err)) {
    case GT_OPTION_PARSER_OK: break;
    case GT_OPTION_PARSER_ERROR:
         haserr = true; break;
    case GT_OPTION_PARSER_REQUESTS_EXIT: return 0;
  }
  if (!haserr)
  {
    GtUword i;
    GtLogger *logger;

    printf("# storeindex=%s\n",gt_str_get(storeindex));
    for (i=0; i<gt_str_array_size(indexnametab); i++)
    {
      printf("# input=%s\n",gt_str_array_get(indexnametab,i));
    }
    logger = gt_logger_new(false, GT_LOGGER_DEFLT_PREFIX, stdout);
    if (gt_performtheindexmerging(storeindex,
                              indexnametab,
                              logger,
                              err) != 0)
    {
      haserr = true;
    }
    gt_logger_delete(logger);
  }
  gt_str_delete(storeindex);
  gt_str_array_delete(indexnametab);
  return haserr ? -1 : 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r15
movq %rsi, %rbp
movl %edi, %ebx
testq %rdx, %rdx
je 0x34033
movq %r15, %rdi
callq 0x89eb7
testb %al, %al
jne 0x341d9
movl %ebx, 0x4(%rsp)
callq 0xacb84
movq %rax, %rbx
callq 0xae154
movq %rax, %r14
testq %r15, %r15
je 0x3405c
movq %r15, %rdi
callq 0x89eb7
testb %al, %al
jne 0x34203
leaq 0x2bce41(%rip), %rdi    # 0x2f0ea4
leaq 0x2bce61(%rip), %rsi    # 0x2f0ecb
callq 0x97df5
movq %rax, %r12
leaq 0x2b2253(%rip), %rsi    # 0x2e62cc
movq %rax, %rdi
callq 0x98288
leaq 0x31f84b(%rip), %rdi    # 0x3538d3
leaq 0x2bce5a(%rip), %rsi    # 0x2f0ee9
movq %r14, %rdx
callq 0x9ad7e
movq %rax, %r13
movq %rax, %rdi
callq 0x9ae37
movq %r12, %rdi
movq %r13, %rsi
callq 0x97f31
leaq 0x2d19a9(%rip), %rdi    # 0x305a5d
leaq 0x2bce54(%rip), %rsi    # 0x2f0f0f
xorl %r13d, %r13d
movq %rbx, 0x8(%rsp)
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x9ad12
movq %rax, %rbx
movq %rax, %rdi
callq 0x9ae37
movq %r12, %rdi
movq %rbx, %rsi
callq 0x97f31
leaq 0x7eb66(%rip), %r8      # 0xb2c50
leaq 0x14(%rsp), %rsi
movq %r12, %rdi
movl 0x4(%rsp), %edx
movq %rbp, %rcx
movq %r15, %r9
callq 0x98cb0
movl %eax, %ebp
movq %r12, %rdi
callq 0x9a844
cmpl $0x1, %ebp
je 0x3416b
cmpl $0x2, %ebp
je 0x341c7
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0xad1fa
leaq 0x2bcd5a(%rip), %rdi    # 0x2f0e87
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
leaq 0x2bcd5a(%rip), %r12    # 0x2f0e98
xorl %r13d, %r13d
movq %r14, %rdi
callq 0xae61c
cmpq %rax, %r13
jae 0x34176
movq %r14, %rdi
movq %r13, %rsi
callq 0xae386
movq %r12, %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
incq %r13
jmp 0x34141
pushq $-0x1
popq %r13
movq 0x8(%rsp), %r12
jmp 0x341b7
movq 0x403d33(%rip), %rax    # 0x437eb0
movq (%rax), %rdx
leaq 0x2b274d(%rip), %rsi    # 0x2e68d4
xorl %r13d, %r13d
xorl %edi, %edi
callq 0x92b50
movq %rbx, %r12
movq %rax, %rbx
movq %r12, %rdi
movq %r14, %rsi
movq %rax, %rdx
movq %r15, %rcx
callq 0x1b42dc
movl %eax, %ebp
movq %rbx, %rdi
callq 0x92fd0
negl %ebp
sbbl %r13d, %r13d
movq %r12, %rdi
callq 0xae103
movq %r14, %rdi
callq 0xae662
movl %r13d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x403d88(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b0e29(%rip), %rsi    # 0x2e5013
leaq 0x2b0fce(%rip), %rdx    # 0x2e51bf
leaq 0x2bcc6b(%rip), %rcx    # 0x2f0e63
leaq 0x2bcc70(%rip), %r8     # 0x2f0e6f
pushq $0x3f
jmp 0x3422b
movq 0x403d5e(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b0dff(%rip), %rsi    # 0x2e5013
leaq 0x2b0fa4(%rip), %rdx    # 0x2e51bf
leaq 0x32dcd0(%rip), %rcx    # 0x361ef2
leaq 0x2bcc46(%rip), %r8     # 0x2f0e6f
pushq $0x21
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nopl (%rax)