user: Converte this assembly snippet into its equivalent C code:

```asm
<gsw_beta>:
  endbr64
  movapd %xmm0,%xmm6
  pxor   %xmm0,%xmm0
  sub    $0x28,%rsp
  ucomisd %xmm6,%xmm0
  ja     L14
  movapd %xmm6,%xmm11
  sqrtsd %xmm11,%xmm11
L5:
  movsd  D183(%rip),%xmm4
  movsd  D415(%rip),%xmm0
  movapd %xmm6,%xmm5
  movapd %xmm1,%xmm14
  movsd  D132(%rip),%xmm13
  movsd  D280(%rip),%xmm3
  movsd  D371(%rip),%xmm12
  mulsd  %xmm1,%xmm4
  movsd  D350(%rip),%xmm10
  subsd  D143(%rip),%xmm4
  mulsd  %xmm1,%xmm13
  subsd  D193(%rip),%xmm13
  mulsd  %xmm1,%xmm0
  subsd  D483(%rip),%xmm0
  mulsd  %xmm3,%xmm5
  mulsd  %xmm1,%xmm4
  addsd  D230(%rip),%xmm4
  mulsd  %xmm1,%xmm13
  subsd  D67(%rip),%xmm13
  mulsd  %xmm1,%xmm0
  addsd  D336(%rip),%xmm0
  mulsd  %xmm1,%xmm12
  subsd  D345(%rip),%xmm12
  mulsd  %xmm1,%xmm4
  subsd  D73(%rip),%xmm4
  mulsd  %xmm1,%xmm10
  addsd  D197(%rip),%xmm10
  mulsd  %xmm1,%xmm0
  addsd  D191(%rip),%xmm0
  mulsd  %xmm2,%xmm3
  movapd %xmm12,%xmm7
  mulsd  %xmm11,%xmm4
  mulsd  %xmm6,%xmm7
  mulsd  %xmm1,%xmm10
  addsd  D354(%rip),%xmm10
  addsd  %xmm12,%xmm3
  addsd  %xmm13,%xmm4
  mulsd  %xmm1,%xmm10
  subsd  D340(%rip),%xmm10
  mulsd  %xmm2,%xmm3
  mulsd  %xmm6,%xmm4
  mulsd  %xmm1,%xmm10
  subsd  D353(%rip),%xmm10
  addsd  %xmm0,%xmm4
  movsd  D487(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  subsd  D252(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  subsd  D429(%rip),%xmm0
  addsd  %xmm5,%xmm0
  movsd  D489(%rip),%xmm5
  mulsd  %xmm1,%xmm5
  subsd  D247(%rip),%xmm5
  mulsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm5
  subsd  D215(%rip),%xmm5
  addsd  %xmm7,%xmm5
  movsd  D339(%rip),%xmm7
  addsd  %xmm5,%xmm0
  movsd  D395(%rip),%xmm5
  mulsd  %xmm1,%xmm5
  mulsd  %xmm2,%xmm0
  subsd  D315(%rip),%xmm5
  addsd  %xmm0,%xmm4
  movapd %xmm6,%xmm0
  mulsd  %xmm7,%xmm0
  mulsd  %xmm2,%xmm7
  addsd  %xmm0,%xmm5
  movsd  D335(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  subsd  D554(%rip),%xmm0
  mulsd  %xmm1,%xmm5
  subsd  D326(%rip),%xmm5
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm5
  movsd  D178(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  addsd  D436(%rip),%xmm0
  mulsd  %xmm2,%xmm5
  movsd  D241(%rip),%xmm9
  movsd  D286(%rip),%xmm8
  mulsd  %xmm9,%xmm14
  addsd  %xmm9,%xmm7
  mulsd  %xmm1,%xmm0
  subsd  D427(%rip),%xmm0
  mulsd  %xmm1,%xmm7
  subsd  %xmm8,%xmm14
  mulsd  %xmm1,%xmm0
  subsd  D533(%rip),%xmm0
  mulsd  %xmm6,%xmm14
  subsd  %xmm8,%xmm7
  mulsd  %xmm2,%xmm7
  addsd  %xmm14,%xmm0
  movsd  D575(%rip),%xmm14
  mulsd  %xmm6,%xmm14
  addsd  %xmm0,%xmm5
  movsd  D421(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  subsd  D159(%rip),%xmm0
  mulsd  %xmm2,%xmm5
  addsd  %xmm10,%xmm14
  mulsd  %xmm1,%xmm0
  subsd  D106(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  addsd  D122(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  subsd  D32(%rip),%xmm0
  mulsd  %xmm11,%xmm0
  addsd  %xmm14,%xmm0
  movsd  D579(%rip),%xmm14
  mulsd  %xmm1,%xmm14
  addsd  D451(%rip),%xmm14
  mulsd  %xmm6,%xmm0
  mulsd  D545(%rip),%xmm6
  mulsd  %xmm1,%xmm14
  subsd  D203(%rip),%xmm14
  mulsd  %xmm1,%xmm14
  addsd  D276(%rip),%xmm14
  mulsd  %xmm1,%xmm14
  addsd  D71(%rip),%xmm14
  addsd  %xmm14,%xmm0
  addsd  %xmm0,%xmm5
  movsd  D278(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  subsd  D417(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  addsd  D127(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  subsd  D272(%rip),%xmm0
  mulsd  %xmm11,%xmm0
  addsd  %xmm13,%xmm0
  addsd  %xmm3,%xmm0
  movsd  D68(%rip),%xmm3
  mulsd  %xmm1,%xmm3
  subsd  D410(%rip),%xmm3
  mulsd  %xmm5,%xmm0
  mulsd  %xmm1,%xmm3
  subsd  D264(%rip),%xmm3
  mulsd  %xmm1,%xmm3
  addsd  D51(%rip),%xmm3
  mulsd  %xmm1,%xmm3
  subsd  D176(%rip),%xmm3
  add    $0x28,%rsp
  mulsd  %xmm11,%xmm3
  addsd  %xmm10,%xmm3
  addsd  %xmm6,%xmm3
  movapd %xmm3,%xmm2
  addsd  %xmm7,%xmm2
  mulsd  %xmm4,%xmm2
  mulsd  %xmm5,%xmm4
  subsd  %xmm2,%xmm0
  divsd  %xmm4,%xmm0
  ret
L14:
  movapd %xmm6,%xmm0
  movsd  %xmm2,0x18(%rsp)
  movsd  %xmm1,0x10(%rsp)
  movsd  %xmm6,0x8(%rsp)
  call   <sqrt@plt>
  movsd  0x18(%rsp),%xmm2
  movsd  0x10(%rsp),%xmm1
  movsd  0x8(%rsp),%xmm6
  movapd %xmm0,%xmm11
  jmp    L5
```

