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

```asm
<imResize>:
  endbr64
  push   %r15
  mov    %esi,%r15d
  push   %r14
  push   %r13
  mov    %r9,%r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  movslq %ecx,%rbp
  push   %rbx
  mov    %edi,%ebx
  lea    0x0(,%rbp,4),%rdi
  sub    $0x18,%rsp
  mov    %ecx,(%rsp)
  mov    %r8d,0x8(%rsp)
  call   <malloc@plt>
  lea    0x0(,%rbp,8),%rdi
  mov    %rax,%r14
  call   <malloc@plt>
  mov    (%rsp),%ecx
  lea    -0x1(%rbx),%r11d
  pxor   %xmm3,%xmm3
  mov    %rax,%r9
  cvtsi2sd %r11d,%xmm3
  pxor   %xmm0,%xmm0
  lea    -0x1(%rcx),%eax
  cvtsi2sd %eax,%xmm0
  divsd  %xmm0,%xmm3
  test   %ecx,%ecx
  jle    L20
  movsd  D16(%rip),%xmm5
  movq   D32(%rip),%xmm4
  xor    %eax,%eax
  movsd  D38(%rip),%xmm6
  nopl   0x0(%rax)
L12:
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  %xmm3,%xmm0
  movapd %xmm0,%xmm1
  movapd %xmm0,%xmm2
  andpd  %xmm4,%xmm1
  ucomisd %xmm1,%xmm5
  jbe    L76
  cvttsd2si %xmm0,%rdx
  pxor   %xmm1,%xmm1
  cvtsi2sd %rdx,%xmm1
  movapd %xmm1,%xmm2
  cmpnlesd %xmm0,%xmm2
  andpd  %xmm6,%xmm2
  subsd  %xmm2,%xmm1
  movapd %xmm4,%xmm2
  andnpd %xmm0,%xmm2
  orpd   %xmm1,%xmm2
L76:
  cvttsd2si %xmm2,%edx
  pxor   %xmm1,%xmm1
  cvtsi2sd %edx,%xmm1
  mov    %edx,(%r14,%rax,4)
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%r9,%rax,8)
  add    $0x1,%rax
  cmp    %rbp,%rax
  jne    L12
L20:
  mov    0x8(%rsp),%esi
  lea    -0x1(%r15),%eax
  pxor   %xmm6,%xmm6
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm6
  mov    %eax,0xc(%rsp)
  lea    -0x1(%rsi),%eax
  cvtsi2sd %eax,%xmm0
  divsd  %xmm0,%xmm6
  test   %esi,%esi
  jle    L0
  movsd  D16(%rip),%xmm5
  movq   D32(%rip),%xmm4
  xor    %r15d,%r15d
  movsd  D38(%rip),%xmm7
  nopw   0x0(%rax,%rax,1)
L45:
  pxor   %xmm2,%xmm2
  cvtsi2sd %r15d,%xmm2
  mulsd  %xmm6,%xmm2
  movapd %xmm2,%xmm0
  movapd %xmm2,%xmm1
  andpd  %xmm4,%xmm0
  ucomisd %xmm0,%xmm5
  jbe    L71
  cvttsd2si %xmm2,%rax
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  movapd %xmm0,%xmm1
  cmpnlesd %xmm2,%xmm1
  andpd  %xmm7,%xmm1
  subsd  %xmm1,%xmm0
  movapd %xmm4,%xmm1
  andnpd %xmm2,%xmm1
  orpd   %xmm0,%xmm1
L71:
  cvttsd2si %xmm1,%r8d
  mov    0xc(%rsp),%eax
  pxor   %xmm0,%xmm0
  cmp    %r8d,%eax
  cvtsi2sd %r8d,%xmm0
  lea    0x1(%r8),%r10d
  cmove  %eax,%r10d
  imul   %ebx,%r8d
  mov    (%rsp),%eax
  imul   %ebx,%r10d
  movslq %r8d,%r8
  subsd  %xmm0,%xmm2
  add    %r12,%r8
  movslq %r10d,%r10
  add    %r12,%r10
  test   %eax,%eax
  jle    L75
  xor    %edx,%edx
  nopl   0x0(%rax)
L4:
  movslq (%r14,%rdx,4),%rax
  movsd  (%r9,%rdx,8),%xmm3
  movapd %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  lea    0x1(%rax),%edi
  movzbl (%r8,%rax,1),%esi
  mulsd  %xmm3,%xmm1
  cmp    %eax,%r11d
  cmove  %r11d,%edi
  movzbl (%r10,%rax,1),%eax
  movslq %edi,%rdi
  movzbl (%r8,%rdi,1),%ecx
  movzbl (%r10,%rdi,1),%edi
  sub    %eax,%edi
  sub    %esi,%eax
  sub    %ecx,%edi
  sub    %esi,%ecx
  add    %esi,%edi
  cvtsi2sd %edi,%xmm0
  mulsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sd %ecx,%xmm1
  mulsd  %xmm3,%xmm1
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sd %esi,%xmm1
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %al,0x0(%r13,%rdx,1)
  add    $0x1,%rdx
  cmp    %rdx,%rbp
  jne    L4
  add    %rbp,%r13
L75:
  add    $0x1,%r15d
  cmp    %r15d,0x8(%rsp)
  jne    L45
L0:
  mov    %r14,%rdi
  mov    %r9,(%rsp)
  call   <free@plt>
  mov    (%rsp),%rdi
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1060 <free@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D16
type_guessed: byte[8]
name: retrieve_data
arguments: data_tag: D32
type_guessed: byte[8]
name: retrieve_data
arguments: data_tag: D38
type_guessed: byte[8]

tool: {"D16": [0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x43]}

tool: {"D32": [0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f]}

tool: {"D38": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

assistant: ```c
void imResize(int src_width, int src_height, unsigned char *src_map, int dst_width, int dst_height, unsigned char *dst_map) {
  unsigned char *line_mapl, *line_maph;
  double t, u, src_x, src_y, factor;
  int fhh, fll, fhl, flh, xl, yl, xh, yh, x, y;
  int *XL = (int *)malloc(dst_width * sizeof(int));
  double *T = (double *)malloc(dst_width * sizeof(double));
  factor = (double)(src_width - 1) / (double)(dst_width - 1);
  for (x = 0; x < dst_width; x++) {
    src_x = x * factor;
    xl = (int)floor(src_x);
    T[x] = src_x - xl;
    XL[x] = xl;
  }
  factor = (double)(src_height - 1) / (double)(dst_height - 1);
  for (y = 0; y < dst_height; y++) {
    src_y = y * factor;
    yl = (int)floor(src_y);
    yh = (yl == src_height - 1) ? yl : yl + 1;
    u = src_y - yl;
    line_mapl = src_map + yl * src_width;
    line_maph = src_map + yh * src_width;
    for (x = 0; x < dst_width; x++) {
      xl = XL[x];
      xh = (xl == src_width - 1) ? xl : xl + 1;
      t = T[x];
      fll = line_mapl[xl];
      fhl = line_mapl[xh];
      flh = line_maph[xl];
      fhh = line_maph[xh];
      *(dst_map++) = (unsigned char)(u * t * (fhh - flh - fhl + fll) + t * (fhl - fll) + u * (flh - fll) + fll);
    }
  }
  free(XL);
  free(T);
}
```