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

```asm
<NV21Transform>:
  endbr64
  push   %r15
  mov    %rdi,%r9
  mov    %rsi,%rdi
  mov    %edx,%esi
  push   %r14
  mov    %r8d,%edx
  xor    %r10d,%r10d
  mov    %ecx,%r14d
  push   %r13
  push   %r12
  mov    %r8d,%r12d
  push   %rbp
  push   %rbx
  sub    $0x40,%rsp
  and    $0x50,%edx
  sete   %r10b
  imul   %esi,%ecx
  lea    (%rcx,%rcx,2),%r11d
  mov    %r11d,%eax
  shr    $0x1f,%eax
  add    %r11d,%eax
  sar    %eax
  mov    %eax,-0x50(%rsp)
  test   $0x30,%r8b
  je     L522
  mov    %r8d,%eax
  and    $0x1,%r12d
  sar    %eax
  mov    %eax,%ebx
  or     %r8d,%eax
  and    $0x1,%eax
  and    $0x1,%ebx
  or     %r10d,%eax
  mov    %ebx,-0x60(%rsp)
  je     L814
L789:
  mov    %r14d,%eax
  sar    %eax
  mov    %eax,-0x48(%rsp)
  mov    %esi,%eax
  sar    %eax
  mov    %eax,-0x6c(%rsp)
  test   %edx,%edx
  je     L362
  xor    $0x1,%r12d
  test   %r12d,-0x60(%rsp)
  je     L732
  sub    %esi,%ecx
  test   %r14d,%r14d
  jle    L737
  mov    %esi,%eax
  lea    -0x1(%rcx),%r12d
  movslq %ecx,%rbx
  mov    %r14d,-0x60(%rsp)
  neg    %eax
  lea    -0x1(%rsi),%ecx
  mov    %esi,%r13d
  mov    $0xffffffff,%r11d
  cltq
  mov    %ecx,-0x58(%rsp)
  and    $0xfffffff0,%r13d
  xor    %r15d,%r15d
  mov    %rax,-0x68(%rsp)
  mov    %esi,%eax
  shr    $0x4,%eax
  lea    -0x1(%rax),%ebp
  mov    %ecx,%eax
  add    $0x2,%rax
  add    $0x1,%rbp
  mov    %rax,-0x40(%rsp)
  mov    %esi,%eax
  shl    $0x4,%rbp
  and    $0xf,%eax
  mov    %eax,-0x44(%rsp)
  sub    $0x1,%eax
  mov    %eax,-0x8(%rsp)
  nopw   0x0(%rax,%rax,1)
L671:
  mov    %r12d,%eax
  test   %esi,%esi
  jle    L903
  lea    (%rdi,%rbx,1),%rdx
  movslq %r11d,%r10
  lea    0x2(%r9,%r10,1),%r8
  mov    %rdx,%rcx
  sub    %r8,%rcx
  cmp    $0xe,%rcx
  jbe    L735
  mov    -0x58(%rsp),%ecx
  cmp    $0x6,%ecx
  jbe    L735
  cmp    $0xe,%ecx
  jbe    L629
  lea    0x1(%r9,%r10,1),%rcx
  xor    %eax,%eax
  nopl   0x0(%rax)
L192:
  movdqu (%rcx,%rax,1),%xmm4
  movups %xmm4,(%rdx,%rax,1)
  add    $0x10,%rax
  cmp    %rbp,%rax
  jne    L192
  lea    (%r11,%r13,1),%ecx
  lea    (%r12,%r13,1),%eax
  cmp    %r13d,%esi
  je     L185
  cmpl   $0x6,-0x8(%rsp)
  mov    -0x44(%rsp),%r14d
  jbe    L207
  mov    %r13d,%edx
  mov    %r13d,%r8d
L995:
  add    %r9,%r10
  mov    0x1(%rdx,%r10,1),%r10
  add    %rdi,%rdx
  mov    %r10,(%rdx,%rbx,1)
  mov    %r14d,%edx
  and    $0xfffffff8,%edx
  add    %edx,%r8d
  add    %edx,%ecx
  add    %edx,%eax
  cmp    %edx,%r14d
  je     L185
L449:
  lea    0x1(%rcx),%edx
  movslq %edx,%rdx
  movzbl (%r9,%rdx,1),%r10d
  lea    0x1(%rax),%edx
  movslq %edx,%rdx
  mov    %r10b,(%rdi,%rdx,1)
  lea    0x1(%r8),%edx
  cmp    %edx,%esi
  jle    L185
  lea    0x2(%rcx),%edx
  movslq %edx,%rdx
  movzbl (%r9,%rdx,1),%r10d
  lea    0x2(%rax),%edx
  movslq %edx,%rdx
  mov    %r10b,(%rdi,%rdx,1)
  lea    0x2(%r8),%edx
  cmp    %edx,%esi
  jle    L185
  lea    0x3(%rcx),%edx
  movslq %edx,%rdx
  movzbl (%r9,%rdx,1),%r10d
  lea    0x3(%rax),%edx
  movslq %edx,%rdx
  mov    %r10b,(%rdi,%rdx,1)
  lea    0x3(%r8),%edx
  cmp    %edx,%esi
  jle    L185
  lea    0x4(%rcx),%edx
  movslq %edx,%rdx
  movzbl (%r9,%rdx,1),%r10d
  lea    0x4(%rax),%edx
  movslq %edx,%rdx
  mov    %r10b,(%rdi,%rdx,1)
  lea    0x4(%r8),%edx
  cmp    %edx,%esi
  jle    L185
  lea    0x5(%rcx),%edx
  movslq %edx,%rdx
  movzbl (%r9,%rdx,1),%r10d
  lea    0x5(%rax),%edx
  movslq %edx,%rdx
  mov    %r10b,(%rdi,%rdx,1)
  lea    0x5(%r8),%edx
  cmp    %edx,%esi
  jle    L185
  lea    0x6(%rcx),%edx
  add    $0x6,%r8d
  movslq %edx,%rdx
  movzbl (%r9,%rdx,1),%r10d
  lea    0x6(%rax),%edx
  movslq %edx,%rdx
  mov    %r10b,(%rdi,%rdx,1)
  cmp    %r8d,%esi
  jle    L185
  add    $0x7,%ecx
  add    $0x7,%eax
  movslq %ecx,%rcx
  cltq
  movzbl (%r9,%rcx,1),%edx
  mov    %dl,(%rdi,%rax,1)
L185:
  add    %esi,%r11d
L903:
  add    $0x1,%r15d
  sub    %esi,%r12d
  add    -0x68(%rsp),%rbx
  cmp    %r15d,-0x60(%rsp)
  jne    L671
L279:
  mov    -0x50(%rsp),%r13d
  mov    -0x48(%rsp),%edx
  sub    %esi,%r13d
  test   %edx,%edx
  jle    L659
  mov    -0x6c(%rsp),%ebx
  test   %ebx,%ebx
  jle    L659
  mov    %esi,%eax
  mov    %ebx,%r14d
  lea    -0x1(%rbx),%r15d
  mov    %esi,-0x50(%rsp)
  neg    %eax
  and    $0xfffffff8,%r14d
  movslq %r13d,%rcx
  mov    %r15d,-0x44(%rsp)
  cltq
  mov    %r14d,-0x8(%rsp)
  add    %rdi,%rcx
  sub    $0x1,%r13d
  mov    %rax,-0x68(%rsp)
  lea    (%rbx,%rbx,1),%eax
  mov    %eax,-0x58(%rsp)
  cltq
  mov    %rax,-0x60(%rsp)
  movslq %r11d,%rax
  lea    0x1(%r9,%rax,1),%rdx
  mov    %ebx,%eax
  sub    %r14d,%ebx
  shr    $0x3,%eax
  mov    %ebx,-0x38(%rsp)
  lea    -0x1(%rax),%ebp
  lea    (%r14,%r14,1),%eax
  mov    %eax,-0x40(%rsp)
  mov    %r15d,%eax
  add    $0x1,%rbp
  xor    %r15d,%r15d
  lea    0x3(%rax,%rax,1),%rax
  shl    $0x4,%rbp
  mov    %rax,-0x28(%rsp)
  lea    -0x1(%rbx),%eax
  mov    %eax,-0x30(%rsp)
  nopl   0x0(%rax)
L614:
  lea    0x10(%rdx),%rax
  mov    %rdx,%rbx
  mov    %rcx,%r14
  mov    %r13d,%esi
  sub    %r9,%rbx
  sub    %rdi,%r14
  cmp    %rax,%rcx
  lea    0x10(%rcx),%rax
  setae  %r8b
  cmp    %rax,%rdx
  setae  %al
  or     %r8b,%al
  je     L128
  mov    -0x44(%rsp),%eax
  cmp    $0x2,%eax
  jbe    L128
  cmp    $0x6,%eax
  jbe    L757
  xor    %eax,%eax
  nopl   (%rax)
L108:
  movdqu (%rdx,%rax,1),%xmm5
  movups %xmm5,(%rcx,%rax,1)
  add    $0x10,%rax
  cmp    %rbp,%rax
  jne    L108
  mov    -0x40(%rsp),%eax
  lea    (%r11,%rax,1),%r8d
  lea    0x0(%r13,%rax,1),%esi
  mov    -0x8(%rsp),%eax
  cmp    %eax,-0x6c(%rsp)
  je     L58
  cmpl   $0x2,-0x30(%rsp)
  mov    -0x38(%rsp),%r12d
  mov    %eax,%r10d
  jbe    L503
L762:
  add    %rax,%rax
  add    %r9,%rbx
  mov    (%rbx,%rax,1),%rbx
  add    %rdi,%rax
  mov    %rbx,(%rax,%r14,1)
  mov    %r12d,%eax
  and    $0xfffffffc,%eax
  lea    (%rax,%rax,1),%ebx
  add    %eax,%r10d
  add    %ebx,%r8d
  add    %ebx,%esi
  cmp    %r12d,%eax
  je     L58
L503:
  lea    0x1(%r8),%eax
  mov    -0x6c(%rsp),%r14d
  cltq
  movzbl (%r9,%rax,1),%ebx
  lea    0x1(%rsi),%eax
  cltq
  mov    %bl,(%rdi,%rax,1)
  lea    0x2(%r8),%eax
  cltq
  movzbl (%r9,%rax,1),%ebx
  lea    0x2(%rsi),%eax
  cltq
  mov    %bl,(%rdi,%rax,1)
  lea    0x1(%r10),%eax
  cmp    %eax,%r14d
  jle    L58
  lea    0x3(%r8),%eax
  add    $0x2,%r10d
  cltq
  movzbl (%r9,%rax,1),%ebx
  lea    0x3(%rsi),%eax
  cltq
  mov    %bl,(%rdi,%rax,1)
  lea    0x4(%r8),%eax
  cltq
  movzbl (%r9,%rax,1),%ebx
  lea    0x4(%rsi),%eax
  cltq
  mov    %bl,(%rdi,%rax,1)
  cmp    %r10d,%r14d
  jle    L58
  lea    0x5(%r8),%eax
  add    $0x6,%r8d
  cltq
  movslq %r8d,%r8
  movzbl (%r9,%rax,1),%r10d
  lea    0x5(%rsi),%eax
  add    $0x6,%esi
  cltq
  movslq %esi,%rsi
  mov    %r10b,(%rdi,%rax,1)
  movzbl (%r9,%r8,1),%eax
  mov    %al,(%rdi,%rsi,1)
L58:
  add    -0x58(%rsp),%r11d
  add    $0x1,%r15d
  add    -0x68(%rsp),%rcx
  add    -0x60(%rsp),%rdx
  sub    -0x50(%rsp),%r13d
  cmp    %r15d,-0x48(%rsp)
  jne    L614
L659:
  add    $0x40,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L732:
  cmpl   $0x1,-0x60(%rsp)
  je     L924
  lea    -0x1(%rsi),%edx
  mov    %esi,-0x40(%rsp)
  mov    $0xffffffff,%r15d
  mov    %edx,%eax
  test   %r14d,%r14d
  jle    L198
L603:
  movslq -0x40(%rsp),%rbx
  mov    %rdi,%r8
  lea    0x1(%rax),%r11d
  cltq
  sub    %rdx,%r8
  xor    %r10d,%r10d
  mov    $0xffffffff,%r15d
  mov    %rbx,%r12
  add    %rax,%r8
  nopw   0x0(%rax,%rax,1)
L321:
  test   %esi,%esi
  jle    L194
  movslq %r15d,%rax
  lea    0x1(%r9,%rax,1),%rdx
  movslq %r11d,%rax
  add    %rdi,%rax
  nopw   0x0(%rax,%rax,1)
L593:
  movzbl (%rdx),%ebp
  sub    $0x1,%rax
  add    $0x1,%rdx
  mov    %bpl,(%rax)
  cmp    %r8,%rax
  jne    L593
  add    %esi,%r15d
L194:
  add    $0x1,%r10d
  add    %r12d,%r11d
  add    %rbx,%r8
  cmp    %r10d,%r14d
  jg     L321
  cmpl   $0x1,-0x60(%rsp)
  je     L176
L198:
  lea    -0x1(%rcx,%rsi,1),%eax
  mov    %eax,-0x50(%rsp)
L158:
  mov    -0x48(%rsp),%eax
  test   %eax,%eax
  jle    L659
  mov    -0x6c(%rsp),%ebx
  test   %ebx,%ebx
  jle    L659
  movslq -0x40(%rsp),%rax
  mov    %ebx,%esi
  lea    -0x1(%rbx),%ecx
  mov    %r15d,-0x44(%rsp)
  and    $0xfffffff8,%esi
  mov    %ecx,-0x8(%rsp)
  mov    %rax,-0x30(%rsp)
  movslq -0x50(%rsp),%rax
  lea    (%rsi,%rsi,1),%edx
  mov    %edx,-0x4(%rsp)
  mov    %ecx,%edx
  mov    $0x1,%ecx
  lea    (%rdi,%rax,1),%r14
  lea    (%rbx,%rbx,1),%eax
  mov    %esi,-0x10(%rsp)
  mov    %eax,-0x20(%rsp)
  cltq
  mov    %rax,-0x28(%rsp)
  movslq %r15d,%rax
  lea    0x1(%r9,%rax,1),%r13
  movslq %ebx,%rax
  movl   $0x0,-0x68(%rsp)
  lea    (%rax,%rax,1),%r11
  mov    %ebx,%eax
  sub    %esi,%ebx
  shr    $0x3,%eax
  sub    %r11,%rcx
  mov    %r11,-0x38(%rsp)
  sub    $0x1,%eax
  mov    %rcx,-0x18(%rsp)
  add    $0x1,%rax
  mov    %ebx,0x8(%rsp)
  shl    $0x4,%rax
  mov    %rax,(%rsp)
  lea    -0x1(%rbx),%eax
  mov    %eax,0x18(%rsp)
  lea    0x3(%rdx,%rdx,1),%rax
  mov    %rax,0x10(%rsp)
  nopl   0x0(%rax,%rax,1)
L952:
  mov    %r13,%rax
  sub    %r9,%rax
  mov    %rax,-0x60(%rsp)
  mov    %r14,%rax
  sub    %rdi,%rax
  mov    %rax,-0x58(%rsp)
  mov    -0x38(%rsp),%rax
  lea    (%rax,%r13,1),%rdx
  mov    -0x18(%rsp),%rax
  add    %r14,%rax
  cmp    %rax,%rdx
  lea    0x1(%r14),%rax
  setbe  %dl
  cmp    %rax,%r13
  setae  %al
  or     %dl,%al
  je     L11
  cmpl   $0x2,-0x8(%rsp)
  jbe    L11
  cmpl   $0x6,-0x8(%rsp)
  jbe    L179
  mov    (%rsp),%rax
  lea    -0xf(%r14),%r10
  lea    (%rax,%r13,1),%r15
  mov    %r13,%rax
  nopl   0x0(%rax)
L606:
  movdqu (%rax),%xmm0
  add    $0x10,%rax
  sub    $0x10,%r10
  pextrw $0x5,%xmm0,%ebx
  pextrw $0x1,%xmm0,%ecx
  pextrw $0x6,%xmm0,%ebp
  pextrw $0x3,%xmm0,%r8d
  pextrw $0x7,%xmm0,%r12d
  pextrw $0x4,%xmm0,%r11d
  pextrw $0x2,%xmm0,%esi
  pextrw $0x0,%xmm0,%edx
  movd   %ebx,%xmm3
  movd   %r12d,%xmm0
  movd   %r8d,%xmm1
  movd   %ecx,%xmm2
  pinsrw $0x1,%ebp,%xmm0
  pinsrw $0x1,%r11d,%xmm3
  pinsrw $0x1,%esi,%xmm1
  pinsrw $0x1,%edx,%xmm2
  punpckldq %xmm3,%xmm0
  punpckldq %xmm2,%xmm1
  punpcklqdq %xmm1,%xmm0
  movups %xmm0,0x10(%r10)
  cmp    %r15,%rax
  jne    L606
  mov    -0x4(%rsp),%eax
  mov    -0x44(%rsp),%edx
  mov    -0x50(%rsp),%ecx
  mov    -0x10(%rsp),%esi
  add    %eax,%edx
  sub    %eax,%ecx
  mov    %esi,%eax
  cmp    %eax,-0x6c(%rsp)
  je     L748
  cmpl   $0x2,0x18(%rsp)
  mov    0x8(%rsp),%r8d
  jbe    L233
L620:
  mov    -0x60(%rsp),%r10
  add    %rax,%rax
  add    %r9,%r10
  movq   (%r10,%rax,1),%xmm0
  mov    %rdi,%r10
  sub    %rax,%r10
  mov    -0x58(%rsp),%rax
  pshuflw $0x1b,%xmm0,%xmm0
  movq   %xmm0,-0x7(%r10,%rax,1)
  mov    %r8d,%eax
  and    $0xfffffffc,%eax
  lea    (%rax,%rax,1),%r10d
  add    %eax,%esi
  add    %r10d,%edx
  sub    %r10d,%ecx
  cmp    %eax,%r8d
  je     L748
L233:
  lea    0x1(%rdx),%eax
  movslq %ecx,%r8
  mov    -0x6c(%rsp),%ebx
  cltq
  movzbl (%r9,%rax,1),%eax
  mov    %al,-0x1(%rdi,%r8,1)
  lea    0x2(%rdx),%eax
  cltq
  movzbl (%r9,%rax,1),%eax
  mov    %al,(%rdi,%r8,1)
  lea    0x1(%rsi),%r8d
  lea    -0x2(%rcx),%eax
  cmp    %r8d,%ebx
  jle    L748
  lea    0x3(%rdx),%r8d
  cltq
  add    $0x2,%esi
  sub    $0x4,%ecx
  movslq %r8d,%r8
  movzbl (%r9,%r8,1),%r8d
  mov    %r8b,-0x1(%rdi,%rax,1)
  lea    0x4(%rdx),%r8d
  movslq %r8d,%r8
  movzbl (%r9,%r8,1),%r8d
  mov    %r8b,(%rdi,%rax,1)
  cmp    %esi,%ebx
  jle    L748
  lea    0x5(%rdx),%eax
  add    $0x6,%edx
  movslq %ecx,%rcx
  cltq
  movslq %edx,%rdx
  movzbl (%r9,%rax,1),%eax
  mov    %al,-0x1(%rdi,%rcx,1)
  movzbl (%r9,%rdx,1),%eax
  mov    %al,(%rdi,%rcx,1)
L748:
  mov    -0x20(%rsp),%ebx
  addl   $0x1,-0x68(%rsp)
  add    %ebx,-0x44(%rsp)
  mov    -0x68(%rsp),%eax
  mov    -0x40(%rsp),%ebx
  add    -0x30(%rsp),%r14
  add    %ebx,-0x50(%rsp)
  add    -0x28(%rsp),%r13
  cmp    %eax,-0x48(%rsp)
  jne    L952
  jmp    L659
  nopl   (%rax)
L522:
  not    %r12d
  and    $0x1,%r12d
  and    $0x2,%r8d
  je     L142
  mov    %r12d,%eax
  movl   $0x0,-0x60(%rsp)
  or     %r10d,%eax
  jne    L789
L814:
  mov    -0x50(%rsp),%edx
  add    $0x40,%rsp
  mov    %r9,%rsi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1050 <memcpy@plt>
  nopw   0x0(%rax,%rax,1)
L128:
  mov    -0x28(%rsp),%rbx
  movslq %r13d,%rsi
  lea    0x1(%rdx),%rax
  add    %rdi,%rsi
  lea    (%rbx,%rdx,1),%r8
  nopl   0x0(%rax,%rax,1)
L676:
  movzbl -0x1(%rax),%r10d
  add    $0x2,%rax
  add    $0x2,%rsi
  mov    %r10b,-0x1(%rsi)
  movzbl -0x2(%rax),%r10d
  mov    %r10b,(%rsi)
  cmp    %r8,%rax
  jne    L676
  jmp    L58
  nopl   0x0(%rax,%rax,1)
L735:
  mov    -0x40(%rsp),%rcx
  mov    %rbx,%rdx
  lea    0x1(%r11),%eax
  sub    %r10,%rdx
  cltq
  add    %r10,%rcx
  add    %rdi,%rdx
  nopw   0x0(%rax,%rax,1)
L546:
  movzbl (%r9,%rax,1),%r8d
  mov    %r8b,-0x1(%rdx,%rax,1)
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L546
  jmp    L185
  nopl   0x0(%rax,%rax,1)
L362:
  lea    -0x1(%rcx),%eax
  mov    %eax,-0x8(%rsp)
  cmp    $0x1,%r12d
  je     L927
  cmpl   $0x1,-0x60(%rsp)
  je     L474
  mov    %r14d,-0x58(%rsp)
  lea    -0x1(%r14),%eax
  test   %r14d,%r14d
  jle    L424
  mov    $0xffffffffffffffff,%r13
  test   %esi,%esi
  jle    L424
L124:
  cltq
  lea    0x1(%rsi),%r15d
  movslq -0x58(%rsp),%r10
  mov    $0xffffffff,%ebp
  lea    (%rdi,%rax,1),%r11
  xor    %ebx,%ebx
  add    %r9,%r15
  xchg   %ax,%ax
L791:
  mov    %ecx,-0x68(%rsp)
  movslq %ebp,%r8
  mov    %r11,%rdx
  lea    0x1(%r9,%r8,1),%rax
  add    %r15,%r8
  nopw   0x0(%rax,%rax,1)
L173:
  movzbl (%rax),%ecx
  add    $0x1,%rax
  mov    %cl,(%rdx)
  add    %r10,%rdx
  cmp    %r8,%rax
  jne    L173
  add    $0x1,%ebx
  mov    -0x68(%rsp),%ecx
  add    %esi,%ebp
  add    %r13,%r11
  cmp    %ebx,%r14d
  jg     L791
  cmp    $0x1,%r12d
  je     L447
  cmpl   $0x1,-0x60(%rsp)
  je     L975
L424:
  lea    -0x2(%rcx,%r14,1),%eax
  movl   $0xfffffffe,-0x30(%rsp)
  mov    %eax,-0x44(%rsp)
L700:
  mov    -0x48(%rsp),%esi
  test   %esi,%esi
  jle    L659
  mov    -0x6c(%rsp),%r15d
  test   %r15d,%r15d
  jle    L659
  lea    (%r15,%r15,1),%eax
  movslq %ecx,%rcx
  xor    %esi,%esi
  movl   $0x0,-0x60(%rsp)
  mov    %eax,-0x4(%rsp)
  cltq
  lea    (%r9,%rcx,1),%r8
  movslq %r15d,%rcx
  mov    %rax,-0x28(%rsp)
  movslq -0x30(%rsp),%rax
  lea    -0x1(%rcx),%rdx
  lea    -0x1(%rcx,%rcx,1),%rcx
  mov    %rcx,(%rsp)
  mov    %rax,-0x10(%rsp)
  movslq -0x44(%rsp),%rax
  lea    (%rdi,%rax,1),%r13
  lea    -0x1(%r15),%eax
  mov    %eax,-0x38(%rsp)
  movslq -0x58(%rsp),%rax
  imul   %rax,%rdx
  test   %eax,%eax
  lea    0x1(%rax),%rcx
  mov    %rax,%r10
  mov    %rcx,0x8(%rsp)
  lea    0x0(,%rax,8),%rbx
  lea    (%rax,%rax,2),%rbp
  lea    (%rax,%rax,4),%r12
  lea    0x0(%rbp,%rbp,1),%r14
  cmovs  %rdx,%rsi
  add    $0x1,%rdx
  test   %eax,%eax
  mov    %rsi,-0x18(%rsp)
  mov    $0x1,%esi
  cmovns %rdx,%rsi
  mov    %r15d,%edx
  shr    $0x3,%edx
  mov    %rsi,-0x20(%rsp)
  mov    %r15d,%esi
  sub    $0x1,%edx
  mov    %rbx,%r15
  mov    %esi,%r11d
  mov    %rdx,-0x68(%rsp)
  mov    %esi,%ecx
  sub    %rax,%r15
  and    $0xfffffff8,%r11d
  imul   %r11d,%r10d
  lea    (%r11,%r11,1),%edx
  sub    %r11d,%ecx
  mov    %r11d,0x18(%rsp)
  mov    %edx,0x1c(%rsp)
  mov    -0x68(%rsp),%rdx
  mov    %ecx,0x28(%rsp)
  sub    $0x1,%ecx
  add    $0x1,%rdx
  mov    %ecx,0x2c(%rsp)
  shl    $0x4,%rdx
  mov    %r10d,0x10(%rsp)
  mov    %rdx,0x20(%rsp)
  mov    %esi,%edx
  lea    (%rdx,%rdx,1),%rcx
  mov    %rcx,0x30(%rsp)
  mov    %r13,%rcx
  mov    %rbx,%r13
  mov    %rcx,%rbx
  nopl   0x0(%rax,%rax,1)
L989:
  mov    %r8,%rcx
  mov    -0x20(%rsp),%rsi
  mov    %rbx,%r11
  sub    %r9,%rcx
  sub    %rdi,%r11
  mov    %rcx,-0x50(%rsp)
  mov    -0x18(%rsp),%rcx
  lea    (%rcx,%rbx,1),%rdx
  mov    (%rsp),%rcx
  add    %r8,%rcx
  cmp    %rcx,%rdx
  lea    (%rsi,%r11,1),%rdx
  seta   %cl
  add    %rdi,%rdx
  cmp    %rdx,%r8
  seta   %dl
  or     %cl,%dl
  je     L292
  cmpq   $0x2,0x8(%rsp)
  seta   %cl
  cmpl   $0x2,-0x38(%rsp)
  seta   %dl
  test   %dl,%cl
  je     L292
  cmpl   $0x6,-0x38(%rsp)
  jbe    L314
  mov    0x20(%rsp),%rcx
  mov    %rbx,%rdx
  lea    (%rcx,%r8,1),%r10
  mov    %r8,%rcx
  nopl   0x0(%rax)
L252:
  movdqu (%rcx),%xmm0
  add    $0x10,%rcx
  pextrw $0x0,%xmm0,%esi
  mov    %si,(%rdx)
  pextrw $0x1,%xmm0,%esi
  mov    %si,(%rdx,%rax,1)
  pextrw $0x2,%xmm0,%esi
  mov    %si,(%rdx,%rax,2)
  pextrw $0x3,%xmm0,%esi
  mov    %si,(%rdx,%rbp,1)
  pextrw $0x4,%xmm0,%esi
  mov    %si,(%rdx,%rax,4)
  pextrw $0x5,%xmm0,%esi
  mov    %si,(%rdx,%r12,1)
  pextrw $0x6,%xmm0,%esi
  mov    %si,(%rdx,%r14,1)
  pextrw $0x7,%xmm0,%esi
  mov    %si,(%rdx,%r15,1)
  add    %r13,%rdx
  cmp    %rcx,%r10
  jne    L252
  mov    0x18(%rsp),%edx
  mov    -0x6c(%rsp),%r10d
  mov    0x1c(%rsp),%esi
  mov    -0x44(%rsp),%ecx
  add    -0x8(%rsp),%esi
  add    0x10(%rsp),%ecx
  cmp    %r10d,%edx
  je     L888
  mov    0x28(%rsp),%r10d
  cmpl   $0x2,0x2c(%rsp)
  mov    %r10d,-0x68(%rsp)
  jbe    L617
  mov    %edx,-0x40(%rsp)
  mov    %edx,%r10d
L324:
  mov    %rax,%rdx
  imul   %r10,%rdx
  lea    (%r9,%r10,2),%r10
  add    %r11,%rdx
  mov    -0x50(%rsp),%r11
  add    %rdi,%rdx
  movq   (%r10,%r11,1),%xmm0
  mov    -0x40(%rsp),%r11d
  pextrw $0x0,%xmm0,%r10d
  mov    %r10w,(%rdx)
  add    %rax,%rdx
  pextrw $0x1,%xmm0,%r10d
  mov    %r10w,(%rdx)
  add    %rax,%rdx
  pextrw $0x2,%xmm0,%r10d
  mov    %r10w,(%rdx)
  pextrw $0x3,%xmm0,%r10d
  mov    %r10w,(%rdx,%rax,1)
  mov    -0x68(%rsp),%edx
  mov    -0x58(%rsp),%r10d
  and    $0xfffffffc,%edx
  imul   %edx,%r10d
  add    %edx,%r11d
  lea    (%rsi,%rdx,2),%esi
  add    %r10d,%ecx
  cmp    -0x68(%rsp),%edx
  je     L888
L225:
  lea    0x1(%rsi),%edx
  movslq %ecx,%r10
  add    -0x58(%rsp),%ecx
  movslq %edx,%rdx
  movzbl (%r9,%rdx,1),%edx
  mov    %dl,(%rdi,%r10,1)
  lea    0x2(%rsi),%edx
  movslq %edx,%rdx
  movzbl (%r9,%rdx,1),%edx
  mov    %dl,0x1(%rdi,%r10,1)
  lea    0x1(%r11),%edx
  cmp    -0x6c(%rsp),%edx
  jge    L888
  lea    0x3(%rsi),%edx
  movslq %ecx,%r10
  add    $0x2,%r11d
  add    -0x58(%rsp),%ecx
  movslq %edx,%rdx
  movzbl (%r9,%rdx,1),%edx
  mov    %dl,(%rdi,%r10,1)
  lea    0x4(%rsi),%edx
  movslq %edx,%rdx
  movzbl (%r9,%rdx,1),%edx
  mov    %dl,0x1(%rdi,%r10,1)
  cmp    %r11d,-0x6c(%rsp)
  jle    L888
  lea    0x5(%rsi),%edx
  add    $0x6,%esi
  movslq %ecx,%rcx
  movslq %edx,%rdx
  movslq %esi,%rsi
  movzbl (%r9,%rdx,1),%edx
  mov    %dl,(%rdi,%rcx,1)
  movzbl (%r9,%rsi,1),%edx
  mov    %dl,0x1(%rdi,%rcx,1)
L888:
  mov    -0x4(%rsp),%esi
  addl   $0x1,-0x60(%rsp)
  add    %esi,-0x8(%rsp)
  mov    -0x60(%rsp),%ecx
  mov    -0x30(%rsp),%esi
  add    -0x28(%rsp),%r8
  add    %esi,-0x44(%rsp)
  add    -0x10(%rsp),%rbx
  cmp    %ecx,-0x48(%rsp)
  jne    L989
  jmp    L659
  cs nopw 0x0(%rax,%rax,1)
L142:
  movl   $0x1,-0x60(%rsp)
  jmp    L789
L927:
  cmpl   $0x1,-0x60(%rsp)
  je     L189
  mov    %r14d,%eax
  mov    $0xffffffffffffffff,%r13
  neg    %eax
  mov    %eax,-0x58(%rsp)
  mov    -0x8(%rsp),%eax
  test   %r14d,%r14d
  jle    L560
L60:
  test   %esi,%esi
  jg     L124
L447:
  cmpl   $0x1,-0x60(%rsp)
  je     L683
L560:
  mov    -0x50(%rsp),%eax
  movl   $0xfffffffe,-0x30(%rsp)
  sub    $0x2,%eax
  mov    %eax,-0x44(%rsp)
  jmp    L700
L924:
  mov    %esi,%eax
  neg    %eax
  mov    %eax,-0x40(%rsp)
  lea    -0x1(%rcx),%eax
  test   %r14d,%r14d
  jle    L625
  lea    -0x1(%rsi),%edx
  jmp    L603
  nopl   0x0(%rax,%rax,1)
L292:
  mov    0x30(%rsp),%rcx
  mov    %r8,%rdx
  lea    (%rcx,%r8,1),%rsi
  mov    %rbx,%rcx
  nop
L157:
  movzbl (%rdx),%r10d
  add    $0x2,%rdx
  mov    %r10b,(%rcx)
  movzbl -0x1(%rdx),%r10d
  mov    %r10b,0x1(%rcx)
  add    %rax,%rcx
  cmp    %rsi,%rdx
  jne    L157
  jmp    L888
  nopl   0x0(%rax)
L11:
  mov    0x10(%rsp),%rbx
  lea    0x1(%r13),%rax
  mov    %r14,%rdx
  lea    (%rbx,%r13,1),%rcx
  nopl   0x0(%rax,%rax,1)
L167:
  movzbl -0x1(%rax),%esi
  add    $0x2,%rax
  sub    $0x2,%rdx
  mov    %sil,0x1(%rdx)
  movzbl -0x2(%rax),%esi
  mov    %sil,0x2(%rdx)
  cmp    %rcx,%rax
  jne    L167
  jmp    L748
L314:
  mov    -0x6c(%rsp),%edx
  movl   $0x0,-0x40(%rsp)
  xor    %r10d,%r10d
  mov    -0x8(%rsp),%esi
  mov    -0x44(%rsp),%ecx
  mov    %edx,-0x68(%rsp)
  jmp    L324
L629:
  mov    %esi,%r14d
  mov    %r11d,%ecx
  xor    %edx,%edx
  xor    %r8d,%r8d
  jmp    L995
L179:
  mov    -0x6c(%rsp),%r8d
  mov    -0x50(%rsp),%ecx
  xor    %esi,%esi
  xor    %eax,%eax
  mov    -0x44(%rsp),%edx
  jmp    L620
L757:
  mov    -0x6c(%rsp),%r12d
  mov    %r11d,%r8d
  xor    %eax,%eax
  xor    %r10d,%r10d
  jmp    L762
L207:
  mov    %r13d,%r8d
  jmp    L449
L617:
  mov    %edx,%r11d
  jmp    L225
L625:
  mov    $0xffffffff,%r15d
L176:
  mov    -0x50(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x50(%rsp)
  jmp    L158
L474:
  test   %r14d,%r14d
  jle    L874
  mov    %r14d,-0x58(%rsp)
  mov    $0x1,%r13d
  mov    %r12d,%eax
  test   %esi,%esi
  jg     L124
L975:
  mov    %ecx,-0x44(%rsp)
  movl   $0x2,-0x30(%rsp)
  jmp    L700
L189:
  mov    %r14d,%ebx
  mov    %ecx,%eax
  mov    $0x1,%r13d
  neg    %ebx
  sub    %r14d,%eax
  mov    %ebx,-0x58(%rsp)
  test   %r14d,%r14d
  jg     L60
L683:
  mov    -0x50(%rsp),%eax
  movl   $0x2,-0x30(%rsp)
  sub    %r14d,%eax
  mov    %eax,-0x44(%rsp)
  jmp    L700
L737:
  mov    $0xffffffff,%r11d
  jmp    L279
L874:
  mov    %r14d,-0x58(%rsp)
  mov    %ecx,-0x44(%rsp)
  movl   $0x2,-0x30(%rsp)
  jmp    L700
```

