user: Converte this assembly snippet into its equivalent C code:

```asm
<Thomas_Fermi>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  movsd  %xmm0,-0x28(%rbp)
  mov    %rdi,-0x30(%rbp)
  mov    $0x0,%eax
  call   <N_LogGrid@plt>
  mov    %eax,-0x1c(%rbp)
  mov    $0x0,%eax
  call   <r_LogGrid@plt>
  cltq
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x20(%rbp)
  jmp    L8
L13:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm3
  movsd  %xmm3,-0x38(%rbp)
  movsd  -0x28(%rbp),%xmm0
  movsd  D115(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movsd  D100(%rip),%xmm0
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <pow@plt>
  mulsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  movsd  -0x8(%rbp),%xmm2
  movsd  D63(%rip),%xmm1
  mulsd  %xmm1,%xmm2
  movsd  D76(%rip),%xmm1
  subsd  %xmm2,%xmm1
  movapd %xmm1,%xmm2
  mulsd  -0x8(%rbp),%xmm2
  movsd  D112(%rip),%xmm1
  subsd  %xmm2,%xmm1
  mulsd  %xmm0,%xmm1
  movsd  D82(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0x8(%rbp),%xmm2
  movsd  D78(%rip),%xmm0
  mulsd  %xmm0,%xmm2
  movsd  D33(%rip),%xmm0
  addsd  %xmm2,%xmm0
  movapd %xmm0,%xmm2
  mulsd  -0x8(%rbp),%xmm2
  movsd  D5(%rip),%xmm0
  addsd  %xmm2,%xmm0
  mulsd  -0x8(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0x28(%rbp),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  D82(%rip),%xmm0
  comisd -0x18(%rbp),%xmm0
  jbe    L14
  movsd  D82(%rip),%xmm0
  movsd  %xmm0,-0x18(%rbp)
L14:
  movsd  -0x18(%rbp),%xmm0
  movq   D45(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x20(%rbp)
L8:
  mov    -0x20(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jl     L13
  nop
  nop
  leave
  ret
```

tool_calls: name: parse_data
arguments: tag: D115
datatype: f64
name: parse_data
arguments: tag: D100
datatype: byte[8]
name: parse_data
arguments: tag: D63
datatype: f64
name: parse_data
arguments: tag: D76
datatype: f64
name: parse_data
arguments: tag: D112
datatype: f64
name: parse_data
arguments: tag: D82
datatype: f64
name: parse_data
arguments: tag: D78
datatype: f64
name: parse_data
arguments: tag: D33
datatype: f64
name: parse_data
arguments: tag: D5
datatype: f64
name: parse_data
arguments: tag: D45
datatype: byte[8]

tool: D115: 0.69395656

tool: {"D100": [0x55,0x55,0x55,0x55,0x55,0x55,0xd5,0x3f]}

tool: D63: 0.007298

tool: D76: 0.1486

tool: D112: 0.02747

tool: D82: 1

tool: D78: 0.006944

tool: D33: 0.2302

tool: D5: 1.243

tool: {"D45": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80]}

assistant: ```c
void Thomas_Fermi(Z, Vtmp) double Z;
double Vtmp[];
{
  int i, Ngrid;
  double *rgrid, x, t;
  Ngrid = N_LogGrid();
  rgrid = r_LogGrid();
  for (i = 0; i < Ngrid; ++i) {
    x = rgrid[i] * pow((Z / 0.69395656), (1.0 / 3.0));
    t = Z / (1.0 + sqrt(x) * (0.02747 - x * (0.1486 - 0.007298 * x)) + x * (1.243 + x * (0.2302 + 0.006944 * x)));
    if (t < 1.0)
      t = 1.0;
    Vtmp[i] = -t / rgrid[i];
  }
}
```