user: Translate the below assembly code into C programming language:

```asm
<target_phi>:
  endbr64
  push   %r14
  push   %rbx
  sub    $0xf8,%rsp
  mov    %rdi,%rcx
  mov    %rsi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0xe8(%rsp)
  xor    %eax,%eax
  movss  D117(%rip),%xmm0
  movss  %xmm0,0x60(%rsp)
  movss  %xmm0,0x64(%rsp)
  movl   $0xc1900a3d,0x68(%rsp)
  movl   $0xc1901062,0x6c(%rsp)
  movl   $0x0,0x70(%rsp)
  movl   $0x0,0x74(%rsp)
  movl   $0x0,0x78(%rsp)
  movl   $0x0,0x7c(%rsp)
  movl   $0x0,0x80(%rsp)
  movl   $0x0,0x84(%rsp)
  movss  D67(%rip),%xmm0
  movss  %xmm0,0x90(%rsp)
  movss  %xmm0,0x94(%rsp)
  movl   $0x41900625,0x98(%rsp)
  movl   $0x4190020c,0x9c(%rsp)
  movl   $0x0,0xa0(%rsp)
  movl   $0x0,0xa4(%rsp)
  movl   $0x0,0xa8(%rsp)
  movl   $0x0,0xac(%rsp)
  movl   $0x0,0xb0(%rsp)
  movl   $0x0,0xb4(%rsp)
  movq   $0x0,0xc0(%rsp)
  movq   $0x0,0xc8(%rsp)
  movq   $0x0,0xd0(%rsp)
  movq   $0x0,0xd8(%rsp)
  movq   $0x0,0xe0(%rsp)
  test   %edx,%edx
  jle    L69
  mov    %edx,%edx
  movss  D350(%rip),%xmm2
  jmp    L22
L18:
  subss  %xmm1,%xmm0
  movaps %xmm2,%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,0xc0(%rsp,%rax,4)
L52:
  add    $0x1,%rax
  cmp    %rdx,%rax
  je     L69
L22:
  movss  0x60(%rsp,%rax,4),%xmm1
  movss  0x90(%rsp,%rax,4),%xmm0
  ucomiss %xmm0,%xmm1
  jp     L18
  jne    L18
  jmp    L52
L69:
  movss  0xc0(%rsp),%xmm2
  movss  (%rcx),%xmm0
  movss  D67(%rip),%xmm4
  subss  %xmm4,%xmm0
  movaps %xmm0,%xmm1
  mulss  %xmm2,%xmm1
  movss  D315(%rip),%xmm0
  movaps %xmm1,%xmm6
  addss  %xmm0,%xmm6
  movss  %xmm6,0x28(%rsp)
  mulss  (%rbx),%xmm2
  movss  0xc4(%rsp),%xmm3
  movss  0x4(%rcx),%xmm1
  subss  %xmm4,%xmm1
  mulss  %xmm3,%xmm1
  addss  %xmm0,%xmm1
  mulss  0x4(%rbx),%xmm3
  movss  %xmm3,0x1c(%rsp)
  movss  0xc8(%rsp),%xmm4
  movss  0x8(%rcx),%xmm3
  subss  D459(%rip),%xmm3
  mulss  %xmm4,%xmm3
  movaps %xmm3,%xmm9
  addss  %xmm0,%xmm9
  movss  %xmm9,0x2c(%rsp)
  mulss  0x8(%rbx),%xmm4
  movss  %xmm4,0x20(%rsp)
  movss  0xcc(%rsp),%xmm4
  movss  0xc(%rcx),%xmm3
  subss  D224(%rip),%xmm3
  mulss  %xmm4,%xmm3
  movaps %xmm3,%xmm15
  addss  %xmm0,%xmm15
  movss  %xmm15,0xc(%rsp)
  mulss  0xc(%rbx),%xmm4
  movss  %xmm4,0x24(%rsp)
  movaps %xmm6,%xmm3
  mulss  %xmm6,%xmm3
  movaps %xmm6,%xmm0
  mulss  %xmm3,%xmm0
  movaps %xmm1,%xmm4
  mulss  %xmm1,%xmm4
  movss  %xmm4,0x4c(%rsp)
  mulss  %xmm1,%xmm4
  movaps %xmm9,%xmm11
  mulss  %xmm9,%xmm11
  movss  %xmm11,0x50(%rsp)
  movaps %xmm15,%xmm13
  mulss  %xmm15,%xmm13
  movss  %xmm13,0x54(%rsp)
  movaps %xmm15,%xmm12
  mulss  %xmm13,%xmm12
  movss  %xmm12,0x58(%rsp)
  movaps %xmm6,%xmm8
  mulss  D5(%rip),%xmm8
  movss  %xmm8,0x30(%rsp)
  movaps %xmm6,%xmm7
  mulss  D122(%rip),%xmm7
  movss  %xmm7,0x34(%rsp)
  movaps %xmm1,%xmm5
  mulss  D295(%rip),%xmm5
  movss  %xmm5,0x10(%rsp)
  movaps %xmm11,%xmm10
  mulss  D174(%rip),%xmm10
  movss  %xmm10,0x38(%rsp)
  movaps %xmm0,%xmm14
  mulss  D8(%rip),%xmm14
  movss  %xmm14,0x14(%rsp)
  mulss  D411(%rip),%xmm0
  movss  %xmm0,0x18(%rsp)
  movaps %xmm6,%xmm0
  mulss  D125(%rip),%xmm0
  subss  D213(%rip),%xmm0
  movaps %xmm1,%xmm14
  mulss  D267(%rip),%xmm14
  addss  %xmm14,%xmm0
  movaps %xmm9,%xmm5
  mulss  D204(%rip),%xmm5
  addss  %xmm5,%xmm0
  movaps %xmm15,%xmm5
  mulss  D202(%rip),%xmm5
  addss  %xmm5,%xmm0
  movaps %xmm8,%xmm5
  mulss  %xmm9,%xmm5
  addss  %xmm5,%xmm0
  movaps %xmm11,%xmm5
  mulss  D356(%rip),%xmm5
  addss  %xmm5,%xmm0
  mulss  %xmm15,%xmm7
  addss  %xmm7,%xmm0
  movss  0x10(%rsp),%xmm5
  mulss  %xmm15,%xmm5
  addss  %xmm5,%xmm0
  movaps %xmm13,%xmm5
  mulss  D14(%rip),%xmm5
  addss  %xmm5,%xmm0
  movaps %xmm10,%xmm5
  mulss  %xmm15,%xmm5
  addss  %xmm5,%xmm0
  movss  0x14(%rsp),%xmm5
  mulss  %xmm1,%xmm5
  addss  %xmm5,%xmm0
  movaps %xmm6,%xmm5
  mulss  D145(%rip),%xmm5
  mulss  %xmm4,%xmm5
  addss  %xmm5,%xmm0
  movss  0x18(%rsp),%xmm5
  mulss  %xmm15,%xmm5
  addss  %xmm5,%xmm0
  movaps %xmm11,%xmm5
  mulss  D273(%rip),%xmm5
  mulss  %xmm12,%xmm5
  addss  %xmm5,%xmm0
  movaps %xmm3,%xmm5
  mulss  D198(%rip),%xmm5
  addss  %xmm5,%xmm0
  mulss  D60(%rip),%xmm6
  movss  %xmm6,0x3c(%rsp)
  movaps %xmm1,%xmm8
  mulss  D257(%rip),%xmm8
  movss  %xmm8,0x40(%rsp)
  movaps %xmm9,%xmm7
  mulss  D61(%rip),%xmm7
  movss  %xmm7,0x44(%rsp)
  mulss  %xmm1,%xmm6
  addss  %xmm6,%xmm0
  movaps %xmm8,%xmm5
  mulss  %xmm9,%xmm5
  addss  %xmm5,%xmm0
  mulss  %xmm15,%xmm7
  addss  %xmm7,%xmm0
  movaps %xmm3,%xmm7
  mulss  D384(%rip),%xmm7
  movss  %xmm7,0x48(%rsp)
  movaps %xmm7,%xmm5
  mulss  %xmm1,%xmm5
  addss  %xmm0,%xmm5
  movd   %xmm5,%r14d
  pxor   %xmm5,%xmm5
  movaps %xmm2,%xmm0
  addss  %xmm5,%xmm0
  addss  0x1c(%rsp),%xmm0
  addss  0x20(%rsp),%xmm0
  addss  0x24(%rsp),%xmm0
  ucomiss %xmm5,%xmm0
  jp     L93
  movaps %xmm5,%xmm0
  jne    L93
L5:
  movss  %xmm0,(%rbx)
  mov    0xe8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L26
  movd   %r14d,%xmm0
  add    $0xf8,%rsp
  pop    %rbx
  pop    %r14
  ret
L93:
  mulss  %xmm2,%xmm2
  movss  %xmm2,0x5c(%rsp)
  movss  0x2c(%rsp),%xmm0
  mulss  D5(%rip),%xmm0
  subss  D52(%rip),%xmm0
  movss  0xc(%rsp),%xmm7
  movaps %xmm7,%xmm2
  mulss  D122(%rip),%xmm2
  addss  %xmm2,%xmm0
  movaps %xmm3,%xmm5
  mulss  D449(%rip),%xmm5
  movaps %xmm5,%xmm2
  mulss  %xmm1,%xmm2
  addss  %xmm2,%xmm0
  mulss  D145(%rip),%xmm4
  addss  %xmm4,%xmm0
  mulss  D327(%rip),%xmm3
  mulss  %xmm7,%xmm3
  addss  %xmm3,%xmm0
  movss  0x28(%rsp),%xmm4
  movaps %xmm4,%xmm2
  mulss  D359(%rip),%xmm2
  addss  %xmm2,%xmm0
  movaps %xmm1,%xmm5
  mulss  D60(%rip),%xmm5
  addss  %xmm5,%xmm0
  movaps %xmm4,%xmm2
  mulss  D130(%rip),%xmm2
  mulss  %xmm2,%xmm1
  addss  %xmm1,%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  movaps %xmm0,%xmm1
  mulss  0x5c(%rsp),%xmm1
  movss  %xmm1,0x5c(%rsp)
  movss  0x1c(%rsp),%xmm6
  mulss  %xmm6,%xmm6
  movss  %xmm6,0x1c(%rsp)
  movss  0xc(%rsp),%xmm4
  mulss  D295(%rip),%xmm4
  movaps %xmm4,%xmm0
  addss  D267(%rip),%xmm0
  addss  0x14(%rsp),%xmm0
  movss  0x4c(%rsp),%xmm1
  mulss  D346(%rip),%xmm1
  mulss  0x28(%rsp),%xmm1
  addss  %xmm1,%xmm0
  addss  0x3c(%rsp),%xmm0
  movss  0x2c(%rsp),%xmm1
  mulss  D257(%rip),%xmm1
  addss  %xmm1,%xmm0
  addss  0x48(%rsp),%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  mulss  0x1c(%rsp),%xmm0
  addss  0x5c(%rsp),%xmm0
  movss  %xmm0,0x14(%rsp)
  movss  0x20(%rsp),%xmm4
  mulss  %xmm4,%xmm4
  movss  %xmm4,0x1c(%rsp)
  movss  0x30(%rsp),%xmm6
  addss  D204(%rip),%xmm6
  movaps %xmm6,%xmm0
  movss  0x2c(%rsp),%xmm2
  movaps %xmm2,%xmm1
  mulss  D288(%rip),%xmm1
  addss  %xmm1,%xmm0
  movaps %xmm2,%xmm1
  mulss  D466(%rip),%xmm1
  movss  0xc(%rsp),%xmm3
  mulss  %xmm3,%xmm1
  addss  %xmm1,%xmm0
  mulss  D15(%rip),%xmm2
  movaps %xmm2,%xmm1
  mulss  0x58(%rsp),%xmm1
  addss  %xmm1,%xmm0
  addss  0x40(%rsp),%xmm0
  movaps %xmm3,%xmm1
  mulss  D61(%rip),%xmm1
  addss  %xmm1,%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  mulss  0x1c(%rsp),%xmm0
  movaps %xmm0,%xmm7
  addss  0x14(%rsp),%xmm7
  movss  %xmm7,0x14(%rsp)
  movss  0x24(%rsp),%xmm2
  mulss  %xmm2,%xmm2
  movss  %xmm2,0x1c(%rsp)
  movss  0x34(%rsp),%xmm0
  subss  D120(%rip),%xmm0
  movss  0x10(%rsp),%xmm4
  addss  %xmm0,%xmm4
  movss  0xc(%rsp),%xmm0
  mulss  D163(%rip),%xmm0
  addss  %xmm4,%xmm0
  addss  0x38(%rsp),%xmm0
  addss  0x18(%rsp),%xmm0
  movss  0x54(%rsp),%xmm1
  mulss  D118(%rip),%xmm1
  mulss  0x50(%rsp),%xmm1
  addss  %xmm1,%xmm0
  addss  0x44(%rsp),%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  mulss  0x1c(%rsp),%xmm0
  addss  0x14(%rsp),%xmm0
  call   <sqrt@plt>
  jmp    L5
L26:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D117
type_infered: byte[4]
name: read_data
arguments: data_label: D67
type_infered: f32
name: read_data
arguments: data_label: D350
type_infered: f32
name: read_data
arguments: data_label: D315
type_infered: f32
name: read_data
arguments: data_label: D459
type_infered: byte[4]
name: read_data
arguments: data_label: D224
type_infered: byte[4]
name: read_data
arguments: data_label: D5
type_infered: byte[4]
name: read_data
arguments: data_label: D122
type_infered: byte[4]
name: read_data
arguments: data_label: D295
type_infered: byte[4]
name: read_data
arguments: data_label: D174
type_infered: byte[4]
name: read_data
arguments: data_label: D8
type_infered: byte[4]
name: read_data
arguments: data_label: D411
type_infered: byte[4]
name: read_data
arguments: data_label: D125
type_infered: byte[4]
name: read_data
arguments: data_label: D213
type_infered: byte[4]
name: read_data
arguments: data_label: D267
type_infered: byte[4]
name: read_data
arguments: data_label: D204
type_infered: byte[4]
name: read_data
arguments: data_label: D202
type_infered: byte[4]
name: read_data
arguments: data_label: D356
type_infered: byte[4]
name: read_data
arguments: data_label: D14
type_infered: byte[4]
name: read_data
arguments: data_label: D145
type_infered: byte[4]
name: read_data
arguments: data_label: D273
type_infered: byte[4]
name: read_data
arguments: data_label: D198
type_infered: byte[4]
name: read_data
arguments: data_label: D60
type_infered: byte[4]
name: read_data
arguments: data_label: D257
type_infered: byte[4]
name: read_data
arguments: data_label: D61
type_infered: byte[4]
name: read_data
arguments: data_label: D384
type_infered: byte[4]
name: read_data
arguments: data_label: D52
type_infered: byte[4]
name: read_data
arguments: data_label: D449
type_infered: byte[4]
name: read_data
arguments: data_label: D327
type_infered: byte[4]
name: read_data
arguments: data_label: D359
type_infered: byte[4]
name: read_data
arguments: data_label: D130
type_infered: byte[4]
name: read_data
arguments: data_label: D346
type_infered: byte[4]
name: read_data
arguments: data_label: D288
type_infered: byte[4]
name: read_data
arguments: data_label: D466
type_infered: byte[4]
name: read_data
arguments: data_label: D15
type_infered: byte[4]
name: read_data
arguments: data_label: D120
type_infered: byte[4]
name: read_data
arguments: data_label: D163
type_infered: byte[4]
name: read_data
arguments: data_label: D118
type_infered: byte[4]

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

tool: D67: 15

tool: D350: 2

tool: D315: 1

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

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

tool: {"D5": [0xd7,0x55,0x40,0x39]}

tool: {"D122": [0x85,0x99,0x1c,0x39]}

tool: {"D295": [0x0a,0x14,0xb7,0x37]}

tool: {"D174": [0x05,0x60,0x02,0xb7]}

tool: {"D8": [0xe9,0xbb,0xf4,0x35]}

tool: {"D411": [0x0e,0xae,0x50,0xb6]}

tool: {"D125": [0x8e,0x75,0x5b,0xbd]}

tool: {"D213": [0x0d,0x7c,0x6e,0x3a]}

tool: {"D267": [0xb4,0x8d,0xb4,0x3c]}

tool: {"D204": [0xb8,0x22,0x81,0x3d]}

tool: {"D202": [0x41,0xb4,0x0b,0xbd]}

tool: {"D356": [0xc8,0xb2,0x26,0xb9]}

tool: {"D14": [0x22,0x68,0xf6,0xb7]}

tool: {"D145": [0x51,0x0d,0x2c,0xb5]}

tool: {"D273": [0x7a,0x28,0x9e,0xb7]}

tool: {"D198": [0x44,0xd0,0x5d,0xb8]}

tool: {"D60": [0x8e,0xba,0x10,0xb9]}

tool: {"D257": [0xaa,0x09,0x80,0x39]}

tool: {"D61": [0x81,0x9a,0x8f,0xb9]}

tool: {"D384": [0xe2,0xb1,0x03,0x37]}

tool: {"D52": [0x8e,0x75,0x5b,0x3d]}

tool: {"D449": [0xef,0x8c,0xb7,0x36]}

tool: {"D327": [0x8a,0x82,0x1c,0xb7]}

tool: {"D359": [0x44,0xd0,0xdd,0xb8]}

tool: {"D130": [0xe2,0xb1,0x83,0x37]}

tool: {"D346": [0xfd,0x09,0x01,0xb6]}

tool: {"D288": [0xc8,0xb2,0xa6,0xb9]}

tool: {"D466": [0x05,0x60,0x82,0xb7]}

tool: {"D15": [0x7a,0x28,0x1e,0xb8]}

tool: {"D120": [0x41,0xb4,0x0b,0x3d]}

tool: {"D163": [0x22,0x68,0x76,0xb8]}

tool: {"D118": [0xb7,0x3c,0x6d,0xb8]}

assistant: ```c
float target_phi(float *x, float *dx, int m) {
  int ncoeff = 20;
  float avdat = -0.9168636E-03;
  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.71171430E-05, -0.53578906E-01, 0.22040226E-01, 0.63054502E-01, -0.34107450E-01, 0.18342525E-03, -0.15897595E-03, 0.14934510E-03, 0.21824631E-04, -0.29373976E-04, -0.77709601E-05, 0.18234106E-05, -0.64094371E-06, -0.31095728E-05, -0.18853916E-04, -0.52884468E-04, -0.13802407E-03, 0.24421263E-03, -0.27390200E-03, 0.78496250E-05, 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 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] * x21 * x41 + coeff[9] * x42 + coeff[10] * x32 * x41 + coeff[11] * x13 * x21 + coeff[12] * x11 * x23 + coeff[13] * x13 * x41 + coeff[14] * x32 * x43 + coeff[15] * x12 + coeff[16] * x11 * x21;
  v_target_phi = v_target_phi + coeff[17] * x21 * x31 + coeff[18] * x31 * x41 + coeff[19] * x12 * x21;
  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[11] * x12 * x21 + coeff[12] * x23 + 3 * coeff[13] * x12 * x41 + 2 * coeff[15] * x11 + coeff[16] * x21 + 2 * coeff[19] * x11 * x21, 2) + dx2 * dx2 * pow(0 + coeff[2] + coeff[8] * x41 + coeff[11] * x13 + 3 * coeff[12] * x22 * x11 + coeff[16] * x11 + coeff[17] * x31 + coeff[19] * x12, 2) + dx3 * dx3 * pow(0 + coeff[3] + coeff[5] * x11 + 2 * coeff[6] * x31 + 2 * coeff[10] * x31 * x41 + 2 * coeff[14] * x31 * x43 + coeff[17] * x21 + coeff[18] * x41, 2) + dx4 * dx4 * pow(0 + coeff[4] + coeff[7] * x11 + coeff[8] * x21 + 2 * coeff[9] * x41 + coeff[10] * x32 + coeff[13] * x13 + 3 * coeff[14] * x42 * x32 + coeff[18] * x31, 2));
  dx[0] = dv_target_phi;
  return v_target_phi;
}
```