user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<scale_image_bicubic>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x108,%rsp
  mov    %esi,0xc8(%rsp)
  imul   0x140(%rsp),%esi
  mov    0x148(%rsp),%r11d
  mov    %rdi,0xd0(%rsp)
  mov    %edx,0xe4(%rsp)
  mov    %rcx,0xc0(%rsp)
  mov    %r8d,0xf0(%rsp)
  mov    %esi,0xec(%rsp)
  movss  %xmm0,(%rsp)
  test   %r11d,%r11d
  jne    L302
  test   %edx,%edx
  jle    L124
  lea    0x3(%r8),%eax
  mov    %r8d,%esi
  sub    $0x1,%r9d
  movl   $0x0,0xb8(%rsp)
  imul   0x140(%rsp),%eax
  lea    (%rsi,%rsi,1),%edi
  shl    $0x7,%r9d
  movl   $0x0,0xd8(%rsp)
  mov    %r9d,0xdc(%rsp)
  movl   $0x0,0xcc(%rsp)
  movslq %eax,%rcx
  sub    0x140(%rsp),%eax
  mov    %rcx,0x10(%rsp)
  movslq %eax,%rcx
  sub    0x140(%rsp),%eax
  mov    %rcx,0x18(%rsp)
  movslq %eax,%rcx
  mov    %rcx,0x20(%rsp)
  mov    %eax,%ecx
  sub    0x140(%rsp),%ecx
  movslq %ecx,%rbx
  mov    %rbx,0x28(%rsp)
  mov    0x140(%rsp),%ebx
  lea    (%rbx,%rbx,1),%r8d
  mov    %r8d,%edx
  add    %ebx,%edx
  movslq %edx,%rbx
  lea    0x3(%rdi),%edx
  imul   0x140(%rsp),%edx
  mov    %rbx,0x60(%rsp)
  movslq %r8d,%rbx
  mov    %rbx,0x68(%rsp)
  mov    %esi,%ebx
  movslq %edx,%rsi
  sub    %r8d,%edx
  mov    %rsi,0x30(%rsp)
  lea    (%rax,%rax,1),%esi
  movslq %edx,%rdx
  movslq %esi,%r10
  add    %eax,%esi
  mov    %rdx,0x40(%rsp)
  lea    (%rcx,%rcx,1),%edx
  movslq %esi,%rax
  mov    %ebx,%esi
  movslq %edx,%r11
  add    %ecx,%edx
  mov    %rax,0x78(%rsp)
  lea    0x2(%rbx,%rdi,1),%eax
  imul   0x140(%rsp),%eax
  mov    %r10,0x38(%rsp)
  mov    %r11,0x48(%rsp)
  movslq %eax,%rbx
  sub    0x140(%rsp),%eax
  cltq
  mov    %rbx,0x80(%rsp)
  mov    %rax,0x88(%rsp)
  movslq %edx,%rax
  mov    %rax,0x90(%rsp)
  lea    -0x1(%rsi),%eax
  shl    $0x7,%eax
  mov    %eax,0xb0(%rsp)
  movslq 0x140(%rsp),%rax
  mov    %rax,0x70(%rsp)
  mov    0xe4(%rsp),%eax
  cmp    $0x1,%eax
  je     L299
L127:
  lea    -0x1(%rax),%esi
  mov    0xd8(%rsp),%eax
  mov    %esi,0x8(%rsp)
  cltd
  idiv   %esi
  mov    %eax,%r13d
  xor    %eax,%eax
  cmp    0xb8(%rsp),%esi
  mov    0xc8(%rsp),%esi
  sete   %al
  sub    %eax,%r13d
  mov    %r13d,%eax
  sar    $0x7,%r13d
  and    $0x7f,%eax
  mov    %eax,0xc(%rsp)
  lea    -0x1(%r13),%eax
  test   %esi,%esi
  jle    L126
L216:
  imul   0xf0(%rsp),%eax
  movl   $0x0,0x58(%rsp)
  movl   $0x0,0xa0(%rsp)
  mov    %eax,0xa8(%rsp)
  mov    0xcc(%rsp),%eax
  mov    %eax,0x98(%rsp)
  nopw   0x0(%rax,%rax,1)
