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

```asm
<target_x>:
  endbr64
  push   %rbx
  pxor   %xmm0,%xmm0
  mov    %rsi,%rbx
  sub    $0x50,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  movaps %xmm0,0x20(%rsp)
  test   %edx,%edx
  jle    L74
  movss  D2(%rip),%xmm4
  cmp    $0x1,%edx
  je     L24
  movss  %xmm4,0x24(%rsp)
  cmp    $0x2,%edx
  je     L24
  movss  D30(%rip),%xmm0
  movss  %xmm0,0x28(%rsp)
  cmp    $0x3,%edx
  je     L24
  movss  %xmm0,0x2c(%rsp)
L24:
  movss  0x28(%rsp),%xmm7
  movss  0x24(%rsp),%xmm8
  pxor   %xmm6,%xmm6
  movss  0x2c(%rsp),%xmm5
L63:
  movss  D121(%rip),%xmm0
  movss  0x4(%rdi),%xmm3
  movss  (%rdi),%xmm1
  movss  0x8(%rdi),%xmm12
  subss  %xmm0,%xmm3
  movss  0xc(%rdi),%xmm2
  subss  D63(%rip),%xmm12
  subss  %xmm0,%xmm1
  subss  D118(%rip),%xmm2
  movss  D167(%rip),%xmm9
  movss  D35(%rip),%xmm0
  movss  D161(%rip),%xmm11
  mulss  %xmm8,%xmm3
  mulss  %xmm4,%xmm1
  mulss  %xmm7,%xmm12
  mulss  %xmm5,%xmm2
  mulss  (%rbx),%xmm4
  addss  %xmm9,%xmm3
  mulss  0x4(%rbx),%xmm8
  addss  %xmm9,%xmm1
  mulss  0x8(%rbx),%xmm7
  addss  %xmm9,%xmm12
  mulss  0xc(%rbx),%xmm5
  mulss  %xmm3,%xmm0
  addss  %xmm9,%xmm2
  movss  D1(%rip),%xmm9
  movaps %xmm1,%xmm10
  mulss  D11(%rip),%xmm1
  addss  D36(%rip),%xmm1
  mulss  %xmm12,%xmm9
  mulss  D103(%rip),%xmm12
  mulss  %xmm11,%xmm10
  addss  %xmm0,%xmm1
  movss  D95(%rip),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm12,%xmm1
  addss  %xmm0,%xmm1
  movaps %xmm10,%xmm0
  mulss  %xmm3,%xmm0
  addss  %xmm0,%xmm1
  movaps %xmm9,%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm0,%xmm1
  movaps %xmm4,%xmm0
  addss  %xmm6,%xmm0
  addss  %xmm8,%xmm0
  addss  %xmm7,%xmm0
  addss  %xmm5,%xmm0
  ucomiss %xmm6,%xmm0
  jp     L15
  jne    L15
L29:
  movss  %xmm6,(%rbx)
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L28
  add    $0x50,%rsp
  movaps %xmm1,%xmm0
  pop    %rbx
  ret
  nop
L15:
  mulss  %xmm4,%xmm4
  mov    $0x2,%edi
  movss  %xmm1,0x1c(%rsp)
  mulss  %xmm11,%xmm3
  movss  %xmm5,0x18(%rsp)
  subss  D57(%rip),%xmm3
  movss  %xmm9,0xc(%rsp)
  movss  %xmm2,0x14(%rsp)
  movss  %xmm7,0x10(%rsp)
  movaps %xmm3,%xmm0
  movss  %xmm4,(%rsp)
  movss  %xmm8,0x4(%rsp)
  movss  %xmm10,0x8(%rsp)
  call   <pow@plt>
  mulss  (%rsp),%xmm0
  mov    $0x2,%edi
  movss  0x4(%rsp),%xmm8
  movss  0x8(%rsp),%xmm10
  movss  D35(%rip),%xmm7
  mulss  %xmm8,%xmm8
  addss  %xmm10,%xmm7
  movss  %xmm0,(%rsp)
  movaps %xmm7,%xmm0
  movss  %xmm8,0x4(%rsp)
  call   <pow@plt>
  mulss  0x4(%rsp),%xmm0
  movss  (%rsp),%xmm6
  mov    $0x2,%edi
  movss  0x14(%rsp),%xmm2
  mulss  D1(%rip),%xmm2
  movss  0x10(%rsp),%xmm7
  mulss  %xmm7,%xmm7
  addss  %xmm0,%xmm6
  movss  D103(%rip),%xmm0
  addss  %xmm2,%xmm0
  movss  %xmm6,(%rsp)
  movss  %xmm7,0x4(%rsp)
  call   <pow@plt>
  movss  0x18(%rsp),%xmm5
  mulss  0x4(%rsp),%xmm0
  mov    $0x2,%edi
  addss  (%rsp),%xmm0
  movss  0xc(%rsp),%xmm9
  subss  D47(%rip),%xmm9
  mulss  %xmm5,%xmm5
  movss  %xmm0,(%rsp)
  movaps %xmm9,%xmm0
  movss  %xmm5,0x4(%rsp)
  call   <pow@plt>
  mulss  0x4(%rsp),%xmm0
  addss  (%rsp),%xmm0
  call   <sqrt@plt>
  movss  0x1c(%rsp),%xmm1
  movaps %xmm0,%xmm6
  jmp    L29
  nopw   0x0(%rax,%rax,1)
L74:
  pxor   %xmm6,%xmm6
  movaps %xmm6,%xmm5
  movaps %xmm6,%xmm7
  movaps %xmm6,%xmm8
  movaps %xmm6,%xmm4
  jmp    L63
L28:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D2
type_guessed: byte[4]
name: parse_data
arguments: label: D30
type_guessed: byte[4]
name: parse_data
arguments: label: D121
type_guessed: byte[4]
name: parse_data
arguments: label: D63
type_guessed: byte[4]
name: parse_data
arguments: label: D118
type_guessed: byte[4]
name: parse_data
arguments: label: D167
type_guessed: f32
name: parse_data
arguments: label: D35
type_guessed: byte[4]
name: parse_data
arguments: label: D161
type_guessed: byte[4]
name: parse_data
arguments: label: D1
type_guessed: byte[4]
name: parse_data
arguments: label: D11
type_guessed: byte[4]
name: parse_data
arguments: label: D36
type_guessed: byte[4]
name: parse_data
arguments: label: D103
type_guessed: byte[4]
name: parse_data
arguments: label: D95
type_guessed: byte[4]
name: parse_data
arguments: label: D57
type_guessed: byte[4]
name: parse_data
arguments: label: D47
type_guessed: byte[4]

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

tool: {"D30": [0xe6,0x82,0x63,0x3d]}

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

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

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

tool: D167: 1

tool: {"D35": [0x90,0x90,0x36,0x40]}

tool: {"D161": [0x03,0x60,0x38,0x3c]}

tool: {"D1": [0x46,0x4b,0xb6,0xbc]}

tool: {"D11": [0xe3,0x05,0x18,0xc2]}

tool: {"D36": [0x69,0x8e,0x71,0x3f]}

tool: {"D103": [0xfc,0x2c,0x7e,0x42]}

tool: {"D95": [0xbe,0xf5,0x95,0xc0]}

tool: {"D57": [0xe3,0x05,0x18,0x42]}

tool: {"D47": [0xbe,0xf5,0x95,0x40]}

assistant: ```c
float target_x(float *x, float *dx, int m) {
  int ncoeff = 7;
  float avdat = 0.9440846E+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.50532544E-03, -0.38005749E+02, 0.28525734E+01, 0.63543930E+02, -0.46862478E+01, 0.11253360E-01, -0.22252690E-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;
}
```