user: 请将以下的汇编代码转换成C语言代码：

```asm
<gsw_c_from_sp>:
  endbr64
  sub    $0x68,%rsp
  movsd  D1467(%rip),%xmm5
  movapd %xmm0,%xmm7
  pxor   %xmm6,%xmm6
  movsd  D655(%rip),%xmm0
  ucomisd %xmm7,%xmm6
  movsd  D648(%rip),%xmm9
  mulsd  %xmm1,%xmm5
  movapd %xmm5,%xmm8
  subsd  D843(%rip),%xmm8
  mulsd  %xmm8,%xmm0
  addsd  %xmm9,%xmm0
  divsd  %xmm0,%xmm8
  ja     L168
  movapd %xmm7,%xmm0
  sqrtsd %xmm0,%xmm0
L139:
  movsd  D45(%rip),%xmm6
  comisd %xmm6,%xmm7
  jbe    L86
  movsd  D211(%rip),%xmm4
  movsd  D558(%rip),%xmm3
  movapd %xmm0,%xmm10
  mulsd  %xmm0,%xmm10
  mulsd  %xmm5,%xmm4
  mulsd  %xmm0,%xmm3
  subsd  D926(%rip),%xmm3
  addsd  %xmm4,%xmm3
  movsd  D1494(%rip),%xmm4
  mulsd  %xmm0,%xmm4
  addsd  D811(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  mulsd  %xmm0,%xmm4
  addsd  D859(%rip),%xmm4
  addsd  %xmm4,%xmm3
  movsd  D1837(%rip),%xmm4
  mulsd  %xmm0,%xmm4
  addsd  D1788(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  mulsd  %xmm10,%xmm4
  movsd  D23(%rip),%xmm10
  subsd  D1507(%rip),%xmm4
  mulsd  %xmm0,%xmm10
  addsd  %xmm10,%xmm4
  movsd  D1249(%rip),%xmm10
  mulsd  %xmm0,%xmm10
  addsd  %xmm4,%xmm3
  movsd  D841(%rip),%xmm4
  mulsd  %xmm5,%xmm4
  subsd  D1739(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  addsd  D85(%rip),%xmm3
  addsd  %xmm10,%xmm4
  movsd  D32(%rip),%xmm10
  mulsd  %xmm5,%xmm3
  mulsd  %xmm5,%xmm10
  addsd  D770(%rip),%xmm10
  mulsd  %xmm0,%xmm4
  addsd  %xmm10,%xmm4
  movsd  D1392(%rip),%xmm10
  mulsd  %xmm5,%xmm10
  subsd  D511(%rip),%xmm10
  mulsd  %xmm0,%xmm4
  addsd  %xmm10,%xmm4
  movsd  D958(%rip),%xmm10
  mulsd  %xmm5,%xmm10
  addsd  D701(%rip),%xmm10
  mulsd  %xmm0,%xmm4
  addsd  %xmm10,%xmm4
  mulsd  %xmm0,%xmm4
  addsd  D345(%rip),%xmm4
  addsd  %xmm4,%xmm3
L86:
  movsd  D1343(%rip),%xmm10
  comisd %xmm10,%xmm7
  jb     L116
  comisd %xmm7,%xmm6
  ja     L178
L116:
  movsd  D1271(%rip),%xmm6
  comisd %xmm6,%xmm7
  jb     L98
  comisd %xmm7,%xmm10
  ja     L136
L98:
  comisd %xmm7,%xmm6
  jbe    L158
  movsd  D405(%rip),%xmm4
  movsd  D1350(%rip),%xmm3
  movapd %xmm0,%xmm6
  mulsd  %xmm0,%xmm6
  mulsd  %xmm5,%xmm4
  mulsd  %xmm0,%xmm3
  subsd  D1487(%rip),%xmm3
  addsd  %xmm4,%xmm3
  movsd  D1257(%rip),%xmm4
  mulsd  %xmm0,%xmm4
  subsd  D916(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  mulsd  %xmm0,%xmm4
  addsd  D1315(%rip),%xmm4
  addsd  %xmm4,%xmm3
  movsd  D435(%rip),%xmm4
  mulsd  %xmm0,%xmm4
  subsd  D650(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  mulsd  %xmm6,%xmm4
  movsd  D569(%rip),%xmm6
  subsd  D1535(%rip),%xmm4
  mulsd  %xmm0,%xmm6
  addsd  %xmm6,%xmm4
  movsd  D628(%rip),%xmm6
  mulsd  %xmm0,%xmm6
  addsd  %xmm4,%xmm3
  movsd  D763(%rip),%xmm4
  mulsd  %xmm5,%xmm4
  addsd  D822(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  addsd  D966(%rip),%xmm3
  addsd  %xmm6,%xmm4
  movsd  D867(%rip),%xmm6
  mulsd  %xmm5,%xmm3
  mulsd  %xmm5,%xmm6
  mulsd  %xmm0,%xmm4
  subsd  D1162(%rip),%xmm6
  addsd  %xmm6,%xmm4
  movsd  D639(%rip),%xmm6
  mulsd  %xmm5,%xmm6
  mulsd  %xmm0,%xmm4
  addsd  D1472(%rip),%xmm6
  addsd  %xmm6,%xmm4
  movsd  D1571(%rip),%xmm6
  mulsd  %xmm5,%xmm6
  mulsd  %xmm0,%xmm4
  addsd  D1362(%rip),%xmm6
  addsd  %xmm6,%xmm4
  mulsd  %xmm4,%xmm0
  addsd  D181(%rip),%xmm0
  addsd  %xmm0,%xmm3
L158:
  movsd  D1430(%rip),%xmm4
  movsd  D768(%rip),%xmm0
  movsd  D365(%rip),%xmm10
  movsd  D576(%rip),%xmm11
  mulsd  %xmm3,%xmm4
  addsd  D734(%rip),%xmm4
  mulsd  %xmm3,%xmm0
  subsd  D1678(%rip),%xmm0
  comisd %xmm7,%xmm10
  mulsd  %xmm3,%xmm4
  subsd  D1563(%rip),%xmm4
  mulsd  %xmm3,%xmm0
  addsd  D158(%rip),%xmm0
  mulsd  %xmm3,%xmm4
  subsd  D509(%rip),%xmm4
  mulsd  %xmm3,%xmm0
  addsd  D568(%rip),%xmm0
  mulsd  %xmm3,%xmm4
  subsd  D1235(%rip),%xmm4
  mulsd  %xmm3,%xmm0
  subsd  D1631(%rip),%xmm0
  mulsd  %xmm8,%xmm4
  addsd  %xmm0,%xmm4
  ja     L109
L24:
  movsd  D238(%rip),%xmm0
  movsd  D957(%rip),%xmm6
  mulsd  %xmm3,%xmm0
  addsd  D61(%rip),%xmm0
  mulsd  %xmm3,%xmm6
  subsd  D1255(%rip),%xmm6
  mulsd  %xmm3,%xmm0
  subsd  D643(%rip),%xmm0
  mulsd  %xmm3,%xmm6
  addsd  D1349(%rip),%xmm6
  mulsd  %xmm3,%xmm0
  subsd  D884(%rip),%xmm0
  mulsd  %xmm3,%xmm6
  addsd  D1101(%rip),%xmm6
  mulsd  %xmm3,%xmm0
  subsd  D1235(%rip),%xmm0
  mulsd  %xmm3,%xmm6
  subsd  D1631(%rip),%xmm6
  mulsd  %xmm3,%xmm0
  mulsd  %xmm3,%xmm6
  addsd  D1697(%rip),%xmm6
  addsd  %xmm11,%xmm0
  mulsd  %xmm8,%xmm0
  addsd  %xmm6,%xmm0
  comisd %xmm0,%xmm10
  ja     L184
L173:
  movapd %xmm0,%xmm15
  comisd %xmm0,%xmm10
  movapd %xmm3,%xmm6
  subsd  %xmm7,%xmm15
  movapd %xmm15,%xmm12
  divsd  %xmm4,%xmm12
  movsd  D1430(%rip),%xmm4
  subsd  %xmm12,%xmm6
  movsd  D768(%rip),%xmm12
  addsd  %xmm3,%xmm6
  mulsd  D185(%rip),%xmm6
  mulsd  %xmm6,%xmm4
  addsd  D734(%rip),%xmm4
  mulsd  %xmm6,%xmm12
  subsd  D1678(%rip),%xmm12
  mulsd  %xmm6,%xmm4
  subsd  D1563(%rip),%xmm4
  mulsd  %xmm6,%xmm12
  addsd  D158(%rip),%xmm12
  mulsd  %xmm6,%xmm4
  subsd  D509(%rip),%xmm4
  mulsd  %xmm6,%xmm12
  addsd  D568(%rip),%xmm12
  mulsd  %xmm6,%xmm4
  subsd  D1235(%rip),%xmm4
  mulsd  %xmm6,%xmm12
  subsd  D1631(%rip),%xmm12
  mulsd  %xmm8,%xmm4
  addsd  %xmm12,%xmm4
  ja     L33
L90:
  movapd %xmm15,%xmm0
  movsd  D61(%rip),%xmm6
  divsd  %xmm4,%xmm0
  subsd  %xmm0,%xmm3
  movsd  D238(%rip),%xmm0
  mulsd  %xmm3,%xmm0
  addsd  %xmm0,%xmm6
  movsd  D957(%rip),%xmm0
  mulsd  %xmm3,%xmm0
  mulsd  %xmm3,%xmm6
  subsd  D1255(%rip),%xmm0
  subsd  D643(%rip),%xmm6
  mulsd  %xmm3,%xmm0
  mulsd  %xmm3,%xmm6
  addsd  D1349(%rip),%xmm0
  subsd  D884(%rip),%xmm6
  mulsd  %xmm3,%xmm0
  mulsd  %xmm3,%xmm6
  addsd  D1101(%rip),%xmm0
  subsd  D1235(%rip),%xmm6
  mulsd  %xmm3,%xmm0
  mulsd  %xmm3,%xmm6
  subsd  D1631(%rip),%xmm0
  mulsd  %xmm3,%xmm0
  addsd  D1697(%rip),%xmm0
  addsd  %xmm11,%xmm6
  mulsd  %xmm8,%xmm6
  addsd  %xmm6,%xmm0
  comisd %xmm0,%xmm10
  ja     L166
L100:
  subsd  %xmm7,%xmm0
  movsd  D712(%rip),%xmm6
  pxor   %xmm7,%xmm7
  movsd  D1141(%rip),%xmm1
  mulsd  %xmm5,%xmm6
  divsd  %xmm4,%xmm0
  addsd  D1379(%rip),%xmm6
  mulsd  %xmm5,%xmm1
  addsd  D251(%rip),%xmm1
  mulsd  %xmm5,%xmm6
  addsd  %xmm9,%xmm6
  movapd %xmm6,%xmm4
  subsd  %xmm0,%xmm3
  movsd  D505(%rip),%xmm0
  mulsd  %xmm5,%xmm0
  subsd  D728(%rip),%xmm0
  mulsd  %xmm3,%xmm3
  mulsd  %xmm5,%xmm0
  addsd  D935(%rip),%xmm0
  mulsd  %xmm5,%xmm0
  addsd  D1250(%rip),%xmm0
  mulsd  %xmm0,%xmm5
  movapd %xmm1,%xmm0
  addsd  D1195(%rip),%xmm5
  mulsd  %xmm5,%xmm0
  mulsd  %xmm3,%xmm0
  mulsd  %xmm5,%xmm3
  subsd  %xmm0,%xmm4
  movsd  D67(%rip),%xmm0
  mulsd  %xmm1,%xmm3
  mulsd  %xmm2,%xmm0
  subsd  D94(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  D1150(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  movapd %xmm4,%xmm2
  mulsd  %xmm4,%xmm2
  addsd  %xmm6,%xmm0
  mulsd  %xmm3,%xmm0
  mulsd  D421(%rip),%xmm0
  addsd  %xmm2,%xmm0
  ucomisd %xmm0,%xmm7
  ja     L145
  sqrtsd %xmm0,%xmm0
L62:
  subsd  %xmm4,%xmm0
  mulsd  D185(%rip),%xmm0
  divsd  %xmm1,%xmm0
  mulsd  D791(%rip),%xmm0
  add    $0x68,%rsp
  ret
  nopl   0x0(%rax)
L136:
  movsd  D996(%rip),%xmm4
  movsd  D1760(%rip),%xmm3
  movapd %xmm0,%xmm10
  mulsd  %xmm0,%xmm10
  mulsd  %xmm5,%xmm4
  mulsd  %xmm0,%xmm3
  subsd  D755(%rip),%xmm3
  addsd  %xmm4,%xmm3
  movsd  D1798(%rip),%xmm4
  mulsd  %xmm0,%xmm4
  addsd  D618(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  mulsd  %xmm0,%xmm4
  addsd  D422(%rip),%xmm4
  addsd  %xmm4,%xmm3
  movsd  D242(%rip),%xmm4
  mulsd  %xmm0,%xmm4
  subsd  D1261(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  mulsd  %xmm10,%xmm4
  movsd  D1233(%rip),%xmm10
  subsd  D1062(%rip),%xmm4
  mulsd  %xmm0,%xmm10
  addsd  %xmm10,%xmm4
  movsd  D1229(%rip),%xmm10
  mulsd  %xmm0,%xmm10
  addsd  %xmm4,%xmm3
  movsd  D1093(%rip),%xmm4
  mulsd  %xmm5,%xmm4
  addsd  D1011(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  addsd  D887(%rip),%xmm3
  addsd  %xmm10,%xmm4
  movsd  D1489(%rip),%xmm10
  mulsd  %xmm5,%xmm3
  mulsd  %xmm5,%xmm10
  subsd  D524(%rip),%xmm10
  mulsd  %xmm0,%xmm4
  addsd  %xmm10,%xmm4
  movsd  D105(%rip),%xmm10
  mulsd  %xmm5,%xmm10
  addsd  D1132(%rip),%xmm10
  mulsd  %xmm0,%xmm4
  addsd  %xmm10,%xmm4
  movsd  D1477(%rip),%xmm10
  mulsd  %xmm5,%xmm10
  addsd  D786(%rip),%xmm10
  mulsd  %xmm0,%xmm4
  addsd  %xmm10,%xmm4
  mulsd  %xmm0,%xmm4
  addsd  D953(%rip),%xmm4
  addsd  %xmm4,%xmm3
  jmp    L98
  xchg   %ax,%ax
L178:
  movsd  D555(%rip),%xmm4
  movsd  D1612(%rip),%xmm3
  movapd %xmm0,%xmm6
  mulsd  %xmm0,%xmm6
  mulsd  %xmm5,%xmm4
  mulsd  %xmm0,%xmm3
  subsd  D1126(%rip),%xmm3
  addsd  %xmm4,%xmm3
  movsd  D1812(%rip),%xmm4
  mulsd  %xmm0,%xmm4
  addsd  D1018(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  mulsd  %xmm0,%xmm4
  addsd  D124(%rip),%xmm4
  addsd  %xmm4,%xmm3
  movsd  D1218(%rip),%xmm4
  mulsd  %xmm0,%xmm4
  addsd  D1330(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  mulsd  %xmm6,%xmm4
  movsd  D1723(%rip),%xmm6
  subsd  D973(%rip),%xmm4
  mulsd  %xmm0,%xmm6
  addsd  %xmm6,%xmm4
  movsd  D112(%rip),%xmm6
  mulsd  %xmm0,%xmm6
  addsd  %xmm4,%xmm3
  movsd  D782(%rip),%xmm4
  mulsd  %xmm5,%xmm4
  subsd  D1651(%rip),%xmm4
  mulsd  %xmm5,%xmm3
  subsd  D1702(%rip),%xmm3
  addsd  %xmm6,%xmm4
  movsd  D1283(%rip),%xmm6
  mulsd  %xmm5,%xmm3
  mulsd  %xmm5,%xmm6
  mulsd  %xmm0,%xmm4
  addsd  D942(%rip),%xmm6
  addsd  %xmm6,%xmm4
  movsd  D338(%rip),%xmm6
  mulsd  %xmm5,%xmm6
  mulsd  %xmm0,%xmm4
  subsd  D1135(%rip),%xmm6
  addsd  %xmm6,%xmm4
  movsd  D727(%rip),%xmm6
  mulsd  %xmm5,%xmm6
  mulsd  %xmm0,%xmm4
  addsd  D1726(%rip),%xmm6
  addsd  %xmm6,%xmm4
  mulsd  %xmm0,%xmm4
  addsd  D1439(%rip),%xmm4
  addsd  %xmm4,%xmm3
  jmp    L116
  nopl   0x0(%rax)
L166:
  movapd %xmm3,%xmm6
  mov    $0x1,%eax
  movsd  D358(%rip),%xmm10
  movsd  %xmm2,0x30(%rsp)
  mulsd  %xmm3,%xmm6
  movsd  %xmm7,0x28(%rsp)
  mulsd  D1611(%rip),%xmm6
  movsd  %xmm5,0x20(%rsp)
  mulsd  %xmm11,%xmm8
  movsd  %xmm4,0x18(%rsp)
  movsd  %xmm3,0x10(%rsp)
  addsd  %xmm6,%xmm10
  mulsd  %xmm6,%xmm10
  movsd  D1697(%rip),%xmm6
  addsd  %xmm9,%xmm10
  divsd  %xmm10,%xmm6
  movapd %xmm3,%xmm10
  mulsd  D233(%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    D648(%rip),%rax
  mulsd  0x8(%rsp),%xmm0
  movsd  0x20(%rsp),%xmm5
  movsd  0x18(%rsp),%xmm4
  movsd  0x10(%rsp),%xmm3
  movq   %rax,%xmm9
  jmp    L100
  nopl   0x0(%rax,%rax,1)
L33:
  movapd %xmm6,%xmm0
  mov    $0x1,%eax
  movsd  D358(%rip),%xmm13
  movsd  D233(%rip),%xmm14
  mulsd  %xmm6,%xmm0
  movsd  %xmm2,0x48(%rsp)
  mulsd  D1611(%rip),%xmm0
  movsd  %xmm7,0x40(%rsp)
  mulsd  %xmm6,%xmm14
  movsd  %xmm5,0x38(%rsp)
  mulsd  D476(%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  D358(%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  D1348(%rip),%xmm4
  mulsd  %xmm14,%xmm4
  addsd  D915(%rip),%xmm4
  mulsd  %xmm14,%xmm4
  addsd  D233(%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    D365(%rip),%rax
  mulsd  0x8(%rsp),%xmm4
  movsd  0x38(%rsp),%xmm5
  movsd  0x30(%rsp),%xmm3
  movq   %rax,%xmm10
  mov    D648(%rip),%rax
  movsd  0x28(%rsp),%xmm15
  movsd  0x20(%rsp),%xmm8
  movsd  0x18(%rsp),%xmm11
  movsd  0x10(%rsp),%xmm1
  movq   %rax,%xmm9
  jmp    L90
  nopl   (%rax)
L184:
  movapd %xmm3,%xmm12
  movsd  D358(%rip),%xmm6
  mov    $0x1,%eax
  movsd  %xmm2,0x48(%rsp)
  mulsd  %xmm3,%xmm12
  movsd  %xmm7,0x40(%rsp)
  mulsd  D1611(%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  D1697(%rip),%xmm12
  addsd  %xmm9,%xmm6
  divsd  %xmm6,%xmm12
  subsd  %xmm12,%xmm0
  movapd %xmm3,%xmm12
  mulsd  D233(%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    D365(%rip),%rax
  mulsd  0x8(%rsp),%xmm0
  movsd  0x38(%rsp),%xmm5
  movsd  0x30(%rsp),%xmm4
  movq   %rax,%xmm10
  mov    D648(%rip),%rax
  movsd  0x28(%rsp),%xmm3
  movsd  0x20(%rsp),%xmm8
  movsd  0x18(%rsp),%xmm11
  movsd  0x10(%rsp),%xmm1
  movq   %rax,%xmm9
  jmp    L173
  nopl   0x0(%rax,%rax,1)
L109:
  movapd %xmm3,%xmm6
  movapd %xmm1,%xmm0
  mov    $0x1,%eax
  movsd  D233(%rip),%xmm11
  mulsd  %xmm3,%xmm6
  movsd  %xmm2,0x58(%rsp)
  movsd  D358(%rip),%xmm13
  mulsd  %xmm3,%xmm11
  movsd  %xmm7,0x50(%rsp)
  mulsd  D1611(%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  D476(%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  D358(%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  D1348(%rip),%xmm0
  mulsd  %xmm11,%xmm0
  addsd  D915(%rip),%xmm0
  divsd  %xmm13,%xmm6
  mulsd  %xmm11,%xmm0
  movsd  D576(%rip),%xmm11
  addsd  D233(%rip),%xmm0
  addsd  %xmm4,%xmm6
  movapd %xmm8,%xmm4
  mulsd  %xmm11,%xmm4
  mulsd  %xmm4,%xmm0
  pxor   %xmm4,%xmm4
  cvtsi2sd %eax,%xmm4
  mov    D365(%rip),%rax
  movq   %rax,%xmm10
  mov    D648(%rip),%rax
  divsd  %xmm12,%xmm0
  movq   %rax,%xmm9
  addsd  %xmm6,%xmm0
  mulsd  %xmm0,%xmm4
  jmp    L24
L168:
  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    D648(%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    L139
L145:
  movsd  %xmm4,0x10(%rsp)
  movsd  %xmm1,0x8(%rsp)
  call   <sqrt@plt>
  movsd  0x10(%rsp),%xmm4
  movsd  0x8(%rsp),%xmm1
  jmp    L62
```