assistant: ```c
void NV21Transform(const unsigned char *src, const unsigned char *dst, int srcWidth, int srcHeight, int directionFlag) {
  unsigned char *cdst = dst;
  unsigned char *csrc = src;
  int rotate = 0;
  int hflip = 0;
  int vflip = 0;
  if ((0x10 & directionFlag) != 0 || (0x40 & directionFlag) != 0) {
    rotate = 0;
  } else {
    rotate = 1;
  }
  if ((0x10 & directionFlag) != 0 || (0x20 & directionFlag) != 0) {
    hflip = ((0x01 & directionFlag) != 0) ? 1 : 0;
    vflip = ((0x02 & directionFlag) != 0) ? 1 : 0;
  } else {
    if (((0x02 & directionFlag) != 0)) {
      hflip = ((0x01 & directionFlag) != 0) ? 0 : 1;
      vflip = ((0x01 & directionFlag) != 0) ? 0 : 0;
    } else {
      hflip = ((0x01 & directionFlag) != 0) ? 0 : 1;
      vflip = ((0x01 & directionFlag) != 0) ? 1 : 1;
    }
  }
  int ySize = srcHeight * srcWidth;
  int totalSize = ySize * 3 / 2;
  int yStart, yStep, xStep;
  if (rotate == 0 && hflip == 0 && vflip == 0) {
    memcpy(cdst, csrc, totalSize);
    return;
  }
  int srcX, srcY, srcCurr;
  int dstX, dstY, dstCurr;
  int halfHeight = srcHeight >> 1, halfWidth = srcWidth >> 1;
  if (rotate == 1) {
    if (hflip == 1) {
      yStart = vflip == 1 ? ySize - srcHeight : ySize - 1;
      yStep = vflip == 1 ? 1 : -1;
      xStep = -srcHeight;
    } else {
      yStart = vflip == 1 ? 0 : srcHeight - 1;
      yStep = vflip == 1 ? 1 : -1;
      xStep = srcHeight;
    }
    srcCurr = -1;
    for (srcY = 0; srcY < srcHeight; ++srcY) {
      dstCurr = yStart;
      for (srcX = 0; srcX < srcWidth; ++srcX) {
        cdst[dstCurr] = csrc[++srcCurr];
        dstCurr += xStep;
      }
      yStart += yStep;
    }
    if (hflip == 1) {
      yStart = vflip == 1 ? totalSize - srcHeight : totalSize - 2;
      yStep = vflip == 1 ? 2 : -2;
      xStep = -srcHeight;
    } else {
      yStart = vflip == 1 ? ySize : ySize + srcHeight - 2;
      yStep = vflip == 1 ? 2 : -2;
      xStep = srcHeight;
    }
    srcCurr = ySize - 1;
    for (srcY = 0; srcY < halfHeight; ++srcY) {
      dstCurr = yStart;
      for (srcX = 0; srcX < halfWidth; ++srcX) {
        cdst[dstCurr] = csrc[++srcCurr];
        cdst[dstCurr + 1] = csrc[++srcCurr];
        dstCurr += xStep;
      }
      yStart += yStep;
    }
  } else {
    if (vflip == 1 && hflip == 0) {
      yStart = ySize - srcWidth;
      srcCurr = -1;
      for (srcY = 0; srcY < srcHeight; ++srcY) {
        dstCurr = yStart - 1;
        for (srcX = 0; srcX < srcWidth; ++srcX) {
          cdst[++dstCurr] = csrc[++srcCurr];
        }
        yStart -= srcWidth;
      }
      yStart = totalSize - srcWidth;
      for (srcY = 0; srcY < halfHeight; ++srcY) {
        dstCurr = yStart - 1;
        for (srcX = 0; srcX < halfWidth; ++srcX) {
          cdst[++dstCurr] = csrc[++srcCurr];
          cdst[++dstCurr] = csrc[++srcCurr];
        }
        yStart -= srcWidth;
      }
    } else {
      yStep = vflip == 1 ? -srcWidth : srcWidth;
      yStart = vflip == 1 ? ySize - 1 : srcWidth - 1;
      srcCurr = -1;
      for (srcY = 0; srcY < srcHeight; ++srcY) {
        dstCurr = yStart + 1;
        for (srcX = 0; srcX < srcWidth; ++srcX) {
          cdst[--dstCurr] = csrc[++srcCurr];
        }
        yStart += yStep;
      }
      yStart = vflip == 1 ? totalSize - 1 : ySize + srcWidth - 1;
      for (srcY = 0; srcY < halfHeight; ++srcY) {
        dstCurr = yStart;
        for (srcX = 0; srcX < halfWidth; ++srcX) {
          cdst[dstCurr - 1] = csrc[++srcCurr];
          cdst[dstCurr] = csrc[++srcCurr];
          dstCurr -= 2;
        }
        yStart += yStep;
      }
    }
  }
}
```