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

```asm
<GPS_Math_Sinusoid_EN_To_LatLon>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x140,%rsp
  movsd  %xmm0,-0xf8(%rbp)
  movsd  %xmm1,-0x100(%rbp)
  mov    %rdi,-0x108(%rbp)
  mov    %rsi,-0x110(%rbp)
  movsd  %xmm2,-0x118(%rbp)
  movsd  %xmm3,-0x120(%rbp)
  movsd  %xmm4,-0x128(%rbp)
  movsd  %xmm5,-0x130(%rbp)
  movsd  %xmm6,-0x138(%rbp)
  mov    -0x118(%rbp),%rax
  movq   %rax,%xmm0
  call   <GPS_Math_Deg_To_Rad@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x118(%rbp)
  movsd  D279(%rip),%xmm0
  movsd  %xmm0,-0xf0(%rbp)
  movsd  D379(%rip),%xmm0
  movsd  %xmm0,-0xe8(%rbp)
  movsd  -0x130(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  %xmm0,-0xe0(%rbp)
  movsd  -0x138(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  %xmm0,-0xd8(%rbp)
  movsd  -0xe0(%rbp),%xmm0
  subsd  -0xd8(%rbp),%xmm0
  divsd  -0xe0(%rbp),%xmm0
  movsd  %xmm0,-0xd0(%rbp)
  movsd  -0xd0(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  %xmm0,-0xc8(%rbp)
  movsd  -0xc8(%rbp),%xmm0
  mulsd  -0xd0(%rbp),%xmm0
  movsd  %xmm0,-0xc0(%rbp)
  movsd  -0xc0(%rbp),%xmm1
  movsd  D312(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D444(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0xb8(%rbp)
  movsd  -0xd0(%rbp),%xmm0
  movsd  D384(%rip),%xmm2
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm1
  movsd  D419(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movsd  -0xc8(%rbp),%xmm2
  movsd  D283(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  movsd  D336(%rip),%xmm2
  divsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  -0xc0(%rbp),%xmm2
  movsd  D437(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  movsd  D296(%rip),%xmm2
  divsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0xb0(%rbp)
  movsd  -0xd0(%rbp),%xmm1
  movsd  D283(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D284(%rip),%xmm2
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm1
  movsd  -0xc8(%rbp),%xmm2
  movsd  D283(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  movsd  D98(%rip),%xmm2
  divsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0xb8(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0xa8(%rbp)
  movsd  -0xc8(%rbp),%xmm1
  movsd  D432(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D296(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  -0xb8(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0xa0(%rbp)
  movsd  -0xc0(%rbp),%xmm1
  movsd  D256(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D88(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x98(%rbp)
  movsd  D419(%rip),%xmm0
  subsd  -0xd0(%rbp),%xmm0
  movsd  %xmm0,-0x90(%rbp)
  movsd  D248(%rip),%xmm0
  mov    -0x90(%rbp),%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <pow@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x88(%rbp)
  movsd  D419(%rip),%xmm0
  subsd  -0x88(%rbp),%xmm0
  movsd  -0x88(%rbp),%xmm2
  movsd  D419(%rip),%xmm1
  addsd  %xmm2,%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x80(%rbp)
  movsd  -0x80(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  movsd  -0x80(%rbp),%xmm0
  mulsd  -0x78(%rbp),%xmm0
  movsd  %xmm0,-0x70(%rbp)
  movsd  -0x80(%rbp),%xmm0
  mulsd  -0x70(%rbp),%xmm0
  movsd  %xmm0,-0x68(%rbp)
  movsd  -0x80(%rbp),%xmm1
  movsd  D283(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D445(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  -0x70(%rbp),%xmm2
  movsd  D222(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  movsd  D98(%rip),%xmm2
  divsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x60(%rbp)
  movsd  -0x78(%rbp),%xmm1
  movsd  D191(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D493(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  -0x68(%rbp),%xmm2
  movsd  D253(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  movsd  D98(%rip),%xmm2
  divsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  movsd  -0x70(%rbp),%xmm1
  movsd  D486(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D0(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x50(%rbp)
  movsd  -0x68(%rbp),%xmm1
  movsd  D393(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D342(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  movsd  -0xf8(%rbp),%xmm0
  subsd  -0x120(%rbp),%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movsd  -0x100(%rbp),%xmm0
  subsd  -0x128(%rbp),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  -0xb0(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x130(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  -0x30(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movsd  -0x60(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x30(%rbp),%xmm1
  movsd  D384(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movsd  -0x58(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x30(%rbp),%xmm1
  movsd  D230(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movsd  -0x50(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x30(%rbp),%xmm1
  movsd  D284(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movsd  -0x48(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x30(%rbp),%xmm0
  addsd  -0x28(%rbp),%xmm0
  addsd  -0x20(%rbp),%xmm0
  addsd  -0x18(%rbp),%xmm0
  addsd  -0x10(%rbp),%xmm0
  mov    -0x108(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x108(%rbp),%rax
  movsd  (%rax),%xmm0
  comisd -0xf0(%rbp),%xmm0
  jbe    L17
  mov    -0x108(%rbp),%rax
  movsd  -0xf0(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L21
L17:
  mov    -0x108(%rbp),%rax
  movsd  (%rax),%xmm1
  movsd  -0xf0(%rbp),%xmm0
  movq   D84(%rip),%xmm2
  xorpd  %xmm2,%xmm0
  comisd %xmm1,%xmm0
  jbe    L21
  movsd  -0xf0(%rbp),%xmm0
  movq   D84(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  mov    -0x108(%rbp),%rax
  movsd  %xmm0,(%rax)
L21:
  movsd  -0xf0(%rbp),%xmm0
  movsd  D301(%rip),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  mov    -0x108(%rbp),%rax
  movsd  (%rax),%xmm0
  movq   D338(%rip),%xmm2
  andpd  %xmm2,%xmm0
  comisd %xmm1,%xmm0
  jbe    L26
  mov    -0x108(%rbp),%rax
  movsd  (%rax),%xmm0
  movq   D338(%rip),%xmm1
  andpd  %xmm0,%xmm1
  movsd  -0xf0(%rbp),%xmm2
  movsd  D301(%rip),%xmm0
  addsd  %xmm2,%xmm0
  comisd %xmm1,%xmm0
  jbe    L26
  mov    -0x110(%rbp),%rax
  movsd  -0x118(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L15
L26:
  mov    -0x108(%rbp),%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x8(%rbp)
  movsd  -0xd0(%rbp),%xmm0
  mulsd  -0x8(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x8(%rbp),%xmm1
  movsd  D419(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movsd  D248(%rip),%xmm0
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <pow@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm7
  mulsd  -0x40(%rbp),%xmm7
  movsd  %xmm7,-0x140(%rbp)
  mov    -0x108(%rbp),%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm1
  mulsd  -0x130(%rbp),%xmm1
  movsd  -0x140(%rbp),%xmm0
  divsd  %xmm1,%xmm0
  addsd  -0x118(%rbp),%xmm0
  mov    -0x110(%rbp),%rax
  movsd  %xmm0,(%rax)
L15:
  mov    -0x110(%rbp),%rax
  movsd  (%rax),%xmm0
  comisd D358(%rip),%xmm0
  jbe    L96
  mov    -0x110(%rbp),%rax
  movsd  (%rax),%xmm0
  subsd  -0xe8(%rbp),%xmm0
  mov    -0x110(%rbp),%rax
  movsd  %xmm0,(%rax)
L96:
  mov    -0x110(%rbp),%rax
  movsd  (%rax),%xmm1
  movsd  D300(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L35
  mov    -0x110(%rbp),%rax
  movsd  (%rax),%xmm0
  addsd  -0xe8(%rbp),%xmm0
  mov    -0x110(%rbp),%rax
  movsd  %xmm0,(%rax)
L35:
  mov    -0x110(%rbp),%rax
  movsd  (%rax),%xmm0
  comisd D358(%rip),%xmm0
  jbe    L29
  mov    -0x110(%rbp),%rax
  movsd  D358(%rip),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L7
L29:
  mov    -0x110(%rbp),%rax
  movsd  (%rax),%xmm1
  movsd  D300(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L7
  mov    -0x110(%rbp),%rax
  movsd  D300(%rip),%xmm0
  movsd  %xmm0,(%rax)
L7:
  mov    -0x110(%rbp),%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  call   <GPS_Math_Rad_To_Deg@plt>
  movq   %xmm0,%rax
  mov    -0x110(%rbp),%rdx
  mov    %rax,(%rdx)
  mov    -0x108(%rbp),%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  call   <GPS_Math_Rad_To_Deg@plt>
  movq   %xmm0,%rax
  mov    -0x108(%rbp),%rdx
  mov    %rax,(%rdx)
  nop
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D279
type_guessed: byte[8]
name: extract_symbolic_data
arguments: data_tag: D379
type_guessed: byte[8]
name: extract_symbolic_data
arguments: data_tag: D312
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D444
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D384
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D419
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D283
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D336
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D437
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D296
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D284
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D98
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D432
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D256
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D88
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D248
type_guessed: byte[8]
name: extract_symbolic_data
arguments: data_tag: D445
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D222
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D191
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D493
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D253
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D486
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D0
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D393
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D342
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D230
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D84
type_guessed: byte[8]
name: extract_symbolic_data
arguments: data_tag: D301
type_guessed: byte[8]
name: extract_symbolic_data
arguments: data_tag: D338
type_guessed: qword
name: extract_symbolic_data
arguments: data_tag: D358
type_guessed: f64[2]
name: extract_symbolic_data
arguments: data_tag: D300
type_guessed: byte[8]

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

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

tool: D312: 45

tool: D444: 1024

tool: D384: 4

tool: D419: 1

tool: D283: 3

tool: D336: 64

tool: D437: 5

tool: D296: 256

tool: D284: 8

tool: D98: 32

tool: D432: 15

tool: D256: 35

tool: D88: 3072

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

tool: D445: 2

tool: D222: 27

tool: D191: 21

tool: D493: 16

tool: D253: 55

tool: D486: 151

tool: D0: 96

tool: D393: 1097

tool: D342: 512

tool: D230: 6

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

tool: {"D301": [0x3a,0x8c,0x30,0xe2,0x8e,0x79,0x45,0x3e]}

tool: D338: 9223372036854775807

tool: {"D358": [3.141592653589,-3.141592653589]}

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

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;
}
```