user: 请从给定的汇编指令推导出C源代码:

```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 D113(%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  D5(%rip),%xmm0
  movapd %xmm1,%xmm6
  movapd %xmm1,%xmm4
  divsd  D37(%rip),%xmm4
  subsd  %xmm4,%xmm0
  mulsd  %xmm1,%xmm6
  movsd  D69(%rip),%xmm4
  mulsd  %xmm6,%xmm4
  divsd  D90(%rip),%xmm4
  subsd  %xmm4,%xmm0
  mulsd  %xmm6,%xmm1
  mulsd  D57(%rip),%xmm1
  divsd  D29(%rip),%xmm1
  subsd  %xmm1,%xmm0
  mulsd  %xmm5,%xmm0
  movsd  %xmm0,0x8(%rsp)
  jbe    L8
  subsd  D103(%rip),%xmm2
L8:
  mulsd  D97(%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 D113(%rip),%xmm1
  jbe    L18
  subsd  D103(%rip),%xmm1
L18:
  movsd  D21(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L24
  addsd  D103(%rip),%xmm1
L24:
  mulsd  0x8(%rsp),%xmm1
  movsd  D5(%rip),%xmm5
  addsd  0x10(%rsp),%xmm1
  addsd  %xmm3,%xmm5
  movsd  %xmm1,0x0(%rbp)
  movsd  D5(%rip),%xmm1
  movapd %xmm5,%xmm0
  subsd  %xmm3,%xmm1
  divsd  %xmm1,%xmm0
  call   <log@plt>
  movapd %xmm0,%xmm1
  movsd  0x8(%rsp),%xmm0
  divsd  D8(%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: retrieve_data
arguments: tag: D113
datatype: f64[2]
name: retrieve_data
arguments: tag: D5
datatype: f64
name: retrieve_data
arguments: tag: D37
datatype: f64
name: retrieve_data
arguments: tag: D69
datatype: f64
name: retrieve_data
arguments: tag: D90
datatype: f64
name: retrieve_data
arguments: tag: D57
datatype: f64
name: retrieve_data
arguments: tag: D29
datatype: f64
name: retrieve_data
arguments: tag: D103
datatype: byte[8]
name: retrieve_data
arguments: tag: D97
datatype: f64
name: retrieve_data
arguments: tag: D21
datatype: byte[8]
name: retrieve_data
arguments: tag: D8
datatype: f64

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

tool: D5: 1

tool: D37: 6

tool: D69: 17

tool: D90: 360

tool: D57: 67

tool: D29: 3024

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

tool: D97: 0.8

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

tool: D8: 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;
}
```