user: Translate the below assembly code into C programming language:

```asm
<gsw_beta>:
  endbr64
  sub    $0x28,%rsp
  movapd %xmm0,%xmm6
  movsd  %xmm0,0x8(%rsp)
  movsd  %xmm1,0x10(%rsp)
  movsd  %xmm2,0x18(%rsp)
  pxor   %xmm0,%xmm0
  ucomisd %xmm6,%xmm0
  ja     L9
  sqrtsd %xmm6,%xmm6
  movapd %xmm6,%xmm8
L16:
  movsd  0x10(%rsp),%xmm12
  movapd %xmm12,%xmm10
  mulsd  D133(%rip),%xmm10
  subsd  D325(%rip),%xmm10
  mulsd  %xmm12,%xmm10
  subsd  D289(%rip),%xmm10
  movapd %xmm12,%xmm9
  mulsd  D372(%rip),%xmm9
  subsd  D359(%rip),%xmm9
  movapd %xmm12,%xmm2
  mulsd  D30(%rip),%xmm2
  subsd  D471(%rip),%xmm2
  mulsd  %xmm12,%xmm2
  addsd  D56(%rip),%xmm2
  mulsd  %xmm12,%xmm2
  subsd  D65(%rip),%xmm2
  mulsd  %xmm8,%xmm2
  addsd  %xmm10,%xmm2
  movsd  0x8(%rsp),%xmm14
  mulsd  %xmm14,%xmm2
  movapd %xmm12,%xmm0
  mulsd  D516(%rip),%xmm0
  subsd  D158(%rip),%xmm0
  mulsd  %xmm12,%xmm0
  addsd  D491(%rip),%xmm0
  mulsd  %xmm12,%xmm0
  addsd  D368(%rip),%xmm0
  addsd  %xmm0,%xmm2
  movapd %xmm12,%xmm0
  mulsd  D477(%rip),%xmm0
  subsd  D430(%rip),%xmm0
  mulsd  %xmm12,%xmm0
  subsd  D433(%rip),%xmm0
  movsd  D93(%rip),%xmm1
  movapd %xmm14,%xmm3
  mulsd  %xmm1,%xmm3
  addsd  %xmm3,%xmm0
  movsd  0x18(%rsp),%xmm15
  mulsd  %xmm15,%xmm0
  movapd %xmm12,%xmm3
  mulsd  D265(%rip),%xmm3
  subsd  D524(%rip),%xmm3
  mulsd  %xmm12,%xmm3
  subsd  D198(%rip),%xmm3
  movapd %xmm14,%xmm4
  mulsd  %xmm9,%xmm4
  addsd  %xmm4,%xmm3
  addsd  %xmm3,%xmm0
  mulsd  %xmm15,%xmm0
  addsd  %xmm0,%xmm2
  movapd %xmm12,%xmm7
  mulsd  D326(%rip),%xmm7
  addsd  D160(%rip),%xmm7
  mulsd  %xmm12,%xmm7
  addsd  D300(%rip),%xmm7
  mulsd  %xmm12,%xmm7
  subsd  D23(%rip),%xmm7
  mulsd  %xmm12,%xmm7
  subsd  D231(%rip),%xmm7
  movapd %xmm12,%xmm3
  mulsd  D178(%rip),%xmm3
  subsd  D341(%rip),%xmm3
  movsd  D126(%rip),%xmm4
  movapd %xmm14,%xmm0
  mulsd  %xmm4,%xmm0
  addsd  %xmm0,%xmm3
  mulsd  %xmm12,%xmm3
  subsd  D22(%rip),%xmm3
  movapd %xmm12,%xmm0
  mulsd  D439(%rip),%xmm0
  subsd  D398(%rip),%xmm0
  mulsd  %xmm15,%xmm0
  addsd  %xmm0,%xmm3
  mulsd  %xmm15,%xmm3
  movapd %xmm12,%xmm0
  mulsd  D110(%rip),%xmm0
  addsd  D453(%rip),%xmm0
  mulsd  %xmm12,%xmm0
  subsd  D564(%rip),%xmm0
  mulsd  %xmm12,%xmm0
  subsd  D105(%rip),%xmm0
  movsd  D333(%rip),%xmm6
  movapd %xmm12,%xmm11
  mulsd  %xmm6,%xmm11
  movsd  D395(%rip),%xmm5
  subsd  %xmm5,%xmm11
  mulsd  %xmm14,%xmm11
  addsd  %xmm11,%xmm0
  addsd  %xmm0,%xmm3
  mulsd  %xmm15,%xmm3
  movapd %xmm12,%xmm0
  mulsd  D409(%rip),%xmm0
  subsd  D360(%rip),%xmm0
  mulsd  %xmm12,%xmm0
  subsd  D119(%rip),%xmm0
  mulsd  %xmm12,%xmm0
  addsd  D17(%rip),%xmm0
  mulsd  %xmm12,%xmm0
  subsd  D192(%rip),%xmm0
  mulsd  %xmm8,%xmm0
  movapd %xmm14,%xmm11
  mulsd  D269(%rip),%xmm11
  addsd  %xmm7,%xmm11
  addsd  %xmm11,%xmm0
  mulsd  %xmm14,%xmm0
  movapd %xmm12,%xmm11
  mulsd  D62(%rip),%xmm11
  addsd  D169(%rip),%xmm11
  mulsd  %xmm12,%xmm11
  subsd  D567(%rip),%xmm11
  mulsd  %xmm12,%xmm11
  addsd  D206(%rip),%xmm11
  mulsd  %xmm12,%xmm11
  addsd  D330(%rip),%xmm11
  addsd  %xmm11,%xmm0
  addsd  %xmm0,%xmm3
  movapd %xmm12,%xmm0
  mulsd  D498(%rip),%xmm0
  subsd  D159(%rip),%xmm0
  mulsd  %xmm12,%xmm0
  addsd  D100(%rip),%xmm0
  mulsd  %xmm12,%xmm0
  subsd  D518(%rip),%xmm0
  mulsd  %xmm8,%xmm0
  addsd  %xmm10,%xmm0
  mulsd  %xmm15,%xmm1
  addsd  %xmm9,%xmm1
  mulsd  %xmm15,%xmm1
  addsd  %xmm1,%xmm0
  mulsd  %xmm3,%xmm0
  movapd %xmm12,%xmm1
  mulsd  D400(%rip),%xmm1
  subsd  D474(%rip),%xmm1
  mulsd  %xmm12,%xmm1
  subsd  D375(%rip),%xmm1
  mulsd  %xmm12,%xmm1
  addsd  D358(%rip),%xmm1
  mulsd  %xmm12,%xmm1
  subsd  D520(%rip),%xmm1
  mulsd  %xmm8,%xmm1
  addsd  %xmm7,%xmm1
  movapd %xmm14,%xmm7
  mulsd  D461(%rip),%xmm7
  addsd  %xmm7,%xmm1
  mulsd  %xmm15,%xmm4
  addsd  %xmm6,%xmm4
  mulsd  %xmm12,%xmm4
  subsd  %xmm5,%xmm4
  mulsd  %xmm15,%xmm4
  addsd  %xmm4,%xmm1
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  mulsd  %xmm3,%xmm2
  divsd  %xmm2,%xmm0
  add    $0x28,%rsp
  ret
L9:
  movsd  0x8(%rsp),%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm8
  jmp    L16
```

