user: Please show me the C implementation that matches the assembly code listed below:

```asm
<DOsvdPlane>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdx,%r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %esi,%ebp
  mov    $0x3,%esi
  push   %rbx
  mov    %rdi,%rbx
  mov    %ebp,%edi
  sub    $0x18,%rsp
  mov    %rcx,(%rsp)
  call   <allocMatrix@plt>
  mov    $0x3,%esi
  mov    $0x3,%edi
  mov    %rax,%r13
  call   <allocMatrix@plt>
  mov    $0x3,%edi
  mov    %rax,%r12
  call   <allocVect@plt>
  xor    %edi,%edi
  cmp    $0x2,%ebp
  setg   %dil
  mov    %rax,%r15
  call   <assert@plt>
  movss  (%rbx),%xmm2
  mov    (%rsp),%rcx
  movss  %xmm2,(%rcx)
  movss  0x4(%rbx),%xmm1
  movss  %xmm1,0x4(%rcx)
  movss  0x8(%rbx),%xmm0
  movss  %xmm0,0x8(%rcx)
  cmp    $0x1,%ebp
  jle    L76
  lea    -0x2(%rbp),%edx
  lea    0xc(%rbx),%rax
  lea    (%rdx,%rdx,2),%rdx
  lea    0x18(%rbx,%rdx,4),%rdx
  nopl   0x0(%rax,%rax,1)
L60:
  addss  (%rax),%xmm2
  add    $0xc,%rax
  movss  %xmm2,(%rcx)
  addss  -0x8(%rax),%xmm1
  movss  %xmm1,0x4(%rcx)
  addss  -0x4(%rax),%xmm0
  movss  %xmm0,0x8(%rcx)
  cmp    %rax,%rdx
  jne    L60
  pxor   %xmm3,%xmm3
  cvtsi2ss %ebp,%xmm3
  divss  %xmm3,%xmm2
  divss  %xmm3,%xmm1
  movss  %xmm2,(%rcx)
  divss  %xmm3,%xmm0
  movss  %xmm1,0x4(%rcx)
  movss  %xmm0,0x8(%rcx)
L46:
  lea    -0x1(%rbp),%eax
  lea    0x8(%r13),%r11
  lea    0x10(%r13,%rax,8),%rdi
  xor    %eax,%eax
L52:
  lea    0x1(%rax),%r9
  movss  (%rcx,%rax,4),%xmm1
  lea    (%rbx,%rax,4),%rdx
  mov    %r11,%rax
  lea    0x0(,%r9,8),%r8
  nopl   (%rax)
L21:
  movss  (%rdx),%xmm0
  mov    (%rax),%rsi
  add    $0x8,%rax
  add    $0xc,%rdx
  subss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  movsd  %xmm0,(%rsi,%r8,1)
  cmp    %rax,%rdi
  jne    L21
  mov    %r9,%rax
  cmp    $0x3,%r9
  jne    L52
L15:
  mov    %r12,%r8
  mov    %r15,%rcx
  mov    $0x3,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  xor    %ebx,%ebx
  call   <svdcmp@plt>
  movss  D5(%rip),%xmm5
  movss  %xmm5,(%rsp)
L62:
  movsd  0x8(%r15,%rbx,8),%xmm0
  call   <fabs@plt>
  movss  (%rsp),%xmm4
  comiss %xmm0,%xmm4
  ja     L14
L87:
  add    $0x1,%rbx
  cmp    $0x3,%rbx
  jne    L62
  mov    0xc(%rsp),%ebx
  mov    0x8(%r12),%rdx
  mov    %r15,%rdi
  mov    0x10(%r12),%rax
  add    $0x1,%ebx
  movslq %ebx,%rbx
  movsd  (%rdx,%rbx,8),%xmm0
  movhpd (%rax,%rbx,8),%xmm0
  mov    0x18(%r12),%rax
  cvtpd2ps %xmm0,%xmm0
  movlps %xmm0,(%r14)
  pxor   %xmm0,%xmm0
  cvtsd2ss (%rax,%rbx,8),%xmm0
  movss  %xmm0,0x8(%r14)
  call   <freeVect@plt>
  mov    %r12,%rdi
  mov    $0x3,%esi
  call   <freeMatrix@plt>
  add    $0x18,%rsp
  mov    %ebp,%esi
  mov    %r13,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10d0 <freeMatrix@plt>
  xchg   %ax,%ax
L14:
  movsd  0x8(%r15,%rbx,8),%xmm0
  call   <fabs@plt>
  mov    %ebx,0xc(%rsp)
  movss  %xmm0,(%rsp)
  jmp    L87
L76:
  pxor   %xmm3,%xmm3
  cvtsi2ss %ebp,%xmm3
  divss  %xmm3,%xmm2
  divss  %xmm3,%xmm1
  movss  %xmm2,(%rcx)
  divss  %xmm3,%xmm0
  movss  %xmm1,0x4(%rcx)
  movss  %xmm0,0x8(%rcx)
  jne    L15
  jmp    L46
```

tool_calls: name: read_data
arguments: data_tag: D5
type_infered: byte[4]

tool: {"D5": [0xca,0xf2,0x49,0x71]}

assistant: ```c
void DOsvdPlane(float *pnts, int npnts, float *n, float *base) {
  int i, j;
  double **da = allocMatrix(npnts, 3);
  double **v = allocMatrix(3, 3);
  double *w = allocVect(3);
  float mn = 1E30f;
  int bestat;
  assert(npnts >= 3);
  base[0] = pnts[0];
  base[1] = pnts[1];
  base[2] = pnts[2];
  for (i = 1; i < npnts; i++) {
    for (j = 0; j < 3; j++)
      base[j] += pnts[i * 3 + j];
  }
  base[0] /= (float)(npnts);
  base[1] /= (float)(npnts);
  base[2] /= (float)(npnts);
  for (i = 0; i < 3; i++) {
    for (j = 0; j < npnts; j++)
      da[j + 1][i + 1] = pnts[j * 3 + i] - base[i];
  }
  svdcmp(da, npnts, 3, w, v);
  for (i = 0; i < 3; i++) {
    if (fabs(w[i + 1]) < mn) {
      mn = (float)fabs(w[i + 1]);
      bestat = i;
    }
  }
  n[0] = (float)v[1][bestat + 1];
  n[1] = (float)v[2][bestat + 1];
  n[2] = (float)v[3][bestat + 1];
  freeVect(w);
  freeMatrix(v, 3);
  freeMatrix(da, npnts);
}
```