user: 下面的汇编指令对应的C源代码是什么:

```asm
<dist_2v_ordered_v2>:
  endbr64
  push   %r15
  mov    %rsi,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    0xe0(%rsp),%rax
  mov    %rdi,0x60(%rsp)
  mov    %rdx,0x70(%rsp)
  mov    0x110(%rsp),%ebx
  mov    %rax,0x90(%rsp)
  mov    0xe8(%rsp),%rax
  mov    %rcx,0x10(%rsp)
  mov    0x120(%rsp),%r11d
  mov    %rax,0x88(%rsp)
  mov    0xf0(%rsp),%eax
  mov    %r8d,0x6c(%rsp)
  mov    %eax,0x54(%rsp)
  mov    0xf8(%rsp),%eax
  mov    %r9d,0x4(%rsp)
  mov    %eax,0xc(%rsp)
  mov    0x100(%rsp),%eax
  mov    %eax,0x8(%rsp)
  mov    0x108(%rsp),%rax
  mov    %rax,0x98(%rsp)
  mov    0x118(%rsp),%eax
  mov    %eax,0x18(%rsp)
  add    $0x1,%eax
  and    $0xfffffffd,%eax
  jne    L108
L91:
  test   %r11d,%r11d
  jne    L32
L205:
  movslq 0x4(%rsp),%rax
  mov    0xc(%rsp),%esi
  add    (%r15,%rax,4),%esi
  mov    %esi,0x78(%rsp)
  cmp    $0x1,%ebx
  je     L8
  mov    0x6c(%rsp),%eax
  mov    0x8(%rsp),%ecx
  test   %eax,%eax
  mov    0x60(%rsp),%rax
  setg   %dl
  cmp    0x4(%rax),%esi
  setg   %al
  test   %ecx,%ecx
  setg   %cl
  test   %dl,%cl
  je     L60
  movb   $0x0,0x6b(%rsp)
  test   %al,%al
  je     L60
L344:
  mov    0xc(%rsp),%esi
  mov    %r15,%r10
  mov    $0x1,%r14d
  movq   $0x1,0x58(%rsp)
  test   %esi,%esi
  setg   0x7e(%rsp)
  xor    %r9d,%r9d
  mov    %r9d,%r15d
L338:
  mov    0x58(%rsp),%rax
  mov    0x60(%rsp),%rsi
  mov    (%rsi,%rax,4),%r13d
  mov    0x70(%rsp),%rsi
  movd   %eax,%xmm2
  movzbl (%rsi,%rax,1),%eax
  mov    %al,0x2b(%rsp)
  test   %r11d,%r11d
  jne    L29
L139:
  cmp    %r15d,0x8(%rsp)
  setg   %dl
  cmp    %r14d,0x4(%rsp)
  setge  %al
  and    %edx,%eax
  and    0x7e(%rsp),%al
  mov    %al,0x7f(%rsp)
  je     L262
  mov    %r11d,%eax
  cmpb   $0x1,0x2b(%rsp)
  movslq %r14d,%rbx
  mov    %r14d,%r11d
  sete   0x1c(%rsp)
  mov    $0x1,%r9d
  mov    %eax,%r14d
  jmp    L235
  nopl   0x0(%rax)
L236:
  cmp    0xc(%rsp),%r8d
  setl   %al
  test   %r8d,%r8d
  setg   %dl
  and    %al,%dl
  je     L266
  cmp    $0x1,%r9d
  cmove  %esi,%r11d
  cmp    0x54(%rsp),%r8d
  jle    L246
  add    $0x1,%r15d
  xor    %r9d,%r9d
  cmpb   $0x0,0x6b(%rsp)
  mov    %edx,%eax
  je     L266
  mov    0x80(%rsp),%rcx
  movslq %r15d,%rax
  movd   %r12d,%xmm5
  mov    (%rcx,%rax,8),%rdx
  movsbl 0x2b(%rsp),%eax
  movd   %eax,%xmm0
  movzbl 0x6b(%rsp),%eax
  movups %xmm1,0x4(%rdx)
  punpckldq %xmm5,%xmm0
  movq   %xmm0,0x14(%rdx)
  nopl   0x0(%rax)
L266:
  cmp    0x8(%rsp),%r15d
  setl   %dl
  add    $0x1,%rbx
  add    $0x1,%ebp
  cmp    %ebp,0x4(%rsp)
  setge  %cl
  test   %al,%cl
  je     L349
  test   %dl,%dl
  je     L349
L235:
  mov    (%r10,%rbx,4),%edx
  mov    0x10(%rsp),%rax
  movd   %r13d,%xmm1
  mov    %ebx,%ebp
  movdqa %xmm2,%xmm0
  movd   %ebx,%xmm4
  mov    %ebx,%esi
  movd   %edx,%xmm3
  movsbl (%rax,%rbx,1),%r12d
  punpckldq %xmm4,%xmm0
  punpckldq %xmm3,%xmm1
  punpcklqdq %xmm0,%xmm1
  cmp    $0x1,%r12b
  jne    L214
  cmpb   $0x0,0x1c(%rsp)
  je     L214
  mov    %edx,%r8d
  sub    %r13d,%r8d
L86:
  imul   0x18(%rsp),%r8d
  test   %r14d,%r14d
  je     L236
L147:
  movsbl %r12b,%ecx
  lea    D5(%rip),%rdi
  xor    %eax,%eax
  mov    %esi,0x20(%rsp)
  mov    %r10,0x48(%rsp)
  mov    %r9d,0x44(%rsp)
  mov    %r11d,0x40(%rsp)
  mov    %r8d,0x2c(%rsp)
  movd   %xmm2,0x50(%rsp)
  movaps %xmm1,0x30(%rsp)
  call   <printf@plt>
  mov    0x48(%rsp),%r10
  movd   0x50(%rsp),%xmm2
  mov    0x44(%rsp),%r9d
  mov    0x40(%rsp),%r11d
  movdqa 0x30(%rsp),%xmm1
  mov    0x2c(%rsp),%r8d
  mov    0x20(%rsp),%esi
  jmp    L236
  nopl   (%rax)
L214:
  movzbl 0x2b(%rsp),%eax
  or     %r12b,%al
  jne    L30
  mov    %r13d,%r8d
  sub    %edx,%r8d
  jmp    L86
  nopl   0x0(%rax)
L246:
  mov    %edx,%eax
  xor    %r9d,%r9d
  jmp    L266
  nopw   0x0(%rax,%rax,1)
L349:
  mov    %r14d,%eax
  mov    %r11d,%r14d
  mov    %eax,%r11d
  cmp    $0x1,%r9d
  je     L262
  mov    0x58(%rsp),%esi
  cmp    %esi,0x6c(%rsp)
  setg   %bl
L280:
  cmp    %r13d,0x78(%rsp)
  setg   %bpl
  addq   $0x1,0x58(%rsp)
  mov    %ebp,%eax
  and    %ebx,%eax
  and    %eax,%edx
  test   %dl,%dl
  jne    L338
  mov    %r15d,%r9d
  test   %r9d,%r9d
  jg     L182
  nop
L351:
  and    %ebp,%ebx
  movd   %r9d,%xmm0
  movzbl %bl,%eax
  neg    %eax
  cmpb   $0x0,0x6b(%rsp)
  movd   %eax,%xmm6
  mov    0x88(%rsp),%rax
  punpckldq %xmm6,%xmm0
  movq   %xmm0,(%rax)
  jne    L58
L333:
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L262:
  movslq %r14d,%rax
  cmp    %r13d,(%r10,%rax,4)
  jge    L271
  add    $0x1,%r14d
L271:
  mov    0x58(%rsp),%ecx
  cmp    %ecx,0x6c(%rsp)
  setg   %bl
  cmp    0x4(%rsp),%r14d
  jle    L280
  mov    %r15d,%r9d
  xor    %ebp,%ebp
  test   %r9d,%r9d
  jle    L351
L182:
  cmpb   $0x0,0x6b(%rsp)
  je     L351
  mov    0x98(%rsp),%rdx
  mov    0x90(%rsp),%rsi
  mov    %r9d,%ecx
  and    %ebx,%ebp
  mov    0x80(%rsp),%rdi
  mov    $0x2,%r8d
  call   <remove_overlaps_v2@plt>
  movzbl %bpl,%edx
  neg    %edx
  movd   %eax,%xmm0
  mov    0x88(%rsp),%rax
  movd   %edx,%xmm7
  punpckldq %xmm7,%xmm0
  movq   %xmm0,(%rax)
L58:
  mov    0x8(%rsp),%edx
  mov    $0x6,%r8d
  mov    $0x1,%ecx
  mov    0x80(%rsp),%rdi
  add    $0xa8,%rsp
  mov    $0x1,%esi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10b0 <free_imatrix@plt>
  nopl   0x0(%rax)
L29:
  movsbl %al,%ecx
  movd   %xmm2,%esi
  mov    %r13d,%edx
  xor    %eax,%eax
  lea    D29(%rip),%rdi
  mov    %r11d,0x2c(%rsp)
  mov    %r10,0x20(%rsp)
  movd   %xmm2,0x1c(%rsp)
  call   <printf@plt>
  movd   0x1c(%rsp),%xmm2
  mov    0x20(%rsp),%r10
  mov    0x2c(%rsp),%r11d
  jmp    L139
L32:
  mov    0x54(%rsp),%edx
  mov    0xc(%rsp),%esi
  xor    %eax,%eax
  mov    %r11d,0x1c(%rsp)
  lea    D36(%rip),%rdi
  call   <printf@plt>
  mov    0x1c(%rsp),%r11d
  jmp    L205
L108:
  mov    0x18(%rsp),%esi
  lea    D35(%rip),%rdi
  xor    %eax,%eax
  mov    %r11d,0x1c(%rsp)
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  mov    0x1c(%rsp),%r11d
  jmp    L91
L8:
  mov    0x8(%rsp),%ebx
  mov    $0x6,%ecx
  mov    $0x1,%edx
  mov    $0x1,%edi
  mov    %r11d,0x1c(%rsp)
  mov    %ebx,%esi
  call   <imatrix@plt>
  mov    0x6c(%rsp),%edi
  mov    0x60(%rsp),%rcx
  mov    %rax,0x80(%rsp)
  mov    0x78(%rsp),%esi
  test   %edi,%edi
  mov    0x1c(%rsp),%r11d
  setg   %al
  cmp    0x4(%rcx),%esi
  setg   %cl
  test   %ebx,%ebx
  setg   %dl
  and    %eax,%edx
  and    %cl,%dl
  mov    %dl,0x6b(%rsp)
  jne    L344
  and    %ecx,%eax
  pxor   %xmm0,%xmm0
  movzbl %al,%eax
  neg    %eax
  movd   %eax,%xmm7
  mov    0x88(%rsp),%rax
  punpckldq %xmm7,%xmm0
  movq   %xmm0,(%rax)
  jmp    L58
  nopl   0x0(%rax,%rax,1)
L60:
  and    %edx,%eax
  pxor   %xmm0,%xmm0
  movzbl %al,%eax
  neg    %eax
  movd   %eax,%xmm7
  mov    0x88(%rsp),%rax
  punpckldq %xmm7,%xmm0
  movq   %xmm0,(%rax)
  jmp    L333
L30:
  test   %r14d,%r14d
  jne    L24
  movzbl 0x7f(%rsp),%eax
  jmp    L266
L24:
  xor    %r8d,%r8d
  jmp    L147
```

