// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/bed_parser.c
// Function: create_block_features
static int create_block_features(GtBEDParser *bed_parser, GtFeatureNode *fn,
                                 GtUword block_count,
                                 GtSplitter *size_splitter,
                                 GtSplitter *start_splitter, GtIO *bed_file,
                                 GtError *err)
{
  GtUword i;
  int had_err = 0;
  gt_assert(fn && block_count && size_splitter && start_splitter);
  gt_assert(gt_splitter_size(size_splitter) == block_count);
  gt_assert(gt_splitter_size(start_splitter) == block_count);
  for (i = 0; !had_err && i < block_count; i++) {
    GtUword block_size, block_start, start, end;
    GtGenomeNode *block;
    const char *name;
    if (gt_parse_uword(&block_size, gt_splitter_get_token(size_splitter, i))) {
      gt_error_set(err,
                   "file \"%s\": line "GT_WU": could not parse blockSize '%s'",
                   gt_io_get_filename(bed_file),
                   gt_io_get_line_number(bed_file),
                   gt_splitter_get_token(size_splitter, i));
      had_err = -1;
    }
    if (!had_err && gt_parse_uword(&block_start,
                                   gt_splitter_get_token(start_splitter, i))) {
      gt_error_set(err, "file \"%s\": line "GT_WU": could not parse blockStart "
                   "'%s'", gt_io_get_filename(bed_file),
                   gt_io_get_line_number(bed_file),
                   gt_splitter_get_token(start_splitter, i));
      had_err = -1;
    }
    if (!had_err) {
      start = gt_genome_node_get_start((GtGenomeNode*) fn) + block_start;
      end = start + block_size;
      if (block_size > 0) {
        end -= 1;
      }
      block = gt_feature_node_new(gt_genome_node_get_seqid((GtGenomeNode*) fn),
                                  bed_parser->block_type
                                  ? bed_parser->block_type
                                  : BED_BLOCK_TYPE,
                                  start, end, gt_feature_node_get_strand(fn));
      if ((name = gt_feature_node_get_attribute(fn, GT_GFF_NAME))) {
        gt_feature_node_add_attribute((GtFeatureNode*) block, GT_GFF_NAME,
                                      name);
      }
      gt_feature_node_set_score((GtFeatureNode*) block,
                                gt_feature_node_get_score(fn));
      gt_feature_node_set_strand((GtFeatureNode*) block,
                                 gt_feature_node_get_strand(fn));
      gt_feature_node_add_child(fn, (GtFeatureNode*) block);
    }
  }
  return had_err;
}

