user: Demonstrate the C code that generates the assembly output 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  D284(%rip),%xmm0
  movss  %xmm0,0x60(%rsp)
  movss  %xmm0,0x64(%rsp)
  movl   $0xc1900000,0x68(%rsp)
  movl   $0xc1902f1b,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  D456(%rip),%xmm0
  movss  %xmm0,0x90(%rsp)
  movss  %xmm0,0x94(%rsp)
  movl   $0x41900000,0x98(%rsp)
  movl   $0x418fd4fe,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    L54
  mov    %edx,%edx
  movss  D57(%rip),%xmm2
  jmp    L48
L45:
  subss  %xmm1,%xmm0
  movaps %xmm2,%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,0xc0(%rsp,%rax,4)
L10:
  add    $0x1,%rax
  cmp    %rdx,%rax
  je     L54
L48:
  movss  0x60(%rsp,%rax,4),%xmm1
  movss  0x90(%rsp,%rax,4),%xmm0
  ucomiss %xmm0,%xmm1
  jp     L45
  jne    L45
  jmp    L10
L54:
  movss  0xc0(%rsp),%xmm2
  movss  (%rcx),%xmm1
  movss  D456(%rip),%xmm5
  subss  %xmm5,%xmm1
  mulss  %xmm2,%xmm1
  movss  D452(%rip),%xmm0
  addss  %xmm0,%xmm1
  mulss  (%rbx),%xmm2
  movss  0xc4(%rsp),%xmm4
  movss  0x4(%rcx),%xmm3
  subss  %xmm5,%xmm3
  mulss  %xmm4,%xmm3
  movaps %xmm3,%xmm7
  addss  %xmm0,%xmm7
  movaps %xmm7,%xmm6
  movss  %xmm7,0xc(%rsp)
  mulss  0x4(%rbx),%xmm4
  movss  %xmm4,0x10(%rsp)
  movss  0xc8(%rsp),%xmm4
  movss  0x8(%rcx),%xmm3
  subss  D86(%rip),%xmm3
  mulss  %xmm4,%xmm3
  movaps %xmm3,%xmm5
  addss  %xmm0,%xmm5
  movaps %xmm5,%xmm8
  movss  %xmm5,0x1c(%rsp)
  movaps %xmm4,%xmm3
  mulss  0x8(%rbx),%xmm3
  movss  %xmm3,0x14(%rsp)
  movss  0xcc(%rsp),%xmm4
  movss  0xc(%rcx),%xmm3
  subss  D103(%rip),%xmm3
  mulss  %xmm4,%xmm3
  movaps %xmm3,%xmm10
  addss  %xmm0,%xmm10
  movss  %xmm10,0x8(%rsp)
  mulss  0xc(%rbx),%xmm4
  movss  %xmm4,0x18(%rsp)
  movaps %xmm1,%xmm11
  mulss  %xmm1,%xmm11
  movss  %xmm11,0x54(%rsp)
  movaps %xmm7,%xmm3
  mulss  %xmm7,%xmm3
  mulss  %xmm5,%xmm5
  movss  %xmm5,0x20(%rsp)
  movaps %xmm10,%xmm9
  mulss  %xmm10,%xmm9
  movss  %xmm9,0x58(%rsp)
  movaps %xmm1,%xmm14
  mulss  D274(%rip),%xmm14
  movss  %xmm14,0x24(%rsp)
  mulss  D52(%rip),%xmm7
  movss  %xmm7,0x28(%rsp)
  movaps %xmm6,%xmm0
  mulss  D457(%rip),%xmm0
  mulss  %xmm5,%xmm0
  movaps %xmm0,%xmm15
  movss  %xmm0,0x2c(%rsp)
  movaps %xmm1,%xmm12
  mulss  D357(%rip),%xmm12
  movss  %xmm12,0x30(%rsp)
  mulss  %xmm6,%xmm12
  movss  %xmm12,0x34(%rsp)
  movaps %xmm1,%xmm13
  mulss  D197(%rip),%xmm13
  movss  %xmm13,0x38(%rsp)
  mulss  %xmm8,%xmm13
  movss  %xmm13,0x3c(%rsp)
  movaps %xmm6,%xmm0
  mulss  D82(%rip),%xmm0
  addss  D65(%rip),%xmm0
  movaps %xmm10,%xmm4
  mulss  D156(%rip),%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm11,%xmm4
  mulss  D85(%rip),%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm3,%xmm4
  mulss  D91(%rip),%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm14,%xmm4
  mulss  %xmm8,%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm5,%xmm4
  mulss  D127(%rip),%xmm4
  addss  %xmm4,%xmm0
  mulss  %xmm10,%xmm7
  addss  %xmm7,%xmm0
  movaps %xmm1,%xmm7
  mulss  D391(%rip),%xmm7
  addss  %xmm7,%xmm0
  movaps %xmm8,%xmm4
  mulss  D140(%rip),%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm9,%xmm4
  mulss  D35(%rip),%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm15,%xmm4
  mulss  %xmm10,%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm5,%xmm4
  mulss  D308(%rip),%xmm4
  mulss  %xmm9,%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm12,%xmm4
  mulss  %xmm8,%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm6,%xmm4
  mulss  D351(%rip),%xmm4
  mulss  %xmm5,%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm13,%xmm4
  mulss  %xmm10,%xmm4
  addss  %xmm4,%xmm0
  movaps %xmm11,%xmm5
  mulss  D121(%rip),%xmm11
  movaps %xmm11,%xmm7
  movss  %xmm11,0x40(%rsp)
  mulss  %xmm6,%xmm7
  movss  %xmm7,0x44(%rsp)
  movaps %xmm5,%xmm11
  mulss  D318(%rip),%xmm5
  movss  %xmm5,0x48(%rsp)
  movaps %xmm11,%xmm4
  mulss  D462(%rip),%xmm4
  mulss  %xmm3,%xmm4
  addss  %xmm4,%xmm0
  mulss  %xmm10,%xmm7
  addss  %xmm7,%xmm0
  mulss  %xmm10,%xmm5
  addss  %xmm5,%xmm0
  movaps %xmm1,%xmm5
  mulss  D262(%rip),%xmm5
  movss  %xmm5,0x4c(%rsp)
  mulss  %xmm6,%xmm5
  movss  %xmm5,0x50(%rsp)
  movaps %xmm5,%xmm4
  mulss  %xmm10,%xmm4
  movaps %xmm4,%xmm7
  addss  %xmm0,%xmm7
  movd   %xmm7,%r14d
  pxor   %xmm4,%xmm4
  movaps %xmm2,%xmm0
  addss  %xmm4,%xmm0
  addss  0x10(%rsp),%xmm0
  addss  0x14(%rsp),%xmm0
  addss  0x18(%rsp),%xmm0
  ucomiss %xmm4,%xmm0
  jp     L58
  movaps %xmm4,%xmm0
  jne    L58