tool_calls: name: extract_symbolic_data
arguments: label: D183
type: byte[8]
name: extract_symbolic_data
arguments: label: D415
type: byte[8]
name: extract_symbolic_data
arguments: label: D132
type: byte[8]
name: extract_symbolic_data
arguments: label: D280
type: byte[8]
name: extract_symbolic_data
arguments: label: D371
type: byte[8]
name: extract_symbolic_data
arguments: label: D350
type: byte[8]
name: extract_symbolic_data
arguments: label: D143
type: byte[8]
name: extract_symbolic_data
arguments: label: D193
type: byte[8]
name: extract_symbolic_data
arguments: label: D483
type: byte[8]
name: extract_symbolic_data
arguments: label: D230
type: byte[8]
name: extract_symbolic_data
arguments: label: D67
type: f64
name: extract_symbolic_data
arguments: label: D336
type: f64
name: extract_symbolic_data
arguments: label: D345
type: byte[8]
name: extract_symbolic_data
arguments: label: D73
type: byte[8]
name: extract_symbolic_data
arguments: label: D197
type: byte[8]
name: extract_symbolic_data
arguments: label: D191
type: byte[8]
name: extract_symbolic_data
arguments: label: D354
type: byte[8]
name: extract_symbolic_data
arguments: label: D340
type: byte[8]
name: extract_symbolic_data
arguments: label: D353
type: byte[8]
name: extract_symbolic_data
arguments: label: D487
type: byte[8]
name: extract_symbolic_data
arguments: label: D252
type: byte[8]
name: extract_symbolic_data
arguments: label: D429
type: byte[8]
name: extract_symbolic_data
arguments: label: D489
type: byte[8]
name: extract_symbolic_data
arguments: label: D247
type: byte[8]
name: extract_symbolic_data
arguments: label: D215
type: byte[8]
name: extract_symbolic_data
arguments: label: D339
type: byte[8]
name: extract_symbolic_data
arguments: label: D395
type: byte[8]
name: extract_symbolic_data
arguments: label: D315
type: byte[8]
name: extract_symbolic_data
arguments: label: D335
type: byte[8]
name: extract_symbolic_data
arguments: label: D554
type: byte[8]
name: extract_symbolic_data
arguments: label: D326
type: byte[8]
name: extract_symbolic_data
arguments: label: D178
type: byte[8]
name: extract_symbolic_data
arguments: label: D436
type: byte[8]
name: extract_symbolic_data
arguments: label: D241
type: byte[8]
name: extract_symbolic_data
arguments: label: D286
type: byte[8]
name: extract_symbolic_data
arguments: label: D427
type: byte[8]
name: extract_symbolic_data
arguments: label: D533
type: byte[8]
name: extract_symbolic_data
arguments: label: D575
type: byte[8]
name: extract_symbolic_data
arguments: label: D421
type: byte[8]
name: extract_symbolic_data
arguments: label: D159
type: byte[8]
name: extract_symbolic_data
arguments: label: D106
type: byte[8]
name: extract_symbolic_data
arguments: label: D122
type: byte[8]
name: extract_symbolic_data
arguments: label: D32
type: byte[8]
name: extract_symbolic_data
arguments: label: D579
type: byte[8]
name: extract_symbolic_data
arguments: label: D451
type: byte[8]
name: extract_symbolic_data
arguments: label: D545
type: byte[8]
name: extract_symbolic_data
arguments: label: D203
type: byte[8]
name: extract_symbolic_data
arguments: label: D276
type: byte[8]
name: extract_symbolic_data
arguments: label: D71
type: f64
name: extract_symbolic_data
arguments: label: D278
type: byte[8]
name: extract_symbolic_data
arguments: label: D417
type: byte[8]
name: extract_symbolic_data
arguments: label: D127
type: byte[8]
name: extract_symbolic_data
arguments: label: D272
type: byte[8]
name: extract_symbolic_data
arguments: label: D68
type: byte[8]
name: extract_symbolic_data
arguments: label: D410
type: byte[8]
name: extract_symbolic_data
arguments: label: D264
type: byte[8]
name: extract_symbolic_data
arguments: label: D51
type: byte[8]
name: extract_symbolic_data
arguments: label: D176
type: byte[8]

