user: Translate the below assembly code into C programming language:

```asm
<GPS_Math_Cassini_LatLon_To_EN>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x1c0,%rsp
  movsd  %xmm0,-0x178(%rbp)
  movsd  %xmm1,-0x180(%rbp)
  mov    %rdi,-0x188(%rbp)
  mov    %rsi,-0x190(%rbp)
  movsd  %xmm2,-0x198(%rbp)
  movsd  %xmm3,-0x1a0(%rbp)
  movsd  %xmm4,-0x1a8(%rbp)
  movsd  %xmm5,-0x1b0(%rbp)
  movsd  %xmm6,-0x1b8(%rbp)
  movsd  %xmm7,-0x1c0(%rbp)
  mov    -0x180(%rbp),%rax
  movq   %rax,%xmm0
  call   <GPS_Math_Deg_To_Rad@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x180(%rbp)
  mov    -0x198(%rbp),%rax
  movq   %rax,%xmm0
  call   <GPS_Math_Deg_To_Rad@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x198(%rbp)
  mov    -0x178(%rbp),%rax
  movq   %rax,%xmm0
  call   <GPS_Math_Deg_To_Rad@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x178(%rbp)
  mov    -0x1a0(%rbp),%rax
  movq   %rax,%xmm0
  call   <GPS_Math_Deg_To_Rad@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x1a0(%rbp)
  movsd  D338(%rip),%xmm0
  movsd  %xmm0,-0x160(%rbp)
  movsd  D320(%rip),%xmm0
  movsd  %xmm0,-0x158(%rbp)
  movsd  -0x1b8(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  %xmm0,-0x150(%rbp)
  movsd  -0x1c0(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  %xmm0,-0x148(%rbp)
  movsd  -0x150(%rbp),%xmm0
  subsd  -0x148(%rbp),%xmm0
  divsd  -0x150(%rbp),%xmm0
  movsd  %xmm0,-0x140(%rbp)
  movsd  -0x140(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  %xmm0,-0x138(%rbp)
  movsd  -0x140(%rbp),%xmm0
  mulsd  -0x138(%rbp),%xmm0
  movsd  %xmm0,-0x130(%rbp)
  movsd  -0x138(%rbp),%xmm1
  movsd  D431(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x128(%rbp)
  movsd  -0x130(%rbp),%xmm1
  movsd  D225(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D152(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x120(%rbp)
  movsd  -0x140(%rbp),%xmm0
  movsd  D192(%rip),%xmm2
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm1
  movsd  D351(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movsd  -0x128(%rbp),%xmm1
  movsd  D372(%rip),%xmm2
  divsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  -0x130(%rbp),%xmm2
  movsd  D158(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  movsd  D80(%rip),%xmm2
  divsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x118(%rbp)
  movsd  -0x140(%rbp),%xmm1
  movsd  D431(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D206(%rip),%xmm2
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm1
  movsd  -0x128(%rbp),%xmm0
  movsd  D34(%rip),%xmm2
  divsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x120(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x110(%rbp)
  movsd  -0x138(%rbp),%xmm1
  movsd  D390(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D80(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  -0x120(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x108(%rbp)
  movsd  -0x130(%rbp),%xmm1
  movsd  D385(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D151(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x100(%rbp)
  movsd  -0x118(%rbp),%xmm0
  mulsd  -0x198(%rbp),%xmm0
  movsd  %xmm0,-0xf8(%rbp)
  movsd  -0x198(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movsd  -0x110(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0xf0(%rbp)
  movsd  -0x198(%rbp),%xmm1
  movsd  D192(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movsd  -0x108(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0xe8(%rbp)
  movsd  -0x198(%rbp),%xmm1
  movsd  D399(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movsd  -0x100(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0xe0(%rbp)
  movsd  -0xf8(%rbp),%xmm0
  subsd  -0xf0(%rbp),%xmm0
  addsd  -0xe8(%rbp),%xmm0
  subsd  -0xe0(%rbp),%xmm0
  movsd  -0x1b8(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0xd8(%rbp)
  movsd  D351(%rip),%xmm0
  subsd  -0x140(%rbp),%xmm0
  movsd  %xmm0,-0xd0(%rbp)
  movsd  D323(%rip),%xmm0
  mov    -0xd0(%rbp),%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <pow@plt>
  movq   %xmm0,%rax
  mov    %rax,-0xc8(%rbp)
  movsd  D351(%rip),%xmm0
  subsd  -0xc8(%rbp),%xmm0
  movsd  -0xc8(%rbp),%xmm2
  movsd  D351(%rip),%xmm1
  addsd  %xmm2,%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0xc0(%rbp)
  movsd  -0xc0(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  %xmm0,-0xb8(%rbp)
  movsd  -0xc0(%rbp),%xmm0
  mulsd  -0xb8(%rbp),%xmm0
  movsd  %xmm0,-0xb0(%rbp)
  movsd  -0xc0(%rbp),%xmm0
  mulsd  -0xb0(%rbp),%xmm0
  movsd  %xmm0,-0xa8(%rbp)
  movsd  -0xc0(%rbp),%xmm1
  movsd  D431(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D212(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  -0xb0(%rbp),%xmm2
  movsd  D127(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  movsd  D34(%rip),%xmm2
  divsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0xa0(%rbp)
  movsd  -0xb8(%rbp),%xmm1
  movsd  D298(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D432(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  -0xa8(%rbp),%xmm2
  movsd  D231(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  movsd  D34(%rip),%xmm2
  divsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x98(%rbp)
  movsd  -0xb0(%rbp),%xmm1
  movsd  D483(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D172(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x90(%rbp)
  movsd  -0xa8(%rbp),%xmm1
  movsd  D216(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D262(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x88(%rbp)
  movsd  -0x180(%rbp),%xmm0
  subsd  -0x1a0(%rbp),%xmm0
  movsd  %xmm0,-0x168(%rbp)
  movsd  -0x168(%rbp),%xmm0
  comisd D480(%rip),%xmm0
  jbe    L1
  movsd  -0x168(%rbp),%xmm0
  subsd  -0x160(%rbp),%xmm0
  movsd  %xmm0,-0x168(%rbp)
L1:
  movsd  D126(%rip),%xmm0
  comisd -0x168(%rbp),%xmm0
  jbe    L5
  movsd  -0x168(%rbp),%xmm0
  addsd  -0x160(%rbp),%xmm0
  movsd  %xmm0,-0x168(%rbp)
L5:
  mov    -0x178(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x80(%rbp)
  mov    -0x178(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x78(%rbp)
  mov    -0x178(%rbp),%rax
  movq   %rax,%xmm0
  call   <tan@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x70(%rbp)
  movsd  -0x140(%rbp),%xmm0
  mulsd  -0x80(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x80(%rbp),%xmm1
  movsd  D351(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movsd  D323(%rip),%xmm0
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <pow@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x68(%rbp)
  movsd  -0x1b8(%rbp),%xmm0
  divsd  -0x68(%rbp),%xmm0
  movsd  %xmm0,-0x60(%rbp)
  movsd  -0x70(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  movsd  -0x168(%rbp),%xmm0
  mulsd  -0x78(%rbp),%xmm0
  movsd  %xmm0,-0x50(%rbp)
  movsd  -0x50(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  movsd  -0x50(%rbp),%xmm0
  mulsd  -0x48(%rbp),%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movsd  -0x50(%rbp),%xmm0
  mulsd  -0x40(%rbp),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  -0x50(%rbp),%xmm0
  mulsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  -0x140(%rbp),%xmm0
  mulsd  -0x78(%rbp),%xmm0
  mulsd  -0x78(%rbp),%xmm0
  divsd  -0xd0(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x118(%rbp),%xmm0
  mulsd  -0x178(%rbp),%xmm0
  movsd  %xmm0,-0xf8(%rbp)
  movsd  -0x178(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movsd  -0x110(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x178(%rbp),%xmm1
  movsd  D192(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movsd  -0x108(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x178(%rbp),%xmm1
  movsd  D399(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movsd  -0x100(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0xf8(%rbp),%xmm0
  subsd  -0x20(%rbp),%xmm0
  addsd  -0x18(%rbp),%xmm0
  subsd  -0x10(%rbp),%xmm0
  movsd  -0x1b8(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x58(%rbp),%xmm0
  mulsd  -0x40(%rbp),%xmm0
  movsd  D399(%rip),%xmm2
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm1
  movsd  -0x50(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  D206(%rip),%xmm1
  movapd %xmm1,%xmm2
  subsd  -0x58(%rbp),%xmm2
  movsd  -0x28(%rbp),%xmm3
  movsd  D206(%rip),%xmm1
  mulsd  %xmm3,%xmm1
  addsd  %xmm1,%xmm2
  movsd  -0x58(%rbp),%xmm1
  mulsd  -0x30(%rbp),%xmm1
  movsd  D342(%rip),%xmm3
  divsd  %xmm3,%xmm1
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  mulsd  -0x60(%rbp),%xmm0
  addsd  -0x1a8(%rbp),%xmm0
  mov    -0x188(%rbp),%rax
  movsd  %xmm0,(%rax)
  movsd  -0x8(%rbp),%xmm0
  movapd %xmm0,%xmm1
  subsd  -0xd8(%rbp),%xmm1
  movsd  -0x60(%rbp),%xmm0
  movapd %xmm0,%xmm2
  mulsd  -0x70(%rbp),%xmm2
  movsd  -0x48(%rbp),%xmm0
  movsd  D212(%rip),%xmm4
  movapd %xmm0,%xmm3
  divsd  %xmm4,%xmm3
  movsd  D158(%rip),%xmm0
  movapd %xmm0,%xmm4
  subsd  -0x58(%rbp),%xmm4
  movsd  -0x28(%rbp),%xmm5
  movsd  D399(%rip),%xmm0
  mulsd  %xmm5,%xmm0
  addsd  %xmm4,%xmm0
  mulsd  -0x38(%rbp),%xmm0
  movsd  D397(%rip),%xmm4
  divsd  %xmm4,%xmm0
  addsd  %xmm3,%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  addsd  -0x1b0(%rbp),%xmm0
  mov    -0x190(%rbp),%rax
  movsd  %xmm0,(%rax)
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D338
datatype: byte[8]
name: retrieve_data
arguments: tag: D320
datatype: byte[8]
name: retrieve_data
arguments: tag: D431
datatype: f64
name: retrieve_data
arguments: tag: D225
datatype: f64
name: retrieve_data
arguments: tag: D152
datatype: f64
name: retrieve_data
arguments: tag: D192
datatype: f64
name: retrieve_data
arguments: tag: D351
datatype: f64
name: retrieve_data
arguments: tag: D372
datatype: f64
name: retrieve_data
arguments: tag: D158
datatype: f64
name: retrieve_data
arguments: tag: D80
datatype: f64
name: retrieve_data
arguments: tag: D206
datatype: f64
name: retrieve_data
arguments: tag: D34
datatype: f64
name: retrieve_data
arguments: tag: D390
datatype: f64
name: retrieve_data
arguments: tag: D385
datatype: f64
name: retrieve_data
arguments: tag: D151
datatype: f64
name: retrieve_data
arguments: tag: D399
datatype: f64
name: retrieve_data
arguments: tag: D323
datatype: f64
name: retrieve_data
arguments: tag: D212
datatype: f64
name: retrieve_data
arguments: tag: D127
datatype: f64
name: retrieve_data
arguments: tag: D298
datatype: f64
name: retrieve_data
arguments: tag: D432
datatype: f64
name: retrieve_data
arguments: tag: D231
datatype: f64
name: retrieve_data
arguments: tag: D483
datatype: f64
name: retrieve_data
arguments: tag: D172
datatype: f64
name: retrieve_data
arguments: tag: D216
datatype: f64
name: retrieve_data
arguments: tag: D262
datatype: f64
name: retrieve_data
arguments: tag: D480
datatype: f64[2]
name: retrieve_data
arguments: tag: D126
datatype: byte[8]
name: retrieve_data
arguments: tag: D342
datatype: f64
name: retrieve_data
arguments: tag: D397
datatype: f64

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

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

tool: D431: 3

tool: D225: 45

tool: D152: 1024

tool: D192: 4

tool: D351: 1

tool: D372: 64

tool: D158: 5

tool: D80: 256

tool: D206: 8

tool: D34: 32

tool: D390: 15

tool: D385: 35

tool: D151: 3072

tool: D399: 6

tool: D323: 0.5

tool: D212: 2

tool: D127: 27

tool: D298: 21

tool: D432: 16

tool: D231: 55

tool: D483: 151

tool: D172: 96

tool: D216: 1097

tool: D262: 512

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

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

tool: D342: 120

tool: D397: 24

assistant: ```c
void GPS_Math_Cassini_LatLon_To_EN(double phi, double lambda, double *E, double *N, double phi0, double M0, double E0, double N0, double a, double b) {
  double p2;
  double po2;
  double a2;
  double b2;
  double e2;
  double e4;
  double e6;
  double AM0;
  double c0;
  double c1;
  double c2;
  double c3;
  double om0;
  double A0;
  double A1;
  double A2;
  double A3;
  double j;
  double te4;
  double phi0s2;
  double phi0s4;
  double phi0s6;
  double lat;
  double x;
  double E1;
  double E2;
  double E3;
  double E4;
  double phis;
  double phic;
  double phit;
  double phis2;
  double phis4;
  double phis6;
  double RD;
  double dlam;
  double NN;
  double TT;
  double WW;
  double WW2;
  double WW3;
  double WW4;
  double WW5;
  double CC;
  double MM;
  lambda = GPS_Math_Deg_To_Rad(lambda);
  phi0 = GPS_Math_Deg_To_Rad(phi0);
  phi = GPS_Math_Deg_To_Rad(phi);
  M0 = GPS_Math_Deg_To_Rad(M0);
  p2 = (double)3.141592653589 * (double)2.;
  po2 = (double)3.141592653589 / (double)2.;
  a2 = a * a;
  b2 = b * b;
  e2 = (a2 - b2) / a2;
  e4 = e2 * e2;
  e6 = e2 * e4;
  te4 = (double)3.0 * e4;
  j = (double)45. * e6 / (double)1024.;
  c0 = (double)1.0 - e2 / (double)4. - te4 / (double)64. - (double)5. * e6 / (double)256.;
  c1 = (double)3. * e2 / (double)8. + te4 / (double)32. + j;
  c2 = (double)15. * e4 / (double)256. + j;
  c3 = (double)35. * e6 / (double)3072.;
  lat = c0 * phi0;
  phi0s2 = c1 * sin((double)2. * phi0);
  phi0s4 = c2 * sin((double)4. * phi0);
  phi0s6 = c3 * sin((double)6. * phi0);
  AM0 = a * (lat - phi0s2 + phi0s4 - phi0s6);
  om0 = (double)1.0 - e2;
  x = pow(om0, (double)0.5);
  E1 = ((double)1.0 - x) / ((double)1.0 + x);
  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.;
  dlam = lambda - M0;
  if (dlam > 3.141592653589)
    dlam -= p2;
  if (dlam < -3.141592653589)
    dlam += p2;
  phis = sin(phi);
  phic = cos(phi);
  phit = tan(phi);
  RD = pow((double)1. - e2 * phis * phis, (double).5);
  NN = a / RD;
  TT = phit * phit;
  WW = dlam * phic;
  WW2 = WW * WW;
  WW3 = WW * WW2;
  WW4 = WW * WW3;
  WW5 = WW * WW4;
  CC = e2 * phic * phic / om0;
  lat = c0 * phi;
  phis2 = c1 * sin((double)2. * phi);
  phis4 = c2 * sin((double)4. * phi);
  phis6 = c3 * sin((double)6. * phi);
  MM = a * (lat - phis2 + phis4 - phis6);
  *E = NN * (WW - (TT * WW3 / (double)6.) - ((double)8. - TT + (double)8. * CC) * (TT * WW5 / (double)120.)) + E0;
  *N = MM - AM0 + NN * phit * ((WW2 / (double)2.) + ((double)5. - TT + (double)6. * CC) * WW4 / (double)24.) + N0;
  return;
}
```