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

```asm
<GPS_Math_Sinusoid_EN_To_LatLon>:
  endbr64
  push   %r14
  movq   %xmm0,%r14
  movapd %xmm2,%xmm0
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x70,%rsp
  movsd  %xmm5,0x8(%rsp)
  movsd  %xmm1,0x20(%rsp)
  movsd  %xmm3,0x58(%rsp)
  movsd  %xmm4,(%rsp)
  movsd  %xmm6,0x10(%rsp)
  call   <GPS_Math_Deg_To_Rad@plt>
  movsd  0x8(%rsp),%xmm7
  movsd  0x10(%rsp),%xmm6
  movsd  %xmm0,0x50(%rsp)
  mov    D120(%rip),%rax
  mulsd  %xmm6,%xmm6
  movapd %xmm7,%xmm0
  mulsd  %xmm7,%xmm0
  movq   %rax,%xmm1
  movapd %xmm0,%xmm3
  subsd  %xmm6,%xmm3
  movapd %xmm3,%xmm4
  divsd  %xmm0,%xmm4
  movsd  D232(%rip),%xmm0
  movapd %xmm4,%xmm8
  subsd  %xmm4,%xmm0
  movsd  %xmm4,0x10(%rsp)
  mulsd  %xmm4,%xmm8
  movsd  %xmm8,0x18(%rsp)
  call   <pow@plt>
  movsd  0x10(%rsp),%xmm4
  movsd  D232(%rip),%xmm2
  movsd  D300(%rip),%xmm1
  movsd  0x18(%rsp),%xmm8
  subsd  %xmm0,%xmm2
  addsd  D232(%rip),%xmm0
  movsd  0x20(%rsp),%xmm9
  movsd  %xmm4,0x28(%rsp)
  mulsd  %xmm4,%xmm1
  subsd  (%rsp),%xmm9
  divsd  %xmm0,%xmm2
  movsd  D232(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movsd  D106(%rip),%xmm1
  mulsd  %xmm8,%xmm1
  mulsd  D179(%rip),%xmm1
  mulsd  %xmm4,%xmm8
  mulsd  D221(%rip),%xmm8
  mulsd  D122(%rip),%xmm8
  subsd  %xmm1,%xmm0
  subsd  %xmm8,%xmm0
  mulsd  0x8(%rsp),%xmm0
  divsd  %xmm0,%xmm9
  movapd %xmm2,%xmm5
  movapd %xmm2,%xmm6
  movapd %xmm2,%xmm3
  movsd  %xmm2,0x40(%rsp)
  mulsd  %xmm2,%xmm5
  mulsd  %xmm5,%xmm6
  movsd  %xmm5,0x48(%rsp)
  mulsd  %xmm6,%xmm3
  movsd  %xmm6,0x38(%rsp)
  movsd  %xmm3,0x30(%rsp)
  movapd %xmm9,%xmm0
  movsd  %xmm9,(%rsp)
  addsd  %xmm9,%xmm0
  call   <sin@plt>
  movsd  (%rsp),%xmm7
  mulsd  D21(%rip),%xmm7
  movsd  %xmm0,0x10(%rsp)
  movapd %xmm7,%xmm0
  call   <sin@plt>
  movsd  (%rsp),%xmm3
  mulsd  D41(%rip),%xmm3
  movsd  %xmm0,0x18(%rsp)
  movapd %xmm3,%xmm0
  call   <sin@plt>
  movsd  (%rsp),%xmm5
  mulsd  D169(%rip),%xmm5
  movsd  %xmm0,0x20(%rsp)
  movapd %xmm5,%xmm0
  call   <sin@plt>
  movsd  0x40(%rsp),%xmm2
  movsd  D106(%rip),%xmm4
  movsd  0x38(%rsp),%xmm6
  movapd %xmm0,%xmm1
  movsd  0x48(%rsp),%xmm5
  mulsd  %xmm2,%xmm4
  movsd  D224(%rip),%xmm2
  movsd  D133(%rip),%xmm8
  movsd  D120(%rip),%xmm0
  mulsd  %xmm6,%xmm2
  mulsd  %xmm4,%xmm0
  mulsd  %xmm8,%xmm2
  subsd  %xmm2,%xmm0
  mulsd  0x10(%rsp),%xmm0
  addsd  (%rsp),%xmm0
  mulsd  D325(%rip),%xmm5
  movsd  0x30(%rsp),%xmm7
  movsd  D104(%rip),%xmm2
  mulsd  D163(%rip),%xmm5
  movsd  0x28(%rsp),%xmm4
  mulsd  %xmm7,%xmm2
  movsd  0x50(%rsp),%xmm3
  mulsd  D234(%rip),%xmm7
  mulsd  D157(%rip),%xmm7
  mulsd  D154(%rip),%xmm6
  divsd  D42(%rip),%xmm6
  mulsd  0x20(%rsp),%xmm6
  mulsd  %xmm8,%xmm2
  mulsd  %xmm1,%xmm7
  movsd  D28(%rip),%xmm1
  subsd  %xmm2,%xmm5
  mulsd  0x18(%rsp),%xmm5
  addsd  %xmm5,%xmm0
  addsd  %xmm6,%xmm0
  addsd  %xmm7,%xmm0
  comisd %xmm1,%xmm0
  movsd  %xmm0,(%rbx)
  ja     L21
  movsd  D207(%rip),%xmm1
  comisd %xmm0,%xmm1
  jbe    L97
L21:
  movsd  %xmm1,(%rbx)
L43:
  movsd  D33(%rip),%xmm0
  comisd %xmm0,%xmm3
  jbe    L94
  subsd  D108(%rip),%xmm3
L94:
  movsd  D200(%rip),%xmm1
  movsd  %xmm3,0x0(%rbp)
  comisd %xmm3,%xmm1
  jbe    L23
  addsd  D108(%rip),%xmm3
  movsd  %xmm3,0x0(%rbp)
L23:
  comisd %xmm0,%xmm3
  jbe    L79
  movsd  %xmm0,0x0(%rbp)
  movapd %xmm0,%xmm3
L59:
  movapd %xmm3,%xmm0
  call   <GPS_Math_Rad_To_Deg@plt>
  movsd  %xmm0,0x0(%rbp)
  movsd  (%rbx),%xmm0
  call   <GPS_Math_Rad_To_Deg@plt>
  movsd  %xmm0,(%rbx)
  add    $0x70,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L97:
  movapd %xmm0,%xmm1
  andpd  D89(%rip),%xmm1
  comisd D111(%rip),%xmm1
  jbe    L80
  movsd  D76(%rip),%xmm2
  comisd %xmm1,%xmm2
  ja     L43
L80:
  lea    0x68(%rsp),%rdi
  lea    0x60(%rsp),%rsi
  movsd  %xmm3,0x10(%rsp)
  movsd  %xmm4,0x18(%rsp)
  call   <sincos@plt>
  movsd  0x68(%rsp),%xmm0
  movsd  0x18(%rsp),%xmm4
  movsd  0x60(%rsp),%xmm1
  mov    D120(%rip),%rax
  mulsd  %xmm0,%xmm4
  movsd  %xmm1,(%rsp)
  movq   %rax,%xmm1
  mulsd  %xmm0,%xmm4
  movsd  D232(%rip),%xmm0
  subsd  %xmm4,%xmm0
  call   <pow@plt>
  movsd  0x10(%rsp),%xmm3
  movapd %xmm0,%xmm1
  movq   %r14,%xmm0
  subsd  0x58(%rsp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  (%rsp),%xmm1
  mulsd  0x8(%rsp),%xmm1
  divsd  %xmm1,%xmm0
  addsd  %xmm0,%xmm3
  jmp    L43
  nopl   0x0(%rax,%rax,1)
L79:
  comisd %xmm3,%xmm1
  jbe    L59
  movsd  %xmm1,0x0(%rbp)
  movapd %xmm1,%xmm3
  jmp    L59
```

