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

```asm
<RGBE_to_RGBdivA>:
  endbr64
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  test   %esi,%esi
  setle  %al
  test   %edx,%edx
  setle  %dl
  or     %dl,%al
  jne    L66
  mov    %rdi,%rbx
  test   %rdi,%rdi
  je     L66
  movss  D0(%rip),%xmm7
  mov    %esi,%ebp
  movss  %xmm7,0xc(%rsp)
  test   %ecx,%ecx
  jne    L56
L10:
  imul   %r12d,%ebp
  movslq %ebp,%rbp
  lea    (%rbx,%rbp,4),%rbp
  jmp    L76
  nopw   0x0(%rax,%rax,1)
L59:
  mulss  D28(%rip),%xmm2
  mov    $0xffffffff,%eax
  mulss  D28(%rip),%xmm1
  mulss  D28(%rip),%xmm0
L53:
  addss  %xmm4,%xmm2
  mov    %al,0x3(%rbx)
  mov    $0xff,%edx
  addss  %xmm4,%xmm1
  addss  %xmm4,%xmm0
  cvttss2si %xmm2,%eax
  cmp    %edx,%eax
  cmovg  %edx,%eax
  mov    %al,(%rbx)
  cvttss2si %xmm1,%eax
  cmp    %edx,%eax
  cmovg  %edx,%eax
  mov    %al,0x1(%rbx)
  cvttss2si %xmm0,%eax
  cmp    %edx,%eax
  cmovg  %edx,%eax
  add    $0x4,%rbx
  mov    %al,-0x2(%rbx)
  cmp    %rbp,%rbx
  je     L17
L76:
  movzbl 0x3(%rbx),%edi
  movss  D11(%rip),%xmm0
  add    $0xffffff80,%edi
  call   <ldexp@plt>
  movzbl (%rbx),%eax
  pxor   %xmm2,%xmm2
  pxor   %xmm1,%xmm1
  movss  0xc(%rsp),%xmm3
  pxor   %xmm5,%xmm5
  movss  D30(%rip),%xmm4
  cvtsi2ss %eax,%xmm2
  movzbl 0x1(%rbx),%eax
  mulss  %xmm0,%xmm3
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm1
  movzbl 0x2(%rbx),%eax
  cvtsi2ss %eax,%xmm0
  mulss  %xmm3,%xmm2
  mulss  %xmm3,%xmm1
  mulss  %xmm3,%xmm0
  movaps %xmm2,%xmm3
  maxss  %xmm1,%xmm3
  movaps %xmm0,%xmm6
  maxss  %xmm3,%xmm6
  ucomiss %xmm5,%xmm6
  movaps %xmm6,%xmm3
  jp     L80
  mov    $0x1,%eax
  je     L53
L80:
  movss  D28(%rip),%xmm5
  divss  %xmm3,%xmm5
  pxor   %xmm3,%xmm3
  cvttss2si %xmm5,%eax
  cvtsi2ss %eax,%xmm3
  cvttss2si %xmm3,%eax
  cmp    $0xff,%eax
  jg     L59
  test   %eax,%eax
  mov    $0x1,%edx
  pxor   %xmm3,%xmm3
  cmovg  %eax,%edx
  cvtsi2ss %edx,%xmm3
  mov    %edx,%eax
  mulss  %xmm3,%xmm2
  mulss  %xmm3,%xmm1
  mulss  %xmm3,%xmm0
  jmp    L53
  nop
L66:
  add    $0x10,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax,%rax,1)
L17:
  add    $0x10,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  xchg   %ax,%ax
L56:
  mov    %r12d,%edx
  call   <find_max_RGBE@plt>
  movss  D28(%rip),%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,0xc(%rsp)
  jmp    L10
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D0
type_guessed: byte[4]
name: extract_symbolic_data
arguments: data_label: D28
type_guessed: byte[4]
name: extract_symbolic_data
arguments: data_label: D11
type_guessed: byte[4]
name: extract_symbolic_data
arguments: data_label: D30
type_guessed: byte[4]

tool: {"D0": [0x00,0x00,0x80,0x3f]}

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

tool: {"D11": [0x81,0x80,0x80,0x3b]}

tool: {"D30": [0x00,0x00,0x00,0x3f]}

assistant: ```c
int RGBE_to_RGBdivA(unsigned char *image, int width, int height, int rescale_to_max) {
  int i, iv;
  unsigned char *img = image;
  float scale = 1.0f;
  if ((!image) || (width < 1) || (height < 1)) {
    return 0;
  }
  if (rescale_to_max) {
    scale = 255.0f / find_max_RGBE(image, width, height);
  }
  for (i = width * height; i > 0; --i) {
    float r, g, b, e, m;
    e = scale * ldexp(1.0f / 255.0f, (int)(img[3]) - 128);
    r = e * img[0];
    g = e * img[1];
    b = e * img[2];
    m = (r > g) ? r : g;
    m = (b > m) ? b : m;
    iv = (int)((m != 0.0f) ? (int)(255.0f / m) : 1.0f);
    iv = (iv < 1) ? 1 : iv;
    img[3] = (unsigned char)((iv > 255) ? 255 : iv);
    iv = (int)(img[3] * r + 0.5f);
    img[0] = (unsigned char)((iv > 255) ? 255 : iv);
    iv = (int)(img[3] * g + 0.5f);
    img[1] = (unsigned char)((iv > 255) ? 255 : iv);
    iv = (int)(img[3] * b + 0.5f);
    img[2] = (unsigned char)((iv > 255) ? 255 : iv);
    img += 4;
  }
  return 1;
}
```