user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<gsw_c_from_sp>:
  endbr64
  push   %r14
  push   %rbx
  sub    $0x58,%rsp
  movapd %xmm0,%xmm3
  movsd  %xmm0,(%rsp)
  movq   %xmm1,%rbx
  movsd  %xmm2,0x28(%rsp)
  movapd %xmm1,%xmm7
  mulsd  D479(%rip),%xmm7
  movsd  %xmm7,0x20(%rsp)
  movapd %xmm7,%xmm1
  subsd  D846(%rip),%xmm1
  movapd %xmm1,%xmm0
  mulsd  D1231(%rip),%xmm0
  addsd  D1742(%rip),%xmm0
  divsd  %xmm0,%xmm1
  movsd  %xmm1,0x10(%rsp)
  pxor   %xmm0,%xmm0
  ucomisd %xmm3,%xmm0
  ja     L143
  sqrtsd %xmm3,%xmm3
  movapd %xmm3,%xmm1
L129:
  movsd  (%rsp),%xmm6
  comisd D756(%rip),%xmm6
  jbe    L106
  movapd %xmm1,%xmm0
  mulsd  D260(%rip),%xmm0
  subsd  D1429(%rip),%xmm0
  movsd  0x20(%rsp),%xmm4
  movapd %xmm4,%xmm2
  mulsd  D546(%rip),%xmm2
  addsd  %xmm2,%xmm0
  mulsd  %xmm4,%xmm0
  movapd %xmm1,%xmm2
  mulsd  D1203(%rip),%xmm2
  addsd  D1110(%rip),%xmm2
  mulsd  %xmm1,%xmm2
  addsd  D1771(%rip),%xmm2
  addsd  %xmm2,%xmm0
  mulsd  %xmm4,%xmm0
  movapd %xmm1,%xmm2
  mulsd  D1467(%rip),%xmm2
  addsd  D401(%rip),%xmm2
  movapd %xmm1,%xmm3
  mulsd  %xmm1,%xmm3
  mulsd  %xmm3,%xmm2
  subsd  D1284(%rip),%xmm2
  movapd %xmm1,%xmm3
  mulsd  D565(%rip),%xmm3
  addsd  %xmm3,%xmm2
  addsd  %xmm2,%xmm0
  mulsd  %xmm4,%xmm0
  addsd  D218(%rip),%xmm0
  mulsd  %xmm4,%xmm0
  movapd %xmm4,%xmm2
  mulsd  D1156(%rip),%xmm2
  subsd  D940(%rip),%xmm2
  movapd %xmm1,%xmm3
  mulsd  D1218(%rip),%xmm3
  addsd  %xmm3,%xmm2
  mulsd  %xmm1,%xmm2
  movapd %xmm4,%xmm3
  mulsd  D1817(%rip),%xmm3
  addsd  D1645(%rip),%xmm3
  addsd  %xmm3,%xmm2
  mulsd  %xmm1,%xmm2
  movapd %xmm4,%xmm3
  mulsd  D1316(%rip),%xmm3
  subsd  D308(%rip),%xmm3
  addsd  %xmm3,%xmm2
  mulsd  %xmm1,%xmm2
  mulsd  D1631(%rip),%xmm4
  movapd %xmm4,%xmm3
  addsd  D22(%rip),%xmm3
  addsd  %xmm3,%xmm2
  mulsd  %xmm1,%xmm2
  addsd  D1402(%rip),%xmm2
  addsd  %xmm2,%xmm0
  movsd  %xmm0,0x8(%rsp)