L23:
  movss  %xmm0,(%rbx)
  mov    0xe8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L6
  movd   %r14d,%xmm0
  add    $0xf8,%rsp
  pop    %rbx
  pop    %r14
  ret
L58:
  mulss  %xmm2,%xmm2
  movss  %xmm2,0x5c(%rsp)
  movaps %xmm1,%xmm0
  mulss  D359(%rip),%xmm0
  pxor   %xmm6,%xmm6
  addss  %xmm6,%xmm0
  movss  0x1c(%rsp),%xmm6
  movaps %xmm6,%xmm2
  mulss  D274(%rip),%xmm2
  addss  %xmm2,%xmm0
  addss  D391(%rip),%xmm0
  movss  0xc(%rsp),%xmm7
  movaps %xmm7,%xmm2
  mulss  D357(%rip),%xmm2
  mulss  %xmm6,%xmm2
  addss  %xmm2,%xmm0
  movaps %xmm6,%xmm2
  mulss  D197(%rip),%xmm2
  movss  0x8(%rsp),%xmm6
  mulss  %xmm6,%xmm2
  addss  %xmm2,%xmm0
  movss  D483(%rip),%xmm5
  mulss  %xmm1,%xmm5
  movaps %xmm5,%xmm2
  mulss  %xmm3,%xmm2
  addss  %xmm2,%xmm0
  movaps %xmm1,%xmm5
  mulss  D128(%rip),%xmm5
  movaps %xmm5,%xmm2
  mulss  %xmm7,%xmm2
  mulss  %xmm6,%xmm2
  addss  %xmm2,%xmm0
  mulss  D181(%rip),%xmm1
  mulss  %xmm6,%xmm1
  addss  %xmm1,%xmm0
  movaps %xmm7,%xmm1
  mulss  D262(%rip),%xmm1
  mulss  %xmm6,%xmm1
  addss  %xmm1,%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  mulss  0x5c(%rsp),%xmm0
  movss  %xmm0,0x5c(%rsp)
  movss  0x10(%rsp),%xmm3
  mulss  %xmm3,%xmm3
  movss  %xmm3,0x10(%rsp)
  movss  0xc(%rsp),%xmm7
  movaps %xmm7,%xmm0
  mulss  D137(%rip),%xmm0
  subss  D129(%rip),%xmm0
  movss  0x8(%rsp),%xmm2
  movaps %xmm2,%xmm1
  mulss  D52(%rip),%xmm1
  addss  %xmm1,%xmm0
  movss  0x20(%rsp),%xmm5
  movaps %xmm5,%xmm1
  mulss  D457(%rip),%xmm1
  mulss  %xmm2,%xmm1
  addss  %xmm1,%xmm0
  movss  0x30(%rsp),%xmm1
  mulss  0x1c(%rsp),%xmm1
  addss  %xmm1,%xmm0
  movaps %xmm5,%xmm1
  mulss  D351(%rip),%xmm1
  addss  %xmm1,%xmm0
  movss  D483(%rip),%xmm1
  mulss  %xmm7,%xmm1
  mulss  0x54(%rsp),%xmm1
  addss  %xmm1,%xmm0
  movss  0x40(%rsp),%xmm1
  mulss  %xmm2,%xmm1
  addss  %xmm1,%xmm0
  movss  0x4c(%rsp),%xmm1
  mulss  %xmm2,%xmm1
  addss  %xmm1,%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  mulss  0x10(%rsp),%xmm0
  addss  0x5c(%rsp),%xmm0
  movss  %xmm0,0x10(%rsp)
  movss  0x14(%rsp),%xmm4
  mulss  %xmm4,%xmm4
  movss  %xmm4,0x14(%rsp)
  pxor   %xmm0,%xmm0
  addss  0x24(%rsp),%xmm0
  movss  0x1c(%rsp),%xmm3
  movaps %xmm3,%xmm1
  mulss  D209(%rip),%xmm1
  addss  %xmm1,%xmm0
  subss  D320(%rip),%xmm0
  movaps %xmm3,%xmm1
  mulss  D333(%rip),%xmm1
  movss  0xc(%rsp),%xmm7
  mulss  %xmm7,%xmm1
  movss  0x8(%rsp),%xmm2
  mulss  %xmm2,%xmm1
  addss  %xmm1,%xmm0
  movss  D144(%rip),%xmm1
  mulss  %xmm3,%xmm1
  mulss  0x58(%rsp),%xmm1
  addss  %xmm1,%xmm0
  addss  0x34(%rsp),%xmm0
  mulss  D75(%rip),%xmm3
  movaps %xmm3,%xmm1
  mulss  %xmm7,%xmm1
  addss  %xmm1,%xmm0
  movss  0x38(%rsp),%xmm3
  mulss  %xmm2,%xmm3
  addss  %xmm3,%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  mulss  0x14(%rsp),%xmm0
  movaps %xmm0,%xmm3
  addss  0x10(%rsp),%xmm3
  movss  %xmm3,0xc(%rsp)
  movss  0x18(%rsp),%xmm3
  mulss  %xmm3,%xmm3
  movss  %xmm3,0x10(%rsp)
  movss  0x28(%rsp),%xmm0
  addss  D156(%rip),%xmm0
  movss  0x8(%rsp),%xmm2
  movaps %xmm2,%xmm1
  mulss  D217(%rip),%xmm1
  addss  %xmm1,%xmm0
  movss  0x2c(%rsp),%xmm6
  addss  %xmm0,%xmm6
  movss  D144(%rip),%xmm0
  mulss  %xmm2,%xmm0
  mulss  0x20(%rsp),%xmm0
  addss  %xmm6,%xmm0
  addss  0x3c(%rsp),%xmm0
  addss  0x44(%rsp),%xmm0
  addss  0x48(%rsp),%xmm0
  addss  0x50(%rsp),%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  mulss  0x10(%rsp),%xmm0
  addss  0xc(%rsp),%xmm0
  call   <sqrt@plt>
  jmp    L23