tool: {"D183": [0x73,0x33,0x84,0xef,0x4f,0x14,0x86,0x3e]}

tool: {"D415": [0x1f,0x14,0xa5,0x0a,0xda,0x5c,0x53,0x3f]}

tool: {"D132": [0xfc,0x2c,0x45,0x01,0x00,0x83,0x2e,0x3f]}

tool: {"D280": [0x3d,0xae,0x24,0x03,0xdc,0x50,0xe5,0x3d]}

tool: {"D371": [0x0d,0x0d,0x3e,0x7f,0x28,0x13,0xa7,0x3e]}

tool: {"D350": [0x25,0x50,0x24,0x19,0xed,0xe9,0xb3,0xbd]}

tool: {"D143": [0xd6,0xa6,0x84,0xcc,0x10,0xed,0xed,0x3e]}

tool: {"D193": [0xf2,0xa0,0x4f,0x84,0xed,0x94,0x9e,0x3f]}

tool: {"D483": [0x8e,0x15,0x07,0xbe,0xd4,0x1d,0xa0,0x3f]}

tool: {"D230": [0xbf,0xb2,0x6b,0xaa,0x59,0xb2,0x40,0x3f]}

tool: D67: 6.698001071123802

tool: D336: 2.839940833161907

tool: {"D345": [0xea,0x40,0xd6,0x96,0x94,0xae,0x27,0x3f]}

tool: {"D73": [0xfc,0x2d,0x58,0xb1,0x3a,0x6c,0xa4,0x3f]}

tool: {"D197": [0xda,0x54,0xdf,0x5d,0x67,0x5e,0x10,0x3e]}

tool: {"D191": [0x2f,0x19,0x8d,0x99,0xbc,0x3e,0x8f,0x40]}

tool: {"D354": [0x9b,0x60,0x15,0x69,0x6b,0xf3,0x80,0x3e]}

tool: {"D340": [0xbc,0xe6,0xbd,0x4a,0x61,0xfc,0xfc,0x3e]}

tool: {"D353": [0x0f,0x4d,0x4a,0x59,0xcf,0xce,0x7e,0x3f]}

tool: {"D487": [0x18,0xe6,0x61,0x34,0xd2,0x57,0xa7,0xbd]}

tool: {"D252": [0x40,0x72,0xfa,0x98,0x94,0x59,0x55,0x3e]}

tool: {"D429": [0xb4,0x8a,0x75,0x40,0x7b,0xb7,0x94,0x3e]}

