user: Demonstrate the C code that generates the assembly output below:

```asm
<gsw_c_from_sp>:
  endbr64
  sub    $0x68,%rsp
  movsd  D872(%rip),%xmm5
  movapd %xmm0,%xmm7
  pxor   %xmm6,%xmm6
  movsd  D969(%rip),%xmm0
  ucomisd %xmm7,%xmm6
  movsd  D1559(%rip),%xmm9
  mulsd  %xmm1,%xmm5
  movapd %xmm5,%xmm8
  subsd  D274(%rip),%xmm8
  mulsd  %xmm8,%xmm0
  addsd  %xmm9,%xmm0
  divsd  %xmm0,%xmm8
  ja     L122
  movapd %xmm7,%xmm0
  sqrtsd %xmm0,%xmm0
L112:
  movsd  D808(%rip),%xmm6
  comisd %xmm6,%xmm7
  jbe    L177
  movsd  D1681(%rip),%xmm4
  movsd  D236(%rip),%xmm3
  movapd %xmm0,%xmm10
  mulsd  %xmm0,%xmm10
  mulsd  %xmm5,%xmm4
  mulsd  %xmm0,%xmm3
  subsd  D1526(%rip),%xmm3
  addsd  %xmm4,%xmm3
  movsd  D1291(%rip),%xmm4
  mulsd  %xmm0,%xmm4
  addsd  D159(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  mulsd  %xmm0,%xmm4
  addsd  D1601(%rip),%xmm4
  addsd  %xmm4,%xmm3
  movsd  D134(%rip),%xmm4
  mulsd  %xmm0,%xmm4
  addsd  D1451(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  mulsd  %xmm10,%xmm4
  movsd  D1739(%rip),%xmm10
  subsd  D145(%rip),%xmm4
  mulsd  %xmm0,%xmm10
  addsd  %xmm10,%xmm4
  movsd  D1776(%rip),%xmm10
  mulsd  %xmm0,%xmm10
  addsd  %xmm4,%xmm3
  movsd  D1813(%rip),%xmm4
  mulsd  %xmm5,%xmm4
  subsd  D798(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  addsd  D1284(%rip),%xmm3
  addsd  %xmm10,%xmm4
  movsd  D1491(%rip),%xmm10
  mulsd  %xmm5,%xmm3
  mulsd  %xmm5,%xmm10
  addsd  D1346(%rip),%xmm10
  mulsd  %xmm0,%xmm4
  addsd  %xmm10,%xmm4
  movsd  D140(%rip),%xmm10
  mulsd  %xmm5,%xmm10
  subsd  D1518(%rip),%xmm10
  mulsd  %xmm0,%xmm4
  addsd  %xmm10,%xmm4
  movsd  D804(%rip),%xmm10
  mulsd  %xmm5,%xmm10
  addsd  D599(%rip),%xmm10
  mulsd  %xmm0,%xmm4
  addsd  %xmm10,%xmm4
  mulsd  %xmm0,%xmm4
  addsd  D1329(%rip),%xmm4
  addsd  %xmm4,%xmm3
L177:
  movsd  D478(%rip),%xmm10
  comisd %xmm10,%xmm7
  jb     L167
  comisd %xmm7,%xmm6
  ja     L171
L167:
  movsd  D1228(%rip),%xmm6
  comisd %xmm6,%xmm7
  jb     L89
  comisd %xmm7,%xmm10
  ja     L27
L89:
  comisd %xmm7,%xmm6
  jbe    L75
  movsd  D1504(%rip),%xmm4
  movsd  D305(%rip),%xmm3
  movapd %xmm0,%xmm6
  mulsd  %xmm0,%xmm6
  mulsd  %xmm5,%xmm4
  mulsd  %xmm0,%xmm3
  subsd  D923(%rip),%xmm3
  addsd  %xmm4,%xmm3
  movsd  D71(%rip),%xmm4
  mulsd  %xmm0,%xmm4
  subsd  D830(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  mulsd  %xmm0,%xmm4
  addsd  D1615(%rip),%xmm4
  addsd  %xmm4,%xmm3
  movsd  D1683(%rip),%xmm4
  mulsd  %xmm0,%xmm4
  subsd  D759(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  mulsd  %xmm6,%xmm4
  movsd  D1264(%rip),%xmm6
  subsd  D1338(%rip),%xmm4
  mulsd  %xmm0,%xmm6
  addsd  %xmm6,%xmm4
  movsd  D988(%rip),%xmm6
  mulsd  %xmm0,%xmm6
  addsd  %xmm4,%xmm3
  movsd  D730(%rip),%xmm4
  mulsd  %xmm5,%xmm4
  addsd  D1065(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  addsd  D363(%rip),%xmm3
  addsd  %xmm6,%xmm4
  movsd  D1516(%rip),%xmm6
  mulsd  %xmm5,%xmm3
  mulsd  %xmm5,%xmm6
  mulsd  %xmm0,%xmm4
  subsd  D379(%rip),%xmm6
  addsd  %xmm6,%xmm4
  movsd  D879(%rip),%xmm6
  mulsd  %xmm5,%xmm6
  mulsd  %xmm0,%xmm4
  addsd  D1122(%rip),%xmm6
  addsd  %xmm6,%xmm4
  movsd  D1500(%rip),%xmm6
  mulsd  %xmm5,%xmm6
  mulsd  %xmm0,%xmm4
  addsd  D237(%rip),%xmm6
  addsd  %xmm6,%xmm4
  mulsd  %xmm4,%xmm0
  addsd  D1270(%rip),%xmm0
  addsd  %xmm0,%xmm3
L75:
  movsd  D1323(%rip),%xmm4
  movsd  D716(%rip),%xmm0
  movsd  D1835(%rip),%xmm10
  movsd  D839(%rip),%xmm11
  mulsd  %xmm3,%xmm4
  addsd  D903(%rip),%xmm4
  mulsd  %xmm3,%xmm0
  subsd  D241(%rip),%xmm0
  comisd %xmm7,%xmm10
  mulsd  %xmm3,%xmm4
  subsd  D849(%rip),%xmm4
  mulsd  %xmm3,%xmm0
  addsd  D1100(%rip),%xmm0
  mulsd  %xmm3,%xmm4
  subsd  D1135(%rip),%xmm4
  mulsd  %xmm3,%xmm0
  addsd  D153(%rip),%xmm0
  mulsd  %xmm3,%xmm4
  subsd  D1674(%rip),%xmm4
  mulsd  %xmm3,%xmm0
  subsd  D1311(%rip),%xmm0
  mulsd  %xmm8,%xmm4
  addsd  %xmm0,%xmm4
  ja     L38
L49:
  movsd  D862(%rip),%xmm0
  movsd  D219(%rip),%xmm6
  mulsd  %xmm3,%xmm0
  addsd  D28(%rip),%xmm0
  mulsd  %xmm3,%xmm6
  subsd  D1507(%rip),%xmm6
  mulsd  %xmm3,%xmm0
  subsd  D531(%rip),%xmm0
  mulsd  %xmm3,%xmm6
  addsd  D1485(%rip),%xmm6
  mulsd  %xmm3,%xmm0
  subsd  D1712(%rip),%xmm0
  mulsd  %xmm3,%xmm6
  addsd  D1026(%rip),%xmm6
  mulsd  %xmm3,%xmm0
  subsd  D1674(%rip),%xmm0
  mulsd  %xmm3,%xmm6
  subsd  D1311(%rip),%xmm6
  mulsd  %xmm3,%xmm0
  mulsd  %xmm3,%xmm6
  addsd  D953(%rip),%xmm6
  addsd  %xmm11,%xmm0
  mulsd  %xmm8,%xmm0
  addsd  %xmm6,%xmm0
  comisd %xmm0,%xmm10
  ja     L124
L156:
  movapd %xmm0,%xmm15
  comisd %xmm0,%xmm10
  movapd %xmm3,%xmm6
  subsd  %xmm7,%xmm15
  movapd %xmm15,%xmm12
  divsd  %xmm4,%xmm12
  movsd  D1323(%rip),%xmm4
  subsd  %xmm12,%xmm6
  movsd  D716(%rip),%xmm12
  addsd  %xmm3,%xmm6
  mulsd  D667(%rip),%xmm6
  mulsd  %xmm6,%xmm4
  addsd  D903(%rip),%xmm4
  mulsd  %xmm6,%xmm12
  subsd  D241(%rip),%xmm12
  mulsd  %xmm6,%xmm4
  subsd  D849(%rip),%xmm4
  mulsd  %xmm6,%xmm12
  addsd  D1100(%rip),%xmm12
  mulsd  %xmm6,%xmm4
  subsd  D1135(%rip),%xmm4
  mulsd  %xmm6,%xmm12
  addsd  D153(%rip),%xmm12
  mulsd  %xmm6,%xmm4
  subsd  D1674(%rip),%xmm4
  mulsd  %xmm6,%xmm12
  subsd  D1311(%rip),%xmm12
  mulsd  %xmm8,%xmm4
  addsd  %xmm12,%xmm4
  ja     L52
L195:
  movapd %xmm15,%xmm0
  movsd  D28(%rip),%xmm6
  divsd  %xmm4,%xmm0
  subsd  %xmm0,%xmm3
  movsd  D862(%rip),%xmm0
  mulsd  %xmm3,%xmm0
  addsd  %xmm0,%xmm6
  movsd  D219(%rip),%xmm0
  mulsd  %xmm3,%xmm0
  mulsd  %xmm3,%xmm6
  subsd  D1507(%rip),%xmm0
  subsd  D531(%rip),%xmm6
  mulsd  %xmm3,%xmm0
  mulsd  %xmm3,%xmm6
  addsd  D1485(%rip),%xmm0
  subsd  D1712(%rip),%xmm6
  mulsd  %xmm3,%xmm0
  mulsd  %xmm3,%xmm6
  addsd  D1026(%rip),%xmm0
  subsd  D1674(%rip),%xmm6
  mulsd  %xmm3,%xmm0
  mulsd  %xmm3,%xmm6
  subsd  D1311(%rip),%xmm0
  mulsd  %xmm3,%xmm0
  addsd  D953(%rip),%xmm0
  addsd  %xmm11,%xmm6
  mulsd  %xmm8,%xmm6
  addsd  %xmm6,%xmm0
  comisd %xmm0,%xmm10
  ja     L193
L26:
  subsd  %xmm7,%xmm0
  movsd  D1552(%rip),%xmm6
  pxor   %xmm7,%xmm7
  movsd  D1755(%rip),%xmm1
  mulsd  %xmm5,%xmm6
  divsd  %xmm4,%xmm0
  addsd  D611(%rip),%xmm6
  mulsd  %xmm5,%xmm1
  addsd  D1092(%rip),%xmm1
  mulsd  %xmm5,%xmm6
  addsd  %xmm9,%xmm6
  movapd %xmm6,%xmm4
  subsd  %xmm0,%xmm3
  movsd  D448(%rip),%xmm0
  mulsd  %xmm5,%xmm0
  subsd  D655(%rip),%xmm0
  mulsd  %xmm3,%xmm3
  mulsd  %xmm5,%xmm0
  addsd  D676(%rip),%xmm0
  mulsd  %xmm5,%xmm0
  addsd  D934(%rip),%xmm0
  mulsd  %xmm0,%xmm5
  movapd %xmm1,%xmm0
  addsd  D444(%rip),%xmm5
  mulsd  %xmm5,%xmm0
  mulsd  %xmm3,%xmm0
  mulsd  %xmm5,%xmm3
  subsd  %xmm0,%xmm4
  movsd  D638(%rip),%xmm0
  mulsd  %xmm1,%xmm3
  mulsd  %xmm2,%xmm0
  subsd  D177(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  D1035(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  movapd %xmm4,%xmm2
  mulsd  %xmm4,%xmm2
  addsd  %xmm6,%xmm0
  mulsd  %xmm3,%xmm0
  mulsd  D557(%rip),%xmm0
  addsd  %xmm2,%xmm0
  ucomisd %xmm0,%xmm7
  ja     L116
  sqrtsd %xmm0,%xmm0
L94:
  subsd  %xmm4,%xmm0
  mulsd  D667(%rip),%xmm0
  divsd  %xmm1,%xmm0
  mulsd  D14(%rip),%xmm0
  add    $0x68,%rsp
  ret
  nopl   0x0(%rax)
L27:
  movsd  D1147(%rip),%xmm4
  movsd  D1212(%rip),%xmm3
  movapd %xmm0,%xmm10
  mulsd  %xmm0,%xmm10
  mulsd  %xmm5,%xmm4
  mulsd  %xmm0,%xmm3
  subsd  D946(%rip),%xmm3
  addsd  %xmm4,%xmm3
  movsd  D1692(%rip),%xmm4
  mulsd  %xmm0,%xmm4
  addsd  D188(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  mulsd  %xmm0,%xmm4
  addsd  D941(%rip),%xmm4
  addsd  %xmm4,%xmm3
  movsd  D510(%rip),%xmm4
  mulsd  %xmm0,%xmm4
  subsd  D222(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  mulsd  %xmm10,%xmm4
  movsd  D1085(%rip),%xmm10
  subsd  D777(%rip),%xmm4
  mulsd  %xmm0,%xmm10
  addsd  %xmm10,%xmm4
  movsd  D728(%rip),%xmm10
  mulsd  %xmm0,%xmm10
  addsd  %xmm4,%xmm3
  movsd  D1253(%rip),%xmm4
  mulsd  %xmm5,%xmm4
  addsd  D948(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  addsd  D828(%rip),%xmm3
  addsd  %xmm10,%xmm4
  movsd  D827(%rip),%xmm10
  mulsd  %xmm5,%xmm3
  mulsd  %xmm5,%xmm10
  subsd  D293(%rip),%xmm10
  mulsd  %xmm0,%xmm4
  addsd  %xmm10,%xmm4
  movsd  D1481(%rip),%xmm10
  mulsd  %xmm5,%xmm10
  addsd  D1276(%rip),%xmm10
  mulsd  %xmm0,%xmm4
  addsd  %xmm10,%xmm4
  movsd  D1517(%rip),%xmm10
  mulsd  %xmm5,%xmm10
  addsd  D509(%rip),%xmm10
  mulsd  %xmm0,%xmm4
  addsd  %xmm10,%xmm4
  mulsd  %xmm0,%xmm4
  addsd  D196(%rip),%xmm4
  addsd  %xmm4,%xmm3
  jmp    L89
  xchg   %ax,%ax
L171:
  movsd  D384(%rip),%xmm4
  movsd  D175(%rip),%xmm3
  movapd %xmm0,%xmm6
  mulsd  %xmm0,%xmm6
  mulsd  %xmm5,%xmm4
  mulsd  %xmm0,%xmm3
  subsd  D1223(%rip),%xmm3
  addsd  %xmm4,%xmm3
  movsd  D1616(%rip),%xmm4
  mulsd  %xmm0,%xmm4
  addsd  D1554(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  mulsd  %xmm0,%xmm4
  addsd  D1657(%rip),%xmm4
  addsd  %xmm4,%xmm3
  movsd  D493(%rip),%xmm4
  mulsd  %xmm0,%xmm4
  addsd  D545(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  mulsd  %xmm6,%xmm4
  movsd  D856(%rip),%xmm6
  subsd  D662(%rip),%xmm4
  mulsd  %xmm0,%xmm6
  addsd  %xmm6,%xmm4
  movsd  D1509(%rip),%xmm6
  mulsd  %xmm0,%xmm6
  addsd  %xmm4,%xmm3
  movsd  D737(%rip),%xmm4
  mulsd  %xmm5,%xmm4
  subsd  D656(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  subsd  D1463(%rip),%xmm3
  addsd  %xmm6,%xmm4
  movsd  D1562(%rip),%xmm6
  mulsd  %xmm5,%xmm3
  mulsd  %xmm5,%xmm6
  mulsd  %xmm0,%xmm4
  addsd  D1090(%rip),%xmm6
  addsd  %xmm6,%xmm4
  movsd  D69(%rip),%xmm6
  mulsd  %xmm5,%xmm6
  mulsd  %xmm0,%xmm4
  subsd  D1576(%rip),%xmm6
  addsd  %xmm6,%xmm4
  movsd  D487(%rip),%xmm6
  mulsd  %xmm5,%xmm6
  mulsd  %xmm0,%xmm4
  addsd  D1275(%rip),%xmm6
  addsd  %xmm6,%xmm4
  mulsd  %xmm0,%xmm4
  addsd  D1240(%rip),%xmm4
  addsd  %xmm4,%xmm3
  jmp    L167
  nopl   0x0(%rax)
L193:
  movapd %xmm3,%xmm6
  mov    $0x1,%eax
  movsd  D228(%rip),%xmm10
  movsd  %xmm2,0x30(%rsp)
  mulsd  %xmm3,%xmm6
  movsd  %xmm7,0x28(%rsp)
  mulsd  D1321(%rip),%xmm6
  movsd  %xmm5,0x20(%rsp)
  mulsd  %xmm11,%xmm8
  movsd  %xmm4,0x18(%rsp)
  movsd  %xmm3,0x10(%rsp)
  addsd  %xmm6,%xmm10
  mulsd  %xmm6,%xmm10
  movsd  D953(%rip),%xmm6
  addsd  %xmm9,%xmm10
  divsd  %xmm10,%xmm6
  movapd %xmm3,%xmm10
  mulsd  D1250(%rip),%xmm10
  subsd  %xmm6,%xmm0
  movapd %xmm10,%xmm6
  addsd  %xmm9,%xmm6
  mulsd  %xmm10,%xmm6
  addsd  %xmm9,%xmm6
  mulsd  %xmm10,%xmm6
  addsd  %xmm9,%xmm6
  divsd  %xmm6,%xmm8
  subsd  %xmm8,%xmm0
  movsd  %xmm0,0x8(%rsp)
  movapd %xmm1,%xmm0
  call   <gsw_hill_ratio_at_sp2@plt>
  pxor   %xmm0,%xmm0
  movsd  0x30(%rsp),%xmm2
  movsd  0x28(%rsp),%xmm7
  cvtsi2sd %eax,%xmm0
  mov    D1559(%rip),%rax
  mulsd  0x8(%rsp),%xmm0
  movsd  0x20(%rsp),%xmm5
  movsd  0x18(%rsp),%xmm4
  movsd  0x10(%rsp),%xmm3
  movq   %rax,%xmm9
  jmp    L26
  nopl   0x0(%rax,%rax,1)
L52:
  movapd %xmm6,%xmm0
  mov    $0x1,%eax
  movsd  D228(%rip),%xmm13
  movsd  D1250(%rip),%xmm14
  mulsd  %xmm6,%xmm0
  movsd  %xmm2,0x48(%rsp)
  mulsd  D1321(%rip),%xmm0
  movsd  %xmm7,0x40(%rsp)
  mulsd  %xmm6,%xmm14
  movsd  %xmm5,0x38(%rsp)
  mulsd  D606(%rip),%xmm6
  movsd  %xmm3,0x30(%rsp)
  movsd  %xmm15,0x28(%rsp)
  movsd  %xmm8,0x20(%rsp)
  addsd  %xmm0,%xmm13
  movsd  %xmm11,0x18(%rsp)
  movapd %xmm14,%xmm12
  movsd  %xmm1,0x10(%rsp)
  addsd  %xmm9,%xmm12
  mulsd  %xmm0,%xmm13
  addsd  %xmm0,%xmm0
  addsd  D228(%rip),%xmm0
  mulsd  %xmm14,%xmm12
  mulsd  %xmm6,%xmm0
  movapd %xmm8,%xmm6
  mulsd  %xmm11,%xmm6
  addsd  %xmm9,%xmm13
  addsd  %xmm9,%xmm12
  mulsd  %xmm13,%xmm13
  mulsd  %xmm14,%xmm12
  divsd  %xmm13,%xmm0
  addsd  %xmm9,%xmm12
  mulsd  %xmm12,%xmm12
  addsd  %xmm4,%xmm0
  movsd  D1374(%rip),%xmm4
  mulsd  %xmm14,%xmm4
  addsd  D1473(%rip),%xmm4
  mulsd  %xmm14,%xmm4
  addsd  D1250(%rip),%xmm4
  mulsd  %xmm6,%xmm4
  divsd  %xmm12,%xmm4
  addsd  %xmm0,%xmm4
  movapd %xmm1,%xmm0
  movsd  %xmm4,0x8(%rsp)
  call   <gsw_hill_ratio_at_sp2@plt>
  pxor   %xmm4,%xmm4
  movsd  0x48(%rsp),%xmm2
  movsd  0x40(%rsp),%xmm7
  cvtsi2sd %eax,%xmm4
  mov    D1835(%rip),%rax
  mulsd  0x8(%rsp),%xmm4
  movsd  0x38(%rsp),%xmm5
  movsd  0x30(%rsp),%xmm3
  movq   %rax,%xmm10
  mov    D1559(%rip),%rax
  movsd  0x28(%rsp),%xmm15
  movsd  0x20(%rsp),%xmm8
  movsd  0x18(%rsp),%xmm11
  movsd  0x10(%rsp),%xmm1
  movq   %rax,%xmm9
  jmp    L195
  nopl   (%rax)
L124:
  movapd %xmm3,%xmm12
  movsd  D228(%rip),%xmm6
  mov    $0x1,%eax
  movsd  %xmm2,0x48(%rsp)
  mulsd  %xmm3,%xmm12
  movsd  %xmm7,0x40(%rsp)
  mulsd  D1321(%rip),%xmm12
  movsd  %xmm5,0x38(%rsp)
  movsd  %xmm4,0x30(%rsp)
  movsd  %xmm3,0x28(%rsp)
  movsd  %xmm8,0x20(%rsp)
  movsd  %xmm11,0x18(%rsp)
  addsd  %xmm12,%xmm6
  movsd  %xmm1,0x10(%rsp)
  mulsd  %xmm12,%xmm6
  movsd  D953(%rip),%xmm12
  addsd  %xmm9,%xmm6
  divsd  %xmm6,%xmm12
  subsd  %xmm12,%xmm0
  movapd %xmm3,%xmm12
  mulsd  D1250(%rip),%xmm12
  movapd %xmm12,%xmm6
  addsd  %xmm9,%xmm6
  mulsd  %xmm12,%xmm6
  addsd  %xmm9,%xmm6
  mulsd  %xmm12,%xmm6
  movapd %xmm8,%xmm12
  mulsd  %xmm11,%xmm12
  addsd  %xmm9,%xmm6
  divsd  %xmm6,%xmm12
  subsd  %xmm12,%xmm0
  movsd  %xmm0,0x8(%rsp)
  movapd %xmm1,%xmm0
  call   <gsw_hill_ratio_at_sp2@plt>
  pxor   %xmm0,%xmm0
  movsd  0x48(%rsp),%xmm2
  movsd  0x40(%rsp),%xmm7
  cvtsi2sd %eax,%xmm0
  mov    D1835(%rip),%rax
  mulsd  0x8(%rsp),%xmm0
  movsd  0x38(%rsp),%xmm5
  movsd  0x30(%rsp),%xmm4
  movq   %rax,%xmm10
  mov    D1559(%rip),%rax
  movsd  0x28(%rsp),%xmm3
  movsd  0x20(%rsp),%xmm8
  movsd  0x18(%rsp),%xmm11
  movsd  0x10(%rsp),%xmm1
  movq   %rax,%xmm9
  jmp    L156
  nopl   0x0(%rax,%rax,1)
L38:
  movapd %xmm3,%xmm6
  movapd %xmm1,%xmm0
  mov    $0x1,%eax
  movsd  D1250(%rip),%xmm11
  mulsd  %xmm3,%xmm6
  movsd  %xmm2,0x58(%rsp)
  movsd  D228(%rip),%xmm13
  mulsd  %xmm3,%xmm11
  movsd  %xmm7,0x50(%rsp)
  mulsd  D1321(%rip),%xmm6
  movsd  %xmm8,0x48(%rsp)
  movsd  %xmm5,0x40(%rsp)
  movsd  %xmm4,0x38(%rsp)
  movsd  %xmm3,0x30(%rsp)
  movapd %xmm11,%xmm12
  movsd  %xmm11,0x18(%rsp)
  addsd  %xmm9,%xmm12
  addsd  %xmm6,%xmm13
  movsd  %xmm6,0x28(%rsp)
  movsd  %xmm1,0x8(%rsp)
  mulsd  %xmm11,%xmm12
  mulsd  %xmm6,%xmm13
  addsd  %xmm9,%xmm12
  addsd  %xmm9,%xmm13
  mulsd  %xmm11,%xmm12
  movsd  %xmm13,0x20(%rsp)
  addsd  %xmm9,%xmm12
  movsd  %xmm12,0x10(%rsp)
  call   <gsw_hill_ratio_at_sp2@plt>
  movsd  0x30(%rsp),%xmm3
  movsd  D606(%rip),%xmm0
  movsd  0x28(%rsp),%xmm6
  movsd  0x20(%rsp),%xmm13
  mulsd  %xmm3,%xmm0
  movsd  0x18(%rsp),%xmm11
  movsd  0x38(%rsp),%xmm4
  addsd  %xmm6,%xmm6
  addsd  D228(%rip),%xmm6
  mulsd  %xmm13,%xmm13
  movsd  0x48(%rsp),%xmm8
  movsd  0x10(%rsp),%xmm12
  movsd  0x58(%rsp),%xmm2
  movsd  0x50(%rsp),%xmm7
  movsd  0x40(%rsp),%xmm5
  mulsd  %xmm12,%xmm12
  movsd  0x8(%rsp),%xmm1
  mulsd  %xmm0,%xmm6
  movsd  D1374(%rip),%xmm0
  mulsd  %xmm11,%xmm0
  addsd  D1473(%rip),%xmm0
  divsd  %xmm13,%xmm6
  mulsd  %xmm11,%xmm0
  movsd  D839(%rip),%xmm11
  addsd  D1250(%rip),%xmm0
  addsd  %xmm4,%xmm6
  movapd %xmm8,%xmm4
  mulsd  %xmm11,%xmm4
  mulsd  %xmm4,%xmm0
  pxor   %xmm4,%xmm4
  cvtsi2sd %eax,%xmm4
  mov    D1835(%rip),%rax
  movq   %rax,%xmm10
  mov    D1559(%rip),%rax
  divsd  %xmm12,%xmm0
  movq   %rax,%xmm9
  addsd  %xmm6,%xmm0
  mulsd  %xmm0,%xmm4
  jmp    L49
L122:
  movapd %xmm7,%xmm0
  movsd  %xmm2,0x30(%rsp)
  movsd  %xmm1,0x28(%rsp)
  movsd  %xmm8,0x20(%rsp)
  movsd  %xmm5,0x18(%rsp)
  movsd  %xmm3,0x10(%rsp)
  movsd  %xmm7,0x8(%rsp)
  call   <sqrt@plt>
  mov    D1559(%rip),%rax
  movsd  0x30(%rsp),%xmm2
  movsd  0x28(%rsp),%xmm1
  movsd  0x20(%rsp),%xmm8
  movsd  0x18(%rsp),%xmm5
  movsd  0x10(%rsp),%xmm3
  movq   %rax,%xmm9
  movsd  0x8(%rsp),%xmm7
  jmp    L112
L116:
  movsd  %xmm4,0x10(%rsp)
  movsd  %xmm1,0x8(%rsp)
  call   <sqrt@plt>
  movsd  0x10(%rsp),%xmm4
  movsd  0x8(%rsp),%xmm1
  jmp    L94
```

