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

```asm
<GPS_Math_VderGrinten_LatLon_To_EN>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  movq   %xmm0,%r12
  movapd %xmm1,%xmm0
  mov    %rdi,%r13
  mov    %rsi,%r14
  movq   %xmm2,%rbp
  movsd  %xmm3,0x18(%rsp)
  movq   %xmm4,%r15
  movsd  %xmm5,0x8(%rsp)
  movsd  %xmm6,0x10(%rsp)
  call   <GPS_Math_Deg_To_Rad@plt>
  movq   %xmm0,%rbx
  movq   %r12,%xmm0
  call   <GPS_Math_Deg_To_Rad@plt>
  movq   %xmm0,%r12
  movq   %rbp,%xmm0
  call   <GPS_Math_Deg_To_Rad@plt>
  comisd D175(%rip),%xmm0
  jbe    L183
  subsd  D313(%rip),%xmm0
L183:
  movsd  0x8(%rsp),%xmm7
  movapd %xmm7,%xmm3
  mulsd  %xmm7,%xmm3
  movsd  0x10(%rsp),%xmm2
  mulsd  %xmm2,%xmm2
  movapd %xmm3,%xmm1
  subsd  %xmm2,%xmm1
  divsd  %xmm3,%xmm1
  movapd %xmm1,%xmm4
  mulsd  %xmm1,%xmm4
  movapd %xmm1,%xmm3
  divsd  D250(%rip),%xmm3
  movsd  D110(%rip),%xmm2
  subsd  %xmm3,%xmm2
  movapd %xmm4,%xmm3
  mulsd  D208(%rip),%xmm3
  divsd  D134(%rip),%xmm3
  subsd  %xmm3,%xmm2
  mulsd  %xmm4,%xmm1
  mulsd  D241(%rip),%xmm1
  divsd  D120(%rip),%xmm1
  subsd  %xmm1,%xmm2
  mulsd  %xmm2,%xmm7
  movapd %xmm7,%xmm1
  movq   %rbx,%xmm5
  subsd  %xmm0,%xmm5
  movsd  %xmm5,0x8(%rsp)
  comisd D175(%rip),%xmm5
  jbe    L174
  subsd  D313(%rip),%xmm5
  movsd  %xmm5,0x8(%rsp)
L174:
  movsd  D248(%rip),%xmm0
  movsd  0x8(%rsp),%xmm6
  comisd %xmm6,%xmm0
  jbe    L5
  addsd  D313(%rip),%xmm6
  movsd  %xmm6,0x8(%rsp)
L5:
  movq   %r12,%xmm4
  ucomisd D47(%rip),%xmm4
  jp     L178
  jne    L178
  movq   $0x0,(%r14)
  mulsd  0x8(%rsp),%xmm1
  addsd  0x18(%rsp),%xmm1
  movsd  %xmm1,0x0(%r13)
L125:
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L178:
  mulsd  D175(%rip),%xmm1
  movsd  %xmm1,0x10(%rsp)
  movsd  0x8(%rsp),%xmm4
  ucomisd D47(%rip),%xmm4
  jp     L192
  jne    L192
L27:
  movq   %r12,%xmm0
  mulsd  D231(%rip),%xmm0
  andpd  D75(%rip),%xmm0
  comisd D110(%rip),%xmm0
  jbe    L45
  movsd  D110(%rip),%xmm0
L207:
  call   <asin@plt>
  movq   $0x0,0x0(%r13)
  mulsd  D126(%rip),%xmm0
  call   <tan@plt>
  mulsd  0x10(%rsp),%xmm0
  movq   %r15,%xmm6
  mulsd  %xmm6,%xmm0
  pxor   %xmm1,%xmm1
  movq   %r12,%xmm7
  comisd %xmm7,%xmm1
  ja     L184
  movsd  %xmm0,(%r14)
  jmp    L125
L192:
  movsd  D10(%rip),%xmm0
  movq   %r12,%xmm6
  comisd %xmm6,%xmm0
  ja     L27
  movsd  D175(%rip),%xmm1
  movapd %xmm1,%xmm0
  movsd  0x8(%rsp),%xmm4
  divsd  %xmm4,%xmm0
  divsd  %xmm1,%xmm4
  subsd  %xmm4,%xmm0
  movq   D75(%rip),%xmm1
  andpd  %xmm1,%xmm0
  mulsd  D126(%rip),%xmm0
  movsd  %xmm0,0x20(%rsp)
  movq   %r12,%xmm0
  mulsd  D231(%rip),%xmm0
  andpd  %xmm1,%xmm0
  comisd D110(%rip),%xmm0
  jbe    L90
  movsd  D110(%rip),%xmm0
L193:
  call   <asin@plt>
  lea    0x58(%rsp),%rdi
  lea    0x50(%rsp),%rsi
  call   <sincos@plt>
  movsd  0x50(%rsp),%xmm1
  movsd  0x58(%rsp),%xmm3
  movapd %xmm3,%xmm0
  addsd  %xmm1,%xmm0
  movsd  D110(%rip),%xmm2
  subsd  %xmm2,%xmm0
  divsd  %xmm0,%xmm1
  movsd  D76(%rip),%xmm0
  divsd  %xmm3,%xmm0
  subsd  %xmm2,%xmm0
  movapd %xmm0,%xmm7
  mulsd  %xmm1,%xmm7
  movsd  %xmm7,0x38(%rsp)
  movsd  0x20(%rsp),%xmm4
  movapd %xmm4,%xmm6
  mulsd  %xmm4,%xmm6
  movapd %xmm6,%xmm0
  movsd  %xmm6,0x40(%rsp)
  movapd %xmm7,%xmm2
  mulsd  %xmm7,%xmm2
  movapd %xmm1,%xmm5
  subsd  %xmm2,%xmm5
  addsd  %xmm2,%xmm6
  movapd %xmm0,%xmm7
  addsd  %xmm1,%xmm7
  movsd  %xmm7,0x30(%rsp)
  mulsd  %xmm5,%xmm0
  movsd  %xmm5,0x48(%rsp)
  mulsd  %xmm5,%xmm0
  mulsd  %xmm1,%xmm1
  subsd  %xmm2,%xmm1
  movsd  %xmm6,0x28(%rsp)
  mulsd  %xmm6,%xmm1
  subsd  %xmm1,%xmm0
  movsd  D126(%rip),%xmm1
  call   <pow@plt>
  movapd %xmm0,%xmm1
  movsd  0x48(%rsp),%xmm0
  mulsd  0x20(%rsp),%xmm0
  addsd  %xmm1,%xmm0
  mulsd  0x10(%rsp),%xmm0
  divsd  0x28(%rsp),%xmm0
  addsd  0x18(%rsp),%xmm0
  pxor   %xmm1,%xmm1
  comisd 0x8(%rsp),%xmm1
  ja     L62
  movsd  %xmm0,0x0(%r13)
L142:
  movsd  0x40(%rsp),%xmm0
  addsd  D110(%rip),%xmm0
  mulsd  0x28(%rsp),%xmm0
  movsd  0x30(%rsp),%xmm6
  movapd %xmm6,%xmm1
  mulsd  %xmm6,%xmm1
  subsd  %xmm1,%xmm0
  movsd  D126(%rip),%xmm1
  call   <pow@plt>
  movapd %xmm0,%xmm1
  movsd  0x38(%rsp),%xmm0
  mulsd  0x30(%rsp),%xmm0
  mulsd  0x20(%rsp),%xmm1
  subsd  %xmm1,%xmm0
  mulsd  0x10(%rsp),%xmm0
  divsd  0x28(%rsp),%xmm0
  movq   %r15,%xmm6
  addsd  %xmm6,%xmm0
  pxor   %xmm1,%xmm1
  movq   %r12,%xmm6
  comisd %xmm6,%xmm1
  ja     L50
  movsd  %xmm0,(%r14)
  jmp    L125
L45:
  movsd  D1(%rip),%xmm1
  comisd %xmm0,%xmm1
  jbe    L207
  movapd %xmm1,%xmm0
  jmp    L207
L184:
  xorpd  D223(%rip),%xmm0
  movsd  %xmm0,(%r14)
  jmp    L125
L90:
  movsd  D1(%rip),%xmm1
  comisd %xmm0,%xmm1
  jbe    L193
  movapd %xmm1,%xmm0
  jmp    L193
L62:
  xorpd  D223(%rip),%xmm0
  movsd  %xmm0,0x0(%r13)
  jmp    L142
L50:
  xorpd  D223(%rip),%xmm0
  movsd  %xmm0,(%r14)
  jmp    L125
```

