// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/bed_parser.c
// Function: track_rest
static int track_rest(GtBEDParser *bed_parser, GtIO *bed_file, GtError *err)
{
  char cc;
  int had_err = 0;
  gt_error_check(err);
  bed_parser->offset = 0; /* reset offset for new track line */
  if (bed_separator(bed_file)) /* skip to first attribute=value pair */
    had_err = skip_blanks(bed_file, err);
  while (!had_err &&
         (cc = gt_io_peek(bed_file)) != GT_END_OF_LINE &&
         cc != GT_CARRIAGE_RETURN) {
    /* parse attribute */
    word(bed_parser->word, bed_file);
    had_err = gt_io_expect(bed_file, PAIR_SEPARATOR, err);
    /* parse value */
    if (!had_err) {
      if (gt_io_peek(bed_file) == QUOTE_CHAR)
        had_err = quoted_word(bed_parser->another_word, bed_file, err);
      else
        word(bed_parser->another_word, bed_file);
    }
    /* process offset if necessary */
    if (!had_err && !strcmp(gt_str_get(bed_parser->word), OFFSET_KEYWORD)) {
      if (gt_parse_word(&bed_parser->offset,
                         gt_str_get(bed_parser->another_word))) {
        gt_error_set(err,
                     "file \"%s\": line "GT_WU": could not parse offset value "
                     "'%s'", gt_io_get_filename(bed_file),
                     gt_io_get_line_number(bed_file),
                     gt_str_get(bed_parser->another_word));
        had_err = -1;
      }
    }
    /* skip blanks up to next attribute or end-of-line */
    if (!had_err && bed_separator(bed_file))
      had_err = skip_blanks(bed_file, err);
  }
  /* the end of the line should now be reached */
  if (!had_err)
    had_err = gt_io_expect(bed_file, GT_END_OF_LINE, err);
  return had_err;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movl $0x0, 0x28(%rsp)
cmpq $0x0, 0x30(%rsp)
je 0x1353ab
movq 0x30(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x135373
jmp 0x1353ab
movq 0x506c26(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3e0c8f(%rip), %rsi    # 0x516013
leaq 0x3e0e34(%rip), %rdx    # 0x5161bf
leaq 0x4146dd(%rip), %rcx    # 0x549a6f
leaq 0x4145cb(%rip), %r8     # 0x549964
movl $0xd9, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1353ad
movq 0x40(%rsp), %rax
movq $0x0, 0x40(%rax)
movq 0x38(%rsp), %rdi
callq 0x135e80
testb $0x1, %al
jne 0x1353ca
jmp 0x1353dd
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x135ed0
movl %eax, 0x28(%rsp)
jmp 0x1353df
xorl %eax, %eax
cmpl $0x0, 0x28(%rsp)
movb %al, 0x27(%rsp)
jne 0x135417
movq 0x38(%rsp), %rdi
callq 0xe7300
movb %al, 0x2f(%rsp)
movsbl %al, %ecx
xorl %eax, %eax
cmpl $0xa, %ecx
movb %al, 0x27(%rsp)
je 0x135417
movsbl 0x2f(%rsp), %eax
cmpl $0xd, %eax
setne %al
movb %al, 0x27(%rsp)
movb 0x27(%rsp), %al
testb $0x1, %al
jne 0x135424
jmp 0x135587
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x38(%rsp), %rsi
callq 0x1352b0
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rdx
movl $0x3d, %esi
callq 0xe7500
movl %eax, 0x28(%rsp)
cmpl $0x0, 0x28(%rsp)
jne 0x13549b
movq 0x38(%rsp), %rdi
callq 0xe7300
movsbl %al, %eax
cmpl $0x22, %eax
jne 0x135486
movq 0x40(%rsp), %rax
movq 0x20(%rax), %rdi
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq 0x135fd0
movl %eax, 0x28(%rsp)
jmp 0x135499
movq 0x40(%rsp), %rax
movq 0x20(%rax), %rdi
movq 0x38(%rsp), %rsi
callq 0x1352b0
jmp 0x13549b
cmpl $0x0, 0x28(%rsp)
jne 0x135558
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
leaq 0x404119(%rip), %rsi    # 0x5395d7
callq 0x19980
cmpl $0x0, %eax
jne 0x135558
movq 0x40(%rsp), %rax
addq $0x40, %rax
movq %rax, 0x18(%rsp)
movq 0x40(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
movq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0xf85a0
cmpl $0x0, %eax
je 0x135556
movq 0x30(%rsp), %rax
movq %rax, (%rsp)
movq 0x38(%rsp), %rdi
callq 0xe7440
movq %rax, 0x8(%rsp)
movq 0x38(%rsp), %rdi
callq 0xe73f0
movq %rax, 0x10(%rsp)
movq 0x40(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
movq (%rsp), %rdi
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
movq %rax, %r8
leaq 0x414533(%rip), %rsi    # 0x549a7a
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x28(%rsp) # imm = 0xFFFFFFFF
jmp 0x135558
cmpl $0x0, 0x28(%rsp)
jne 0x135582
movq 0x38(%rsp), %rdi
callq 0x135e80
testb $0x1, %al
jne 0x13556f
jmp 0x135582
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x135ed0
movl %eax, 0x28(%rsp)
jmp 0x1353df
cmpl $0x0, 0x28(%rsp)
jne 0x1355a6
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rdx
movl $0xa, %esi
callq 0xe7500
movl %eax, 0x28(%rsp)
movl 0x28(%rsp), %eax
addq $0x48, %rsp
retq
nop