// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/csvline_reader.c
// Function: gt_csvline_reader_dist_only_for_column
void gt_csvline_reader_dist_only_for_column(GtCsvlineReader *csvline_reader,
                                            GtUword colnum)
{
  GtUword idx, write_idx,
          numofcols = gt_csvline_reader_column_number(csvline_reader);

  gt_assert(numofcols > 0 && colnum < numofcols &&
            csvline_reader->dist.charcount[(int) csvline_reader->separator]
            == numofcols - 1);
  csvline_reader->dist.charcount[(int) csvline_reader->separator] = 0;
  gt_assert(csvline_reader->dist.charcount[(int) '\0'] == 1);
  csvline_reader->dist.charcount[(int) '\0'] = 0;
  for (idx = 0; idx < numofcols; idx++)
  {
    if (idx != colnum)
    {
      GtCsvcolumn col = gt_csvline_reader_column(csvline_reader,idx);
      GtUword j;

      for (j = 0; j < col.width; j++)
      {
        char currentcc = col.content[j];
        gt_assert(csvline_reader->dist.charcount[(int) currentcc] > 0);
        csvline_reader->dist.charcount[(int) currentcc]--;
      }
    }
  }
  for (idx = 0, write_idx = 0;
       idx < csvline_reader->dist.alphabet.nextfreechar; idx++)
  {
    char currentcc = csvline_reader->dist.alphabet.spacechar[idx];
    if (csvline_reader->dist.charcount[(int) currentcc] > 0)
    {
      if (write_idx < idx)
      {
        csvline_reader->dist.alphabet.spacechar[write_idx] = currentcc;
      }
      write_idx++;
    }
  }
  csvline_reader->dist.alphabet.nextfreechar = write_idx;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x11d9c0
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
jbe 0x11da58
movq 0x38(%rsp), %rax
cmpq 0x20(%rsp), %rax
jae 0x11da58
movq 0x40(%rsp), %rax
movq 0x48(%rax), %rax
movq 0x40(%rsp), %rcx
movsbl 0x51(%rcx), %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movq 0x20(%rsp), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
je 0x11da90
movq 0x4de569(%rip), %rax    # 0x5fbfc8
movq (%rax), %rdi
leaq 0x3ddb34(%rip), %rsi    # 0x4fb59d
leaq 0x3e4265(%rip), %rdx    # 0x501cd5
leaq 0x3e42d6(%rip), %rcx    # 0x501d4d
leaq 0x3e407e(%rip), %r8     # 0x501afc
movl $0xd2, %r9d
movb $0x0, %al
callq 0x33960
callq 0x2f830
jmp 0x11da92
movq 0x40(%rsp), %rax
movq 0x48(%rax), %rax
movq 0x40(%rsp), %rcx
movsbl 0x51(%rcx), %ecx
movslq %ecx, %rcx
movq $0x0, (%rax,%rcx,8)
movq 0x40(%rsp), %rax
movq 0x48(%rax), %rax
cmpq $0x1, (%rax)
je 0x11daf6
movq 0x4de503(%rip), %rax    # 0x5fbfc8
movq (%rax), %rdi
leaq 0x3ddace(%rip), %rsi    # 0x4fb59d
leaq 0x3e429e(%rip), %rdx    # 0x501d74
leaq 0x3e4270(%rip), %rcx    # 0x501d4d
leaq 0x3e4018(%rip), %r8     # 0x501afc
movl $0xd4, %r9d
movb $0x0, %al
callq 0x33960
callq 0x2f830
jmp 0x11daf8
movq 0x40(%rsp), %rax
movq 0x48(%rax), %rax
movq $0x0, (%rax)
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x20(%rsp), %rax
jae 0x11dc0d
movq 0x30(%rsp), %rax
cmpq 0x38(%rsp), %rax
je 0x11dbf8
movq 0x40(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x11d6a0
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq $0x0, 0x8(%rsp)
movq 0x8(%rsp), %rax
cmpq 0x18(%rsp), %rax
jae 0x11dbf6
movq 0x10(%rsp), %rax
movq 0x8(%rsp), %rcx
movb (%rax,%rcx), %al
movb %al, 0x7(%rsp)
movq 0x40(%rsp), %rax
movq 0x48(%rax), %rax
movsbl 0x7(%rsp), %ecx
movslq %ecx, %rcx
cmpq $0x0, (%rax,%rcx,8)
ja 0x11dbc4
movq 0x4de435(%rip), %rax    # 0x5fbfc8
movq (%rax), %rdi
leaq 0x3dda00(%rip), %rsi    # 0x4fb59d
leaq 0x3e4200(%rip), %rdx    # 0x501da4
leaq 0x3e41a2(%rip), %rcx    # 0x501d4d
leaq 0x3e3f4a(%rip), %r8     # 0x501afc
movl $0xe0, %r9d
movb $0x0, %al
callq 0x33960
callq 0x2f830
jmp 0x11dbc6
movq 0x40(%rsp), %rax
movq 0x48(%rax), %rax
movsbl 0x7(%rsp), %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdx
addq $-0x1, %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x11db53
jmp 0x11dbf8
jmp 0x11dbfa
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
jmp 0x11db11
movq $0x0, 0x30(%rsp)
movq $0x0, 0x28(%rsp)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
cmpq 0x40(%rcx), %rax
jae 0x11dc9d
movq 0x40(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x30(%rsp), %rcx
movb (%rax,%rcx), %al
movb %al, 0x6(%rsp)
movq 0x40(%rsp), %rax
movq 0x48(%rax), %rax
movsbl 0x6(%rsp), %ecx
movslq %ecx, %rcx
cmpq $0x0, (%rax,%rcx,8)
jbe 0x11dc8b
movq 0x28(%rsp), %rax
cmpq 0x30(%rsp), %rax
jae 0x11dc7d
movb 0x6(%rsp), %dl
movq 0x40(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x28(%rsp), %rcx
movb %dl, (%rax,%rcx)
movq 0x28(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x28(%rsp)
jmp 0x11dc8d
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
jmp 0x11dc1f
movq 0x28(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x40(%rax)
addq $0x48, %rsp
retq