user: 请从给定的汇编指令推导出C源代码：

```asm
<image_rgb24_from_rgb96f>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x34(%rbp)
  mov    %esi,-0x38(%rbp)
  mov    %rdx,-0x40(%rbp)
  mov    -0x34(%rbp),%eax
  imul   -0x38(%rbp),%eax
  mov    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x24(%rbp)
  jmp    L55
L41:
  movl   $0x0,-0x28(%rbp)
  jmp    L68
L8:
  mov    -0x34(%rbp),%eax
  imul   -0x24(%rbp),%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%eax
  add    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  movss  D21(%rip),%xmm0
  mulss  %xmm1,%xmm0
  cvttss2si %xmm0,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x14(%rbp),%eax
  add    $0x1,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  movss  D21(%rip),%xmm0
  mulss  %xmm1,%xmm0
  cvttss2si %xmm0,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x14(%rbp),%eax
  add    $0x2,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  movss  D21(%rip),%xmm0
  mulss  %xmm1,%xmm0
  cvttss2si %xmm0,%eax
  mov    %eax,-0x18(%rbp)
  cmpl   $0xff,-0x20(%rbp)
  jle    L81
  movl   $0xff,-0x20(%rbp)
L81:
  cmpl   $0x0,-0x20(%rbp)
  jns    L82
  movl   $0x0,-0x20(%rbp)
L82:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    -0x20(%rbp),%edx
  mov    %dl,(%rax)
  cmpl   $0xff,-0x1c(%rbp)
  jle    L93
  movl   $0xff,-0x1c(%rbp)
L93:
  cmpl   $0x0,-0x1c(%rbp)
  jns    L28
  movl   $0x0,-0x1c(%rbp)
L28:
  mov    -0x14(%rbp),%eax
  add    $0x1,%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    -0x1c(%rbp),%edx
  mov    %dl,(%rax)
  cmpl   $0xff,-0x18(%rbp)
  jle    L1
  movl   $0xff,-0x18(%rbp)
L1:
  cmpl   $0x0,-0x18(%rbp)
  jns    L47
  movl   $0x0,-0x18(%rbp)
L47:
  mov    -0x14(%rbp),%eax
  add    $0x2,%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    -0x18(%rbp),%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x28(%rbp)
L68:
  mov    -0x28(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L8
  addl   $0x1,-0x24(%rbp)
L55:
  mov    -0x24(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jl     L41
  mov    -0x8(%rbp),%rax
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D21
type: byte[4]

tool: {"D21": [0x00,0x00,0x7f,0x43]}

assistant: ```c
unsigned char *image_rgb24_from_rgb96f(signed int xres, signed int yres, float *fimg) {
  unsigned char *img;
  signed int x;
  signed int y;
  signed int R;
  signed int G;
  signed int B;
  void *return_value_malloc$1;
  return_value_malloc$1 = malloc((unsigned long int)(xres * yres * 3));
  img = (unsigned char *)return_value_malloc$1;
  y = 0;
  while (!(y >= yres)) {
    x = 0;
    while (!(x >= xres)) {
      signed int addr = (xres * y + x) * 3;
      R = (signed int)(fimg[(signed long int)addr] * 255.000000f);
      G = (signed int)(fimg[(signed long int)(addr + 1)] * 255.000000f);
      B = (signed int)(fimg[(signed long int)(addr + 2)] * 255.000000f);
      if (R > 255)
        R = 255;
      if (R < 0)
        R = 0;
      img[(signed long int)addr] = (unsigned char)R;
      if (G > 255)
        G = 255;
      if (G < 0)
        G = 0;
      img[(signed long int)(addr + 1)] = (unsigned char)G;
      if (B > 255)
        B = 255;
      if (B < 0)
        B = 0;
      img[(signed long int)(addr + 2)] = (unsigned char)B;
      x = x + 1;
    }
    y = y + 1;
  }
  return img;
}
```