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

```asm
<GPS_Math_VderGrinten_LatLon_To_EN>:
  endbr64
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x78,%rsp
  movsd  %xmm0,0x8(%rsp)
  movapd %xmm1,%xmm0
  movsd  %xmm3,0x30(%rsp)
  movsd  %xmm4,0x38(%rsp)
  movsd  %xmm6,0x18(%rsp)
  movsd  %xmm2,0x28(%rsp)
  movsd  %xmm5,0x20(%rsp)
  call   <GPS_Math_Deg_To_Rad@plt>
  movsd  0x8(%rsp),%xmm9
  movsd  %xmm0,0x10(%rsp)
  movapd %xmm9,%xmm0
  call   <GPS_Math_Deg_To_Rad@plt>
  movsd  0x28(%rsp),%xmm8
  movsd  %xmm0,0x8(%rsp)
  movapd %xmm8,%xmm0
  call   <GPS_Math_Deg_To_Rad@plt>
  movsd  0x10(%rsp),%xmm3
  movsd  D48(%rip),%xmm8
  movsd  0x18(%rsp),%xmm6
  movsd  0x20(%rsp),%xmm7
  movapd %xmm0,%xmm4
  comisd %xmm8,%xmm0
  jbe    L140
  subsd  D148(%rip),%xmm4
L140:
  mulsd  %xmm6,%xmm6
  movapd %xmm7,%xmm0
  subsd  %xmm4,%xmm3
  mulsd  %xmm7,%xmm0
  comisd %xmm8,%xmm3
  movapd %xmm0,%xmm1
  subsd  %xmm6,%xmm1
  movsd  D208(%rip),%xmm6
  movapd %xmm6,%xmm5
  divsd  %xmm0,%xmm1
  movapd %xmm1,%xmm2
  movapd %xmm1,%xmm0
  divsd  D29(%rip),%xmm0
  subsd  %xmm0,%xmm5
  mulsd  %xmm1,%xmm2
  movsd  D53(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  divsd  D139(%rip),%xmm0
  subsd  %xmm0,%xmm5
  mulsd  %xmm2,%xmm1
  mulsd  D92(%rip),%xmm1
  divsd  D115(%rip),%xmm1
  subsd  %xmm1,%xmm5
  movapd %xmm5,%xmm2
  mulsd  %xmm7,%xmm2
  movapd %xmm2,%xmm5
  movapd %xmm3,%xmm2
  jbe    L28
  subsd  D148(%rip),%xmm2
L28:
  movsd  D186(%rip),%xmm0
  comisd %xmm2,%xmm0
  jbe    L43
  addsd  D148(%rip),%xmm2
L43:
  movsd  0x8(%rsp),%xmm7
  pxor   %xmm4,%xmm4
  ucomisd %xmm4,%xmm7
  jp     L133
  jne    L133
  mulsd  %xmm2,%xmm5
  movq   $0x0,0x0(%rbp)
  addsd  0x30(%rsp),%xmm5
  movsd  %xmm5,(%rbx)
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  ret
  nopl   (%rax)
L133:
  mulsd  %xmm8,%xmm5
  movsd  0x8(%rsp),%xmm0
  pxor   %xmm7,%xmm7
  movq   D190(%rip),%xmm1
  mulsd  D127(%rip),%xmm0
  ucomisd %xmm7,%xmm2
  movsd  %xmm5,0x10(%rsp)
  andpd  %xmm1,%xmm0
  jp     L7
  je     L150
L7:
  movsd  D165(%rip),%xmm3
  comisd 0x8(%rsp),%xmm3
  ja     L150
  movapd %xmm8,%xmm3
  comisd %xmm6,%xmm0
  movapd %xmm2,%xmm4
  divsd  %xmm2,%xmm3
  divsd  %xmm8,%xmm4
  subsd  %xmm4,%xmm3
  andpd  %xmm1,%xmm3
  movsd  D120(%rip),%xmm1
  mulsd  %xmm1,%xmm3
  movsd  %xmm3,0x18(%rsp)
  jbe    L88
  movapd %xmm6,%xmm0
L95:
  movsd  %xmm2,0x58(%rsp)
  call   <asin@plt>
  lea    0x68(%rsp),%rdi
  lea    0x60(%rsp),%rsi
  call   <sincos@plt>
  movsd  0x68(%rsp),%xmm4
  movsd  0x60(%rsp),%xmm3
  mov    D208(%rip),%rax
  movapd %xmm4,%xmm0
  addsd  %xmm3,%xmm0
  movq   %rax,%xmm6
  mov    D120(%rip),%rax
  movq   %rax,%xmm1
  subsd  %xmm6,%xmm0
  divsd  %xmm0,%xmm3
  movsd  D152(%rip),%xmm0
  divsd  %xmm4,%xmm0
  movsd  0x18(%rsp),%xmm4
  movapd %xmm4,%xmm7
  mulsd  %xmm4,%xmm7
  movapd %xmm7,%xmm5
  movsd  %xmm7,0x50(%rsp)
  subsd  %xmm6,%xmm0
  movapd %xmm0,%xmm6
  movapd %xmm7,%xmm0
  mulsd  %xmm3,%xmm6
  movapd %xmm6,%xmm8
  movsd  %xmm6,0x28(%rsp)
  mulsd  %xmm6,%xmm8
  movapd %xmm3,%xmm6
  subsd  %xmm8,%xmm6
  addsd  %xmm8,%xmm5
  movapd %xmm6,%xmm4
  movapd %xmm3,%xmm6
  movsd  %xmm5,0x40(%rsp)
  mulsd  %xmm3,%xmm3
  addsd  %xmm7,%xmm6
  movsd  %xmm4,0x48(%rsp)
  mulsd  %xmm4,%xmm0
  movsd  %xmm6,0x20(%rsp)
  subsd  %xmm8,%xmm3
  mulsd  %xmm4,%xmm0
  mulsd  %xmm5,%xmm3
  subsd  %xmm3,%xmm0
  call   <pow@plt>
  movsd  0x48(%rsp),%xmm4
  pxor   %xmm7,%xmm7
  movsd  0x40(%rsp),%xmm5
  mulsd  0x18(%rsp),%xmm4
  movsd  0x58(%rsp),%xmm2
  mov    D120(%rip),%rax
  comisd %xmm2,%xmm7
  movsd  0x50(%rsp),%xmm7
  movq   %rax,%xmm1
  mov    D208(%rip),%rax
  addsd  %xmm0,%xmm4
  mulsd  0x10(%rsp),%xmm4
  movq   %rax,%xmm6
  divsd  %xmm5,%xmm4
  addsd  0x30(%rsp),%xmm4
  jbe    L8
  xorpd  D84(%rip),%xmm4
L8:
  addsd  %xmm6,%xmm7
  movsd  %xmm4,(%rbx)
  movsd  %xmm5,0x30(%rsp)
  movapd %xmm7,%xmm0
  movsd  0x20(%rsp),%xmm7
  mulsd  %xmm5,%xmm0
  movapd %xmm7,%xmm2
  mulsd  %xmm7,%xmm2
  subsd  %xmm2,%xmm0
  call   <pow@plt>
  movsd  0x30(%rsp),%xmm5
  pxor   %xmm7,%xmm7
  comisd 0x8(%rsp),%xmm7
  movapd %xmm0,%xmm1
  movsd  0x28(%rsp),%xmm0
  mulsd  0x18(%rsp),%xmm1
  mulsd  0x20(%rsp),%xmm0
  subsd  %xmm1,%xmm0
  mulsd  0x10(%rsp),%xmm0
  divsd  %xmm5,%xmm0
  addsd  0x38(%rsp),%xmm0
  jbe    L45
L79:
  xorpd  D84(%rip),%xmm0
  jmp    L45
  xchg   %ax,%ax
L150:
  comisd %xmm6,%xmm0
  jbe    L41
  movapd %xmm6,%xmm0
L142:
  call   <asin@plt>
  mulsd  D120(%rip),%xmm0
  movq   $0x0,(%rbx)
  call   <tan@plt>
  mulsd  0x10(%rsp),%xmm0
  pxor   %xmm7,%xmm7
  mulsd  0x38(%rsp),%xmm0
  comisd 0x8(%rsp),%xmm7
  ja     L79
L45:
  movsd  %xmm0,0x0(%rbp)
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L41:
  movsd  D125(%rip),%xmm1
  maxsd  %xmm0,%xmm1
  movapd %xmm1,%xmm0
  jmp    L142
  nopw   0x0(%rax,%rax,1)
L88:
  movsd  D125(%rip),%xmm3
  maxsd  %xmm0,%xmm3
  movapd %xmm3,%xmm0
  jmp    L95
```