L106:
  movsd  (%rsp),%xmm5
  comisd D796(%rip),%xmm5
  jb     L8
  movsd  D756(%rip),%xmm0
  comisd %xmm5,%xmm0
  jbe    L8
  movapd %xmm1,%xmm0
  mulsd  D580(%rip),%xmm0
  subsd  D349(%rip),%xmm0
  movsd  0x20(%rsp),%xmm7
  movapd %xmm7,%xmm2
  mulsd  D948(%rip),%xmm2
  addsd  %xmm2,%xmm0
  mulsd  %xmm7,%xmm0
  movapd %xmm1,%xmm2
  mulsd  D527(%rip),%xmm2
  addsd  D1324(%rip),%xmm2
  mulsd  %xmm1,%xmm2
  addsd  D157(%rip),%xmm2
  addsd  %xmm2,%xmm0
  mulsd  %xmm7,%xmm0
  movapd %xmm1,%xmm2
  mulsd  D118(%rip),%xmm2
  addsd  D346(%rip),%xmm2
  movapd %xmm1,%xmm3
  mulsd  %xmm1,%xmm3
  mulsd  %xmm3,%xmm2
  subsd  D660(%rip),%xmm2
  movapd %xmm1,%xmm3
  mulsd  D119(%rip),%xmm3
  addsd  %xmm3,%xmm2
  addsd  %xmm2,%xmm0
  mulsd  %xmm7,%xmm0
  subsd  D962(%rip),%xmm0
  mulsd  %xmm7,%xmm0
  movapd %xmm7,%xmm2
  mulsd  D1809(%rip),%xmm2
  subsd  D1080(%rip),%xmm2
  movapd %xmm1,%xmm3
  mulsd  D1887(%rip),%xmm3
  addsd  %xmm3,%xmm2
  mulsd  %xmm1,%xmm2
  movapd %xmm7,%xmm3
  mulsd  D1363(%rip),%xmm3
  addsd  D1612(%rip),%xmm3
  addsd  %xmm3,%xmm2
  mulsd  %xmm1,%xmm2
  movapd %xmm7,%xmm3
  mulsd  D555(%rip),%xmm3
  subsd  D233(%rip),%xmm3
  addsd  %xmm3,%xmm2
  mulsd  %xmm1,%xmm2
  mulsd  D1067(%rip),%xmm7
  movapd %xmm7,%xmm3
  addsd  D1616(%rip),%xmm3
  addsd  %xmm3,%xmm2
  mulsd  %xmm1,%xmm2
  addsd  D589(%rip),%xmm2
  addsd  %xmm2,%xmm0
  movsd  %xmm0,0x8(%rsp)
L8:
  movsd  (%rsp),%xmm7
  comisd D1815(%rip),%xmm7
  jb     L48
  movsd  D796(%rip),%xmm0
  comisd %xmm7,%xmm0
  jbe    L48
  movapd %xmm1,%xmm0
  mulsd  D397(%rip),%xmm0
  subsd  D234(%rip),%xmm0
  movsd  0x20(%rsp),%xmm4
  movapd %xmm4,%xmm2
  mulsd  D683(%rip),%xmm2
  addsd  %xmm2,%xmm0
  mulsd  %xmm4,%xmm0
  movapd %xmm1,%xmm2
  mulsd  D1405(%rip),%xmm2
  addsd  D256(%rip),%xmm2
  mulsd  %xmm1,%xmm2
  addsd  D1568(%rip),%xmm2
  addsd  %xmm2,%xmm0
  mulsd  %xmm4,%xmm0
  movapd %xmm1,%xmm2
  mulsd  D1871(%rip),%xmm2
  subsd  D375(%rip),%xmm2
  movapd %xmm1,%xmm3
  mulsd  %xmm1,%xmm3
  mulsd  %xmm3,%xmm2
  subsd  D100(%rip),%xmm2
  movapd %xmm1,%xmm3
  mulsd  D1561(%rip),%xmm3
  addsd  %xmm3,%xmm2
  addsd  %xmm2,%xmm0
  mulsd  %xmm4,%xmm0
  addsd  D1018(%rip),%xmm0
  mulsd  %xmm4,%xmm0
  movapd %xmm4,%xmm2
  mulsd  D240(%rip),%xmm2
  addsd  D613(%rip),%xmm2
  movapd %xmm1,%xmm3
  mulsd  D1224(%rip),%xmm3
  addsd  %xmm3,%xmm2
  mulsd  %xmm1,%xmm2
  movapd %xmm4,%xmm3
  mulsd  D1485(%rip),%xmm3
  subsd  D1526(%rip),%xmm3
  addsd  %xmm3,%xmm2
  mulsd  %xmm1,%xmm2
  movapd %xmm4,%xmm3
  mulsd  D941(%rip),%xmm3
  addsd  D1072(%rip),%xmm3
  addsd  %xmm3,%xmm2
  mulsd  %xmm1,%xmm2
  mulsd  D570(%rip),%xmm4
  movapd %xmm4,%xmm3
  addsd  D957(%rip),%xmm3
  addsd  %xmm3,%xmm2
  mulsd  %xmm1,%xmm2
  addsd  D1263(%rip),%xmm2
  addsd  %xmm2,%xmm0
  movsd  %xmm0,0x8(%rsp)
