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

```asm
<target_y>:
  endbr64
  push   %rbx
  pxor   %xmm0,%xmm0
  mov    %rsi,%rbx
  sub    $0x70,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  movaps %xmm0,0x40(%rsp)
  test   %edx,%edx
  jle    L76
  movss  D317(%rip),%xmm5
  cmp    $0x1,%edx
  je     L42
  movss  %xmm5,0x44(%rsp)
  cmp    $0x2,%edx
  je     L42
  movl   $0x3d637931,0x48(%rsp)
  cmp    $0x3,%edx
  je     L42
  movl   $0x3d637acf,0x4c(%rsp)
L42:
  movss  0x44(%rsp),%xmm9
  movss  0x48(%rsp),%xmm8
  pxor   %xmm0,%xmm0
  movss  0x4c(%rsp),%xmm6
L78:
  movss  D127(%rip),%xmm3
  movss  (%rdi),%xmm1
  movss  0x4(%rdi),%xmm2
  movss  0xc(%rdi),%xmm4
  subss  %xmm3,%xmm1
  movss  D315(%rip),%xmm7
  movss  D120(%rip),%xmm15
  subss  %xmm3,%xmm2
  movss  0x8(%rdi),%xmm3
  subss  D115(%rip),%xmm3
  movss  D327(%rip),%xmm10
  subss  D76(%rip),%xmm4
  movss  D184(%rip),%xmm11
  mulss  %xmm5,%xmm1
  mulss  %xmm9,%xmm2
  mulss  %xmm8,%xmm3
  mulss  %xmm6,%xmm4
  mulss  (%rbx),%xmm5
  addss  %xmm7,%xmm1
  mulss  0x4(%rbx),%xmm9
  addss  %xmm7,%xmm2
  mulss  0x8(%rbx),%xmm8
  addss  %xmm7,%xmm3
  mulss  0xc(%rbx),%xmm6
  mulss  %xmm1,%xmm15
  addss  %xmm7,%xmm4
  mulss  %xmm2,%xmm10
  movaps %xmm2,%xmm7
  movaps %xmm2,%xmm13
  mulss  %xmm1,%xmm11
  movaps %xmm2,%xmm14
  mulss  %xmm2,%xmm7
  movaps %xmm4,%xmm12
  mulss  %xmm4,%xmm12
  movss  %xmm15,0x10(%rsp)
  movss  D71(%rip),%xmm15
  mulss  %xmm1,%xmm15
  movss  %xmm11,0xc(%rsp)
  movss  D244(%rip),%xmm11
  addss  D297(%rip),%xmm15
  mulss  %xmm7,%xmm13
  mulss  %xmm1,%xmm11
  mulss  D126(%rip),%xmm7
  addss  %xmm15,%xmm10
  movss  D94(%rip),%xmm15
  mulss  %xmm3,%xmm15
  mulss  %xmm13,%xmm14
  addss  %xmm10,%xmm15
  movss  D199(%rip),%xmm10
  mulss  %xmm4,%xmm10
  addss  %xmm15,%xmm10
  movaps %xmm3,%xmm15
  mulss  %xmm3,%xmm15
  mulss  D89(%rip),%xmm15
  addss  %xmm10,%xmm15
  movaps %xmm1,%xmm10
  mulss  %xmm1,%xmm10
  mulss  D245(%rip),%xmm10
  addss  %xmm15,%xmm10
  movss  D69(%rip),%xmm15
  mulss  %xmm12,%xmm15
  addss  %xmm10,%xmm15
  movss  0xc(%rsp),%xmm10
  mulss  %xmm3,%xmm10
  addss  %xmm15,%xmm10
  movss  0x10(%rsp),%xmm15
  mulss  %xmm4,%xmm15
  addss  %xmm10,%xmm15
  movaps %xmm11,%xmm10
  mulss  %xmm2,%xmm10
  addss  %xmm15,%xmm10
  movss  D162(%rip),%xmm15
  addss  %xmm10,%xmm7
  movaps %xmm1,%xmm10
  mulss  %xmm15,%xmm10
  mulss  %xmm12,%xmm10
  addss  %xmm7,%xmm10
  movss  D45(%rip),%xmm7
  mulss  %xmm1,%xmm7
  mulss  %xmm14,%xmm7
  addss  %xmm10,%xmm7
  movaps %xmm5,%xmm10
  addss  %xmm0,%xmm10
  addss  %xmm9,%xmm10
  addss  %xmm8,%xmm10
  addss  %xmm6,%xmm10
  ucomiss %xmm0,%xmm10
  jp     L88
  jne    L88
L14:
  movss  %xmm0,(%rbx)
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L60
  add    $0x70,%rsp
  movaps %xmm7,%xmm0
  pop    %rbx
  ret
  nop
L88:
  movss  %xmm6,0x34(%rsp)
  movss  D184(%rip),%xmm6
  mulss  %xmm5,%xmm5
  movaps %xmm1,%xmm0
  mulss  %xmm15,%xmm12
  mov    $0x2,%esi
  movss  %xmm7,0x3c(%rsp)
  mulss  %xmm3,%xmm6
  movss  %xmm4,0x20(%rsp)
  mulss  D35(%rip),%xmm0
  movss  %xmm8,0x30(%rsp)
  subss  D39(%rip),%xmm0
  movss  %xmm3,0x24(%rsp)
  mulss  D45(%rip),%xmm14
  movss  %xmm5,0x14(%rsp)
  movss  %xmm13,0x38(%rsp)
  movaps %xmm6,%xmm5
  movss  D244(%rip),%xmm6
  movss  %xmm9,0x18(%rsp)
  addss  %xmm0,%xmm5
  movss  D120(%rip),%xmm0
  movss  %xmm11,0x2c(%rsp)
  mulss  %xmm2,%xmm6
  movss  %xmm1,0x28(%rsp)
  mulss  %xmm4,%xmm0
  movss  %xmm2,0x1c(%rsp)
  addss  %xmm5,%xmm0
  movaps %xmm6,%xmm5
  addss  %xmm0,%xmm5
  addss  %xmm12,%xmm5
  addss  %xmm14,%xmm5
  cvttss2si %xmm5,%edi
  call   <pow@plt>
  movss  0x1c(%rsp),%xmm2
  movss  0x38(%rsp),%xmm13
  mov    $0x2,%esi
  mulss  D225(%rip),%xmm13
  movss  0x28(%rsp),%xmm1
  mulss  D201(%rip),%xmm2
  movss  0x2c(%rsp),%xmm11
  subss  D58(%rip),%xmm11
  movss  0x18(%rsp),%xmm9
  movss  %xmm1,0x1c(%rsp)
  mulss  0x14(%rsp),%xmm0
  mulss  %xmm9,%xmm9
  mulss  %xmm1,%xmm13
  addss  %xmm2,%xmm11
  movss  %xmm0,0x14(%rsp)
  movss  %xmm9,0x18(%rsp)
  addss  %xmm13,%xmm11
  cvttss2si %xmm11,%edi
  call   <pow@plt>
  movss  0x24(%rsp),%xmm3
  mov    $0x2,%esi
  movss  0x30(%rsp),%xmm8
  mulss  0x18(%rsp),%xmm0
  movss  0x14(%rsp),%xmm5
  mulss  D260(%rip),%xmm3
  addss  D94(%rip),%xmm3
  addss  0xc(%rsp),%xmm3
  mulss  %xmm8,%xmm8
  cvttss2si %xmm3,%edi
  addss  %xmm0,%xmm5
  movss  %xmm8,0x18(%rsp)
  movss  %xmm5,0x14(%rsp)
  call   <pow@plt>
  movss  0x20(%rsp),%xmm4
  mov    $0x2,%esi
  movss  D213(%rip),%xmm2
  mulss  0x18(%rsp),%xmm0
  movss  0x1c(%rsp),%xmm1
  mulss  %xmm4,%xmm2
  addss  0x14(%rsp),%xmm0
  movss  0x34(%rsp),%xmm6
  mulss  D155(%rip),%xmm4
  mulss  %xmm6,%xmm6
  movss  %xmm0,0xc(%rsp)
  movss  D199(%rip),%xmm0
  addss  %xmm2,%xmm0
  addss  0x10(%rsp),%xmm0
  mulss  %xmm1,%xmm4
  movss  %xmm6,0x14(%rsp)
  addss  %xmm4,%xmm0
  cvttss2si %xmm0,%edi
  call   <pow@plt>
  mulss  0x14(%rsp),%xmm0
  addss  0xc(%rsp),%xmm0
  call   <sqrt@plt>
  movss  0x3c(%rsp),%xmm7
  jmp    L14
  nopl   0x0(%rax)
L76:
  pxor   %xmm0,%xmm0
  movaps %xmm0,%xmm6
  movaps %xmm0,%xmm8
  movaps %xmm0,%xmm9
  movaps %xmm0,%xmm5
  jmp    L78
L60:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D317
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D127
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D315
type_guessed: f32
name: unpack_data
arguments: data_tag: D120
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D115
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D327
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D76
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D184
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D71
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D244
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D297
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D126
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D94
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D199
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D89
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D245
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D69
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D162
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D45
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D35
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D39
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D225
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D201
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D58
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D260
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D213
type_guessed: byte[4]
name: unpack_data
arguments: data_tag: D155
type_guessed: byte[4]

tool: {"D317": [0x89,0x88,0x88,0x3d]}

tool: {"D127": [0x00,0x00,0x70,0x41]}

tool: D315: 1

tool: {"D120": [0x24,0xf3,0xd4,0x3c]}

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

tool: {"D327": [0x08,0xa5,0x19,0xc2]}

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

tool: {"D184": [0xad,0x6f,0x47,0xbe]}

tool: {"D71": [0x74,0x21,0xbf,0xc0]}

tool: {"D244": [0x3a,0x3e,0xa5,0xbc]}

tool: {"D297": [0x44,0x56,0xbc,0x41]}

tool: {"D126": [0xd4,0x5d,0x78,0xbb]}

tool: {"D94": [0x09,0x27,0x1c,0x41]}

tool: {"D199": [0xc8,0x3a,0x7f,0x42]}

tool: {"D89": [0x45,0x02,0x32,0x3e]}

tool: {"D245": [0x14,0xe0,0x5d,0x3d]}

tool: {"D69": [0x86,0x40,0x2b,0x3c]}

tool: {"D162": [0x95,0x4b,0x7b,0x3b]}

tool: {"D45": [0x1e,0x76,0xfe,0xba]}

tool: {"D35": [0x14,0xe0,0xdd,0x3d]}

tool: {"D39": [0x74,0x21,0xbf,0x40]}

tool: {"D225": [0x1e,0x76,0xfe,0xbb]}

tool: {"D201": [0xd4,0x5d,0xf8,0xbb]}

tool: {"D58": [0x08,0xa5,0x19,0x42]}

tool: {"D260": [0x45,0x02,0xb2,0x3e]}

tool: {"D213": [0x86,0x40,0xab,0x3c]}

tool: {"D155": [0x95,0x4b,0xfb,0x3b]}

assistant: ```c
float target_y(float *x, float *dx, int m) {
  int ncoeff = 14;
  float avdat = 0.2355136E+02;
  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[15] = {-0.92371814E-02, -0.59728336E+01, -0.38411163E+02, 0.97595301E+01, 0.63807404E+02, 0.17383678E+00, 0.54168776E-01, 0.10452395E-01, -0.19476195E+00, 0.25994845E-01, -0.20171273E-01, -0.37897723E-02, 0.38344611E-02, -0.19413864E-02, 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 x23 = x22 * x2;
  float x24 = x23 * x2;
  float x31 = x3;
  float x32 = x31 * x3;
  float x41 = x4;
  float x42 = x41 * x4;
  float v_target_y = avdat + coeff[0] + coeff[1] * x11 + coeff[2] * x21 + coeff[3] * x31 + coeff[4] * x41 + coeff[5] * x32 + coeff[6] * x12 + coeff[7] * x42;
  v_target_y = v_target_y + coeff[8] * x11 * x31 + coeff[9] * x11 * x41 + coeff[10] * x11 * x21 + coeff[11] * x22 + coeff[12] * x11 * x42 + coeff[13] * x11 * x24;
  float dxall = 0 + dx1 + dx2 + dx3 + dx4;
  float dv_target_y = dxall == 0 ? 0 : sqrt(+dx1 * dx1 * pow(0 + coeff[1] + 2 * coeff[6] * x11 + coeff[8] * x31 + coeff[9] * x41 + coeff[10] * x21 + coeff[12] * x42 + coeff[13] * x24, 2) + dx2 * dx2 * pow(0 + coeff[2] + coeff[10] * x11 + 2 * coeff[11] * x21 + 4 * coeff[13] * x23 * x11, 2) + dx3 * dx3 * pow(0 + coeff[3] + 2 * coeff[5] * x31 + coeff[8] * x11, 2) + dx4 * dx4 * pow(0 + coeff[4] + 2 * coeff[7] * x41 + coeff[9] * x11 + 2 * coeff[12] * x41 * x11, 2));
  dx[0] = dv_target_y;
  return v_target_y;
}
```