tool_calls: name: parse_data
arguments: label: D1467
datatype: f64
name: parse_data
arguments: label: D655
datatype: f64
name: parse_data
arguments: label: D648
datatype: f64
name: parse_data
arguments: label: D843
datatype: f64
name: parse_data
arguments: label: D45
datatype: f64
name: parse_data
arguments: label: D211
datatype: byte[8]
name: parse_data
arguments: label: D558
datatype: byte[8]
name: parse_data
arguments: label: D926
datatype: byte[8]
name: parse_data
arguments: label: D1494
datatype: byte[8]
name: parse_data
arguments: label: D811
datatype: byte[8]
name: parse_data
arguments: label: D859
datatype: byte[8]
name: parse_data
arguments: label: D1837
datatype: byte[8]
name: parse_data
arguments: label: D1788
datatype: byte[8]
name: parse_data
arguments: label: D23
datatype: byte[8]
name: parse_data
arguments: label: D1507
datatype: byte[8]
name: parse_data
arguments: label: D1249
datatype: byte[8]
name: parse_data
arguments: label: D841
datatype: byte[8]
name: parse_data
arguments: label: D1739
datatype: byte[8]
name: parse_data
arguments: label: D85
datatype: byte[8]
name: parse_data
arguments: label: D32
datatype: byte[8]
name: parse_data
arguments: label: D770
datatype: byte[8]
name: parse_data
arguments: label: D1392
datatype: byte[8]
name: parse_data
arguments: label: D511
datatype: byte[8]
name: parse_data
arguments: label: D958
datatype: byte[8]
name: parse_data
arguments: label: D701
datatype: byte[8]
name: parse_data
arguments: label: D345
datatype: byte[8]
name: parse_data
arguments: label: D1343
datatype: f64
name: parse_data
arguments: label: D1271
datatype: f64
name: parse_data
arguments: label: D405
datatype: byte[8]
name: parse_data
arguments: label: D1350
datatype: byte[8]
name: parse_data
arguments: label: D1487
datatype: byte[8]
name: parse_data
arguments: label: D1257
datatype: byte[8]
name: parse_data
arguments: label: D916
datatype: byte[8]
name: parse_data
arguments: label: D1315
datatype: byte[8]
name: parse_data
arguments: label: D435
datatype: byte[8]
name: parse_data
arguments: label: D650
datatype: byte[8]
name: parse_data
arguments: label: D569
datatype: byte[8]
name: parse_data
arguments: label: D1535
datatype: byte[8]
name: parse_data
arguments: label: D628
datatype: byte[8]
name: parse_data
arguments: label: D763
datatype: byte[8]
name: parse_data
arguments: label: D822
datatype: byte[8]
name: parse_data
arguments: label: D966
datatype: byte[8]
name: parse_data
arguments: label: D867
datatype: byte[8]
name: parse_data
arguments: label: D1162
datatype: byte[8]
name: parse_data
arguments: label: D639
datatype: byte[8]
name: parse_data
arguments: label: D1472
datatype: f64
name: parse_data
arguments: label: D1571
datatype: byte[8]
name: parse_data
arguments: label: D1362
datatype: byte[8]
name: parse_data
arguments: label: D181
datatype: byte[8]
name: parse_data
arguments: label: D1430
datatype: byte[8]
name: parse_data
arguments: label: D768
datatype: byte[8]
name: parse_data
arguments: label: D365
datatype: f64
name: parse_data
arguments: label: D576
datatype: f64
name: parse_data
arguments: label: D734
datatype: byte[8]
name: parse_data
arguments: label: D1678
datatype: byte[8]
name: parse_data
arguments: label: D1563
datatype: byte[8]
name: parse_data
arguments: label: D158
datatype: byte[8]
name: parse_data
arguments: label: D509
datatype: byte[8]
name: parse_data
arguments: label: D568
datatype: byte[8]
name: parse_data
arguments: label: D1235
datatype: f64
name: parse_data
arguments: label: D1631
datatype: f64
name: parse_data
arguments: label: D238
datatype: byte[8]
name: parse_data
arguments: label: D957
datatype: f64
name: parse_data
arguments: label: D61
datatype: f64
name: parse_data
arguments: label: D1255
datatype: f64
name: parse_data
arguments: label: D643
datatype: f64
name: parse_data
arguments: label: D1349
datatype: f64
name: parse_data
arguments: label: D884
datatype: f64
name: parse_data
arguments: label: D1101
datatype: f64
name: parse_data
arguments: label: D1697
datatype: f64
name: parse_data
arguments: label: D185
datatype: f64
name: parse_data
arguments: label: D712
datatype: byte[8]
name: parse_data
arguments: label: D1141
datatype: byte[8]
name: parse_data
arguments: label: D1379
datatype: byte[8]
name: parse_data
arguments: label: D251
datatype: byte[8]
name: parse_data
arguments: label: D505
datatype: byte[8]
name: parse_data
arguments: label: D728
datatype: byte[8]
name: parse_data
arguments: label: D935
datatype: byte[8]
name: parse_data
arguments: label: D1250
datatype: byte[8]
name: parse_data
arguments: label: D1195
datatype: f64
name: parse_data
arguments: label: D67
datatype: byte[8]
name: parse_data
arguments: label: D94
datatype: byte[8]
name: parse_data
arguments: label: D1150
datatype: byte[8]
name: parse_data
arguments: label: D421
datatype: f64
name: parse_data
arguments: label: D791
datatype: f64
name: parse_data
arguments: label: D996
datatype: byte[8]
name: parse_data
arguments: label: D1760
datatype: byte[8]
name: parse_data
arguments: label: D755
datatype: byte[8]
name: parse_data
arguments: label: D1798
datatype: byte[8]
name: parse_data
arguments: label: D618
datatype: byte[8]
name: parse_data
arguments: label: D422
datatype: byte[8]
name: parse_data
arguments: label: D242
datatype: byte[8]
name: parse_data
arguments: label: D1261
datatype: byte[8]
name: parse_data
arguments: label: D1233
datatype: byte[8]
name: parse_data
arguments: label: D1062
datatype: byte[8]
name: parse_data
arguments: label: D1229
datatype: byte[8]
name: parse_data
arguments: label: D1093
datatype: byte[8]
name: parse_data
arguments: label: D1011
datatype: byte[8]
name: parse_data
arguments: label: D887
datatype: byte[8]
name: parse_data
arguments: label: D1489
datatype: byte[8]
name: parse_data
arguments: label: D524
datatype: byte[8]
name: parse_data
arguments: label: D105
datatype: byte[8]
name: parse_data
arguments: label: D1132
datatype: byte[8]
name: parse_data
arguments: label: D1477
datatype: byte[8]
name: parse_data
arguments: label: D786
datatype: byte[8]
name: parse_data
arguments: label: D953
datatype: byte[8]
name: parse_data
arguments: label: D555
datatype: byte[8]
name: parse_data
arguments: label: D1612
datatype: byte[8]
name: parse_data
arguments: label: D1126
datatype: byte[8]
name: parse_data
arguments: label: D1812
datatype: byte[8]
name: parse_data
arguments: label: D1018
datatype: byte[8]
name: parse_data
arguments: label: D124
datatype: byte[8]
name: parse_data
arguments: label: D1218
datatype: byte[8]
name: parse_data
arguments: label: D1330
datatype: byte[8]
name: parse_data
arguments: label: D1723
datatype: byte[8]
name: parse_data
arguments: label: D973
datatype: byte[8]
name: parse_data
arguments: label: D112
datatype: byte[8]
name: parse_data
arguments: label: D782
datatype: byte[8]
name: parse_data
arguments: label: D1651
datatype: byte[8]
name: parse_data
arguments: label: D1702
datatype: byte[8]
name: parse_data
arguments: label: D1283
datatype: byte[8]
name: parse_data
arguments: label: D942
datatype: byte[8]
name: parse_data
arguments: label: D338
datatype: byte[8]
name: parse_data
arguments: label: D1135
datatype: byte[8]
name: parse_data
arguments: label: D727
datatype: byte[8]
name: parse_data
arguments: label: D1726
datatype: byte[8]
name: parse_data
arguments: label: D1439
datatype: byte[8]
name: parse_data
arguments: label: D358
datatype: f64
name: parse_data
arguments: label: D1611
datatype: f64
name: parse_data
arguments: label: D233
datatype: f64
name: parse_data
arguments: label: D476
datatype: byte[8]
name: parse_data
arguments: label: D1348
datatype: f64
name: parse_data
arguments: label: D915
datatype: f64

tool: D1467: 1.00024

tool: D655: 0.0162

tool: D648: 1

tool: D843: 15

tool: D45: 9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

tool: D1343: 0.25

tool: D1271: 0.003

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

tool: D1472: 7.112223828976632

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

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

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

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

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

tool: D365: 2

tool: D576: 0.0005

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

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

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

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

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

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

tool: D1235: 0.0056

tool: D1631: 0.1692

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

tool: D957: 2.7081

tool: D61: 0.0636

tool: D1255: 7.0261

tool: D643: 0.0375

tool: D1349: 14.0941

tool: D884: 0.0066

tool: D1101: 25.3851

tool: D1697: 0.008

tool: D185: 0.5

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

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

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

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

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

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

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

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

tool: D1195: 0.6766097

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

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

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

tool: D421: 4

tool: D791: 42.914

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

tool: D358: 1.5

tool: D1611: 400

tool: D233: 10

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

tool: D1348: 30

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