user: 这段汇编代码用C语言表示是什么样的？

```asm
<scale_image_box>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  mov    %edx,-0x50(%rbp)
  mov    %rcx,-0x58(%rbp)
  mov    %r8d,-0x5c(%rbp)
  mov    %r9d,-0x60(%rbp)
  movss  %xmm0,-0x64(%rbp)
  mov    -0x4c(%rbp),%eax
  imul   0x10(%rbp),%eax
  mov    %eax,-0x24(%rbp)
  cmpl   $0x0,0x18(%rbp)
  je     L155
  movss  D6(%rip),%xmm0
  divss  -0x64(%rbp),%xmm0
  movss  %xmm0,-0x1c(%rbp)
  movl   $0x0,-0x34(%rbp)
  jmp    L130
L129:
  mov    -0x34(%rbp),%eax
  imul   -0x60(%rbp),%eax
  mov    %eax,%edx
  mov    -0x60(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  add    %edx,%eax
  cltd
  idivl  -0x50(%rbp)
  sub    $0x1,%eax
  mov    %eax,-0x28(%rbp)
  cmpl   $0x0,-0x28(%rbp)
  jns    L169
  movl   $0x0,-0x28(%rbp)
L169:
  movl   $0x0,-0x38(%rbp)
  jmp    L72
L166:
  mov    -0x38(%rbp),%eax
  imul   -0x5c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x5c(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  add    %edx,%eax
  cltd
  idivl  -0x4c(%rbp)
  sub    $0x1,%eax
  mov    %eax,-0x2c(%rbp)
  cmpl   $0x0,-0x2c(%rbp)
  jns    L96
  movl   $0x0,-0x2c(%rbp)
L96:
  mov    -0x28(%rbp),%eax
  imul   -0x5c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  imul   0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x18(%rbp)
  movl   $0x0,-0x30(%rbp)
  jmp    L2
L3:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    -0x64(%rbp),%edx
  movd   %edx,%xmm0
  mov    %eax,%edi
  call   <gamma_correct@plt>
  mov    %eax,%ebx
  mov    0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    -0x64(%rbp),%edx
  movd   %edx,%xmm0
  mov    %eax,%edi
  call   <gamma_correct@plt>
  add    %eax,%ebx
  mov    -0x5c(%rbp),%eax
  imul   0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    -0x64(%rbp),%edx
  movd   %edx,%xmm0
  mov    %eax,%edi
  call   <gamma_correct@plt>
  add    %eax,%ebx
  mov    -0x5c(%rbp),%eax
  add    $0x1,%eax
  imul   0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    -0x64(%rbp),%edx
  movd   %edx,%xmm0
  mov    %eax,%edi
  call   <gamma_correct@plt>
  add    %ebx,%eax
  sar    $0x2,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x1c(%rbp),%edx
  mov    -0x20(%rbp),%eax
  movd   %edx,%xmm0
  mov    %eax,%edi
  call   <gamma_correct@plt>
  mov    %eax,%edx
  mov    -0x34(%rbp),%eax
  imul   -0x24(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x38(%rbp),%eax
  imul   0x10(%rbp),%eax
  add    %eax,%ecx
  mov    -0x30(%rbp),%eax
  add    %ecx,%eax
  movslq %eax,%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  addq   $0x1,-0x18(%rbp)
  addl   $0x1,-0x30(%rbp)
L2:
  mov    -0x30(%rbp),%eax
  cmp    0x10(%rbp),%eax
  jl     L3
  addl   $0x1,-0x38(%rbp)
L72:
  mov    -0x38(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L166
  addl   $0x1,-0x34(%rbp)
L130:
  mov    -0x34(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jl     L129
  jmp    L161
L155:
  movl   $0x0,-0x34(%rbp)
  jmp    L12
L1:
  mov    -0x34(%rbp),%eax
  imul   -0x60(%rbp),%eax
  mov    %eax,%edx
  mov    -0x60(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  add    %edx,%eax
  cltd
  idivl  -0x50(%rbp)
  sub    $0x1,%eax
  mov    %eax,-0x28(%rbp)
  cmpl   $0x0,-0x28(%rbp)
  jns    L54
  movl   $0x0,-0x28(%rbp)
L54:
  movl   $0x0,-0x38(%rbp)
  jmp    L117
L152:
  mov    -0x38(%rbp),%eax
  imul   -0x5c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x5c(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  add    %edx,%eax
  cltd
  idivl  -0x4c(%rbp)
  sub    $0x1,%eax
  mov    %eax,-0x2c(%rbp)
  cmpl   $0x0,-0x2c(%rbp)
  jns    L79
  movl   $0x0,-0x2c(%rbp)
L79:
  mov    -0x28(%rbp),%eax
  imul   -0x5c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  imul   0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x18(%rbp)
  movl   $0x0,-0x30(%rbp)
  jmp    L140
L31:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    0x10(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x5c(%rbp),%eax
  imul   0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,%ecx
  mov    -0x5c(%rbp),%eax
  add    $0x1,%eax
  imul   0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %ecx,%eax
  sar    $0x2,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x34(%rbp),%eax
  imul   -0x24(%rbp),%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%eax
  imul   0x10(%rbp),%eax
  add    %eax,%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    -0x20(%rbp),%edx
  mov    %dl,(%rax)
  addq   $0x1,-0x18(%rbp)
  addl   $0x1,-0x30(%rbp)
L140:
  mov    -0x30(%rbp),%eax
  cmp    0x10(%rbp),%eax
  jl     L31
  addl   $0x1,-0x38(%rbp)
L117:
  mov    -0x38(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L152
  addl   $0x1,-0x34(%rbp)
L12:
  mov    -0x34(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jl     L1
L161:
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D6
type_infered: byte[4]

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

assistant: ```c
void scale_image_box(unsigned char *dst, int dw, int dh, unsigned char *src, int sw, int sh, int bpp, int gc, float gamma) {
  int x, y, n, ix, iy, v;
  int dstride = dw * bpp;
  unsigned char *s;
  float invgamma;
  if (gc) {
    invgamma = 1.0f / gamma;
    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;
        s = src + (iy * sw + ix) * bpp;
        for (n = 0; n < bpp; ++n) {
          v = (gamma_correct(s[0], gamma) + gamma_correct(s[bpp], gamma) + gamma_correct(s[sw * bpp], gamma) + gamma_correct(s[(sw + 1) * bpp], gamma)) >> 2;
          dst[(y * dstride) + (x * bpp) + n] = gamma_correct(v, invgamma);
          ++s;
        }
      }
    }
  } else {
    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;
        s = src + (iy * sw + ix) * bpp;
        for (n = 0; n < bpp; ++n) {
          v = (s[0] + s[bpp] + s[sw * bpp] + s[(sw + 1) * bpp]) >> 2;
          dst[(y * dstride) + (x * bpp) + n] = v;
          ++s;
        }
      }
    }
  }
}
```