tool_calls: name: parse_data
arguments: label: D872
datatype: f64
name: parse_data
arguments: label: D969
datatype: f64
name: parse_data
arguments: label: D1559
datatype: f64
name: parse_data
arguments: label: D274
datatype: f64
name: parse_data
arguments: label: D808
datatype: f64
name: parse_data
arguments: label: D1681
datatype: byte[8]
name: parse_data
arguments: label: D236
datatype: byte[8]
name: parse_data
arguments: label: D1526
datatype: byte[8]
name: parse_data
arguments: label: D1291
datatype: byte[8]
name: parse_data
arguments: label: D159
datatype: byte[8]
name: parse_data
arguments: label: D1601
datatype: byte[8]
name: parse_data
arguments: label: D134
datatype: byte[8]
name: parse_data
arguments: label: D1451
datatype: byte[8]
name: parse_data
arguments: label: D1739
datatype: byte[8]
name: parse_data
arguments: label: D145
datatype: byte[8]
name: parse_data
arguments: label: D1776
datatype: byte[8]
name: parse_data
arguments: label: D1813
datatype: byte[8]
name: parse_data
arguments: label: D798
datatype: byte[8]
name: parse_data
arguments: label: D1284
datatype: byte[8]
name: parse_data
arguments: label: D1491
datatype: byte[8]
name: parse_data
arguments: label: D1346
datatype: byte[8]
name: parse_data
arguments: label: D140
datatype: byte[8]
name: parse_data
arguments: label: D1518
datatype: byte[8]
name: parse_data
arguments: label: D804
datatype: byte[8]
name: parse_data
arguments: label: D599
datatype: byte[8]
name: parse_data
arguments: label: D1329
datatype: byte[8]
name: parse_data
arguments: label: D478
datatype: f64
name: parse_data
arguments: label: D1228
datatype: f64
name: parse_data
arguments: label: D1504
datatype: byte[8]
name: parse_data
arguments: label: D305
datatype: byte[8]
name: parse_data
arguments: label: D923
datatype: byte[8]
name: parse_data
arguments: label: D71
datatype: byte[8]
name: parse_data
arguments: label: D830
datatype: byte[8]
name: parse_data
arguments: label: D1615
datatype: byte[8]
name: parse_data
arguments: label: D1683
datatype: byte[8]
name: parse_data
arguments: label: D759
datatype: byte[8]
name: parse_data
arguments: label: D1264
datatype: byte[8]
name: parse_data
arguments: label: D1338
datatype: byte[8]
name: parse_data
arguments: label: D988
datatype: byte[8]
name: parse_data
arguments: label: D730
datatype: byte[8]
name: parse_data
arguments: label: D1065
datatype: byte[8]
name: parse_data
arguments: label: D363
datatype: byte[8]
name: parse_data
arguments: label: D1516
datatype: byte[8]
name: parse_data
arguments: label: D379
datatype: byte[8]
name: parse_data
arguments: label: D879
datatype: byte[8]
name: parse_data
arguments: label: D1122
datatype: f64
name: parse_data
arguments: label: D1500
datatype: byte[8]
name: parse_data
arguments: label: D237
datatype: byte[8]
name: parse_data
arguments: label: D1270
datatype: byte[8]
name: parse_data
arguments: label: D1323
datatype: byte[8]
name: parse_data
arguments: label: D716
datatype: byte[8]
name: parse_data
arguments: label: D1835
datatype: f64
name: parse_data
arguments: label: D839
datatype: f64
name: parse_data
arguments: label: D903
datatype: byte[8]
name: parse_data
arguments: label: D241
datatype: byte[8]
name: parse_data
arguments: label: D849
datatype: byte[8]
name: parse_data
arguments: label: D1100
datatype: byte[8]
name: parse_data
arguments: label: D1135
datatype: byte[8]
name: parse_data
arguments: label: D153
datatype: byte[8]
name: parse_data
arguments: label: D1674
datatype: f64
name: parse_data
arguments: label: D1311
datatype: f64
name: parse_data
arguments: label: D862
datatype: byte[8]
name: parse_data
arguments: label: D219
datatype: f64
name: parse_data
arguments: label: D28
datatype: f64
name: parse_data
arguments: label: D1507
datatype: f64
name: parse_data
arguments: label: D531
datatype: f64
name: parse_data
arguments: label: D1485
datatype: f64
name: parse_data
arguments: label: D1712
datatype: f64
name: parse_data
arguments: label: D1026
datatype: f64
name: parse_data
arguments: label: D953
datatype: f64
name: parse_data
arguments: label: D667
datatype: f64
name: parse_data
arguments: label: D1552
datatype: byte[8]
name: parse_data
arguments: label: D1755
datatype: byte[8]
name: parse_data
arguments: label: D611
datatype: byte[8]
name: parse_data
arguments: label: D1092
datatype: byte[8]
name: parse_data
arguments: label: D448
datatype: byte[8]
name: parse_data
arguments: label: D655
datatype: byte[8]
name: parse_data
arguments: label: D676
datatype: byte[8]
name: parse_data
arguments: label: D934
datatype: byte[8]
name: parse_data
arguments: label: D444
datatype: f64
name: parse_data
arguments: label: D638
datatype: byte[8]
name: parse_data
arguments: label: D177
datatype: byte[8]
name: parse_data
arguments: label: D1035
datatype: byte[8]
name: parse_data
arguments: label: D557
datatype: f64
name: parse_data
arguments: label: D14
datatype: f64
name: parse_data
arguments: label: D1147
datatype: byte[8]
name: parse_data
arguments: label: D1212
datatype: byte[8]
name: parse_data
arguments: label: D946
datatype: byte[8]
name: parse_data
arguments: label: D1692
datatype: byte[8]
name: parse_data
arguments: label: D188
datatype: byte[8]
name: parse_data
arguments: label: D941
datatype: byte[8]
name: parse_data
arguments: label: D510
datatype: byte[8]
name: parse_data
arguments: label: D222
datatype: byte[8]
name: parse_data
arguments: label: D1085
datatype: byte[8]
name: parse_data
arguments: label: D777
datatype: byte[8]
name: parse_data
arguments: label: D728
datatype: byte[8]
name: parse_data
arguments: label: D1253
datatype: byte[8]
name: parse_data
arguments: label: D948
datatype: byte[8]
name: parse_data
arguments: label: D828
datatype: byte[8]
name: parse_data
arguments: label: D827
datatype: byte[8]
name: parse_data
arguments: label: D293
datatype: byte[8]
name: parse_data
arguments: label: D1481
datatype: byte[8]
name: parse_data
arguments: label: D1276
datatype: byte[8]
name: parse_data
arguments: label: D1517
datatype: byte[8]
name: parse_data
arguments: label: D509
datatype: byte[8]
name: parse_data
arguments: label: D196
datatype: byte[8]
name: parse_data
arguments: label: D384
datatype: byte[8]
name: parse_data
arguments: label: D175
datatype: byte[8]
name: parse_data
arguments: label: D1223
datatype: byte[8]
name: parse_data
arguments: label: D1616
datatype: byte[8]
name: parse_data
arguments: label: D1554
datatype: byte[8]
name: parse_data
arguments: label: D1657
datatype: byte[8]
name: parse_data
arguments: label: D493
datatype: byte[8]
name: parse_data
arguments: label: D545
datatype: byte[8]
name: parse_data
arguments: label: D856
datatype: byte[8]
name: parse_data
arguments: label: D662
datatype: byte[8]
name: parse_data
arguments: label: D1509
datatype: byte[8]
name: parse_data
arguments: label: D737
datatype: byte[8]
name: parse_data
arguments: label: D656
datatype: byte[8]
name: parse_data
arguments: label: D1463
datatype: byte[8]
name: parse_data
arguments: label: D1562
datatype: byte[8]
name: parse_data
arguments: label: D1090
datatype: byte[8]
name: parse_data
arguments: label: D69
datatype: byte[8]
name: parse_data
arguments: label: D1576
datatype: byte[8]
name: parse_data
arguments: label: D487
datatype: byte[8]
name: parse_data
arguments: label: D1275
datatype: byte[8]
name: parse_data
arguments: label: D1240
datatype: byte[8]
name: parse_data
arguments: label: D228
datatype: f64
name: parse_data
arguments: label: D1321
datatype: f64
name: parse_data
arguments: label: D1250
datatype: f64
name: parse_data
arguments: label: D606
datatype: byte[8]
name: parse_data
arguments: label: D1374
datatype: f64
name: parse_data
arguments: label: D1473
datatype: f64

