// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/seqid2seqnum_mapping.c
// Function: seqid_info_get
static int seqid_info_get(SeqidInfo *seqid_info, GtUword *seqnum,
                          GtUword *filenum, GtRange *outrange,
                          const GtRange *inrange,
                          GT_UNUSED const char *filename,
                          const char *seqid, GtError *err)
{
  SeqidInfoElem *seqid_info_elem;
  GtUword i;
  gt_error_check(err);
  gt_assert(seqid_info && seqnum && outrange);
  for (i = 0; i < gt_array_size(seqid_info); i++) {
    seqid_info_elem = gt_array_get(seqid_info, i);
    if (seqid_info_elem->descrange.end == GT_UNDEF_UWORD ||
        (inrange && gt_range_contains(&seqid_info_elem->descrange, inrange))) {
      *seqnum = seqid_info_elem->seqnum;
      *filenum = seqid_info_elem->filenum;
      *outrange = seqid_info_elem->descrange;
      return 0;
    }
  }
  gt_error_set(err,
               "cannot find a sequence with ID \"%s\" "
               "{range " GT_WU "," GT_WU ")",
               seqid, inrange->start, inrange->end);
  return -1;
}

// Assembly:
subq $0x58, %rsp
movq 0x68(%rsp), %rax
movq 0x60(%rsp), %rax
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
movq %rdx, 0x38(%rsp)
movq %rcx, 0x30(%rsp)
movq %r8, 0x28(%rsp)
movq %r9, 0x20(%rsp)
cmpq $0x0, 0x68(%rsp)
je 0xeb9fc
movq 0x68(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0xeb9c4
jmp 0xeb9fc
movq 0xc860d(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x72691(%rip), %rsi     # 0x15e066
leaq 0x72c6c(%rip), %rdx     # 0x15e648
leaq 0x8eb0e(%rip), %rcx     # 0x17a4f1
leaq 0x8e95c(%rip), %r8      # 0x17a346
movl $0x56, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xeb9fe
jmp 0xeba00
cmpq $0x0, 0x48(%rsp)
je 0xeba18
cmpq $0x0, 0x40(%rsp)
je 0xeba18
cmpq $0x0, 0x30(%rsp)
jne 0xeba50
movq 0xc85b9(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x7263d(%rip), %rsi     # 0x15e066
leaq 0x8ead0(%rip), %rdx     # 0x17a500
leaq 0x8eaba(%rip), %rcx     # 0x17a4f1
leaq 0x8e908(%rip), %r8      # 0x17a346
movl $0x57, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xeba52
movq $0x0, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x48(%rsp), %rdi
callq 0x76490
movq %rax, %rcx
movq 0x8(%rsp), %rax
cmpq %rcx, %rax
jae 0xebb1a
movq 0x48(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x75c80
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
cmpq $-0x1, 0x18(%rax)
je 0xebac1
cmpq $0x0, 0x28(%rsp)
je 0xebb05
movq 0x18(%rsp), %rdi
addq $0x10, %rdi
movq 0x28(%rsp), %rsi
callq 0x93ea0
testb $0x1, %al
jne 0xebac1
jmp 0xebb05
movq 0x18(%rsp), %rax
movq (%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x38(%rsp), %rax
movq %rcx, (%rax)
movq 0x30(%rsp), %rax
movq 0x18(%rsp), %rcx
movq 0x10(%rcx), %rdx
movq %rdx, (%rax)
movq 0x18(%rcx), %rcx
movq %rcx, 0x8(%rax)
movl $0x0, 0x54(%rsp)
jmp 0xebb4b
jmp 0xebb07
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0xeba5b
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %rdx
movq 0x28(%rsp), %rax
movq (%rax), %rcx
movq 0x28(%rsp), %rax
movq 0x8(%rax), %r8
leaq 0x8e9e5(%rip), %rsi     # 0x17a521
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
movl 0x54(%rsp), %eax
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)