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

```asm
<utf8char>:
  endbr64
  lea    -0xfffe(%rsi),%rdx
  mov    %rsi,%rax
  cmp    $0x1,%rdx
  jbe    L9
  cmp    $0xd,%rsi
  jne    L17
L9:
  mov    %rdi,%rax
  ret
  xchg   %ax,%ax
L17:
  cmp    $0x7f,%rsi
  jbe    L107
  cmp    $0x7ff,%rsi
  ja     L98
  mov    %rsi,%rdx
  and    $0x3f,%eax
  add    $0x2,%rdi
  shr    $0x6,%rdx
  add    $0xffffff80,%eax
  sub    $0x40,%edx
  mov    %al,-0x1(%rdi)
  mov    %dl,-0x2(%rdi)
  jmp    L9
  nopl   0x0(%rax,%rax,1)
L107:
  mov    %sil,(%rdi)
  add    $0x1,%rdi
  mov    %rdi,%rax
  ret
  nopl   0x0(%rax,%rax,1)
L98:
  cmp    $0xffff,%rsi
  jbe    L29
  cmp    $0x1fffff,%rsi
  ja     L61
  mov    %rsi,%rdx
  and    $0x3f,%eax
  add    $0x4,%rdi
  shr    $0x12,%rdx
  add    $0xffffff80,%eax
  sub    $0x10,%edx
  mov    %al,-0x1(%rdi)
  mov    %dl,-0x4(%rdi)
  mov    %rsi,%rdx
  shr    $0xc,%rdx
  and    $0x3f,%edx
  add    $0xffffff80,%edx
  mov    %dl,-0x3(%rdi)
  mov    %rsi,%rdx
  shr    $0x6,%rdx
  and    $0x3f,%edx
  add    $0xffffff80,%edx
  mov    %dl,-0x2(%rdi)
  jmp    L9
  nopl   0x0(%rax)
L29:
  mov    %rsi,%rdx
  and    $0x3f,%eax
  add    $0x3,%rdi
  shr    $0xc,%rdx
  add    $0xffffff80,%eax
  sub    $0x20,%edx
  mov    %al,-0x1(%rdi)
  mov    %dl,-0x3(%rdi)
  mov    %rsi,%rdx
  shr    $0x6,%rdx
  and    $0x3f,%edx
  add    $0xffffff80,%edx
  mov    %dl,-0x2(%rdi)
  jmp    L9
  nopw   0x0(%rax,%rax,1)
L61:
  cmp    $0x3ffffff,%rsi
  ja     L32
  mov    %rsi,%rdx
  and    $0x3f,%eax
  add    $0x5,%rdi
  shr    $0x18,%rdx
  add    $0xffffff80,%eax
  sub    $0x8,%edx
  mov    %al,-0x1(%rdi)
  mov    %dl,-0x5(%rdi)
  mov    %rsi,%rdx
  shr    $0x12,%rdx
  and    $0x3f,%edx
  add    $0xffffff80,%edx
  mov    %dl,-0x4(%rdi)
  mov    %rsi,%rdx
  shr    $0xc,%rdx
  and    $0x3f,%edx
  add    $0xffffff80,%edx
  mov    %dl,-0x3(%rdi)
  mov    %rsi,%rdx
  shr    $0x6,%rdx
  and    $0x3f,%edx
  add    $0xffffff80,%edx
  mov    %dl,-0x2(%rdi)
  jmp    L9
  nopl   0x0(%rax,%rax,1)
L32:
  cmp    $0x7fffffff,%rsi
  ja     L9
  mov    %rsi,%rdx
  and    $0x3f,%eax
  add    $0x6,%rdi
  shr    $0x1e,%rdx
  add    $0xffffff80,%eax
  sub    $0x4,%edx
  mov    %al,-0x1(%rdi)
  mov    %dl,-0x6(%rdi)
  mov    %rsi,%rdx
  shr    $0x18,%rdx
  and    $0x3f,%edx
  add    $0xffffff80,%edx
  mov    %dl,-0x5(%rdi)
  mov    %rsi,%rdx
  shr    $0x12,%rdx
  and    $0x3f,%edx
  add    $0xffffff80,%edx
  mov    %dl,-0x4(%rdi)
  mov    %rsi,%rdx
  shr    $0xc,%rdx
  and    $0x3f,%edx
  add    $0xffffff80,%edx
  mov    %dl,-0x3(%rdi)
  mov    %rsi,%rdx
  shr    $0x6,%rdx
  and    $0x3f,%edx
  add    $0xffffff80,%edx
  mov    %dl,-0x2(%rdi)
  jmp    L9
```

assistant: ```c
unsigned char *utf8char(unsigned char *dst, unsigned long value) {
  if (value == '\r' || value == 0xFFFE || value == 0xFFFF) {
    ;
  } else if (value < 0x80) {
    *dst++ = value;
  } else if (value < 0x800) {
    *dst++ = 0xC0 + ((value >> 6) & 0x1F);
    *dst++ = 0x80 + ((value >> 0) & 0x3F);
  } else if (value < 0x10000) {
    *dst++ = 0xE0 + ((value >> 12) & 0x0F);
    *dst++ = 0x80 + ((value >> 6) & 0x3F);
    *dst++ = 0x80 + ((value >> 0) & 0x3F);
  } else if (value < 0x200000) {
    *dst++ = 0xF0 + ((value >> 18) & 0x07);
    *dst++ = 0x80 + ((value >> 12) & 0x3F);
    *dst++ = 0x80 + ((value >> 6) & 0x3F);
    *dst++ = 0x80 + ((value >> 0) & 0x3F);
  } else if (value < 0x4000000) {
    *dst++ = 0xF8 + ((value >> 24) & 0x03);
    *dst++ = 0x80 + ((value >> 18) & 0x3F);
    *dst++ = 0x80 + ((value >> 12) & 0x3F);
    *dst++ = 0x80 + ((value >> 6) & 0x3F);
    *dst++ = 0x80 + ((value >> 0) & 0x3F);
  } else if (value < 0x80000000) {
    *dst++ = 0xFC + ((value >> 30) & 0x01);
    *dst++ = 0x80 + ((value >> 24) & 0x3F);
    *dst++ = 0x80 + ((value >> 18) & 0x3F);
    *dst++ = 0x80 + ((value >> 12) & 0x3F);
    *dst++ = 0x80 + ((value >> 6) & 0x3F);
    *dst++ = 0x80 + ((value >> 0) & 0x3F);
  }
  return dst;
}
```