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

```asm
<target_phi>:
  endbr64
  push   %rbx
  pxor   %xmm0,%xmm0
  mov    %rsi,%rbx
  sub    $0xe0,%rsp
  movss  D169(%rip),%xmm1
  movss  D168(%rip),%xmm3
  mov    %fs:0x28,%rax
  mov    %rax,0xd8(%rsp)
  xor    %eax,%eax
  movaps %xmm0,0xb0(%rsp)
  movabs $0xc1901062c1900a3d,%rax
  mov    %rax,0x58(%rsp)
  movabs $0x4190020c41900625,%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    L76
  sub    $0x1,%edx
  movss  D62(%rip),%xmm2
  xor    %eax,%eax
  movaps %xmm3,%xmm0
  shl    $0x2,%rdx
  lea    0x54(%rsp),%rsi
  lea    0x84(%rsp),%rcx
  jmp    L67
  nopl   0x0(%rax)
L52:
  movss  (%rsi,%rax,1),%xmm1
  movss  (%rcx,%rax,1),%xmm0
  add    $0x4,%rax
L67:
  ucomiss %xmm0,%xmm1
  jp     L77
  je     L20
L77:
  subss  %xmm1,%xmm0
  movaps %xmm2,%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,0xb0(%rsp,%rax,1)
L20:
  cmp    %rdx,%rax
  jne    L52
  movss  0xb0(%rsp),%xmm7
  pxor   %xmm0,%xmm0
  movss  0xb4(%rsp),%xmm6
  movss  0xb8(%rsp),%xmm2
  movss  0xbc(%rsp),%xmm5
L66:
  movss  (%rdi),%xmm4
  movss  0x4(%rdi),%xmm1
  movss  D462(%rip),%xmm8
  movss  D429(%rip),%xmm13
  subss  %xmm3,%xmm4
  subss  %xmm3,%xmm1
  movss  0x8(%rdi),%xmm3
  subss  D35(%rip),%xmm3
  mulss  %xmm7,%xmm4
  mulss  %xmm2,%xmm3
  mulss  0x8(%rbx),%xmm2
  mulss  %xmm6,%xmm1
  mulss  (%rbx),%xmm7
  addss  %xmm8,%xmm4
  mulss  0x4(%rbx),%xmm6
  addss  %xmm8,%xmm3
  movss  %xmm2,0x10(%rsp)
  movss  0xc(%rdi),%xmm2
  subss  D319(%rip),%xmm2
  mulss  %xmm4,%xmm13
  addss  %xmm8,%xmm1
  movaps %xmm3,%xmm11
  movaps %xmm3,%xmm15
  mulss  %xmm5,%xmm2
  mulss  0xc(%rbx),%xmm5
  movaps %xmm1,%xmm10
  movaps %xmm1,%xmm12
  mulss  %xmm3,%xmm11
  movss  %xmm13,(%rsp)
  mulss  %xmm1,%xmm10
  movss  D203(%rip),%xmm13
  addss  %xmm8,%xmm2
  mulss  %xmm4,%xmm13
  movaps %xmm4,%xmm8
  mulss  %xmm4,%xmm8
  movaps %xmm5,%xmm14
  movaps %xmm4,%xmm5
  mulss  %xmm11,%xmm15
  mulss  %xmm10,%xmm12
  movaps %xmm2,%xmm9
  mulss  %xmm2,%xmm9
  movss  %xmm13,0x4(%rsp)
  movss  D294(%rip),%xmm13
  mulss  %xmm8,%xmm5
  movss  %xmm15,0x1c(%rsp)
  mulss  %xmm5,%xmm13
  mulss  D370(%rip),%xmm5
  movss  %xmm13,0x8(%rsp)
  movss  D18(%rip),%xmm13
  movss  %xmm5,0xc(%rsp)
  movaps %xmm15,%xmm5
  movss  D394(%rip),%xmm15
  mulss  %xmm3,%xmm5
  mulss  %xmm1,%xmm13
  mulss  %xmm5,%xmm15
  movss  D334(%rip),%xmm5
  mulss  %xmm4,%xmm5
  subss  D435(%rip),%xmm5
  movss  %xmm15,0x14(%rsp)
  addss  %xmm5,%xmm13
  movss  D230(%rip),%xmm5
  mulss  %xmm3,%xmm5
  addss  %xmm13,%xmm5
  movss  D302(%rip),%xmm13
  mulss  %xmm2,%xmm13
  addss  %xmm5,%xmm13
  movss  (%rsp),%xmm5
  mulss  %xmm3,%xmm5
  addss  %xmm13,%xmm5
  movss  D268(%rip),%xmm13
  mulss  %xmm11,%xmm13
  addss  %xmm5,%xmm13
  movss  0x4(%rsp),%xmm5
  mulss  %xmm2,%xmm5
  addss  %xmm13,%xmm5
  movss  D43(%rip),%xmm13
  mulss  %xmm9,%xmm13
  addss  %xmm5,%xmm13
  movss  D423(%rip),%xmm5
  mulss  %xmm1,%xmm5
  mulss  %xmm11,%xmm5
  addss  %xmm13,%xmm5
  movss  D15(%rip),%xmm13
  mulss  %xmm1,%xmm13
  mulss  %xmm9,%xmm13
  addss  %xmm5,%xmm13
  movaps %xmm2,%xmm5
  mulss  %xmm9,%xmm5
  mulss  D196(%rip),%xmm5
  addss  %xmm13,%xmm5
  movss  0x8(%rsp),%xmm13
  mulss  %xmm1,%xmm13
  addss  %xmm5,%xmm13
  movss  D322(%rip),%xmm5
  mulss  %xmm4,%xmm5
  mulss  %xmm12,%xmm5
  addss  %xmm13,%xmm5
  movss  0xc(%rsp),%xmm13
  mulss  %xmm2,%xmm13
  addss  %xmm5,%xmm13
  movaps %xmm15,%xmm5
  movss  D108(%rip),%xmm15
  mulss  %xmm2,%xmm5
  mulss  %xmm4,%xmm15
  addss  %xmm5,%xmm13
  movss  D406(%rip),%xmm5
  movss  %xmm15,0x18(%rsp)
  mulss  %xmm8,%xmm5
  addss  %xmm5,%xmm13
  movaps %xmm15,%xmm5
  mulss  %xmm1,%xmm5
  addss  %xmm13,%xmm5
  movss  D74(%rip),%xmm13
  mulss  %xmm10,%xmm13
  addss  %xmm13,%xmm5
  movss  D396(%rip),%xmm13
  mulss  %xmm1,%xmm13
  movaps %xmm13,%xmm15
  mulss  %xmm3,%xmm15
  addss  %xmm15,%xmm5
  movaps %xmm7,%xmm15
  addss  %xmm0,%xmm15
  addss  %xmm6,%xmm15
  addss  0x10(%rsp),%xmm15
  addss  %xmm14,%xmm15
  ucomiss %xmm0,%xmm15
  jp     L71
  jne    L71
L98:
  movss  %xmm0,(%rbx)
  mov    0xd8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L63
  add    $0xe0,%rsp
  movaps %xmm5,%xmm0
  pop    %rbx
  ret
  nopl   0x0(%rax,%rax,1)
L71:
  movss  %xmm6,0x24(%rsp)
  mulss  %xmm7,%xmm7
  movss  D429(%rip),%xmm6
  movss  D203(%rip),%xmm0
  mulss  D322(%rip),%xmm12
  mov    $0x2,%edi
  movss  %xmm5,0x4c(%rsp)
  mulss  %xmm3,%xmm6
  movss  %xmm14,0x40(%rsp)
  mulss  %xmm2,%xmm0
  movss  %xmm13,0x3c(%rsp)
  movss  %xmm2,0x34(%rsp)
  movss  %xmm7,0x20(%rsp)
  movss  %xmm9,0x48(%rsp)
  movaps %xmm6,%xmm7
  movss  D365(%rip),%xmm6
  subss  D299(%rip),%xmm7
  movss  %xmm11,0x2c(%rsp)
  movss  %xmm10,0x44(%rsp)
  mulss  %xmm8,%xmm6
  movss  %xmm3,0x38(%rsp)
  addss  %xmm7,%xmm0
  movss  %xmm4,0x30(%rsp)
  mulss  D339(%rip),%xmm8
  movss  %xmm1,0x28(%rsp)
  movaps %xmm6,%xmm7
  movss  D108(%rip),%xmm6
  mulss  %xmm1,%xmm7
  mulss  %xmm2,%xmm8
  mulss  %xmm1,%xmm6
  addss  %xmm0,%xmm7
  movaps %xmm4,%xmm0
  mulss  D387(%rip),%xmm0
  addss  %xmm7,%xmm12
  addss  %xmm12,%xmm8
  addss  %xmm8,%xmm0
  addss  %xmm6,%xmm0
  call   <pow@plt>
  movss  0x24(%rsp),%xmm6
  movss  0x2c(%rsp),%xmm11
  mov    $0x2,%edi
  movss  D423(%rip),%xmm4
  movss  0x48(%rsp),%xmm9
  mulss  %xmm6,%xmm6
  movss  0x44(%rsp),%xmm10
  movss  0x28(%rsp),%xmm1
  mulss  %xmm11,%xmm4
  movss  0x38(%rsp),%xmm3
  movss  %xmm9,0x2c(%rsp)
  mulss  0x20(%rsp),%xmm0
  mulss  D324(%rip),%xmm10
  movss  %xmm6,0x24(%rsp)
  movss  D18(%rip),%xmm6
  addss  %xmm4,%xmm6
  movss  D15(%rip),%xmm4
  movss  %xmm0,0x20(%rsp)
  mulss  %xmm9,%xmm4
  movaps %xmm4,%xmm0
  movss  0x30(%rsp),%xmm4
  addss  %xmm6,%xmm0
  addss  0x8(%rsp),%xmm0
  mulss  %xmm4,%xmm10
  movss  D102(%rip),%xmm4
  mulss  %xmm1,%xmm4
  addss  %xmm10,%xmm0
  addss  0x18(%rsp),%xmm0
  movss  %xmm3,0x18(%rsp)
  addss  %xmm4,%xmm0
  movss  D396(%rip),%xmm4
  mulss  %xmm3,%xmm4
  addss  %xmm4,%xmm0
  call   <pow@plt>
  movss  0x18(%rsp),%xmm3
  mov    $0x2,%edi
  movss  D114(%rip),%xmm4
  mulss  0x24(%rsp),%xmm0
  movss  0x20(%rsp),%xmm6
  mulss  %xmm3,%xmm4
  movss  0x28(%rsp),%xmm1
  movss  0x34(%rsp),%xmm2
  mulss  D242(%rip),%xmm3
  movss  0x3c(%rsp),%xmm13
  movss  %xmm1,0x20(%rsp)
  movss  %xmm2,0x18(%rsp)
  addss  %xmm0,%xmm6
  movss  D230(%rip),%xmm0
  addss  (%rsp),%xmm0
  mulss  %xmm1,%xmm3
  addss  %xmm4,%xmm0
  movss  %xmm6,0x8(%rsp)
  movss  0x10(%rsp),%xmm6
  mulss  %xmm6,%xmm6
  addss  %xmm3,%xmm0
  movss  0x1c(%rsp),%xmm3
  mulss  D238(%rip),%xmm3
  movss  %xmm6,0x10(%rsp)
  mulss  %xmm2,%xmm3
  addss  %xmm3,%xmm0
  addss  %xmm13,%xmm0
  call   <pow@plt>
  movss  0x18(%rsp),%xmm2
  mov    $0x2,%edi
  movss  D304(%rip),%xmm3
  mulss  0x10(%rsp),%xmm0
  movss  0x20(%rsp),%xmm1
  mulss  %xmm2,%xmm3
  addss  0x8(%rsp),%xmm0
  movss  0x4(%rsp),%xmm6
  mulss  D134(%rip),%xmm2
  subss  D143(%rip),%xmm6
  movss  0x2c(%rsp),%xmm9
  movss  0x40(%rsp),%xmm14
  mulss  D393(%rip),%xmm9
  movss  %xmm0,(%rsp)
  mulss  %xmm14,%xmm14
  movaps %xmm6,%xmm0
  addss  %xmm3,%xmm0
  mulss  %xmm1,%xmm2
  movss  %xmm14,0x8(%rsp)
  addss  %xmm2,%xmm0
  addss  %xmm9,%xmm0
  addss  0xc(%rsp),%xmm0
  addss  0x14(%rsp),%xmm0
  call   <pow@plt>
  mulss  0x8(%rsp),%xmm0
  addss  (%rsp),%xmm0
  call   <sqrt@plt>
  movss  0x4c(%rsp),%xmm5
  jmp    L98
  nopl   (%rax)
L76:
  pxor   %xmm0,%xmm0
  movaps %xmm0,%xmm5
  movaps %xmm0,%xmm2
  movaps %xmm0,%xmm6
  movaps %xmm0,%xmm7
  jmp    L66
L63:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D169
datatype: byte[4]
name: retrieve_data
arguments: label: D168
datatype: f32
name: retrieve_data
arguments: label: D62
datatype: f32
name: retrieve_data
arguments: label: D462
datatype: f32
name: retrieve_data
arguments: label: D429
datatype: byte[4]
name: retrieve_data
arguments: label: D35
datatype: byte[4]
name: retrieve_data
arguments: label: D319
datatype: byte[4]
name: retrieve_data
arguments: label: D203
datatype: byte[4]
name: retrieve_data
arguments: label: D294
datatype: byte[4]
name: retrieve_data
arguments: label: D370
datatype: byte[4]
name: retrieve_data
arguments: label: D18
datatype: byte[4]
name: retrieve_data
arguments: label: D394
datatype: byte[4]
name: retrieve_data
arguments: label: D334
datatype: byte[4]
name: retrieve_data
arguments: label: D435
datatype: byte[4]
name: retrieve_data
arguments: label: D230
datatype: byte[4]
name: retrieve_data
arguments: label: D302
datatype: byte[4]
name: retrieve_data
arguments: label: D268
datatype: byte[4]
name: retrieve_data
arguments: label: D43
datatype: byte[4]
name: retrieve_data
arguments: label: D423
datatype: byte[4]
name: retrieve_data
arguments: label: D15
datatype: byte[4]
name: retrieve_data
arguments: label: D196
datatype: byte[4]
name: retrieve_data
arguments: label: D322
datatype: byte[4]
name: retrieve_data
arguments: label: D108
datatype: byte[4]
name: retrieve_data
arguments: label: D406
datatype: byte[4]
name: retrieve_data
arguments: label: D74
datatype: byte[4]
name: retrieve_data
arguments: label: D396
datatype: byte[4]
name: retrieve_data
arguments: label: D365
datatype: byte[4]
name: retrieve_data
arguments: label: D299
datatype: byte[4]
name: retrieve_data
arguments: label: D339
datatype: byte[4]
name: retrieve_data
arguments: label: D387
datatype: byte[4]
name: retrieve_data
arguments: label: D324
datatype: byte[4]
name: retrieve_data
arguments: label: D102
datatype: byte[4]
name: retrieve_data
arguments: label: D114
datatype: byte[4]
name: retrieve_data
arguments: label: D242
datatype: byte[4]
name: retrieve_data
arguments: label: D238
datatype: byte[4]
name: retrieve_data
arguments: label: D304
datatype: byte[4]
name: retrieve_data
arguments: label: D134
datatype: byte[4]
name: retrieve_data
arguments: label: D143
datatype: byte[4]
name: retrieve_data
arguments: label: D393
datatype: byte[4]

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

tool: D168: 15

tool: D62: 2

tool: D462: 1

tool: {"D429": [0x2a,0xee,0x43,0x39]}

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

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

tool: {"D203": [0xd4,0xdc,0xa4,0xb8]}

tool: {"D294": [0x78,0xa6,0xaf,0x35]}

tool: {"D370": [0xdf,0xa8,0x16,0xb6]}

tool: {"D18": [0x4c,0xaa,0xb9,0x3c]}

tool: {"D394": [0xcb,0xf6,0xbf,0xb7]}

tool: {"D334": [0xc3,0x61,0x5a,0xbd]}

tool: {"D435": [0xc7,0x03,0x92,0x3a]}

tool: {"D230": [0x88,0x4e,0x80,0x3d]}

tool: {"D302": [0xda,0xb3,0x0e,0xbd]}

tool: {"D268": [0x43,0x27,0x29,0xb9]}

tool: {"D43": [0xb6,0x34,0x72,0xb7]}

tool: {"D423": [0x14,0x18,0x19,0x37]}

tool: {"D15": [0xb9,0xcb,0x28,0x38]}

tool: {"D196": [0x6f,0xbe,0x5e,0xb8]}

tool: {"D322": [0xf0,0x5f,0x02,0xb5]}

tool: {"D108": [0x18,0x5f,0x55,0x38]}

tool: {"D406": [0x88,0xc2,0x62,0xb8]}

tool: {"D74": [0xf6,0xec,0x05,0x37]}

tool: {"D396": [0x27,0xee,0x8f,0x37]}

tool: {"D365": [0xda,0xbc,0x83,0x36]}

tool: {"D299": [0xc3,0x61,0x5a,0x3d]}

tool: {"D339": [0x4e,0xfd,0xe1,0xb6]}

tool: {"D387": [0x88,0xc2,0xe2,0xb8]}

tool: {"D324": [0xe8,0x8f,0xc3,0xb5]}

tool: {"D102": [0xf6,0xec,0x85,0x37]}

tool: {"D114": [0x43,0x27,0xa9,0xb9]}

tool: {"D242": [0x14,0x18,0x99,0x37]}

tool: {"D238": [0xcb,0xf6,0xbf,0xb8]}

tool: {"D304": [0xb6,0x34,0xf2,0xb7]}

tool: {"D134": [0xb9,0xcb,0xa8,0x38]}

tool: {"D143": [0xda,0xb3,0x0e,0x3d]}

tool: {"D393": [0xd3,0x0e,0x27,0xb9]}

assistant: ```c
float target_phi(float *x, float *dx, int m) {
  int ncoeff = 20;
  float avdat = -0.1120875E-02;
  float xmin[10] = {-0.15000E+02, -0.15000E+02, -0.18005E+02, -0.18008E+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[21] = {0.68707927E-05, -0.53315889E-01, 0.22664212E-01, 0.62649786E-01, -0.34839489E-01, 0.18685372E-03, -0.16131722E-03, -0.78612618E-04, -0.14436597E-04, 0.91251168E-05, 0.40244053E-04, -0.53106280E-04, 0.13086965E-05, -0.48568381E-06, -0.22450038E-05, -0.22883896E-04, -0.54063770E-04, 0.50871720E-04, 0.79825895E-05, 0.17157827E-04, 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 x13 = x12 * x1;
  float x21 = x2;
  float x22 = x21 * x2;
  float x23 = x22 * x2;
  float x31 = x3;
  float x32 = x31 * x3;
  float x33 = x32 * x3;
  float x34 = x33 * x3;
  float x41 = x4;
  float x42 = x41 * x4;
  float x43 = x42 * x4;
  float v_target_phi = avdat + coeff[0] + coeff[1] * x11 + coeff[2] * x21 + coeff[3] * x31 + coeff[4] * x41 + coeff[5] * x11 * x31 + coeff[6] * x32 + coeff[7] * x11 * x41;
  v_target_phi = v_target_phi + coeff[8] * x42 + coeff[9] * x21 * x32 + coeff[10] * x21 * x42 + coeff[11] * x43 + coeff[12] * x13 * x21 + coeff[13] * x11 * x23 + coeff[14] * x13 * x41 + coeff[15] * x34 * x41 + coeff[16] * x12;
  v_target_phi = v_target_phi + coeff[17] * x11 * x21 + coeff[18] * x22 + coeff[19] * x21 * x31;
  float dxall = 0 + dx1 + dx2 + dx3 + dx4;
  float dv_target_phi = dxall == 0 ? 0 : sqrt(+dx1 * dx1 * pow(0 + coeff[1] + coeff[5] * x31 + coeff[7] * x41 + 3 * coeff[12] * x12 * x21 + coeff[13] * x23 + 3 * coeff[14] * x12 * x41 + 2 * coeff[16] * x11 + coeff[17] * x21, 2) + dx2 * dx2 * pow(0 + coeff[2] + coeff[9] * x32 + coeff[10] * x42 + coeff[12] * x13 + 3 * coeff[13] * x22 * x11 + coeff[17] * x11 + 2 * coeff[18] * x21 + coeff[19] * x31, 2) + dx3 * dx3 * pow(0 + coeff[3] + coeff[5] * x11 + 2 * coeff[6] * x31 + 2 * coeff[9] * x31 * x21 + 4 * coeff[15] * x33 * x41 + coeff[19] * x21, 2) + dx4 * dx4 * pow(0 + coeff[4] + coeff[7] * x11 + 2 * coeff[8] * x41 + 2 * coeff[10] * x41 * x21 + 3 * coeff[11] * x42 + coeff[14] * x13 + coeff[15] * x34, 2));
  dx[0] = dv_target_phi;
  return v_target_phi;
}
```