tool_calls: name: unpack_data
arguments: data_label: D120
type: byte[8]
name: unpack_data
arguments: data_label: D232
type: f64
name: unpack_data
arguments: data_label: D300
type: byte[8]
name: unpack_data
arguments: data_label: D106
type: f64
name: unpack_data
arguments: data_label: D179
type: byte[8]
name: unpack_data
arguments: data_label: D221
type: f64
name: unpack_data
arguments: data_label: D122
type: byte[8]
name: unpack_data
arguments: data_label: D21
type: f64
name: unpack_data
arguments: data_label: D41
type: f64
name: unpack_data
arguments: data_label: D169
type: f64
name: unpack_data
arguments: data_label: D224
type: f64
name: unpack_data
arguments: data_label: D133
type: byte[8]
name: unpack_data
arguments: data_label: D325
type: f64
name: unpack_data
arguments: data_label: D104
type: f64
name: unpack_data
arguments: data_label: D163
type: byte[8]
name: unpack_data
arguments: data_label: D234
type: f64
name: unpack_data
arguments: data_label: D157
type: byte[8]
name: unpack_data
arguments: data_label: D154
type: f64
name: unpack_data
arguments: data_label: D42
type: f64
name: unpack_data
arguments: data_label: D28
type: byte[8]
name: unpack_data
arguments: data_label: D207
type: byte[8]
name: unpack_data
arguments: data_label: D33
type: f64
name: unpack_data
arguments: data_label: D108
type: byte[8]
name: unpack_data
arguments: data_label: D200
type: byte[8]
name: unpack_data
arguments: data_label: D89
type: qword[2]
name: unpack_data
arguments: data_label: D111
type: byte[16]
name: unpack_data
arguments: data_label: D76
type: byte[8]

tool: {"D120": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f]}

tool: D232: 1

