user: What would the C source look like for the assembly code provided here?

```asm
<dist_2v_unordered_v4>:
  endbr64
  push   %r15
  movslq %r9d,%rax
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    (%rsi,%rax,4),%ebx
  mov    0x4(%rsi),%r9d
  mov    %rdx,0x60(%rsp)
  mov    0xc8(%rsp),%edx
  mov    %eax,0xc(%rsp)
  movslq %r8d,%rax
  mov    0xd0(%rsp),%r14d
  mov    (%rdi,%rax,4),%eax
  add    %edx,%ebx
  sub    %edx,%r9d
  mov    %rdi,0x50(%rsp)
  mov    %r8d,0x5c(%rsp)
  mov    %ebx,0x68(%rsp)
  cmp    %r9d,%eax
  jge    L340
  cmp    %ebx,%eax
  setl   %al
  xor    %ebx,%ebx
L117:
  and    %eax,%ebx
  xor    %r13d,%r13d
  jmp    L53
L340:
  test   %r14d,%r14d
  setg   %bpl
  cmp    0x4(%rdi),%r9d
  jle    L199
  mov    %r8d,%ebx
  cmp    $0x1,%r8d
  jle    L199
  lea    0x8(%rdi),%rdi
  mov    $0x1,%eax
  nopw   0x0(%rax,%rax,1)
L279:
  cmp    (%rdi),%r9d
  mov    %eax,%r8d
  lea    0x1(%rax),%eax
  setg   %r11b
  cmp    %eax,%ebx
  setg   %r10b
  add    $0x4,%rdi
  test   %r10b,%r11b
  jne    L279
  mov    0x50(%rsp),%rdi
  cmp    %r8d,0x5c(%rsp)
  movslq %r8d,%rax
  setg   %bl
  mov    0x68(%rsp),%r10d
  cmp    (%rdi,%rax,4),%r10d
  setg   %al
  and    %ebx,%ebp
  and    %eax,%ebp
L376:
  test   %bpl,%bpl
  je     L117
  test   %edx,%edx
  mov    $0x1,%r9d
  mov    %r14d,0xd0(%rsp)
  setg   0x6f(%rsp)
  add    $0x1,%r8d
  xor    %r13d,%r13d
  mov    %r9d,%r14d
  movslq %r8d,%rax
  mov    %rax,0x28(%rsp)
  nopl   0x0(%rax,%rax,1)
L87:
  mov    0x28(%rsp),%rax
  mov    0x50(%rsp),%rbx
  cmp    %r13d,0xd0(%rsp)
  mov    (%rbx,%rax,4),%r15d
  mov    0x60(%rsp),%rbx
  mov    %eax,0x10(%rsp)
  movzbl (%rbx,%rax,1),%r8d
  setg   %al
  cmp    %r14d,0xc(%rsp)
  setge  %dil
  test   %al,%dil
  je     L63
  cmpb   $0x0,0x6f(%rsp)
  je     L63
  cmp    $0x1,%r8b
  movslq %r14d,%rbx
  mov    $0x1,%r11d
  sete   0x6e(%rsp)
  cmpl   $0x1,0xe0(%rsp)
  je     L280
  mov    %r14d,%r10d
  mov    %r8b,0x10(%rsp)
  mov    %r11d,%r14d
  jmp    L325
  nopl   0x0(%rax)
L204:
  cmp    %r13d,0xd0(%rsp)
  setg   %al
  add    $0x1,%rbx
  add    $0x1,%r12d
  cmp    0xc(%rsp),%r12d
  setle  %dil
  cmp    %ebp,%edx
  setg   %r8b
  test   %r8b,%dil
  je     L41
  test   %al,%al
  je     L41
L325:
  movzbl (%rcx,%rbx,1),%eax
  mov    (%rsi,%rbx,4),%ebp
  mov    %ebx,%r12d
  mov    %ebx,%r8d
  movzbl 0x10(%rsp),%edi
  sub    %r15d,%ebp
  or     %al,%dil
  je     L310
  cmp    $0x1,%al
  sete   %al
  test   %al,0x6e(%rsp)
  je     L204
L310:
  mov    %ebp,%edi
  mov    %edx,0xc8(%rsp)
  mov    %rcx,0x20(%rsp)
  mov    %rsi,0x18(%rsp)
  mov    %r10d,0x58(%rsp)
  mov    %r8d,0x14(%rsp)
  call   <fabs@plt>
  mov    0x58(%rsp),%r10d
  mov    0x18(%rsp),%rsi
  test   %eax,%eax
  mov    0x20(%rsp),%rcx
  mov    0xc8(%rsp),%edx
  jle    L204
  cmp    %eax,%edx
  jle    L204
  mov    0x14(%rsp),%r8d
  cmp    $0x1,%r14d
  cmove  %r8d,%r10d
  xor    %r14d,%r14d
  cmp    %eax,0xc0(%rsp)
  setl   %al
  movzbl %al,%eax
  add    %eax,%r13d
  jmp    L204
  nopl   (%rax)
L41:
  cmp    %r15d,0x68(%rsp)
  mov    0x28(%rsp),%r11d
  mov    %r10d,%r14d
  setg   %dil
  cmp    %r11d,0x5c(%rsp)
  setg   %r8b
  and    %r8d,%edi
  test   %al,%al
  je     L287
  test   %dil,%dil
  je     L287
  addq   $0x1,0x28(%rsp)
  jmp    L87
  nopl   0x0(%rax)
L280:
  mov    %r14d,%r10d
  mov    %r11d,%r14d
  jmp    L303
  nopl   0x0(%rax,%rax,1)
L174:
  mov    %r8d,%eax
  or     %r12b,%al
  je     L251
L185:
  cmp    0xd0(%rsp),%r13d
  setl   %al
  add    $0x1,%rbx
  add    $0x1,%ebp
  cmp    %ebp,0xc(%rsp)
  setge  %r9b
  cmp    %edi,%edx
  setg   %dil
  test   %dil,%r9b
  je     L41
  test   %al,%al
  je     L41
L303:
  movd   (%rsi,%rbx,4),%xmm2
  movd   0x10(%rsp),%xmm0
  mov    %ebx,%ebp
  mov    %ebx,%r9d
  movsbl (%rcx,%rbx,1),%r12d
  movd   %r15d,%xmm1
  movd   %ebx,%xmm3
  movd   %xmm2,%edi
  punpckldq %xmm2,%xmm1
  punpckldq %xmm3,%xmm0
  sub    %r15d,%edi
  cmp    $0x1,%r12b
  punpcklqdq %xmm0,%xmm1
  sete   %al
  test   %al,0x6e(%rsp)
  je     L174
L251:
  mov    %edx,0xc8(%rsp)
  mov    %rcx,0x38(%rsp)
  mov    %rsi,0x30(%rsp)
  mov    %r10d,0x20(%rsp)
  mov    %r8b,0x18(%rsp)
  mov    %edi,0x14(%rsp)
  mov    %r9d,0x58(%rsp)
  movaps %xmm1,0x40(%rsp)
  call   <fabs@plt>
  mov    0xc8(%rsp),%edx
  mov    0x14(%rsp),%edi
  movzbl 0x18(%rsp),%r8d
  mov    0x20(%rsp),%r10d
  cmp    %eax,%edx
  mov    0x30(%rsp),%rsi
  mov    0x38(%rsp),%rcx
  jle    L185
  test   %eax,%eax
  jle    L185
  mov    0x58(%rsp),%r9d
  cmp    $0x1,%r14d
  cmove  %r9d,%r10d
  xor    %r14d,%r14d
  cmp    0xc0(%rsp),%eax
  jle    L185
  add    $0x1,%r13d
  movdqa 0x40(%rsp),%xmm1
  movd   %r12d,%xmm4
  mov    0xe8(%rsp),%r11
  movslq %r13d,%rax
  mov    (%r11,%rax,8),%r9
  movsbl %r8b,%eax
  movd   %eax,%xmm0
  punpckldq %xmm4,%xmm0
  movups %xmm1,0x4(%r9)
  movq   %xmm0,0x14(%r9)
  jmp    L185
  nopl   0x0(%rax,%rax,1)
L63:
  mov    0x28(%rsp),%esi
  cmp    %esi,0x5c(%rsp)
  setg   %bl
  cmp    %r15d,0x68(%rsp)
  mov    0xd0(%rsp),%r14d
  setg   %dl
  and    %dl,%bl
  je     L151
  test   %al,%al
  je     L151
  mov    0x10(%rsp),%eax
  mov    0x68(%rsp),%esi
  mov    0x50(%rsp),%rdi
  mov    0x5c(%rsp),%r8d
  add    $0x1,%eax
  cltq
  jmp    L189
  nopl   0x0(%rax)
L180:
  test   %dl,%dl
  je     L107
L189:
  cmp    (%rdi,%rax,4),%esi
  setg   %dl
  cmp    %eax,%r8d
  setg   %cl
  add    $0x1,%rax
  and    %ecx,%edx
  cmp    %r13d,%r14d
  jg     L180
L107:
  mov    %edx,%ebx
L151:
  test   %r13d,%r13d
  jle    L53
  cmpl   $0x1,0xe0(%rsp)
  jne    L53
  mov    0xd8(%rsp),%rdx
  mov    0xb0(%rsp),%rsi
  mov    %r13d,%ecx
  mov    $0x2,%r8d
  mov    0xe8(%rsp),%rdi
  call   <remove_overlaps_v2@plt>
  mov    %eax,%r13d
L53:
  movzbl %bl,%ebx
  mov    0xb8(%rsp),%rax
  movd   %r13d,%xmm0
  neg    %ebx
  movd   %ebx,%xmm5
  punpckldq %xmm5,%xmm0
  movq   %xmm0,(%rax)
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L287:
  mov    %edi,%ebx
  jmp    L151
L199:
  mov    0x5c(%rsp),%eax
  mov    0x68(%rsp),%edi
  test   %eax,%eax
  mov    0x50(%rsp),%rax
  setg   %bl
  cmp    (%rax),%edi
  setg   %al
  and    %ebx,%ebp
  xor    %r8d,%r8d
  and    %eax,%ebp
  jmp    L376
```

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;
}
```