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    $0xf0,%rsp
  movss  D136(%rip),%xmm1
  movss  D421(%rip),%xmm9
  mov    %fs:0x28,%rax
  mov    %rax,0xe8(%rsp)
  xor    %eax,%eax
  movaps %xmm0,0xc0(%rsp)
  movabs $0xc1902f1bc1900000,%rax
  mov    %rax,0x68(%rsp)
  movabs $0x418fd4fe41900000,%rax
  movq   $0x0,0x70(%rsp)
  movq   $0x0,0x78(%rsp)
  movq   $0x0,0x80(%rsp)
  mov    %rax,0x98(%rsp)
  movq   $0x0,0xa0(%rsp)
  movq   $0x0,0xa8(%rsp)
  movq   $0x0,0xb0(%rsp)
  movq   $0x0,0xe0(%rsp)
  movss  %xmm1,0x64(%rsp)
  movss  %xmm9,0x94(%rsp)
  movaps %xmm0,0xd0(%rsp)
  test   %edx,%edx
  jle    L81
  sub    $0x1,%edx
  movaps %xmm9,%xmm0
  lea    0x64(%rsp),%rsi
  xor    %eax,%eax
  movss  D160(%rip),%xmm2
  shl    $0x2,%rdx
  lea    0x94(%rsp),%rcx
  jmp    L53
  nopw   0x0(%rax,%rax,1)
L21:
  movss  (%rsi,%rax,1),%xmm1
  movss  (%rcx,%rax,1),%xmm0
  add    $0x4,%rax
L53:
  ucomiss %xmm0,%xmm1
  jp     L6
  je     L9
L6:
  subss  %xmm1,%xmm0
  movaps %xmm2,%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,0xc0(%rsp,%rax,1)
L9:
  cmp    %rdx,%rax
  jne    L21
  movss  0xc0(%rsp),%xmm8
  pxor   %xmm10,%xmm10
  movss  0xc4(%rsp),%xmm6
  movss  0xc8(%rsp),%xmm7
  movss  0xcc(%rsp),%xmm5
