// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_extractseq.c
// Function: process_fastakeyfile
static int process_fastakeyfile(GtStr *fastakeyfile, int argc,
                                const char **argv, GtUword width,
                                GtFile *outfp, GtError *err)
{
  int had_err = 0;
  gt_error_check(err);
  gt_assert(gt_str_length(fastakeyfile));

  if (argc == 0) {
    gt_error_set(err,"option -keys requires at least one file argument");
    had_err = -1;
  }

  if (!had_err)
  {
    const char *indexname = argv[0];

    if (argc == 1 && gt_deskeysfileexists(indexname))
    {
      if (gt_extractkeysfromfastaindex(indexname,fastakeyfile,width,err) != 0)
      {
        had_err = -1;
      }
    } else
    {
      GtStrArray *referencefiletab;
      int i;

      referencefiletab = gt_str_array_new();
      for (i = 0; i < argc; i++)
      {
        gt_str_array_add_cstr(referencefiletab, argv[i]);
      }
      if (gt_extractkeysfromfastafile(true, outfp, width, fastakeyfile,
                                      referencefiletab, err) != 1)
      {
        had_err = -1;
      }
      gt_str_array_delete(referencefiletab);
    }
  }
  return had_err;
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movl %esi, 0x4c(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x30(%rsp)
movq %r9, 0x28(%rsp)
movl $0x0, 0x24(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x35499
movq 0x28(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x35461
jmp 0x35499
movq 0x606b38(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4e0ba1(%rip), %rsi    # 0x516013
leaq 0x4e0d46(%rip), %rdx    # 0x5161bf
leaq 0x4e8313(%rip), %rcx    # 0x51d793
leaq 0x4e80d9(%rip), %r8     # 0x51d560
movl $0xfe, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x3549b
jmp 0x3549d
movq 0x50(%rsp), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
jne 0x354e5
movq 0x606aec(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4e0b55(%rip), %rsi    # 0x516013
leaq 0x4e82e3(%rip), %rdx    # 0x51d7a8
leaq 0x4e82c7(%rip), %rcx    # 0x51d793
leaq 0x4e808d(%rip), %r8     # 0x51d560
movl $0xff, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x354e7
cmpl $0x0, 0x4c(%rsp)
jne 0x35509
movq 0x28(%rsp), %rdi
leaq 0x4e82ca(%rip), %rsi    # 0x51d7c4
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x24(%rsp)
jne 0x355dd
movq 0x40(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x18(%rsp)
cmpl $0x1, 0x4c(%rsp)
jne 0x35560
movq 0x18(%rsp), %rdi
callq 0x251fa0
testb $0x1, %al
jne 0x35538
jmp 0x35560
movq 0x18(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq 0x28(%rsp), %rcx
callq 0x251fc0
cmpl $0x0, %eax
je 0x3555e
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
jmp 0x355db
callq 0x11f5c0
movq %rax, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movl 0xc(%rsp), %eax
cmpl 0x4c(%rsp), %eax
jge 0x355a1
movq 0x10(%rsp), %rdi
movq 0x40(%rsp), %rax
movslq 0xc(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x11f720
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x35572
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq 0x50(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x28(%rsp), %r9
movl $0x1, %edi
callq 0x252520
cmpl $0x1, %eax
je 0x355d1
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
movq 0x10(%rsp), %rdi
callq 0x11fd20
jmp 0x355dd
movl 0x24(%rsp), %eax
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)