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

```asm
<target_x>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x160,%rsp
  mov    %rdi,-0x148(%rbp)
  mov    %rsi,-0x150(%rbp)
  mov    %edx,-0x154(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x11,-0x138(%rbp)
  movss  D234(%rip),%xmm0
  movss  %xmm0,-0x134(%rbp)
  movss  D311(%rip),%xmm0
  movss  %xmm0,-0xe0(%rbp)
  movss  D311(%rip),%xmm0
  movss  %xmm0,-0xdc(%rbp)
  movss  D243(%rip),%xmm0
  movss  %xmm0,-0xd8(%rbp)
  movss  D170(%rip),%xmm0
  movss  %xmm0,-0xd4(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xd0(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xcc(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xc8(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xc4(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xc0(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xbc(%rbp)
  movss  D312(%rip),%xmm0
  movss  %xmm0,-0xb0(%rbp)
  movss  D312(%rip),%xmm0
  movss  %xmm0,-0xac(%rbp)
  movss  D66(%rip),%xmm0
  movss  %xmm0,-0xa8(%rbp)
  movss  D30(%rip),%xmm0
  movss  %xmm0,-0xa4(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xa0(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x9c(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x98(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x94(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x90(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x8c(%rbp)
  movq   $0x0,-0x80(%rbp)
  movq   $0x0,-0x78(%rbp)
  movq   $0x0,-0x70(%rbp)
  movq   $0x0,-0x68(%rbp)
  movq   $0x0,-0x60(%rbp)
  movss  D265(%rip),%xmm0
  movss  %xmm0,-0x50(%rbp)
  movss  D43(%rip),%xmm0
  movss  %xmm0,-0x4c(%rbp)
  movss  D101(%rip),%xmm0
  movss  %xmm0,-0x48(%rbp)
  movss  D250(%rip),%xmm0
  movss  %xmm0,-0x44(%rbp)
  movss  D217(%rip),%xmm0
  movss  %xmm0,-0x40(%rbp)
  movss  D295(%rip),%xmm0
  movss  %xmm0,-0x3c(%rbp)
  movss  D151(%rip),%xmm0
  movss  %xmm0,-0x38(%rbp)
  movss  D73(%rip),%xmm0
  movss  %xmm0,-0x34(%rbp)
  movss  D239(%rip),%xmm0
  movss  %xmm0,-0x30(%rbp)
  movss  D8(%rip),%xmm0
  movss  %xmm0,-0x2c(%rbp)
  movss  D58(%rip),%xmm0
  movss  %xmm0,-0x28(%rbp)
  movss  D9(%rip),%xmm0
  movss  %xmm0,-0x24(%rbp)
  movss  D64(%rip),%xmm0
  movss  %xmm0,-0x20(%rbp)
  movss  D160(%rip),%xmm0
  movss  %xmm0,-0x1c(%rbp)
  movss  D165(%rip),%xmm0
  movss  %xmm0,-0x18(%rbp)
  movss  D279(%rip),%xmm0
  movss  %xmm0,-0x14(%rbp)
  movss  D198(%rip),%xmm0
  movss  %xmm0,-0x10(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xc(%rbp)
  movl   $0x0,-0x130(%rbp)
  cmpl   $0x0,-0x130(%rbp)
  jne    L27
  movl   $0x1,-0x130(%rbp)
  movl   $0x0,-0x13c(%rbp)
  jmp    L24
L3:
  mov    -0x13c(%rbp),%eax
  cltq
  movss  -0xe0(%rbp,%rax,4),%xmm0
  mov    -0x13c(%rbp),%eax
  cltq
  movss  -0xb0(%rbp,%rax,4),%xmm1
  ucomiss %xmm1,%xmm0
  jp     L11
  ucomiss %xmm1,%xmm0
  je     L15
L11:
  mov    -0x13c(%rbp),%eax
  cltq
  movss  -0xb0(%rbp,%rax,4),%xmm0
  mov    -0x13c(%rbp),%eax
  cltq
  movss  -0xe0(%rbp,%rax,4),%xmm2
  movaps %xmm0,%xmm1
  subss  %xmm2,%xmm1
  movss  D196(%rip),%xmm0
  divss  %xmm1,%xmm0
  mov    -0x13c(%rbp),%eax
  cltq
  movss  %xmm0,-0x80(%rbp,%rax,4)
  jmp    L18
L15:
  nop
L18:
  addl   $0x1,-0x13c(%rbp)
L24:
  mov    -0x13c(%rbp),%eax
  cmp    -0x154(%rbp),%eax
  jl     L3
L27:
  mov    -0x148(%rbp),%rax
  movss  (%rax),%xmm0
  movss  -0xb0(%rbp),%xmm2
  movaps %xmm0,%xmm1
  subss  %xmm2,%xmm1
  movss  -0x80(%rbp),%xmm0
  mulss  %xmm0,%xmm1
  movss  D95(%rip),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x12c(%rbp)
  mov    -0x150(%rbp),%rax
  movss  (%rax),%xmm1
  movss  -0x80(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x128(%rbp)
  mov    -0x148(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  movss  -0xac(%rbp),%xmm2
  movaps %xmm0,%xmm1
  subss  %xmm2,%xmm1
  movss  -0x7c(%rbp),%xmm0
  mulss  %xmm0,%xmm1
  movss  D95(%rip),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x124(%rbp)
  mov    -0x150(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm1
  movss  -0x7c(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x120(%rbp)
  mov    -0x148(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  movss  -0xa8(%rbp),%xmm2
  movaps %xmm0,%xmm1
  subss  %xmm2,%xmm1
  movss  -0x78(%rbp),%xmm0
  mulss  %xmm0,%xmm1
  movss  D95(%rip),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x11c(%rbp)
  mov    -0x150(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm1
  movss  -0x78(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x118(%rbp)
  mov    -0x148(%rbp),%rax
  add    $0xc,%rax
  movss  (%rax),%xmm0
  movss  -0xa4(%rbp),%xmm2
  movaps %xmm0,%xmm1
  subss  %xmm2,%xmm1
  movss  -0x74(%rbp),%xmm0
  mulss  %xmm0,%xmm1
  movss  D95(%rip),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x114(%rbp)
  mov    -0x150(%rbp),%rax
  add    $0xc,%rax
  movss  (%rax),%xmm1
  movss  -0x74(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x110(%rbp)
  movss  -0x12c(%rbp),%xmm0
  movss  %xmm0,-0x10c(%rbp)
  movss  -0x10c(%rbp),%xmm0
  mulss  -0x12c(%rbp),%xmm0
  movss  %xmm0,-0x108(%rbp)
  movss  -0x124(%rbp),%xmm0
  movss  %xmm0,-0x104(%rbp)
  movss  -0x104(%rbp),%xmm0
  mulss  -0x124(%rbp),%xmm0
  movss  %xmm0,-0x100(%rbp)
  movss  -0x11c(%rbp),%xmm0
  movss  %xmm0,-0xfc(%rbp)
  movss  -0xfc(%rbp),%xmm0
  mulss  -0x11c(%rbp),%xmm0
  movss  %xmm0,-0xf8(%rbp)
  movss  -0x114(%rbp),%xmm0
  movss  %xmm0,-0xf4(%rbp)
  movss  -0xf4(%rbp),%xmm0
  mulss  -0x114(%rbp),%xmm0
  movss  %xmm0,-0xf0(%rbp)
  movss  -0x50(%rbp),%xmm0
  movaps %xmm0,%xmm1
  addss  -0x134(%rbp),%xmm1
  movss  -0x4c(%rbp),%xmm0
  mulss  -0x10c(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x48(%rbp),%xmm0
  mulss  -0xfc(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x44(%rbp),%xmm0
  mulss  -0x10c(%rbp),%xmm0
  mulss  -0x104(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x40(%rbp),%xmm0
  mulss  -0xfc(%rbp),%xmm0
  mulss  -0xf4(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x3c(%rbp),%xmm0
  mulss  -0x104(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x38(%rbp),%xmm0
  mulss  -0xf4(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x34(%rbp),%xmm0
  mulss  -0x104(%rbp),%xmm0
  mulss  -0xfc(%rbp),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0xec(%rbp)
  movss  -0x30(%rbp),%xmm0
  mulss  -0x10c(%rbp),%xmm0
  mulss  -0xf4(%rbp),%xmm0
  movaps %xmm0,%xmm1
  addss  -0xec(%rbp),%xmm1
  movss  -0x2c(%rbp),%xmm0
  mulss  -0x10c(%rbp),%xmm0
  mulss  -0x100(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x28(%rbp),%xmm0
  mulss  -0x10c(%rbp),%xmm0
  mulss  -0x104(%rbp),%xmm0
  mulss  -0xf4(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x24(%rbp),%xmm0
  mulss  -0x100(%rbp),%xmm0
  mulss  -0xfc(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x20(%rbp),%xmm0
  mulss  -0x104(%rbp),%xmm0
  mulss  -0xfc(%rbp),%xmm0
  mulss  -0xf4(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x1c(%rbp),%xmm0
  mulss  -0xfc(%rbp),%xmm0
  mulss  -0xf0(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x18(%rbp),%xmm0
  mulss  -0x108(%rbp),%xmm0
  mulss  -0xfc(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x14(%rbp),%xmm0
  mulss  -0x10c(%rbp),%xmm0
  mulss  -0xf8(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x10(%rbp),%xmm0
  mulss  -0xf8(%rbp),%xmm0
  mulss  -0xf0(%rbp),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0xec(%rbp)
  movss  -0x128(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  addss  %xmm1,%xmm0
  addss  -0x120(%rbp),%xmm0
  addss  -0x118(%rbp),%xmm0
  movss  -0x110(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0xe8(%rbp)
  pxor   %xmm0,%xmm0
  ucomiss -0xe8(%rbp),%xmm0
  jp     L59
  pxor   %xmm0,%xmm0
  ucomiss -0xe8(%rbp),%xmm0
  je     L63
L59:
  movss  -0x128(%rbp),%xmm0
  mulss  %xmm0,%xmm0
  movss  %xmm0,-0x158(%rbp)
  movss  -0x4c(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  addss  %xmm0,%xmm1
  movss  -0x44(%rbp),%xmm0
  mulss  -0x104(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x30(%rbp),%xmm0
  mulss  -0xf4(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x2c(%rbp),%xmm0
  mulss  -0x100(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x28(%rbp),%xmm0
  mulss  -0x104(%rbp),%xmm0
  mulss  -0xf4(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x18(%rbp),%xmm0
  addss  %xmm0,%xmm0
  mulss  -0x10c(%rbp),%xmm0
  mulss  -0xfc(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x14(%rbp),%xmm0
  mulss  -0xf8(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movd   %xmm1,%eax
  mov    $0x2,%edi
  movd   %eax,%xmm0
  call   <pow@plt>
  movaps %xmm0,%xmm4
  mulss  -0x158(%rbp),%xmm4
  movss  %xmm4,-0x158(%rbp)
  movss  -0x120(%rbp),%xmm0
  mulss  %xmm0,%xmm0
  movss  %xmm0,-0x15c(%rbp)
  movss  -0x44(%rbp),%xmm0
  movaps %xmm0,%xmm1
  mulss  -0x10c(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  addss  %xmm0,%xmm1
  movss  -0x3c(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x34(%rbp),%xmm0
  mulss  -0xfc(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x2c(%rbp),%xmm0
  addss  %xmm0,%xmm0
  mulss  -0x104(%rbp),%xmm0
  mulss  -0x10c(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x28(%rbp),%xmm0
  mulss  -0x10c(%rbp),%xmm0
  mulss  -0xf4(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x24(%rbp),%xmm0
  addss  %xmm0,%xmm0
  mulss  -0x104(%rbp),%xmm0
  mulss  -0xfc(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x20(%rbp),%xmm0
  mulss  -0xfc(%rbp),%xmm0
  mulss  -0xf4(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movd   %xmm1,%eax
  mov    $0x2,%edi
  movd   %eax,%xmm0
  call   <pow@plt>
  mulss  -0x15c(%rbp),%xmm0
  addss  -0x158(%rbp),%xmm0
  movss  %xmm0,-0x158(%rbp)
  movss  -0x118(%rbp),%xmm0
  movaps %xmm0,%xmm7
  mulss  %xmm0,%xmm7
  movss  %xmm7,-0x15c(%rbp)
  movss  -0x48(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  addss  %xmm0,%xmm1
  movss  -0x40(%rbp),%xmm0
  mulss  -0xf4(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x34(%rbp),%xmm0
  mulss  -0x104(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x24(%rbp),%xmm0
  mulss  -0x100(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x20(%rbp),%xmm0
  mulss  -0x104(%rbp),%xmm0
  mulss  -0xf4(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x1c(%rbp),%xmm0
  mulss  -0xf0(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x18(%rbp),%xmm0
  mulss  -0x108(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x14(%rbp),%xmm0
  addss  %xmm0,%xmm0
  mulss  -0xfc(%rbp),%xmm0
  mulss  -0x10c(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x10(%rbp),%xmm0
  addss  %xmm0,%xmm0
  mulss  -0xfc(%rbp),%xmm0
  mulss  -0xf0(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movd   %xmm1,%eax
  mov    $0x2,%edi
  movd   %eax,%xmm0
  call   <pow@plt>
  mulss  -0x15c(%rbp),%xmm0
  movaps %xmm0,%xmm3
  addss  -0x158(%rbp),%xmm3
  movss  %xmm3,-0x158(%rbp)
  movss  -0x110(%rbp),%xmm0
  mulss  %xmm0,%xmm0
  movss  %xmm0,-0x15c(%rbp)
  movss  -0x40(%rbp),%xmm0
  movaps %xmm0,%xmm1
  mulss  -0xfc(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  addss  %xmm0,%xmm1
  movss  -0x38(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x30(%rbp),%xmm0
  mulss  -0x10c(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x28(%rbp),%xmm0
  mulss  -0x10c(%rbp),%xmm0
  mulss  -0x104(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x20(%rbp),%xmm0
  mulss  -0x104(%rbp),%xmm0
  mulss  -0xfc(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x1c(%rbp),%xmm0
  addss  %xmm0,%xmm0
  mulss  -0xf4(%rbp),%xmm0
  mulss  -0xfc(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x10(%rbp),%xmm0
  addss  %xmm0,%xmm0
  mulss  -0xf4(%rbp),%xmm0
  mulss  -0xf8(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movd   %xmm1,%eax
  mov    $0x2,%edi
  movd   %eax,%xmm0
  call   <pow@plt>
  mulss  -0x15c(%rbp),%xmm0
  addss  -0x158(%rbp),%xmm0
  movd   %xmm0,%eax
  movd   %eax,%xmm0
  call   <sqrt@plt>
  movd   %xmm0,%eax
  jmp    L28
L63:
  mov    D23(%rip),%eax
L28:
  mov    %eax,-0xe4(%rbp)
  mov    -0x150(%rbp),%rax
  movss  -0xe4(%rbp),%xmm0
  movss  %xmm0,(%rax)
  movss  -0xec(%rbp),%xmm0
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L8
  call   <__stack_chk_fail@plt>
L8:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_tag: D234
type_infered: byte[4]
name: read_data
arguments: data_tag: D311
type_infered: byte[4]
name: read_data
arguments: data_tag: D243
type_infered: byte[4]
name: read_data
arguments: data_tag: D170
type_infered: byte[4]
name: read_data
arguments: data_tag: D312
type_infered: f32
name: read_data
arguments: data_tag: D66
type_infered: byte[4]
name: read_data
arguments: data_tag: D30
type_infered: byte[4]
name: read_data
arguments: data_tag: D265
type_infered: byte[4]
name: read_data
arguments: data_tag: D43
type_infered: byte[4]
name: read_data
arguments: data_tag: D101
type_infered: byte[4]
name: read_data
arguments: data_tag: D250
type_infered: byte[4]
name: read_data
arguments: data_tag: D217
type_infered: byte[4]
name: read_data
arguments: data_tag: D295
type_infered: byte[4]
name: read_data
arguments: data_tag: D151
type_infered: byte[4]
name: read_data
arguments: data_tag: D73
type_infered: byte[4]
name: read_data
arguments: data_tag: D239
type_infered: byte[4]
name: read_data
arguments: data_tag: D8
type_infered: byte[4]
name: read_data
arguments: data_tag: D58
type_infered: byte[4]
name: read_data
arguments: data_tag: D9
type_infered: byte[4]
name: read_data
arguments: data_tag: D64
type_infered: byte[4]
name: read_data
arguments: data_tag: D160
type_infered: byte[4]
name: read_data
arguments: data_tag: D165
type_infered: byte[4]
name: read_data
arguments: data_tag: D279
type_infered: byte[4]
name: read_data
arguments: data_tag: D198
type_infered: byte[4]
name: read_data
arguments: data_tag: D196
type_infered: f32
name: read_data
arguments: data_tag: D95
type_infered: f32
name: read_data
arguments: data_tag: D23
type_infered: f32

tool: {"D234": [0xee,0xec,0xdd,0x3f]}

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

tool: {"D243": [0x00,0x00,0x90,0xc1]}

tool: {"D170": [0x1b,0x2f,0x90,0xc1]}

tool: D312: 15

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

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

tool: {"D265": [0xe4,0xc8,0x34,0xb9]}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

tool: D196: 2

tool: D95: 1

tool: D23: 0

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;
}
```