tool_calls: name: read_data
arguments: tag: D175
data_type: f64[2]
name: read_data
arguments: tag: D313
data_type: byte[8]
name: read_data
arguments: tag: D250
data_type: f64
name: read_data
arguments: tag: D110
data_type: f64[2]
name: read_data
arguments: tag: D208
data_type: f64
name: read_data
arguments: tag: D134
data_type: f64
name: read_data
arguments: tag: D241
data_type: f64
name: read_data
arguments: tag: D120
data_type: f64
name: read_data
arguments: tag: D248
data_type: byte[8]
name: read_data
arguments: tag: D47
data_type: f64
name: read_data
arguments: tag: D231
data_type: byte[8]
name: read_data
arguments: tag: D75
data_type: qword[2]
name: read_data
arguments: tag: D126
data_type: byte[8]
name: read_data
arguments: tag: D10
data_type: byte[8]
name: read_data
arguments: tag: D76
data_type: f64
name: read_data
arguments: tag: D1
data_type: byte[8]
name: read_data
arguments: tag: D223
data_type: byte[16]

tool: {"D175": [3.141592653589,6.283185307178]}

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

tool: D250: 6

tool: {"D110": [1.0,-1.0]}

tool: D208: 17

tool: D134: 360

tool: D241: 67

tool: D120: 3024

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

tool: D47: 0

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

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

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

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

tool: D76: 2

tool: {"D1": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0xbf]}

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

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