L280:
  mov    0xc8(%rsp),%eax
  cmp    $0x1,%eax
  je     L91
  lea    -0x1(%rax),%ecx
  mov    0xa0(%rsp),%eax
  cltd
  idiv   %ecx
  mov    %eax,%ebx
  xor    %eax,%eax
  cmp    0x58(%rsp),%ecx
  sete   %al
  sub    %eax,%ebx
  mov    %ebx,%r12d
  sar    $0x7,%ebx
  and    $0x7f,%r12d
  sub    $0x1,%ebx
L61:
  add    0xa8(%rsp),%ebx
  imul   0x140(%rsp),%ebx
  mov    0x140(%rsp),%ecx
  movslq %ebx,%rbx
  add    0xc0(%rsp),%rbx
  test   %ecx,%ecx
  jle    L217
  mov    0x140(%rsp),%eax
  movslq 0x98(%rsp),%rbp
  add    0xd0(%rsp),%rbp
  sub    $0x1,%eax
  lea    0x1(%rbx,%rax,1),%rax
  mov    %rax,(%rsp)
  jmp    L173
  nopl   (%rax)
L153:
  mov    0xc(%rsp),%r8d
  mov    %eax,%ecx
L276:
  mov    %r9d,%edx
  mov    %r15d,%esi
  mov    %r14d,%edi
  call   <icerp@plt>
  mov    $0xff,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  xor    %edx,%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  add    $0x1,%rbx
  add    $0x1,%rbp
  mov    %al,-0x1(%rbp)
  cmp    (%rsp),%rbx
  je     L217
L173:
  mov    0x10(%rsp),%rax
  mov    %r12d,%r8d
  movzbl (%rbx,%rax,1),%ecx
  mov    0x18(%rsp),%rax
  movzbl (%rbx,%rax,1),%edx
  mov    0x20(%rsp),%rax
  movzbl (%rbx,%rax,1),%esi
  mov    0x28(%rsp),%rax
  movzbl (%rbx,%rax,1),%edi
  call   <icerp@plt>
  mov    %eax,%r15d
  mov    %eax,%r14d
  test   %r13d,%r13d
  jle    L317
  mov    0x60(%rsp),%rax
  movzbl (%rbx),%edi
  mov    %r12d,%r8d
  movzbl (%rbx,%rax,1),%ecx
  mov    0x68(%rsp),%rax
  movzbl (%rbx,%rax,1),%edx
  mov    0x70(%rsp),%rax
  movzbl (%rbx,%rax,1),%esi
  call   <icerp@plt>
  mov    %eax,%r14d
L317:
  mov    0x30(%rsp),%rax
  mov    %r12d,%r8d
  movzbl (%rbx,%rax,1),%ecx
  mov    0x38(%rsp),%rax
  movzbl (%rbx,%rax,1),%edx
  mov    0x40(%rsp),%rax
  movzbl (%rbx,%rax,1),%esi
  mov    0x48(%rsp),%rax
  movzbl (%rbx,%rax,1),%edi
  call   <icerp@plt>
  mov    %eax,%r9d
  cmp    %r13d,0x8(%rsp)
  jle    L153
  mov    %eax,0x50(%rsp)
  mov    0x78(%rsp),%rax
  mov    %r12d,%r8d
  movzbl (%rbx,%rax,1),%ecx
  mov    0x80(%rsp),%rax
  movzbl (%rbx,%rax,1),%edx
  mov    0x88(%rsp),%rax
  movzbl (%rbx,%rax,1),%esi
  mov    0x90(%rsp),%rax
  movzbl (%rbx,%rax,1),%edi
  call   <icerp@plt>
  mov    0xc(%rsp),%r8d
  mov    0x50(%rsp),%r9d
  mov    %eax,%ecx
  jmp    L276
