user: What is the c source code of the assembly code below?

```asm
<dist_4v_unordered_nostrand_v2>:
  endbr64
  push   %r15
  movslq %ecx,%rax
  mov    %rsi,%r11
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    (%rsi,%rax,4),%esi
  mov    0x4(%r11),%r14d
  mov    0x88(%rsp),%ebx
  mov    %rdi,0x18(%rsp)
  mov    0xb0(%rsp),%edi
  mov    %edx,0x20(%rsp)
  test   %ebx,%ebx
  mov    %ecx,0xc(%rsp)
  mov    0x80(%rsp),%ebp
  setg   0x8(%rsp)
  add    %ebx,%esi
  sub    %ebx,%r14d
  mov    0x90(%rsp),%r15d
  mov    %r8,0x38(%rsp)
  mov    %r9,0x30(%rsp)
  mov    %esi,0x24(%rsp)
  test   %edi,%edi
  jne    L100
L303:
  movslq 0x20(%rsp),%rax
  mov    0x18(%rsp),%rsi
  mov    %rax,%rdi
  mov    (%rsi,%rax,8),%rdx
  mov    0x8(%rsi),%rax
  mov    0x8(%rdx),%ecx
  mov    0x4(%rax),%r10d
  mov    0x8(%rax),%r9d
  mov    0xc(%rax),%r8d
  mov    0x4(%rdx),%eax
  mov    0xc(%rdx),%edx
  cmp    %ecx,%eax
  cmovg  %ecx,%eax
  cmp    %edx,%eax
  cmovg  %edx,%eax
  cmp    %r14d,%eax
  jge    L420
  mov    0xb0(%rsp),%r14d
  lea    0x1(%rdi),%esi
  mov    %edi,%r12d
  xor    %r13d,%r13d
  test   %r14d,%r14d
  je     L266
L308:
  mov    %r9d,%ecx
  mov    %r10d,%edx
  lea    D46(%rip),%rdi
  xor    %eax,%eax
  mov    %r11,(%rsp)
  call   <printf@plt>
  mov    (%rsp),%r11
L60:
  test   %r13b,%r13b
  je     L397
  mov    0xc(%rsp),%ecx
  movq   D43(%rip),%xmm1
  mov    %r11,%r14
  test   %ecx,%ecx
  setg   %al
  add    $0x1,%r12d
  and    0x8(%rsp),%al
  mov    %al,0x2b(%rsp)
  movslq %r12d,%rax
  xor    %r12d,%r12d
  mov    %rax,0x10(%rsp)
  nopw   0x0(%rax,%rax,1)
L33:
  mov    0x10(%rsp),%rax
  mov    0x18(%rsp),%rdi
  mov    0xb0(%rsp),%edx
  mov    %eax,%esi
  mov    (%rdi,%rax,8),%rax
  mov    0x4(%rax),%r13d
  mov    0x8(%rax),%r11d
  mov    0xc(%rax),%eax
  mov    %eax,(%rsp)
  test   %edx,%edx
  jne    L80
L113:
  cmp    %r12d,%r15d
  movzbl 0x2b(%rsp),%r10d
  setg   %al
  and    %al,%r10b
  je     L0
  mov    %r10b,0x8(%rsp)
  xor    %esi,%esi
  nopl   0x0(%rax)
L61:
  add    $0x1,%esi
  pxor   %xmm0,%xmm0
  movslq %esi,%rax
  mov    (%r14,%rax,4),%edi
  mov    %edi,%ecx
  sub    %r13d,%ecx
  cvtsi2sd %ecx,%xmm0
  andpd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  cmp    %eax,%ebp
  setl   %dl
  cmp    %eax,%ebx
  setg   %al
  and    %al,%dl
  je     L149
  mov    %edi,%r8d
  pxor   %xmm0,%xmm0
  sub    %r11d,%r8d
  cvtsi2sd %r8d,%xmm0
  cmp    %r8d,%ebx
  setg   %r9b
  andpd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  cmp    %eax,%ebp
  jge    L426
  cmp    %eax,%ebx
  jle    L426
  mov    %edi,%edx
  pxor   %xmm0,%xmm0
  sub    (%rsp),%edx
  cvtsi2sd %edx,%xmm0
  cmp    %edx,%r8d
  andpd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%r10d
  mov    %r8d,%eax
  cmovl  %edx,%eax
  cmp    %edx,%ebx
  setg   %dl
  cmp    %r10d,%ebp
  jge    L391
  cmp    %r10d,%ebx
  jle    L391
  add    $0x1,%r12d
  cmpl   $0x1,0xa0(%rsp)
  jne    L391
  mov    0xa8(%rsp),%r10
  movslq %r12d,%r8
  pcmpeqd %xmm2,%xmm2
  mov    (%r10,%r8,8),%r8
  mov    (%rsp),%r10d
  mov    %edi,0x10(%r8)
  mov    0x18(%rsp),%rdi
  mov    %r10d,0xc(%r8)
  mov    0x10(%rsp),%r10
  mov    %r13d,0x4(%r8)
  mov    (%rdi,%r10,8),%rdi
  mov    %r11d,0x8(%r8)
  mov    0x10(%rdi),%r10d
  mov    %r10d,0x14(%r8)
  mov    0x14(%rdi),%r10d
  mov    %r10d,0x18(%r8)
  mov    0x18(%rdi),%edi
  mov    %esi,0x20(%r8)
  mov    %edi,0x1c(%r8)
  movups %xmm2,0x24(%r8)
  nopw   0x0(%rax,%rax,1)
L391:
  cmp    %r15d,%r12d
  setl   %dil
  cmp    %eax,%ecx
  cmovge %ecx,%eax
  cmp    %ebx,%eax
  jle    L425
L418:
  mov    0x24(%rsp),%esi
  mov    (%rsp),%eax
  mov    0x10(%rsp),%ecx
  cmp    %eax,%esi
  setg   %al
  cmp    %ecx,0x20(%rsp)
  setg   %dl
  and    %edx,%eax
  cmp    %r11d,%r13d
  cmovl  %r11d,%r13d
  cmp    %r13d,%esi
  setg   %dl
  test   %dl,%al
  je     L322
  test   %dil,%dil
  je     L322
  addq   $0x1,0x10(%rsp)
  jmp    L33
  nopw   0x0(%rax,%rax,1)
L149:
  xor    %eax,%eax
  cmp    %r15d,%r12d
  movzbl 0x8(%rsp),%r9d
  setl   %dil
  cmp    %eax,%ecx
  cmovge %ecx,%eax
  mov    %r9d,%edx
  cmp    %ebx,%eax
  jg     L418
L425:
  cmp    %esi,0xc(%rsp)
  setg   %al
  cmp    %ecx,%ebx
  setg   %cl
  and    %ecx,%eax
  and    %r9d,%eax
  test   %dl,%al
  je     L418
  test   %dil,%dil
  jne    L61
  jmp    L418
  cs nopw 0x0(%rax,%rax,1)
L426:
  xor    %eax,%eax
  test   %r8d,%r8d
  cmovns %r8d,%eax
  jmp    L391
  xchg   %ax,%ax
L80:
  mov    %eax,%r8d
  mov    %r11d,%ecx
  mov    %r13d,%edx
  xor    %eax,%eax
  lea    D80(%rip),%rdi
  mov    %r11d,0x2c(%rsp)
  mov    %esi,0x8(%rsp)
  call   <printf@plt>
  mov    0x2c(%rsp),%r11d
  mov    0x8(%rsp),%esi
  movq   D43(%rip),%xmm1
  jmp    L113
  cs nopw 0x0(%rax,%rax,1)
L0:
  mov    0x10(%rsp),%edi
  mov    0x24(%rsp),%ebx
  cmp    %edi,0x20(%rsp)
  mov    (%rsp),%edi
  setg   %dl
  cmp    %edi,%ebx
  setg   %cl
  and    %ecx,%edx
  cmp    %r11d,%r13d
  cmovl  %r11d,%r13d
  cmp    %ebx,%r13d
  setl   %cl
  test   %cl,%dl
  je     L322
  test   %al,%al
  je     L322
  add    $0x1,%esi
  mov    %ebx,%r14d
  mov    %r15d,%r10d
  mov    0x20(%rsp),%r9d
  mov    0x18(%rsp),%r15
  mov    0xb0(%rsp),%r11d
  movslq %esi,%rbx
  lea    D80(%rip),%rdi
  jmp    L136
  nopl   (%rax)
L211:
  cmp    %ebx,%r9d
  setg   %al
  cmp    %r12d,%r10d
  setg   %dl
  and    %edx,%eax
  cmp    %r8d,%r14d
  setg   %dl
  and    %edx,%eax
  cmp    %r13d,%ebp
  cmovl  %r13d,%ebp
  cmp    %ebp,%r14d
  setg   %dl
  add    $0x1,%rbx
  test   %dl,%al
  je     L234
L136:
  mov    (%r15,%rbx,8),%rax
  mov    %ebx,%esi
  mov    0x4(%rax),%r13d
  mov    0x8(%rax),%ebp
  mov    0xc(%rax),%r8d
  test   %r11d,%r11d
  je     L211
  mov    %ebp,%ecx
  mov    %r13d,%edx
  xor    %eax,%eax
  mov    %r11d,0xb0(%rsp)
  mov    %r10d,0x90(%rsp)
  mov    %r9d,(%rsp)
  mov    %r8d,0x8(%rsp)
  call   <printf@plt>
  mov    (%rsp),%r9d
  mov    0x8(%rsp),%r8d
  lea    D80(%rip),%rdi
  mov    0xb0(%rsp),%r11d
  mov    0x90(%rsp),%r10d
  jmp    L211
  nopl   0x0(%rax,%rax,1)
L234:
  mov    %r10d,%r15d
L322:
  test   %r12d,%r12d
  jle    L137
  cmpl   $0x1,0xa0(%rsp)
  jne    L137
  mov    0x38(%rsp),%rsi
  mov    $0x4,%r8d
  mov    %r12d,%ecx
  xor    %eax,%eax
  mov    0x98(%rsp),%rdx
  mov    0xa8(%rsp),%rdi
  call   <remove_overlaps_v2@plt>
  mov    %eax,0xb0(%rsp)
  movd   %eax,%xmm0
L187:
  xor    %eax,%eax
  cmp    %r15d,%r12d
  setge  %al
  neg    %eax
  movd   %eax,%xmm3
  mov    0x30(%rsp),%rax
  punpckldq %xmm3,%xmm0
  movq   %xmm0,(%rax)
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L137:
  mov    %r12d,0xb0(%rsp)
  movd   %r12d,%xmm0
  jmp    L187
L420:
  cmp    %r9d,%r10d
  mov    %r9d,%eax
  cmovge %r10d,%eax
  cmp    %r8d,%eax
  cmovl  %r8d,%eax
  cmp    %eax,0x24(%rsp)
  setg   %dl
  test   %r15d,%r15d
  setg   %al
  and    %eax,%edx
  cmp    %r9d,%r10d
  mov    %r9d,%eax
  cmovle %r10d,%eax
  mov    %edx,%r13d
  cmp    %r8d,%eax
  cmovg  %r8d,%eax
  cmp    %r14d,%eax
  jge    L295
  cmp    $0x1,%edi
  jle    L295
  mov    %r8d,(%rsp)
  lea    0x10(%rsi),%rcx
  mov    %edi,%r8d
  mov    $0x1,%esi
  jmp    L159
  nopl   0x0(%rax,%rax,1)
L434:
  cmp    %esi,%r8d
  jle    L302
L159:
  mov    (%rcx),%rdx
  mov    %esi,%r12d
  add    $0x8,%rcx
  add    $0x1,%esi
  mov    0x4(%rdx),%edi
  mov    0x8(%rdx),%eax
  mov    0xc(%rdx),%edx
  cmp    %eax,%edi
  cmovle %edi,%eax
  cmp    %edx,%eax
  cmovg  %edx,%eax
  cmp    %r14d,%eax
  jl     L434
L302:
  cmp    %r12d,0x20(%rsp)
  mov    (%rsp),%r8d
  setg   %al
  and    %eax,%r13d
L380:
  mov    0xb0(%rsp),%edi
  test   %edi,%edi
  je     L60
  jmp    L308
  nopl   (%rax)
L100:
  mov    %r11,(%rsp)
  mov    %ebp,%ecx
  mov    %r15d,%r9d
  mov    %ebx,%r8d
  push   %rsi
  lea    D101(%rip),%rdi
  xor    %eax,%eax
  mov    $0x1,%r13d
  push   %r14
  mov    0x30(%rsp),%r12d
  mov    0x1c(%rsp),%edx
  mov    %r12d,%esi
  call   <printf@plt>
  mov    %r12d,%esi
  xor    %eax,%eax
  mov    %r12d,0x30(%rsp)
  lea    D106(%rip),%rdi
  lea    D74(%rip),%r12
  call   <printf@plt>
  pop    %rax
  pop    %rdx
  mov    0x20(%rsp),%ecx
  mov    (%rsp),%r11
  test   %ecx,%ecx
  jle    L318
  mov    %r11,(%rsp)
  mov    %ebp,0x80(%rsp)
  mov    0x20(%rsp),%ebp
  mov    %ebx,0x88(%rsp)
  mov    %r13,%rbx
  mov    0x18(%rsp),%r13
L345:
  mov    0x0(%r13,%rbx,8),%rax
  mov    %ebx,%esi
  mov    %r12,%rdi
  add    $0x1,%rbx
  mov    0x8(%rax),%ecx
  mov    0x4(%rax),%edx
  mov    0xc(%rax),%r8d
  xor    %eax,%eax
  call   <printf@plt>
  cmp    %ebx,%ebp
  jge    L345
  mov    (%rsp),%r11
  mov    0x80(%rsp),%ebp
  mov    0x88(%rsp),%ebx
L318:
  mov    0xc(%rsp),%esi
  xor    %eax,%eax
  mov    %r11,(%rsp)
  mov    $0x1,%r13d
  lea    D6(%rip),%rdi
  lea    D103(%rip),%r12
  call   <printf@plt>
  mov    0xc(%rsp),%eax
  mov    (%rsp),%r11
  test   %eax,%eax
  jle    L107
  mov    %ebx,0x88(%rsp)
  mov    %r13,%rbx
  mov    0xc(%rsp),%r13d
  mov    %ebp,0x80(%rsp)
  mov    %r11,%rbp
  nopl   (%rax)
L141:
  mov    0x0(%rbp,%rbx,4),%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %ebx,%r13d
  jge    L141
  mov    %rbp,%r11
  mov    0x88(%rsp),%ebx
  mov    0x80(%rsp),%ebp
L107:
  mov    $0xa,%edi
  mov    %r11,(%rsp)
  call   <putchar@plt>
  mov    (%rsp),%r11
  jmp    L303
L266:
  movd   0xb0(%rsp),%xmm0
  xor    %r12d,%r12d
  jmp    L187
L295:
  mov    0x20(%rsp),%r12d
  mov    $0x1,%esi
  test   %r12d,%r12d
  setg   %al
  xor    %r12d,%r12d
  and    %eax,%r13d
  jmp    L380
L397:
  movl   $0x0,0xb0(%rsp)
  xor    %r12d,%r12d
  movd   0xb0(%rsp),%xmm0
  jmp    L187
```

