user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<read_line_wstrand_v2>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x1a000(%rsp),%r11
L62:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L62
  sub    $0xe28,%rsp
  mov    %rdi,%r12
  mov    %rsi,%r13
  mov    %rdx,%rbx
  mov    %rcx,0x8(%rsp)
  mov    %r8,0x10(%rsp)
  mov    %r9d,%ebp
  mov    0x1ae88(%rsp),%r14
  mov    %fs:0x28,%rax
  mov    %rax,0x1ae18(%rsp)
  xor    %eax,%eax
  movl   $0xffffffff,(%rdx)
  movl   $0xffffffff,0x4(%rdx)
  movl   $0xffffffff,0x8(%rdx)
  movl   $0xffffffff,0xc(%rdx)
  movl   $0xffffffff,0x10(%rdx)
  call   <feof@plt>
  test   %rax,%rax
  je     L34
L38:
  mov    0x1ae18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L134
  add    $0x1ae28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L34:
  lea    0x2770(%rsp),%r15
  mov    %r12,%rdx
  mov    $0xf4240,%esi
  mov    %r15,%rdi
  call   <fgets@plt>
  lea    0x60(%rsp),%rdi
  mov    %r13,%rdx
  mov    $0xf4240,%esi
  call   <fgets@plt>
  mov    %r15,%rdi
  call   <is_header@plt>
  cmp    $0x1,%eax
  jne    L55
  movl   $0x2,0x8(%rbx)
  jmp    L38
