user: Converte this assembly snippet into its equivalent C code:

```asm
<target_phi>:
  endbr64
  push   %rbx
  pxor   %xmm0,%xmm0
  mov    %rsi,%rbx
  sub    $0xf0,%rsp
  movss  D423(%rip),%xmm1
  movss  D67(%rip),%xmm4
  mov    %fs:0x28,%rax
  mov    %rax,0xe8(%rsp)
  xor    %eax,%eax
  movaps %xmm0,0xc0(%rsp)
  movabs $0xc1901062c1900a3d,%rax
  mov    %rax,0x68(%rsp)
  movabs $0x4190020c41900625,%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  %xmm4,0x94(%rsp)
  movaps %xmm0,0xd0(%rsp)
  test   %edx,%edx
  jle    L28
  sub    $0x1,%edx
  movss  D450(%rip),%xmm2
  xor    %eax,%eax
  movaps %xmm4,%xmm0
  shl    $0x2,%rdx
  lea    0x64(%rsp),%rsi
  lea    0x94(%rsp),%rcx
  jmp    L56
  nop
L10:
  movss  (%rsi,%rax,1),%xmm1
  movss  (%rcx,%rax,1),%xmm0
  add    $0x4,%rax
L56:
  ucomiss %xmm0,%xmm1
  jp     L37
  je     L98
L37:
  subss  %xmm1,%xmm0
  movaps %xmm2,%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,0xc0(%rsp,%rax,1)
L98:
  cmp    %rdx,%rax
  jne    L10
  movss  0xc0(%rsp),%xmm7
  pxor   %xmm0,%xmm0
  movss  0xc4(%rsp),%xmm6
  movss  0xc8(%rsp),%xmm1
  movss  0xcc(%rsp),%xmm5
L7:
  movss  (%rdi),%xmm2
  movss  0x4(%rdi),%xmm3
  movss  D229(%rip),%xmm8
  movss  D0(%rip),%xmm15
  subss  %xmm4,%xmm2
  subss  %xmm4,%xmm3
  movss  0x8(%rdi),%xmm4
  movss  D270(%rip),%xmm13
  subss  D303(%rip),%xmm4
  mulss  %xmm7,%xmm2
  mulss  %xmm1,%xmm4
  mulss  0x8(%rbx),%xmm1
  mulss  %xmm6,%xmm3
  mulss  (%rbx),%xmm7
  addss  %xmm8,%xmm2
  mulss  0x4(%rbx),%xmm6
  addss  %xmm8,%xmm4
  movss  %xmm1,0x18(%rsp)
  movss  0xc(%rdi),%xmm1
  subss  D109(%rip),%xmm1
  mulss  %xmm2,%xmm15
  movaps %xmm2,%xmm10
  addss  %xmm8,%xmm3
  mulss  %xmm2,%xmm10
  movaps %xmm4,%xmm12
  mulss  %xmm5,%xmm1
  mulss  0xc(%rbx),%xmm5
  movaps %xmm3,%xmm9
  movaps %xmm3,%xmm11
  mulss  %xmm3,%xmm9
  movss  %xmm15,(%rsp)
  mulss  %xmm4,%xmm12
  movss  D354(%rip),%xmm15
  mulss  %xmm3,%xmm15
  addss  %xmm8,%xmm1
  movss  %xmm5,0x1c(%rsp)
  movaps %xmm2,%xmm5
  mulss  %xmm10,%xmm5
  mulss  %xmm9,%xmm11
  movaps %xmm1,%xmm8
  movaps %xmm1,%xmm14
  mulss  %xmm1,%xmm8
  movss  %xmm15,0x4(%rsp)
  mulss  %xmm12,%xmm13
  movss  D106(%rip),%xmm15
  mulss  %xmm5,%xmm15
  mulss  D132(%rip),%xmm5
  mulss  %xmm8,%xmm14
  movss  %xmm13,0x8(%rsp)
  movss  D353(%rip),%xmm13
  movss  %xmm15,0xc(%rsp)
  mulss  %xmm2,%xmm13
  movss  D54(%rip),%xmm15
  movss  %xmm5,0x14(%rsp)
  mulss  %xmm11,%xmm15
  movss  %xmm14,0x20(%rsp)
  movss  D471(%rip),%xmm14
  mulss  %xmm2,%xmm14
  movss  %xmm15,0x10(%rsp)
  movss  D24(%rip),%xmm15
  mulss  %xmm9,%xmm15
  movss  %xmm14,0x24(%rsp)
  mulss  %xmm4,%xmm14
  movss  %xmm15,0x28(%rsp)
  mulss  %xmm4,%xmm15
  movss  %xmm15,0x2c(%rsp)
  mulss  %xmm1,%xmm15
  subss  D198(%rip),%xmm13
  movss  D85(%rip),%xmm5
  mulss  %xmm3,%xmm5
  addss  %xmm13,%xmm5
  movss  D404(%rip),%xmm13
  mulss  %xmm4,%xmm13
  addss  %xmm5,%xmm13
  movss  D340(%rip),%xmm5
  mulss  %xmm1,%xmm5
  addss  %xmm13,%xmm5
  movaps %xmm14,%xmm13
  movss  D81(%rip),%xmm14
  mulss  %xmm12,%xmm14
  addss  %xmm5,%xmm13
  movaps %xmm14,%xmm5
  movss  D102(%rip),%xmm14
  addss  %xmm13,%xmm5
  movss  (%rsp),%xmm13
  mulss  %xmm8,%xmm14
  mulss  %xmm1,%xmm13
  addss  %xmm5,%xmm13
  movss  0x4(%rsp),%xmm5
  mulss  %xmm1,%xmm5
  addss  %xmm13,%xmm5
  movaps %xmm14,%xmm13
  movss  D379(%rip),%xmm14
  mulss  %xmm2,%xmm14
  addss  %xmm5,%xmm13
  movss  0x8(%rsp),%xmm5
  mulss  %xmm1,%xmm5
  addss  %xmm13,%xmm5
  movss  0xc(%rsp),%xmm13
  mulss  %xmm3,%xmm13
  addss  %xmm5,%xmm13
  movaps %xmm14,%xmm5
  mulss  %xmm11,%xmm5
  addss  %xmm13,%xmm5
  movss  0x10(%rsp),%xmm13
  mulss  %xmm4,%xmm13
  addss  %xmm5,%xmm13
  movss  0x14(%rsp),%xmm5
  mulss  %xmm1,%xmm5
  addss  %xmm13,%xmm5
  movss  D158(%rip),%xmm13
  mulss  %xmm2,%xmm13
  addss  %xmm15,%xmm5
  movaps %xmm13,%xmm14
  mulss  %xmm3,%xmm14
  mulss  %xmm8,%xmm14
  addss  %xmm5,%xmm14
  movss  D326(%rip),%xmm5
  mulss  %xmm12,%xmm5
  mulss  0x20(%rsp),%xmm5
  addss  %xmm14,%xmm5
  movss  D432(%rip),%xmm14
  mulss  %xmm10,%xmm14
  addss  %xmm14,%xmm5
  movss  D349(%rip),%xmm14
  mulss  %xmm2,%xmm14
  movaps %xmm14,%xmm15
  mulss  %xmm3,%xmm15
  addss  %xmm15,%xmm5
  movaps %xmm7,%xmm15
  addss  %xmm0,%xmm15
  addss  %xmm6,%xmm15
  addss  0x18(%rsp),%xmm15
  addss  0x1c(%rsp),%xmm15
  ucomiss %xmm0,%xmm15
  jp     L23
  jne    L23
L6:
  movss  %xmm0,(%rbx)
  mov    0xe8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L67
  add    $0xf0,%rsp
  movaps %xmm5,%xmm0
  pop    %rbx
  ret
  xchg   %ax,%ax
L23:
  movss  %xmm6,0x34(%rsp)
  mulss  %xmm7,%xmm7
  movss  D471(%rip),%xmm6
  movss  D0(%rip),%xmm0
  mulss  D379(%rip),%xmm11
  mov    $0x2,%edi
  movss  %xmm5,0x5c(%rsp)
  mulss  %xmm4,%xmm6
  movss  %xmm12,0x58(%rsp)
  mulss  %xmm1,%xmm0
  movss  %xmm9,0x48(%rsp)
  movss  %xmm14,0x54(%rsp)
  movss  %xmm7,0x30(%rsp)
  movss  %xmm13,0x50(%rsp)
  movaps %xmm6,%xmm7
  movss  D11(%rip),%xmm6
  subss  D357(%rip),%xmm7
  movss  %xmm4,0x44(%rsp)
  movss  %xmm1,0x40(%rsp)
  mulss  %xmm10,%xmm6
  movss  %xmm8,0x4c(%rsp)
  addss  %xmm7,%xmm0
  movss  %xmm2,0x3c(%rsp)
  mulss  D125(%rip),%xmm10
  movss  %xmm3,0x38(%rsp)
  movaps %xmm6,%xmm7
  movaps %xmm2,%xmm6
  mulss  %xmm3,%xmm7
  mulss  %xmm1,%xmm10
  mulss  D99(%rip),%xmm6
  addss  %xmm0,%xmm7
  movss  D158(%rip),%xmm0
  mulss  %xmm3,%xmm0
  addss  %xmm7,%xmm11
  addss  %xmm11,%xmm10
  mulss  %xmm8,%xmm0
  addss  %xmm10,%xmm0
  addss  %xmm6,%xmm0
  movss  D349(%rip),%xmm6
  mulss  %xmm3,%xmm6
  addss  %xmm6,%xmm0
  call   <pow@plt>
  movss  0x40(%rsp),%xmm1
  mulss  0x30(%rsp),%xmm0
  mov    $0x2,%edi
  movss  D354(%rip),%xmm3
  movss  0x48(%rsp),%xmm9
  movss  0x34(%rsp),%xmm6
  movss  0x3c(%rsp),%xmm2
  movss  %xmm1,0x3c(%rsp)
  mulss  %xmm1,%xmm3
  movss  0x44(%rsp),%xmm4
  movss  0x4c(%rsp),%xmm8
  mulss  %xmm6,%xmm6
  movss  %xmm2,0x48(%rsp)
  movss  0x50(%rsp),%xmm13
  movss  0x54(%rsp),%xmm14
  movss  %xmm0,0x30(%rsp)
  movss  D85(%rip),%xmm0
  mulss  %xmm8,%xmm13
  movss  %xmm4,0x40(%rsp)
  addss  %xmm3,%xmm0
  movss  D254(%rip),%xmm3
  addss  0xc(%rsp),%xmm0
  movss  %xmm6,0x34(%rsp)
  mulss  %xmm9,%xmm3
  mulss  D119(%rip),%xmm9
  movaps %xmm3,%xmm6
  movss  0x38(%rsp),%xmm3
  movss  %xmm8,0x38(%rsp)
  mulss  %xmm2,%xmm6
  mulss  %xmm4,%xmm9
  movaps %xmm3,%xmm2
  movss  %xmm3,0x44(%rsp)
  mulss  D279(%rip),%xmm2
  addss  %xmm0,%xmm6
  movaps %xmm2,%xmm0
  mulss  %xmm4,%xmm0
  addss  %xmm6,%xmm9
  mulss  %xmm1,%xmm0
  addss  %xmm9,%xmm0
  addss  %xmm0,%xmm13
  addss  %xmm14,%xmm13
  movaps %xmm13,%xmm0
  call   <pow@plt>
  mulss  0x34(%rsp),%xmm0
  movss  0x30(%rsp),%xmm6
  mov    $0x2,%edi
  movss  0x40(%rsp),%xmm4
  movss  D148(%rip),%xmm7
  movss  0x3c(%rsp),%xmm1
  mulss  %xmm4,%xmm7
  addss  %xmm0,%xmm6
  movss  D404(%rip),%xmm0
  addss  0x24(%rsp),%xmm0
  movss  %xmm1,0x24(%rsp)
  movss  %xmm6,0xc(%rsp)
  movss  0x18(%rsp),%xmm6
  mulss  %xmm6,%xmm6
  movss  %xmm6,0x18(%rsp)
  movaps %xmm7,%xmm6
  movss  0x28(%rsp),%xmm7
  addss  %xmm0,%xmm6
  movss  D329(%rip),%xmm0
  mulss  %xmm1,%xmm7
  mulss  %xmm4,%xmm0
  mulss  D281(%rip),%xmm4
  mulss  0x20(%rsp),%xmm4
  mulss  %xmm1,%xmm0
  addss  %xmm6,%xmm0
  addss  0x10(%rsp),%xmm0
  addss  %xmm7,%xmm0
  addss  %xmm4,%xmm0
  call   <pow@plt>
  movss  0x24(%rsp),%xmm1
  movss  (%rsp),%xmm3
  mov    $0x2,%edi
  movss  D387(%rip),%xmm4
  mulss  0x18(%rsp),%xmm0
  addss  0xc(%rsp),%xmm0
  movss  0x48(%rsp),%xmm2
  mulss  %xmm1,%xmm4
  subss  D240(%rip),%xmm3
  movss  0x38(%rsp),%xmm8
  mulss  D96(%rip),%xmm1
  movss  0x58(%rsp),%xmm12
  movss  %xmm0,0xc(%rsp)
  movss  0x4(%rsp),%xmm0
  mulss  D23(%rip),%xmm8
  movss  0x1c(%rsp),%xmm7
  addss  %xmm3,%xmm0
  movss  0x44(%rsp),%xmm3
  mulss  %xmm7,%xmm7
  mulss  %xmm2,%xmm1
  addss  %xmm4,%xmm0
  addss  0x8(%rsp),%xmm0
  mulss  %xmm12,%xmm8
  addss  0x14(%rsp),%xmm0
  addss  0x2c(%rsp),%xmm0
  movss  %xmm7,0x10(%rsp)
  mulss  %xmm3,%xmm1
  addss  %xmm1,%xmm0
  addss  %xmm8,%xmm0
  call   <pow@plt>
  mulss  0x10(%rsp),%xmm0
  addss  0xc(%rsp),%xmm0
  call   <sqrt@plt>
  movss  0x5c(%rsp),%xmm5
  jmp    L6
  nopl   (%rax)
L28:
  pxor   %xmm0,%xmm0
  movaps %xmm0,%xmm5
  movaps %xmm0,%xmm1
  movaps %xmm0,%xmm6
  movaps %xmm0,%xmm7
  jmp    L7
L67:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D423
type: byte[4]
name: read_data
arguments: data_label: D67
type: f32
name: read_data
arguments: data_label: D450
type: f32
name: read_data
arguments: data_label: D229
type: f32
name: read_data
arguments: data_label: D0
type: byte[4]
name: read_data
arguments: data_label: D270
type: byte[4]
name: read_data
arguments: data_label: D303
type: byte[4]
name: read_data
arguments: data_label: D109
type: byte[4]
name: read_data
arguments: data_label: D354
type: byte[4]
name: read_data
arguments: data_label: D106
type: byte[4]
name: read_data
arguments: data_label: D132
type: byte[4]
name: read_data
arguments: data_label: D353
type: byte[4]
name: read_data
arguments: data_label: D54
type: byte[4]
name: read_data
arguments: data_label: D471
type: byte[4]
name: read_data
arguments: data_label: D24
type: byte[4]
name: read_data
arguments: data_label: D198
type: byte[4]
name: read_data
arguments: data_label: D85
type: byte[4]
name: read_data
arguments: data_label: D404
type: byte[4]
name: read_data
arguments: data_label: D340
type: byte[4]
name: read_data
arguments: data_label: D81
type: byte[4]
name: read_data
arguments: data_label: D102
type: byte[4]
name: read_data
arguments: data_label: D379
type: byte[4]
name: read_data
arguments: data_label: D158
type: byte[4]
name: read_data
arguments: data_label: D326
type: byte[4]
name: read_data
arguments: data_label: D432
type: byte[4]
name: read_data
arguments: data_label: D349
type: byte[4]
name: read_data
arguments: data_label: D11
type: byte[4]
name: read_data
arguments: data_label: D357
type: byte[4]
name: read_data
arguments: data_label: D125
type: byte[4]
name: read_data
arguments: data_label: D99
type: byte[4]
name: read_data
arguments: data_label: D254
type: byte[4]
name: read_data
arguments: data_label: D119
type: byte[4]
name: read_data
arguments: data_label: D279
type: byte[4]
name: read_data
arguments: data_label: D148
type: byte[4]
name: read_data
arguments: data_label: D329
type: byte[4]
name: read_data
arguments: data_label: D281
type: byte[4]
name: read_data
arguments: data_label: D387
type: byte[4]
name: read_data
arguments: data_label: D240
type: byte[4]
name: read_data
arguments: data_label: D96
type: byte[4]
name: read_data
arguments: data_label: D23
type: byte[4]

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

tool: D67: 15

tool: D450: 2

tool: D229: 1

tool: {"D0": [0xf0,0xcd,0x9c,0xb8]}

tool: {"D270": [0xed,0x3a,0x65,0x36]}

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

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

tool: {"D354": [0x61,0xa2,0xa6,0x37]}

tool: {"D106": [0x90,0x83,0x4a,0x35]}

tool: {"D132": [0x1b,0x60,0xb2,0xb5]}

tool: {"D353": [0x4f,0x3c,0x59,0xbd]}

tool: {"D54": [0xba,0xd2,0x96,0x39]}

tool: {"D471": [0x2e,0x1f,0x4a,0x39]}

tool: {"D24": [0x13,0xd3,0xa7,0xb9]}

tool: {"D198": [0x11,0xb0,0xab,0x3a]}

tool: {"D85": [0xe1,0x17,0xbf,0x3c]}

tool: {"D404": [0x7e,0xdc,0x7e,0x3d]}

tool: {"D340": [0x03,0xe5,0x11,0xbd]}

tool: {"D81": [0x9a,0xc9,0x2d,0xb9]}

tool: {"D102": [0x32,0xa6,0xe2,0xb7]}

tool: {"D379": [0x69,0x31,0x04,0xb9]}

tool: {"D158": [0xd1,0xa2,0x23,0x39]}

tool: {"D326": [0xe2,0x95,0x9c,0xb7]}

tool: {"D432": [0xd1,0xce,0x6a,0xb8]}

tool: {"D349": [0xa2,0x00,0x7c,0x38]}

tool: {"D11": [0xac,0xe2,0x17,0x36]}

tool: {"D357": [0x4f,0x3c,0x59,0x3d]}

tool: {"D125": [0x14,0xc8,0x85,0xb6]}

tool: {"D99": [0xd1,0xce,0xea,0xb8]}

tool: {"D254": [0x1e,0x4a,0xc6,0xb9]}

tool: {"D119": [0x17,0x3c,0x62,0x3a]}

tool: {"D279": [0x13,0xd3,0x27,0xba]}

tool: {"D148": [0x9a,0xc9,0xad,0xb9]}

tool: {"D329": [0xed,0x3a,0xe5,0x36]}

tool: {"D281": [0xe2,0x95,0x1c,0xb8]}

tool: {"D387": [0x32,0xa6,0x62,0xb8]}

tool: {"D240": [0x03,0xe5,0x11,0x3d]}

tool: {"D96": [0xd1,0xa2,0xa3,0x39]}

tool: {"D23": [0xd3,0xe0,0x6a,0xb8]}

assistant: ```c
float target_phi(float *x, float *dx, int m) {
  int ncoeff = 20;
  float avdat = -0.1317067E-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.71932686E-05, -0.53036030E-01, 0.23326816E-01, 0.62221996E-01, -0.35618793E-01, 0.19275837E-03, -0.16573668E-03, -0.74770185E-04, 0.19864356E-04, -0.27018690E-04, 0.34157958E-05, 0.75442313E-06, -0.12606908E-03, 0.28767233E-03, -0.13290004E-05, -0.32009985E-03, 0.15605545E-03, -0.18666444E-04, -0.55982560E-04, 0.60082071E-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 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] * x23 * x31 + coeff[14] * x13 * x41 + coeff[15] * x22 * x31 * x41 + coeff[16] * x11 * x21 * x42;
  v_target_phi = v_target_phi + coeff[17] * x32 * x43 + coeff[18] * x12 + coeff[19] * x11 * 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[14] * x12 * x41 + coeff[16] * x21 * x42 + 2 * coeff[18] * x11 + coeff[19] * x21, 2) + dx2 * dx2 * pow(0 + coeff[2] + coeff[8] * x41 + coeff[11] * x13 + 3 * coeff[12] * x22 * x11 + 3 * coeff[13] * x22 * x31 + 2 * coeff[15] * x21 * x31 * x41 + coeff[16] * x11 * x42 + coeff[19] * x11, 2) + dx3 * dx3 * pow(0 + coeff[3] + coeff[5] * x11 + 2 * coeff[6] * x31 + 2 * coeff[10] * x31 * x41 + coeff[13] * x23 + coeff[15] * x22 * x41 + 2 * coeff[17] * x31 * x43, 2) + dx4 * dx4 * pow(0 + coeff[4] + coeff[7] * x11 + coeff[8] * x21 + 2 * coeff[9] * x41 + coeff[10] * x32 + coeff[14] * x13 + coeff[15] * x22 * x31 + 2 * coeff[16] * x41 * x11 * x21 + 3 * coeff[17] * x42 * x32, 2));
  dx[0] = dv_target_phi;
  return v_target_phi;
}
```