user: What would the C source look like for the assembly code provided here:

```asm
<GPS_Math_Swiss_LatLon_To_EN>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0xa8,%rsp
  movsd  %xmm0,0x28(%rsp)
  movapd %xmm3,%xmm0
  lea    0x98(%rsp),%r12
  lea    0x90(%rsp),%r13
  movsd  %xmm6,0x18(%rsp)
  movsd  %xmm5,0x38(%rsp)
  movsd  %xmm7,(%rsp)
  movsd  %xmm1,0x10(%rsp)
  movsd  %xmm4,0x30(%rsp)
  movsd  %xmm2,0x8(%rsp)
  call   <GPS_Math_Deg_To_Rad@plt>
  movsd  0x8(%rsp),%xmm2
  movsd  %xmm0,0x20(%rsp)
  movapd %xmm2,%xmm0
  call   <GPS_Math_Deg_To_Rad@plt>
  mov    %r13,%rsi
  mov    %r12,%rdi
  movq   %xmm0,%r14
  call   <sincos@plt>
  movsd  0x10(%rsp),%xmm1
  movsd  0x90(%rsp),%xmm2
  movsd  0x98(%rsp),%xmm4
  movapd %xmm1,%xmm0
  movsd  %xmm2,0x40(%rsp)
  movsd  %xmm4,0x8(%rsp)
  call   <GPS_Math_Deg_To_Rad@plt>
  movsd  0x28(%rsp),%xmm8
  movq   %xmm0,%r15
  movapd %xmm8,%xmm0
  call   <GPS_Math_Deg_To_Rad@plt>
  movsd  0x18(%rsp),%xmm5
  movsd  (%rsp),%xmm7
  mov    D102(%rip),%rax
  movsd  %xmm0,0x10(%rsp)
  mulsd  %xmm7,%xmm7
  movapd %xmm5,%xmm1
  mulsd  %xmm5,%xmm1
  movapd %xmm1,%xmm4
  subsd  %xmm7,%xmm4
  divsd  %xmm1,%xmm4
  movq   %rax,%xmm1
  movapd %xmm4,%xmm0
  movsd  %xmm4,0x28(%rsp)
  call   <pow@plt>
  movsd  0x40(%rsp),%xmm2
  movsd  D113(%rip),%xmm1
  movsd  %xmm0,(%rsp)
  movapd %xmm2,%xmm0
  call   <pow@plt>
  movsd  0x28(%rsp),%xmm4
  pxor   %xmm6,%xmm6
  movsd  D124(%rip),%xmm2
  movapd %xmm0,%xmm1
  mulsd  %xmm4,%xmm1
  subsd  %xmm4,%xmm2
  divsd  %xmm2,%xmm1
  addsd  D124(%rip),%xmm1
  ucomisd %xmm1,%xmm6
  ja     L0
  sqrtsd %xmm1,%xmm1
L12:
  movsd  0x8(%rsp),%xmm0
  movsd  %xmm1,0x40(%rsp)
  movsd  %xmm2,0x80(%rsp)
  movsd  %xmm4,0x88(%rsp)
  divsd  %xmm1,%xmm0
  call   <asin@plt>
  mov    %r13,%rsi
  mov    %r12,%rdi
  movsd  %xmm0,0x28(%rsp)
  call   <sincos@plt>
  movsd  0x28(%rsp),%xmm0
  mulsd  D102(%rip),%xmm0
  addsd  D126(%rip),%xmm0
  movsd  0x90(%rsp),%xmm6
  movsd  0x98(%rsp),%xmm5
  movsd  %xmm6,0x78(%rsp)
  movsd  %xmm5,0x70(%rsp)
  call   <tan@plt>
  call   <log@plt>
  movsd  D102(%rip),%xmm5
  movq   %r14,%xmm4
  movsd  %xmm0,0x68(%rsp)
  movsd  D126(%rip),%xmm0
  mulsd  %xmm4,%xmm5
  addsd  %xmm5,%xmm0
  call   <tan@plt>
  call   <log@plt>
  movsd  (%rsp),%xmm6
  movsd  0x8(%rsp),%xmm7
  movsd  D124(%rip),%xmm10
  movsd  %xmm0,0x60(%rsp)
  movsd  D124(%rip),%xmm0
  movsd  D102(%rip),%xmm9
  mulsd  %xmm6,%xmm7
  mulsd  %xmm6,%xmm9
  subsd  %xmm7,%xmm10
  addsd  %xmm7,%xmm0
  movsd  %xmm9,0x58(%rsp)
  divsd  %xmm10,%xmm0
  call   <log@plt>
  movsd  0x40(%rsp),%xmm1
  mov    %r13,%rsi
  mov    %r12,%rdi
  movsd  %xmm0,0x50(%rsp)
  movq   %r15,%xmm0
  subsd  0x20(%rsp),%xmm0
  movsd  %xmm1,0x48(%rsp)
  mulsd  %xmm1,%xmm0
  call   <sincos@plt>
  movsd  D102(%rip),%xmm5
  mulsd  0x10(%rsp),%xmm5
  movsd  0x98(%rsp),%xmm0
  movsd  0x90(%rsp),%xmm3
  movsd  %xmm0,0x28(%rsp)
  movsd  D126(%rip),%xmm0
  movsd  %xmm3,0x20(%rsp)
  addsd  %xmm5,%xmm0
  call   <tan@plt>
  call   <log@plt>
  movsd  %xmm0,0x40(%rsp)
  movsd  0x10(%rsp),%xmm0
  call   <sin@plt>
  movsd  (%rsp),%xmm6
  movsd  D124(%rip),%xmm12
  mulsd  %xmm0,%xmm6
  movapd %xmm6,%xmm10
  movsd  D124(%rip),%xmm6
  subsd  %xmm10,%xmm12
  addsd  %xmm10,%xmm6
  movapd %xmm6,%xmm0
  divsd  %xmm12,%xmm0
  call   <log@plt>
  movsd  0x58(%rsp),%xmm9
  movsd  0x50(%rsp),%xmm11
  movsd  0x60(%rsp),%xmm8
  movsd  0x48(%rsp),%xmm1
  movapd %xmm0,%xmm10
  mulsd  %xmm9,%xmm11
  movsd  0x68(%rsp),%xmm3
  movsd  0x40(%rsp),%xmm7
  mulsd  %xmm10,%xmm9
  subsd  %xmm11,%xmm8
  mulsd  %xmm1,%xmm8
  subsd  %xmm8,%xmm3
  movapd %xmm3,%xmm0
  movapd %xmm7,%xmm3
  subsd  %xmm9,%xmm3
  mulsd  %xmm3,%xmm1
  addsd  %xmm1,%xmm0
  call   <exp@plt>
  mov    %eax,%edi
  call   <atan@plt>
  subsd  D126(%rip),%xmm0
  mov    %r13,%rsi
  mov    %r12,%rdi
  addsd  %xmm0,%xmm0
  call   <sincos@plt>
  movsd  0x70(%rsp),%xmm5
  movsd  0x90(%rsp),%xmm7
  movsd  0x20(%rsp),%xmm1
  movsd  0x78(%rsp),%xmm6
  mulsd  %xmm7,%xmm5
  movsd  %xmm7,(%rsp)
  mulsd  0x98(%rsp),%xmm6
  mulsd  %xmm5,%xmm1
  movapd %xmm6,%xmm0
  subsd  %xmm1,%xmm0
  call   <asin@plt>
  movsd  %xmm0,0x10(%rsp)
  call   <cos@plt>
  movsd  (%rsp),%xmm7
  movapd %xmm0,%xmm1
  movsd  0x28(%rsp),%xmm0
  mulsd  %xmm7,%xmm0
  divsd  %xmm1,%xmm0
  call   <asin@plt>
  pxor   %xmm4,%xmm4
  movsd  0x10(%rsp),%xmm3
  movsd  0x80(%rsp),%xmm2
  movsd  %xmm0,(%rsp)
  ucomisd %xmm2,%xmm4
  movsd  0x88(%rsp),%xmm4
  ja     L7
  sqrtsd %xmm2,%xmm2
L17:
  movsd  0x8(%rsp),%xmm5
  mulsd  0x18(%rsp),%xmm2
  movsd  D124(%rip),%xmm1
  mulsd  D102(%rip),%xmm3
  mulsd  %xmm5,%xmm4
  movapd %xmm4,%xmm0
  mulsd  %xmm5,%xmm0
  subsd  %xmm0,%xmm1
  movsd  D126(%rip),%xmm0
  addsd  %xmm3,%xmm0
  divsd  %xmm1,%xmm2
  movsd  %xmm2,0x8(%rsp)
  call   <tan@plt>
  call   <log@plt>
  movsd  0x8(%rsp),%xmm2
  mulsd  %xmm2,%xmm0
  addsd  0x38(%rsp),%xmm0
  movsd  %xmm0,0x0(%rbp)
  movsd  (%rsp),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  0x30(%rsp),%xmm0
  movsd  %xmm0,(%rbx)
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L0:
  movapd %xmm1,%xmm0
  movsd  %xmm4,0x40(%rsp)
  movsd  %xmm2,0x28(%rsp)
  call   <sqrt@plt>
  movsd  0x40(%rsp),%xmm4
  movsd  0x28(%rsp),%xmm2
  movapd %xmm0,%xmm1
  jmp    L12
L7:
  movapd %xmm2,%xmm0
  movsd  %xmm3,0x20(%rsp)
  movsd  %xmm4,0x10(%rsp)
  call   <sqrt@plt>
  movsd  0x20(%rsp),%xmm3
  movsd  0x10(%rsp),%xmm4
  movapd %xmm0,%xmm2
  jmp    L17
```

