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

```asm
<potm>:
  endbr64
  sub    $0x68,%rsp
  movsd  %xmm0,(%rsp)
  lea    0x28(%rsp),%rdi
  mulsd  D35(%rip),%xmm0
  divsd  D91(%rip),%xmm0
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  movsd  %xmm0,0x28(%rsp)
  call   <adj360@plt>
  movsd  D163(%rip),%xmm5
  addsd  0x28(%rsp),%xmm5
  lea    0x30(%rsp),%rdi
  movapd %xmm5,%xmm0
  subsd  D94(%rip),%xmm0
  movsd  %xmm0,0x30(%rsp)
  call   <adj360@plt>
  movsd  0x30(%rsp),%xmm0
  call   <dtor@plt>
  mov    %eax,%edi
  call   <sin@plt>
  mulsd  D40(%rip),%xmm0
  lea    0x38(%rsp),%rdi
  addsd  0x28(%rsp),%xmm0
  addsd  D163(%rip),%xmm0
  movsd  %xmm0,0x38(%rsp)
  call   <adj360@plt>
  movsd  (%rsp),%xmm0
  lea    0x40(%rsp),%rdi
  mulsd  D8(%rip),%xmm0
  addsd  D166(%rip),%xmm0
  movsd  %xmm0,0x40(%rsp)
  call   <adj360@plt>
  movsd  (%rsp),%xmm1
  movsd  0x40(%rsp),%xmm0
  lea    0x48(%rsp),%rdi
  mulsd  D17(%rip),%xmm1
  subsd  %xmm1,%xmm0
  subsd  D106(%rip),%xmm0
  movsd  %xmm0,0x48(%rsp)
  call   <adj360@plt>
  movsd  (%rsp),%xmm0
  lea    0x50(%rsp),%rdi
  mulsd  D65(%rip),%xmm0
  movsd  D47(%rip),%xmm1
  subsd  %xmm0,%xmm1
  movsd  %xmm1,0x50(%rsp)
  call   <adj360@plt>
  movsd  0x40(%rsp),%xmm0
  subsd  0x38(%rsp),%xmm0
  addsd  %xmm0,%xmm0
  subsd  0x48(%rsp),%xmm0
  call   <dtor@plt>
  mov    %eax,%edi
  call   <sin@plt>
  mulsd  D167(%rip),%xmm0
  movsd  %xmm0,(%rsp)
  movsd  0x30(%rsp),%xmm0
  call   <dtor@plt>
  mov    %eax,%edi
  call   <sin@plt>
  movsd  D149(%rip),%xmm4
  mulsd  %xmm0,%xmm4
  movsd  0x30(%rsp),%xmm0
  movsd  %xmm4,0x8(%rsp)
  call   <dtor@plt>
  mov    %eax,%edi
  call   <sin@plt>
  mulsd  D78(%rip),%xmm0
  movsd  (%rsp),%xmm1
  addsd  0x48(%rsp),%xmm1
  subsd  0x8(%rsp),%xmm1
  subsd  %xmm0,%xmm1
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x18(%rsp)
  call   <dtor@plt>
  mov    %eax,%edi
  call   <sin@plt>
  movsd  0x18(%rsp),%xmm1
  movsd  %xmm0,0x10(%rsp)
  addsd  %xmm1,%xmm1
  movapd %xmm1,%xmm0
  call   <dtor@plt>
  mov    %eax,%edi
  call   <sin@plt>
  movsd  0x10(%rsp),%xmm2
  movsd  (%rsp),%xmm1
  mulsd  D51(%rip),%xmm2
  addsd  0x40(%rsp),%xmm1
  movapd %xmm0,%xmm3
  mulsd  D19(%rip),%xmm3
  addsd  %xmm2,%xmm1
  subsd  0x8(%rsp),%xmm1
  addsd  %xmm3,%xmm1
  movapd %xmm1,%xmm0
  subsd  0x38(%rsp),%xmm0
  movsd  %xmm1,(%rsp)
  addsd  %xmm0,%xmm0
  call   <dtor@plt>
  mov    %eax,%edi
  call   <sin@plt>
  mulsd  D177(%rip),%xmm0
  movsd  (%rsp),%xmm1
  addsd  %xmm1,%xmm0
  subsd  0x38(%rsp),%xmm0
  call   <dtor@plt>
  mov    %eax,%edi
  call   <cos@plt>
  pxor   %xmm0,%xmm0
  mov    %eax,%r8d
  mov    $0x1,%eax
  sub    %r8d,%eax
  cvtsi2sd %eax,%xmm0
  mulsd  D32(%rip),%xmm0
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L8
  add    $0x68,%rsp
  ret
L8:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D35
type_infered: byte[8]
name: unpack_data
arguments: label: D91
type_infered: f64
name: unpack_data
arguments: label: D163
type_infered: f64
name: unpack_data
arguments: label: D94
type_infered: f64
name: unpack_data
arguments: label: D40
type_infered: byte[8]
name: unpack_data
arguments: label: D8
type_infered: f64
name: unpack_data
arguments: label: D166
type_infered: f64
name: unpack_data
arguments: label: D17
type_infered: f64
name: unpack_data
arguments: label: D106
type_infered: f64
name: unpack_data
arguments: label: D65
type_infered: f64
name: unpack_data
arguments: label: D47
type_infered: f64
name: unpack_data
arguments: label: D167
type_infered: f64
name: unpack_data
arguments: label: D149
type_infered: f64
name: unpack_data
arguments: label: D78
type_infered: f64
name: unpack_data
arguments: label: D51
type_infered: f64
name: unpack_data
arguments: label: D19
type_infered: f64
name: unpack_data
arguments: label: D177
type_infered: f64
name: unpack_data
arguments: label: D32
type_infered: f64

tool: {"D35": [0x00,0x00,0x00,0x00,0x00,0x80,0x76,0x40]}

tool: D91: 365.242191

tool: D163: 279.403303

tool: D94: 282.768422

tool: {"D40": [0xa2,0x2a,0x48,0xf6,0x87,0xa4,0xfe,0x3f]}

tool: D8: 13.1763966

tool: D166: 318.351648

tool: D17: 0.1114041

tool: D106: 36.34041

tool: D65: 0.0529539

tool: D47: 318.510107

tool: D167: 1.2739

tool: D149: 0.1858

tool: D78: 0.37

tool: D51: 6.2886

tool: D19: 0.214

tool: D177: 0.6583

tool: D32: 50

assistant: ```c
double potm(double days) {
  double N, Msol, Ec, LambdaSol, l, Mm, Ev, Ac, A3, Mmprime;
  double A4, lprime, V, ldprime, D, Nm;
  N = 360 * days / 365.242191;
  adj360(&N);
  Msol = N + 279.403303 - 282.768422;
  adj360(&Msol);
  Ec = 360 / 3.14159265358979323846 * 0.016713 * sin(dtor(Msol));
  LambdaSol = N + Ec + 279.403303;
  adj360(&LambdaSol);
  l = 13.1763966 * days + 318.351648;
  adj360(&l);
  Mm = l - (0.1114041 * days) - 36.340410;
  adj360(&Mm);
  Nm = 318.510107 - (0.0529539 * days);
  adj360(&Nm);
  Ev = 1.2739 * sin(dtor(2 * (l - LambdaSol) - Mm));
  Ac = 0.1858 * sin(dtor(Msol));
  A3 = 0.37 * sin(dtor(Msol));
  Mmprime = Mm + Ev - Ac - A3;
  Ec = 6.2886 * sin(dtor(Mmprime));
  A4 = 0.214 * sin(dtor(2 * Mmprime));
  lprime = l + Ev + Ec - Ac + A4;
  V = 0.6583 * sin(dtor(2 * (lprime - LambdaSol)));
  ldprime = lprime + V;
  D = ldprime - LambdaSol;
  return (50.0 * (1 - cos(dtor(D))));
}
```