L85:
  movss  0x4(%rdi),%xmm3
  movss  (%rdi),%xmm4
  movss  D410(%rip),%xmm0
  movss  0x8(%rdi),%xmm1
  subss  %xmm9,%xmm3
  subss  %xmm9,%xmm4
  movss  D39(%rip),%xmm13
  movss  0xc(%rdi),%xmm2
  subss  D59(%rip),%xmm1
  subss  D133(%rip),%xmm2
  movss  D365(%rip),%xmm14
  mulss  %xmm6,%xmm3
  mulss  %xmm8,%xmm4
  mulss  %xmm7,%xmm1
  mulss  %xmm5,%xmm2
  mulss  (%rbx),%xmm8
  addss  %xmm0,%xmm3
  mulss  0x4(%rbx),%xmm6
  addss  %xmm0,%xmm4
  mulss  0x8(%rbx),%xmm7
  addss  %xmm0,%xmm1
  mulss  0xc(%rbx),%xmm5
  mulss  %xmm3,%xmm13
  addss  %xmm0,%xmm2
  movaps %xmm3,%xmm15
  movss  D121(%rip),%xmm0
  mulss  %xmm3,%xmm15
  movaps %xmm4,%xmm9
  mulss  %xmm1,%xmm0
  movaps %xmm1,%xmm11
  mulss  %xmm4,%xmm9
  movaps %xmm2,%xmm12
  mulss  D362(%rip),%xmm9
  movss  %xmm13,0xc(%rsp)
  mulss  %xmm4,%xmm14
  movss  D340(%rip),%xmm13
  mulss  %xmm2,%xmm12
  mulss  %xmm4,%xmm13
  movss  %xmm0,0x8(%rsp)
  mulss  %xmm1,%xmm11
  movss  %xmm9,0x20(%rsp)
  movss  D329(%rip),%xmm9
  mulss  %xmm1,%xmm9
  movss  %xmm13,0x10(%rsp)
  movss  D364(%rip),%xmm13
  mulss  %xmm4,%xmm13
  movaps %xmm13,%xmm0
  mulss  %xmm3,%xmm0
  movss  %xmm0,0x14(%rsp)
  movss  D51(%rip),%xmm0
  mulss  %xmm15,%xmm0
  movss  %xmm0,0x18(%rsp)
  movss  D115(%rip),%xmm0
  mulss  %xmm3,%xmm0
  movss  %xmm0,0x24(%rsp)
  mulss  %xmm1,%xmm0
  movss  %xmm0,0x1c(%rsp)
  movss  D273(%rip),%xmm0
  mulss  %xmm4,%xmm0
  addss  D354(%rip),%xmm0
  addss  %xmm0,%xmm9
  movaps %xmm14,%xmm0
  mulss  %xmm3,%xmm0
  addss  %xmm9,%xmm0
  movss  0x8(%rsp),%xmm9
  mulss  %xmm2,%xmm9
  addss  %xmm0,%xmm9
  movss  D427(%rip),%xmm0
  mulss  %xmm3,%xmm0
  addss  %xmm9,%xmm0
  movss  D330(%rip),%xmm9
  mulss  %xmm2,%xmm9
  addss  %xmm0,%xmm9
  movss  0xc(%rsp),%xmm0
  mulss  %xmm1,%xmm0
  addss  %xmm9,%xmm0
  movss  0x10(%rsp),%xmm9
  mulss  %xmm2,%xmm9
  addss  %xmm0,%xmm9
  movss  D247(%rip),%xmm0
  mulss  %xmm4,%xmm0
  mulss  %xmm15,%xmm0
  addss  %xmm9,%xmm0
  movss  0x14(%rsp),%xmm9
  mulss  %xmm2,%xmm9
  addss  %xmm0,%xmm9
  movss  0x18(%rsp),%xmm0
  mulss  %xmm1,%xmm0
  addss  %xmm9,%xmm0
  movss  0x1c(%rsp),%xmm9
  mulss  %xmm2,%xmm9
  addss  %xmm0,%xmm9
  movss  D222(%rip),%xmm0
  mulss  %xmm1,%xmm0
  mulss  %xmm12,%xmm0
  addss  %xmm9,%xmm0
  movss  0x20(%rsp),%xmm9
  mulss  %xmm1,%xmm9
  addss  %xmm9,%xmm0
  movss  D49(%rip),%xmm9
  mulss  %xmm4,%xmm9
  mulss  %xmm11,%xmm9
  addss  %xmm0,%xmm9
  movss  D347(%rip),%xmm0
  mulss  %xmm11,%xmm0
  mulss  %xmm12,%xmm0
  addss  %xmm0,%xmm9
  movaps %xmm8,%xmm0
  addss  %xmm10,%xmm0
  addss  %xmm6,%xmm0
  addss  %xmm7,%xmm0
  addss  %xmm5,%xmm0
  ucomiss %xmm10,%xmm0
  jp     L95
  movaps %xmm10,%xmm0
  jne    L95
L11:
  movss  %xmm0,(%rbx)
  mov    0xe8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L36
  add    $0xf0,%rsp
  movaps %xmm9,%xmm0
  pop    %rbx
  ret
  nopw   0x0(%rax,%rax,1)
