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

```asm
<sun_RA_dec>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  movsd  %xmm0,-0x38(%rbp)
  mov    %rdi,-0x40(%rbp)
  mov    %rsi,-0x48(%rbp)
  mov    %rdx,-0x50(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x50(%rbp),%rcx
  lea    -0x30(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rdx,%rdi
  movq   %rax,%xmm0
  mov    $0x1,%eax
  call   <sunpos@plt>
  mov    -0x50(%rbp),%rax
  movsd  (%rax),%xmm2
  movsd  %xmm2,-0x58(%rbp)
  movsd  -0x30(%rbp),%xmm1
  movsd  D64(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  mulsd  -0x58(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  mov    -0x50(%rbp),%rax
  movsd  (%rax),%xmm3
  movsd  %xmm3,-0x58(%rbp)
  movsd  -0x30(%rbp),%xmm1
  movsd  D64(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  mulsd  -0x58(%rbp),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x38(%rbp),%xmm1
  movsd  D1(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D55(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x18(%rbp),%xmm1
  movsd  D64(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movsd  -0x20(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x18(%rbp),%xmm1
  movsd  D64(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  -0x20(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x28(%rbp),%xmm0
  mov    -0x20(%rbp),%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <atan2@plt>
  movsd  D42(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  mov    -0x40(%rbp),%rax
  movsd  %xmm0,(%rax)
  movsd  -0x28(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  %xmm0,%xmm1
  movsd  -0x20(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  addsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  movq   %xmm0,%rdx
  mov    -0x10(%rbp),%rax
  movq   %rdx,%xmm1
  movq   %rax,%xmm0
  call   <atan2@plt>
  movsd  D42(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  mov    -0x48(%rbp),%rax
  movsd  %xmm0,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L7
  call   <__stack_chk_fail@plt>
L7:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D64
data_type: byte[8]
name: parse_data
arguments: data_tag: D1
data_type: byte[8]
name: parse_data
arguments: data_tag: D55
data_type: f64
name: parse_data
arguments: data_tag: D42
data_type: byte[8]

tool: {"D64": [0x39,0x9d,0x52,0xa2,0x46,0xdf,0x91,0x3f]}

tool: {"D1": [0xda,0xda,0xce,0xf8,0x2f,0xe9,0x97,0x3e]}

tool: D55: 23.4393

tool: {"D42": [0xf8,0xc1,0x63,0x1a,0xdc,0xa5,0x4c,0x40]}

assistant: ```c
void sun_RA_dec(double d, double *RA, double *dec, double *r) {
  double lon, obl_ecl, x, y, z;
  sunpos(d, &lon, r);
  x = *r * cos((lon) * (3.1415926535897932384 / 180.0));
  y = *r * sin((lon) * (3.1415926535897932384 / 180.0));
  obl_ecl = 23.4393 - 3.563E-7 * d;
  z = y * sin((obl_ecl) * (3.1415926535897932384 / 180.0));
  y = y * cos((obl_ecl) * (3.1415926535897932384 / 180.0));
  *RA = ((180.0 / 3.1415926535897932384) * atan2(y, x));
  *dec = ((180.0 / 3.1415926535897932384) * atan2(z, sqrt(x * x + y * y)));
}
```