L6:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D284
datatype: byte[4]
name: unpack_data
arguments: label: D456
datatype: f32
name: unpack_data
arguments: label: D57
datatype: f32
name: unpack_data
arguments: label: D452
datatype: f32
name: unpack_data
arguments: label: D86
datatype: f32
name: unpack_data
arguments: label: D103
datatype: byte[4]
name: unpack_data
arguments: label: D274
datatype: byte[4]
name: unpack_data
arguments: label: D52
datatype: byte[4]
name: unpack_data
arguments: label: D457
datatype: byte[4]
name: unpack_data
arguments: label: D357
datatype: byte[4]
name: unpack_data
arguments: label: D197
datatype: byte[4]
name: unpack_data
arguments: label: D82
datatype: byte[4]
name: unpack_data
arguments: label: D65
datatype: byte[4]
name: unpack_data
arguments: label: D156
datatype: byte[4]
name: unpack_data
arguments: label: D85
datatype: byte[4]
name: unpack_data
arguments: label: D91
datatype: byte[4]
name: unpack_data
arguments: label: D127
datatype: byte[4]
name: unpack_data
arguments: label: D391
datatype: byte[4]
name: unpack_data
arguments: label: D140
datatype: byte[4]
name: unpack_data
arguments: label: D35
datatype: byte[4]
name: unpack_data
arguments: label: D308
datatype: byte[4]
name: unpack_data
arguments: label: D351
datatype: byte[4]
name: unpack_data
arguments: label: D121
datatype: byte[4]
name: unpack_data
arguments: label: D318
datatype: byte[4]
name: unpack_data
arguments: label: D462
datatype: byte[4]
name: unpack_data
arguments: label: D262
datatype: byte[4]
name: unpack_data
arguments: label: D359
datatype: byte[4]
name: unpack_data
arguments: label: D483
datatype: byte[4]
name: unpack_data
arguments: label: D128
datatype: byte[4]
name: unpack_data
arguments: label: D181
datatype: byte[4]
name: unpack_data
arguments: label: D137
datatype: byte[4]
name: unpack_data
arguments: label: D129
datatype: byte[4]
name: unpack_data
arguments: label: D209
datatype: byte[4]
name: unpack_data
arguments: label: D320
datatype: byte[4]
name: unpack_data
arguments: label: D333
datatype: byte[4]
name: unpack_data
arguments: label: D144
datatype: byte[4]
name: unpack_data
arguments: label: D75
datatype: byte[4]
name: unpack_data
arguments: label: D217
datatype: byte[4]

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