tool: D872: 1.00024

tool: D969: 0.0162

tool: D1559: 1

tool: D274: 15

tool: D808: 9

tool: {"D1681": [0x8a,0xf9,0xc3,0xe7,0x69,0x77,0x92,0x3d]}

tool: {"D236": [0xf0,0xb6,0x17,0x73,0x74,0xac,0xf1,0x3d]}

tool: {"D1526": [0xef,0x64,0x12,0x7a,0x5c,0x86,0x20,0x3e]}

tool: {"D1291": [0xf6,0xa5,0x7c,0x69,0x70,0x28,0x34,0xbe]}

tool: {"D159": [0x59,0x0e,0x60,0x13,0x58,0x95,0x45,0x3e]}

tool: {"D1601": [0x8c,0x7c,0xdb,0x43,0x87,0x90,0x7f,0x3e]}

tool: {"D134": [0x50,0x8e,0xed,0x96,0x25,0x7a,0x39,0xbe]}

tool: {"D1451": [0x3f,0xb2,0x8f,0xa7,0x92,0xbc,0xa4,0x3e]}

tool: {"D1739": [0x36,0xcf,0x61,0xef,0x76,0x09,0xcb,0xbe]}

tool: {"D145": [0x85,0xcb,0xa6,0x7f,0x3c,0xd0,0xb8,0x3e]}