L302:
  mov    0xe4(%rsp),%r10d
  movss  D0(%rip),%xmm0
  divss  (%rsp),%xmm0
  movss  %xmm0,0x70(%rsp)
  test   %r10d,%r10d
  jle    L124
  lea    0x3(%r8),%eax
  mov    %r8d,%esi
  sub    $0x1,%r9d
  movl   $0x0,0xf8(%rsp)
  imul   0x140(%rsp),%eax
  lea    (%rsi,%rsi,1),%edi
  shl    $0x7,%r9d
  movl   $0x0,0xf4(%rsp)
  mov    %r9d,0xfc(%rsp)
  movl   $0x0,0xe8(%rsp)
  movslq %eax,%rcx
  sub    0x140(%rsp),%eax
  mov    %rcx,0x30(%rsp)
  movslq %eax,%rcx
  sub    0x140(%rsp),%eax
  mov    %rcx,0x38(%rsp)
  movslq %eax,%rcx
  mov    %rcx,0x40(%rsp)
  mov    %eax,%ecx
  sub    0x140(%rsp),%ecx
  movslq %ecx,%rbx
  mov    %rbx,0x48(%rsp)
  mov    0x140(%rsp),%ebx
  lea    (%rbx,%rbx,1),%r8d
  mov    %r8d,%edx
  add    %ebx,%edx
  movslq %edx,%rbx
  lea    0x3(%rdi),%edx
  imul   0x140(%rsp),%edx
  mov    %rbx,0x88(%rsp)
  movslq %r8d,%rbx
  mov    %rbx,0x90(%rsp)
  mov    %esi,%ebx
  movslq %edx,%rsi
  sub    %r8d,%edx
  mov    %rsi,0x50(%rsp)
  lea    (%rax,%rax,1),%esi
  movslq %edx,%rdx
  movslq %esi,%r10
  add    %eax,%esi
  mov    %rdx,0x60(%rsp)
  lea    (%rcx,%rcx,1),%edx
  movslq %esi,%rax
  mov    %ebx,%esi
  movslq %edx,%r11
  add    %ecx,%edx
  mov    %rax,0xa0(%rsp)
  lea    0x2(%rbx,%rdi,1),%eax
  imul   0x140(%rsp),%eax
  mov    %r10,0x58(%rsp)
  mov    %r11,0x68(%rsp)
  movslq %eax,%rbx
  sub    0x140(%rsp),%eax
  cltq
  mov    %rbx,0xa8(%rsp)
  mov    %rax,0xb0(%rsp)
  movslq %edx,%rax
  mov    %rax,0xb8(%rsp)
  lea    -0x1(%rsi),%eax
  shl    $0x7,%eax
  mov    %eax,0xe0(%rsp)
  movslq 0x140(%rsp),%rax
  mov    %rax,0x98(%rsp)
  nopw   0x0(%rax,%rax,1)
L287:
  mov    0xe4(%rsp),%eax
  cmp    $0x1,%eax
  je     L69
  lea    -0x1(%rax),%esi
  mov    0xf8(%rsp),%eax
  mov    0xc8(%rsp),%r8d
  mov    %esi,0x20(%rsp)
  cltd
  idiv   %esi
  mov    %eax,%r13d
  xor    %eax,%eax
  cmp    0xe8(%rsp),%esi
  sete   %al
  sub    %eax,%r13d
  mov    %r13d,%eax
  sar    $0x7,%r13d
  and    $0x7f,%eax
  mov    %eax,0x28(%rsp)
  lea    -0x1(%r13),%eax
  test   %r8d,%r8d
  jle    L285
L214:
  imul   0xf0(%rsp),%eax
  movl   $0x0,0xd8(%rsp)
  movl   $0x0,0x80(%rsp)
  mov    %eax,0xdc(%rsp)
  mov    0xf4(%rsp),%eax
  mov    %eax,0xcc(%rsp)
  nopl   0x0(%rax)
L13:
  mov    0xc8(%rsp),%eax
  cmp    $0x1,%eax
  je     L62
  lea    -0x1(%rax),%ecx
  mov    0xd8(%rsp),%eax
  cltd
  idiv   %ecx
  mov    %eax,%ebx
  xor    %eax,%eax
  cmp    0x80(%rsp),%ecx
  sete   %al
  sub    %eax,%ebx
  mov    %ebx,%r12d
  sar    $0x7,%ebx
  and    $0x7f,%r12d
  sub    $0x1,%ebx
