user: What is the c source code of the assembly code below?

```asm
<utf8char>:
  endbr64
  lea    -0xfffe(%rsi),%rdx
  mov    %rsi,%rax
  cmp    $0x1,%rdx
  jbe    L114
  cmp    $0xd,%rsi
  jne    L11
L114:
  mov    %rdi,%rax
  ret
  xchg   %ax,%ax
L11:
  cmp    $0x7f,%rsi
  jbe    L14
  cmp    $0x7ff,%rsi
  ja     L60
  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    L114
  nopl   0x0(%rax,%rax,1)
L14:
  mov    %sil,(%rdi)
  add    $0x1,%rdi
  mov    %rdi,%rax
  ret
  nopl   0x0(%rax,%rax,1)
L60:
  cmp    $0xffff,%rsi
  jbe    L86
  cmp    $0x1fffff,%rsi
  ja     L58
  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    L114
  nopl   0x0(%rax)
L86:
  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    L114
  nopw   0x0(%rax,%rax,1)
L58:
  cmp    $0x3ffffff,%rsi
  ja     L51
  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    L114
  nopl   0x0(%rax,%rax,1)
L51:
  cmp    $0x7fffffff,%rsi
  ja     L114
  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    L114
```

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;
}
```