tool: D456: 15

tool: D57: 2

tool: D452: 1

tool: D86: 18

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

tool: {"D274": [0xb2,0xb7,0x84,0x3c]}

tool: {"D52": [0xe7,0xe3,0xd8,0xbb]}

tool: {"D457": [0x6f,0xee,0xd2,0x39]}

tool: {"D357": [0x54,0x3e,0xca,0xb7]}

tool: {"D197": [0xb9,0x37,0x26,0xb9]}

tool: {"D82": [0x3f,0xdd,0x4f,0xbd]}

tool: {"D65": [0x32,0xca,0xf5,0x3d]}

tool: {"D156": [0x47,0xa7,0x70,0x3d]}

tool: {"D85": [0x12,0x9d,0xa4,0xbb]}

tool: {"D91": [0x4f,0xe7,0xdb,0x3a]}

tool: {"D127": [0x69,0x3b,0x54,0xbc]}

tool: {"D391": [0x08,0x9f,0xd5,0x39]}

tool: {"D140": [0xa6,0xd0,0x28,0xba]}

tool: {"D35": [0x96,0x70,0xcc,0x3b]}

tool: {"D308": [0x73,0x64,0x16,0xba]}

tool: {"D351": [0x75,0xd5,0x84,0x38]}

tool: {"D121": [0xe9,0x32,0x94,0x39]}