tool_calls: name: read_data
arguments: label: D102
data_type: f64
name: read_data
arguments: label: D113
data_type: f64
name: read_data
arguments: label: D124
data_type: f64
name: read_data
arguments: label: D126
data_type: byte[8]

tool: D102: 0.5

tool: D113: 4

tool: D124: 1

tool: {"D126": [0x1e,0x26,0x44,0x54,0xfb,0x21,0xe9,0x3f]}

assistant: ```c
void GPS_Math_Swiss_LatLon_To_EN(double phi, double lambda, double *E, double *N, double phi0, double lambda0, double E0, double N0, double a, double b) {
  double a2;
  double b2;
  double esq;
  double e;
  double c;
  double ephi0p;
  double phip;
  double sphip;
  double phid;
  double slambda2;
  double lambda1;
  double lambda2;
  double K;
  double po4;
  double w;
  double R;
  lambda0 = GPS_Math_Deg_To_Rad(lambda0);
  phi0 = GPS_Math_Deg_To_Rad(phi0);
  lambda = GPS_Math_Deg_To_Rad(lambda);
  phi = GPS_Math_Deg_To_Rad(phi);
  po4 = 3.141592653589 / (double)4.0;
  a2 = a * a;
  b2 = b * b;
  esq = (a2 - b2) / a2;
  e = pow(esq, (double)0.5);
  c = sqrt(1 + ((esq * pow(cos(phi0), (double)4.)) / ((double)1. - esq)));
  ephi0p = asin(sin(phi0) / c);
  K = log(tan(po4 + ephi0p / (double)2.)) - c * (log(tan(po4 + phi0 / (double)2.)) - e / (double)2. * log(((double)1. + e * sin(phi0)) / ((double)1. - e * sin(phi0))));
  lambda1 = c * (lambda - lambda0);
  w = c * (log(tan(po4 + phi / (double)2.)) - e / (double)2. * log(((double)1. + e * sin(phi)) / ((double)1. - e * sin(phi)))) + K;
  phip = (double)2. * (atan(exp(w)) - po4);
  sphip = cos(ephi0p) * sin(phip) - sin(ephi0p) * cos(phip) * cos(lambda1);
  phid = asin(sphip);
  slambda2 = cos(phip) * sin(lambda1) / cos(phid);
  lambda2 = asin(slambda2);
  R = a * sqrt((double)1. - esq) / ((double)1. - esq * sin(phi0) * sin(phi0));
  *N = R * log(tan(po4 + phid / (double)2.)) + N0;
  *E = R * lambda2 + E0;
  return;
}
```