L48:
  movsd  D1815(%rip),%xmm0
  comisd (%rsp),%xmm0
  jbe    L99
  movapd %xmm1,%xmm0
  mulsd  D856(%rip),%xmm0
  subsd  D443(%rip),%xmm0
  movsd  0x20(%rsp),%xmm5
  movapd %xmm5,%xmm2
  mulsd  D607(%rip),%xmm2
  addsd  %xmm2,%xmm0
  mulsd  %xmm5,%xmm0
  movapd %xmm1,%xmm2
  mulsd  D386(%rip),%xmm2
  subsd  D1602(%rip),%xmm2
  mulsd  %xmm1,%xmm2
  addsd  D355(%rip),%xmm2
  addsd  %xmm2,%xmm0
  mulsd  %xmm5,%xmm0
  movapd %xmm1,%xmm2
  mulsd  D1428(%rip),%xmm2
  subsd  D515(%rip),%xmm2
  movapd %xmm1,%xmm3
  mulsd  %xmm1,%xmm3
  mulsd  %xmm3,%xmm2
  subsd  D1214(%rip),%xmm2
  movapd %xmm1,%xmm3
  mulsd  D110(%rip),%xmm3
  addsd  %xmm3,%xmm2
  addsd  %xmm2,%xmm0
  mulsd  %xmm5,%xmm0
  addsd  D1410(%rip),%xmm0
  mulsd  %xmm5,%xmm0
  movapd %xmm5,%xmm2
  mulsd  D1232(%rip),%xmm2
  addsd  D645(%rip),%xmm2
  movapd %xmm1,%xmm3
  mulsd  D561(%rip),%xmm3
  addsd  %xmm3,%xmm2
  mulsd  %xmm1,%xmm2
  movapd %xmm5,%xmm3
  mulsd  D496(%rip),%xmm3
  subsd  D1140(%rip),%xmm3
  addsd  %xmm3,%xmm2
  mulsd  %xmm1,%xmm2
  movapd %xmm5,%xmm3
  mulsd  D713(%rip),%xmm3
  addsd  D1535(%rip),%xmm3
  addsd  %xmm3,%xmm2
  mulsd  %xmm1,%xmm2
  mulsd  D209(%rip),%xmm5
  movapd %xmm5,%xmm3
  addsd  D1638(%rip),%xmm3
  addsd  %xmm3,%xmm2
  mulsd  %xmm2,%xmm1
  addsd  D1384(%rip),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,0x8(%rsp)
L99:
  movsd  0x8(%rsp),%xmm5
  movapd %xmm5,%xmm0
  mulsd  D156(%rip),%xmm0
  addsd  D298(%rip),%xmm0
  mulsd  %xmm5,%xmm0
  subsd  D438(%rip),%xmm0
  mulsd  %xmm5,%xmm0
  subsd  D1754(%rip),%xmm0
  mulsd  %xmm5,%xmm0
  subsd  D750(%rip),%xmm0
  mulsd  0x10(%rsp),%xmm0
  movapd %xmm5,%xmm1
  mulsd  D1736(%rip),%xmm1
  subsd  D454(%rip),%xmm1
  mulsd  %xmm5,%xmm1
  addsd  D1404(%rip),%xmm1
  mulsd  %xmm5,%xmm1
  addsd  D1853(%rip),%xmm1
  mulsd  %xmm5,%xmm1
  subsd  D967(%rip),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,0x18(%rsp)
  movsd  D460(%rip),%xmm0
  comisd (%rsp),%xmm0
  ja     L104
