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

```asm
<scale_volume_image_box>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %esi,-0x5c(%rbp)
  mov    %edx,-0x60(%rbp)
  mov    %ecx,-0x64(%rbp)
  mov    %r8,-0x70(%rbp)
  mov    %r9d,-0x68(%rbp)
  movss  %xmm0,-0x74(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  cmpl   $0x0,0x28(%rbp)
  je     L187
  movss  D6(%rip),%xmm0
  divss  -0x74(%rbp),%xmm0
  movss  %xmm0,-0x2c(%rbp)
  movl   $0x0,-0x40(%rbp)
  jmp    L4
L13:
  mov    -0x40(%rbp),%eax
  imul   0x18(%rbp),%eax
  mov    %eax,%edx
  mov    0x18(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  add    %edx,%eax
  cltd
  idivl  -0x64(%rbp)
  sub    $0x1,%eax
  mov    %eax,-0x34(%rbp)
  cmpl   $0x0,-0x34(%rbp)
  jns    L61
  movl   $0x0,-0x34(%rbp)
L61:
  movl   $0x0,-0x44(%rbp)
  jmp    L136
L16:
  mov    -0x44(%rbp),%eax
  imul   0x10(%rbp),%eax
  mov    %eax,%edx
  mov    0x10(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  add    %edx,%eax
  cltd
  idivl  -0x60(%rbp)
  sub    $0x1,%eax
  mov    %eax,-0x38(%rbp)
  cmpl   $0x0,-0x38(%rbp)
  jns    L188
  movl   $0x0,-0x38(%rbp)
L188:
  movl   $0x0,-0x48(%rbp)
  jmp    L174
L78:
  mov    -0x48(%rbp),%eax
  imul   -0x68(%rbp),%eax
  mov    %eax,%edx
  mov    -0x68(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  add    %edx,%eax
  cltd
  idivl  -0x5c(%rbp)
  sub    $0x1,%eax
  mov    %eax,-0x3c(%rbp)
  cmpl   $0x0,-0x3c(%rbp)
  jns    L112
  movl   $0x0,-0x3c(%rbp)
L112:
  mov    -0x68(%rbp),%eax
  imul   0x10(%rbp),%eax
  imul   -0x34(%rbp),%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%eax
  imul   -0x68(%rbp),%eax
  add    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  imul   0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x64(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x34(%rbp)
  jge    L263
  mov    -0x34(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x68(%rbp),%eax
  imul   0x10(%rbp),%eax
  imul   %eax,%edx
  mov    -0x38(%rbp),%eax
  imul   -0x68(%rbp),%eax
  add    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  imul   0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x20(%rbp)
  jmp    L241
L263:
  mov    -0x70(%rbp),%rax
  mov    %rax,-0x20(%rbp)
L241:
  movl   $0x0,-0x4c(%rbp)
  jmp    L228
L153:
  pxor   %xmm1,%xmm1
  cvtss2sd -0x74(%rbp),%xmm1
  movq   %xmm1,%rdx
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  movq   %rdx,%xmm0
  mov    %eax,%edi
  mov    $0x1,%eax
  call   <gamma_correct@plt>
  mov    %eax,%ebx
  pxor   %xmm2,%xmm2
  cvtss2sd -0x74(%rbp),%xmm2
  movq   %xmm2,%rdx
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  movq   %rdx,%xmm0
  mov    %eax,%edi
  mov    $0x1,%eax
  call   <gamma_correct@plt>
  add    %eax,%ebx
  pxor   %xmm3,%xmm3
  cvtss2sd -0x74(%rbp),%xmm3
  movq   %xmm3,%rdx
  mov    0x20(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  movq   %rdx,%xmm0
  mov    %eax,%edi
  mov    $0x1,%eax
  call   <gamma_correct@plt>
  add    %eax,%ebx
  pxor   %xmm4,%xmm4
  cvtss2sd -0x74(%rbp),%xmm4
  movq   %xmm4,%rdx
  mov    0x20(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  movq   %rdx,%xmm0
  mov    %eax,%edi
  mov    $0x1,%eax
  call   <gamma_correct@plt>
  add    %eax,%ebx
  pxor   %xmm5,%xmm5
  cvtss2sd -0x74(%rbp),%xmm5
  movq   %xmm5,%rdx
  mov    -0x68(%rbp),%eax
  imul   0x20(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  movq   %rdx,%xmm0
  mov    %eax,%edi
  mov    $0x1,%eax
  call   <gamma_correct@plt>
  add    %eax,%ebx
  pxor   %xmm6,%xmm6
  cvtss2sd -0x74(%rbp),%xmm6
  movq   %xmm6,%rdx
  mov    -0x68(%rbp),%eax
  imul   0x20(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  movq   %rdx,%xmm0
  mov    %eax,%edi
  mov    $0x1,%eax
  call   <gamma_correct@plt>
  add    %eax,%ebx
  pxor   %xmm7,%xmm7
  cvtss2sd -0x74(%rbp),%xmm7
  movq   %xmm7,%rdx
  mov    -0x68(%rbp),%eax
  add    $0x1,%eax
  imul   0x20(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  movq   %rdx,%xmm0
  mov    %eax,%edi
  mov    $0x1,%eax
  call   <gamma_correct@plt>
  add    %eax,%ebx
  pxor   %xmm1,%xmm1
  cvtss2sd -0x74(%rbp),%xmm1
  movq   %xmm1,%rdx
  mov    -0x68(%rbp),%eax
  add    $0x1,%eax
  imul   0x20(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  movq   %rdx,%xmm0
  mov    %eax,%edi
  mov    $0x1,%eax
  call   <gamma_correct@plt>
  add    %ebx,%eax
  sar    $0x3,%eax
  mov    %eax,-0x30(%rbp)
  pxor   %xmm2,%xmm2
  cvtss2sd -0x2c(%rbp),%xmm2
  movq   %xmm2,%rdx
  mov    -0x30(%rbp),%eax
  movq   %rdx,%xmm0
  mov    %eax,%edi
  mov    $0x1,%eax
  call   <gamma_correct@plt>
  mov    %eax,%ecx
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addq   $0x1,-0x28(%rbp)
  addq   $0x1,-0x20(%rbp)
  addl   $0x1,-0x4c(%rbp)
L228:
  mov    -0x4c(%rbp),%eax
  cmp    0x20(%rbp),%eax
  jl     L153
  addl   $0x1,-0x48(%rbp)
L174:
  mov    -0x48(%rbp),%eax
  cmp    -0x5c(%rbp),%eax
  jl     L78
  addl   $0x1,-0x44(%rbp)
L136:
  mov    -0x44(%rbp),%eax
  cmp    -0x60(%rbp),%eax
  jl     L16
  addl   $0x1,-0x40(%rbp)
L4:
  mov    -0x40(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L13
  jmp    L167
L187:
  movl   $0x0,-0x40(%rbp)
  jmp    L31
L184:
  mov    -0x40(%rbp),%eax
  imul   0x18(%rbp),%eax
  mov    %eax,%edx
  mov    0x18(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  add    %edx,%eax
  cltd
  idivl  -0x64(%rbp)
  sub    $0x1,%eax
  mov    %eax,-0x34(%rbp)
  cmpl   $0x0,-0x34(%rbp)
  jns    L181
  movl   $0x0,-0x34(%rbp)
L181:
  movl   $0x0,-0x44(%rbp)
  jmp    L165
L53:
  mov    -0x44(%rbp),%eax
  imul   0x10(%rbp),%eax
  mov    %eax,%edx
  mov    0x10(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  add    %edx,%eax
  cltd
  idivl  -0x60(%rbp)
  sub    $0x1,%eax
  mov    %eax,-0x38(%rbp)
  cmpl   $0x0,-0x38(%rbp)
  jns    L83
  movl   $0x0,-0x38(%rbp)
L83:
  movl   $0x0,-0x48(%rbp)
  jmp    L105
L202:
  mov    -0x48(%rbp),%eax
  imul   -0x68(%rbp),%eax
  mov    %eax,%edx
  mov    -0x68(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  add    %edx,%eax
  cltd
  idivl  -0x5c(%rbp)
  sub    $0x1,%eax
  mov    %eax,-0x3c(%rbp)
  cmpl   $0x0,-0x3c(%rbp)
  jns    L50
  movl   $0x0,-0x3c(%rbp)
L50:
  mov    -0x68(%rbp),%eax
  imul   0x10(%rbp),%eax
  imul   -0x34(%rbp),%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%eax
  imul   -0x68(%rbp),%eax
  add    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  imul   0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x64(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x34(%rbp)
  jge    L160
  mov    -0x34(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x68(%rbp),%eax
  imul   0x10(%rbp),%eax
  imul   %eax,%edx
  mov    -0x38(%rbp),%eax
  imul   -0x68(%rbp),%eax
  add    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  imul   0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x20(%rbp)
  jmp    L277
L160:
  mov    -0x70(%rbp),%rax
  mov    %rax,-0x20(%rbp)
L277:
  movl   $0x0,-0x4c(%rbp)
  jmp    L11
L103:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    0x20(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x68(%rbp),%eax
  imul   0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,%ecx
  mov    -0x68(%rbp),%eax
  add    $0x1,%eax
  imul   0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  lea    (%rcx,%rax,1),%esi
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    0x20(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x68(%rbp),%eax
  imul   0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,%ecx
  mov    -0x68(%rbp),%eax
  add    $0x1,%eax
  imul   0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %ecx,%eax
  add    %esi,%eax
  sar    $0x3,%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  mov    -0x30(%rbp),%edx
  mov    %dl,(%rax)
  addq   $0x1,-0x28(%rbp)
  addq   $0x1,-0x20(%rbp)
  addl   $0x1,-0x4c(%rbp)
L11:
  mov    -0x4c(%rbp),%eax
  cmp    0x20(%rbp),%eax
  jl     L103
  addl   $0x1,-0x48(%rbp)
L105:
  mov    -0x48(%rbp),%eax
  cmp    -0x5c(%rbp),%eax
  jl     L202
  addl   $0x1,-0x44(%rbp)
L165:
  mov    -0x44(%rbp),%eax
  cmp    -0x60(%rbp),%eax
  jl     L53
  addl   $0x1,-0x40(%rbp)
L31:
  mov    -0x40(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L184
L167:
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D6
type: f32

tool: D6: 1

assistant: ```c
void scale_volume_image_box(unsigned char *dst, int dw, int dh, int dd, unsigned char *src, int sw, int sh, int sd, int bpp, int gc, float gamma) {
  int n, x, y, z, v;
  int ix, iy, iz;
  unsigned char *s1, *s2, *d = dst;
  float invgamma;
  if (gc) {
    invgamma = 1.0 / gamma;
    for (z = 0; z < dd; ++z) {
      iz = ((z * sd + sd / 2) / dd) - 1;
      if (iz < 0)
        iz = 0;
      for (y = 0; y < dh; ++y) {
        iy = ((y * sh + sh / 2) / dh) - 1;
        if (iy < 0)
          iy = 0;
        for (x = 0; x < dw; ++x) {
          ix = ((x * sw + sw / 2) / dw) - 1;
          if (ix < 0)
            ix = 0;
          s1 = src + ((iz * (sw * sh)) + (iy * sw) + ix) * bpp;
          if (iz < dd - 1)
            s2 = src + (((iz + 1) * (sw * sh)) + (iy * sw) + ix) * bpp;
          else
            s2 = src;
          for (n = 0; n < bpp; ++n) {
            v = (gamma_correct(s1[0], gamma) + gamma_correct(s2[0], gamma) + gamma_correct(s1[bpp], gamma) + gamma_correct(s2[bpp], gamma) + gamma_correct(s1[sw * bpp], gamma) + gamma_correct(s2[sw * bpp], gamma) + gamma_correct(s1[(sw + 1) * bpp], gamma) + gamma_correct(s2[(sw + 1) * bpp], gamma)) >> 3;
            *d++ = gamma_correct(v, invgamma);
            ++s1;
            ++s2;
          }
        }
      }
    }
  } else {
    for (z = 0; z < dd; ++z) {
      iz = ((z * sd + sd / 2) / dd) - 1;
      if (iz < 0)
        iz = 0;
      for (y = 0; y < dh; ++y) {
        iy = ((y * sh + sh / 2) / dh) - 1;
        if (iy < 0)
          iy = 0;
        for (x = 0; x < dw; ++x) {
          ix = ((x * sw + sw / 2) / dw) - 1;
          if (ix < 0)
            ix = 0;
          s1 = src + ((iz * (sw * sh)) + (iy * sw) + ix) * bpp;
          if (iz < dd - 1)
            s2 = src + (((iz + 1) * (sw * sh)) + (iy * sw) + ix) * bpp;
          else
            s2 = src;
          for (n = 0; n < bpp; ++n) {
            v = ((s1[0] + s1[bpp] + s1[sw * bpp] + s1[(sw + 1) * bpp]) + (s2[0] + s2[bpp] + s2[sw * bpp] + s2[(sw + 1) * bpp])) >> 3;
            *d++ = v;
            ++s1;
            ++s2;
          }
        }
      }
    }
  }
}
```