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

```asm
<convertFromUTF8ToUTF16>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  movq   $0x0,-0x30(%rbp)
  mov    -0x58(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x20(%rbp)
  jmp    L56
L66:
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x31(%rbp)
  cmpb   $0x0,-0x31(%rbp)
  je     L4
  cmpb   $0x0,-0x31(%rbp)
  js     L69
  movsbq -0x31(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  jmp    L55
L69:
  movsbl -0x31(%rbp),%eax
  and    $0xe0,%eax
  cmp    $0xc0,%eax
  jne    L104
  movsbl -0x31(%rbp),%eax
  shl    $0x6,%eax
  cltq
  and    $0x7c0,%eax
  mov    %rax,-0x28(%rbp)
  mov    -0x48(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x48(%rbp)
  movzbl (%rax),%eax
  mov    %al,-0x31(%rbp)
  movsbq -0x31(%rbp),%rax
  and    $0x3f,%eax
  or     %rax,-0x28(%rbp)
  jmp    L55
L104:
  movsbl -0x31(%rbp),%eax
  and    $0xf0,%eax
  cmp    $0xe0,%eax
  jne    L78
  movsbl -0x31(%rbp),%eax
  shl    $0xc,%eax
  cltq
  and    $0xffff,%eax
  mov    %rax,-0x28(%rbp)
  mov    -0x48(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x48(%rbp)
  movzbl (%rax),%eax
  mov    %al,-0x31(%rbp)
  movsbl -0x31(%rbp),%eax
  shl    $0x6,%eax
  cltq
  and    $0xfc0,%eax
  or     %rax,-0x28(%rbp)
  mov    -0x48(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x48(%rbp)
  movzbl (%rax),%eax
  mov    %al,-0x31(%rbp)
  movsbq -0x31(%rbp),%rax
  and    $0x3f,%eax
  or     %rax,-0x28(%rbp)
  jmp    L55
L78:
  movsbl -0x31(%rbp),%eax
  and    $0xf8,%eax
  cmp    $0xf0,%eax
  jne    L56
  movsbl -0x31(%rbp),%eax
  shl    $0x12,%eax
  cltq
  and    $0x1c0000,%eax
  mov    %rax,-0x28(%rbp)
  mov    -0x48(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x48(%rbp)
  movzbl (%rax),%eax
  mov    %al,-0x31(%rbp)
  movsbl -0x31(%rbp),%eax
  shl    $0xc,%eax
  cltq
  and    $0x3f000,%eax
  or     %rax,-0x28(%rbp)
  mov    -0x48(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x48(%rbp)
  movzbl (%rax),%eax
  mov    %al,-0x31(%rbp)
  movsbl -0x31(%rbp),%eax
  shl    $0x6,%eax
  cltq
  and    $0xfc0,%eax
  or     %rax,-0x28(%rbp)
  mov    -0x48(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x48(%rbp)
  movzbl (%rax),%eax
  mov    %al,-0x31(%rbp)
  movsbq -0x31(%rbp),%rax
  and    $0x3f,%eax
  or     %rax,-0x28(%rbp)
L55:
  mov    -0x30(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x18(%rbp)
  cmpq   $0xd7ff,-0x28(%rbp)
  jg     L97
  mov    -0x18(%rbp),%rax
  mov    -0x28(%rbp),%rdx
  mov    %rdx,(%rax)
  addq   $0x2,-0x30(%rbp)
  jmp    L56
L97:
  cmpq   $0xffff,-0x28(%rbp)
  jle    L56
  subq   $0x10000,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  sar    $0xa,%rax
  add    $0xd800,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x28(%rbp),%rax
  and    $0x3ff,%eax
  add    $0xdc00,%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  mov    -0x10(%rbp),%rdx
  mov    %rdx,(%rax)
  addq   $0x2,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  cmp    -0x20(%rbp),%rax
  jl     L123
  mov    -0x18(%rbp),%rax
  movq   $0x0,(%rax)
  subq   $0x2,-0x30(%rbp)
  jmp    L158
L123:
  addq   $0x8,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  mov    %rdx,(%rax)
  addq   $0x2,-0x30(%rbp)
L56:
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L158
  mov    -0x30(%rbp),%rax
  cmp    -0x20(%rbp),%rax
  jl     L66
  jmp    L158
L4:
  nop
L158:
  mov    -0x58(%rbp),%rax
  mov    -0x30(%rbp),%rdx
  mov    %rdx,(%rax)
  nop
  pop    %rbp
  ret
```

assistant: ```c
void convertFromUTF8ToUTF16(char *source, uint16_t *destination, uint32_t *destinationByteLen) {
  uint32_t desti = 0;
  uint32_t destinationMaxLen = *destinationByteLen;
  while (*source && desti < destinationMaxLen) {
    char a = *source;
    uint32_t codepoint;
    if (a == 0) {
      break;
    } else if ((a & 0x80) == 0) {
      codepoint = a;
    } else if ((a & 0xE0) == 0xC0) {
      codepoint = (a & 0x1F) << 6;
      a = *(source++);
      codepoint |= (a & 0x3F);
    } else if ((a & 0xF0) == 0xE0) {
      codepoint = (a & 0x0F) << 12;
      a = *(source++);
      codepoint |= (a & 0x3F) << 6;
      a = *(source++);
      codepoint |= (a & 0x3F);
    } else if ((a & 0xF8) == 0xF0) {
      codepoint = (a & 0x07) << 18;
      a = *(source++);
      codepoint |= (a & 0x3F) << 12;
      a = *(source++);
      codepoint |= (a & 0x3F) << 6;
      a = *(source++);
      codepoint |= (a & 0x3F);
    } else {
      continue;
    }
    uint16_t *dst = (uint16_t *)((char *)destination) + desti;
    if (codepoint <= 0xD7FF) {
      *dst = codepoint;
      desti += 2;
    } else if (codepoint >= 0x10000) {
      codepoint -= 0x10000;
      uint16_t first = (codepoint >> 10) + 0xD800;
      uint16_t second = (codepoint & 0x3FF) + 0xDC00;
      *dst = first;
      desti += 2;
      if (desti >= destinationMaxLen) {
        *dst = 0;
        desti -= 2;
        break;
      }
      dst++;
      *dst = second;
      desti += 2;
    }
  }
  *destinationByteLen = desti;
}
```