// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/bed_parser.c
// Function: parse_bed_range
static int parse_bed_range(GtRange *range, GtStr *start, GtStr *end,
                           GtWord offset, GtIO *bed_file, bool thick,
                           GtError *err)
{
  int had_err;
  gt_error_check(err);
  had_err = gt_parse_range(range, gt_str_get(start), gt_str_get(end),
                           gt_io_get_line_number(bed_file),
                           gt_io_get_filename(bed_file), err);
  /* BED has a weird numbering scheme: positions are 0-based, but the end
     position is not part of the feature. Transform to 1-based coordinates. */
  range->start++;
  /* Ranges defining a 'thick' region sometimes come with length 0 to
     designate that there are no thick regions. So do not fail here and
     handle that case later. */
  if (!thick) {
    if (!had_err && range->start > range->end) {
      gt_error_set(err, "file \"%s\": line "GT_WU": BED feature has length 0",
                   gt_io_get_filename(bed_file),
                   gt_io_get_line_number(bed_file));
      had_err = -1;
    }
  }
  if (offset)
    *range = gt_range_offset(range, offset);
  return had_err;
}

// Assembly:
subq $0x78, %rsp
movb %r9b, %al
movq 0x80(%rsp), %r9
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq %rdx, 0x60(%rsp)
movq %rcx, 0x58(%rsp)
movq %r8, 0x50(%rsp)
andb $0x1, %al
movb %al, 0x4f(%rsp)
cmpq $0x0, 0x80(%rsp)
je 0x136264
movq 0x80(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x13622c
jmp 0x136264
movq 0x505d6d(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3dfdd6(%rip), %rsi    # 0x516013
leaq 0x3dff7b(%rip), %rdx    # 0x5161bf
leaq 0x413912(%rip), %rcx    # 0x549b5d
leaq 0x413712(%rip), %r8     # 0x549964
movl $0x105, %r9d            # imm = 0x105
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x136266
movq 0x70(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x68(%rsp), %rdi
callq 0x11dee0
movq %rax, 0x20(%rsp)
movq 0x60(%rsp), %rdi
callq 0x11dee0
movq %rax, 0x28(%rsp)
movq 0x50(%rsp), %rdi
callq 0xe73f0
movl %eax, 0x34(%rsp)
movq 0x50(%rsp), %rdi
callq 0xe7440
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movl 0x34(%rsp), %ecx
movq %rax, %r8
movq 0x80(%rsp), %r9
callq 0xf88c0
movl %eax, 0x48(%rsp)
movq 0x70(%rsp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
testb $0x1, 0x4f(%rsp)
jne 0x136348
cmpl $0x0, 0x48(%rsp)
jne 0x136346
movq 0x70(%rsp), %rax
movq (%rax), %rax
movq 0x70(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jbe 0x136346
movq 0x80(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x50(%rsp), %rdi
callq 0xe7440
movq %rax, 0x10(%rsp)
movq 0x50(%rsp), %rdi
callq 0xe73f0
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rdx
movq %rax, %rcx
leaq 0x413836(%rip), %rsi    # 0x549b6d
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x48(%rsp) # imm = 0xFFFFFFFF
jmp 0x136348
cmpq $0x0, 0x58(%rsp)
je 0x13638a
movq 0x70(%rsp), %rax
movq %rax, (%rsp)
movq 0x70(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0x107830
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, 0x38(%rsp)
movq %rdx, 0x40(%rsp)
movq 0x38(%rsp), %rcx
movq %rcx, (%rax)
movq 0x40(%rsp), %rcx
movq %rcx, 0x8(%rax)
movl 0x48(%rsp), %eax
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)