tool_calls: name: parse_data
arguments: data_tag: D48
datatype: f64
name: parse_data
arguments: data_tag: D148
datatype: byte[8]
name: parse_data
arguments: data_tag: D208
datatype: f64
name: parse_data
arguments: data_tag: D29
datatype: f64
name: parse_data
arguments: data_tag: D53
datatype: f64
name: parse_data
arguments: data_tag: D139
datatype: f64
name: parse_data
arguments: data_tag: D92
datatype: f64
name: parse_data
arguments: data_tag: D115
datatype: f64
name: parse_data
arguments: data_tag: D186
datatype: byte[8]
name: parse_data
arguments: data_tag: D190
datatype: qword
name: parse_data
arguments: data_tag: D127
datatype: byte[8]
name: parse_data
arguments: data_tag: D165
datatype: byte[8]
name: parse_data
arguments: data_tag: D120
datatype: f32[2]
name: parse_data
arguments: data_tag: D152
datatype: f64
name: parse_data
arguments: data_tag: D84
datatype: f32[4]
name: parse_data
arguments: data_tag: D125
datatype: f32[2]

tool: D48: 3.141592653589

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

tool: D208: 1

tool: D29: 6

tool: D53: 17

tool: D139: 360

tool: D92: 67

tool: D115: 3024

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

