user: 请从给定的汇编指令推导出C源代码:

```asm
<dist_2v_unordered_v4>:
  endbr64
  push   %r15
  movslq %r9d,%rax
  mov    %rsi,%r11
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    0xa8(%rsp),%r13d
  mov    %rdx,0x40(%rsp)
  mov    %eax,0x4(%rsp)
  mov    (%rsi,%rax,4),%edx
  movslq %r8d,%rax
  mov    0x4(%rsi),%esi
  mov    (%rdi,%rax,4),%eax
  mov    %rdi,0x30(%rsp)
  add    %r13d,%edx
  mov    %rcx,0x8(%rsp)
  sub    %r13d,%esi
  mov    %r8d,0x3c(%rsp)
  mov    %edx,0x48(%rsp)
  cmp    %esi,%eax
  jge    L184
  cmp    %edx,%eax
  setl   %al
  xor    %ebx,%ebx
L185:
  and    %eax,%ebx
  xor    %r15d,%r15d
  jmp    L14
L184:
  mov    0xb0(%rsp),%edx
  mov    0x30(%rsp),%rax
  test   %edx,%edx
  setg   %r10b
  cmp    0x4(%rax),%esi
  jle    L7
  mov    0x3c(%rsp),%r9d
  cmp    $0x1,%r9d
  jle    L7
  lea    0x8(%rax),%rdx
  mov    $0x1,%eax
  cs nopw 0x0(%rax,%rax,1)
L96:
  cmp    (%rdx),%esi
  mov    %eax,%ecx
  lea    0x1(%rax),%eax
  setg   %r8b
  cmp    %eax,%r9d
  setg   %dil
  add    $0x4,%rdx
  test   %dil,%r8b
  jne    L96
  mov    0x30(%rsp),%rsi
  cmp    %ecx,0x3c(%rsp)
  movslq %ecx,%rax
  setg   %bl
  mov    0x48(%rsp),%edx
  cmp    (%rsi,%rax,4),%edx
  setg   %al
  and    %ebx,%r10d
  and    %eax,%r10d
L22:
  test   %r10b,%r10b
  je     L185
  test   %r13d,%r13d
  mov    $0x1,%r14d
  mov    %r13d,%esi
  setg   0x4f(%rsp)
  add    $0x1,%ecx
  xor    %r15d,%r15d
  movslq %ecx,%rax
  mov    %rax,0x28(%rsp)
  nopw   0x0(%rax,%rax,1)
L97:
  mov    0x28(%rsp),%rax
  mov    0x30(%rsp),%rcx
  cmp    %r15d,0xb0(%rsp)
  mov    (%rcx,%rax,4),%r8d
  mov    0x40(%rsp),%rcx
  mov    %eax,0x38(%rsp)
  movzbl (%rcx,%rax,1),%ebx
  setg   %al
  cmp    %r14d,0x4(%rsp)
  setge  %cl
  mov    %bl,0x4e(%rsp)
  test   %al,%cl
  je     L56
  cmpb   $0x0,0x4f(%rsp)
  je     L56
  cmp    $0x1,%bl
  mov    %r14d,%eax
  movslq %r14d,%rbx
  mov    $0x1,%r10d
  mov    %r15d,%r14d
  sete   0x4d(%rsp)
  mov    %eax,%r15d
  jmp    L32
  nopl   0x0(%rax)
L72:
  cmp    0xb0(%rsp),%r14d
  setl   %al
  add    $0x1,%rbx
  add    $0x1,%ebp
  cmp    %ebp,0x4(%rsp)
  setge  %dl
  cmp    %edi,%esi
  setg   %dil
  test   %dil,%dl
  je     L10
  test   %al,%al
  je     L10
L32:
  mov    0x8(%rsp),%rax
  mov    (%r11,%rbx,4),%r13d
  mov    %ebx,%ebp
  mov    %ebx,%edx
  movsbl (%rax,%rbx,1),%r12d
  mov    %r13d,%edi
  sub    %r8d,%edi
  cmp    $0x1,%r12b
  sete   %al
  test   %al,0x4d(%rsp)
  jne    L86
  movzbl 0x4e(%rsp),%eax
  or     %r12b,%al
  jne    L72
L86:
  mov    %esi,0xa8(%rsp)
  mov    %r11,0x20(%rsp)
  mov    %r8d,0x1c(%rsp)
  mov    %r10d,0x18(%rsp)
  mov    %edi,0x10(%rsp)
  mov    %edx,0x14(%rsp)
  call   <fabs@plt>
  mov    0xa8(%rsp),%esi
  mov    0x10(%rsp),%edi
  mov    0x18(%rsp),%r10d
  mov    0x1c(%rsp),%r8d
  cmp    %eax,%esi
  mov    0x20(%rsp),%r11
  jle    L72
  test   %eax,%eax
  jle    L72
  mov    0x14(%rsp),%edx
  cmp    $0x1,%r10d
  cmove  %edx,%r15d
  xor    %r10d,%r10d
  cmp    0xa0(%rsp),%eax
  jle    L72
  add    $0x1,%r14d
  cmpl   $0x1,0xc0(%rsp)
  jne    L72
  mov    0xc8(%rsp),%rcx
  movslq %r14d,%rax
  mov    (%rcx,%rax,8),%rax
  mov    0x38(%rsp),%ecx
  mov    %edx,0x10(%rax)
  movsbl 0x4e(%rsp),%edx
  mov    %r8d,0x4(%rax)
  mov    %r13d,0x8(%rax)
  mov    %ecx,0xc(%rax)
  mov    %edx,0x14(%rax)
  mov    %r12d,0x18(%rax)
  jmp    L72
  nopl   0x0(%rax)
L10:
  mov    %r15d,%edx
  mov    %r14d,%r15d
  mov    %edx,%r14d
L56:
  mov    0x28(%rsp),%rdx
  cmp    %edx,0x3c(%rsp)
  setg   %cl
  cmp    %r8d,0x48(%rsp)
  setg   %dil
  add    $0x1,%rdx
  mov    %rdx,0x28(%rsp)
  and    %dil,%cl
  je     L218
  test   %al,%al
  jne    L97
L218:
  mov    %ecx,%ebx
  test   %r15d,%r15d
  jle    L14
  cmpl   $0x1,0xc0(%rsp)
  jne    L14
  mov    0xb8(%rsp),%rdx
  mov    0x90(%rsp),%rsi
  mov    %r15d,%ecx
  mov    $0x2,%r8d
  mov    0xc8(%rsp),%rdi
  call   <remove_overlaps_v2@plt>
  mov    %eax,%r15d
L14:
  mov    0x98(%rsp),%rax
  movzbl %bl,%ebx
  neg    %ebx
  mov    %ebx,0x4(%rax)
  mov    %r15d,(%rax)
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L7:
  mov    0x3c(%rsp),%eax
  mov    0x48(%rsp),%esi
  test   %eax,%eax
  mov    0x30(%rsp),%rax
  setg   %bl
  cmp    (%rax),%esi
  setg   %al
  and    %ebx,%r10d
  xor    %ecx,%ecx
  and    %eax,%r10d
  jmp    L22
```

