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

```asm
<remove_duplicates>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%r15
  mov    %edx,-0x44(%rbp)
  mov    %rcx,-0x50(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movslq %esi,%r14
  lea    0xf(,%r14,4),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L224:
  cmp    %rdx,%rsp
  je     L62
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L224
L62:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L155
  orq    $0x0,-0x8(%rsp,%rax,1)
L155:
  mov    %rsp,%r13
  test   %r14,%r14
  je     L128
  mov    $0x0,%eax
L167:
  movl   $0x1,0x0(%r13,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%r14
  jne    L167
  sub    $0x1,%esi
  movslq %esi,%rax
  mov    %rax,-0x58(%rbp)
  test   %rax,%rax
  je     L88
L45:
  mov    $0x0,%r12d
  jmp    L114
L228:
  add    $0x1,%r12
  cmp    -0x58(%rbp),%r12
  jae    L106
L114:
  mov    %r12,%rbx
  cmp    %r12,%r14
  jbe    L228
L76:
  add    $0x1,%rbx
  cmp    %rbx,%r14
  je     L228
  cmp    %r12,%rbx
  je     L76
  cmpl   $0x0,0x0(%r13,%r12,4)
  jne    L64
  cmpl   $0x0,0x0(%r13,%rbx,4)
  je     L76
L64:
  mov    (%r15,%rbx,8),%rsi
  mov    (%r15,%r12,8),%rdi
  mov    -0x44(%rbp),%edx
  call   <vectors_are_equal@plt>
  test   %rax,%rax
  je     L76
  movl   $0x0,0x0(%r13,%rbx,4)
  jmp    L76
L128:
  movq   $0xffffffffffffffff,-0x58(%rbp)
  jmp    L45
L106:
  test   %r14,%r14
  je     L139
L88:
  mov    $0x0,%edi
  mov    $0x0,%eax
L72:
  cmpl   $0x1,0x0(%r13,%rax,4)
  sbb    $0xffffffff,%edi
  add    $0x1,%rax
  cmp    %rax,%r14
  ja     L72
  mov    -0x44(%rbp),%ebx
  mov    %ebx,%esi
  call   <new_matrix_double@plt>
  mov    -0x50(%rbp),%rcx
  mov    %rax,(%rcx)
  mov    $0x0,%r8d
  mov    $0x0,%ecx
  movslq %ebx,%rdx
  jmp    L32
L54:
  mov    (%r15,%rcx,8),%rsi
  movsd  (%rsi,%rax,8),%xmm0
  mov    -0x50(%rbp),%rsi
  mov    (%rsi),%rsi
  mov    (%rsi,%rdi,1),%rsi
  movsd  %xmm0,(%rsi,%rax,8)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L54
L101:
  add    $0x1,%r8d
L83:
  add    $0x1,%rcx
  cmp    %rcx,%r14
  jbe    L184
L32:
  cmpl   $0x0,0x0(%r13,%rcx,4)
  je     L83
  test   %rdx,%rdx
  je     L101
  movslq %r8d,%rdi
  shl    $0x3,%rdi
  mov    $0x0,%eax
  jmp    L54
L139:
  mov    -0x44(%rbp),%esi
  mov    $0x0,%edi
  call   <new_matrix_double@plt>
  mov    -0x50(%rbp),%rcx
  mov    %rax,(%rcx)
  mov    $0x0,%r8d
L184:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L146
  mov    %r8d,%eax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L146:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int remove_duplicates(double **set, int setlen, int vlen, double ***newset) {
  size_t i, j;
  int unique[setlen];
  for (i = 0; i < setlen; i++)
    unique[i] = 1;
  for (i = 0; i < (setlen - 1); i++) {
    for (j = i; j < setlen; j++) {
      if ((i != j) && (unique[i] || unique[j])) {
        if (vectors_are_equal(set[i], set[j], vlen))
          unique[j] = 0;
      }
    }
  }
  int ctr = 0;
  for (i = 0; i < setlen; i++) {
    if (unique[i])
      ctr++;
  }
  (*newset) = new_matrix_double(ctr, vlen);
  ctr = 0;
  for (i = 0; i < setlen; i++) {
    if (unique[i]) {
      for (j = 0; j < vlen; j++)
        (*newset)[ctr][j] = set[i][j];
      ctr++;
    }
  }
  return ctr;
}
```