tool: D190: 9223372036854775807

tool: {"D127": [0x2b,0xce,0xc9,0x6d,0x30,0x5f,0xe4,0x3f]}

tool: {"D165": [0xac,0x61,0xe9,0xd7,0xf0,0x21,0xf9,0xbf]}

tool: {"D120": [0.0,1.75]}

tool: D152: 2

tool: {"D84": [0.0,-0.0,0.0,0.0]}

tool: {"D125": [0.0,-1.875]}

assistant: ```c
void GPS_Math_VderGrinten_LatLon_To_EN(double phi, double lambda, double *E, double *N, double M0, double E0, double N0, double a, double b) {
  double po2;
  double p2;
  double a2;
  double b2;
  double e2;
  double e4;
  double e6;
  double Ra;
  double pRa;
  double gg;
  double pp;
  double pp2;
  double gm0;
  double ppa;
  double thetai;
  double theta;
  double thetas;
  double thetac;
  double qq;
  double tol;
  double aa;
  double aa2;
  double dlam;
  lambda = GPS_Math_Deg_To_Rad(lambda);
  phi = GPS_Math_Deg_To_Rad(phi);
  M0 = GPS_Math_Deg_To_Rad(M0);
  p2 = (double)3.141592653589 * (double)2.0;
  po2 = (double)3.141592653589 / (double)2.0;
  if (M0 > 3.141592653589)
    M0 -= p2;
  a2 = a * a;
  b2 = b * b;
  e2 = (a2 - b2) / a2;
  e4 = e2 * e2;
  e6 = e2 * e4;
  Ra = a * ((double)1. - e2 / (double)6. - (double)17. * e4 / (double)360. - (double)67. * e6 / (double)3024.);
  pRa = (double)3.141592653589 * Ra;
  dlam = lambda - M0;
  if (dlam > 3.141592653589)
    dlam -= p2;
  if (dlam < -3.141592653589)
    dlam += p2;
  tol = (double)1.0e-5;
  if (!phi) {
    *N = (double)0.0;
    *E = Ra * dlam + E0;
  } else if (!dlam || (((po2 - tol) < tol) && (phi < (po2 + tol))) || (((-po2 - tol) < tol) && (phi < (-po2 + tol)))) {
    thetai = fabs(((double)2. / (double)3.141592653589) * phi);
    if (thetai > (double)1.)
      thetai = (double)1.;
    else if (thetai < (double)-1.)
      thetai = (double)-1.;
    theta = asin(thetai);
    *E = 0;
    *N = pRa * tan(theta / (double)2.) * N0;
    if (phi < (double)0.0)
      *N *= (double)-1.;
  } else {
    aa = (double).5 * fabs((double)3.141592653589 / dlam - dlam / (double)3.141592653589);
    thetai = fabs(((double)2. / (double)3.141592653589) * phi);
    if (thetai > (double)1.)
      thetai = (double)1.;
    else if (thetai < (double)-1.)
      thetai = (double)-1.;
    theta = asin(thetai);
    thetas = sin(theta);
    thetac = cos(theta);
    gg = thetac / (thetas + thetac - (double)1.);
    pp = gg * ((double)2. / thetas - (double)1.);
    aa2 = aa * aa;
    pp2 = pp * pp;
    gm0 = gg - pp2;
    ppa = pp2 + aa2;
    qq = aa2 + gg;
    *E = pRa * (aa * gm0 + pow(aa2 * gm0 * gm0 - ppa * (gg * gg - pp2), (double).5)) / ppa + E0;
    if (dlam < (double)0.0)
      *E *= (double)-1.;
    *N = pRa * (pp * qq - aa * pow((aa2 + (double)1.) * ppa - qq * qq, (double).5)) / ppa + N0;
    if (phi < (double)0.0)
      *N *= (double)-1.;
  }
  return;
}
```