L150:
  add    0xdc(%rsp),%ebx
  imul   0x140(%rsp),%ebx
  mov    0x140(%rsp),%edi
  movslq %ebx,%rbx
  add    0xc0(%rsp),%rbx
  test   %edi,%edi
  jle    L312
  mov    0x140(%rsp),%eax
  movslq 0xcc(%rsp),%rbp
  add    0xd0(%rsp),%rbp
  sub    $0x1,%eax
  lea    0x1(%rbx,%rax,1),%rax
  mov    %rax,0x18(%rsp)
  nop
L229:
  mov    0x30(%rsp),%rax
  movss  (%rsp),%xmm0
  movzbl (%rbx,%rax,1),%edi
  call   <gamma_correct@plt>
  movss  (%rsp),%xmm0
  mov    %eax,0x8(%rsp)
  mov    0x38(%rsp),%rax
  movzbl (%rbx,%rax,1),%edi
  call   <gamma_correct@plt>
  movss  (%rsp),%xmm0
  mov    %eax,%r14d
  mov    0x40(%rsp),%rax
  movzbl (%rbx,%rax,1),%edi
  call   <gamma_correct@plt>
  movss  (%rsp),%xmm0
  mov    %eax,%r15d
  mov    0x48(%rsp),%rax
  movzbl (%rbx,%rax,1),%edi
  call   <gamma_correct@plt>
  mov    0x8(%rsp),%ecx
  mov    %r14d,%edx
  mov    %r15d,%esi
  mov    %eax,%edi
  mov    %r12d,%r8d
  call   <icerp@plt>
  mov    %eax,%r15d
  mov    %eax,%r14d
  test   %r13d,%r13d
  jle    L64
  mov    0x88(%rsp),%rax
  movss  (%rsp),%xmm0
  movzbl (%rbx,%rax,1),%edi
  call   <gamma_correct@plt>
  movss  (%rsp),%xmm0
  mov    %eax,0xc(%rsp)
  mov    0x90(%rsp),%rax
  movzbl (%rbx,%rax,1),%edi
  call   <gamma_correct@plt>
  movss  (%rsp),%xmm0
  mov    %eax,0x8(%rsp)
  mov    0x98(%rsp),%rax
  movzbl (%rbx,%rax,1),%edi
  call   <gamma_correct@plt>
  movzbl (%rbx),%edi
  movss  (%rsp),%xmm0
  mov    %eax,%r14d
  call   <gamma_correct@plt>
  mov    0xc(%rsp),%ecx
  mov    0x8(%rsp),%edx
  mov    %r14d,%esi
  mov    %eax,%edi
  mov    %r12d,%r8d
  call   <icerp@plt>
  mov    %eax,%r14d
L64:
  mov    0x50(%rsp),%rax
  movss  (%rsp),%xmm0
  movzbl (%rbx,%rax,1),%edi
  call   <gamma_correct@plt>
  movss  (%rsp),%xmm0
  mov    %eax,0x10(%rsp)
  mov    0x58(%rsp),%rax
  movzbl (%rbx,%rax,1),%edi
  call   <gamma_correct@plt>
  movss  (%rsp),%xmm0
  mov    %eax,0xc(%rsp)
  mov    0x60(%rsp),%rax
  movzbl (%rbx,%rax,1),%edi
  call   <gamma_correct@plt>
  movss  (%rsp),%xmm0
  mov    %eax,0x8(%rsp)
  mov    0x68(%rsp),%rax
  movzbl (%rbx,%rax,1),%edi
  call   <gamma_correct@plt>
  mov    0x10(%rsp),%ecx
  mov    0xc(%rsp),%edx
  mov    %r12d,%r8d
  mov    0x8(%rsp),%esi
  mov    %eax,%edi
  call   <icerp@plt>
  cmp    %r13d,0x20(%rsp)
  jg     L282
  mov    0x28(%rsp),%r8d
  mov    %eax,%ecx
  mov    %eax,%edx
  mov    %r15d,%esi
  mov    %r14d,%edi
  call   <icerp@plt>
  mov    $0xff,%edx
  movss  0x70(%rsp),%xmm0
  cmp    %edx,%eax
  cmovle %eax,%edx
  xor    %eax,%eax
  mov    %edx,%edi
  test   %edx,%edx
  cmovs  %eax,%edi
  add    $0x1,%rbx
  add    $0x1,%rbp
  call   <gamma_correct@plt>
  mov    %al,-0x1(%rbp)
  cmp    %rbx,0x18(%rsp)
  jne    L229
