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

```asm
<NV12TileToNV12>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  mov    %ecx,-0x38(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x1c(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x20(%rbp)
  jmp    L42
L1:
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L72
L114:
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x1c(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L82
  mov    -0x1c(%rbp),%eax
  shl    $0x7,%eax
  cltq
  shl    $0x2,%rax
  add    %rax,-0x10(%rbp)
  mov    -0x34(%rbp),%edx
  lea    -0x18(%rbp),%rcx
  mov    -0x10(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <copyTile@plt>
  addq   $0x100,-0x10(%rbp)
  mov    -0x34(%rbp),%edx
  lea    -0x18(%rbp),%rcx
  mov    -0x10(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <copyTile@plt>
  mov    -0x34(%rbp),%eax
  shl    $0xb,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x1c(%rbp),%eax
  shl    $0x7,%eax
  cltq
  shl    $0x2,%rax
  add    %rax,-0x10(%rbp)
  mov    -0x34(%rbp),%edx
  lea    -0x18(%rbp),%rcx
  mov    -0x10(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <copyTile@plt>
  addq   $0x100,-0x10(%rbp)
  mov    -0x34(%rbp),%edx
  lea    -0x18(%rbp),%rcx
  mov    -0x10(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <copyTile@plt>
  jmp    L77
L82:
  mov    -0x34(%rbp),%eax
  shl    $0xb,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x1c(%rbp),%eax
  shl    $0x7,%eax
  cltq
  shl    $0x2,%rax
  add    %rax,-0x10(%rbp)
  mov    -0x34(%rbp),%edx
  lea    -0x18(%rbp),%rcx
  mov    -0x10(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <copyTile@plt>
  addq   $0x100,-0x10(%rbp)
  mov    -0x34(%rbp),%edx
  lea    -0x18(%rbp),%rcx
  mov    -0x10(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <copyTile@plt>
  mov    -0x1c(%rbp),%eax
  shl    $0x7,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x34(%rbp),%edx
  lea    -0x18(%rbp),%rcx
  mov    -0x10(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <copyTile@plt>
  addq   $0x100,-0x10(%rbp)
  mov    -0x34(%rbp),%edx
  lea    -0x18(%rbp),%rcx
  mov    -0x10(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <copyTile@plt>
L77:
  addl   $0x1,-0x1c(%rbp)
L72:
  mov    -0x34(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  cmp    %eax,-0x1c(%rbp)
  jl     L114
  mov    -0x34(%rbp),%eax
  shl    $0xc,%eax
  cltq
  shl    $0x2,%rax
  add    %rax,-0x30(%rbp)
  mov    -0x34(%rbp),%eax
  shl    $0xc,%eax
  cltq
  shl    $0x2,%rax
  add    %rax,-0x28(%rbp)
  addl   $0x2,-0x20(%rbp)
L42:
  mov    -0x38(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L32
  mov    -0x38(%rbp),%eax
  sub    $0x1,%eax
  jmp    L46
L32:
  mov    -0x38(%rbp),%eax
L46:
  cmp    -0x20(%rbp),%eax
  jg     L1
  mov    -0x38(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L57
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  movl   $0x0,-0x20(%rbp)
  jmp    L43
L63:
  mov    -0x20(%rbp),%eax
  shl    $0x6,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x34(%rbp),%edx
  lea    -0x18(%rbp),%rcx
  mov    -0x10(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <copyTile@plt>
  addl   $0x1,-0x20(%rbp)
L43:
  mov    -0x20(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L63
L57:
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L113
  call   <__stack_chk_fail@plt>
L113:
  leave
  ret
```

assistant: ```c
void NV12TileToNV12(uint8_t *dst_head, uint8_t *src_head, int wTiles, int hTiles) {
  int loop = 0;
  int Z = 0;
  uint8_t *src = src_head;
  uint8_t *dst = dst_head;
  for (loop = 0; loop < (hTiles % 2 == 0 ? hTiles : hTiles - 1); loop = loop + 2) {
    src = src_head;
    for (Z = 0; Z < (wTiles / 2); Z++) {
      dst = dst_head;
      if (Z % 2 == 0) {
        dst = dst + (Z * 2 * 64);
        copyTile(dst, &src, wTiles);
        dst = dst + 64;
        copyTile(dst, &src, wTiles);
        dst = dst_head + (wTiles * (64 * 32));
        dst = dst + (Z * 2 * 64);
        copyTile(dst, &src, wTiles);
        dst = dst + 64;
        copyTile(dst, &src, wTiles);
      } else {
        dst = dst_head + (wTiles * (64 * 32));
        dst = dst + (Z * 2 * 64);
        copyTile(dst, &src, wTiles);
        dst = dst + 64;
        copyTile(dst, &src, wTiles);
        dst = dst_head + (Z * 2 * 64);
        copyTile(dst, &src, wTiles);
        dst = dst + 64;
        copyTile(dst, &src, wTiles);
      }
    }
    src_head = src_head + (2 * (64 * 32) * wTiles);
    dst_head = dst_head + (2 * wTiles * (64 * 32));
  }
  if (hTiles % 2) {
    src = src_head;
    for (loop = 0; loop < wTiles; loop++) {
      dst = dst_head + (loop * 64);
      copyTile(dst, &src, wTiles);
    }
  }
}
```