user: 下面的汇编指令对应的C源代码是什么:

```asm
<image_rgb48be_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
  add    %eax,%eax
  cltq
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x28(%rbp)
  jmp    L92
L23:
  movl   $0x0,-0x2c(%rbp)
  jmp    L51
L39:
  mov    -0x34(%rbp),%eax
  imul   -0x28(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  add    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x18(%rbp),%eax
  add    %eax,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  movss  D25(%rip),%xmm0
  mulss  %xmm1,%xmm0
  cvttss2si %xmm0,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x18(%rbp),%eax
  add    $0x1,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  movss  D25(%rip),%xmm0
  mulss  %xmm1,%xmm0
  cvttss2si %xmm0,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x18(%rbp),%eax
  add    $0x2,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  movss  D25(%rip),%xmm0
  mulss  %xmm1,%xmm0
  cvttss2si %xmm0,%eax
  mov    %eax,-0x1c(%rbp)
  cmpl   $0xffff,-0x24(%rbp)
  jle    L20
  movl   $0xffff,-0x24(%rbp)
L20:
  cmpl   $0x0,-0x24(%rbp)
  jns    L9
  movl   $0x0,-0x24(%rbp)
L9:
  mov    -0x24(%rbp),%eax
  sar    $0x8,%eax
  mov    %eax,%ecx
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x14(%rbp),%eax
  add    $0x1,%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    -0x24(%rbp),%edx
  mov    %dl,(%rax)
  cmpl   $0xffff,-0x20(%rbp)
  jle    L71
  movl   $0xffff,-0x20(%rbp)
L71:
  cmpl   $0x0,-0x20(%rbp)
  jns    L59
  movl   $0x0,-0x20(%rbp)
L59:
  mov    -0x20(%rbp),%eax
  sar    $0x8,%eax
  mov    %eax,%ecx
  mov    -0x14(%rbp),%eax
  add    $0x2,%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x14(%rbp),%eax
  add    $0x3,%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    -0x20(%rbp),%edx
  mov    %dl,(%rax)
  cmpl   $0xffff,-0x1c(%rbp)
  jle    L95
  movl   $0xffff,-0x1c(%rbp)
L95:
  cmpl   $0x0,-0x1c(%rbp)
  jns    L49
  movl   $0x0,-0x1c(%rbp)
L49:
  mov    -0x1c(%rbp),%eax
  sar    $0x8,%eax
  mov    %eax,%ecx
  mov    -0x14(%rbp),%eax
  add    $0x4,%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x14(%rbp),%eax
  add    $0x5,%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    -0x1c(%rbp),%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x2c(%rbp)
L51:
  mov    -0x2c(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L39
  addl   $0x1,-0x28(%rbp)
L92:
  mov    -0x28(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jl     L23
  mov    -0x8(%rbp),%rax
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D25
data_type: byte[4]

tool: {"D25": [0x00,0xff,0x7f,0x47]}

assistant: ```c
unsigned char *image_rgb48be_from_rgb96f(signed int xres, signed int yres, float *fimg) {
  signed int x;
  signed int y;
  signed int R;
  signed int G;
  signed int B;
  unsigned char *img;
  void *return_value_malloc$1;
  return_value_malloc$1 = malloc((unsigned long int)(xres * yres * 6));
  img = (unsigned char *)return_value_malloc$1;
  y = 0;
  while (!(y >= yres)) {
    x = 0;
    while (!(x >= xres)) {
      signed int faddr = (xres * y + x) * 3;
      signed int iaddr = faddr * 2;
      R = (signed int)(fimg[(signed long int)faddr] * 65535.000000f);
      G = (signed int)(fimg[(signed long int)(faddr + 1)] * 65535.000000f);
      B = (signed int)(fimg[(signed long int)(faddr + 2)] * 65535.000000f);
      if (R > 65535)
        R = 65535;
      if (R < 0)
        R = 0;
      img[(signed long int)iaddr] = (unsigned char)(R >> 8 & 255);
      img[(signed long int)(iaddr + 1)] = (unsigned char)(R & 255);
      if (G > 65535)
        G = 65535;
      if (G < 0)
        G = 0;
      img[(signed long int)(iaddr + 2)] = (unsigned char)(G >> 8 & 255);
      img[(signed long int)(iaddr + 3)] = (unsigned char)(G & 255);
      if (B > 65535)
        B = 65535;
      if (B < 0)
        B = 0;
      img[(signed long int)(iaddr + 4)] = (unsigned char)(B >> 8 & 255);
      img[(signed long int)(iaddr + 5)] = (unsigned char)(B & 255);
      x = x + 1;
    }
    y = y + 1;
  }
  return img;
}
```