tool: {"D300": [0x00,0x00,0x00,0x00,0x00,0x00,0xd0,0x3f]}

tool: D106: 3

tool: {"D179": [0x00,0x00,0x00,0x00,0x00,0x00,0x90,0x3f]}

tool: D221: 5

tool: {"D122": [0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x3f]}

tool: D21: 4

tool: D41: 6

tool: D169: 8

tool: D224: 27

tool: {"D133": [0x00,0x00,0x00,0x00,0x00,0x00,0xa0,0x3f]}

tool: D325: 21

tool: D104: 55

tool: {"D163": [0x00,0x00,0x00,0x00,0x00,0x00,0xb0,0x3f]}

tool: D234: 1097

tool: {"D157": [0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x3f]}

tool: D154: 151

tool: D42: 96

tool: {"D28": [0x1e,0x26,0x44,0x54,0xfb,0x21,0xf9,0x3f]}

tool: {"D207": [0x1e,0x26,0x44,0x54,0xfb,0x21,0xf9,0xbf]}

tool: D33: 3.141592653589

tool: {"D108": [0x1e,0x26,0x44,0x54,0xfb,0x21,0x19,0x40]}

tool: {"D200": [0x1e,0x26,0x44,0x54,0xfb,0x21,0x09,0xc0]}

tool: {"D89": [0x7fffffffffffffff,0x0000000000000000]}

tool: {"D111": [0x42,0xf4,0x94,0x51,0xfb,0x21,0xf9,0x3f,0xfa,0x57,0xf3,0x56,0xfb,0x21,0xf9,0x3f]}

tool: {"D76": [0xfa,0x57,0xf3,0x56,0xfb,0x21,0xf9,0x3f]}

assistant: ```c
void GPS_Math_Sinusoid_EN_To_LatLon(double E, double N, double *phi, double *lambda, double M0, double E0, double N0, double a, double b) {
  double a2;
  double b2;
  double e2;
  double e4;
  double e6;
  double p2;
  double po2;
  double c0;
  double c1;
  double c2;
  double c3;
  double A1;
  double A0;
  double A2;
  double A3;
  double E1;
  double E2;
  double E3;
  double E4;
  double j;
  double om0;
  double som0;
  double dx;
  double dy;
  double mu;
  double mu2s;
  double mu4s;
  double mu6s;
  double mu8s;
  double phis;
  M0 = GPS_Math_Deg_To_Rad(M0);
  po2 = (double)3.141592653589 / (double)2.0;
  p2 = (double)3.141592653589 * (double)2.0;
  a2 = a * a;
  b2 = b * b;
  e2 = (a2 - b2) / a2;
  e4 = e2 * e2;
  e6 = e4 * e2;
  j = (double)45. * e6 / (double)1024.;
  c0 = (double)1. - e2 / (double)4. - (double)3. * e4 / (double)64. - (double)5. * e6 / (double)256.;
  c1 = (double)3. * e2 / (double)8. + (double)3. * e4 / (double)32. + j;
  c2 = (double)15. * e4 / (double)256. + j;
  c3 = (double)35. * e6 / (double)3072.;
  om0 = (double)1. - e2;
  som0 = pow(om0, (double).5);
  E1 = ((double)1. - som0) / ((double)1. + som0);
  E2 = E1 * E1;
  E3 = E1 * E2;
  E4 = E1 * E3;
  A0 = (double)3. * E1 / (double)2. - (double)27. * E3 / (double)32.;
  A1 = (double)21. * E2 / (double)16. - (double)55. * E4 / (double)32.;
  A2 = (double)151. * E3 / (double)96.;
  A3 = (double)1097. * E4 / (double)512.;
  dx = E - E0;
  dy = N - N0;
  mu = dy / (c0 * a);
  mu2s = A0 * sin((double)2. * mu);
  mu4s = A1 * sin((double)4. * mu);
  mu6s = A2 * sin((double)6. * mu);
  mu8s = A3 * sin((double)8. * mu);
  *phi = mu + mu2s + mu4s + mu6s + mu8s;
  if (*phi > po2)
    *phi = po2;
  else if (*phi < -po2)
    *phi = -po2;
  if ((((po2 - (double)1.0e-8) < fabs(*phi)) && (fabs(*phi) < (po2 + (double)1.0e-8))))
    *lambda = M0;
  else {
    phis = sin(*phi);
    *lambda = M0 + dx * pow((double)1.0 - e2 * phis * phis, (double).5) / (a * cos(*phi));
  }
  if (*lambda > 3.141592653589)
    *lambda -= p2;
  if (*lambda < -3.141592653589)
    *lambda += p2;
  if (*lambda > 3.141592653589)
    *lambda = 3.141592653589;
  else if (*lambda < -3.141592653589)
    *lambda = -3.141592653589;
  *lambda = GPS_Math_Rad_To_Deg(*lambda);
  *phi = GPS_Math_Rad_To_Deg(*phi);
  return;
}
```