tool: {"D489": [0x6e,0xb3,0xdd,0x0b,0xa2,0x41,0xcf,0x3e]}

tool: {"D247": [0xd1,0x33,0xb0,0x73,0xcd,0x84,0x36,0x3f]}

tool: {"D215": [0xb8,0x52,0x81,0xe0,0x61,0xde,0x96,0x3f]}

tool: {"D339": [0x3e,0xd3,0xdc,0x5f,0x9b,0x35,0x09,0x3d]}

tool: {"D395": [0x10,0xf7,0x4c,0x08,0xff,0xfe,0x14,0xbd]}

tool: {"D315": [0x61,0xf3,0x4c,0xa2,0x49,0x59,0xb5,0x3d]}

tool: {"D335": [0x2c,0x35,0x32,0x6d,0xf1,0x75,0x91,0x3c]}

tool: {"D554": [0xeb,0xc5,0x77,0x63,0x5d,0xa0,0xd5,0x3c]}

tool: {"D326": [0x5a,0x66,0xbb,0x13,0x58,0xc2,0xde,0x3d]}

tool: {"D178": [0xb7,0x34,0xcf,0x2a,0x41,0xfc,0x80,0xbd]}

tool: {"D436": [0x58,0xd0,0xf2,0x4f,0xfe,0x69,0x2b,0x3e]}

tool: {"D241": [0xe8,0x94,0x78,0xf4,0xa0,0x57,0x05,0x3e]}

tool: {"D286": [0x8f,0x77,0xaa,0x37,0x2c,0xaa,0x7d,0x3e]}

tool: {"D427": [0xa4,0xa8,0x06,0xd8,0x74,0x8f,0x95,0x3e]}

tool: {"D533": [0x9b,0xcc,0x5a,0x74,0xff,0xc0,0xfc,0x3e]}

tool: {"D575": [0xf6,0x68,0xb1,0x23,0xf5,0xba,0xd6,0x3e]}

tool: {"D421": [0x8b,0x87,0x54,0x54,0x4b,0x95,0x87,0x3d]}

tool: {"D159": [0x61,0xf7,0x2f,0x26,0x08,0x7a,0xc9,0x3d]}

tool: {"D106": [0x57,0x27,0x46,0x6b,0x35,0x7a,0x40,0x3e]}

tool: {"D122": [0x2d,0xaf,0xa5,0xc9,0x09,0x83,0x99,0x3e]}

tool: {"D32": [0xe4,0x53,0x23,0x49,0xa0,0x51,0x01,0x3f]}

tool: {"D579": [0x40,0x56,0x29,0xd6,0xcf,0x2b,0x07,0x3e]}

tool: {"D451": [0x42,0xd1,0x39,0xf4,0x45,0xc8,0xb2,0x3e]}

tool: {"D545": [0xf6,0x68,0xb1,0x23,0xf5,0xba,0xe6,0x3e]}

tool: {"D203": [0x63,0xc6,0xe2,0xf0,0x2d,0xa3,0xf8,0x3e]}

tool: {"D276": [0xb6,0xcd,0x91,0xdc,0x8a,0xbd,0x66,0x3f]}

tool: D71: 1

tool: {"D278": [0x97,0x26,0xa3,0xf3,0x3b,0x8f,0x90,0x3e]}

tool: {"D417": [0x1f,0x7d,0x63,0x99,0xcc,0x71,0xf6,0x3e]}

tool: {"D127": [0x1f,0x8c,0xa1,0x7f,0x86,0x0b,0x49,0x3f]}

tool: {"D272": [0xfa,0x44,0x04,0x0a,0x58,0xa2,0xae,0x3f]}

tool: {"D68": [0xa9,0x65,0x3f,0x7f,0xf8,0xaf,0x91,0x3d]}

tool: {"D410": [0x89,0xf9,0xa3,0x1c,0x86,0x1b,0xd3,0x3d]}

tool: {"D264": [0x06,0x3b,0xe9,0x20,0x50,0xb7,0x48,0x3e]}

tool: {"D51": [0x61,0x43,0x3c,0x57,0x47,0x22,0xa3,0x3e]}

tool: {"D176": [0xd7,0xfd,0xb4,0x6d,0x70,0xfa,0x09,0x3f]}

