// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/bed_parser.c
// Function: process_blocks
static int process_blocks(GtBEDParser *bed_parser, GtFeatureNode *fn,
                          GtUword block_count, GtStr *block_sizes,
                          GtStr *block_starts, GtIO *bed_file, GtError *err)
{
  GtSplitter *size_splitter = NULL , *start_splitter = NULL;
  int had_err = 0;
  gt_error_check(err);
  gt_assert(fn && block_count && block_sizes && block_starts);
  if (!gt_str_length(block_sizes)) {
    gt_error_set(err,
                 "file \"%s\": line "GT_WU
                 ": blockCount given without blockSizes",
                 gt_io_get_filename(bed_file),
                 gt_io_get_line_number(bed_file));
    had_err = -1;
  }
  if (!had_err && !gt_str_length(block_starts)) {
    gt_error_set(err,
                 "file \"%s\": line "GT_WU
                 ": blockCount given without blockStarts",
                 gt_io_get_filename(bed_file),
                 gt_io_get_line_number(bed_file));
    had_err = -1;
  }
  if (!had_err) {
    /* remove terminal commas found in real-world BED files */
    remove_terminal_comma(block_sizes);
    remove_terminal_comma(block_starts);
  }
  if (!had_err) {
    size_splitter = gt_splitter_new();
    gt_splitter_split(size_splitter, gt_str_get(block_sizes),
                      gt_str_length(block_sizes), ',');
    if (gt_splitter_size(size_splitter) != block_count) {
      gt_error_set(err, "file \"%s\": line "GT_WU": blockSizes column does not "
                        "have blockCount="GT_WU" many comma separated fields",
                   gt_io_get_filename(bed_file),
                   gt_io_get_line_number(bed_file), block_count);
      had_err = -1;
    }
  }
  if (!had_err) {
    start_splitter = gt_splitter_new();
    gt_splitter_split(start_splitter, gt_str_get(block_starts),
                      gt_str_length(block_starts), ',');
    if (gt_splitter_size(start_splitter) != block_count) {
      gt_error_set(err,
                   "file \"%s\": line "GT_WU": blockStarts column does not "
                   "have " "blockCount="GT_WU" many comma separated fields",
                   gt_io_get_filename(bed_file),
                   gt_io_get_line_number(bed_file), block_count);
      had_err = -1;
    }
  }
  if (!had_err) {
    had_err = create_block_features(bed_parser, fn, block_count, size_splitter,
                                    start_splitter, bed_file, err);
  }
  gt_splitter_delete(start_splitter);
  gt_splitter_delete(size_splitter);
  return had_err;
}

// Assembly:
subq $0xb8, %rsp
movq 0xc0(%rsp), %rax
movq %rdi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movq %rdx, 0xa0(%rsp)
movq %rcx, 0x98(%rsp)
movq %r8, 0x90(%rsp)
movq %r9, 0x88(%rsp)
movq $0x0, 0x80(%rsp)
movq $0x0, 0x78(%rsp)
movl $0x0, 0x74(%rsp)
cmpq $0x0, 0xc0(%rsp)
je 0x1365b2
movq 0xc0(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x13657a
jmp 0x1365b2
movq 0x505a1f(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3dfa88(%rip), %rsi    # 0x516013
leaq 0x3dfc2d(%rip), %rdx    # 0x5161bf
leaq 0x41361a(%rip), %rcx    # 0x549bb3
leaq 0x4133c4(%rip), %r8     # 0x549964
movl $0x179, %r9d            # imm = 0x179
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1365b4
jmp 0x1365b6
cmpq $0x0, 0xa8(%rsp)
je 0x1365e2
cmpq $0x0, 0xa0(%rsp)
je 0x1365e2
cmpq $0x0, 0x98(%rsp)
je 0x1365e2
cmpq $0x0, 0x90(%rsp)
jne 0x13661a
movq 0x5059b7(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3dfa20(%rip), %rsi    # 0x516013
leaq 0x4135c8(%rip), %rdx    # 0x549bc2
leaq 0x4135b2(%rip), %rcx    # 0x549bb3
leaq 0x41335c(%rip), %r8     # 0x549964
movl $0x17a, %r9d            # imm = 0x17A
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x13661c
movq 0x98(%rsp), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
jne 0x13667e
movq 0xc0(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x88(%rsp), %rdi
callq 0xe7440
movq %rax, 0x68(%rsp)
movq 0x88(%rsp), %rdi
callq 0xe73f0
movq 0x60(%rsp), %rdi
movq 0x68(%rsp), %rdx
movq %rax, %rcx
leaq 0x413584(%rip), %rsi    # 0x549bf3
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x74(%rsp)
jne 0x1366e7
movq 0x90(%rsp), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
jne 0x1366e7
movq 0xc0(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x88(%rsp), %rdi
callq 0xe7440
movq %rax, 0x58(%rsp)
movq 0x88(%rsp), %rdi
callq 0xe73f0
movq 0x50(%rsp), %rdi
movq 0x58(%rsp), %rdx
movq %rax, %rcx
leaq 0x413554(%rip), %rsi    # 0x549c2c
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x74(%rsp)
jne 0x136708
movq 0x98(%rsp), %rdi
callq 0x136910
movq 0x90(%rsp), %rdi
callq 0x136910
cmpl $0x0, 0x74(%rsp)
jne 0x1367d3
callq 0x11afb0
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x98(%rsp), %rdi
callq 0x11dee0
movq %rax, 0x48(%rsp)
movq 0x98(%rsp), %rdi
callq 0x11dfa0
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq %rax, %rdx
movl $0x2c, %ecx
callq 0x11afd0
movq 0x80(%rsp), %rdi
callq 0x11b5b0
cmpq 0xa0(%rsp), %rax
je 0x1367d1
movq 0xc0(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x88(%rsp), %rdi
callq 0xe7440
movq %rax, 0x38(%rsp)
movq 0x88(%rsp), %rdi
callq 0xe73f0
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rdx
movq %rax, %rcx
movq 0xa0(%rsp), %r8
leaq 0x4134a4(%rip), %rsi    # 0x549c66
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x1367d3
cmpl $0x0, 0x74(%rsp)
jne 0x136895
callq 0x11afb0
movq %rax, 0x78(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x90(%rsp), %rdi
callq 0x11dee0
movq %rax, 0x28(%rsp)
movq 0x90(%rsp), %rdi
callq 0x11dfa0
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq %rax, %rdx
movl $0x2c, %ecx
callq 0x11afd0
movq 0x78(%rsp), %rdi
callq 0x11b5b0
cmpq 0xa0(%rsp), %rax
je 0x136893
movq 0xc0(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x88(%rsp), %rdi
callq 0xe7440
movq %rax, 0x18(%rsp)
movq 0x88(%rsp), %rdi
callq 0xe73f0
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rdx
movq %rax, %rcx
movq 0xa0(%rsp), %r8
leaq 0x413442(%rip), %rsi    # 0x549cc6
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x136895
cmpl $0x0, 0x74(%rsp)
jne 0x1368de
movq 0xb0(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movq 0xa0(%rsp), %rdx
movq 0x80(%rsp), %rcx
movq 0x78(%rsp), %r8
movq 0x88(%rsp), %r9
movq 0xc0(%rsp), %rax
movq %rax, (%rsp)
callq 0x1369d0
movl %eax, 0x74(%rsp)
movq 0x78(%rsp), %rdi
callq 0x11b600
movq 0x80(%rsp), %rdi
callq 0x11b600
movl 0x74(%rsp), %eax
addq $0xb8, %rsp
retq
nopw %cs:(%rax,%rax)