// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x58, %rsp
movl %edi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movb $0x0, 0x2f(%rsp)
cmpq $0x0, 0x40(%rsp)
je 0x464d7
movq 0x40(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x4649f
jmp 0x464d7
movq 0x5f5afa(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4cfb63(%rip), %rsi    # 0x516013
leaq 0x4cfd08(%rip), %rdx    # 0x5161bf
leaq 0x4dba10(%rip), %rcx    # 0x521ece
leaq 0x4dba15(%rip), %r8     # 0x521eda
movl $0x3f, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x464d9
callq 0x11d4a0
movq %rax, 0x38(%rsp)
callq 0x11f5c0
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
movl 0x50(%rsp), %ecx
movq 0x48(%rsp), %r8
movq 0x40(%rsp), %r9
leaq 0x28(%rsp), %rdx
callq 0x46650
movl %eax, %ecx
movl %ecx, 0x14(%rsp)
testl %eax, %eax
je 0x46531
jmp 0x4651b
movl 0x14(%rsp), %eax
subl $0x1, %eax
je 0x46533
jmp 0x46526
movl 0x14(%rsp), %eax
subl $0x2, %eax
je 0x4653a
jmp 0x46547
jmp 0x46547
movb $0x1, 0x2f(%rsp)
jmp 0x46547
movl $0x0, 0x54(%rsp)
jmp 0x4663a
testb $0x1, 0x2f(%rsp)
jne 0x46611
movq 0x38(%rsp), %rdi
callq 0x11dee0
movq %rax, %rsi
leaq 0x4db98c(%rip), %rdi    # 0x521ef2
movb $0x0, %al
callq 0x19070
movq $0x0, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x30(%rsp), %rdi
callq 0x11fcc0
movq %rax, %rcx
movq 0x8(%rsp), %rax
cmpq %rcx, %rax
jae 0x465c7
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x11f8c0
movq %rax, %rsi
leaq 0x4db953(%rip), %rdi    # 0x521f03
movb $0x0, %al
callq 0x19070
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0x46576
movq 0x5f596a(%rip), %rax    # 0x63bf38
movq (%rax), %rdx
xorl %edi, %edi
leaq 0x4d1312(%rip), %rsi    # 0x5178ec
callq 0xe7870
movq %rax, 0x18(%rsp)
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x40(%rsp), %rcx
callq 0x2f2430
cmpl $0x0, %eax
je 0x46607
movb $0x1, 0x2f(%rsp)
movq 0x18(%rsp), %rdi
callq 0xe7ed0
movq 0x38(%rsp), %rdi
callq 0x11f560
movq 0x30(%rsp), %rdi
callq 0x11fd20
movb 0x2f(%rsp), %dl
xorl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, 0x54(%rsp)
movl 0x54(%rsp), %eax
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)