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

```asm
<blend>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  mov    %ecx,-0x38(%rbp)
  mov    %r8,-0x40(%rbp)
  mov    $0x0,%ebx
  mov    $0x0,%r14d
  mov    -0x34(%rbp),%eax
  movzbl %al,%r12d
  mov    $0x100,%eax
  sub    %r12d,%eax
  mov    %eax,%r13d
L4:
  mov    -0x28(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  mov    %r14d,%edx
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  imul   %r13d,%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  mov    %r14d,%ecx
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  imul   %r12d,%eax
  add    %edx,%eax
  shr    $0x8,%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  mov    %r14d,%ecx
  add    %rcx,%rax
  mov    %dl,(%rax)
  mov    -0x28(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    %r14d,%edx
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  imul   %r13d,%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    %r14d,%ecx
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  imul   %r12d,%eax
  add    %edx,%eax
  shr    $0x8,%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    %r14d,%ecx
  add    %rcx,%rax
  mov    %dl,(%rax)
  add    $0x1,%r14d
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  mov    %ebx,%edx
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  imul   %r13d,%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  mov    %ebx,%ecx
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  imul   %r12d,%eax
  add    %edx,%eax
  shr    $0x8,%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%rax
  mov    (%rax),%rax
  mov    %ebx,%ecx
  add    %rcx,%rax
  mov    %dl,(%rax)
  add    $0x1,%ebx
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  mov    %ebx,%edx
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  imul   %r13d,%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  mov    %ebx,%ecx
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  imul   %r12d,%eax
  add    %edx,%eax
  shr    $0x8,%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%rax
  mov    (%rax),%rax
  mov    %ebx,%ecx
  add    %rcx,%rax
  mov    %dl,(%rax)
  add    $0x1,%ebx
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  mov    %ebx,%edx
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  imul   %r13d,%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  mov    %ebx,%ecx
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  imul   %r12d,%eax
  add    %edx,%eax
  shr    $0x8,%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%rax
  mov    (%rax),%rax
  mov    %ebx,%ecx
  add    %rcx,%rax
  mov    %dl,(%rax)
  add    $0x1,%ebx
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  mov    %ebx,%edx
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  imul   %r13d,%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  mov    %ebx,%ecx
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  imul   %r12d,%eax
  add    %edx,%eax
  shr    $0x8,%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%rax
  mov    (%rax),%rax
  mov    %ebx,%ecx
  add    %rcx,%rax
  mov    %dl,(%rax)
  add    $0x1,%ebx
  cmp    -0x38(%rbp),%ebx
  jb     L4
  nop
  nop
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
```

assistant: ```c
void blend(unsigned char *src0[3], unsigned char *src1[3], unsigned int opacity1, unsigned int len, unsigned char *dst[3]) {
  register unsigned int i = 0;
  register unsigned int j = 0;
  register unsigned int op1 = opacity1 & 0xFF;
  register unsigned int op0 = 0x100 - op1;
  do {
    dst[2][j] = (op0 * src0[2][j] + op1 * src1[2][j]) >> 8;
    dst[1][j] = (op0 * src0[1][j] + op1 * src1[1][j]) >> 8;
    j++;
    dst[0][i] = (op0 * src0[0][i] + op1 * src1[0][i]) >> 8;
    i++;
    dst[0][i] = (op0 * src0[0][i] + op1 * src1[0][i]) >> 8;
    i++;
    dst[0][i] = (op0 * src0[0][i] + op1 * src1[0][i]) >> 8;
    i++;
    dst[0][i] = (op0 * src0[0][i] + op1 * src1[0][i]) >> 8;
    i++;
  } while (i < len);
}
```