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

```asm
<target_phi>:
  endbr64
  push   %r14
  push   %rbx
  sub    $0xd8,%rsp
  mov    %rdi,%rcx
  mov    %rsi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0xc8(%rsp)
  xor    %eax,%eax
  movss  D472(%rip),%xmm0
  movss  %xmm0,0x40(%rsp)
  movss  %xmm0,0x44(%rsp)
  movl   $0xc1900625,0x48(%rsp)
  movl   $0xc190147b,0x4c(%rsp)
  movl   $0x0,0x50(%rsp)
  movl   $0x0,0x54(%rsp)
  movl   $0x0,0x58(%rsp)
  movl   $0x0,0x5c(%rsp)
  movl   $0x0,0x60(%rsp)
  movl   $0x0,0x64(%rsp)
  movss  D62(%rip),%xmm0
  movss  %xmm0,0x70(%rsp)
  movss  %xmm0,0x74(%rsp)
  movl   $0x4190147b,0x78(%rsp)
  movl   $0x41900419,0x7c(%rsp)
  movl   $0x0,0x80(%rsp)
  movl   $0x0,0x84(%rsp)
  movl   $0x0,0x88(%rsp)
  movl   $0x0,0x8c(%rsp)
  movl   $0x0,0x90(%rsp)
  movl   $0x0,0x94(%rsp)
  movq   $0x0,0xa0(%rsp)
  movq   $0x0,0xa8(%rsp)
  movq   $0x0,0xb0(%rsp)
  movq   $0x0,0xb8(%rsp)
  movq   $0x0,0xc0(%rsp)
  test   %edx,%edx
  jle    L21
  mov    %edx,%edx
  movss  D5(%rip),%xmm2
  jmp    L63
L48:
  subss  %xmm1,%xmm0
  movaps %xmm2,%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,0xa0(%rsp,%rax,4)
L45:
  add    $0x1,%rax
  cmp    %rdx,%rax
  je     L21
L63:
  movss  0x40(%rsp,%rax,4),%xmm1
  movss  0x70(%rsp,%rax,4),%xmm0
  ucomiss %xmm0,%xmm1
  jp     L48
  jne    L48
  jmp    L45
L21:
  movss  0xa0(%rsp),%xmm1
  movss  (%rcx),%xmm0
  movss  D62(%rip),%xmm4
  subss  %xmm4,%xmm0
  movaps %xmm0,%xmm2
  mulss  %xmm1,%xmm2
  movss  D51(%rip),%xmm0
  movaps %xmm2,%xmm9
  addss  %xmm0,%xmm9
  movss  %xmm9,0xc(%rsp)
  mulss  (%rbx),%xmm1
  movss  0xa4(%rsp),%xmm3
  movss  0x4(%rcx),%xmm2
  subss  %xmm4,%xmm2
  mulss  %xmm3,%xmm2
  movaps %xmm2,%xmm11
  addss  %xmm0,%xmm11
  movaps %xmm11,%xmm12
  movss  %xmm11,0x18(%rsp)
  mulss  0x4(%rbx),%xmm3
  movss  %xmm3,(%rsp)
  movss  0xa8(%rsp),%xmm3
  movss  0x8(%rcx),%xmm2
  subss  D493(%rip),%xmm2
  mulss  %xmm3,%xmm2
  movaps %xmm2,%xmm14
  addss  %xmm0,%xmm14
  movss  %xmm14,0x10(%rsp)
  movaps %xmm3,%xmm6
  mulss  0x8(%rbx),%xmm6
  movss  %xmm6,0x4(%rsp)
  movss  0xac(%rsp),%xmm3
  movss  0xc(%rcx),%xmm2
  subss  D263(%rip),%xmm2
  mulss  %xmm3,%xmm2
  movaps %xmm2,%xmm8
  addss  %xmm0,%xmm8
  movss  %xmm8,0x14(%rsp)
  movaps %xmm3,%xmm7
  mulss  0xc(%rbx),%xmm7
  movss  %xmm7,0x8(%rsp)
  movaps %xmm9,%xmm5
  mulss  %xmm9,%xmm5
  movaps %xmm11,%xmm7
  mulss  %xmm11,%xmm7
  movaps %xmm7,%xmm11
  movss  %xmm7,0x34(%rsp)
  movaps %xmm12,%xmm2
  mulss  %xmm7,%xmm2
  movaps %xmm14,%xmm3
  mulss  %xmm14,%xmm3
  movaps %xmm8,%xmm7
  mulss  %xmm8,%xmm7
  movss  %xmm7,0x1c(%rsp)
  movaps %xmm8,%xmm6
  mulss  %xmm7,%xmm6
  movss  %xmm6,0x38(%rsp)
  movaps %xmm12,%xmm13
  mulss  D42(%rip),%xmm13
  movss  %xmm13,0x20(%rsp)
  movaps %xmm9,%xmm10
  mulss  D112(%rip),%xmm10
  movss  %xmm10,0x24(%rsp)
  movaps %xmm3,%xmm15
  mulss  D261(%rip),%xmm15
  movss  %xmm15,0x28(%rsp)
  movaps %xmm9,%xmm0
  mulss  D28(%rip),%xmm0
  subss  D132(%rip),%xmm0
  movaps %xmm12,%xmm4
  mulss  D224(%rip),%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm14,%xmm4
  mulss  D376(%rip),%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm8,%xmm4
  mulss  D272(%rip),%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm13,%xmm4
  mulss  %xmm8,%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm7,%xmm4
  mulss  D31(%rip),%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm5,%xmm4
  mulss  D190(%rip),%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm10,%xmm4
  mulss  %xmm14,%xmm4
  addss  %xmm4,%xmm0
  mulss  D454(%rip),%xmm14
  movaps %xmm14,%xmm4
  mulss  %xmm6,%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm11,%xmm4
  mulss  D412(%rip),%xmm4
  addss  %xmm4,%xmm0
  mulss  D20(%rip),%xmm3
  addss  %xmm3,%xmm0
  movaps %xmm15,%xmm3
  mulss  %xmm8,%xmm3
  addss  %xmm3,%xmm0
  movaps %xmm12,%xmm3
  mulss  D322(%rip),%xmm3
  mulss  %xmm7,%xmm3
  addss  %xmm3,%xmm0
  mulss  D10(%rip),%xmm6
  addss  %xmm6,%xmm0
  movaps %xmm9,%xmm3
  mulss  D294(%rip),%xmm3
  mulss  %xmm2,%xmm3
  addss  %xmm3,%xmm0
  movaps %xmm9,%xmm6
  mulss  D415(%rip),%xmm6
  movss  %xmm6,0x2c(%rsp)
  mulss  D93(%rip),%xmm5
  movss  %xmm5,0x30(%rsp)
  mulss  %xmm8,%xmm6
  addss  %xmm6,%xmm0
  mulss  %xmm12,%xmm5
  addss  %xmm5,%xmm0
  movaps %xmm2,%xmm4
  mulss  D133(%rip),%xmm4
  addss  %xmm4,%xmm0
  mulss  D262(%rip),%xmm9
  movaps %xmm9,%xmm3
  mulss  %xmm7,%xmm3
  movaps %xmm3,%xmm4
  addss  %xmm0,%xmm4
  movd   %xmm4,%r14d
  pxor   %xmm3,%xmm3
  movaps %xmm1,%xmm0
  addss  %xmm3,%xmm0
  addss  (%rsp),%xmm0
  addss  0x4(%rsp),%xmm0
  addss  0x8(%rsp),%xmm0
  ucomiss %xmm3,%xmm0
  jp     L84
  movaps %xmm3,%xmm0
  jne    L84
L37:
  movss  %xmm0,(%rbx)
  mov    0xc8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L74
  movd   %r14d,%xmm0
  add    $0xd8,%rsp
  pop    %rbx
  pop    %r14
  ret
L84:
  mulss  %xmm1,%xmm1
  movss  %xmm1,0x3c(%rsp)
  movss  0xc(%rsp),%xmm5
  movaps %xmm5,%xmm0
  mulss  D489(%rip),%xmm0
  subss  D353(%rip),%xmm0
  movss  0x10(%rsp),%xmm1
  mulss  D112(%rip),%xmm1
  addss  %xmm1,%xmm0
  mulss  D294(%rip),%xmm2
  addss  %xmm2,%xmm0
  movss  0x14(%rsp),%xmm1
  mulss  D415(%rip),%xmm1
  addss  %xmm1,%xmm0
  movaps %xmm5,%xmm6
  mulss  D159(%rip),%xmm6
  movaps %xmm6,%xmm1
  mulss  0x18(%rsp),%xmm1
  addss  %xmm1,%xmm0
  movss  0x1c(%rsp),%xmm5
  mulss  D262(%rip),%xmm5
  addss  %xmm5,%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  mulss  0x3c(%rsp),%xmm0
  movss  %xmm0,0x3c(%rsp)
  movss  (%rsp),%xmm3
  mulss  %xmm3,%xmm3
  movss  %xmm3,(%rsp)
  movss  0x14(%rsp),%xmm0
  mulss  D42(%rip),%xmm0
  addss  D224(%rip),%xmm0
  movss  0x18(%rsp),%xmm4
  mulss  D223(%rip),%xmm4
  addss  %xmm4,%xmm0
  movss  0x1c(%rsp),%xmm1
  mulss  D322(%rip),%xmm1
  addss  %xmm1,%xmm0
  movss  0x34(%rsp),%xmm3
  movaps %xmm3,%xmm10
  mulss  D77(%rip),%xmm10
  movaps %xmm10,%xmm1
  mulss  0xc(%rsp),%xmm1
  addss  %xmm1,%xmm0
  addss  0x30(%rsp),%xmm0
  mulss  D21(%rip),%xmm3
  addss  %xmm3,%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  mulss  (%rsp),%xmm0
  movaps %xmm0,%xmm13
  addss  0x3c(%rsp),%xmm13
  movss  %xmm13,(%rsp)
  movss  0x4(%rsp),%xmm3
  mulss  %xmm3,%xmm3
  movss  %xmm3,0x4(%rsp)
  movss  0x24(%rsp),%xmm0
  addss  D376(%rip),%xmm0
  movss  0x38(%rsp),%xmm15
  mulss  D454(%rip),%xmm15
  addss  %xmm15,%xmm0
  movss  0x10(%rsp),%xmm7
  movaps %xmm7,%xmm2
  mulss  D404(%rip),%xmm2
  addss  %xmm2,%xmm0
  movaps %xmm7,%xmm2
  mulss  D129(%rip),%xmm2
  movaps %xmm2,%xmm1
  mulss  0x14(%rsp),%xmm1
  addss  %xmm1,%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  mulss  0x4(%rsp),%xmm0
  addss  (%rsp),%xmm0
  movss  %xmm0,(%rsp)
  movss  0x8(%rsp),%xmm3
  mulss  %xmm3,%xmm3
  movss  %xmm3,0x4(%rsp)
  movss  0x20(%rsp),%xmm10
  subss  D428(%rip),%xmm10
  movaps %xmm10,%xmm0
  movss  0x14(%rsp),%xmm5
  movaps %xmm5,%xmm1
  mulss  D393(%rip),%xmm1
  addss  %xmm1,%xmm0
  movss  0x1c(%rsp),%xmm6
  movaps %xmm6,%xmm1
  mulss  D71(%rip),%xmm1
  mulss  0x10(%rsp),%xmm1
  addss  %xmm1,%xmm0
  addss  0x28(%rsp),%xmm0
  movaps %xmm5,%xmm1
  mulss  D95(%rip),%xmm1
  mulss  0x18(%rsp),%xmm1
  addss  %xmm1,%xmm0
  mulss  D469(%rip),%xmm6
  addss  %xmm6,%xmm0
  addss  0x2c(%rsp),%xmm0
  mulss  D288(%rip),%xmm5
  movaps %xmm5,%xmm1
  mulss  0xc(%rsp),%xmm1
  addss  %xmm1,%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  mulss  0x4(%rsp),%xmm0
  addss  (%rsp),%xmm0
  call   <sqrt@plt>
  jmp    L37
L74:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D472
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D62
type: f32
name: extract_symbolic_data
arguments: data_tag: D5
type: f32
name: extract_symbolic_data
arguments: data_tag: D51
type: f32
name: extract_symbolic_data
arguments: data_tag: D493
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D263
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D42
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D112
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D261
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D28
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D132
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D224
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D376
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D272
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D31
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D190
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D454
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D412
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D20
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D322
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D10
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D294
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D415
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D93
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D133
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D262
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D489
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D353
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D159
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D223
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D77
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D21
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D404
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D129
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D428
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D393
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D71
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D95
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D469
type: byte[4]
name: extract_symbolic_data
arguments: data_tag: D288
type: byte[4]

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

tool: D62: 15

tool: D5: 2

tool: D51: 1

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

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

tool: {"D42": [0x4c,0xeb,0xaa,0x3a]}

tool: {"D112": [0xc4,0x13,0x2d,0x3a]}

tool: {"D261": [0xb6,0xa5,0xbc,0xb8]}

tool: {"D28": [0x2f,0x67,0x4d,0xbd]}

tool: {"D132": [0x5f,0xde,0xc3,0x3c]}

tool: {"D224": [0x6a,0xfd,0x04,0x3d]}

tool: {"D376": [0xbb,0x2a,0x6b,0x3d]}

tool: {"D272": [0x3f,0x81,0x4d,0xbd]}

tool: {"D31": [0xe5,0xa9,0x86,0xba]}

tool: {"D190": [0x94,0x6b,0x4a,0xb9]}

tool: {"D454": [0x4f,0x5b,0x06,0xb9]}

tool: {"D412": [0xb0,0x99,0xdb,0xb9]}

tool: {"D20": [0x7c,0x7a,0x14,0xba]}

tool: {"D322": [0x9b,0xd2,0x32,0x3a]}

tool: {"D10": [0x89,0xe9,0x29,0xba]}

tool: {"D294": [0x3d,0x74,0xa9,0x38]}

tool: {"D415": [0xc1,0x60,0x17,0xb8]}

tool: {"D93": [0x7c,0xdd,0x21,0x38]}

tool: {"D133": [0xee,0xee,0xf2,0xb8]}

tool: {"D262": [0xc2,0x9f,0x7a,0xb7]}

tool: {"D489": [0x94,0x6b,0xca,0xb9]}

tool: {"D353": [0x2f,0x67,0x4d,0x3d]}

tool: {"D159": [0x7c,0xdd,0xa1,0x38]}

tool: {"D223": [0xb0,0x99,0x5b,0xba]}

tool: {"D77": [0x5c,0x2e,0x7e,0x39]}

tool: {"D21": [0x32,0x33,0xb6,0xb9]}

tool: {"D404": [0x7c,0x7a,0x94,0xba]}

tool: {"D129": [0xb6,0xa5,0x3c,0xb9]}

tool: {"D428": [0x3f,0x81,0x4d,0x3d]}

tool: {"D393": [0xe5,0xa9,0x06,0xbb]}

tool: {"D71": [0xf6,0x88,0xc9,0xb9]}

tool: {"D95": [0x9b,0xd2,0xb2,0x3a]}

tool: {"D469": [0x4e,0xde,0xfe,0xba]}

tool: {"D288": [0xc2,0x9f,0xfa,0xb7]}

assistant: ```c
float target_phi(float *x, float *dx, int m) {
  int ncoeff = 20;
  float avdat = -0.2396496E-01;
  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[21] = {0.55214903E-04, -0.50147232E-01, 0.32468237E-01, 0.57413798E-01, -0.50172087E-01, 0.13040095E-02, -0.10274021E-02, -0.19304297E-03, 0.66023716E-03, -0.12813251E-03, -0.41885441E-03, -0.56640035E-03, -0.89954046E-04, 0.68215438E-03, -0.64816378E-03, 0.80801990E-04, -0.36091315E-04, 0.38591665E-04, -0.11583963E-03, -0.14938358E-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 x21 = x2;
  float x22 = x21 * x2;
  float x23 = x22 * x2;
  float x31 = x3;
  float x32 = x31 * 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] * x21 * x41 + coeff[6] * x42 + coeff[7] * x12;
  v_target_phi = v_target_phi + coeff[8] * x11 * x31 + coeff[9] * x31 * x43 + coeff[10] * x22 + coeff[11] * x32 + coeff[12] * x32 * x41 + coeff[13] * x21 * x42 + coeff[14] * x43 + coeff[15] * x11 * x23 + coeff[16] * x11 * x41;
  v_target_phi = v_target_phi + coeff[17] * x12 * x21 + coeff[18] * x23 + coeff[19] * x11 * x42;
  float dxall = 0 + dx1 + dx2 + dx3 + dx4;
  float dv_target_phi = dxall == 0 ? 0 : sqrt(+dx1 * dx1 * pow(0 + coeff[1] + 2 * coeff[7] * x11 + coeff[8] * x31 + coeff[15] * x23 + coeff[16] * x41 + 2 * coeff[17] * x11 * x21 + coeff[19] * x42, 2) + dx2 * dx2 * pow(0 + coeff[2] + coeff[5] * x41 + 2 * coeff[10] * x21 + coeff[13] * x42 + 3 * coeff[15] * x22 * x11 + coeff[17] * x12 + 3 * coeff[18] * x22, 2) + dx3 * dx3 * pow(0 + coeff[3] + coeff[8] * x11 + coeff[9] * x43 + 2 * coeff[11] * x31 + 2 * coeff[12] * x31 * x41, 2) + dx4 * dx4 * pow(0 + coeff[4] + coeff[5] * x21 + 2 * coeff[6] * x41 + 3 * coeff[9] * x42 * x31 + coeff[12] * x32 + 2 * coeff[13] * x41 * x21 + 3 * coeff[14] * x42 + coeff[16] * x11 + 2 * coeff[19] * x41 * x11, 2));
  dx[0] = dv_target_phi;
  return v_target_phi;
}
```