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

```asm
<scale_image_bilinear>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,0x38(%rsp)
  mov    %esi,0x24(%rsp)
  mov    %edx,0x4c(%rsp)
  mov    %rcx,0x28(%rsp)
  mov    %r8d,0x58(%rsp)
  movss  %xmm0,0x4(%rsp)
  imul   0xb0(%rsp),%esi
  mov    %esi,0x54(%rsp)
  cmpl   $0x0,0xb8(%rsp)
  jne    L135
  test   %edx,%edx
  jle    L46
  mov    0x58(%rsp),%ecx
  lea    0x1(%rcx),%eax
  imul   0xb0(%rsp),%eax
  cltq
  mov    %rax,0x8(%rsp)
  mov    %ecx,%eax
  imul   0xb0(%rsp),%eax
  movslq %eax,%rbp
  sub    $0x1,%r9d
  shl    $0x8,%r9d
  mov    %r9d,0x50(%rsp)
  lea    -0x1(%rcx),%eax
  shl    $0x8,%eax
  mov    %eax,0x34(%rsp)
  mov    0xb8(%rsp),%eax
  mov    %eax,0x40(%rsp)
  movl   $0x0,0x44(%rsp)
  movl   $0x0,0x48(%rsp)
  jmp    L42
L135:
  movss  D5(%rip),%xmm0
  divss  0x4(%rsp),%xmm0
  movss  %xmm0,0x20(%rsp)
  cmpl   $0x0,0x4c(%rsp)
  jle    L46
  mov    0x58(%rsp),%ecx
  lea    0x1(%rcx),%eax
  imul   0xb0(%rsp),%eax
  cltq
  mov    %rax,0x68(%rsp)
  mov    %ecx,%eax
  imul   0xb0(%rsp),%eax
  cltq
  mov    %rax,0x18(%rsp)
  sub    $0x1,%r9d
  shl    $0x8,%r9d
  mov    %r9d,0x64(%rsp)
  lea    -0x1(%rcx),%eax
  shl    $0x8,%eax
  mov    %eax,0x48(%rsp)
  movl   $0x0,0x5c(%rsp)
  movl   $0x0,0x60(%rsp)
  movl   $0x0,0x50(%rsp)
  jmp    L132
L162:
  movl   $0x0,0x14(%rsp)
  mov    $0x0,%eax
  jmp    L64
L99:
  mov    $0x0,%r14d
  mov    $0x0,%ebx
L208:
  add    0x44(%rsp),%ebx
  imul   0xb0(%rsp),%ebx
  movslq %ebx,%rbx
  add    0x28(%rsp),%rbx
  cmpl   $0x0,0xb0(%rsp)
  jle    L50
  movslq 0x34(%rsp),%r13
  add    0x38(%rsp),%r13
  mov    0xb0(%rsp),%eax
  add    %rbx,%rax
  mov    %rax,0x8(%rsp)
  movslq 0xb0(%rsp),%r15
L33:
  movzbl (%rbx,%r15,1),%edi
  movss  0x4(%rsp),%xmm0
  call   <gamma_correct@plt>
  mov    %eax,%ebp
  movzbl (%rbx),%edi
  movss  0x4(%rsp),%xmm0
  call   <gamma_correct@plt>
  mov    %eax,%edi
  mov    %r14d,%edx
  mov    %ebp,%esi
  call   <blerp@plt>
  mov    %eax,%ebp
  movzbl (%rbx,%r12,1),%edi
  movss  0x4(%rsp),%xmm0
  call   <gamma_correct@plt>
  mov    %eax,0x10(%rsp)
  mov    0x18(%rsp),%rcx
  movzbl (%rbx,%rcx,1),%edi
  movss  0x4(%rsp),%xmm0
  call   <gamma_correct@plt>
  mov    %eax,%edi
  mov    %r14d,%edx
  mov    0x10(%rsp),%esi
  call   <blerp@plt>
  mov    %eax,%esi
  mov    0x14(%rsp),%edx
  mov    %ebp,%edi
  call   <blerp@plt>
  mov    %eax,%edi
  movss  0x20(%rsp),%xmm0
  call   <gamma_correct@plt>
  mov    %al,0x0(%r13)
  add    $0x1,%rbx
  add    $0x1,%r13
  cmp    0x8(%rsp),%rbx
  jne    L33
L50:
  addl   $0x1,0x30(%rsp)
  mov    0x30(%rsp),%eax
  mov    0x48(%rsp),%edx
  add    %edx,0x40(%rsp)
  mov    0xb0(%rsp),%edx
  add    %edx,0x34(%rsp)
  cmp    %eax,0x24(%rsp)
  je     L212
L218:
  mov    0x24(%rsp),%eax
  cmp    $0x1,%eax
  jle    L99
  lea    -0x1(%rax),%ecx
  mov    0x40(%rsp),%eax
  cltd
  idiv   %ecx
  mov    %eax,%ebx
  cmp    0x30(%rsp),%ecx
  sete   %al
  movzbl %al,%eax
  sub    %eax,%ebx
  movzbl %bl,%r14d
  sar    $0x8,%ebx
  jmp    L208
L212:
  addl   $0x1,0x50(%rsp)
  mov    0x50(%rsp),%eax
  mov    0x64(%rsp),%edx
  add    %edx,0x60(%rsp)
  mov    0x54(%rsp),%edx
  add    %edx,0x5c(%rsp)
  cmp    %eax,0x4c(%rsp)
  je     L46
L132:
  mov    0x4c(%rsp),%eax
  cmp    $0x1,%eax
  jle    L162
  lea    -0x1(%rax),%ecx
  mov    0x60(%rsp),%eax
  cltd
  idiv   %ecx
  cmp    0x50(%rsp),%ecx
  sete   %dl
  movzbl %dl,%edx
  sub    %edx,%eax
  movzbl %al,%ecx
  mov    %ecx,0x14(%rsp)
  sar    $0x8,%eax
L64:
  cmpl   $0x0,0x24(%rsp)
  jle    L212
  imul   0x58(%rsp),%eax
  mov    %eax,0x44(%rsp)
  mov    0x5c(%rsp),%eax
  mov    %eax,0x34(%rsp)
  movl   $0x0,0x40(%rsp)
  movl   $0x0,0x30(%rsp)
  mov    0x68(%rsp),%r12
  jmp    L218
L1:
  mov    0xb8(%rsp),%eax
  mov    %eax,0x10(%rsp)
  jmp    L158
L203:
  mov    0xb8(%rsp),%r13d
  mov    %r13d,%ebx
L182:
  add    0x30(%rsp),%ebx
  imul   0xb0(%rsp),%ebx
  movslq %ebx,%rbx
  add    0x28(%rsp),%rbx
  cmpl   $0x0,0xb0(%rsp)
  jle    L148
  movslq 0x18(%rsp),%r12
  add    0x38(%rsp),%r12
  mov    0xb0(%rsp),%r14d
  add    %rbx,%r14
  movslq 0xb0(%rsp),%r15
L30:
  movzbl (%rbx,%r15,1),%esi
  movzbl (%rbx),%edi
  mov    %r13d,%edx
  call   <blerp@plt>
  mov    %eax,0x4(%rsp)
  mov    0x8(%rsp),%rcx
  movzbl (%rbx,%rcx,1),%esi
  movzbl (%rbx,%rbp,1),%edi
  mov    %r13d,%edx
  call   <blerp@plt>
  mov    %eax,%esi
  mov    0x10(%rsp),%edx
  mov    0x4(%rsp),%edi
  call   <blerp@plt>
  mov    $0xff,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  test   %eax,%eax
  mov    $0x0,%edx
  cmovs  %edx,%eax
  mov    %al,(%r12)
  add    $0x1,%rbx
  add    $0x1,%r12
  cmp    %r14,%rbx
  jne    L30
L148:
  addl   $0x1,0x14(%rsp)
  mov    0x14(%rsp),%eax
  mov    0x34(%rsp),%edx
  add    %edx,0x20(%rsp)
  mov    0xb0(%rsp),%edx
  add    %edx,0x18(%rsp)
  cmp    %eax,0x24(%rsp)
  je     L111
L184:
  mov    0x24(%rsp),%eax
  cmp    $0x1,%eax
  jle    L203
  lea    -0x1(%rax),%ecx
  mov    0x20(%rsp),%eax
  cltd
  idiv   %ecx
  mov    %eax,%ebx
  cmp    0x14(%rsp),%ecx
  sete   %al
  movzbl %al,%eax
  sub    %eax,%ebx
  movzbl %bl,%r13d
  sar    $0x8,%ebx
  jmp    L182
L111:
  addl   $0x1,0x40(%rsp)
  mov    0x40(%rsp),%eax
  mov    0x50(%rsp),%edx
  add    %edx,0x48(%rsp)
  mov    0x54(%rsp),%edx
  add    %edx,0x44(%rsp)
  cmp    %eax,0x4c(%rsp)
  je     L46
L42:
  mov    0x4c(%rsp),%eax
  cmp    $0x1,%eax
  jle    L1
  lea    -0x1(%rax),%ecx
  mov    0x48(%rsp),%eax
  cltd
  idiv   %ecx
  cmp    0x40(%rsp),%ecx
  sete   %dl
  movzbl %dl,%edx
  sub    %edx,%eax
  movzbl %al,%ecx
  mov    %ecx,0x10(%rsp)
  sar    $0x8,%eax
L158:
  cmpl   $0x0,0x24(%rsp)
  jle    L111
  imul   0x58(%rsp),%eax
  mov    %eax,0x30(%rsp)
  mov    0x44(%rsp),%eax
  mov    %eax,0x18(%rsp)
  mov    0xb8(%rsp),%eax
  mov    %eax,0x14(%rsp)
  movl   $0x0,0x20(%rsp)
  jmp    L184
L46:
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: read_data
arguments: data_label: D5
data_type: f32

tool: D5: 1

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