user: Please show me the C implementation that matches the assembly code listed below:

```asm
<GPS_Math_EckertVI_LatLon_To_EN>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  movq   %xmm0,%r14
  movapd %xmm1,%xmm0
  mov    %rdi,%r12
  mov    %rsi,%rbp
  movq   %xmm2,%r13
  movq   %xmm3,%r15
  movsd  %xmm4,0x18(%rsp)
  movsd  %xmm5,(%rsp)
  movsd  %xmm6,0x8(%rsp)
  call   <GPS_Math_Deg_To_Rad@plt>
  movq   %xmm0,%rbx
  movq   %r14,%xmm0
  call   <GPS_Math_Deg_To_Rad@plt>
  movq   %xmm0,%r14
  movq   %r13,%xmm0
  call   <GPS_Math_Deg_To_Rad@plt>
  movq   %xmm0,%r13
  comisd D1(%rip),%xmm0
  jbe    L13
  movapd %xmm0,%xmm5
  subsd  D48(%rip),%xmm5
  movq   %xmm5,%r13
L13:
  movsd  (%rsp),%xmm5
  movapd %xmm5,%xmm2
  mulsd  %xmm5,%xmm2
  movsd  0x8(%rsp),%xmm1
  mulsd  %xmm1,%xmm1
  movapd %xmm2,%xmm0
  subsd  %xmm1,%xmm0
  divsd  %xmm2,%xmm0
  movapd %xmm0,%xmm3
  mulsd  %xmm0,%xmm3
  movapd %xmm0,%xmm2
  divsd  D157(%rip),%xmm2
  movsd  D57(%rip),%xmm1
  subsd  %xmm2,%xmm1
  movapd %xmm3,%xmm2
  mulsd  D97(%rip),%xmm2
  divsd  D129(%rip),%xmm2
  subsd  %xmm2,%xmm1
  mulsd  %xmm3,%xmm0
  mulsd  D45(%rip),%xmm0
  divsd  D78(%rip),%xmm0
  subsd  %xmm0,%xmm1
  mulsd  %xmm5,%xmm1
  divsd  D59(%rip),%xmm1
  movsd  %xmm1,0x10(%rsp)
  movq   %r14,%xmm0
  call   <sin@plt>
  movq   %rbx,%xmm6
  movq   %r13,%xmm3
  subsd  %xmm3,%xmm6
  movsd  %xmm6,0x8(%rsp)
  comisd D1(%rip),%xmm6
  jbe    L1
  subsd  D48(%rip),%xmm6
  movsd  %xmm6,0x8(%rsp)
L1:
  movsd  D135(%rip),%xmm1
  movsd  0x8(%rsp),%xmm6
  comisd %xmm6,%xmm1
  jbe    L38
  addsd  D48(%rip),%xmm6
  movsd  %xmm6,0x8(%rsp)
L38:
  mulsd  D73(%rip),%xmm0
  movsd  %xmm0,(%rsp)
L3:
  lea    0x28(%rsp),%rdi
  lea    0x20(%rsp),%rsi
  movq   %r14,%xmm0
  call   <sincos@plt>
  movq   %r14,%xmm7
  movq   %r14,%xmm0
  addsd  0x28(%rsp),%xmm0
  subsd  (%rsp),%xmm0
  xorpd  D147(%rip),%xmm0
  movsd  D57(%rip),%xmm1
  addsd  0x20(%rsp),%xmm1
  divsd  %xmm1,%xmm0
  addsd  %xmm0,%xmm7
  movq   %xmm7,%r14
  andpd  D104(%rip),%xmm0
  comisd D163(%rip),%xmm0
  ja     L3
  movapd %xmm7,%xmm0
  call   <cos@plt>
  movsd  0x8(%rsp),%xmm1
  movsd  0x10(%rsp),%xmm3
  mulsd  %xmm3,%xmm1
  addsd  D57(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %r15,%xmm5
  addsd  %xmm5,%xmm1
  movsd  %xmm1,(%r12)
  movapd %xmm3,%xmm0
  addsd  %xmm3,%xmm0
  movq   %r14,%xmm4
  mulsd  %xmm4,%xmm0
  addsd  0x18(%rsp),%xmm0
  movsd  %xmm0,0x0(%rbp)
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D1
data_type: f64[2]
name: disassemble_data
arguments: data_label: D48
data_type: byte[8]
name: disassemble_data
arguments: data_label: D157
data_type: f64
name: disassemble_data
arguments: data_label: D57
data_type: f64
name: disassemble_data
arguments: data_label: D97
data_type: f64
name: disassemble_data
arguments: data_label: D129
data_type: f64
name: disassemble_data
arguments: data_label: D45
data_type: f64
name: disassemble_data
arguments: data_label: D78
data_type: f64
name: disassemble_data
arguments: data_label: D59
data_type: byte[8]
name: disassemble_data
arguments: data_label: D135
data_type: byte[8]
name: disassemble_data
arguments: data_label: D73
data_type: byte[8]
name: disassemble_data
arguments: data_label: D147
data_type: byte[16]
name: disassemble_data
arguments: data_label: D104
data_type: qword[2]
name: disassemble_data
arguments: data_label: D163
data_type: byte[16]

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

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

tool: D157: 6

tool: D57: 1

tool: D97: 17

tool: D129: 360

tool: D45: 67

tool: D78: 3024

tool: {"D59": [0x41,0x3d,0xa3,0x3f,0xdb,0x23,0x02,0x40]}

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

tool: {"D73": [0x0f,0x13,0x22,0xaa,0xfd,0x90,0x04,0x40]}

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

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

tool: {"D163": [0x39,0xfe,0xdd,0xe8,0x1a,0xaa,0x00,0x3e,0x0f,0x13,0x22,0xaa,0xfd,0x90,0x04,0x40]}

assistant: ```c
void GPS_Math_EckertVI_LatLon_To_EN(double phi, double lambda, double *E, double *N, double M0, double E0, double N0, double a, double b) {
  double a2;
  double b2;
  double e2;
  double e4;
  double e6;
  double Ra;
  double Rsq;
  double IRa;
  double po2;
  double p2;
  double phis;
  double theta;
  double dtheta;
  double dlam;
  double tol;
  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.;
  po2 = (double)3.141592653589 / (double)2.;
  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.);
  Rsq = Ra / pow((double)2. + 3.141592653589, (double).5);
  IRa = (double)1. / Rsq;
  phis = sin(phi);
  theta = phi;
  dtheta = (double)1.;
  tol = (double)4.85e-10;
  dlam = lambda - M0;
  if (dlam > 3.141592653589)
    dlam -= p2;
  if (dlam < -3.141592653589)
    dlam += p2;
  while (fabs(dtheta) > tol) {
    dtheta = -(theta + sin(theta) - ((double)1. + po2) * phis) / ((double)1. + cos(theta));
    theta += dtheta;
  }
  *E = Rsq * dlam * ((double)1. + cos(theta)) + E0;
  *N = (double)2. * Rsq * theta + N0;
  return;
}
```