assistant: ```c
double gsw_beta(double sa, double ct, double p) {
  double v01 = 9.998420897506056e+2, v02 = 2.839940833161907e0, v03 = -3.147759265588511e-2, v04 = 1.181805545074306e-3, v05 = -6.698001071123802e0, v06 = -2.986498947203215e-2, v07 = 2.327859407479162e-4, v08 = -3.988822378968490e-2, v09 = 5.095422573880500e-4, v10 = -1.426984671633621e-5, v11 = 1.645039373682922e-7, v12 = -2.233269627352527e-2, v13 = -3.436090079851880e-4, v14 = 3.726050720345733e-6, v15 = -1.806789763745328e-4, v16 = 6.876837219536232e-7, v17 = -3.087032500374211e-7, v18 = -1.988366587925593e-8, v19 = -1.061519070296458e-11, v20 = 1.550932729220080e-10, v21 = 1.0e0, v22 = 2.775927747785646e-3, v23 = -2.349607444135925e-5, v24 = 1.119513357486743e-6, v25 = 6.743689325042773e-10, v26 = -7.521448093615448e-3, v27 = -2.764306979894411e-5, v28 = 1.262937315098546e-7, v29 = 9.527875081696435e-10, v30 = -1.811147201949891e-11, v31 = -3.303308871386421e-5, v32 = 3.801564588876298e-7, v33 = -7.672876869259043e-9, v34 = -4.634182341116144e-11, v35 = 2.681097235569143e-12, v36 = 5.419326551148740e-6, v37 = -2.742185394906099e-5, v38 = -3.212746477974189e-7, v39 = 3.191413910561627e-9, v40 = -1.931012931541776e-12, v41 = -1.105097577149576e-7, v42 = 6.211426728363857e-10, v43 = -1.119011592875110e-10, v44 = -1.941660213148725e-11, v45 = -1.864826425365600e-14, v46 = 1.119522344879478e-14, v47 = -1.200507748551599e-15, v48 = 6.057902487546866e-17, b01 = -6.698001071123802e0, b02 = -2.986498947203215e-2, b03 = 2.327859407479162e-4, b04 = -5.983233568452735e-2, b05 = 7.643133860820750e-4, b06 = -2.140477007450431e-5, b07 = 2.467559060524383e-7, b08 = -1.806789763745328e-4, b09 = 6.876837219536232e-7, b10 = 1.550932729220080e-10, b11 = -7.521448093615448e-3, b12 = -2.764306979894411e-5, b13 = 1.262937315098546e-7, b14 = 9.527875081696435e-10, b15 = -1.811147201949891e-11, b16 = -4.954963307079632e-5, b17 = 5.702346883314446e-7, b18 = -1.150931530388857e-8, b19 = -6.951273511674217e-11, b20 = 4.021645853353715e-12, b21 = 1.083865310229748e-5, b22 = -1.105097577149576e-7, b23 = 6.211426728363857e-10, b24 = 1.119522344879478e-14;
  double sqrtsa, v_hat_denominator, v_hat_numerator;
  double dvhatden_dsa, dvhatnum_dsa;
  sqrtsa = sqrt(sa);
  v_hat_denominator = v01 + ct * (v02 + ct * (v03 + v04 * ct)) + sa * (v05 + ct * (v06 + v07 * ct) + sqrtsa * (v08 + ct * (v09 + ct * (v10 + v11 * ct)))) + p * (v12 + ct * (v13 + v14 * ct) + sa * (v15 + v16 * ct) + p * (v17 + ct * (v18 + v19 * ct) + v20 * sa));
  v_hat_numerator = v21 + ct * (v22 + ct * (v23 + ct * (v24 + v25 * ct))) + sa * (v26 + ct * (v27 + ct * (v28 + ct * (v29 + v30 * ct))) + v36 * sa + sqrtsa * (v31 + ct * (v32 + ct * (v33 + ct * (v34 + v35 * ct))))) + p * (v37 + ct * (v38 + ct * (v39 + v40 * ct)) + sa * (v41 + v42 * ct) + p * (v43 + ct * (v44 + v45 * ct + v46 * sa) + p * (v47 + v48 * ct)));
  dvhatden_dsa = b01 + ct * (b02 + b03 * ct) + sqrtsa * (b04 + ct * (b05 + ct * (b06 + b07 * ct))) + p * (b08 + b09 * ct + b10 * p);
  dvhatnum_dsa = b11 + ct * (b12 + ct * (b13 + ct * (b14 + b15 * ct))) + sqrtsa * (b16 + ct * (b17 + ct * (b18 + ct * (b19 + b20 * ct)))) + b21 * sa + p * (b22 + ct * (b23 + b24 * p));
  return ((v_hat_numerator * dvhatden_dsa - v_hat_denominator * dvhatnum_dsa) / (v_hat_numerator * v_hat_denominator));
}
```