tool_calls: name: parse_data
arguments: data_label: D5
type: string
name: parse_data
arguments: data_label: D29
type: string
name: parse_data
arguments: data_label: D36
type: string
name: parse_data
arguments: data_label: D35
type: string

tool: D5: 	j=%d	p2=%d	s2=%d	d=%d


tool: D29: i=%d	p1=%d	s1=%d


tool: D36: max_dist=%d	min_dist=%d


tool: D35: ERROR!
cooc_single_lib.c
dist_2v_ordered_v2
pos_format=%d
d should be either +1 or -1
exiting...


assistant: ```c
void dist_2v_ordered_v2(int *m1_p, int *m2_p, char *m1_s, char *m2_s, int n1, int n2, int **ovdi, int *n, int min_dist, int max_dist, int max_n_ovdi, int *ml, int get_positions, int pos_format, int verbose) {
  int i, j;
  int p1;
  int p2;
  char s1;
  char s2;
  int d;
  int n_ovdi = 0;
  int **all_ovdi;
  int n_cooc;
  int max_p2;
  int init_j = 1;
  int firstnear;
  if ((pos_format != 1) & (pos_format != -1)) {
    printf("ERROR!\ncooc_single_lib.c\ndist_2v_ordered_v2\npos_format=%d\nd should be either +1 or -1\nexiting...\n", pos_format);
    exit(1);
  }
  if (verbose)
    printf("max_dist=%d\tmin_dist=%d\n", max_dist, min_dist);
  max_p2 = m2_p[n2] + max_dist;
  if (get_positions == 1)
    all_ovdi = imatrix(1, max_n_ovdi, 1, 6);
  i = 0;
  p1 = m1_p[1];
  while ((i < n1) & (n_ovdi < max_n_ovdi) & (p1 < max_p2)) {
    i++;
    j = init_j;
    p1 = m1_p[i];
    s1 = m1_s[i];
    d = 0;
    firstnear = 1;
    if (verbose)
      printf("i=%d\tp1=%d\ts1=%d\n", i, p1, s1);
    while ((j <= n2) & (n_ovdi < max_n_ovdi) & (d < max_dist)) {
      p2 = m2_p[j];
      s2 = m2_s[j];
      d = 0;
      if ((s1 == 1) & (s2 == 1))
        d = p2 - p1;
      if ((s1 == 0) & (s2 == 0))
        d = p1 - p2;
      d = d * pos_format;
      if (verbose)
        printf("\tj=%d\tp2=%d\ts2=%d\td=%d\n", j, p2, s2, d);
      if ((d < max_dist) & (d > 0)) {
        if (firstnear == 1) {
          init_j = j;
          firstnear = 0;
        }
        if (d > min_dist) {
          n_ovdi++;
          if (get_positions == 1) {
            all_ovdi[n_ovdi][1] = p1;
            all_ovdi[n_ovdi][2] = p2;
            all_ovdi[n_ovdi][3] = i;
            all_ovdi[n_ovdi][4] = j;
            all_ovdi[n_ovdi][5] = s1;
            all_ovdi[n_ovdi][6] = s2;
          }
        }
      }
      j++;
    }
    if (firstnear == 1) {
      if (p1 > m2_p[init_j])
        init_j++;
      if (init_j > n2)
        p1 = max_p2 + 1;
    }
  }
  if ((n_ovdi > 0) & (get_positions == 1)) {
    n_cooc = remove_overlaps_v2(all_ovdi, ovdi, ml, n_ovdi, 2);
  } else {
    n_cooc = n_ovdi;
  }
  if ((i < n1) & (p1 < max_p2)) {
    n[1] = -1;
  } else {
    n[1] = 0;
  }
  n[0] = n_cooc;
  if (get_positions == 1)
    free_imatrix(all_ovdi, 1, max_n_ovdi, 1, 6);
}
```