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

```asm
<target_x>:
  endbr64
  push   %rbx
  pxor   %xmm0,%xmm0
  mov    %rsi,%rbx
  sub    $0xe0,%rsp
  movss  D327(%rip),%xmm1
  movss  D325(%rip),%xmm3
  mov    %fs:0x28,%rax
  mov    %rax,0xd8(%rsp)
  xor    %eax,%eax
  movaps %xmm0,0xb0(%rsp)
  movabs $0xc190147bc1900625,%rax
  mov    %rax,0x58(%rsp)
  movabs $0x419004194190147b,%rax
  movq   $0x0,0x60(%rsp)
  movq   $0x0,0x68(%rsp)
  movq   $0x0,0x70(%rsp)
  mov    %rax,0x88(%rsp)
  movq   $0x0,0x90(%rsp)
  movq   $0x0,0x98(%rsp)
  movq   $0x0,0xa0(%rsp)
  movq   $0x0,0xd0(%rsp)
  movss  %xmm1,0x54(%rsp)
  movss  %xmm3,0x84(%rsp)
  movaps %xmm0,0xc0(%rsp)
  test   %edx,%edx
  jle    L14
  sub    $0x1,%edx
  movss  D397(%rip),%xmm2
  xor    %eax,%eax
  movaps %xmm3,%xmm0
  shl    $0x2,%rdx
  lea    0x54(%rsp),%rsi
  lea    0x84(%rsp),%rcx
  jmp    L40
  nopl   0x0(%rax)
L24:
  movss  (%rsi,%rax,1),%xmm1
  movss  (%rcx,%rax,1),%xmm0
  add    $0x4,%rax
L40:
  ucomiss %xmm0,%xmm1
  jp     L59
  je     L46
L59:
  subss  %xmm1,%xmm0
  movaps %xmm2,%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,0xb0(%rsp,%rax,1)
L46:
  cmp    %rdx,%rax
  jne    L24
  movss  0xb0(%rsp),%xmm8
  pxor   %xmm0,%xmm0
  movss  0xb4(%rsp),%xmm7
  movss  0xb8(%rsp),%xmm6
  movss  0xbc(%rsp),%xmm5
L43:
  movss  0x4(%rdi),%xmm2
  movss  (%rdi),%xmm4
  movss  D375(%rip),%xmm9
  movss  0xc(%rdi),%xmm1
  subss  %xmm3,%xmm2
  subss  %xmm3,%xmm4
  movss  D152(%rip),%xmm11
  movss  0x8(%rdi),%xmm3
  subss  D160(%rip),%xmm3
  movss  D216(%rip),%xmm10
  subss  D381(%rip),%xmm1
  movss  D371(%rip),%xmm15
  mulss  %xmm7,%xmm2
  mulss  %xmm8,%xmm4
  mulss  %xmm6,%xmm3
  mulss  %xmm5,%xmm1
  mulss  (%rbx),%xmm8
  addss  %xmm9,%xmm2
  mulss  0x4(%rbx),%xmm7
  addss  %xmm9,%xmm4
  mulss  0x8(%rbx),%xmm6
  addss  %xmm9,%xmm3
  mulss  0xc(%rbx),%xmm5
  mulss  %xmm2,%xmm11
  addss  %xmm9,%xmm1
  movss  D169(%rip),%xmm9
  mulss  %xmm4,%xmm15
  movaps %xmm4,%xmm12
  mulss  %xmm3,%xmm10
  movaps %xmm3,%xmm14
  mulss  %xmm4,%xmm9
  movaps %xmm1,%xmm13
  mulss  %xmm1,%xmm13
  movss  %xmm11,0x8(%rsp)
  mulss  %xmm3,%xmm14
  movss  D447(%rip),%xmm11
  movss  %xmm15,0x18(%rsp)
  mulss  %xmm2,%xmm15
  mulss  %xmm2,%xmm11
  movss  %xmm10,0x10(%rsp)
  movss  D23(%rip),%xmm10
  mulss  %xmm4,%xmm12
  mulss  %xmm4,%xmm10
  subss  D85(%rip),%xmm10
  movss  %xmm11,0xc(%rsp)
  movss  D439(%rip),%xmm11
  mulss  %xmm4,%xmm11
  movss  %xmm11,0x14(%rsp)
  movss  D316(%rip),%xmm11
  mulss  %xmm2,%xmm11
  addss  %xmm10,%xmm11
  movss  D354(%rip),%xmm10
  mulss  %xmm3,%xmm10
  addss  %xmm11,%xmm10
  movss  D411(%rip),%xmm11
  mulss  %xmm1,%xmm11
  addss  %xmm10,%xmm11
  movaps %xmm15,%xmm10
  movaps %xmm9,%xmm15
  mulss  %xmm1,%xmm15
  addss  %xmm11,%xmm10
  movaps %xmm15,%xmm11
  movss  D42(%rip),%xmm15
  addss  %xmm10,%xmm11
  movss  0x8(%rsp),%xmm10
  mulss  %xmm13,%xmm15
  mulss  %xmm3,%xmm10
  addss  %xmm11,%xmm10
  movss  0xc(%rsp),%xmm11
  mulss  %xmm1,%xmm11
  addss  %xmm10,%xmm11
  movss  0x10(%rsp),%xmm10
  mulss  %xmm1,%xmm10
  addss  %xmm11,%xmm10
  movaps %xmm15,%xmm11
  addss  %xmm10,%xmm11
  movss  D203(%rip),%xmm10
  movss  D372(%rip),%xmm15
  mulss  %xmm14,%xmm10
  mulss  %xmm12,%xmm15
  mulss  D140(%rip),%xmm12
  addss  %xmm11,%xmm10
  movaps %xmm15,%xmm11
  movss  D88(%rip),%xmm15
  addss  %xmm10,%xmm11
  mulss  %xmm2,%xmm15
  movaps %xmm2,%xmm10
  mulss  %xmm2,%xmm10
  mulss  D76(%rip),%xmm10
  mulss  %xmm13,%xmm15
  addss  %xmm11,%xmm10
  movss  0x14(%rsp),%xmm11
  mulss  %xmm3,%xmm11
  addss  %xmm10,%xmm11
  movss  D448(%rip),%xmm10
  mulss  %xmm2,%xmm10
  mulss  %xmm14,%xmm10
  addss  %xmm10,%xmm11
  movaps %xmm12,%xmm10
  mulss  %xmm1,%xmm10
  addss  %xmm11,%xmm10
  movaps %xmm1,%xmm11
  mulss  %xmm13,%xmm11
  mulss  D425(%rip),%xmm11
  addss  %xmm15,%xmm10
  addss  %xmm10,%xmm11
  movaps %xmm8,%xmm10
  addss  %xmm0,%xmm10
  addss  %xmm7,%xmm10
  addss  %xmm6,%xmm10
  addss  %xmm5,%xmm10
  ucomiss %xmm0,%xmm10
  jp     L21
  jne    L21
L66:
  movss  %xmm0,(%rbx)
  mov    0xd8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L23
  add    $0xe0,%rsp
  movaps %xmm11,%xmm0
  pop    %rbx
  ret
  nopl   0x0(%rax,%rax,1)
L21:
  movss  %xmm5,0x40(%rsp)
  mulss  %xmm8,%xmm8
  mov    $0x2,%edi
  movss  D371(%rip),%xmm5
  movss  D169(%rip),%xmm0
  movss  %xmm6,0x3c(%rsp)
  movss  D28(%rip),%xmm6
  mulss  %xmm2,%xmm5
  movss  %xmm11,0x4c(%rsp)
  mulss  %xmm1,%xmm0
  movss  %xmm12,0x38(%rsp)
  mulss  %xmm4,%xmm6
  movss  %xmm9,0x34(%rsp)
  movss  %xmm8,0x1c(%rsp)
  mulss  D110(%rip),%xmm4
  movss  %xmm13,0x48(%rsp)
  movaps %xmm5,%xmm8
  movss  %xmm14,0x44(%rsp)
  subss  D179(%rip),%xmm8
  movss  %xmm7,0x20(%rsp)
  movss  %xmm2,0x2c(%rsp)
  addss  %xmm8,%xmm0
  movaps %xmm6,%xmm8
  movss  %xmm3,0x28(%rsp)
  mulss  %xmm1,%xmm4
  movss  %xmm1,0x24(%rsp)
  addss  %xmm0,%xmm8
  movss  D439(%rip),%xmm0
  mulss  %xmm3,%xmm0
  addss  %xmm8,%xmm0
  addss  %xmm4,%xmm0
  call   <pow@plt>
  movss  0x28(%rsp),%xmm3
  movss  D152(%rip),%xmm4
  mov    $0x2,%edi
  mulss  0x1c(%rsp),%xmm0
  movss  D316(%rip),%xmm6
  mulss  %xmm3,%xmm4
  addss  0x18(%rsp),%xmm6
  movss  0x24(%rsp),%xmm1
  movss  %xmm3,0x30(%rsp)
  movss  0x2c(%rsp),%xmm2
  movss  0x44(%rsp),%xmm14
  mulss  D448(%rip),%xmm14
  movss  0x48(%rsp),%xmm13
  movss  0x20(%rsp),%xmm7
  movss  %xmm0,0x1c(%rsp)
  movaps %xmm6,%xmm0
  addss  %xmm4,%xmm0
  movss  D447(%rip),%xmm4
  mulss  %xmm7,%xmm7
  movss  %xmm13,0x28(%rsp)
  mulss  %xmm1,%xmm4
  movss  %xmm7,0x20(%rsp)
  addss  %xmm4,%xmm0
  movss  D278(%rip),%xmm4
  mulss  %xmm2,%xmm4
  addss  %xmm4,%xmm0
  movss  D88(%rip),%xmm4
  mulss  %xmm13,%xmm4
  addss  %xmm14,%xmm0
  addss  %xmm4,%xmm0
  call   <pow@plt>
  mulss  0x20(%rsp),%xmm0
  mov    $0x2,%edi
  movss  0x24(%rsp),%xmm1
  movss  D216(%rip),%xmm4
  movss  0x1c(%rsp),%xmm5
  movss  0x30(%rsp),%xmm3
  movss  0x2c(%rsp),%xmm2
  mulss  %xmm1,%xmm4
  movss  0x3c(%rsp),%xmm6
  movss  %xmm2,0x20(%rsp)
  addss  %xmm0,%xmm5
  movss  D354(%rip),%xmm0
  mulss  %xmm6,%xmm6
  addss  0x8(%rsp),%xmm0
  addss  %xmm4,%xmm0
  movss  D243(%rip),%xmm4
  movss  %xmm5,0x18(%rsp)
  mulss  %xmm3,%xmm4
  movss  %xmm6,0x1c(%rsp)
  mulss  D374(%rip),%xmm3
  addss  %xmm4,%xmm0
  addss  0x14(%rsp),%xmm0
  mulss  %xmm2,%xmm3
  addss  %xmm3,%xmm0
  call   <pow@plt>
  mulss  0x1c(%rsp),%xmm0
  movss  0x24(%rsp),%xmm1
  mov    $0x2,%edi
  addss  0x18(%rsp),%xmm0
  movss  D430(%rip),%xmm3
  movss  0x34(%rsp),%xmm9
  movss  0x20(%rsp),%xmm2
  subss  D198(%rip),%xmm9
  mulss  %xmm1,%xmm3
  movss  0x38(%rsp),%xmm12
  movss  %xmm0,0x8(%rsp)
  movss  0xc(%rsp),%xmm0
  mulss  D441(%rip),%xmm1
  movss  0x28(%rsp),%xmm13
  movss  0x40(%rsp),%xmm5
  mulss  D301(%rip),%xmm13
  addss  %xmm9,%xmm0
  addss  0x10(%rsp),%xmm0
  mulss  %xmm5,%xmm5
  addss  %xmm3,%xmm0
  mulss  %xmm2,%xmm1
  addss  %xmm12,%xmm0
  movss  %xmm5,0x14(%rsp)
  addss  %xmm1,%xmm0
  addss  %xmm13,%xmm0
  call   <pow@plt>
  mulss  0x14(%rsp),%xmm0
  addss  0x8(%rsp),%xmm0
  call   <sqrt@plt>
  movss  0x4c(%rsp),%xmm11
  jmp    L66
  nopl   0x0(%rax,%rax,1)
L14:
  pxor   %xmm0,%xmm0
  movaps %xmm0,%xmm5
  movaps %xmm0,%xmm6
  movaps %xmm0,%xmm7
  movaps %xmm0,%xmm8
  jmp    L43
L23:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D327
type: byte[4]
name: parse_data
arguments: data_tag: D325
type: f32
name: parse_data
arguments: data_tag: D397
type: f32
name: parse_data
arguments: data_tag: D375
type: f32
name: parse_data
arguments: data_tag: D152
type: byte[4]
name: parse_data
arguments: data_tag: D160
type: byte[4]
name: parse_data
arguments: data_tag: D216
type: byte[4]
name: parse_data
arguments: data_tag: D381
type: byte[4]
name: parse_data
arguments: data_tag: D371
type: byte[4]
name: parse_data
arguments: data_tag: D169
type: byte[4]
name: parse_data
arguments: data_tag: D447
type: byte[4]
name: parse_data
arguments: data_tag: D23
type: byte[4]
name: parse_data
arguments: data_tag: D85
type: byte[4]
name: parse_data
arguments: data_tag: D439
type: byte[4]
name: parse_data
arguments: data_tag: D316
type: byte[4]
name: parse_data
arguments: data_tag: D354
type: byte[4]
name: parse_data
arguments: data_tag: D411
type: byte[4]
name: parse_data
arguments: data_tag: D42
type: byte[4]
name: parse_data
arguments: data_tag: D203
type: byte[4]
name: parse_data
arguments: data_tag: D372
type: byte[4]
name: parse_data
arguments: data_tag: D140
type: byte[4]
name: parse_data
arguments: data_tag: D88
type: byte[4]
name: parse_data
arguments: data_tag: D76
type: byte[4]
name: parse_data
arguments: data_tag: D448
type: byte[4]
name: parse_data
arguments: data_tag: D425
type: byte[4]
name: parse_data
arguments: data_tag: D28
type: byte[4]
name: parse_data
arguments: data_tag: D110
type: byte[4]
name: parse_data
arguments: data_tag: D179
type: byte[4]
name: parse_data
arguments: data_tag: D278
type: byte[4]
name: parse_data
arguments: data_tag: D243
type: byte[4]
name: parse_data
arguments: data_tag: D374
type: byte[4]
name: parse_data
arguments: data_tag: D430
type: byte[4]
name: parse_data
arguments: data_tag: D198
type: byte[4]
name: parse_data
arguments: data_tag: D441
type: byte[4]
name: parse_data
arguments: data_tag: D301
type: byte[4]

tool: {"D327": [0x00,0x00,0x70,0xc1]}

tool: D325: 15

tool: D397: 2

tool: D375: 1

tool: {"D152": [0x5b,0xf9,0xe4,0x3d]}

tool: {"D160": [0x7b,0x14,0x90,0x41]}

tool: {"D216": [0x76,0x48,0x27,0xbe]}

tool: {"D381": [0x19,0x04,0x90,0x41]}

tool: {"D371": [0x51,0xaf,0x71,0xbd]}

tool: {"D169": [0xbe,0x7f,0xac,0x3d]}

tool: {"D447": [0x21,0x48,0x12,0x3e]}

tool: {"D23": [0xb0,0xab,0x16,0xc2]}

tool: {"D85": [0xc4,0x8a,0x97,0x40]}

tool: {"D439": [0x46,0x57,0x78,0x3d]}

tool: {"D316": [0x99,0x33,0xb2,0x40]}

tool: {"D354": [0x77,0xb1,0x7b,0x42]}

tool: {"D411": [0x63,0x32,0x12,0xc1]}

tool: {"D42": [0x4c,0x8f,0xdc,0xbd]}

tool: {"D203": [0x77,0x93,0x34,0xbd]}

tool: {"D372": [0xf4,0xdb,0xae,0xbc]}

tool: {"D140": [0x5d,0x6f,0x2b,0x3b]}

tool: {"D88": [0xca,0xf3,0x07,0x3c]}

tool: {"D76": [0x0a,0x6f,0x41,0xbd]}

tool: {"D448": [0x6f,0xe3,0x76,0xbb]}

tool: {"D425": [0xd0,0x73,0x2b,0xbc]}

tool: {"D28": [0xf4,0xdb,0x2e,0xbd]}

tool: {"D110": [0x5d,0x6f,0xab,0x3b]}

tool: {"D179": [0xb0,0xab,0x16,0x42]}

tool: {"D278": [0x0a,0x6f,0xc1,0xbd]}

tool: {"D243": [0x77,0x93,0xb4,0xbd]}

tool: {"D374": [0x6f,0xe3,0xf6,0xbb]}

tool: {"D430": [0x4c,0x8f,0x5c,0xbe]}

tool: {"D198": [0x63,0x32,0x12,0x41]}

tool: {"D441": [0xca,0xf3,0x87,0x3c]}

tool: {"D301": [0xdc,0x96,0x00,0xbd]}

assistant: ```c
float target_x(float *x, float *dx, int m) {
  int ncoeff = 19;
  float avdat = -0.4738893E+01;
  float xmin[10] = {-0.15000E+02, -0.15000E+02, -0.18003E+02, -0.18010E+02, 0.00000E+00, 0.00000E+00, 0.00000E+00, 0.00000E+00, 0.00000E+00, 0.00000E+00};
  float xmax[10] = {0.15000E+02, 0.15000E+02, 0.18010E+02, 0.18002E+02, 0.00000E+00, 0.00000E+00, 0.00000E+00, 0.00000E+00, 0.00000E+00, 0.00000E+00};
  float scale[10] = {0};
  float coeff[20] = {0.32039545E-02, -0.37667664E+02, 0.55687985E+01, 0.62923306E+02, -0.91373014E+01, -0.59005085E-01, 0.84228024E-01, 0.11180373E+00, 0.14285327E+00, -0.16336235E+00, -0.10769519E+00, -0.44085946E-01, -0.21345116E-01, -0.47225036E-01, 0.60630105E-01, -0.37672182E-02, 0.26158907E-02, 0.82978699E-02, -0.10464624E-01, 0.};
  int ientry = 0;
  int i;
  if (ientry == 0) {
    ientry = 1;
    for (i = 0; i < m; i++) {
      if (xmin[i] == xmax[i])
        continue;
      scale[i] = 2. / (xmax[i] - xmin[i]);
    }
  }
  float x1 = 1. + (x[0] - xmax[0]) * scale[0];
  float dx1 = dx[0] * scale[0];
  float x2 = 1. + (x[1] - xmax[1]) * scale[1];
  float dx2 = dx[1] * scale[1];
  float x3 = 1. + (x[2] - xmax[2]) * scale[2];
  float dx3 = dx[2] * scale[2];
  float x4 = 1. + (x[3] - xmax[3]) * scale[3];
  float dx4 = dx[3] * scale[3];
  float x11 = x1;
  float x12 = x11 * x1;
  float x21 = x2;
  float x22 = x21 * x2;
  float x31 = x3;
  float x32 = x31 * x3;
  float x41 = x4;
  float x42 = x41 * x4;
  float x43 = x42 * x4;
  float v_target_x = avdat + coeff[0] + coeff[1] * x11 + coeff[2] * x21 + coeff[3] * x31 + coeff[4] * x41 + coeff[5] * x11 * x21 + coeff[6] * x11 * x41 + coeff[7] * x21 * x31;
  v_target_x = v_target_x + coeff[8] * x21 * x41 + coeff[9] * x31 * x41 + coeff[10] * x42 + coeff[11] * x32 + coeff[12] * x12 + coeff[13] * x22 + coeff[14] * x11 * x31 + coeff[15] * x21 * x32 + coeff[16] * x12 * x41;
  v_target_x = v_target_x + coeff[17] * x21 * x42 + coeff[18] * x43;
  float dxall = 0 + dx1 + dx2 + dx3 + dx4;
  float dv_target_x = dxall == 0 ? 0 : sqrt(+dx1 * dx1 * pow(0 + coeff[1] + coeff[5] * x21 + coeff[6] * x41 + 2 * coeff[12] * x11 + coeff[14] * x31 + 2 * coeff[16] * x11 * x41, 2) + dx2 * dx2 * pow(0 + coeff[2] + coeff[5] * x11 + coeff[7] * x31 + coeff[8] * x41 + 2 * coeff[13] * x21 + coeff[15] * x32 + coeff[17] * x42, 2) + dx3 * dx3 * pow(0 + coeff[3] + coeff[7] * x21 + coeff[9] * x41 + 2 * coeff[11] * x31 + coeff[14] * x11 + 2 * coeff[15] * x31 * x21, 2) + dx4 * dx4 * pow(0 + coeff[4] + coeff[6] * x11 + coeff[8] * x21 + coeff[9] * x31 + 2 * coeff[10] * x41 + coeff[16] * x12 + 2 * coeff[17] * x41 * x21 + 3 * coeff[18] * x42, 2));
  dx[0] = dv_target_x;
  return v_target_x;
}
```