tool: {"D1776": [0x8f,0x74,0xd5,0x15,0x59,0xf4,0xc2,0x3e]}

tool: {"D1813": [0xc8,0xe8,0x97,0xbe,0xa5,0xe6,0x85,0x3e]}

tool: {"D798": [0xf9,0x53,0xc1,0xaa,0x87,0xb8,0x13,0x3f]}

tool: {"D1284": [0xdb,0xab,0xd1,0x31,0x49,0xe6,0xf6,0x3e]}

tool: {"D1491": [0x72,0x5f,0xc8,0xac,0x69,0xe9,0xc2,0xbe]}

tool: {"D1346": [0xf3,0x5c,0x8d,0xac,0x42,0xc6,0x4d,0x3f]}

tool: {"D140": [0x0f,0xe8,0xf0,0x01,0x50,0x71,0xf4,0xbe]}

tool: {"D1518": [0x0c,0x62,0x4e,0x4f,0x61,0xde,0x7d,0x3f]}

tool: {"D804": [0x98,0x73,0xd7,0x03,0xc5,0x8d,0x24,0x3f]}

tool: {"D599": [0x56,0x93,0xb3,0xa4,0xb9,0xa0,0xc8,0x3f]}

tool: {"D1329": [0xc3,0x18,0xf4,0x27,0x2c,0xc0,0x72,0x3f]}