L312:
  mov    0x140(%rsp),%ecx
  addl   $0x1,0x80(%rsp)
  add    %ecx,0xcc(%rsp)
  mov    0x80(%rsp),%eax
  mov    0xe0(%rsp),%ecx
  add    %ecx,0xd8(%rsp)
  cmp    %eax,0xc8(%rsp)
  jg     L13
L285:
  mov    0xec(%rsp),%ecx
  addl   $0x1,0xe8(%rsp)
  add    %ecx,0xf4(%rsp)
  mov    0xe8(%rsp),%eax
  mov    0xfc(%rsp),%ecx
  add    %ecx,0xf8(%rsp)
  cmp    %eax,0xe4(%rsp)
  jne    L287
L124:
  add    $0x108,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L282:
  mov    %eax,0x78(%rsp)
  mov    0xa0(%rsp),%rax
  movss  (%rsp),%xmm0
  movzbl (%rbx,%rax,1),%edi
  call   <gamma_correct@plt>
  movss  (%rsp),%xmm0
  mov    %eax,0x10(%rsp)
  mov    0xa8(%rsp),%rax
  movzbl (%rbx,%rax,1),%edi
  call   <gamma_correct@plt>
  movss  (%rsp),%xmm0
  mov    %eax,0xc(%rsp)
  mov    0xb0(%rsp),%rax
  movzbl (%rbx,%rax,1),%edi
  call   <gamma_correct@plt>
  movss  (%rsp),%xmm0
  mov    %eax,0x8(%rsp)
  mov    0xb8(%rsp),%rax
  movzbl (%rbx,%rax,1),%edi
  call   <gamma_correct@plt>
  mov    0x10(%rsp),%ecx
  mov    0xc(%rsp),%edx
  mov    %r12d,%r8d
  mov    0x8(%rsp),%esi
  mov    %eax,%edi
  call   <icerp@plt>
  mov    0x28(%rsp),%r8d
  mov    %r15d,%esi
  mov    %r14d,%edi
  mov    0x78(%rsp),%edx
  mov    %eax,%ecx
  call   <icerp@plt>
  mov    $0xff,%edx
  movss  0x70(%rsp),%xmm0
  cmp    %edx,%eax
  cmovle %eax,%edx
  xor    %eax,%eax
  mov    %edx,%edi
  test   %edx,%edx
  cmovs  %eax,%edi
  add    $0x1,%rbx
  add    $0x1,%rbp
  call   <gamma_correct@plt>
  mov    %al,-0x1(%rbp)
  cmp    0x18(%rsp),%rbx
  jne    L229
  jmp    L312
  nopl   (%rax)
L217:
  mov    0x140(%rsp),%ecx
  addl   $0x1,0x58(%rsp)
  add    %ecx,0x98(%rsp)
  mov    0x58(%rsp),%eax
  mov    0xb0(%rsp),%ecx
  add    %ecx,0xa0(%rsp)
  cmp    %eax,0xc8(%rsp)
  jg     L280
L126:
  mov    0xec(%rsp),%ecx
  addl   $0x1,0xb8(%rsp)
  add    %ecx,0xcc(%rsp)
  mov    0xb8(%rsp),%eax
  mov    0xdc(%rsp),%ecx
  add    %ecx,0xd8(%rsp)
  cmp    %eax,0xe4(%rsp)
  je     L124
  mov    0xe4(%rsp),%eax
  cmp    $0x1,%eax
  jne    L127
L299:
  mov    0xc8(%rsp),%eax
  test   %eax,%eax
  jle    L124
  movl   $0x0,0xc(%rsp)
  xor    %r13d,%r13d
  mov    $0xffffffff,%eax
  movl   $0x0,0x8(%rsp)
  jmp    L216
  cs nopw 0x0(%rax,%rax,1)
L91:
  xor    %r12d,%r12d
  mov    $0xffffffff,%ebx
  jmp    L61
  nopl   (%rax)