L95:
  movss  %xmm5,0x50(%rsp)
  mulss  %xmm8,%xmm8
  movss  D365(%rip),%xmm5
  movss  D340(%rip),%xmm0
  mulss  D247(%rip),%xmm15
  movss  %xmm6,0x2c(%rsp)
  movaps %xmm4,%xmm6
  mov    $0x2,%edi
  mulss  %xmm3,%xmm5
  movss  %xmm7,0x4c(%rsp)
  movss  D49(%rip),%xmm7
  mulss  %xmm2,%xmm0
  movss  %xmm9,0x58(%rsp)
  mulss  D188(%rip),%xmm6
  movss  %xmm11,0x40(%rsp)
  movss  %xmm8,0x28(%rsp)
  mulss  %xmm11,%xmm7
  movss  %xmm12,0x54(%rsp)
  movaps %xmm5,%xmm8
  movss  %xmm10,0x5c(%rsp)
  subss  D310(%rip),%xmm8
  movss  %xmm13,0x48(%rsp)
  movss  %xmm14,0x3c(%rsp)
  addss  %xmm8,%xmm0
  movaps %xmm6,%xmm8
  movss  %xmm3,0x38(%rsp)
  mulss  %xmm1,%xmm8
  movss  %xmm2,0x44(%rsp)
  movss  %xmm4,0x34(%rsp)
  addss  %xmm0,%xmm15
  movss  D364(%rip),%xmm0
  movss  %xmm1,0x30(%rsp)
  mulss  %xmm3,%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm15,%xmm0
  addss  %xmm8,%xmm0
  addss  %xmm7,%xmm0
  call   <pow@plt>
  movss  0x30(%rsp),%xmm1
  movss  D39(%rip),%xmm7
  mov    $0x2,%edi
  movss  0x5c(%rsp),%xmm10
  movss  0x3c(%rsp),%xmm14
  mulss  %xmm1,%xmm7
  movss  0x38(%rsp),%xmm3
  movss  0x34(%rsp),%xmm4
  movss  %xmm1,0x34(%rsp)
  addss  %xmm10,%xmm14
  mulss  0x28(%rsp),%xmm0
  subss  D57(%rip),%xmm14
  movss  %xmm10,0x3c(%rsp)
  movss  0x44(%rsp),%xmm2
  movss  0x48(%rsp),%xmm13
  movss  %xmm4,0x38(%rsp)
  movss  0x2c(%rsp),%xmm6
  mulss  %xmm2,%xmm13
  movss  %xmm2,0x30(%rsp)
  addss  %xmm7,%xmm14
  movss  D46(%rip),%xmm7
  mulss  %xmm6,%xmm6
  movss  %xmm0,0x28(%rsp)
  mulss  %xmm3,%xmm7
  mulss  D304(%rip),%xmm3
  movss  %xmm6,0x2c(%rsp)
  movaps %xmm7,%xmm0
  movss  D115(%rip),%xmm7
  mulss  %xmm4,%xmm0
  mulss  %xmm1,%xmm7
  mulss  %xmm1,%xmm3
  addss  %xmm14,%xmm0
  addss  %xmm0,%xmm13
  movaps %xmm7,%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm13,%xmm3
  addss  %xmm3,%xmm0
  call   <pow@plt>
  mulss  0x2c(%rsp),%xmm0
  mov    $0x2,%edi
  movss  0x28(%rsp),%xmm6
  movss  0x30(%rsp),%xmm2
  movss  0x24(%rsp),%xmm3
  movss  0x54(%rsp),%xmm12
  movss  0x34(%rsp),%xmm1
  mulss  %xmm2,%xmm3
  movss  0x38(%rsp),%xmm4
  movss  0x4c(%rsp),%xmm7
  movss  %xmm2,0x24(%rsp)
  addss  %xmm0,%xmm6
  movss  D121(%rip),%xmm0
  mulss  %xmm7,%xmm7
  mulss  %xmm2,%xmm0
  addss  D329(%rip),%xmm0
  addss  0xc(%rsp),%xmm0
  movss  %xmm6,0x28(%rsp)
  addss  0x18(%rsp),%xmm0
  movss  %xmm7,0x2c(%rsp)
  addss  %xmm3,%xmm0
  movss  D222(%rip),%xmm3
  mulss  %xmm12,%xmm3
  addss  %xmm3,%xmm0
  movss  D45(%rip),%xmm3
  addss  0x20(%rsp),%xmm0
  movss  %xmm1,0x20(%rsp)
  mulss  %xmm1,%xmm3
  mulss  %xmm4,%xmm3
  addss  %xmm3,%xmm0
  movss  D53(%rip),%xmm3
  mulss  %xmm1,%xmm3
  mulss  %xmm12,%xmm3
  addss  %xmm3,%xmm0
  call   <pow@plt>
  movss  0x24(%rsp),%xmm2
  movss  D143(%rip),%xmm3
  mov    $0x2,%edi
  mulss  0x2c(%rsp),%xmm0
  movss  0x3c(%rsp),%xmm10
  mulss  %xmm2,%xmm3
  addss  0x28(%rsp),%xmm0
  movss  0x8(%rsp),%xmm7
  mulss  D53(%rip),%xmm2
  movss  0x20(%rsp),%xmm1
  addss  %xmm10,%xmm7
  movss  0x40(%rsp),%xmm11
  movss  0x50(%rsp),%xmm5
  movss  %xmm0,0xc(%rsp)
  movss  D330(%rip),%xmm0
  mulss  %xmm5,%xmm5
  mulss  %xmm3,%xmm1
  addss  %xmm7,%xmm0
  addss  0x10(%rsp),%xmm0
  addss  0x14(%rsp),%xmm0
  addss  0x1c(%rsp),%xmm0
  mulss  %xmm11,%xmm2
  movss  %xmm5,0x18(%rsp)
  addss  %xmm1,%xmm0
  addss  %xmm2,%xmm0
  call   <pow@plt>
  mulss  0x18(%rsp),%xmm0
  addss  0xc(%rsp),%xmm0
  call   <sqrt@plt>
  movss  0x58(%rsp),%xmm9
  jmp    L11
  nopw   0x0(%rax,%rax,1)