tool: D478: 0.25

tool: D1228: 0.003

tool: {"D1504": [0x79,0x8f,0xbb,0x7e,0x15,0x27,0x6d,0x3d]}

tool: {"D305": [0xac,0xf5,0x19,0xd9,0xb7,0xfc,0xf6,0x3d]}

tool: {"D923": [0x67,0x3f,0x0b,0x79,0x9f,0xd1,0xe3,0x3d]}

tool: {"D71": [0xed,0x96,0x46,0x2e,0xee,0xce,0xa6,0x3e]}

tool: {"D830": [0x12,0xfe,0x62,0xa1,0xe0,0xa9,0x78,0x3e]}

tool: {"D1615": [0x82,0x85,0xb6,0xdb,0x66,0x7d,0x4a,0x3e]}

tool: {"D1683": [0x6e,0xf9,0xe9,0xba,0x96,0xc2,0x25,0x3f]}

tool: {"D759": [0xb0,0x98,0x66,0x54,0xc0,0x1e,0x18,0x3f]}

tool: {"D1264": [0x3a,0x83,0x90,0xe5,0x1f,0x16,0xe2,0x3e]}

tool: {"D1338": [0x74,0x10,0xcc,0x66,0xd4,0x9d,0xa8,0x3e]}

tool: {"D988": [0xf2,0xc7,0x28,0xb8,0x2d,0xaf,0xc0,0xc0]}