L62:
  mov    $0xffffffff,%ebx
  xor    %r12d,%r12d
  jmp    L150
L69:
  mov    0xc8(%rsp),%edx
  test   %edx,%edx
  jle    L124
  movl   $0x0,0x28(%rsp)
  mov    $0xffffffff,%eax
  xor    %r13d,%r13d
  movl   $0x0,0x20(%rsp)
  jmp    L214
```

tool_calls: name: disassemble_data
arguments: data_tag: D0
datatype: f32

tool: D0: 1

assistant: ```c
void scale_image_bicubic(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;
  int a, b, c, d;
  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) << 7) / (dh - 1);
        if (y == dh - 1)
          --iy;
        wy = iy & 0x7f;
        iy >>= 7;
      } else
        iy = wy = 0;
      for (x = 0; x < dw; ++x) {
        if (dw > 1) {
          ix = (((sw - 1) * x) << 7) / (dw - 1);
          if (x == dw - 1)
            --ix;
          wx = ix & 0x7f;
          ix >>= 7;
        } else
          ix = wx = 0;
        s = src + ((iy - 1) * sw + (ix - 1)) * bpp;
        for (n = 0; n < bpp; ++n) {
          b = icerp(gamma_correct(s[(sw + 0) * bpp], gamma), gamma_correct(s[(sw + 1) * bpp], gamma), gamma_correct(s[(sw + 2) * bpp], gamma), gamma_correct(s[(sw + 3) * bpp], gamma), wx);
          if (iy > 0) {
            a = icerp(gamma_correct(s[0], gamma), gamma_correct(s[bpp], gamma), gamma_correct(s[2 * bpp], gamma), gamma_correct(s[3 * bpp], gamma), wx);
          } else
            a = b;
          c = icerp(gamma_correct(s[(2 * sw + 0) * bpp], gamma), gamma_correct(s[(2 * sw + 1) * bpp], gamma), gamma_correct(s[(2 * sw + 2) * bpp], gamma), gamma_correct(s[(2 * sw + 3) * bpp], gamma), wx);
          if (iy < dh - 1) {
            d = icerp(gamma_correct(s[(3 * sw + 0) * bpp], gamma), gamma_correct(s[(3 * sw + 1) * bpp], gamma), gamma_correct(s[(3 * sw + 2) * bpp], gamma), gamma_correct(s[(3 * sw + 3) * bpp], gamma), wx);
          } else
            d = c;
          v = icerp(a, b, c, d, wy);
          if (v < 0)
            v = 0;
          if (v > 255)
            v = 255;
          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) << 7) / (dh - 1);
        if (y == dh - 1)
          --iy;
        wy = iy & 0x7f;
        iy >>= 7;
      } else
        iy = wy = 0;
      for (x = 0; x < dw; ++x) {
        if (dw > 1) {
          ix = (((sw - 1) * x) << 7) / (dw - 1);
          if (x == dw - 1)
            --ix;
          wx = ix & 0x7f;
          ix >>= 7;
        } else
          ix = wx = 0;
        s = src + ((iy - 1) * sw + (ix - 1)) * bpp;
        for (n = 0; n < bpp; ++n) {
          b = icerp(s[(sw + 0) * bpp], s[(sw + 1) * bpp], s[(sw + 2) * bpp], s[(sw + 3) * bpp], wx);
          if (iy > 0) {
            a = icerp(s[0], s[bpp], s[2 * bpp], s[3 * bpp], wx);
          } else
            a = b;
          c = icerp(s[(2 * sw + 0) * bpp], s[(2 * sw + 1) * bpp], s[(2 * sw + 2) * bpp], s[(2 * sw + 3) * bpp], wx);
          if (iy < dh - 1) {
            d = icerp(s[(3 * sw + 0) * bpp], s[(3 * sw + 1) * bpp], s[(3 * sw + 2) * bpp], s[(3 * sw + 3) * bpp], wx);
          } else
            d = c;
          v = icerp(a, b, c, d, wy);
          if (v < 0)
            v = 0;
          if (v > 255)
            v = 255;
          dst[(y * dstride) + (x * bpp) + n] = v;
          ++s;
        }
      }
    }
  }
}
```