tool_calls: name: read_data
arguments: label: D133
data_type: byte[8]
name: read_data
arguments: label: D325
data_type: byte[8]
name: read_data
arguments: label: D289
data_type: f64
name: read_data
arguments: label: D372
data_type: byte[8]
name: read_data
arguments: label: D359
data_type: byte[8]
name: read_data
arguments: label: D30
data_type: byte[8]
name: read_data
arguments: label: D471
data_type: byte[8]
name: read_data
arguments: label: D56
data_type: byte[8]
name: read_data
arguments: label: D65
data_type: byte[8]
name: read_data
arguments: label: D516
data_type: byte[8]
name: read_data
arguments: label: D158
data_type: byte[8]
name: read_data
arguments: label: D491
data_type: f64
name: read_data
arguments: label: D368
data_type: byte[8]
name: read_data
arguments: label: D477
data_type: byte[8]
name: read_data
arguments: label: D430
data_type: byte[8]
name: read_data
arguments: label: D433
data_type: byte[8]
name: read_data
arguments: label: D93
data_type: byte[8]
name: read_data
arguments: label: D265
data_type: byte[8]
name: read_data
arguments: label: D524
data_type: byte[8]
name: read_data
arguments: label: D198
data_type: byte[8]
name: read_data
arguments: label: D326
data_type: byte[8]
name: read_data
arguments: label: D160
data_type: byte[8]
name: read_data
arguments: label: D300
data_type: byte[8]
name: read_data
arguments: label: D23
data_type: byte[8]
name: read_data
arguments: label: D231
data_type: byte[8]
name: read_data
arguments: label: D178
data_type: byte[8]
name: read_data
arguments: label: D341
data_type: byte[8]
name: read_data
arguments: label: D126
data_type: byte[8]
name: read_data
arguments: label: D22
data_type: byte[8]
name: read_data
arguments: label: D439
data_type: byte[8]
name: read_data
arguments: label: D398
data_type: byte[8]
name: read_data
arguments: label: D110
data_type: byte[8]
name: read_data
arguments: label: D453
data_type: byte[8]
name: read_data
arguments: label: D564
data_type: byte[8]
name: read_data
arguments: label: D105
data_type: byte[8]
name: read_data
arguments: label: D333
data_type: byte[8]
name: read_data
arguments: label: D395
data_type: byte[8]
name: read_data
arguments: label: D409
data_type: byte[8]
name: read_data
arguments: label: D360
data_type: byte[8]
name: read_data
arguments: label: D119
data_type: byte[8]
name: read_data
arguments: label: D17
data_type: byte[8]
name: read_data
arguments: label: D192
data_type: byte[8]
name: read_data
arguments: label: D269
data_type: byte[8]
name: read_data
arguments: label: D62
data_type: byte[8]
name: read_data
arguments: label: D169
data_type: byte[8]
name: read_data
arguments: label: D567
data_type: byte[8]
name: read_data
arguments: label: D206
data_type: byte[8]
name: read_data
arguments: label: D330
data_type: f64
name: read_data
arguments: label: D498
data_type: byte[8]
name: read_data
arguments: label: D159
data_type: byte[8]
name: read_data
arguments: label: D100
data_type: byte[8]
name: read_data
arguments: label: D518
data_type: byte[8]
name: read_data
arguments: label: D400
data_type: byte[8]
name: read_data
arguments: label: D474
data_type: byte[8]
name: read_data
arguments: label: D375
data_type: byte[8]
name: read_data
arguments: label: D358
data_type: byte[8]
name: read_data
arguments: label: D520
data_type: byte[8]
name: read_data
arguments: label: D461
data_type: byte[8]

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

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

tool: D289: 6.698001071123802

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

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

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

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

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

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

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

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

tool: D491: 2.839940833161907

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

tool: D330: 1

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

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

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

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

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

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

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

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

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

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

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