tool: {"D730": [0x96,0x31,0x7f,0x1b,0xc5,0x89,0xf6,0xbf]}

tool: {"D1065": [0x4c,0x97,0x5e,0x63,0xee,0x89,0x9c,0x40]}

tool: {"D363": [0x7e,0x15,0xf5,0x90,0xae,0x38,0x03,0x3f]}

tool: {"D1516": [0xd8,0x0f,0xb0,0x00,0xfa,0xe9,0xc4,0x3f]}

tool: {"D379": [0x47,0x60,0x3b,0xa9,0x09,0xb6,0x63,0x40]}

tool: {"D879": [0x19,0x6c,0xca,0xb3,0x85,0x26,0x5e,0xbf]}

tool: D1122: 7.112223828976632

tool: {"D1500": [0xbd,0x19,0x9d,0x27,0x6c,0xcc,0x37,0xbf]}

tool: {"D237": [0xd9,0xd0,0x38,0xbb,0xd0,0x3c,0x51,0x3f]}

tool: {"D1270": [0xf4,0x69,0x34,0xe0,0x2d,0x38,0x75,0x3f]}

tool: {"D1323": [0x3b,0xdf,0x4f,0x8d,0x97,0x6e,0xb2,0xbf]}

tool: {"D716": [0xdb,0xf9,0x7e,0x6a,0xbc,0x14,0x2b,0x40]}

tool: D1835: 2

tool: D839: 0.0005

tool: {"D903": [0xb9,0x8d,0x06,0xf0,0x16,0x48,0xd0,0x3f]}

tool: {"D241": [0xd0,0xb3,0x59,0xf5,0xb9,0x1a,0x3c,0x40]}

tool: {"D849": [0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xbc,0x3f]}

tool: {"D1100": [0x95,0xd4,0x09,0x68,0x22,0x24,0x45,0x40]}

tool: {"D1135": [0x46,0x25,0x75,0x02,0x9a,0x08,0x8b,0x3f]}

tool: {"D153": [0x8a,0xb0,0xe1,0xe9,0x95,0x62,0x49,0x40]}

tool: D1674: 0.0056

tool: D1311: 0.1692

tool: {"D862": [0x92,0xcb,0x7f,0x48,0xbf,0x7d,0x8d,0xbf]}

tool: D219: 2.7081

tool: D28: 0.0636

tool: D1507: 7.0261

tool: D531: 0.0375

tool: D1485: 14.0941

tool: D1712: 0.0066

tool: D1026: 25.3851

tool: D953: 0.008

tool: D667: 0.5

tool: {"D1552": [0x08,0xa3,0xa3,0x66,0x59,0x41,0x3d,0x3f]}

tool: {"D1755": [0x43,0x00,0x70,0xec,0xd9,0x73,0x69,0xbf]}

tool: {"D611": [0x26,0x36,0x1f,0xd7,0x86,0x8a,0xa1,0x3f]}

tool: {"D1092": [0x60,0xe5,0xd0,0x22,0xdb,0xf9,0xda,0x3f]}

tool: {"D448": [0x2a,0x5a,0x51,0x32,0xae,0x3b,0x11,0x3e]}

tool: {"D655": [0x2b,0x1c,0x89,0x3a,0x03,0x63,0xa7,0x3e]}

tool: {"D676": [0x4e,0x03,0x3b,0x84,0x8e,0xf2,0x1c,0x3f]}

tool: {"D934": [0x67,0x4e,0x4d,0x38,0xaa,0x89,0x94,0x3f]}

tool: D444: 0.6766097

tool: {"D638": [0x87,0x15,0x67,0xfe,0x00,0xf7,0xf1,0x3c]}

tool: {"D177": [0xb6,0x9f,0x37,0x7b,0x1c,0xe3,0x05,0x3e]}

tool: {"D1035": [0xbb,0x91,0x1e,0x2b,0x9d,0xb4,0xf5,0x3e]}

tool: D557: 4

tool: D14: 42.914

tool: {"D1147": [0x5e,0xae,0x4d,0x6b,0xf1,0xbd,0x73,0x3d]}

tool: {"D1212": [0xbf,0x70,0x73,0xf9,0xa1,0xb6,0xf2,0xbd]}

tool: {"D946": [0xe8,0x0e,0xc7,0x99,0x74,0x77,0xe2,0x3d]}

tool: {"D1692": [0x74,0xce,0xa8,0x8f,0x01,0x0e,0x55,0x3e]}

tool: {"D188": [0xe7,0xb5,0xec,0xad,0xa2,0x0c,0x5e,0x3e]}

tool: {"D941": [0x25,0xdf,0x97,0x5e,0x60,0x61,0x41,0x3e]}

tool: {"D510": [0xcf,0xeb,0xc9,0xca,0x6c,0xbb,0xd2,0x3e]}

tool: {"D222": [0x7e,0x56,0xb9,0x48,0x2c,0x1f,0xda,0x3e]}

tool: {"D1085": [0x39,0x91,0xcb,0x29,0x95,0x16,0xa0,0xbe]}