tool_calls: name: retrieve_data
arguments: label: D46
datatype: string
name: retrieve_data
arguments: label: D43
datatype: qword
name: retrieve_data
arguments: label: D80
datatype: string
name: retrieve_data
arguments: label: D101
datatype: string
name: retrieve_data
arguments: label: D106
datatype: string
name: retrieve_data
arguments: label: D74
datatype: string
name: retrieve_data
arguments: label: D6
datatype: string
name: retrieve_data
arguments: label: D103
datatype: string

tool: D46: 	init_i=%d	p1=%d	p2=%d	p3=%d


tool: D43: 9223372036854775807

tool: D80: 		i=%d	p1=%d	p2=%d	p3=%d	

tool: D101: dist_4v_unordered_nostrand_v1	n123=%d	n4=%d
min_dist=%d	max_dist=%d	max_n_ovdi=%d	min_p4=%d	max_p4=%d


tool: D106: ovdi123_p (n123=%d)


tool: D74: %d	%d	%d	%d


tool: D6: m4 (n4=%d)


tool: D103: %d %d,

assistant: ```c
void dist_4v_unordered_nostrand_v2(int **ovdi123_p, int *m4_p, int n123, int n4, int **ovdi, int *n, int min_dist, int max_dist, int max_n_ovdi, int *ml, int get_positions, int **all_ovdi, int verbose) {
  int i, j;
  int p1, p2, p3, p4;
  int d14, d24, d34;
  int ad14, ad24, ad34;
  int n_ovdi = 0;
  int n_cooc;
  int max_p4;
  int min_p4;
  int init_i;
  max_p4 = m4_p[n4] + max_dist;
  min_p4 = m4_p[1] - max_dist;
  if (verbose) {
    printf("dist_4v_unordered_nostrand_v1\tn123=%d\tn4=%d\nmin_dist=%d\tmax_dist=%d\tmax_n_ovdi=%d\tmin_p4=%d\tmax_p4=%d\n", n123, n4, min_dist, max_dist, max_n_ovdi, min_p4, max_p4);
    printf("ovdi123_p (n123=%d)\n", n123);
    for (i = 1; i <= n123; i++)
      printf("%d\t%d\t%d\t%d\n", i, ovdi123_p[i][1], ovdi123_p[i][2], ovdi123_p[i][3]);
    printf("m4 (n4=%d)\n", n4);
    for (i = 1; i <= n4; i++)
      printf("%d %d,", i, m4_p[i]);
    printf("\n");
  }
  if ((ovdi123_p[n123][1] < min_p4) | (ovdi123_p[n123][2] < min_p4) | (ovdi123_p[n123][3] < min_p4)) {
    init_i = n123 + 1;
  } else {
    init_i = 1;
    p1 = ovdi123_p[init_i][1];
    p2 = ovdi123_p[init_i][2];
    p3 = ovdi123_p[init_i][3];
    while (((p1 < min_p4) | (p2 < min_p4) | (p3 < min_p4)) & (init_i < n123)) {
      init_i++;
      p1 = ovdi123_p[init_i][1];
      p2 = ovdi123_p[init_i][2];
      p3 = ovdi123_p[init_i][3];
    }
  }
  i = init_i - 1;
  p1 = ovdi123_p[1][1];
  p2 = ovdi123_p[1][2];
  p3 = ovdi123_p[1][3];
  if (verbose)
    printf("\tinit_i=%d\tp1=%d\tp2=%d\tp3=%d\n", init_i, p1, p2, p3);
  while ((i < n123) & (n_ovdi < max_n_ovdi) & (p1 < max_p4) & (p2 < max_p4) & (p3 < max_p4)) {
    i++;
    j = 0;
    p1 = ovdi123_p[i][1];
    p2 = ovdi123_p[i][2];
    p3 = ovdi123_p[i][3];
    d14 = 0;
    d24 = 0;
    d34 = 0;
    if (verbose)
      printf("\t\ti=%d\tp1=%d\tp2=%d\tp3=%d\t", i, p1, p2, p3);
    while ((j < n4) & (n_ovdi < max_n_ovdi) & (d14 < max_dist) & (d24 < max_dist) & (d34 < max_dist)) {
      j++;
      p4 = m4_p[j];
      d24 = 0;
      d34 = 0;
      d14 = p4 - p1;
      ad14 = fabs(d14);
      if ((ad14 > min_dist) & (ad14 < max_dist)) {
        d24 = p4 - p2;
        ad24 = fabs(d24);
        if ((ad24 > min_dist) & (ad24 < max_dist)) {
          d34 = p4 - p3;
          ad34 = fabs(d34);
          if ((ad34 > min_dist) & (ad34 < max_dist)) {
            n_ovdi++;
            if (get_positions == 1) {
              all_ovdi[n_ovdi][1] = p1;
              all_ovdi[n_ovdi][2] = p2;
              all_ovdi[n_ovdi][3] = p3;
              all_ovdi[n_ovdi][4] = p4;
              all_ovdi[n_ovdi][5] = ovdi123_p[i][4];
              all_ovdi[n_ovdi][6] = ovdi123_p[i][5];
              all_ovdi[n_ovdi][7] = ovdi123_p[i][6];
              all_ovdi[n_ovdi][8] = j;
              all_ovdi[n_ovdi][9] = -1;
              all_ovdi[n_ovdi][10] = -1;
              all_ovdi[n_ovdi][11] = -1;
              all_ovdi[n_ovdi][12] = -1;
            }
          }
        }
      }
      if ((d14 > max_dist) | (d24 > max_dist) | (d34 > max_dist))
        j = n4 + 1;
    }
  }
  if ((n_ovdi > 0) & (get_positions == 1)) {
    n_cooc = remove_overlaps_v2(all_ovdi, ovdi, ml, n_ovdi, 4);
  } else {
    n_cooc = n_ovdi;
  }
  n[1] = 0;
  if (n_ovdi >= max_n_ovdi)
    n[1] = -1;
  n[0] = n_cooc;
}
```