// Assembly:
subq $0xe8, %rsp
movq 0xf0(%rsp), %rax
movq %rdi, 0xe0(%rsp)
movq %rsi, 0xd8(%rsp)
movq %rdx, 0xd0(%rsp)
movq %rcx, 0xc8(%rsp)
movq %r8, 0xc0(%rsp)
movq %r9, 0xb8(%rsp)
movl $0x0, 0xac(%rsp)
cmpq $0x0, 0xd8(%rsp)
je 0x136a46
cmpq $0x0, 0xd0(%rsp)
je 0x136a46
cmpq $0x0, 0xc8(%rsp)
je 0x136a46
cmpq $0x0, 0xc0(%rsp)
jne 0x136a7e
movq 0x505553(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3df5bc(%rip), %rsi    # 0x516013
leaq 0x4132f9(%rip), %rdx    # 0x549d57
leaq 0x413327(%rip), %rcx    # 0x549d8c
leaq 0x412ef8(%rip), %r8     # 0x549964
movl $0x13c, %r9d            # imm = 0x13C
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x136a80
jmp 0x136a82
movq 0xc8(%rsp), %rdi
callq 0x11b5b0
cmpq 0xd0(%rsp), %rax
je 0x136ad1
movq 0x505500(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3df569(%rip), %rsi    # 0x516013
leaq 0x4132f1(%rip), %rdx    # 0x549da2
leaq 0x4132d4(%rip), %rcx    # 0x549d8c
leaq 0x412ea5(%rip), %r8     # 0x549964
movl $0x13d, %r9d            # imm = 0x13D
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x136ad3
jmp 0x136ad5
movq 0xc0(%rsp), %rdi
callq 0x11b5b0
cmpq 0xd0(%rsp), %rax
je 0x136b24
movq 0x5054ad(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3df516(%rip), %rsi    # 0x516013
leaq 0x4132cd(%rip), %rdx    # 0x549dd1
leaq 0x413281(%rip), %rcx    # 0x549d8c
leaq 0x412e52(%rip), %r8     # 0x549964
movl $0x13e, %r9d            # imm = 0x13E
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x136b26
movq $0x0, 0xb0(%rsp)
xorl %eax, %eax
cmpl $0x0, 0xac(%rsp)
movb %al, 0x77(%rsp)
jne 0x136b59
movq 0xb0(%rsp), %rax
cmpq 0xd0(%rsp), %rax
setb %al
movb %al, 0x77(%rsp)
movb 0x77(%rsp), %al
testb $0x1, %al
jne 0x136b66
jmp 0x136e55
movq 0xc8(%rsp), %rdi
movq 0xb0(%rsp), %rsi
callq 0x11b4c0
movq %rax, %rsi
leaq 0xa0(%rsp), %rdi
callq 0xf86d0
cmpl $0x0, %eax
je 0x136c01
movq 0xf0(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0xb8(%rsp), %rdi
callq 0xe7440
movq %rax, 0x60(%rsp)
movq 0xb8(%rsp), %rdi
callq 0xe73f0
movq %rax, 0x68(%rsp)
movq 0xc8(%rsp), %rdi
movq 0xb0(%rsp), %rsi
callq 0x11b4c0
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rdx
movq 0x68(%rsp), %rcx
movq %rax, %r8
leaq 0x413212(%rip), %rsi    # 0x549e01
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0xac(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0xac(%rsp)
jne 0x136caa
movq 0xc0(%rsp), %rdi
movq 0xb0(%rsp), %rsi
callq 0x11b4c0
movq %rax, %rsi
leaq 0x98(%rsp), %rdi
callq 0xf86d0
cmpl $0x0, %eax
je 0x136caa
movq 0xf0(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0xb8(%rsp), %rdi
callq 0xe7440
movq %rax, 0x48(%rsp)
movq 0xb8(%rsp), %rdi
callq 0xe73f0
movq %rax, 0x50(%rsp)
movq 0xc0(%rsp), %rdi
movq 0xb0(%rsp), %rsi
callq 0x11b4c0
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rdx
movq 0x50(%rsp), %rcx
movq %rax, %r8
leaq 0x41319d(%rip), %rsi    # 0x549e35
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0xac(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0xac(%rsp)
jne 0x136e3a
movq 0xd8(%rsp), %rdi
callq 0x171c90
addq 0x98(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rax
addq 0xa0(%rsp), %rax
movq %rax, 0x88(%rsp)
cmpq $0x0, 0xa0(%rsp)
jbe 0x136d0c
movq 0x88(%rsp), %rax
subq $0x1, %rax
movq %rax, 0x88(%rsp)
movq 0xd8(%rsp), %rdi
callq 0x171b70
movq %rax, 0x38(%rsp)
movq 0xe0(%rsp), %rax
cmpq $0x0, 0x38(%rax)
je 0x136d40
movq 0xe0(%rsp), %rax
movq 0x38(%rax), %rax
movq %rax, 0x30(%rsp)
jmp 0x136d4e
leaq 0x3e0315(%rip), %rax    # 0x51705c
movq %rax, 0x30(%rsp)
jmp 0x136d4e
movq 0x30(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0xd8(%rsp), %rdi
callq 0x16cc70
movq 0x38(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
movl %eax, %r8d
callq 0x16c7e0
movq %rax, 0x80(%rsp)
movq 0xd8(%rsp), %rdi
leaq 0x43d8fc(%rip), %rsi    # 0x5746ae
callq 0x16c040
movq %rax, 0x78(%rsp)
cmpq $0x0, %rax
je 0x136ddb
movq 0x80(%rsp), %rdi
movq 0x78(%rsp), %rdx
leaq 0x43d8d8(%rip), %rsi    # 0x5746ae
callq 0x16edb0
movq 0x80(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0xd8(%rsp), %rdi
callq 0x16df90
movq 0x8(%rsp), %rdi
callq 0x16d590
movq 0x80(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0xd8(%rsp), %rdi
callq 0x16cc70
movq 0x10(%rsp), %rdi
movl %eax, %esi
callq 0x16e0f0
movq 0xd8(%rsp), %rdi
movq 0x80(%rsp), %rsi
callq 0x16d010
jmp 0x136e3c
movq 0xb0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xb0(%rsp)
jmp 0x136b32
movl 0xac(%rsp), %eax
addq $0xe8, %rsp
retq
nopw %cs:(%rax,%rax)
nop