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

```asm
<put_ccode_box>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    %edx,-0x20(%rbp)
  mov    %ecx,-0x24(%rbp)
  mov    %r8d,-0x28(%rbp)
  mov    %r9d,-0x2c(%rbp)
  mov    -0x24(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L62
L52:
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  movslq %eax,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x18(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%edx
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rax,%rcx
  mov    %edx,%eax
  or     0x18(%rbp),%eax
  mov    %eax,(%rcx)
  addl   $0x1,-0xc(%rbp)
L62:
  mov    -0xc(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jl     L52
  mov    -0x24(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x8(%rbp)
  jmp    L28
L14:
  mov    -0x8(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  movslq %eax,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x18(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%edx
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rax,%rcx
  mov    %edx,%eax
  or     0x18(%rbp),%eax
  mov    %eax,(%rcx)
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0xc(%rbp)
  jmp    L68
L42:
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  movslq %eax,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x18(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%ecx
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    0x10(%rbp),%edx
  add    %ecx,%edx
  mov    %edx,(%rax)
  addl   $0x1,-0xc(%rbp)
L68:
  mov    -0x20(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0xc(%rbp)
  jl     L42
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  movslq %eax,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x18(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%edx
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rax,%rcx
  mov    %edx,%eax
  or     0x18(%rbp),%eax
  mov    %eax,(%rcx)
  addl   $0x1,-0x8(%rbp)
L28:
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x8(%rbp)
  jl     L14
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L30
L39:
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  movslq %eax,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x18(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%edx
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rax,%rcx
  mov    %edx,%eax
  or     0x18(%rbp),%eax
  mov    %eax,(%rcx)
  addl   $0x1,-0xc(%rbp)
L30:
  mov    -0xc(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jl     L39
  nop
  nop
  pop    %rbp
  ret
```

assistant: ```c
void put_ccode_box(unsigned int *pixels, int x1, int x2, int y1, int y2, int width, unsigned int color, unsigned int linecolor) {
  int x, y, i;
  i = x1 + y1 * width;
  for (x = x1; x < x2; x++) {
    pixels[i++] |= linecolor;
  }
  for (y = y1 + 1; y < y2 - 1; y++) {
    i = x1 + y * width;
    pixels[i++] |= linecolor;
    for (x = x1 + 1; x < x2 - 1; x++) {
      pixels[i++] += color;
    }
    pixels[i++] |= linecolor;
  }
  i = x1 + (y2 - 1) * width;
  for (x = x1; x < x2; x++) {
    pixels[i++] |= linecolor;
  }
}
```