user: Please show me the C implementation that matches the assembly code listed below:

```asm
<gsw_beta>:
  endbr64
  movapd %xmm0,%xmm6
  pxor   %xmm0,%xmm0
  sub    $0x28,%rsp
  ucomisd %xmm6,%xmm0
  ja     L5
  movapd %xmm6,%xmm11
  sqrtsd %xmm11,%xmm11
L10:
  movsd  D295(%rip),%xmm4
  movsd  D154(%rip),%xmm0
  movapd %xmm6,%xmm5
  movapd %xmm1,%xmm14
  movsd  D288(%rip),%xmm13
  movsd  D428(%rip),%xmm3
  movsd  D42(%rip),%xmm12
  mulsd  %xmm1,%xmm4
  movsd  D83(%rip),%xmm10
  subsd  D383(%rip),%xmm4
  mulsd  %xmm1,%xmm13
  subsd  D568(%rip),%xmm13
  mulsd  %xmm1,%xmm0
  subsd  D545(%rip),%xmm0
  mulsd  %xmm3,%xmm5
  mulsd  %xmm1,%xmm4
  addsd  D380(%rip),%xmm4
  mulsd  %xmm1,%xmm13
  subsd  D306(%rip),%xmm13
  mulsd  %xmm1,%xmm0
  addsd  D300(%rip),%xmm0
  mulsd  %xmm1,%xmm12
  subsd  D262(%rip),%xmm12
  mulsd  %xmm1,%xmm4
  subsd  D200(%rip),%xmm4
  mulsd  %xmm1,%xmm10
  addsd  D85(%rip),%xmm10
  mulsd  %xmm1,%xmm0
  addsd  D444(%rip),%xmm0
  mulsd  %xmm2,%xmm3
  movapd %xmm12,%xmm7
  mulsd  %xmm11,%xmm4
  mulsd  %xmm6,%xmm7
  mulsd  %xmm1,%xmm10
  addsd  D98(%rip),%xmm10
  addsd  %xmm12,%xmm3
  addsd  %xmm13,%xmm4
  mulsd  %xmm1,%xmm10
  subsd  D299(%rip),%xmm10
  mulsd  %xmm2,%xmm3
  mulsd  %xmm6,%xmm4
  mulsd  %xmm1,%xmm10
  subsd  D165(%rip),%xmm10
  addsd  %xmm0,%xmm4
  movsd  D462(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  subsd  D77(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  subsd  D29(%rip),%xmm0
  addsd  %xmm5,%xmm0
  movsd  D205(%rip),%xmm5
  mulsd  %xmm1,%xmm5
  subsd  D189(%rip),%xmm5
  mulsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm5
  subsd  D554(%rip),%xmm5
  addsd  %xmm7,%xmm5
  movsd  D172(%rip),%xmm7
  addsd  %xmm5,%xmm0
  movsd  D136(%rip),%xmm5
  mulsd  %xmm1,%xmm5
  mulsd  %xmm2,%xmm0
  subsd  D74(%rip),%xmm5
  addsd  %xmm0,%xmm4
  movapd %xmm6,%xmm0
  mulsd  %xmm7,%xmm0
  mulsd  %xmm2,%xmm7
  addsd  %xmm0,%xmm5
  movsd  D354(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  subsd  D331(%rip),%xmm0
  mulsd  %xmm1,%xmm5
  subsd  D552(%rip),%xmm5
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm5
  movsd  D137(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  addsd  D267(%rip),%xmm0
  mulsd  %xmm2,%xmm5
  movsd  D556(%rip),%xmm9
  movsd  D439(%rip),%xmm8
  mulsd  %xmm9,%xmm14
  addsd  %xmm9,%xmm7
  mulsd  %xmm1,%xmm0
  subsd  D18(%rip),%xmm0
  mulsd  %xmm1,%xmm7
  subsd  %xmm8,%xmm14
  mulsd  %xmm1,%xmm0
  subsd  D16(%rip),%xmm0
  mulsd  %xmm6,%xmm14
  subsd  %xmm8,%xmm7
  mulsd  %xmm2,%xmm7
  addsd  %xmm14,%xmm0
  movsd  D397(%rip),%xmm14
  mulsd  %xmm6,%xmm14
  addsd  %xmm0,%xmm5
  movsd  D370(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  subsd  D526(%rip),%xmm0
  mulsd  %xmm2,%xmm5
  addsd  %xmm10,%xmm14
  mulsd  %xmm1,%xmm0
  subsd  D28(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  addsd  D248(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  subsd  D255(%rip),%xmm0
  mulsd  %xmm11,%xmm0
  addsd  %xmm14,%xmm0
  movsd  D388(%rip),%xmm14
  mulsd  %xmm1,%xmm14
  addsd  D5(%rip),%xmm14
  mulsd  %xmm6,%xmm0
  mulsd  D4(%rip),%xmm6
  mulsd  %xmm1,%xmm14
  subsd  D56(%rip),%xmm14
  mulsd  %xmm1,%xmm14
  addsd  D411(%rip),%xmm14
  mulsd  %xmm1,%xmm14
  addsd  D243(%rip),%xmm14
  addsd  %xmm14,%xmm0
  addsd  %xmm0,%xmm5
  movsd  D240(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  subsd  D171(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  addsd  D124(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  subsd  D204(%rip),%xmm0
  mulsd  %xmm11,%xmm0
  addsd  %xmm13,%xmm0
  addsd  %xmm3,%xmm0
  movsd  D488(%rip),%xmm3
  mulsd  %xmm1,%xmm3
  subsd  D534(%rip),%xmm3
  mulsd  %xmm5,%xmm0
  mulsd  %xmm1,%xmm3
  subsd  D378(%rip),%xmm3
  mulsd  %xmm1,%xmm3
  addsd  D68(%rip),%xmm3
  mulsd  %xmm1,%xmm3
  subsd  D510(%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
L5:
  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    L10
```

