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

```asm
<primtoU_g>:
  endbr64
  push   %r15
  movapd %xmm0,%xmm3
  mov    %rsi,%r15
  push   %r14
  mov    %rdx,%r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rcx,%rbx
  sub    $0x48,%rsp
  movsd  (%rdx),%xmm2
  ucomisd D127(%rip),%xmm2
  movq   D127(%rip),%xmm1
  movapd %xmm2,%xmm0
  xorpd  %xmm1,%xmm0
  ja     L32
  sqrtsd %xmm0,%xmm0
L5:
  lea    D159(%rip),%r9
  mov    %r14,%rdx
  mov    %r15,%rsi
  mov    %rbp,%rdi
  mov    %r9,%rcx
  movsd  D148(%rip),%xmm5
  movsd  %xmm3,0x18(%rsp)
  lea    D39(%rip),%r12
  lea    D73(%rip),%r13
  divsd  %xmm0,%xmm5
  movsd  %xmm5,0x10(%rsp)
  call   <ucon_calc_g@plt>
  lea    D159(%rip),%r9
  mov    %r12,%rdx
  mov    %r15,%rsi
  mov    %r9,%rdi
  call   <lower_g@plt>
  mov    %r14,%rdi
  mov    %r13,%rsi
  lea    D6(%rip),%r14
  call   <ncov_calc@plt>
  movq   D127(%rip),%xmm1
  mov    %r13,%rcx
  movsd  D73(%rip),%xmm0
  lea    D159(%rip),%r9
  lea    D153(%rip),%r8
  mov    %r12,%rdx
  mov    %rbp,%rdi
  xorpd  %xmm1,%xmm0
  mov    %r9,%rsi
  mulsd  D159(%rip),%xmm0
  movsd  %xmm0,0x8(%rsp)
  call   <bcon_calc_g@plt>
  mov    %r15,%rsi
  lea    D153(%rip),%r15
  mov    %r14,%rdx
  mov    %r15,%rdi
  call   <lower_g@plt>
  movsd  0x18(%rsp),%xmm3
  xor    %eax,%eax
  pxor   %xmm4,%xmm4
  movsd  0x10(%rsp),%xmm5
L4:
  movsd  0x0(%r13,%rax,1),%xmm0
  mulsd  (%r15,%rax,1),%xmm0
  add    $0x8,%rax
  addsd  %xmm0,%xmm4
  cmp    $0x20,%rax
  jne    L4
  xor    %eax,%eax
  pxor   %xmm2,%xmm2
L33:
  movsd  (%r14,%rax,1),%xmm0
  mulsd  (%r15,%rax,1),%xmm0
  add    $0x8,%rax
  addsd  %xmm0,%xmm2
  cmp    $0x20,%rax
  jne    L33
  movsd  0x0(%rbp),%xmm6
  movsd  0x8(%rbp),%xmm1
  movsd  %xmm3,0x38(%rsp)
  movsd  %xmm4,0x30(%rsp)
  movapd %xmm6,%xmm0
  movsd  %xmm2,0x28(%rsp)
  movsd  %xmm5,0x20(%rsp)
  movsd  %xmm1,0x18(%rsp)
  movsd  %xmm6,0x10(%rsp)
  call   <pressure_rho0_u@plt>
  movsd  0x10(%rsp),%xmm6
  xor    %eax,%eax
  movsd  D159(%rip),%xmm7
  movsd  0x18(%rsp),%xmm1
  movsd  0x28(%rsp),%xmm2
  mulsd  %xmm6,%xmm7
  movsd  0x38(%rsp),%xmm3
  movsd  0x30(%rsp),%xmm4
  addsd  %xmm1,%xmm6
  movsd  0x20(%rsp),%xmm5
  addsd  %xmm0,%xmm6
  movsd  %xmm7,(%rbx)
  addsd  %xmm2,%xmm6
  mulsd  D101(%rip),%xmm2
  mulsd  0x8(%rsp),%xmm6
  addsd  %xmm0,%xmm2
L65:
  movsd  (%r12,%rax,1),%xmm1
  movsd  0x0(%r13,%rax,1),%xmm0
  mulsd  %xmm6,%xmm1
  mulsd  %xmm2,%xmm0
  subsd  %xmm0,%xmm1
  movsd  (%r14,%rax,1),%xmm0
  mulsd  %xmm4,%xmm0
  addsd  %xmm0,%xmm1
  divsd  %xmm5,%xmm1
  movsd  %xmm1,0x8(%rbx,%rax,1)
  add    $0x8,%rax
  cmp    $0x20,%rax
  jne    L65
  movsd  0x8(%rbx),%xmm1
  movsd  (%rbx),%xmm0
  mov    %rbx,%rax
  lea    0x48(%rbx),%rdx
  addsd  %xmm0,%xmm1
  movsd  %xmm1,0x8(%rbx)
  movsd  0x28(%rbp),%xmm1
  movsd  %xmm1,0x28(%rbx)
  movsd  0x30(%rbp),%xmm1
  movsd  %xmm1,0x30(%rbx)
  movsd  0x38(%rbp),%xmm1
  movsd  %xmm1,0x38(%rbx)
  jmp    L25
  nop
L12:
  movsd  (%rax),%xmm0
L25:
  mulsd  %xmm3,%xmm0
  add    $0x8,%rax
  movsd  %xmm0,-0x8(%rax)
  cmp    %rax,%rdx
  jne    L12
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L32:
  movsd  %xmm3,0x8(%rsp)
  call   <sqrt@plt>
  movsd  0x8(%rsp),%xmm3
  jmp    L5
```

tool_calls: name: retrieve_data
arguments: data_tag: D127
type_infered: f32[2]
name: retrieve_data
arguments: data_tag: D148
type_infered: f64
name: retrieve_data
arguments: data_tag: D101
type_infered: f32[2]

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

tool: D148: 1

tool: {"D101": [0.0,1.75]}

assistant: ```c
void primtoU_g(double prim[(9)], double gcov[(4)][(4)], double gcon[(4)][(4)], double gdet, double U[(9)]) {
  int i, j;
  double rho0;
  static double ucon[(4)], ucov[(4)], bcon[(4)], bcov[(4)], ncov[(4)];
  double gamma, n_dot_b, bsq, u, p, w, alpha;
  alpha = 1.0 / sqrt(-gcon[0][0]);
  ucon_calc_g(prim, gcov, gcon, ucon);
  lower_g(ucon, gcov, ucov);
  ncov_calc(gcon, ncov);
  gamma = -ncov[0] * ucon[0];
  bcon_calc_g(prim, ucon, ucov, ncov, bcon);
  lower_g(bcon, gcov, bcov);
  n_dot_b = 0.;
  for (i = 0; i < 4; i++)
    n_dot_b += ncov[i] * bcon[i];
  bsq = 0.;
  for (i = 0; i < 4; i++)
    bsq += bcov[i] * bcon[i];
  rho0 = prim[(0)];
  u = prim[(1)];
  p = pressure_rho0_u(rho0, u);
  w = rho0 + u + p;
  U[(0)] = ucon[0] * rho0;
  for (i = 0; i < 4; i++) {
    U[1 + i] = gamma * (w + bsq) * ucov[i] - (p + bsq / 2.) * ncov[i] + n_dot_b * bcov[i];
    U[1 + i] /= alpha;
  }
  U[1] = U[1] + U[(0)];
  U[5] = prim[5];
  U[6] = prim[6];
  U[7] = prim[7];
  for (i = 0; i < (9); i++) {
    U[i] *= gdet;
  }
  return;
}
```