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

```asm
<GPS_Math_Miller_LatLon_To_EN>:
  endbr64
  push   %r14
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x40,%rsp
  movsd  %xmm3,0x10(%rsp)
  movsd  %xmm4,0x18(%rsp)
  movsd  %xmm5,0x28(%rsp)
  movsd  %xmm6,0x8(%rsp)
  movsd  %xmm2,0x30(%rsp)
  movsd  %xmm1,0x38(%rsp)
  call   <GPS_Math_Deg_To_Rad@plt>
  movsd  0x38(%rsp),%xmm1
  movsd  %xmm0,0x20(%rsp)
  movapd %xmm1,%xmm0
  call   <GPS_Math_Deg_To_Rad@plt>
  movsd  0x30(%rsp),%xmm2
  movq   %xmm0,%r14
  movapd %xmm2,%xmm0
  call   <GPS_Math_Deg_To_Rad@plt>
  movsd  0x28(%rsp),%xmm5
  movsd  0x8(%rsp),%xmm6
  movapd %xmm0,%xmm2
  comisd D147(%rip),%xmm2
  movsd  0x20(%rsp),%xmm3
  mulsd  %xmm6,%xmm6
  movapd %xmm5,%xmm0
  mulsd  %xmm5,%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm6,%xmm1
  divsd  %xmm0,%xmm1
  movsd  D109(%rip),%xmm0
  movapd %xmm1,%xmm6
  movapd %xmm1,%xmm4
  divsd  D102(%rip),%xmm4
  subsd  %xmm4,%xmm0
  mulsd  %xmm1,%xmm6
  movsd  D110(%rip),%xmm4
  mulsd  %xmm6,%xmm4
  divsd  D118(%rip),%xmm4
  subsd  %xmm4,%xmm0
  mulsd  %xmm6,%xmm1
  mulsd  D41(%rip),%xmm1
  divsd  D43(%rip),%xmm1
  subsd  %xmm1,%xmm0
  mulsd  %xmm5,%xmm0
  movsd  %xmm0,0x8(%rsp)
  jbe    L19
  subsd  D62(%rip),%xmm2
L19:
  mulsd  D16(%rip),%xmm3
  movsd  %xmm2,0x20(%rsp)
  movapd %xmm3,%xmm0
  call   <sin@plt>
  movsd  0x20(%rsp),%xmm2
  movq   %r14,%xmm1
  movapd %xmm0,%xmm3
  subsd  %xmm2,%xmm1
  comisd D147(%rip),%xmm1
  jbe    L16
  subsd  D62(%rip),%xmm1
L16:
  movsd  D82(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L29
  addsd  D62(%rip),%xmm1
L29:
  mulsd  0x8(%rsp),%xmm1
  movsd  D109(%rip),%xmm5
  addsd  0x10(%rsp),%xmm1
  addsd  %xmm3,%xmm5
  movsd  %xmm1,0x0(%rbp)
  movsd  D109(%rip),%xmm1
  movapd %xmm5,%xmm0
  subsd  %xmm3,%xmm1
  divsd  %xmm1,%xmm0
  call   <log@plt>
  movapd %xmm0,%xmm1
  movsd  0x8(%rsp),%xmm0
  divsd  D80(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  addsd  0x18(%rsp),%xmm0
  movsd  %xmm0,(%rbx)
  add    $0x40,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r14
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D147
type_infered: f64[2]
name: unpack_data
arguments: data_tag: D109
type_infered: f64
name: unpack_data
arguments: data_tag: D102
type_infered: f64
name: unpack_data
arguments: data_tag: D110
type_infered: f64
name: unpack_data
arguments: data_tag: D118
type_infered: f64
name: unpack_data
arguments: data_tag: D41
type_infered: f64
name: unpack_data
arguments: data_tag: D43
type_infered: f64
name: unpack_data
arguments: data_tag: D62
type_infered: byte[8]
name: unpack_data
arguments: data_tag: D16
type_infered: f64
name: unpack_data
arguments: data_tag: D82
type_infered: byte[8]
name: unpack_data
arguments: data_tag: D80
type_infered: f64

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

tool: D109: 1

tool: D102: 6

tool: D110: 17

tool: D118: 360

tool: D41: 67

tool: D43: 3024

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

tool: D16: 0.8

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

tool: D80: 1.6

assistant: ```c
void GPS_Math_Miller_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 R;
  double e2;
  double e4;
  double e6;
  double p2;
  double po2;
  double phis;
  double dlam;
  phi = GPS_Math_Deg_To_Rad(phi);
  lambda = GPS_Math_Deg_To_Rad(lambda);
  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;
  R = a * ((double)1.0 - e2 / (double)6.0 - (double)17.0 * e4 / (double)360.0 - (double)67.0 * e6 / (double)3024.0);
  if (M0 > 3.141592653589)
    M0 -= p2;
  phis = sin((double)0.8 * phi);
  dlam = lambda - M0;
  if (dlam > 3.141592653589)
    dlam -= p2;
  if (dlam < -3.141592653589)
    dlam += p2;
  *E = R * dlam + E0;
  *N = (R / (double)1.6) * log(((double)1.0 + phis) / ((double)1.0 - phis)) + N0;
  return;
}
```