tool_calls: name: parse_data
arguments: data_tag: D295
type: byte[8]
name: parse_data
arguments: data_tag: D154
type: byte[8]
name: parse_data
arguments: data_tag: D288
type: byte[8]
name: parse_data
arguments: data_tag: D428
type: byte[8]
name: parse_data
arguments: data_tag: D42
type: byte[8]
name: parse_data
arguments: data_tag: D83
type: byte[8]
name: parse_data
arguments: data_tag: D383
type: byte[8]
name: parse_data
arguments: data_tag: D568
type: byte[8]
name: parse_data
arguments: data_tag: D545
type: byte[8]
name: parse_data
arguments: data_tag: D380
type: byte[8]
name: parse_data
arguments: data_tag: D306
type: f64
name: parse_data
arguments: data_tag: D300
type: f64
name: parse_data
arguments: data_tag: D262
type: byte[8]
name: parse_data
arguments: data_tag: D200
type: byte[8]
name: parse_data
arguments: data_tag: D85
type: byte[8]
name: parse_data
arguments: data_tag: D444
type: byte[8]
name: parse_data
arguments: data_tag: D98
type: byte[8]
name: parse_data
arguments: data_tag: D299
type: byte[8]
name: parse_data
arguments: data_tag: D165
type: byte[8]
name: parse_data
arguments: data_tag: D462
type: byte[8]
name: parse_data
arguments: data_tag: D77
type: byte[8]
name: parse_data
arguments: data_tag: D29
type: byte[8]
name: parse_data
arguments: data_tag: D205
type: byte[8]
name: parse_data
arguments: data_tag: D189
type: byte[8]
name: parse_data
arguments: data_tag: D554
type: byte[8]
name: parse_data
arguments: data_tag: D172
type: byte[8]
name: parse_data
arguments: data_tag: D136
type: byte[8]
name: parse_data
arguments: data_tag: D74
type: byte[8]
name: parse_data
arguments: data_tag: D354
type: byte[8]
name: parse_data
arguments: data_tag: D331
type: byte[8]
name: parse_data
arguments: data_tag: D552
type: byte[8]
name: parse_data
arguments: data_tag: D137
type: byte[8]
name: parse_data
arguments: data_tag: D267
type: byte[8]
name: parse_data
arguments: data_tag: D556
type: byte[8]
name: parse_data
arguments: data_tag: D439
type: byte[8]
name: parse_data
arguments: data_tag: D18
type: byte[8]
name: parse_data
arguments: data_tag: D16
type: byte[8]
name: parse_data
arguments: data_tag: D397
type: byte[8]
name: parse_data
arguments: data_tag: D370
type: byte[8]
name: parse_data
arguments: data_tag: D526
type: byte[8]
name: parse_data
arguments: data_tag: D28
type: byte[8]
name: parse_data
arguments: data_tag: D248
type: byte[8]
name: parse_data
arguments: data_tag: D255
type: byte[8]
name: parse_data
arguments: data_tag: D388
type: byte[8]
name: parse_data
arguments: data_tag: D5
type: byte[8]
name: parse_data
arguments: data_tag: D4
type: byte[8]
name: parse_data
arguments: data_tag: D56
type: byte[8]
name: parse_data
arguments: data_tag: D411
type: byte[8]
name: parse_data
arguments: data_tag: D243
type: f64
name: parse_data
arguments: data_tag: D240
type: byte[8]
name: parse_data
arguments: data_tag: D171
type: byte[8]
name: parse_data
arguments: data_tag: D124
type: byte[8]
name: parse_data
arguments: data_tag: D204
type: byte[8]
name: parse_data
arguments: data_tag: D488
type: byte[8]
name: parse_data
arguments: data_tag: D534
type: byte[8]
name: parse_data
arguments: data_tag: D378
type: byte[8]
name: parse_data
arguments: data_tag: D68
type: byte[8]
name: parse_data
arguments: data_tag: D510
type: byte[8]

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

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

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

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

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

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

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

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

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

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

tool: D306: 6.698001071123802

tool: D300: 2.839940833161907

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

tool: D243: 1

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

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

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

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

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

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

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

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

tool: {"D510": [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));
}
```