assistant: ```c
void dist_2v_unordered_v4(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 **all_ovdi) {
  int i, j;
  int p1;
  int p2;
  char s1, s2;
  int d;
  int ad;
  int n_ovdi = 0;
  int n_cooc;
  int max_p2;
  int min_p2;
  int init_j = 1;
  int firstnear;
  int init_i;
  max_p2 = m2_p[n2] + max_dist;
  min_p2 = m2_p[1] - max_dist;
  if (m1_p[n1] < min_p2) {
    init_i = n1 + 1;
  } else {
    init_i = 1;
    p1 = m1_p[init_i];
    while ((p1 < min_p2) & (init_i < n1)) {
      init_i++;
      p1 = m1_p[init_i];
    }
  }
  i = init_i - 1;
  p1 = m1_p[i];
  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;
    while ((j <= n2) & (n_ovdi < max_n_ovdi) & (d < max_dist)) {
      p2 = m2_p[j];
      s2 = m2_s[j];
      d = p2 - p1;
      ad = 0;
      if (((s1 == 1) & (s2 == 1)) | ((s1 == 0) & (s2 == 0)))
        ad = fabs(d);
      if ((ad < max_dist) & (ad > 0)) {
        if (firstnear == 1) {
          init_j = j;
          firstnear = 0;
        }
        if (ad > 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 ((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;
}
```