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

```asm
<target_x>:
  endbr64
  push   %r14
  push   %rbx
  sub    $0xb8,%rsp
  mov    %rdi,%rcx
  mov    %rsi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  movss  D67(%rip),%xmm0
  movss  %xmm0,0x20(%rsp)
  movss  %xmm0,0x24(%rsp)
  movl   $0xc1900831,0x28(%rsp)
  movl   $0xc1900c4a,0x2c(%rsp)
  movl   $0x0,0x30(%rsp)
  movl   $0x0,0x34(%rsp)
  movl   $0x0,0x38(%rsp)
  movl   $0x0,0x3c(%rsp)
  movl   $0x0,0x40(%rsp)
  movl   $0x0,0x44(%rsp)
  movss  D32(%rip),%xmm0
  movss  %xmm0,0x50(%rsp)
  movss  %xmm0,0x54(%rsp)
  movl   $0x41900625,0x58(%rsp)
  movl   $0x4190020c,0x5c(%rsp)
  movl   $0x0,0x60(%rsp)
  movl   $0x0,0x64(%rsp)
  movl   $0x0,0x68(%rsp)
  movl   $0x0,0x6c(%rsp)
  movl   $0x0,0x70(%rsp)
  movl   $0x0,0x74(%rsp)
  movq   $0x0,0x80(%rsp)
  movq   $0x0,0x88(%rsp)
  movq   $0x0,0x90(%rsp)
  movq   $0x0,0x98(%rsp)
  movq   $0x0,0xa0(%rsp)
  test   %edx,%edx
  jle    L1
  mov    %edx,%edx
  movss  D19(%rip),%xmm2
  jmp    L84
L86:
  subss  %xmm1,%xmm0
  movaps %xmm2,%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,0x80(%rsp,%rax,4)
L74:
  add    $0x1,%rax
  cmp    %rdx,%rax
  je     L1
L84:
  movss  0x20(%rsp,%rax,4),%xmm1
  movss  0x50(%rsp,%rax,4),%xmm0
  ucomiss %xmm0,%xmm1
  jp     L86
  jne    L86
  jmp    L74
L1:
  movss  0x80(%rsp),%xmm5
  movss  (%rcx),%xmm1
  movss  D32(%rip),%xmm2
  subss  %xmm2,%xmm1
  mulss  %xmm5,%xmm1
  movss  D69(%rip),%xmm4
  addss  %xmm4,%xmm1
  mulss  (%rbx),%xmm5
  movss  0x84(%rsp),%xmm0
  movss  0x4(%rcx),%xmm3
  subss  %xmm2,%xmm3
  mulss  %xmm0,%xmm3
  addss  %xmm4,%xmm3
  mulss  0x4(%rbx),%xmm0
  movaps %xmm0,%xmm8
  movss  %xmm0,0xc(%rsp)
  movss  0x88(%rsp),%xmm0
  movss  0x8(%rcx),%xmm2
  subss  D162(%rip),%xmm2
  mulss  %xmm0,%xmm2
  addss  %xmm4,%xmm2
  mulss  0x8(%rbx),%xmm0
  movaps %xmm0,%xmm9
  movss  %xmm0,0x10(%rsp)
  movss  0x8c(%rsp),%xmm6
  movss  0xc(%rcx),%xmm0
  subss  D158(%rip),%xmm0
  mulss  %xmm6,%xmm0
  movaps %xmm0,%xmm7
  addss  %xmm4,%xmm7
  movss  %xmm7,0x14(%rsp)
  mulss  0xc(%rbx),%xmm6
  movaps %xmm6,%xmm10
  movss  %xmm6,0x18(%rsp)
  movaps %xmm1,%xmm6
  mulss  D171(%rip),%xmm6
  movss  %xmm6,0x4(%rsp)
  movaps %xmm2,%xmm4
  mulss  D142(%rip),%xmm4
  movss  %xmm4,0x8(%rsp)
  mulss  D56(%rip),%xmm1
  addss  D27(%rip),%xmm1
  movaps %xmm3,%xmm0
  mulss  D159(%rip),%xmm0
  addss  %xmm0,%xmm1
  mulss  D96(%rip),%xmm2
  addss  %xmm2,%xmm1
  movaps %xmm7,%xmm0
  mulss  D0(%rip),%xmm0
  addss  %xmm0,%xmm1
  mulss  %xmm3,%xmm6
  addss  %xmm6,%xmm1
  mulss  %xmm7,%xmm4
  addss  %xmm4,%xmm1
  movd   %xmm1,%r14d
  pxor   %xmm1,%xmm1
  movaps %xmm5,%xmm0
  addss  %xmm1,%xmm0
  addss  %xmm8,%xmm0
  addss  %xmm9,%xmm0
  addss  %xmm10,%xmm0
  ucomiss %xmm1,%xmm0
  jp     L85
  movaps %xmm1,%xmm0
  jne    L85
L13:
  movss  %xmm0,(%rbx)
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L44
  movd   %r14d,%xmm0
  add    $0xb8,%rsp
  pop    %rbx
  pop    %r14
  ret
L85:
  mulss  %xmm5,%xmm5
  movss  %xmm5,0x1c(%rsp)
  mulss  D171(%rip),%xmm3
  subss  D196(%rip),%xmm3
  movaps %xmm3,%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  mulss  0x1c(%rsp),%xmm0
  movss  %xmm0,0x1c(%rsp)
  movss  0xc(%rsp),%xmm5
  mulss  %xmm5,%xmm5
  movss  %xmm5,0xc(%rsp)
  movss  0x4(%rsp),%xmm4
  addss  D159(%rip),%xmm4
  movaps %xmm4,%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  mulss  0xc(%rsp),%xmm0
  movaps %xmm0,%xmm5
  addss  0x1c(%rsp),%xmm5
  movss  %xmm5,0x4(%rsp)
  movss  0x10(%rsp),%xmm5
  mulss  %xmm5,%xmm5
  movss  %xmm5,0xc(%rsp)
  movss  0x14(%rsp),%xmm0
  mulss  D142(%rip),%xmm0
  addss  D96(%rip),%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  mulss  0xc(%rsp),%xmm0
  addss  0x4(%rsp),%xmm0
  movss  %xmm0,0x4(%rsp)
  movss  0x18(%rsp),%xmm3
  mulss  %xmm3,%xmm3
  movss  %xmm3,0xc(%rsp)
  movss  0x8(%rsp),%xmm4
  subss  D174(%rip),%xmm4
  movaps %xmm4,%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  mulss  0xc(%rsp),%xmm0
  addss  0x4(%rsp),%xmm0
  call   <sqrt@plt>
  jmp    L13
L44:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D67
data_type: byte[4]
name: read_data
arguments: label: D32
data_type: byte[4]
name: read_data
arguments: label: D19
data_type: f32
name: read_data
arguments: label: D69
data_type: f32
name: read_data
arguments: label: D162
data_type: byte[4]
name: read_data
arguments: label: D158
data_type: byte[4]
name: read_data
arguments: label: D171
data_type: byte[4]
name: read_data
arguments: label: D142
data_type: byte[4]
name: read_data
arguments: label: D56
data_type: byte[4]
name: read_data
arguments: label: D27
data_type: byte[4]
name: read_data
arguments: label: D159
data_type: byte[4]
name: read_data
arguments: label: D96
data_type: byte[4]
name: read_data
arguments: label: D0
data_type: byte[4]
name: read_data
arguments: label: D196
data_type: byte[4]
name: read_data
arguments: label: D174
data_type: byte[4]

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

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

tool: D19: 2

tool: D69: 1

tool: {"D162": [0x25,0x06,0x90,0x41]}

tool: {"D158": [0x0c,0x02,0x90,0x41]}

tool: {"D171": [0x76,0x89,0x38,0x3c]}

tool: {"D142": [0x0d,0x75,0xb6,0xbc]}

tool: {"D56": [0x65,0x22,0x18,0xc2]}

tool: {"D27": [0xd5,0x5c,0x71,0x3f]}

tool: {"D159": [0x68,0x1c,0x37,0x40]}

tool: {"D96": [0xd2,0x4e,0x7e,0x42]}

tool: {"D0": [0xff,0x61,0x96,0xc0]}

tool: {"D196": [0x65,0x22,0x18,0x42]}

tool: {"D174": [0xff,0x61,0x96,0x40]}

assistant: ```c
float target_x(float *x, float *dx, int m) {
  int ncoeff = 7;
  float avdat = 0.9433311E+00;
  float xmin[10] = {-0.15000E+02, -0.15000E+02, -0.18004E+02, -0.18006E+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.18003E+02, 0.18001E+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[8] = {-0.50834025E-03, -0.38033588E+02, 0.28611088E+01, 0.63576973E+02, -0.46994624E+01, 0.11263242E-01, -0.22272611E-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 x21 = x2;
  float x31 = x3;
  float x41 = 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] * x31 * x41;
  float dxall = 0 + dx1 + dx2 + dx3 + dx4;
  float dv_target_x = dxall == 0 ? 0 : sqrt(+dx1 * dx1 * pow(0 + coeff[1] + coeff[5] * x21, 2) + dx2 * dx2 * pow(0 + coeff[2] + coeff[5] * x11, 2) + dx3 * dx3 * pow(0 + coeff[3] + coeff[6] * x41, 2) + dx4 * dx4 * pow(0 + coeff[4] + coeff[6] * x31, 2));
  dx[0] = dv_target_x;
  return v_target_x;
}
```