tool: {"D777": [0x19,0x1d,0x14,0xa4,0x6d,0x7c,0x9e,0x3e]}

tool: {"D728": [0xaf,0x7d,0xc7,0xd3,0x84,0xfa,0x84,0x3f]}

tool: {"D1253": [0x6e,0xbf,0x45,0xb0,0x7a,0x52,0x40,0x3f]}

tool: {"D948": [0x94,0x01,0x82,0x38,0x13,0xa1,0xb9,0x3f]}

tool: {"D828": [0xa4,0xf6,0x5d,0x5e,0x83,0xaf,0xfb,0x3e]}

tool: {"D827": [0x75,0x32,0x63,0x88,0xad,0x04,0x51,0xbf]}

tool: {"D293": [0xc7,0xaf,0x8f,0xb0,0xe6,0xcd,0xc7,0x3f]}

tool: {"D1481": [0x59,0xb7,0x51,0x15,0xd7,0x18,0x49,0x3f]}

tool: {"D1276": [0x01,0xec,0xe5,0xdf,0xbe,0xb4,0xbb,0x3f]}

tool: {"D1517": [0xc7,0x4a,0x01,0x60,0xb2,0x81,0x10,0xbf]}

tool: {"D509": [0xd8,0x86,0x06,0x33,0xe4,0x69,0xc5,0x3f]}

tool: {"D196": [0x3a,0x4e,0x53,0xfb,0x05,0x1e,0x6c,0x3f]}

tool: {"D384": [0xa8,0x90,0xb2,0x1a,0xc5,0x19,0x96,0x3d]}

tool: {"D175": [0x50,0x1d,0x83,0x20,0x1f,0x1e,0xec,0xbd]}

tool: {"D1223": [0x51,0x20,0x12,0xba,0xa6,0xc6,0x03,0x3e]}

tool: {"D1616": [0x45,0x1e,0x82,0x08,0xda,0x60,0x32,0xbe]}

tool: {"D1554": [0xd4,0x8c,0x34,0x0f,0x1d,0x94,0x65,0x3e]}

tool: {"D1657": [0x11,0x67,0x3a,0x3c,0x5a,0x27,0x58,0x3e]}

tool: {"D493": [0x2b,0xb4,0x68,0xb9,0x79,0xa2,0x69,0xbe]}

tool: {"D545": [0xa3,0xeb,0x76,0xae,0xc4,0x1b,0xa9,0x3e]}

tool: {"D856": [0x93,0x86,0x27,0xbb,0x01,0x7f,0xce,0xbe]}

tool: {"D662": [0xa7,0x99,0x89,0x8a,0x9a,0x48,0x91,0x3e]}

tool: {"D1509": [0x8a,0x9c,0xec,0xb2,0x37,0x61,0x1d,0x3f]}

tool: {"D737": [0x79,0x69,0x11,0xb8,0x7f,0x4d,0xc4,0xbe]}

tool: {"D656": [0x07,0x43,0x7d,0x0a,0x7d,0xbd,0x52,0x3f]}

tool: {"D1463": [0x59,0xaf,0x38,0x00,0x73,0x4f,0xee,0x3e]}

tool: {"D1562": [0x85,0x28,0x1f,0xb0,0x2d,0xaa,0xf5,0x3e]}

tool: {"D1090": [0xe2,0x61,0x77,0xf3,0xcc,0xc5,0x74,0x3f]}

tool: {"D69": [0x39,0x2f,0x69,0x47,0xd1,0xce,0x17,0x3f]}

tool: {"D1576": [0x20,0xb3,0x9c,0xdc,0xeb,0x0b,0x90,0x3f]}

tool: {"D487": [0xa2,0xb0,0x8f,0xc4,0x2c,0x27,0x30,0x3f]}

tool: {"D1275": [0xae,0x4e,0x26,0x3d,0x20,0xcc,0xc9,0x3f]}

tool: {"D1240": [0xaa,0xfe,0xc8,0xaa,0xdd,0x0c,0x0d,0x3f]}

tool: D228: 1.5

tool: D1321: 400

tool: D1250: 10

tool: {"D606": [0x9a,0x99,0x99,0x99,0x99,0x99,0x19,0x40]}

tool: D1374: 30

tool: D1473: 20

