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

```asm
<levelSetCurvatureCoefficientsEvaluate>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    0x80(%rsp),%r11
  test   %edi,%edi
  jle    L157
  mov    %esi,%r13d
  xor    %eax,%eax
  movslq %edi,%rsi
  movsd  D14(%rip),%xmm4
  mov    %r13d,%r14d
  mov    %rdx,%rbp
  mov    %rcx,%r10
  mov    %rsi,%rdi
  and    $0xfffffffe,%r14d
  test   %r13d,%r13d
  cmovns %r13d,%eax
  xor    %ebx,%ebx
  xor    %r12d,%r12d
  mov    %eax,0xc(%rsp)
  mov    %r13d,%eax
  shr    %eax
  lea    -0x1(%rax),%r15d
  lea    -0x1(%r13),%eax
  add    $0x1,%rax
  add    $0x1,%r15
  mov    %rax,0x18(%rsp)
  shl    $0x4,%r15
L69:
  movsd  (%r10,%r12,8),%xmm0
  movsd  %xmm0,(%r9,%r12,8)
  movsd  %xmm4,(%r11,%r12,8)
  test   %r13d,%r13d
  jle    L188
  cmp    $0x1,%r13d
  je     L130
  movslq %ebx,%rax
  pxor   %xmm3,%xmm3
  lea    0x0(%rbp,%rax,8),%rax
  movapd %xmm3,%xmm0
  lea    (%rax,%r15,1),%rdx
  nopl   (%rax)
L88:
  movupd (%rax),%xmm2
  add    $0x10,%rax
  mulpd  %xmm2,%xmm2
  addsd  %xmm2,%xmm0
  unpckhpd %xmm2,%xmm2
  addsd  %xmm2,%xmm0
  cmp    %rdx,%rax
  jne    L88
  mov    %r14d,%eax
  cmp    %r14d,%r13d
  je     L187
L66:
  add    %ebx,%eax
  cltq
  movsd  0x0(%rbp,%rax,8),%xmm1
  mulsd  %xmm1,%xmm1
  addsd  %xmm1,%xmm0
L187:
  ucomisd %xmm0,%xmm3
  ja     L169
  sqrtsd %xmm0,%xmm0
  comisd %xmm3,%xmm0
  ja     L19
L188:
  mov    0xc(%rsp),%eax
L95:
  add    %ebx,%eax
  cltq
  movq   $0x0,(%r8,%rax,8)
L115:
  add    $0x1,%r12
  add    %r13d,%ebx
  cmp    %rdi,%r12
  jne    L69
L157:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L19:
  movslq %ebx,%rax
  mov    %rax,0x10(%rsp)
  shl    $0x3,%rax
  lea    0x8(%rax),%rdx
  lea    (%r8,%rax,1),%rcx
  lea    0x0(%rbp,%rdx,1),%rsi
  cmp    %rsi,%rcx
  je     L71
  cmp    $0x1,%r13d
  je     L71
  movapd %xmm0,%xmm2
  add    %rbp,%rax
  xor    %edx,%edx
  unpcklpd %xmm2,%xmm2
  nopl   0x0(%rax)
L3:
  movupd (%rax,%rdx,1),%xmm1
  divpd  %xmm2,%xmm1
  movups %xmm1,(%rcx,%rdx,1)
  add    $0x10,%rdx
  cmp    %r15,%rdx
  jne    L3
  cmp    %r14d,%r13d
  je     L115
  lea    (%rbx,%r14,1),%eax
  cltq
  movsd  0x0(%rbp,%rax,8),%xmm1
  divsd  %xmm0,%xmm1
  movsd  %xmm1,(%r8,%rax,8)
  jmp    L115
L130:
  pxor   %xmm3,%xmm3
  xor    %eax,%eax
  movapd %xmm3,%xmm0
  jmp    L66
L71:
  mov    0x18(%rsp),%rsi
  mov    0x10(%rsp),%rcx
  add    %rsi,%rcx
  shl    $0x3,%rcx
  jmp    L92
  nopl   0x0(%rax,%rax,1)
L181:
  add    $0x8,%rdx
L92:
  movsd  0x0(%rbp,%rax,1),%xmm1
  divsd  %xmm0,%xmm1
  movsd  %xmm1,(%r8,%rax,1)
  mov    %rdx,%rax
  cmp    %rdx,%rcx
  jne    L181
  jmp    L115
L169:
  mov    %r11,0x80(%rsp)
  mov    %r9,0x38(%rsp)
  mov    %r8,0x30(%rsp)
  mov    %r10,0x28(%rsp)
  mov    %rdi,0x20(%rsp)
  movsd  %xmm3,0x10(%rsp)
  call   <sqrt@plt>
  movsd  0x10(%rsp),%xmm3
  mov    0x20(%rsp),%rdi
  mov    D14(%rip),%rax
  mov    0x28(%rsp),%r10
  comisd %xmm3,%xmm0
  mov    0x30(%rsp),%r8
  mov    0x38(%rsp),%r9
  mov    0x80(%rsp),%r11
  movq   %rax,%xmm4
  ja     L19
  mov    %r13d,%eax
  jmp    L95
```

tool_calls: name: retrieve_data
arguments: data_tag: D14
type_guessed: f64

tool: D14: 1

assistant: ```c
void levelSetCurvatureCoefficientsEvaluate(int nPoints, int nSpace, double *grad_phi, double *u, double *f, double *r, double *dr) {
  int i, I;
  double norm_grad_phi;
  for (i = 0; i < nPoints; i++) {
    r[i] = u[i];
    dr[i] = 1.0;
    norm_grad_phi = 0.0;
    for (I = 0; I < nSpace; I++)
      norm_grad_phi += grad_phi[i * nSpace + I] * grad_phi[i * nSpace + I];
    norm_grad_phi = sqrt(norm_grad_phi);
    if (norm_grad_phi > 0.0) {
      for (I = 0; I < nSpace; I++)
        f[i * nSpace + I] = grad_phi[i * nSpace + I] / norm_grad_phi;
    } else
      f[i * nSpace + I] = 0.0;
  }
}
```