L55:
  mov    %ebp,%esi
  mov    $0x1,%edi
  call   <ivector@plt>
  mov    %rax,%r12
  mov    %ebp,%esi
  mov    $0x1,%edi
  call   <ivector@plt>
  mov    %rax,%r13
  lea    0x5c(%rsp),%r15
  lea    0x2770(%rsp),%rdi
  mov    %ebp,%r8d
  mov    %r15,%rcx
  mov    $0x0,%edx
  mov    %r12,%rsi
  call   <splitline2int@plt>
  lea    0x60(%rsp),%rdi
  mov    %ebp,%r8d
  mov    %r15,%rcx
  mov    $0x0,%edx
  mov    %r13,%rsi
  call   <splitline2int@plt>
  mov    0x5c(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x3c(%rsp)
  test   %eax,%eax
  jle    L182
  cmp    %eax,%ebp
  jl     L157
L5:
  mov    %ebp,%esi
  mov    $0x1,%edi
  call   <ivector@plt>
  mov    %rax,0x28(%rsp)
  mov    %ebp,%esi
  mov    $0x1,%edi
  call   <cvector@plt>
  mov    %rax,0x30(%rsp)
  mov    %ebp,%esi
  mov    $0x1,%edi
  call   <ivector@plt>
  mov    %rax,0x18(%rsp)
  mov    %ebp,%esi
  mov    $0x1,%edi
  call   <cvector@plt>
  mov    %rax,0x20(%rsp)
  mov    %ebp,%esi
  mov    $0x1,%edi
  call   <vector@plt>
  mov    %rax,0x40(%rsp)
  mov    %ebp,%esi
  mov    $0x1,%edi
  call   <ivector@plt>
  mov    %rax,0x48(%rsp)
  mov    %ebp,%esi
  mov    $0x1,%edi
  call   <cvector@plt>
  mov    %rax,%r15
  mov    0x4(%r12),%eax
  mov    %eax,(%rbx)
  cltq
  mov    (%r14,%rax,8),%rax
  mov    0x4(%rax),%edx
  cmp    %edx,0x1ae98(%rsp)
  mov    %edx,%ecx
  cmovle 0x1ae98(%rsp),%ecx
  mov    0x8(%rax),%edx
  cmp    %edx,0x1aea0(%rsp)
  mov    %edx,%edi
  cmovle 0x1aea0(%rsp),%edi
  mov    0xc(%rax),%eax
  cmp    %eax,0x1aea8(%rsp)
  cmovle 0x1aea8(%rsp),%eax
  mov    %eax,%r8d
  mov    0x3c(%rsp),%edx
  lea    -0x1(%rdx),%esi
  mov    %esi,0xc(%rbx)
  movl   $0x1,0x8(%rbx)
  cmpl   $0x1,0x1ae60(%rsp)
  je     L28
  lea    0x1(%rdx),%r9d
  mov    $0x2,%eax
  cmp    $0x1,%edx
  jle    L110
  mov    0x28(%rsp),%r10
  mov    0x30(%rsp),%r11
L42:
  mov    0x0(%r13,%rax,4),%edx
  mov    %dl,-0x1(%r11,%rax,1)
  mov    (%r12,%rax,4),%edx
  mov    %edx,-0x4(%r10,%rax,4)
  add    $0x1,%rax
  cmp    %r9,%rax
  jne    L42
L110:
  sub    $0x8,%rsp
  push   0x28(%rsp)
  push   0x28(%rsp)
  push   %r8
  push   %rdi
  push   %rcx
  mov    0x1aeb0(%rsp),%r9d
  mov    0x1aea8(%rsp),%r8d
  mov    0x1aea0(%rsp),%ecx
  mov    %esi,%edx
  mov    0x60(%rsp),%rsi
  mov    0x58(%rsp),%rdi
  call   <filter_positions_v3@plt>
  mov    %eax,%r14d
  mov    %eax,0x10(%rbx)
  add    $0x30,%rsp
  mov    $0x0,%eax
  test   %r14d,%r14d
  jle    L200
  cmpl   $0x0,0x1ae68(%rsp)
  je     L160
  lea    0x1(%r14),%edx
  mov    $0x1,%eax
  mov    0x40(%rsp),%rcx
L76:
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,(%rcx,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L76
  mov    0x40(%rsp),%rdx
  mov    0x18(%rsp),%rsi
  mov    %r14d,%edi
  call   <quicksorti@plt>
  mov    0x40(%rsp),%rdx
  mov    0x20(%rsp),%rsi
  mov    %r14d,%edi
  call   <sort_cvector_by_indices@plt>
L160:
  mov    0x1ae90(%rsp),%r9d
  mov    %r14d,%r8d
  mov    %r15,%rcx
  mov    0x48(%rsp),%r14
  mov    %r14,%rdx
  mov    0x20(%rsp),%rsi
  mov    0x18(%rsp),%rdi
  call   <vector_overlap_v3@plt>
  test   %eax,%eax
  jle    L200
  lea    0x1(%rax),%esi
  mov    $0x1,%edx
  mov    %r14,%rdi
  mov    0x8(%rsp),%r8
  mov    0x10(%rsp),%r9
L84:
  mov    (%rdi,%rdx,4),%ecx
  mov    %ecx,(%r8,%rdx,4)
  movzbl (%r15,%rdx,1),%ecx
  mov    %cl,(%r9,%rdx,1)
  add    $0x1,%rdx
  cmp    %rdx,%rsi
  jne    L84
L200:
  mov    %eax,0x4(%rbx)
  mov    %ebp,%edx
  mov    $0x1,%esi
  mov    0x28(%rsp),%rdi
  call   <free_ivector@plt>
  mov    %ebp,%edx
  mov    $0x1,%esi
  mov    0x30(%rsp),%rdi
  call   <free_cvector@plt>
  mov    %ebp,%edx
  mov    $0x1,%esi
  mov    0x18(%rsp),%rdi
  call   <free_ivector@plt>
  mov    %ebp,%edx
  mov    $0x1,%esi
  mov    0x20(%rsp),%rdi
  call   <free_cvector@plt>
  mov    %ebp,%edx
  mov    $0x1,%esi
  mov    0x48(%rsp),%rdi
  call   <free_ivector@plt>
  mov    %ebp,%edx
  mov    $0x1,%esi
  mov    %r15,%rdi
  call   <free_cvector@plt>
  mov    %ebp,%edx
  mov    $0x1,%esi
  mov    0x40(%rsp),%rdi
  call   <free_vector@plt>
L164:
  mov    %ebp,%edx
  mov    $0x1,%esi
  mov    %r12,%rdi
  call   <free_ivector@plt>
  mov    %ebp,%edx
  mov    $0x1,%esi
  mov    %r13,%rdi
  call   <free_ivector@plt>
  jmp    L38
L157:
  movl   $0x0,0x8(%rbx)
  mov    %ebp,%edx
  mov    %ebp,%esi
  lea    D0(%rip),%rdi
  call   <printf@plt>
  mov    %ebp,0x3c(%rsp)
  jmp    L5
L28:
  mov    0x3c(%rsp),%eax
  cmp    $0x1,%eax
  jle    L110
  lea    0x1(%rax),%r10d
  mov    $0x2,%eax
  mov    0x28(%rsp),%r9
  mov    0x30(%rsp),%r11
L56:
  mov    0x0(%r13,%rax,4),%edx
  mov    %dl,-0x1(%r11,%rax,1)
  mov    (%r12,%rax,4),%edx
  mov    %edx,%r14d
  neg    %r14d
  test   %edx,%edx
  cmovle %r14d,%edx
  mov    %edx,-0x4(%r9,%rax,4)
  add    $0x1,%rax
  cmp    %r10,%rax
  jne    L56
  jmp    L110
L182:
  movl   $0x2,0x8(%rbx)
  jmp    L164
L134:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D0
datatype: string

tool: D0: WARNING! n=%d and max_occur=%d


assistant: ```c
void read_line_wstrand_v2(FILE *input_file_pos, FILE *input_file_strand, int *t, int *data_p, char *data_s, int max_occur, int neg2pos, int sortpos, int max_ul, int max_el, int max_il, int **transcript_lengths, int max_overlap, int seq_ul, int seq_el, int seq_il) {
  char txtline_pos[100000];
  char txtline_strand[10000];
  int i, j, k, ll;
  int *v;
  int *w;
  int start = 0;
  int np[1];
  int n;
  int n_chars = 1000000;
  float *indices;
  int header;
  int *temp_positions;
  char *temp_strands;
  int *filtered_positions;
  char *filtered_strands;
  int *positions_no_overlap;
  char *strands_no_overlap;
  int curr_transcript;
  int curr_ul, curr_el, curr_il;
  int n_after_filter;
  int n_no_overlap = 0;
  t[0] = -1;
  t[1] = -1;
  t[2] = -1;
  t[3] = -1;
  t[4] = -1;
  if (feof(input_file_pos) == 0) {
    fgets(txtline_pos, n_chars, input_file_pos);
    fgets(txtline_strand, n_chars, input_file_strand);
    header = is_header(txtline_pos);
    if (header == 1) {
      t[2] = 2;
    } else {
      v = ivector(1, max_occur);
      w = ivector(1, max_occur);
      splitline2int(txtline_pos, v, start, np, max_occur);
      splitline2int(txtline_strand, w, start, np, max_occur);
      n = np[0] - 1;
      if (n > 0) {
        if (n > max_occur) {
          n = max_occur;
          t[2] = 0;
          printf("WARNING! n=%d and max_occur=%d\n", n, max_occur);
        }
        temp_positions = ivector(1, max_occur);
        temp_strands = cvector(1, max_occur);
        filtered_positions = ivector(1, max_occur);
        filtered_strands = cvector(1, max_occur);
        indices = vector(1, max_occur);
        positions_no_overlap = ivector(1, max_occur);
        strands_no_overlap = cvector(1, max_occur);
        curr_transcript = v[1];
        t[0] = curr_transcript;
        curr_ul = transcript_lengths[curr_transcript][1];
        if (curr_ul > seq_ul)
          curr_ul = seq_ul;
        curr_el = transcript_lengths[curr_transcript][2];
        if (curr_el > seq_el)
          curr_el = seq_el;
        curr_il = transcript_lengths[curr_transcript][3];
        if (curr_il > seq_il)
          curr_il = seq_il;
        t[3] = n - 1;
        t[2] = 1;
        if (neg2pos == 1) {
          for (i = 2; i <= n; i++) {
            j = i - 1;
            temp_strands[j] = w[i];
            if (v[i] > 0) {
              temp_positions[j] = v[i];
            } else {
              temp_positions[j] = -v[i];
            }
          }
        } else {
          for (i = 2; i <= n; i++) {
            j = i - 1;
            temp_strands[j] = w[i];
            temp_positions[j] = v[i];
          }
        }
        n_after_filter = filter_positions_v3(temp_positions, temp_strands, n - 1, max_ul, max_el, max_il, curr_ul, curr_el, curr_il, filtered_positions, filtered_strands);
        t[4] = n_after_filter;
        if (n_after_filter > 0) {
          if (sortpos) {
            for (i = 1; i <= n_after_filter; i++)
              indices[i] = i;
            quicksorti(n_after_filter, filtered_positions, indices);
            sort_cvector_by_indices(n_after_filter, filtered_strands, indices);
          }
          n_no_overlap = vector_overlap_v3(filtered_positions, filtered_strands, positions_no_overlap, strands_no_overlap, n_after_filter, max_overlap);
          for (k = 1; k <= n_no_overlap; k++) {
            data_p[k] = positions_no_overlap[k];
            data_s[k] = strands_no_overlap[k];
          }
        }
        t[1] = n_no_overlap;
        free_ivector(temp_positions, 1, max_occur);
        free_cvector(temp_strands, 1, max_occur);
        free_ivector(filtered_positions, 1, max_occur);
        free_cvector(filtered_strands, 1, max_occur);
        free_ivector(positions_no_overlap, 1, max_occur);
        free_cvector(strands_no_overlap, 1, max_occur);
        free_vector(indices, 1, max_occur);
      } else {
        t[2] = 2;
      }
      free_ivector(v, 1, max_occur);
      free_ivector(w, 1, max_occur);
    }
  }
}
```