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

```asm
<draw_block8_8>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    0x38(%rsp),%r11
  mov    %esi,-0x34(%rsp)
  mov    %ecx,-0x20(%rsp)
  test   %ecx,%ecx
  jle    L183
  mov    %edx,%ebx
  test   %edx,%edx
  jle    L183
  mov    %rdi,%r10
  mov    %r9d,%edi
  movslq %esi,%rax
  mov    %r8d,%ebp
  imul   %esi,%edi
  mov    %rax,-0x28(%rsp)
  movslq %r8d,%rax
  mov    %r11,%rcx
  xor    %r9d,%r9d
  xor    %r14d,%r14d
  movslq %edi,%rdx
  add    %rax,%rdx
  movslq 0x40(%rsp),%rax
  add    %r10,%rdx
  mov    %rax,-0x30(%rsp)
  lea    -0x1(%rbx),%eax
  mov    %eax,-0x38(%rsp)
  mov    %ebx,%eax
  shr    $0x4,%eax
  lea    -0x1(%rax),%r8d
  mov    %ebx,%eax
  and    $0xfffffff0,%eax
  add    $0x1,%r8
  mov    %eax,-0x1c(%rsp)
  mov    %ebx,%eax
  shl    $0x4,%r8
  and    $0xf,%eax
  mov    %r8,-0x40(%rsp)
  mov    %eax,-0x18(%rsp)
  sub    $0x1,%eax
  mov    %eax,-0x14(%rsp)
  mov    %ebx,%eax
  mov    %rax,-0x10(%rsp)
  nopl   (%rax)
L67:
  mov    %rcx,%rax
  lea    0x1(%rcx),%rsi
  mov    %rdx,%r15
  sub    %r11,%rax
  sub    %r10,%r15
  mov    %rax,-0x48(%rsp)
  mov    %rdx,%rax
  sub    %rsi,%rax
  cmp    $0xe,%rax
  jbe    L162
  cmpl   $0x6,-0x38(%rsp)
  jbe    L162
  cmpl   $0xe,-0x38(%rsp)
  jbe    L24
  mov    -0x40(%rsp),%r8
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L74:
  movdqu (%rcx,%rax,1),%xmm0
  movups %xmm0,(%rdx,%rax,1)
  add    $0x10,%rax
  cmp    %r8,%rax
  jne    L74
  mov    -0x1c(%rsp),%eax
  mov    %r8,-0x40(%rsp)
  cmp    %eax,%ebx
  je     L149
  cmpl   $0x6,-0x14(%rsp)
  mov    -0x18(%rsp),%r12d
  mov    %eax,%esi
  jbe    L188
L123:
  mov    -0x48(%rsp),%r8
  lea    (%r11,%rsi,1),%r13
  add    %r10,%rsi
  mov    0x0(%r13,%r8,1),%r13
  mov    %r13,(%rsi,%r15,1)
  mov    %r12d,%esi
  and    $0xfffffff8,%esi
  add    %esi,%eax
  cmp    %esi,%r12d
  je     L149
L188:
  lea    (%r9,%rax,1),%esi
  movslq %esi,%rsi
  movzbl (%r11,%rsi,1),%r12d
  lea    0x0(%rbp,%rax,1),%esi
  add    %edi,%esi
  movslq %esi,%rsi
  mov    %r12b,(%r10,%rsi,1)
  lea    0x1(%rax),%esi
  cmp    %esi,%ebx
  jle    L149
  lea    (%r9,%rsi,1),%r12d
  add    %ebp,%esi
  movslq %r12d,%r12
  add    %edi,%esi
  movzbl (%r11,%r12,1),%r12d
  movslq %esi,%rsi
  mov    %r12b,(%r10,%rsi,1)
  lea    0x2(%rax),%esi
  cmp    %esi,%ebx
  jle    L149
  lea    (%r9,%rsi,1),%r12d
  add    %ebp,%esi
  movslq %r12d,%r12
  add    %edi,%esi
  movzbl (%r11,%r12,1),%r12d
  movslq %esi,%rsi
  mov    %r12b,(%r10,%rsi,1)
  lea    0x3(%rax),%esi
  cmp    %esi,%ebx
  jle    L149
  lea    (%r9,%rsi,1),%r12d
  add    %ebp,%esi
  movslq %r12d,%r12
  add    %edi,%esi
  movzbl (%r11,%r12,1),%r12d
  movslq %esi,%rsi
  mov    %r12b,(%r10,%rsi,1)
  lea    0x4(%rax),%esi
  cmp    %esi,%ebx
  jle    L149
  lea    (%r9,%rsi,1),%r12d
  add    %ebp,%esi
  movslq %r12d,%r12
  add    %edi,%esi
  movzbl (%r11,%r12,1),%r12d
  movslq %esi,%rsi
  mov    %r12b,(%r10,%rsi,1)
  lea    0x5(%rax),%esi
  cmp    %esi,%ebx
  jle    L149
  lea    (%r9,%rsi,1),%r12d
  add    %ebp,%esi
  add    $0x6,%eax
  movslq %r12d,%r12
  add    %edi,%esi
  movzbl (%r11,%r12,1),%r12d
  movslq %esi,%rsi
  mov    %r12b,(%r10,%rsi,1)
  cmp    %eax,%ebx
  jle    L149
  lea    (%r9,%rax,1),%esi
  add    %ebp,%eax
  movslq %esi,%rsi
  add    %edi,%eax
  movzbl (%r11,%rsi,1),%esi
  cltq
  mov    %sil,(%r10,%rax,1)
L149:
  add    $0x1,%r14d
  add    -0x28(%rsp),%rdx
  add    -0x30(%rsp),%rcx
  add    0x40(%rsp),%r9d
  add    -0x34(%rsp),%edi
  cmp    %r14d,-0x20(%rsp)
  jne    L67
L183:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L162:
  mov    -0x40(%rsp),%r8
  mov    -0x10(%rsp),%r12
  xor    %eax,%eax
  nopl   0x0(%rax)
L165:
  movzbl (%rcx,%rax,1),%esi
  mov    %sil,(%rdx,%rax,1)
  add    $0x1,%rax
  cmp    %r12,%rax
  jne    L165
  mov    %r8,-0x40(%rsp)
  jmp    L149
L24:
  mov    %ebx,%r12d
  xor    %esi,%esi
  xor    %eax,%eax
  jmp    L123
```

assistant: ```c
void draw_block8_8(char *vram, int vxsize, int mouse_w, int mouse_h, int x, int y, char *img_addr, int pixels_per_line) {
  int w, h;
  for (h = 0; h < mouse_h; ++h) {
    for (w = 0; w < mouse_w; ++w)
      vram[(y + h) * vxsize + (x + w)] = img_addr[h * pixels_per_line + w];
  }
}
```