user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<solar_coords_and_times>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  movq   %xmm0,%r14
  mov    %rdi,%r12
  mov    %rsi,%rbx
  mov    %rdx,%rbp
  movapd %xmm0,%xmm2
  subsd  D182(%rip),%xmm2
  movsd  %xmm2,0x8(%rsp)
  movapd %xmm2,%xmm0
  mulsd  D72(%rip),%xmm0
  addsd  D21(%rip),%xmm0
  mulsd  D36(%rip),%xmm0
  mov    $0x6,%edi
  call   <fmod@plt>
  movq   %xmm0,%r13
  movsd  0x8(%rsp),%xmm0
  mulsd  D190(%rip),%xmm0
  addsd  D47(%rip),%xmm0
  mulsd  D36(%rip),%xmm0
  mov    $0x6,%edi
  call   <fmod@plt>
  movsd  %xmm0,(%rsp)
  cvttsd2si %xmm0,%edi
  call   <sin@plt>
  movq   %xmm0,%r15
  movsd  (%rsp),%xmm4
  addsd  %xmm4,%xmm4
  cvttsd2si %xmm4,%edi
  call   <sin@plt>
  movq   %r15,%xmm1
  mulsd  D121(%rip),%xmm1
  mulsd  D166(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movsd  %xmm1,0x10(%rsp)
  movsd  D36(%rip),%xmm6
  mulsd  %xmm1,%xmm6
  movq   %r13,%xmm5
  addsd  %xmm6,%xmm5
  movsd  %xmm5,(%rsp)
  movsd  0x8(%rsp),%xmm0
  mulsd  D219(%rip),%xmm0
  movsd  D95(%rip),%xmm1
  subsd  %xmm0,%xmm1
  mulsd  D36(%rip),%xmm1
  movsd  %xmm1,0x18(%rsp)
  movapd %xmm1,%xmm0
  call   <cos@plt>
  movsd  %xmm0,0x8(%rsp)
  movsd  (%rsp),%xmm0
  call   <cos@plt>
  movapd %xmm0,%xmm7
  mulsd  0x8(%rsp),%xmm7
  movq   %xmm7,%r15
  cvttsd2si (%rsp),%r13d
  mov    %r13d,%edi
  call   <sin@plt>
  mulsd  0x8(%rsp),%xmm0
  movq   %r15,%xmm1
  call   <atan2@plt>
  movq   %xmm0,%r15
  pxor   %xmm0,%xmm0
  movq   %r15,%xmm7
  comisd %xmm7,%xmm0
  jae    L18
L12:
  cvttsd2si 0x18(%rsp),%edi
  call   <sin@plt>
  movsd  %xmm0,0x8(%rsp)
  mov    %r13d,%edi
  call   <sin@plt>
  mulsd  0x8(%rsp),%xmm0
  call   <asin@plt>
  movsd  %xmm0,(%r12)
  movq   %r14,%xmm0
  call   <calc_gmst@plt>
  subsd  D2(%rip),%xmm0
  movq   %r15,%xmm1
  divsd  D104(%rip),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rbx)
  mov    $0x1,%edi
  call   <fmod@plt>
  pxor   %xmm1,%xmm1
  comisd %xmm0,%xmm1
  ja     L46
  movsd  %xmm0,(%rbx)