tool: {"D318": [0xa6,0x0a,0xc8,0x38]}

tool: {"D462": [0x30,0xc8,0x54,0xb9]}

tool: {"D262": [0x2a,0x2e,0x8c,0xb6]}

tool: {"D359": [0x12,0x9d,0x24,0xbc]}

tool: {"D483": [0x30,0xc8,0xd4,0xb9]}

tool: {"D128": [0xe9,0x32,0x14,0x3a]}

tool: {"D181": [0xa6,0x0a,0x48,0x39]}

tool: {"D137": [0x4f,0xe7,0x5b,0x3b]}

tool: {"D129": [0x3f,0xdd,0x4f,0x3d]}

tool: {"D209": [0x69,0x3b,0xd4,0xbc]}

tool: {"D320": [0xa6,0xd0,0x28,0x3a]}

tool: {"D333": [0x6f,0xee,0x52,0x3a]}

tool: {"D144": [0x73,0x64,0x96,0xba]}

tool: {"D75": [0x75,0xd5,0x04,0x39]}

tool: {"D217": [0x96,0x70,0x4c,0x3c]}

assistant: ```c
float target_theta(float *x, float *dx, int m) {
  int ncoeff = 20;
  float avdat = 0.1199161E+00;
  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[21] = {0.98469784E-04, -0.50748106E-01, 0.58753278E-01, -0.50236071E-02, 0.16777309E-02, 0.16200874E-01, -0.12953618E-01, -0.66189650E-02, 0.40745013E-03, -0.64397824E-03, 0.62390072E-02, 0.40231968E-03, -0.57370140E-03, -0.24109300E-04, 0.63340100E-04, -0.15851752E-03, -0.20292471E-03, 0.28266691E-03, 0.95387266E-04, -0.41776993E-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 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] * x12 + coeff[4] * x22 + coeff[5] * x11 * x31 + coeff[6] * x32 + coeff[7] * x21 * x41;
  v_target_theta = v_target_theta + coeff[8] * x11 + coeff[9] * x31 + coeff[10] * x42 + coeff[11] * x21 * x32 * x41 + coeff[12] * x32 * x42 + coeff[13] * x11 * x21 * x31 + coeff[14] * x21 * x32 + coeff[15] * x11 * x31 * x41 + coeff[16] * x12 * x22;
  v_target_theta = v_target_theta + coeff[17] * x12 * x21 * x41 + coeff[18] * x12 * x41 + coeff[19] * x11 * x21 * x41;
  float dxall = 0 + dx1 + dx2 + dx3 + dx4;
  float dv_target_theta = dxall == 0 ? 0 : sqrt(+dx1 * dx1 * pow(0 + 2 * coeff[3] * x11 + coeff[5] * x31 + coeff[8] + coeff[13] * x21 * x31 + coeff[15] * x31 * x41 + 2 * coeff[16] * x11 * x22 + 2 * coeff[17] * x11 * x21 * x41 + 2 * coeff[18] * x11 * x41 + coeff[19] * x21 * x41, 2) + dx2 * dx2 * pow(0 + coeff[1] + 2 * coeff[4] * x21 + coeff[7] * x41 + coeff[11] * x32 * x41 + coeff[13] * x11 * x31 + coeff[14] * x32 + 2 * coeff[16] * x21 * x12 + coeff[17] * x12 * x41 + coeff[19] * x11 * x41, 2) + dx3 * dx3 * pow(0 + coeff[5] * x11 + 2 * coeff[6] * x31 + coeff[9] + 2 * coeff[11] * x31 * x21 * x41 + 2 * coeff[12] * x31 * x42 + coeff[13] * x11 * x21 + 2 * coeff[14] * x31 * x21 + coeff[15] * x11 * x41, 2) + dx4 * dx4 * pow(0 + coeff[2] + coeff[7] * x21 + 2 * coeff[10] * x41 + coeff[11] * x21 * x32 + 2 * coeff[12] * x41 * x32 + coeff[15] * x11 * x31 + coeff[17] * x12 * x21 + coeff[18] * x12 + coeff[19] * x11 * x21, 2));
  dx[0] = dv_target_theta;
  return v_target_theta;
}
```