user: What would the C source look like for the assembly code provided here:

```asm
<EulerAngles>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,-0x18(%rbp)
  movsd  %xmm0,-0x20(%rbp)
  movsd  %xmm1,-0x28(%rbp)
  movsd  %xmm2,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movapd %xmm0,%xmm3
  mulsd  -0x38(%rbp),%xmm3
  movsd  %xmm3,-0x38(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  %xmm0,-0x40(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movapd %xmm0,%xmm4
  mulsd  -0x40(%rbp),%xmm4
  movsd  %xmm4,-0x40(%rbp)
  mov    -0x30(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movsd  -0x40(%rbp),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  -0x38(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  mov    -0x18(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x30(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movapd %xmm0,%xmm6
  mulsd  -0x38(%rbp),%xmm6
  movsd  %xmm6,-0x38(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  %xmm0,-0x40(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movapd %xmm0,%xmm7
  mulsd  -0x40(%rbp),%xmm7
  movsd  %xmm7,-0x40(%rbp)
  mov    -0x30(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  mulsd  -0x40(%rbp),%xmm0
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  addsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x30(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  mov    -0x18(%rbp),%rax
  add    $0x10,%rax
  mulsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x30(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movq   %xmm0,%rax
  movq   D13(%rip),%xmm0
  movq   %rax,%xmm2
  xorpd  %xmm0,%xmm2
  movsd  %xmm2,-0x38(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  mulsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  %xmm0,-0x40(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movapd %xmm0,%xmm5
  mulsd  -0x40(%rbp),%xmm5
  movsd  %xmm5,-0x40(%rbp)
  mov    -0x30(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  -0x40(%rbp),%xmm1
  mulsd  %xmm0,%xmm1
  mov    -0x18(%rbp),%rax
  add    $0x18,%rax
  movsd  -0x38(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x30(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movq   %xmm0,%rax
  movq   D13(%rip),%xmm0
  movq   %rax,%xmm3
  xorpd  %xmm0,%xmm3
  movsd  %xmm3,-0x38(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  mulsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  %xmm0,-0x40(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movapd %xmm0,%xmm5
  mulsd  -0x40(%rbp),%xmm5
  movsd  %xmm5,-0x40(%rbp)
  mov    -0x30(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  mulsd  -0x40(%rbp),%xmm0
  mov    -0x18(%rbp),%rax
  add    $0x20,%rax
  addsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x30(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  mov    -0x18(%rbp),%rax
  add    $0x28,%rax
  mulsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  mov    -0x18(%rbp),%rax
  add    $0x30,%rax
  mulsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movq   %xmm0,%rax
  movq   D13(%rip),%xmm0
  movq   %rax,%xmm4
  xorpd  %xmm0,%xmm4
  movsd  %xmm4,-0x38(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  mov    -0x18(%rbp),%rax
  add    $0x38,%rax
  mulsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x18(%rbp),%rax
  lea    0x40(%rax),%rbx
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movq   %xmm0,%rax
  mov    %rax,(%rbx)
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D13
data_type: byte[8]

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

assistant: ```c
void EulerAngles(double *rotM, double phi, double theta, double psi) {
  *(rotM + 0) = cos(psi) * cos(phi) - cos(theta) * sin(phi) * sin(psi);
  *(rotM + 1) = cos(psi) * sin(phi) + cos(theta) * cos(phi) * sin(psi);
  *(rotM + 2) = sin(psi) * sin(theta);
  *(rotM + 3) = -sin(psi) * cos(phi) - cos(theta) * sin(phi) * cos(psi);
  *(rotM + 4) = -sin(psi) * sin(phi) + cos(theta) * cos(phi) * cos(psi);
  *(rotM + 5) = cos(psi) * sin(theta);
  *(rotM + 6) = sin(theta) * sin(phi);
  *(rotM + 7) = -sin(theta) * cos(phi);
  *(rotM + 8) = cos(theta);
  return;
}
```