L81:
  pxor   %xmm10,%xmm10
  movaps %xmm10,%xmm5
  movaps %xmm10,%xmm7
  movaps %xmm10,%xmm6
  movaps %xmm10,%xmm8
  jmp    L85
L36:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D136
data_type: byte[4]
name: retrieve_data
arguments: label: D421
data_type: f32
name: retrieve_data
arguments: label: D160
data_type: f32
name: retrieve_data
arguments: label: D410
data_type: f32
name: retrieve_data
arguments: label: D39
data_type: byte[4]
name: retrieve_data
arguments: label: D59
data_type: byte[4]
name: retrieve_data
arguments: label: D133
data_type: byte[4]
name: retrieve_data
arguments: label: D365
data_type: byte[4]
name: retrieve_data
arguments: label: D121
data_type: byte[4]
name: retrieve_data
arguments: label: D362
data_type: byte[4]
name: retrieve_data
arguments: label: D340
data_type: byte[4]
name: retrieve_data
arguments: label: D329
data_type: byte[4]
name: retrieve_data
arguments: label: D364
data_type: byte[4]
name: retrieve_data
arguments: label: D51
data_type: byte[4]
name: retrieve_data
arguments: label: D115
data_type: byte[4]
name: retrieve_data
arguments: label: D273
data_type: byte[4]
name: retrieve_data
arguments: label: D354
data_type: byte[4]
name: retrieve_data
arguments: label: D427
data_type: byte[4]
name: retrieve_data
arguments: label: D330
data_type: byte[4]
name: retrieve_data
arguments: label: D247
data_type: byte[4]
name: retrieve_data
arguments: label: D222
data_type: byte[4]
name: retrieve_data
arguments: label: D49
data_type: byte[4]
name: retrieve_data
arguments: label: D347
data_type: byte[4]
name: retrieve_data
arguments: label: D188
data_type: byte[4]
name: retrieve_data
arguments: label: D310
data_type: byte[4]
name: retrieve_data
arguments: label: D57
data_type: byte[4]
name: retrieve_data
arguments: label: D46
data_type: byte[4]
name: retrieve_data
arguments: label: D304
data_type: byte[4]
name: retrieve_data
arguments: label: D45
data_type: byte[4]
name: retrieve_data
arguments: label: D53
data_type: byte[4]
name: retrieve_data
arguments: label: D143
data_type: byte[4]

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

tool: D421: 15

tool: D160: 2

tool: D410: 1

tool: {"D39": [0x5a,0x21,0xbc,0xbf]}

tool: {"D59": [0x00,0x00,0x90,0x41]}

tool: {"D133": [0xfe,0xd4,0x8f,0x41]}

tool: {"D365": [0x12,0x08,0x50,0x3f]}

tool: {"D121": [0x74,0xc3,0x1a,0x40]}

tool: {"D362": [0x5c,0x68,0xe4,0xbb]}

tool: {"D340": [0x01,0x3e,0xab,0xbf]}

tool: {"D329": [0x12,0xbd,0x83,0x42]}

tool: {"D364": [0x91,0xdd,0x41,0xbd]}

tool: {"D51": [0x28,0x90,0x6b,0xbc]}

