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

```asm
<target_theta>:
  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  D150(%rip),%xmm0
  movss  %xmm0,0x60(%rsp)
  movss  %xmm0,0x64(%rsp)
  movl   $0xc1900000,0x68(%rsp)
  movl   $0xc1901aa0,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  D83(%rip),%xmm0
  movss  %xmm0,0x90(%rsp)
  movss  %xmm0,0x94(%rsp)
  movl   $0x41900000,0x98(%rsp)
  movl   $0x418fe979,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    L72
  mov    %edx,%edx
  movss  D179(%rip),%xmm2
  jmp    L98
L33:
  subss  %xmm1,%xmm0
  movaps %xmm2,%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,0xc0(%rsp,%rax,4)
L64:
  add    $0x1,%rax
  cmp    %rdx,%rax
  je     L72
L98:
  movss  0x60(%rsp,%rax,4),%xmm1
  movss  0x90(%rsp,%rax,4),%xmm0
  ucomiss %xmm0,%xmm1
  jp     L33
  jne    L33
  jmp    L64
L72:
  movss  0xc0(%rsp),%xmm2
  movss  (%rcx),%xmm1
  movss  D83(%rip),%xmm5
  subss  %xmm5,%xmm1
  mulss  %xmm2,%xmm1
  movss  D416(%rip),%xmm0
  addss  %xmm0,%xmm1
  mulss  (%rbx),%xmm2
  movss  0xc4(%rsp),%xmm4
  movss  0x4(%rcx),%xmm3
  subss  %xmm5,%xmm3
  mulss  %xmm4,%xmm3
  movaps %xmm3,%xmm8
  addss  %xmm0,%xmm8
  movaps %xmm8,%xmm5
  movss  %xmm8,0x10(%rsp)
  mulss  0x4(%rbx),%xmm4
  movss  %xmm4,0x14(%rsp)
  movss  0xc8(%rsp),%xmm4
  movss  0x8(%rcx),%xmm3
  subss  D10(%rip),%xmm3
  mulss  %xmm4,%xmm3
  movaps %xmm3,%xmm7
  addss  %xmm0,%xmm7
  movss  %xmm7,0x20(%rsp)
  movaps %xmm4,%xmm3
  mulss  0x8(%rbx),%xmm3
  movss  %xmm3,0x18(%rsp)
  movss  0xcc(%rsp),%xmm4
  movss  0xc(%rcx),%xmm3
  subss  D151(%rip),%xmm3
  mulss  %xmm4,%xmm3
  movaps %xmm3,%xmm10
  addss  %xmm0,%xmm10
  movss  %xmm10,0xc(%rsp)
  movaps %xmm4,%xmm6
  mulss  0xc(%rbx),%xmm6
  movss  %xmm6,0x1c(%rsp)
  movaps %xmm1,%xmm12
  mulss  %xmm1,%xmm12
  movss  %xmm12,0x54(%rsp)
  movaps %xmm8,%xmm3
  mulss  %xmm8,%xmm3
  movaps %xmm7,%xmm6
  mulss  %xmm7,%xmm6
  movss  %xmm6,0x24(%rsp)
  movaps %xmm10,%xmm9
  mulss  %xmm10,%xmm9
  movss  %xmm9,0x58(%rsp)
  movaps %xmm1,%xmm14
  mulss  D263(%rip),%xmm14
  movss  %xmm14,0x28(%rsp)
  mulss  D319(%rip),%xmm8
  movss  %xmm8,0x2c(%rsp)
  movaps %xmm1,%xmm13
  mulss  D191(%rip),%xmm13
  movss  %xmm13,0x30(%rsp)
  mulss  %xmm5,%xmm13
  movss  %xmm13,0x34(%rsp)
  movaps %xmm5,%xmm0
  mulss  D112(%rip),%xmm0
  mulss  %xmm6,%xmm0
  movaps %xmm0,%xmm15
  movss  %xmm0,0x38(%rsp)
  movaps %xmm12,%xmm11
  mulss  D210(%rip),%xmm11
  movss  %xmm11,0x3c(%rsp)
  movaps %xmm5,%xmm0
  mulss  D499(%rip),%xmm0
  addss  D397(%rip),%xmm0
  movaps %xmm10,%xmm4
  mulss  D387(%rip),%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm14,%xmm4
  mulss  %xmm7,%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm6,%xmm4
  mulss  D440(%rip),%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm8,%xmm4
  mulss  %xmm10,%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm3,%xmm4
  mulss  D22(%rip),%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm1,%xmm4
  mulss  D48(%rip),%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm7,%xmm4
  mulss  D240(%rip),%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm12,%xmm4
  mulss  D221(%rip),%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm9,%xmm4
  mulss  D168(%rip),%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm13,%xmm4
  mulss  %xmm7,%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm5,%xmm4
  mulss  D345(%rip),%xmm4
  mulss  %xmm6,%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm15,%xmm4
  mulss  %xmm10,%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm6,%xmm4
  mulss  D428(%rip),%xmm4
  mulss  %xmm9,%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm11,%xmm4
  mulss  %xmm10,%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm1,%xmm4
  mulss  D227(%rip),%xmm4
  movss  %xmm4,0x40(%rsp)
  mulss  %xmm7,%xmm4
  movaps %xmm4,%xmm7
  movss  %xmm4,0x44(%rsp)
  mulss  D182(%rip),%xmm6
  movss  %xmm6,0x48(%rsp)
  mulss  %xmm10,%xmm7
  addss  %xmm7,%xmm0
  mulss  %xmm10,%xmm6
  addss  %xmm6,%xmm0
  movaps %xmm12,%xmm4
  mulss  D236(%rip),%xmm4
  mulss  %xmm3,%xmm4
  addss  %xmm4,%xmm0
  mulss  D153(%rip),%xmm12
  movss  %xmm12,0x4c(%rsp)
  mulss  %xmm5,%xmm12
  movss  %xmm12,0x50(%rsp)
  movaps %xmm12,%xmm4
  mulss  %xmm10,%xmm4
  movaps %xmm4,%xmm7
  addss  %xmm0,%xmm7
  movd   %xmm7,%r14d
  pxor   %xmm4,%xmm4
  movaps %xmm2,%xmm0
  addss  %xmm4,%xmm0
  addss  0x14(%rsp),%xmm0
  addss  0x18(%rsp),%xmm0
  addss  0x1c(%rsp),%xmm0
  ucomiss %xmm4,%xmm0
  jp     L4
  movaps %xmm4,%xmm0
  jne    L4
L23:
  movss  %xmm0,(%rbx)
  mov    0xe8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L15
  movd   %r14d,%xmm0
  add    $0xf8,%rsp
  pop    %rbx
  pop    %r14
  ret
L4:
  mulss  %xmm2,%xmm2
  movss  %xmm2,0x5c(%rsp)
  movss  0x20(%rsp),%xmm5
  movaps %xmm5,%xmm0
  mulss  D263(%rip),%xmm0
  pxor   %xmm6,%xmm6
  addss  %xmm6,%xmm0
  addss  D48(%rip),%xmm0
  movaps %xmm1,%xmm2
  mulss  D330(%rip),%xmm2
  addss  %xmm2,%xmm0
  movss  0x10(%rsp),%xmm7
  movaps %xmm7,%xmm2
  mulss  D191(%rip),%xmm2
  mulss  %xmm5,%xmm2
  addss  %xmm2,%xmm0
  movaps %xmm1,%xmm2
  mulss  D415(%rip),%xmm2
  movss  0xc(%rsp),%xmm6
  mulss  %xmm6,%xmm2
  addss  %xmm2,%xmm0
  movaps %xmm5,%xmm2
  mulss  D227(%rip),%xmm2
  mulss  %xmm6,%xmm2
  addss  %xmm2,%xmm0
  movss  D495(%rip),%xmm4
  mulss  %xmm1,%xmm4
  movaps %xmm4,%xmm2
  mulss  %xmm3,%xmm2
  addss  %xmm2,%xmm0
  mulss  D175(%rip),%xmm1
  mulss  %xmm7,%xmm1
  mulss  %xmm6,%xmm1
  addss  %xmm1,%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  mulss  0x5c(%rsp),%xmm0
  movss  %xmm0,0x5c(%rsp)
  movss  0x14(%rsp),%xmm1
  mulss  %xmm1,%xmm1
  movss  %xmm1,0x14(%rsp)
  movss  0xc(%rsp),%xmm3
  movaps %xmm3,%xmm0
  mulss  D319(%rip),%xmm0
  subss  D485(%rip),%xmm0
  movss  0x10(%rsp),%xmm7
  movaps %xmm7,%xmm1
  mulss  D69(%rip),%xmm1
  addss  %xmm1,%xmm0
  movss  0x30(%rsp),%xmm6
  mulss  0x20(%rsp),%xmm6
  addss  %xmm6,%xmm0
  movss  0x24(%rsp),%xmm6
  movaps %xmm6,%xmm1
  mulss  D345(%rip),%xmm1
  addss  %xmm1,%xmm0
  movaps %xmm6,%xmm1
  mulss  D112(%rip),%xmm1
  mulss  %xmm3,%xmm1
  addss  %xmm1,%xmm0
  movss  D495(%rip),%xmm15
  mulss  %xmm7,%xmm15
  movaps %xmm15,%xmm1
  mulss  0x54(%rsp),%xmm1
  addss  %xmm1,%xmm0
  movss  0x4c(%rsp),%xmm15
  mulss  %xmm3,%xmm15
  addss  %xmm15,%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  mulss  0x14(%rsp),%xmm0
  addss  0x5c(%rsp),%xmm0
  movss  %xmm0,0x14(%rsp)
  movss  0x18(%rsp),%xmm4
  mulss  %xmm4,%xmm4
  movss  %xmm4,0x18(%rsp)
  pxor   %xmm0,%xmm0
  addss  0x28(%rsp),%xmm0
  movss  0x20(%rsp),%xmm2
  movaps %xmm2,%xmm1
  mulss  D77(%rip),%xmm1
  addss  %xmm1,%xmm0
  subss  D302(%rip),%xmm0
  addss  0x34(%rsp),%xmm0
  movaps %xmm2,%xmm1
  mulss  D39(%rip),%xmm1
  movss  0x10(%rsp),%xmm7
  mulss  %xmm7,%xmm1
  addss  %xmm1,%xmm0
  movaps %xmm2,%xmm1
  mulss  D405(%rip),%xmm1
  mulss  %xmm7,%xmm1
  movss  0xc(%rsp),%xmm3
  mulss  %xmm3,%xmm1
  addss  %xmm1,%xmm0
  movss  D466(%rip),%xmm7
  mulss  %xmm2,%xmm7
  movaps %xmm7,%xmm1
  mulss  0x58(%rsp),%xmm1
  addss  %xmm1,%xmm0
  movss  0x40(%rsp),%xmm7
  mulss  %xmm3,%xmm7
  addss  %xmm7,%xmm0
  mulss  D285(%rip),%xmm2
  movaps %xmm2,%xmm1
  mulss  %xmm3,%xmm1
  addss  %xmm1,%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  mulss  0x18(%rsp),%xmm0
  movaps %xmm0,%xmm2
  addss  0x14(%rsp),%xmm2
  movss  %xmm2,0x10(%rsp)
  movss  0x1c(%rsp),%xmm2
  mulss  %xmm2,%xmm2
  movss  %xmm2,0x14(%rsp)
  movss  0x2c(%rsp),%xmm0
  addss  D387(%rip),%xmm0
  movss  0xc(%rsp),%xmm3
  movaps %xmm3,%xmm1
  mulss  D215(%rip),%xmm1
  addss  %xmm1,%xmm0
  movss  0x38(%rsp),%xmm5
  addss  %xmm0,%xmm5
  movss  D466(%rip),%xmm0
  mulss  %xmm3,%xmm0
  mulss  0x24(%rsp),%xmm0
  addss  %xmm5,%xmm0
  addss  0x3c(%rsp),%xmm0
  addss  0x44(%rsp),%xmm0
  addss  0x48(%rsp),%xmm0
  addss  0x50(%rsp),%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  mulss  0x14(%rsp),%xmm0
  addss  0x10(%rsp),%xmm0
  call   <sqrt@plt>
  jmp    L23
L15:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D150
datatype: byte[4]
name: disassemble_data
arguments: label: D83
datatype: f32
name: disassemble_data
arguments: label: D179
datatype: f32
name: disassemble_data
arguments: label: D416
datatype: f32
name: disassemble_data
arguments: label: D10
datatype: f32
name: disassemble_data
arguments: label: D151
datatype: byte[4]
name: disassemble_data
arguments: label: D263
datatype: byte[4]
name: disassemble_data
arguments: label: D319
datatype: byte[4]
name: disassemble_data
arguments: label: D191
datatype: byte[4]
name: disassemble_data
arguments: label: D112
datatype: byte[4]
name: disassemble_data
arguments: label: D210
datatype: byte[4]
name: disassemble_data
arguments: label: D499
datatype: byte[4]
name: disassemble_data
arguments: label: D397
datatype: byte[4]
name: disassemble_data
arguments: label: D387
datatype: byte[4]
name: disassemble_data
arguments: label: D440
datatype: byte[4]
name: disassemble_data
arguments: label: D22
datatype: byte[4]
name: disassemble_data
arguments: label: D48
datatype: byte[4]
name: disassemble_data
arguments: label: D240
datatype: byte[4]
name: disassemble_data
arguments: label: D221
datatype: byte[4]
name: disassemble_data
arguments: label: D168
datatype: byte[4]
name: disassemble_data
arguments: label: D345
datatype: byte[4]
name: disassemble_data
arguments: label: D428
datatype: byte[4]
name: disassemble_data
arguments: label: D227
datatype: byte[4]
name: disassemble_data
arguments: label: D182
datatype: byte[4]
name: disassemble_data
arguments: label: D236
datatype: byte[4]
name: disassemble_data
arguments: label: D153
datatype: byte[4]
name: disassemble_data
arguments: label: D330
datatype: byte[4]
name: disassemble_data
arguments: label: D415
datatype: byte[4]
name: disassemble_data
arguments: label: D495
datatype: byte[4]
name: disassemble_data
arguments: label: D175
datatype: byte[4]
name: disassemble_data
arguments: label: D485
datatype: byte[4]
name: disassemble_data
arguments: label: D69
datatype: byte[4]
name: disassemble_data
arguments: label: D77
datatype: byte[4]
name: disassemble_data
arguments: label: D302
datatype: byte[4]
name: disassemble_data
arguments: label: D39
datatype: byte[4]
name: disassemble_data
arguments: label: D405
datatype: byte[4]
name: disassemble_data
arguments: label: D466
datatype: byte[4]
name: disassemble_data
arguments: label: D285
datatype: byte[4]
name: disassemble_data
arguments: label: D215
datatype: byte[4]

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

tool: D83: 15

tool: D179: 2

tool: D416: 1

tool: D10: 18

tool: {"D151": [0x79,0xe9,0x8f,0x41]}

tool: {"D263": [0x4e,0x06,0x04,0x3c]}

tool: {"D319": [0xc0,0xfe,0x54,0xbb]}

tool: {"D191": [0xf2,0x25,0xce,0xb8]}

tool: {"D112": [0x70,0xda,0x59,0x39]}

tool: {"D210": [0x60,0xf1,0x4a,0xb8]}

tool: {"D499": [0xa1,0x9c,0x62,0xbd]}

tool: {"D397": [0x31,0xa5,0x87,0x3d]}

tool: {"D387": [0xf4,0x39,0x87,0x3d]}

tool: {"D440": [0xad,0xe3,0xd3,0xbb]}

tool: {"D22": [0x1c,0xa3,0x51,0x3a]}

tool: {"D48": [0x58,0x13,0x63,0x39]}

tool: {"D240": [0x7b,0xef,0xb4,0xb9]}

tool: {"D221": [0xe5,0x2e,0x23,0xbb]}

tool: {"D168": [0x4d,0x27,0x4d,0x3b]}

tool: {"D345": [0x94,0x79,0x16,0x39]}

tool: {"D428": [0x41,0xc7,0x9c,0xb9]}

tool: {"D227": [0xa7,0x43,0x93,0x39]}

tool: {"D182": [0x1c,0x3b,0xa2,0xb9]}

tool: {"D236": [0xa4,0x39,0xd9,0xb8]}

tool: {"D153": [0x38,0x0c,0x18,0x39]}

tool: {"D330": [0xe5,0x2e,0xa3,0xbb]}

tool: {"D415": [0x60,0xf1,0xca,0xb8]}

tool: {"D495": [0xa4,0x39,0x59,0xb9]}

tool: {"D175": [0x38,0x0c,0x98,0x39]}

tool: {"D485": [0xa1,0x9c,0x62,0x3d]}

tool: {"D69": [0x1c,0xa3,0xd1,0x3a]}

tool: {"D77": [0xad,0xe3,0x53,0xbc]}

tool: {"D302": [0x7b,0xef,0xb4,0x39]}

tool: {"D39": [0x94,0x79,0x96,0x39]}

tool: {"D405": [0x70,0xda,0xd9,0x39]}

tool: {"D466": [0x41,0xc7,0x1c,0xba]}

tool: {"D285": [0x1c,0x3b,0x22,0xba]}

tool: {"D215": [0x4d,0x27,0xcd,0x3b]}

assistant: ```c
float target_theta(float *x, float *dx, int m) {
  int ncoeff = 20;
  float avdat = 0.6618826E-01;
  float xmin[10] = {-0.15000E+02, -0.15000E+02, -0.18000E+02, -0.18013E+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.17989E+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.44787688E-04, -0.55325154E-01, 0.66028506E-01, 0.80581438E-02, -0.64663501E-02, -0.32500476E-02, 0.79970225E-03, 0.21655613E-03, -0.34510702E-03, -0.24899777E-02, 0.31303943E-02, -0.98299133E-04, 0.14350406E-03, 0.20776107E-03, -0.29903094E-03, -0.48385351E-04, 0.28088430E-03, -0.30943088E-03, -0.10358103E-03, 0.14500401E-03, 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_theta = avdat + coeff[0] + coeff[1] * x21 + coeff[2] * x41 + coeff[3] * x11 * x31 + coeff[4] * x32 + coeff[5] * x21 * x41 + coeff[6] * x22 + coeff[7] * x11;
  v_target_theta = v_target_theta + coeff[8] * x31 + coeff[9] * x12 + coeff[10] * x42 + coeff[11] * x11 * x21 * x31 + coeff[12] * x21 * x32 + coeff[13] * x21 * x32 * x41 + coeff[14] * x32 * x42 + coeff[15] * x12 * x41 + coeff[16] * x11 * x31 * x41;
  v_target_theta = v_target_theta + coeff[17] * x32 * x41 + coeff[18] * x12 * x22 + coeff[19] * x12 * x21 * x41;
  float dxall = 0 + dx1 + dx2 + dx3 + dx4;
  float dv_target_theta = dxall == 0 ? 0 : sqrt(+dx1 * dx1 * pow(0 + coeff[3] * x31 + coeff[7] + 2 * coeff[9] * x11 + coeff[11] * x21 * x31 + 2 * coeff[15] * x11 * x41 + coeff[16] * x31 * x41 + 2 * coeff[18] * x11 * x22 + 2 * coeff[19] * x11 * x21 * x41, 2) + dx2 * dx2 * pow(0 + coeff[1] + coeff[5] * x41 + 2 * coeff[6] * x21 + coeff[11] * x11 * x31 + coeff[12] * x32 + coeff[13] * x32 * x41 + 2 * coeff[18] * x21 * x12 + coeff[19] * x12 * x41, 2) + dx3 * dx3 * pow(0 + coeff[3] * x11 + 2 * coeff[4] * x31 + coeff[8] + coeff[11] * x11 * x21 + 2 * coeff[12] * x31 * x21 + 2 * coeff[13] * x31 * x21 * x41 + 2 * coeff[14] * x31 * x42 + coeff[16] * x11 * x41 + 2 * coeff[17] * x31 * x41, 2) + dx4 * dx4 * pow(0 + coeff[2] + coeff[5] * x21 + 2 * coeff[10] * x41 + coeff[13] * x21 * x32 + 2 * coeff[14] * x41 * x32 + coeff[15] * x12 + coeff[16] * x11 * x31 + coeff[17] * x32 + coeff[19] * x12 * x21, 2));
  dx[0] = dv_target_theta;
  return v_target_theta;
}
```