L6:
  movsd  (%rsp),%xmm3
  movapd %xmm3,%xmm0
  addsd  %xmm3,%xmm0
  cvttsd2si %xmm0,%edi
  call   <sin@plt>
  mulsd  D165(%rip),%xmm0
  movapd %xmm0,%xmm5
  subsd  0x10(%rsp),%xmm5
  movq   %xmm5,%r12
  movsd  (%rsp),%xmm0
  mulsd  D195(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <sin@plt>
  movapd %xmm0,%xmm1
  mulsd  D180(%rip),%xmm1
  movq   %r12,%xmm0
  subsd  %xmm1,%xmm0
  divsd  D196(%rip),%xmm0
  addsd  (%rbx),%xmm0
  movsd  %xmm0,0x0(%rbp)
  mov    $0x1,%edi
  call   <fmod@plt>
  pxor   %xmm1,%xmm1
  comisd %xmm0,%xmm1
  ja     L17
  movsd  %xmm0,0x0(%rbp)
L11:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L18:
  addsd  D104(%rip),%xmm7
  movq   %xmm7,%r15
  jmp    L12
L46:
  addsd  D35(%rip),%xmm0
  movsd  %xmm0,(%rbx)
  jmp    L6
L17:
  addsd  D35(%rip),%xmm0
  movsd  %xmm0,0x0(%rbp)
  jmp    L11
```

tool_calls: name: retrieve_data
arguments: label: D182
type_infered: f64
name: retrieve_data
arguments: label: D72
type_infered: byte[8]
name: retrieve_data
arguments: label: D21
type_infered: f64
name: retrieve_data
arguments: label: D36
type_infered: byte[8]
name: retrieve_data
arguments: label: D190
type_infered: byte[8]
name: retrieve_data
arguments: label: D47
type_infered: f64
name: retrieve_data
arguments: label: D121
type_infered: f64
name: retrieve_data
arguments: label: D166
type_infered: byte[8]
name: retrieve_data
arguments: label: D219
type_infered: byte[8]
name: retrieve_data
arguments: label: D95
type_infered: f64
name: retrieve_data
arguments: label: D2
type_infered: f32[2]
name: retrieve_data
arguments: label: D104
type_infered: byte[8]
name: retrieve_data
arguments: label: D165
type_infered: f64
name: retrieve_data
arguments: label: D195
type_infered: f32[2]
name: retrieve_data
arguments: label: D180
type_infered: byte[8]
name: retrieve_data
arguments: label: D196
type_infered: f64
name: retrieve_data
arguments: label: D35
type_infered: f64

tool: D182: 2451545

tool: {"D72": [0xd4,0x65,0x8c,0x6a,0x6c,0x8a,0xef,0x3f]}

tool: D21: 280.466

tool: {"D36": [0x39,0x9d,0x52,0xa2,0x46,0xdf,0x91,0x3f]}

tool: {"D190": [0x72,0xb0,0xed,0xa3,0x09,0x8a,0xef,0x3f]}

tool: D47: 357.528

tool: D121: 1.915

tool: {"D166": [0x7b,0x14,0xae,0x47,0xe1,0x7a,0x94,0x3f]}

tool: {"D219": [0x48,0xaf,0xbc,0x9a,0xf2,0xd7,0x9a,0x3e]}

tool: D95: 23.44

tool: {"D2": [0.0,1.75]}

tool: {"D104": [0x18,0x2d,0x44,0x54,0xfb,0x21,0x19,0x40]}

tool: D165: 2.466

tool: {"D195": [0.0,2.25]}

tool: {"D180": [0x89,0x41,0x60,0xe5,0xd0,0x22,0xab,0x3f]}

tool: D196: 360

tool: D35: 1

assistant: ```c
void solar_coords_and_times(double jtime, double *delta, double *gw_mean_sol_time, double *gw_appar_sol_time) {
  double a;
  double jdelta;
  double L;
  double g;
  double lambda;
  double epsilon;
  double alpha;
  double gmst;
  double E;
  jdelta = jtime - 2451545.;
  L = (280.466 + .9856474 * jdelta) * (3.14159265358979323846264338327 / 180.0);
  L = fmod(L, (3.14159265358979323846264338327 * 2.));
  g = (357.528 + .9856003 * jdelta) * (3.14159265358979323846264338327 / 180.0);
  g = fmod(g, (3.14159265358979323846264338327 * 2.));
  a = 1.915 * sin(g) + .020 * sin(2.0 * g);
  lambda = L + a * (3.14159265358979323846264338327 / 180.0);
  epsilon = (23.44 - .0000004 * jdelta) * (3.14159265358979323846264338327 / 180.0);
  alpha = atan2(cos(epsilon) * sin(lambda), cos(epsilon) * cos(lambda));
  if (alpha <= 0.)
    alpha += (3.14159265358979323846264338327 * 2.);
  *delta = asin(sin(epsilon) * sin(lambda));
  gmst = calc_gmst(jtime);
  *gw_mean_sol_time = (gmst - .5 - alpha / (3.14159265358979323846264338327 * 2.));
  if ((*gw_mean_sol_time = fmod(*gw_mean_sol_time, 1.)) < 0.)
    *gw_mean_sol_time += 1.;
  E = (-a + 2.466 * sin(2 * lambda) - .053 * sin(4 * lambda)) / 360.;
  *gw_appar_sol_time = *gw_mean_sol_time + E;
  if ((*gw_appar_sol_time = fmod(*gw_appar_sol_time, 1.)) < 0.)
    *gw_appar_sol_time += 1.;
}
```