assistant: ```c
double gsw_c_from_sp(double sp, double t, double p) {
  double a0 = 0.0080e0, a1 = -0.1692e0, a2 = 25.3851e0, a3 = 14.0941e0, a4 = -7.0261e0, a5 = 2.7081e0, b0 = 0.0005e0, b1 = -0.0056e0, b2 = -0.0066e0, b3 = -0.0375e0, b4 = 0.0636e0, b5 = -0.0144e0, c0 = 0.6766097e0, c1 = 2.00564e-2, c2 = 1.104259e-4, c3 = -6.9698e-7, c4 = 1.0031e-9, d1 = 3.426e-2, d2 = 4.464e-4, d3 = 4.215e-1, d4 = -3.107e-3, e1 = 2.070e-5, e2 = -6.370e-10, e3 = 3.989e-15, p0 = 4.577801212923119e-3, p1 = 1.924049429136640e-1, p2 = 2.183871685127932e-5, p3 = -7.292156330457999e-3, p4 = 1.568129536470258e-4, p5 = -1.478995271680869e-6, p6 = 9.086442524716395e-4, p7 = -1.949560839540487e-5, p8 = -3.223058111118377e-6, p9 = 1.175871639741131e-7, p10 = -7.522895856600089e-5, p11 = -2.254458513439107e-6, p12 = 6.179992190192848e-7, p13 = 1.005054226996868e-8, p14 = -1.923745566122602e-9, p15 = 2.259550611212616e-6, p16 = 1.631749165091437e-7, p17 = -5.931857989915256e-9, p18 = -4.693392029005252e-9, p19 = 2.571854839274148e-10, p20 = 4.198786822861038e-12, q0 = 5.540896868127855e-5, q1 = 2.015419291097848e-1, q2 = -1.445310045430192e-5, q3 = -1.567047628411722e-2, q4 = 2.464756294660119e-4, q5 = -2.575458304732166e-7, q6 = 5.071449842454419e-3, q7 = 9.081985795339206e-5, q8 = -3.635420818812898e-6, q9 = 2.249490528450555e-8, q10 = -1.143810377431888e-3, q11 = 2.066112484281530e-5, q12 = 7.482907137737503e-7, q13 = 4.019321577844724e-8, q14 = -5.755568141370501e-10, q15 = 1.120748754429459e-4, q16 = -2.420274029674485e-6, q17 = -4.774829347564670e-8, q18 = -4.279037686797859e-9, q19 = -2.045829202713288e-10, q20 = 5.025109163112005e-12, s0 = 3.432285006604888e-3, s1 = 1.672940491817403e-1, s2 = 2.640304401023995e-5, s3 = 1.082267090441036e-1, s4 = -6.296778883666940e-5, s5 = -4.542775152303671e-7, s6 = -1.859711038699727e-1, s7 = 7.659006320303959e-4, s8 = -4.794661268817618e-7, s9 = 8.093368602891911e-9, s10 = 1.001140606840692e-1, s11 = -1.038712945546608e-3, s12 = -6.227915160991074e-6, s13 = 2.798564479737090e-8, s14 = -1.343623657549961e-10, s15 = 1.024345179842964e-2, s16 = 4.981135430579384e-4, s17 = 4.466087528793912e-6, s18 = 1.960872795577774e-8, s19 = -2.723159418888634e-10, s20 = 1.122200786423241e-12, u0 = 5.180529787390576e-3, u1 = 1.052097167201052e-3, u2 = 3.666193708310848e-5, u3 = 7.112223828976632e0, u4 = -3.631366777096209e-4, u5 = -7.336295318742821e-7, u6 = -1.576886793288888e+2, u7 = -1.840239113483083e-3, u8 = 8.624279120240952e-6, u9 = 1.233529799729501e-8, u10 = 1.826482800939545e+3, u11 = 1.633903983457674e-1, u12 = -9.201096427222349e-5, u13 = -9.187900959754842e-8, u14 = -1.442010369809705e-10, u15 = -8.542357182595853e+3, u16 = -1.408635241899082e0, u17 = 1.660164829963661e-4, u18 = 6.797409608973845e-7, u19 = 3.345074990451475e-10, u20 = 8.285687652694768e-13, k = 0.0162e0;
  double t68, ft68, x, rtx, dsp_drtx, sqrty, part1, part2, hill_ratio, sp_est, rtx_old, rt, aa, bb, cc, dd, ee, ra, r, rt_lc, rtxm, sp_hill_raw;
  t68 = t * 1.00024e0;
  ft68 = (t68 - 15e0) / (1e0 + k * (t68 - 15e0));
  x = sqrt(sp);
  if (sp > 9.0) {
    rtx = p0 + x * (p1 + p4 * t68 + x * (p3 + p7 * t68 + x * (p6 + p11 * t68 + x * (p10 + p16 * t68 + x * p15)))) + t68 * (p2 + t68 * (p5 + x * x * (p12 + x * p17) + p8 * x + t68 * (p9 + x * (p13 + x * p18) + t68 * (p14 + p19 * x + p20 * t68))));
  }
  if (sp >= 0.25 && sp < 9.0) {
    rtx = q0 + x * (q1 + q4 * t68 + x * (q3 + q7 * t68 + x * (q6 + q11 * t68 + x * (q10 + q16 * t68 + x * q15)))) + t68 * (q2 + t68 * (q5 + x * x * (q12 + x * q17) + q8 * x + t68 * (q9 + x * (q13 + x * q18) + t68 * (q14 + q19 * x + q20 * t68))));
  }
  if (sp >= 0.003 && sp < 0.25) {
    rtx = s0 + x * (s1 + s4 * t68 + x * (s3 + s7 * t68 + x * (s6 + s11 * t68 + x * (s10 + s16 * t68 + x * s15)))) + t68 * (s2 + t68 * (s5 + x * x * (s12 + x * s17) + s8 * x + t68 * (s9 + x * (s13 + x * s18) + t68 * (s14 + s19 * x + s20 * t68))));
  }
  if (sp < 0.003) {
    rtx = u0 + x * (u1 + u4 * t68 + x * (u3 + u7 * t68 + x * (u6 + u11 * t68 + x * (u10 + u16 * t68 + x * u15)))) + t68 * (u2 + t68 * (u5 + x * x * (u12 + x * u17) + u8 * x + t68 * (u9 + x * (u13 + x * u18) + t68 * (u14 + u19 * x + u20 * t68))));
  }
  dsp_drtx = a1 + (2e0 * a2 + (3e0 * a3 + (4e0 * a4 + 5e0 * a5 * rtx) * rtx) * rtx) * rtx + ft68 * (b1 + (2e0 * b2 + (3e0 * b3 + (4e0 * b4 + 5e0 * b5 * rtx) * rtx) * rtx) * rtx);
  if (sp < 2.0) {
    x = 400e0 * (rtx * rtx);
    sqrty = 10.0 * rtx;
    part1 = 1e0 + x * (1.5e0 + x);
    part2 = 1e0 + sqrty * (1e0 + sqrty * (1e0 + sqrty));
    hill_ratio = gsw_hill_ratio_at_sp2(t);
    dsp_drtx = dsp_drtx + a0 * 800e0 * rtx * (1.5e0 + 2e0 * x) / (part1 * part1) + b0 * ft68 * (10e0 + sqrty * (20e0 + 30e0 * sqrty)) / (part2 * part2);
    dsp_drtx = hill_ratio * dsp_drtx;
  }
  sp_est = a0 + (a1 + (a2 + (a3 + (a4 + a5 * rtx) * rtx) * rtx) * rtx) * rtx + ft68 * (b0 + (b1 + (b2 + (b3 + (b4 + b5 * rtx) * rtx) * rtx) * rtx) * rtx);
  if (sp_est < 2.0) {
    x = 400e0 * (rtx * rtx);
    sqrty = 10e0 * rtx;
    part1 = 1e0 + x * (1.5e0 + x);
    part2 = 1e0 + sqrty * (1e0 + sqrty * (1e0 + sqrty));
    sp_hill_raw = sp_est - a0 / part1 - b0 * ft68 / part2;
    hill_ratio = gsw_hill_ratio_at_sp2(t);
    sp_est = hill_ratio * sp_hill_raw;
  }
  rtx_old = rtx;
  rtx = rtx_old - (sp_est - sp) / dsp_drtx;
  rtxm = 0.5e0 * (rtx + rtx_old);
  dsp_drtx = a1 + (2e0 * a2 + (3e0 * a3 + (4e0 * a4 + 5e0 * a5 * rtxm) * rtxm) * rtxm) * rtxm + ft68 * (b1 + (2e0 * b2 + (3e0 * b3 + (4e0 * b4 + 5e0 * b5 * rtxm) * rtxm) * rtxm) * rtxm);
  if (sp_est < 2.0) {
    x = 400e0 * (rtxm * rtxm);
    sqrty = 10e0 * rtxm;
    part1 = 1e0 + x * (1.5e0 + x);
    part2 = 1e0 + sqrty * (1e0 + sqrty * (1e0 + sqrty));
    dsp_drtx = dsp_drtx + a0 * 800e0 * rtxm * (1.5e0 + 2e0 * x) / (part1 * part1) + b0 * ft68 * (10e0 + sqrty * (20e0 + 30e0 * sqrty)) / (part2 * part2);
    hill_ratio = gsw_hill_ratio_at_sp2(t);
    dsp_drtx = hill_ratio * dsp_drtx;
  }
  rtx = rtx_old - (sp_est - sp) / dsp_drtx;
  sp_est = a0 + (a1 + (a2 + (a3 + (a4 + a5 * rtx) * rtx) * rtx) * rtx) * rtx + ft68 * (b0 + (b1 + (b2 + (b3 + (b4 + b5 * rtx) * rtx) * rtx) * rtx) * rtx);
  if (sp_est < 2.0) {
    x = 400e0 * (rtx * rtx);
    sqrty = 10e0 * rtx;
    part1 = 1e0 + x * (1.5e0 + x);
    part2 = 1e0 + sqrty * (1e0 + sqrty * (1e0 + sqrty));
    sp_hill_raw = sp_est - a0 / part1 - b0 * ft68 / part2;
    hill_ratio = gsw_hill_ratio_at_sp2(t);
    sp_est = hill_ratio * sp_hill_raw;
  }
  rtx = rtx - (sp_est - sp) / dsp_drtx;
  rt = rtx * rtx;
  aa = d3 + d4 * t68;
  bb = 1e0 + t68 * (d1 + d2 * t68);
  cc = p * (e1 + p * (e2 + e3 * p));
  rt_lc = c0 + (c1 + (c2 + (c3 + c4 * t68) * t68) * t68) * t68;
  dd = bb - aa * rt_lc * rt;
  ee = rt_lc * rt * aa * (bb + cc);
  ra = sqrt(dd * dd + 4e0 * ee) - dd;
  r = 0.5e0 * ra / aa;
  return (42.9140e0 * r);
}
```