L142:
  movsd  0x8(%rsp),%xmm6
  movapd %xmm6,%xmm0
  mulsd  D1264(%rip),%xmm0
  addsd  D1697(%rip),%xmm0
  mulsd  %xmm6,%xmm0
  subsd  D1536(%rip),%xmm0
  mulsd  %xmm6,%xmm0
  subsd  D603(%rip),%xmm0
  mulsd  %xmm6,%xmm0
  subsd  D750(%rip),%xmm0
  mulsd  %xmm6,%xmm0
  addsd  D1333(%rip),%xmm0
  mulsd  0x10(%rsp),%xmm0
  movapd %xmm6,%xmm1
  mulsd  D1562(%rip),%xmm1
  subsd  D586(%rip),%xmm1
  mulsd  %xmm6,%xmm1
  addsd  D1625(%rip),%xmm1
  mulsd  %xmm6,%xmm1
  addsd  D1249(%rip),%xmm1
  mulsd  %xmm6,%xmm1
  subsd  D967(%rip),%xmm1
  mulsd  %xmm6,%xmm1
  addsd  D1634(%rip),%xmm1
  addsd  %xmm1,%xmm0
  movsd  D460(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L83
L165:
  movapd %xmm0,%xmm1
  subsd  (%rsp),%xmm1
  movq   %xmm1,%r14
  divsd  0x18(%rsp),%xmm1
  movsd  0x8(%rsp),%xmm6
  movapd %xmm6,%xmm3
  subsd  %xmm1,%xmm3
  addsd  %xmm6,%xmm3
  mulsd  D1349(%rip),%xmm3
  movapd %xmm3,%xmm1
  mulsd  D156(%rip),%xmm1
  addsd  D298(%rip),%xmm1
  mulsd  %xmm3,%xmm1
  subsd  D438(%rip),%xmm1
  mulsd  %xmm3,%xmm1
  subsd  D1754(%rip),%xmm1
  mulsd  %xmm3,%xmm1
  subsd  D750(%rip),%xmm1
  mulsd  0x10(%rsp),%xmm1
  movapd %xmm3,%xmm2
  mulsd  D1736(%rip),%xmm2
  subsd  D454(%rip),%xmm2
  mulsd  %xmm3,%xmm2
  addsd  D1404(%rip),%xmm2
  mulsd  %xmm3,%xmm2
  addsd  D1853(%rip),%xmm2
  mulsd  %xmm3,%xmm2
  subsd  D967(%rip),%xmm2
  addsd  %xmm2,%xmm1
  movsd  %xmm1,0x18(%rsp)
  movsd  D460(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L14
L81:
  movq   %r14,%xmm0
  divsd  0x18(%rsp),%xmm0
  movsd  0x8(%rsp),%xmm7
  subsd  %xmm0,%xmm7
  movsd  %xmm7,0x8(%rsp)
  movapd %xmm7,%xmm0
  mulsd  D1264(%rip),%xmm0
  addsd  D1697(%rip),%xmm0
  mulsd  %xmm7,%xmm0
  subsd  D1536(%rip),%xmm0
  mulsd  %xmm7,%xmm0
  subsd  D603(%rip),%xmm0
  mulsd  %xmm7,%xmm0
  subsd  D750(%rip),%xmm0
  mulsd  %xmm7,%xmm0
  addsd  D1333(%rip),%xmm0
  mulsd  0x10(%rsp),%xmm0
  movapd %xmm7,%xmm1
  mulsd  D1562(%rip),%xmm1
  subsd  D586(%rip),%xmm1
  mulsd  %xmm7,%xmm1
  addsd  D1625(%rip),%xmm1
  mulsd  %xmm7,%xmm1
  addsd  D1249(%rip),%xmm1
  mulsd  %xmm7,%xmm1
  subsd  D967(%rip),%xmm1
  mulsd  %xmm7,%xmm1
  addsd  D1634(%rip),%xmm1
  addsd  %xmm1,%xmm0
  movsd  D460(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L76
L117:
  subsd  (%rsp),%xmm0
  divsd  0x18(%rsp),%xmm0
  movsd  0x8(%rsp),%xmm1
  subsd  %xmm0,%xmm1
  movapd %xmm1,%xmm2
  mulsd  %xmm1,%xmm2
  movsd  0x20(%rsp),%xmm4
  movapd %xmm4,%xmm0
  mulsd  D1483(%rip),%xmm0
  movapd %xmm0,%xmm6
  addsd  D1797(%rip),%xmm6
  movsd  %xmm6,(%rsp)
  movapd %xmm4,%xmm0
  mulsd  D452(%rip),%xmm0
  addsd  D950(%rip),%xmm0
  mulsd  %xmm4,%xmm0
  movapd %xmm0,%xmm3
  addsd  D1742(%rip),%xmm3
  movapd %xmm4,%xmm1
  mulsd  D44(%rip),%xmm1
  subsd  D203(%rip),%xmm1
  mulsd  %xmm4,%xmm1
  addsd  D125(%rip),%xmm1
  mulsd  %xmm4,%xmm1
  addsd  D446(%rip),%xmm1
  mulsd  %xmm4,%xmm1
  addsd  D24(%rip),%xmm1
  movapd %xmm6,%xmm0
  mulsd  %xmm1,%xmm0
  mulsd  %xmm2,%xmm0
  movapd %xmm3,%xmm4
  subsd  %xmm0,%xmm4
  movsd  %xmm4,0x8(%rsp)
  movsd  0x28(%rsp),%xmm5
  movapd %xmm5,%xmm0
  mulsd  D1393(%rip),%xmm0
  subsd  D1180(%rip),%xmm0
  mulsd  %xmm5,%xmm0
  addsd  D262(%rip),%xmm0
  mulsd  %xmm5,%xmm0
  addsd  %xmm3,%xmm0
  mulsd  %xmm2,%xmm1
  mulsd  %xmm6,%xmm1
  mulsd  %xmm1,%xmm0
  mulsd  D69(%rip),%xmm0
  movapd %xmm4,%xmm1
  mulsd  %xmm4,%xmm1
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L157
  sqrtsd %xmm0,%xmm0
L22:
  subsd  0x8(%rsp),%xmm0
  mulsd  D1349(%rip),%xmm0
  divsd  (%rsp),%xmm0
  mulsd  D1014(%rip),%xmm0
  add    $0x58,%rsp
  pop    %rbx
  pop    %r14
  ret
L143:
  movsd  (%rsp),%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm1
  jmp    L129
L104:
  movapd %xmm5,%xmm4
  movapd %xmm5,%xmm0
  mulsd  %xmm5,%xmm0
  movapd %xmm0,%xmm5
  mulsd  D112(%rip),%xmm5
  movsd  D981(%rip),%xmm6
  mulsd  %xmm4,%xmm6
  movsd  D783(%rip),%xmm0
  addsd  %xmm5,%xmm0
  movsd  %xmm5,0x30(%rsp)
  mulsd  %xmm5,%xmm0
  movsd  D1742(%rip),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,0x40(%rsp)
  movapd %xmm6,%xmm0
  addsd  %xmm1,%xmm0
  mulsd  %xmm6,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm6,0x38(%rsp)
  mulsd  %xmm6,%xmm0
  movapd %xmm0,%xmm2
  addsd  %xmm1,%xmm2
  movsd  %xmm2,0x48(%rsp)
  movq   %rbx,%xmm0
  mov    $0x1,%eax
  call   <gsw_hill_ratio_at_sp2@plt>
  movsd  0x30(%rsp),%xmm5
  movapd %xmm5,%xmm0
  addsd  %xmm5,%xmm0
  addsd  D783(%rip),%xmm0
  movsd  0x8(%rsp),%xmm4
  mulsd  D1321(%rip),%xmm4
  mulsd  %xmm4,%xmm0
  movsd  0x40(%rsp),%xmm1
  mulsd  %xmm1,%xmm1
  divsd  %xmm1,%xmm0
  addsd  0x18(%rsp),%xmm0
  movsd  0x38(%rsp),%xmm6
  movapd %xmm6,%xmm1
  mulsd  D566(%rip),%xmm1
  addsd  D107(%rip),%xmm1
  mulsd  %xmm6,%xmm1
  addsd  D981(%rip),%xmm1
  movsd  0x10(%rsp),%xmm6
  mulsd  D1333(%rip),%xmm6
  mulsd  %xmm6,%xmm1
  movsd  0x48(%rsp),%xmm2
  mulsd  %xmm2,%xmm2
  divsd  %xmm2,%xmm1
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,0x18(%rsp)
  jmp    L142
L83:
  movapd %xmm6,%xmm4
  movapd %xmm6,%xmm2
  mulsd  %xmm6,%xmm2
  mulsd  D112(%rip),%xmm2
  movapd %xmm2,%xmm1
  addsd  D783(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  movsd  D1742(%rip),%xmm3
  addsd  %xmm3,%xmm1
  movsd  D1634(%rip),%xmm2
  divsd  %xmm1,%xmm2
  subsd  %xmm2,%xmm0
  mulsd  D981(%rip),%xmm4
  movapd %xmm4,%xmm1
  addsd  %xmm3,%xmm1
  mulsd  %xmm4,%xmm1
  addsd  %xmm3,%xmm1
  mulsd  %xmm4,%xmm1
  addsd  %xmm3,%xmm1
  movsd  0x10(%rsp),%xmm2
  mulsd  D1333(%rip),%xmm2
  divsd  %xmm1,%xmm2
  subsd  %xmm2,%xmm0
  movsd  %xmm0,0x30(%rsp)
  movq   %rbx,%xmm0
  mov    $0x1,%eax
  call   <gsw_hill_ratio_at_sp2@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x30(%rsp),%xmm0
  jmp    L165
L14:
  movapd %xmm3,%xmm0
  mulsd  %xmm3,%xmm0
  mulsd  D112(%rip),%xmm0
  movsd  D981(%rip),%xmm4
  movapd %xmm3,%xmm5
  mulsd  %xmm4,%xmm5
  movsd  D783(%rip),%xmm7
  movapd %xmm0,%xmm2
  addsd  %xmm7,%xmm2
  mulsd  %xmm0,%xmm2
  movsd  D1742(%rip),%xmm6
  addsd  %xmm6,%xmm2
  movapd %xmm5,%xmm1
  addsd  %xmm6,%xmm1
  mulsd  %xmm5,%xmm1
  addsd  %xmm6,%xmm1
  mulsd  %xmm5,%xmm1
  addsd  %xmm6,%xmm1
  addsd  %xmm0,%xmm0
  addsd  %xmm7,%xmm0
  mulsd  D1321(%rip),%xmm3
  mulsd  %xmm3,%xmm0
  mulsd  %xmm2,%xmm2
  divsd  %xmm2,%xmm0
  addsd  0x18(%rsp),%xmm0
  movapd %xmm5,%xmm2
  mulsd  D566(%rip),%xmm2
  addsd  D107(%rip),%xmm2
  mulsd  %xmm5,%xmm2
  addsd  %xmm4,%xmm2
  movsd  0x10(%rsp),%xmm3
  mulsd  D1333(%rip),%xmm3
  mulsd  %xmm3,%xmm2
  mulsd  %xmm1,%xmm1
  divsd  %xmm1,%xmm2
  addsd  %xmm0,%xmm2
  movsd  %xmm2,0x18(%rsp)
  movq   %rbx,%xmm0
  mov    $0x1,%eax
  call   <gsw_hill_ratio_at_sp2@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x18(%rsp),%xmm0
  movsd  %xmm0,0x18(%rsp)
  jmp    L81
L76:
  movapd %xmm7,%xmm2
  mulsd  %xmm7,%xmm2
  mulsd  D112(%rip),%xmm2
  movapd %xmm2,%xmm1
  addsd  D783(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  movsd  D1742(%rip),%xmm4
  addsd  %xmm4,%xmm1
  movsd  D1634(%rip),%xmm2
  divsd  %xmm1,%xmm2
  subsd  %xmm2,%xmm0
  movsd  0x10(%rsp),%xmm1
  mulsd  D1333(%rip),%xmm1
  movapd %xmm7,%xmm3
  mulsd  D981(%rip),%xmm3
  movapd %xmm3,%xmm2
  addsd  %xmm4,%xmm2
  mulsd  %xmm3,%xmm2
  addsd  %xmm4,%xmm2
  mulsd  %xmm3,%xmm2
  addsd  %xmm4,%xmm2
  divsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,0x10(%rsp)
  movq   %rbx,%xmm0
  mov    $0x1,%eax
  call   <gsw_hill_ratio_at_sp2@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x10(%rsp),%xmm0
  jmp    L117
L157:
  call   <sqrt@plt>
  jmp    L22
```

tool_calls: name: parse_data
arguments: data_label: D479
type_guessed: f64
name: parse_data
arguments: data_label: D846
type_guessed: f64
name: parse_data
arguments: data_label: D1231
type_guessed: f64
name: parse_data
arguments: data_label: D1742
type_guessed: f64
name: parse_data
arguments: data_label: D756
type_guessed: f64[2]
name: parse_data
arguments: data_label: D260
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1429
type_guessed: byte[8]
name: parse_data
arguments: data_label: D546
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1203
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1110
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1771
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1467
type_guessed: byte[8]
name: parse_data
arguments: data_label: D401
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1284
type_guessed: byte[8]
name: parse_data
arguments: data_label: D565
type_guessed: byte[8]
name: parse_data
arguments: data_label: D218
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1156
type_guessed: byte[8]
name: parse_data
arguments: data_label: D940
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1218
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1817
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1645
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1316
type_guessed: byte[8]
name: parse_data
arguments: data_label: D308
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1631
type_guessed: byte[8]
name: parse_data
arguments: data_label: D22
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1402
type_guessed: byte[8]
name: parse_data
arguments: data_label: D796
type_guessed: f64[2]
name: parse_data
arguments: data_label: D580
type_guessed: byte[8]
name: parse_data
arguments: data_label: D349
type_guessed: byte[8]
name: parse_data
arguments: data_label: D948
type_guessed: byte[8]
name: parse_data
arguments: data_label: D527
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1324
type_guessed: byte[8]
name: parse_data
arguments: data_label: D157
type_guessed: byte[8]
name: parse_data
arguments: data_label: D118
type_guessed: byte[8]
name: parse_data
arguments: data_label: D346
type_guessed: byte[8]
name: parse_data
arguments: data_label: D660
type_guessed: byte[8]
name: parse_data
arguments: data_label: D119
type_guessed: byte[8]
name: parse_data
arguments: data_label: D962
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1809
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1080
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1887
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1363
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1612
type_guessed: byte[8]
name: parse_data
arguments: data_label: D555
type_guessed: byte[8]
name: parse_data
arguments: data_label: D233
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1067
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1616
type_guessed: byte[8]
name: parse_data
arguments: data_label: D589
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1815
type_guessed: f64[2]
name: parse_data
arguments: data_label: D397
type_guessed: byte[8]
name: parse_data
arguments: data_label: D234
type_guessed: byte[8]
name: parse_data
arguments: data_label: D683
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1405
type_guessed: byte[8]
name: parse_data
arguments: data_label: D256
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1568
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1871
type_guessed: byte[8]
name: parse_data
arguments: data_label: D375
type_guessed: byte[8]
name: parse_data
arguments: data_label: D100
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1561
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1018
type_guessed: byte[8]
name: parse_data
arguments: data_label: D240
type_guessed: byte[8]
name: parse_data
arguments: data_label: D613
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1224
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1485
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1526
type_guessed: byte[8]
name: parse_data
arguments: data_label: D941
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1072
type_guessed: byte[8]
name: parse_data
arguments: data_label: D570
type_guessed: byte[8]
name: parse_data
arguments: data_label: D957
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1263
type_guessed: byte[8]
name: parse_data
arguments: data_label: D856
type_guessed: byte[8]
name: parse_data
arguments: data_label: D443
type_guessed: byte[8]
name: parse_data
arguments: data_label: D607
type_guessed: byte[8]
name: parse_data
arguments: data_label: D386
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1602
type_guessed: byte[8]
name: parse_data
arguments: data_label: D355
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1428
type_guessed: byte[8]
name: parse_data
arguments: data_label: D515
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1214
type_guessed: byte[8]
name: parse_data
arguments: data_label: D110
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1410
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1232
type_guessed: byte[8]
name: parse_data
arguments: data_label: D645
type_guessed: byte[8]
name: parse_data
arguments: data_label: D561
type_guessed: byte[8]
name: parse_data
arguments: data_label: D496
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1140
type_guessed: byte[8]
name: parse_data
arguments: data_label: D713
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1535
type_guessed: f64
name: parse_data
arguments: data_label: D209
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1638
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1384
type_guessed: byte[8]
name: parse_data
arguments: data_label: D156
type_guessed: byte[8]
name: parse_data
arguments: data_label: D298
type_guessed: byte[8]
name: parse_data
arguments: data_label: D438
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1754
type_guessed: byte[8]
name: parse_data
arguments: data_label: D750
type_guessed: f64
name: parse_data
arguments: data_label: D1736
type_guessed: byte[8]
name: parse_data
arguments: data_label: D454
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1404
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1853
type_guessed: byte[8]
name: parse_data
arguments: data_label: D967
type_guessed: f64
name: parse_data
arguments: data_label: D460
type_guessed: f64
name: parse_data
arguments: data_label: D1264
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1697
type_guessed: f64
name: parse_data
arguments: data_label: D1536
type_guessed: f64
name: parse_data
arguments: data_label: D603
type_guessed: f64
name: parse_data
arguments: data_label: D1333
type_guessed: f64
name: parse_data
arguments: data_label: D1562
type_guessed: f64
name: parse_data
arguments: data_label: D586
type_guessed: f64
name: parse_data
arguments: data_label: D1625
type_guessed: f64
name: parse_data
arguments: data_label: D1249
type_guessed: f64
name: parse_data
arguments: data_label: D1634
type_guessed: f64
name: parse_data
arguments: data_label: D1349
type_guessed: f64
name: parse_data
arguments: data_label: D1483
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1797
type_guessed: byte[8]
name: parse_data
arguments: data_label: D452
type_guessed: byte[8]
name: parse_data
arguments: data_label: D950
type_guessed: byte[8]
name: parse_data
arguments: data_label: D44
type_guessed: byte[8]
name: parse_data
arguments: data_label: D203
type_guessed: byte[8]
name: parse_data
arguments: data_label: D125
type_guessed: byte[8]
name: parse_data
arguments: data_label: D446
type_guessed: byte[8]
name: parse_data
arguments: data_label: D24
type_guessed: f64
name: parse_data
arguments: data_label: D1393
type_guessed: byte[8]
name: parse_data
arguments: data_label: D1180
type_guessed: byte[8]
name: parse_data
arguments: data_label: D262
type_guessed: byte[8]
name: parse_data
arguments: data_label: D69
type_guessed: f64
name: parse_data
arguments: data_label: D1014
type_guessed: f64
name: parse_data
arguments: data_label: D112
type_guessed: f64
name: parse_data
arguments: data_label: D981
type_guessed: f64
name: parse_data
arguments: data_label: D783
type_guessed: f64
name: parse_data
arguments: data_label: D1321
type_guessed: byte[8]
name: parse_data
arguments: data_label: D566
type_guessed: f64
name: parse_data
arguments: data_label: D107
type_guessed: f64

tool: D479: 1.00024

tool: D846: 15

tool: D1231: 0.0162

tool: D1742: 1

tool: {"D756": [9.0,2.571854839274148e-10]}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

tool: {"D796": [0.25,-2.045829202713288e-10]}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

tool: {"D1815": [0.003,-2.723159418888634e-10]}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

tool: D1535: 7.112223828976632

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

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

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

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

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

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

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

tool: D750: 0.0056

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

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

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

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

tool: D967: 0.1692

tool: D460: 2

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

tool: D1697: 0.0636

tool: D1536: 0.0375

tool: D603: 0.0066

tool: D1333: 0.0005

tool: D1562: 2.7081

tool: D586: 7.0261

tool: D1625: 14.0941

tool: D1249: 25.3851

tool: D1634: 0.008

tool: D1349: 0.5

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

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

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

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

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

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

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

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

tool: D24: 0.6766097

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

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

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

tool: D69: 4

tool: D1014: 42.914

tool: D112: 400

tool: D981: 10

tool: D783: 1.5

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

tool: D566: 30

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