user: Demonstrate the C code that generates the assembly output below:

```asm
<plotCubicBezier>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xd8,%rsp
  mov    %edi,%r15d
  mov    %esi,%r14d
  mov    %ecx,%eax
  mov    %fs:0x28,%rcx
  mov    %rcx,0xc8(%rsp)
  xor    %ecx,%ecx
  lea    (%rdi,%rdx,1),%ecx
  sub    %r8d,%ecx
  sub    0x110(%rsp),%ecx
  mov    %ecx,0x60(%rsp)
  movslq %ecx,%rbp
  mov    %edx,%ecx
  sub    %r8d,%ecx
  shl    $0x2,%ecx
  movslq %ecx,%rcx
  mov    %edi,%esi
  sub    %edx,%esi
  sub    %r8d,%esi
  add    0x110(%rsp),%esi
  mov    %esi,0x58(%rsp)
  movslq %esi,%r13
  add    %r8d,%edx
  shl    $0x2,%edx
  movslq %edx,%rdx
  lea    (%rdx,%r13,1),%rdi
  mov    %rdi,0x90(%rsp)
  lea    (%r14,%rax,1),%edx
  sub    %r9d,%edx
  sub    0x118(%rsp),%edx
  mov    %edx,0x64(%rsp)
  movslq %edx,%rdi
  mov    %rdi,0x8(%rsp)
  mov    %eax,%edx
  sub    %r9d,%edx
  shl    $0x2,%edx
  movslq %edx,%rdx
  sub    %rdx,%rdi
  mov    %rdi,0x48(%rsp)
  mov    %r14d,%edx
  sub    %eax,%edx
  sub    %r9d,%edx
  add    0x118(%rsp),%edx
  mov    %edx,0x5c(%rsp)
  movslq %edx,%r12
  add    %r9d,%eax
  shl    $0x2,%eax
  cltq
  add    %r12,%rax
  mov    %rax,0x98(%rsp)
  pxor   %xmm2,%xmm2
  cvtsi2ss %r15d,%xmm2
  movss  %xmm2,0x10(%rsp)
  pxor   %xmm2,%xmm2
  cvtsi2ss %r14d,%xmm2
  movss  %xmm2,0x4(%rsp)
  mov    %rbp,%rax
  sub    %rcx,%rax
  mov    %rax,0x50(%rsp)
  je     L104
  mov    %r13,%rax
  imul   %r13,%rax
  mov    0x50(%rsp),%rdx
  imul   %rbp,%rdx
  sub    %rdx,%rax
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  mov    $0x0,%ebx
  comisd D140(%rip),%xmm0
  ja     L87
L65:
  cmpq   $0x0,0x48(%rsp)
  je     L339
  mov    %r12,%rax
  imul   %r12,%rax
  mov    0x8(%rsp),%rdx
  imul   0x48(%rsp),%rdx
  sub    %rdx,%rax
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  comisd D140(%rip),%xmm0
  ja     L287
L222:
  cmp    $0x1,%ebx
  jle    L107
  mov    $0x1,%eax
  jmp    L28
L104:
  mov    %rbp,%rdi
  call   <abs@plt>
  mov    %eax,0x14(%rsp)
  mov    %r13,%rdi
  call   <abs@plt>
  add    %eax,%eax
  mov    $0x0,%ebx
  cmp    %eax,0x14(%rsp)
  jge    L65
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x60(%rsp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x58(%rsp),%xmm1
  addsd  %xmm1,%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,0xa0(%rsp)
  mov    $0x1,%ebx
  jmp    L65
L87:
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L90
  sqrtsd %xmm0,%xmm0
L168:
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x58(%rsp),%xmm1
  pxor   %xmm3,%xmm3
  cvtsi2sdq 0x50(%rsp),%xmm3
  movapd %xmm1,%xmm2
  subsd  %xmm0,%xmm2
  divsd  %xmm3,%xmm2
  movapd %xmm2,%xmm4
  andpd  D115(%rip),%xmm4
  mov    $0x1,%ebx
  movsd  D189(%rip),%xmm5
  comisd %xmm4,%xmm5
  ja     L141
  movsd  0xa0(%rsp),%xmm2
  mov    $0x0,%ebx
L141:
  movsd  %xmm2,0xa0(%rsp)
  addsd  %xmm0,%xmm1
  divsd  %xmm3,%xmm1
  movapd %xmm1,%xmm0
  andpd  D115(%rip),%xmm0
  movsd  D189(%rip),%xmm2
  comisd %xmm0,%xmm2
  jbe    L65
  movslq %ebx,%rax
  movsd  %xmm1,0xa0(%rsp,%rax,8)
  lea    0x1(%rbx),%ebx
  jmp    L65
L90:
  call   <sqrt@plt>
  jmp    L168
L339:
  mov    0x8(%rsp),%rdi
  call   <abs@plt>
  mov    %eax,0x14(%rsp)
  mov    %r12,%rdi
  call   <abs@plt>
  add    %eax,%eax
  cmp    %eax,0x14(%rsp)
  jge    L222
  movslq %ebx,%rax
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x64(%rsp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x5c(%rsp),%xmm1
  addsd  %xmm1,%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,0xa0(%rsp,%rax,8)
  lea    0x1(%rbx),%ebx
  jmp    L222
L287:
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L207
  sqrtsd %xmm0,%xmm0
L357:
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x5c(%rsp),%xmm1
  pxor   %xmm3,%xmm3
  cvtsi2sdq 0x48(%rsp),%xmm3
  movapd %xmm1,%xmm2
  subsd  %xmm0,%xmm2
  divsd  %xmm3,%xmm2
  movapd %xmm2,%xmm4
  andpd  D115(%rip),%xmm4
  movsd  D189(%rip),%xmm5
  comisd %xmm4,%xmm5
  ja     L275
L293:
  addsd  %xmm0,%xmm1
  divsd  %xmm3,%xmm1
  movapd %xmm1,%xmm0
  andpd  D115(%rip),%xmm0
  movsd  D189(%rip),%xmm2
  comisd %xmm0,%xmm2
  jbe    L222
  movslq %ebx,%rax
  movsd  %xmm1,0xa0(%rsp,%rax,8)
  lea    0x1(%rbx),%ebx
  jmp    L222
L207:
  call   <sqrt@plt>
  jmp    L357
L275:
  movslq %ebx,%rax
  movsd  %xmm2,0xa0(%rsp,%rax,8)
  lea    0x1(%rbx),%ebx
  jmp    L293
L35:
  add    $0x1,%eax
  cmp    %eax,%ebx
  jle    L107
L28:
  lea    -0x1(%rax),%edx
  movslq %edx,%rcx
  movsd  0xa0(%rsp,%rcx,8),%xmm0
  movslq %eax,%rcx
  movsd  0xa0(%rsp,%rcx,8),%xmm1
  comisd %xmm1,%xmm0
  jbe    L35
  movslq %edx,%rdx
  movsd  %xmm1,0xa0(%rsp,%rdx,8)
  movsd  %xmm0,0xa0(%rsp,%rcx,8)
  mov    $0x1,%eax
  jmp    L28
L107:
  movslq %ebx,%rax
  mov    D189(%rip),%rdi
  mov    %rdi,0xa0(%rsp,%rax,8)
  lea    0x0(%rbp,%rbp,1),%rcx
  pxor   %xmm5,%xmm5
  cvtsi2sd %rcx,%xmm5
  movsd  %xmm5,0x68(%rsp)
  lea    0x0(%r13,%r13,1),%rsi
  pxor   %xmm4,%xmm4
  cvtsi2sd %rsi,%xmm4
  movsd  %xmm4,0x28(%rsp)
  mov    0x8(%rsp),%rdi
  lea    (%rdi,%rdi,1),%rax
  pxor   %xmm2,%xmm2
  cvtsi2sd %rax,%xmm2
  movsd  %xmm2,0x30(%rsp)
  lea    (%r12,%r12,1),%rdx
  pxor   %xmm5,%xmm5
  cvtsi2sd %rdx,%xmm5
  movsd  %xmm5,0x38(%rsp)
  add    %r13,%rsi
  pxor   %xmm4,%xmm4
  cvtsi2sd %rsi,%xmm4
  movsd  %xmm4,0x70(%rsp)
  add    %rbp,%rcx
  pxor   %xmm2,%xmm2
  cvtsi2sd %rcx,%xmm2
  movsd  %xmm2,0x78(%rsp)
  add    %r12,%rdx
  pxor   %xmm5,%xmm5
  cvtsi2sd %rdx,%xmm5
  movsd  %xmm5,0x80(%rsp)
  add    %rdi,%rax
  pxor   %xmm4,%xmm4
  cvtsi2sd %rax,%xmm4
  movsd  %xmm4,0x88(%rsp)
  lea    0xa0(%rsp),%rbp
  mov    %ebx,%ebx
  lea    0xa8(%rsp,%rbx,8),%r13
  movsd  D13(%rip),%xmm2
  movsd  %xmm2,0x40(%rsp)
  jmp    L190
L20:
  mov    %ebx,%eax
  sub    %r15d,%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  divss  0x8(%rsp),%xmm0
  movss  0x18(%rsp),%xmm5
  mulss  %xmm0,%xmm5
  movss  %xmm5,0x18(%rsp)
  mulss  0x1c(%rsp),%xmm0
  movss  %xmm0,0x1c(%rsp)
  jmp    L345
L0:
  mov    %r12d,%eax
  sub    %r14d,%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  divss  0x14(%rsp),%xmm0
  movss  0x20(%rsp),%xmm5
  mulss  %xmm0,%xmm5
  movss  %xmm5,0x20(%rsp)
  mulss  0x24(%rsp),%xmm0
  movss  %xmm0,0x24(%rsp)
L155:
  cmp    %ebx,%r15d
  jne    L197
  cmp    %r12d,%r14d
  jne    L197
L50:
  add    $0x8,%rbp
  cmp    %rbp,%r13
  je     L176
L190:
  movsd  0x40(%rsp),%xmm6
  movsd  0x0(%rbp),%xmm13
  movsd  %xmm13,0x40(%rsp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x58(%rsp),%xmm1
  pxor   %xmm2,%xmm2
  cvtsi2sdq 0x50(%rsp),%xmm2
  pxor   %xmm10,%xmm10
  cvtsi2sdl 0x60(%rsp),%xmm10
  pxor   %xmm4,%xmm4
  cvtsi2sdq 0x90(%rsp),%xmm4
  pxor   %xmm8,%xmm8
  cvtss2sd 0x10(%rsp),%xmm8
  movapd %xmm1,%xmm0
  mulsd  %xmm6,%xmm0
  movsd  0x68(%rsp),%xmm15
  subsd  %xmm15,%xmm0
  mulsd  %xmm6,%xmm0
  movapd %xmm2,%xmm3
  mulsd  %xmm6,%xmm3
  subsd  0x28(%rsp),%xmm3
  mulsd  %xmm6,%xmm3
  addsd  %xmm10,%xmm3
  mulsd  %xmm13,%xmm3
  subsd  %xmm3,%xmm0
  addsd  %xmm4,%xmm0
  mulsd  D16(%rip),%xmm0
  subsd  %xmm8,%xmm0
  pxor   %xmm3,%xmm3
  cvtsd2ss %xmm0,%xmm3
  movss  %xmm3,0x18(%rsp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x5c(%rsp),%xmm0
  pxor   %xmm12,%xmm12
  cvtsi2sdq 0x48(%rsp),%xmm12
  pxor   %xmm7,%xmm7
  cvtsi2sdl 0x64(%rsp),%xmm7
  pxor   %xmm3,%xmm3
  cvtsi2sdq 0x98(%rsp),%xmm3
  pxor   %xmm5,%xmm5
  cvtss2sd 0x4(%rsp),%xmm5
  movapd %xmm0,%xmm9
  mulsd  %xmm6,%xmm9
  subsd  0x30(%rsp),%xmm9
  mulsd  %xmm6,%xmm9
  movapd %xmm12,%xmm14
  mulsd  %xmm6,%xmm14
  movapd %xmm14,%xmm11
  subsd  0x38(%rsp),%xmm11
  mulsd  %xmm6,%xmm11
  addsd  %xmm7,%xmm11
  mulsd  %xmm13,%xmm11
  subsd  %xmm11,%xmm9
  addsd  %xmm3,%xmm9
  mulsd  D16(%rip),%xmm9
  subsd  %xmm5,%xmm9
  cvtsd2ss %xmm9,%xmm9
  movss  %xmm9,0x20(%rsp)
  mulsd  %xmm13,%xmm2
  mulsd  %xmm13,%xmm1
  subsd  %xmm15,%xmm1
  mulsd  %xmm13,%xmm1
  movapd %xmm2,%xmm9
  subsd  0x28(%rsp),%xmm9
  mulsd  %xmm13,%xmm9
  addsd  %xmm10,%xmm9
  mulsd  %xmm6,%xmm9
  subsd  %xmm9,%xmm1
  addsd  %xmm4,%xmm1
  mulsd  D16(%rip),%xmm1
  subsd  %xmm8,%xmm1
  cvtsd2ss %xmm1,%xmm1
  movss  %xmm1,0x1c(%rsp)
  movapd %xmm12,%xmm1
  mulsd  %xmm13,%xmm1
  mulsd  %xmm13,%xmm0
  subsd  0x30(%rsp),%xmm0
  mulsd  %xmm13,%xmm0
  movapd %xmm1,%xmm8
  subsd  0x38(%rsp),%xmm8
  mulsd  %xmm13,%xmm8
  addsd  %xmm8,%xmm7
  mulsd  %xmm7,%xmm6
  subsd  %xmm6,%xmm0
  addsd  %xmm3,%xmm0
  mulsd  D16(%rip),%xmm0
  subsd  %xmm5,%xmm0
  pxor   %xmm7,%xmm7
  cvtsd2ss %xmm0,%xmm7
  movss  %xmm7,0x24(%rsp)
  movss  0x10(%rsp),%xmm5
  movsd  0x70(%rsp),%xmm0
  subsd  %xmm2,%xmm0
  mulsd  %xmm13,%xmm0
  subsd  0x78(%rsp),%xmm0
  mulsd  %xmm13,%xmm0
  addsd  %xmm4,%xmm0
  mulsd  D16(%rip),%xmm0
  pxor   %xmm4,%xmm4
  cvtsd2ss %xmm0,%xmm4
  movss  %xmm4,0x10(%rsp)
  subss  %xmm4,%xmm5
  movss  %xmm5,0x8(%rsp)
  movss  0x4(%rsp),%xmm2
  movsd  0x80(%rsp),%xmm0
  subsd  %xmm1,%xmm0
  mulsd  %xmm13,%xmm0
  subsd  0x88(%rsp),%xmm0
  mulsd  %xmm13,%xmm0
  addsd  %xmm3,%xmm0
  mulsd  D16(%rip),%xmm0
  pxor   %xmm7,%xmm7
  cvtsd2ss %xmm0,%xmm7
  movss  %xmm7,0x4(%rsp)
  subss  %xmm7,%xmm2
  movss  %xmm2,0x14(%rsp)
  mov    %r15d,%ebx
  movss  D41(%rip),%xmm0
  addss  %xmm4,%xmm0
  call   <floor@plt>
  mov    %eax,%r15d
  mov    %r14d,%r12d
  movss  D41(%rip),%xmm0
  addss  0x4(%rsp),%xmm0
  call   <floor@plt>
  mov    %eax,%r14d
  movss  0x8(%rsp),%xmm5
  pxor   %xmm2,%xmm2
  ucomiss %xmm2,%xmm5
  jp     L20
  jne    L20
L345:
  movss  0x14(%rsp),%xmm6
  ucomiss D140(%rip),%xmm6
  jp     L0
  je     L155
  jmp    L0
L197:
  pxor   %xmm3,%xmm3
  cvtsi2ss %r12d,%xmm3
  pxor   %xmm2,%xmm2
  cvtsi2ss %ebx,%xmm2
  movss  0x24(%rsp),%xmm1
  addss  %xmm3,%xmm1
  movss  0x1c(%rsp),%xmm0
  addss  %xmm2,%xmm0
  addss  0x20(%rsp),%xmm3
  cvttss2si %xmm3,%ecx
  addss  0x18(%rsp),%xmm2
  cvttss2si %xmm2,%edx
  push   %r14
  push   %r15
  cvttss2si %xmm1,%r9d
  cvttss2si %xmm0,%r8d
  mov    %r12d,%esi
  mov    %ebx,%edi
  call   <plotCubicBezierSeg@plt>
  add    $0x10,%rsp
  jmp    L50
L176:
  mov    0xc8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L307
  add    $0xd8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L307:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D140
type_guessed: f64
name: parse_data
arguments: data_label: D115
type_guessed: qword[2]
name: parse_data
arguments: data_label: D189
type_guessed: f64
name: parse_data
arguments: data_label: D13
type_guessed: byte[8]
name: parse_data
arguments: data_label: D16
type_guessed: byte[8]
name: parse_data
arguments: data_label: D41
type_guessed: f32

tool: D140: 0

tool: {"D115": [0x7fffffffffffffff,0x0000000000000000]}

tool: D189: 1

tool: {"D13": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0xbf]}

tool: {"D16": [0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0x3f]}

tool: D41: 0.5

assistant: ```c
void plotCubicBezier(int x0, int y0, int x1, int y1, int x2, int y2, int x3, int y3) {
  int n = 0, i = 0;
  long xc = x0 + x1 - x2 - x3, xa = xc - 4 * (x1 - x2);
  long xb = x0 - x1 - x2 + x3, xd = xb + 4 * (x1 + x2);
  long yc = y0 + y1 - y2 - y3, ya = yc - 4 * (y1 - y2);
  long yb = y0 - y1 - y2 + y3, yd = yb + 4 * (y1 + y2);
  float fx0 = x0, fx1, fx2, fx3, fy0 = y0, fy1, fy2, fy3;
  double t1 = xb * xb - xa * xc, t2, t[5];
  if (xa == 0) {
    if (abs(xc) < 2 * abs(xb))
      t[n++] = xc / (2.0 * xb);
  } else if (t1 > 0.0) {
    t2 = sqrt(t1);
    t1 = (xb - t2) / xa;
    if (fabs(t1) < 1.0)
      t[n++] = t1;
    t1 = (xb + t2) / xa;
    if (fabs(t1) < 1.0)
      t[n++] = t1;
  }
  t1 = yb * yb - ya * yc;
  if (ya == 0) {
    if (abs(yc) < 2 * abs(yb))
      t[n++] = yc / (2.0 * yb);
  } else if (t1 > 0.0) {
    t2 = sqrt(t1);
    t1 = (yb - t2) / ya;
    if (fabs(t1) < 1.0)
      t[n++] = t1;
    t1 = (yb + t2) / ya;
    if (fabs(t1) < 1.0)
      t[n++] = t1;
  }
  for (i = 1; i < n; i++)
    if ((t1 = t[i - 1]) > t[i]) {
      t[i - 1] = t[i];
      t[i] = t1;
      i = 0;
    }
  t1 = -1.0;
  t[n] = 1.0;
  for (i = 0; i <= n; i++) {
    t2 = t[i];
    fx1 = (t1 * (t1 * xb - 2 * xc) - t2 * (t1 * (t1 * xa - 2 * xb) + xc) + xd) / 8 - fx0;
    fy1 = (t1 * (t1 * yb - 2 * yc) - t2 * (t1 * (t1 * ya - 2 * yb) + yc) + yd) / 8 - fy0;
    fx2 = (t2 * (t2 * xb - 2 * xc) - t1 * (t2 * (t2 * xa - 2 * xb) + xc) + xd) / 8 - fx0;
    fy2 = (t2 * (t2 * yb - 2 * yc) - t1 * (t2 * (t2 * ya - 2 * yb) + yc) + yd) / 8 - fy0;
    fx0 -= fx3 = (t2 * (t2 * (3 * xb - t2 * xa) - 3 * xc) + xd) / 8;
    fy0 -= fy3 = (t2 * (t2 * (3 * yb - t2 * ya) - 3 * yc) + yd) / 8;
    x3 = floor(fx3 + 0.5);
    y3 = floor(fy3 + 0.5);
    if (fx0 != 0.0) {
      fx1 *= fx0 = (x0 - x3) / fx0;
      fx2 *= fx0;
    }
    if (fy0 != 0.0) {
      fy1 *= fy0 = (y0 - y3) / fy0;
      fy2 *= fy0;
    }
    if (x0 != x3 || y0 != y3)
      plotCubicBezierSeg(x0, y0, x0 + fx1, y0 + fy1, x0 + fx2, y0 + fy2, x3, y3);
    x0 = x3;
    y0 = y3;
    fx0 = fx3;
    fy0 = fy3;
    t1 = t2;
  }
}
```