user: 请将以下的汇编代码转换成C语言代码:

```asm
<eikonalEquationEvaluate>:
  endbr64
  push   %r15
  mov    %edi,%eax
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rcx,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    0x80(%rsp),%rcx
  mov    0x88(%rsp),%r13
  test   %edi,%edi
  jle    L49
  mov    %esi,%r15d
  movapd %xmm0,%xmm4
  mov    %rdx,%rdi
  movslq %eax,%rsi
  lea    -0x1(%r15),%r10d
  xor    %r14d,%r14d
  xor    %r12d,%r12d
  movsd  D9(%rip),%xmm5
  xorpd  D13(%rip),%xmm4
  movsd  D14(%rip),%xmm6
  pxor   %xmm3,%xmm3
  lea    0x1(%r10),%r11
  cs nopw 0x0(%rax,%rax,1)
L74:
  movsd  (%rdi,%r12,8),%xmm1
  mov    0x90(%rsp),%rax
  movsd  %xmm1,(%r8,%r12,8)
  movsd  %xmm5,(%r9,%r12,8)
  movq   $0x0,(%rcx,%r12,8)
  movsd  %xmm4,(%rax,%r12,8)
  test   %r15d,%r15d
  jle    L70
  movslq %r14d,%rbx
  movapd %xmm3,%xmm2
  lea    (%r10,%rbx,1),%rdx
  lea    0x0(%rbp,%rbx,8),%rax
  lea    0x8(%rbp,%rdx,8),%rdx
  cs nopw 0x0(%rax,%rax,1)
L51:
  movsd  (%rax),%xmm1
  add    $0x8,%rax
  mulsd  %xmm1,%xmm1
  addsd  %xmm1,%xmm2
  cmp    %rdx,%rax
  jne    L51
  ucomisd %xmm2,%xmm3
  ja     L66
  sqrtsd %xmm2,%xmm2
  movsd  %xmm2,(%rcx,%r12,8)
L69:
  addsd  %xmm6,%xmm2
  lea    0x0(,%rbx,8),%rax
  add    %r11,%rbx
  shl    $0x3,%rbx
  nopl   0x0(%rax,%rax,1)
L45:
  movsd  0x0(%rbp,%rax,1),%xmm1
  divsd  %xmm2,%xmm1
  movsd  %xmm1,0x0(%r13,%rax,1)
  add    $0x8,%rax
  cmp    %rax,%rbx
  jne    L45
  add    $0x1,%r12
  add    %r15d,%r14d
  cmp    %rsi,%r12
  jne    L74
L49:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L70:
  movq   $0x0,(%rcx,%r12,8)
  add    $0x1,%r12
  add    %r15d,%r14d
  cmp    %rsi,%r12
  jne    L74
  jmp    L49
L66:
  movapd %xmm2,%xmm0
  mov    %r11,0x38(%rsp)
  mov    %r10,0x30(%rsp)
  mov    %rcx,0x80(%rsp)
  mov    %r9,0x28(%rsp)
  mov    %r8,0x20(%rsp)
  mov    %rdi,0x18(%rsp)
  mov    %rsi,0x10(%rsp)
  movsd  %xmm4,0x8(%rsp)
  call   <sqrt@plt>
  mov    D9(%rip),%rax
  movsd  0x8(%rsp),%xmm4
  pxor   %xmm3,%xmm3
  mov    0x10(%rsp),%rsi
  mov    0x18(%rsp),%rdi
  movapd %xmm0,%xmm2
  movq   %rax,%xmm5
  mov    0x20(%rsp),%r8
  mov    0x28(%rsp),%r9
  mov    0x80(%rsp),%rcx
  mov    D14(%rip),%rax
  mov    0x30(%rsp),%r10
  mov    0x38(%rsp),%r11
  movsd  %xmm0,(%rcx,%r12,8)
  movq   %rax,%xmm6
  jmp    L69
```

tool_calls: name: retrieve_data
arguments: data_label: D9
data_type: f64
name: retrieve_data
arguments: data_label: D13
data_type: f32[4]
name: retrieve_data
arguments: data_label: D14
data_type: byte[8]

tool: D9: 1

tool: {"D13": [0.0,-0.0,0.0,0.0]}

tool: {"D14": [0x11,0xea,0x2d,0x81,0x99,0x97,0x71,0x3d]}

assistant: ```c
void eikonalEquationEvaluate(int nPoints, int nSpace, double rhs, double *u, double *grad_u, double *m, double *dm, double *H, double *dH, double *r) {
  int i, I;
  double normGradU;
  for (i = 0; i < nPoints; i++) {
    m[i] = u[i];
    dm[i] = 1.0;
    H[i] = 0.0;
    r[i] = -rhs;
    normGradU = 0.0;
    for (I = 0; I < nSpace; I++)
      normGradU += grad_u[i * nSpace + I] * grad_u[i * nSpace + I];
    normGradU = sqrt(normGradU);
    H[i] = normGradU;
    for (I = 0; I < nSpace; I++) {
      dH[i * nSpace + I] = grad_u[i * nSpace + I] / (normGradU + 1.0e-12);
    }
  }
}
```