tool: {"D115": [0x2b,0xe7,0xe7,0xbc]}

tool: {"D273": [0xa4,0x77,0x1f,0xc2]}

tool: {"D354": [0x48,0xe7,0xdd,0x3f]}

tool: {"D427": [0xd4,0x92,0x33,0xbd]}

tool: {"D330": [0x4e,0x88,0x93,0x3d]}

tool: {"D247": [0x63,0x1a,0x09,0x3d]}

tool: {"D222": [0x97,0xe3,0x90,0x3d]}

tool: {"D49": [0x9c,0x5b,0x1a,0x3c]}

tool: {"D347": [0x00,0x64,0xb0,0x3a]}

tool: {"D188": [0x5c,0x68,0x64,0xbc]}

tool: {"D310": [0xa4,0x77,0x1f,0x42]}

tool: {"D57": [0xd4,0x92,0x33,0x3d]}

tool: {"D46": [0x63,0x1a,0x89,0x3d]}

tool: {"D304": [0x28,0x90,0xeb,0xbc]}

tool: {"D45": [0x9c,0x5b,0x9a,0x3c]}

tool: {"D53": [0x00,0x64,0x30,0x3b]}

tool: {"D143": [0x97,0xe3,0x10,0x3e]}

assistant: ```c
float target_x(float *x, float *dx, int m) {
  int ncoeff = 17;
  float avdat = 0.1733793E+01;
  float xmin[10] = {-0.15000E+02, -0.15000E+02, -0.18000E+02, -0.18023E+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.18000E+02, 0.17979E+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[18] = {-0.17240975E-03, -0.39866837E+02, 0.65869278E+02, 0.81262314E+00, 0.24181795E+01, -0.43841198E-01, 0.72037324E-01, -0.14697678E+01, -0.13378297E+01, 0.33472430E-01, -0.47330443E-01, -0.14377631E-01, -0.28308472E-01, 0.70746593E-01, -0.69704484E-02, 0.94212554E-02, 0.13457537E-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 x31 = x3;
  float x32 = x31 * x3;
  float x41 = x4;
  float x42 = x41 * x4;
  float v_target_x = avdat + coeff[0] + coeff[1] * x11 + coeff[2] * x31 + coeff[3] * x11 * x21 + coeff[4] * x31 * x41 + coeff[5] * x21 + coeff[6] * x41 + coeff[7] * x21 * x31;
  v_target_x = v_target_x + coeff[8] * x11 * x41 + coeff[9] * x11 * x22 + coeff[10] * x11 * x21 * x41 + coeff[11] * x22 * x31 + coeff[12] * x21 * x31 * x41 + coeff[13] * x31 * x42 + coeff[14] * x12 * x31 + coeff[15] * x11 * x32 + coeff[16] * x32 * x42;
  float dxall = 0 + dx1 + dx2 + dx3 + dx4;
  float dv_target_x = dxall == 0 ? 0 : sqrt(+dx1 * dx1 * pow(0 + coeff[1] + coeff[3] * x21 + coeff[8] * x41 + coeff[9] * x22 + coeff[10] * x21 * x41 + 2 * coeff[14] * x11 * x31 + coeff[15] * x32, 2) + dx2 * dx2 * pow(0 + coeff[3] * x11 + coeff[5] + coeff[7] * x31 + 2 * coeff[9] * x21 * x11 + coeff[10] * x11 * x41 + 2 * coeff[11] * x21 * x31 + coeff[12] * x31 * x41, 2) + dx3 * dx3 * pow(0 + coeff[2] + coeff[4] * x41 + coeff[7] * x21 + coeff[11] * x22 + coeff[12] * x21 * x41 + coeff[13] * x42 + coeff[14] * x12 + 2 * coeff[15] * x31 * x11 + 2 * coeff[16] * x31 * x42, 2) + dx4 * dx4 * pow(0 + coeff[4] * x31 + coeff[6] + coeff[8] * x11 + coeff[10] * x11 * x21 + coeff[12] * x21 * x31 + 2 * coeff[13] * x41 * x31 + 2 * coeff[16] * x41 * x32, 2));
  dx[0] = dv_target_x;
  return v_target_x;
}
```