user: Demonstrate the C code that generates the assembly output below:

```asm
<_hs_text_decode_utf8_int>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,0x8(%rsp)
  mov    %rsi,%r15
  mov    %rdx,0x10(%rsp)
  mov    %r8,%r14
  mov    %r9,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    (%rsi),%rax
  lea    (%rdi,%rax,8),%rbx
  mov    (%rdx),%rdx
  mov    (%r9),%eax
  mov    %eax,0x20(%rsp)
  mov    (%r8),%eax
  mov    %eax,0x24(%rsp)
  cmp    %rcx,%rdx
  jae    L84
  mov    %rcx,%r13
  mov    %rdx,(%rsp)
  lea    -0x10(%rcx),%r12
  jmp    L13
L96:
  cmp    %rdx,%r12
  jbe    L120
L29:
  mov    (%rdx),%eax
  mov    %eax,0x24(%rsp)
  test   $0x80808080,%eax
  jne    L93
  add    $0x10,%rdx
  movzbl %al,%ecx
  mov    %rcx,(%rbx)
  movzbl %ah,%ecx
  movslq %ecx,%rcx
  mov    %rcx,0x8(%rbx)
  mov    %eax,%ecx
  sar    $0x10,%ecx
  movzbl %cl,%ecx
  mov    %rcx,0x10(%rbx)
  add    $0x20,%rbx
  shr    $0x18,%eax
  cltq
  mov    %rax,-0x8(%rbx)
  cmp    %r12,%rdx
  jb     L29
  mov    %rdx,(%rsp)
  jmp    L81
L120:
  mov    %rdx,(%rsp)
  jmp    L81
L93:
  mov    %rdx,(%rsp)
  jmp    L81
L130:
  mov    0x24(%rsp),%eax
  cmp    $0xffff,%eax
  jg     L3
  cltq
  mov    %rax,(%rbx)
  mov    %rbp,(%rsp)
  lea    0x8(%rbx),%rbx
L94:
  cmp    %rbp,%r13
  jbe    L88
  mov    %rbp,%rdx
L13:
  cmpl   $0x0,0x20(%rsp)
  je     L96
L81:
  lea    0x4(%rdx),%rbp
  lea    0x24(%rsp),%rsi
  lea    0x20(%rsp),%rdi
  mov    (%rdx),%edx
  call   <decode@plt>
  test   %rax,%rax
  je     L130
  cmpl   $0xc,0x20(%rsp)
  jne    L94
L88:
  sub    0x8(%rsp),%rbx
  sar    $0x3,%rbx
  mov    %rbx,(%r15)
  mov    0x24(%rsp),%eax
  mov    %eax,(%r14)
  mov    0x20(%rsp),%eax
  mov    0x18(%rsp),%rsi
  mov    %eax,(%rsi)
  mov    0x10(%rsp),%rax
  mov    (%rsp),%rsi
  mov    %rsi,(%rax)
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L53
  mov    %rbp,%rax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L3:
  mov    %eax,%edx
  sar    $0xa,%edx
  add    $0xd7c0,%edx
  movslq %edx,%rdx
  mov    %rdx,(%rbx)
  and    $0x3ff,%eax
  lea    0xdc00(%rax),%rax
  mov    %rax,0x8(%rbx)
  mov    %rbp,(%rsp)
  lea    0x10(%rbx),%rbx
  jmp    L94
L84:
  mov    %rdx,(%rsp)
  mov    %rdx,%rbp
  jmp    L88
L53:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
uint8_t const *_hs_text_decode_utf8_int(uint16_t *const dest, size_t *destoff, const uint8_t **src, const uint8_t *srcend, uint32_t *codepoint0, uint32_t *state0) {
  uint16_t *d = dest + *destoff;
  const uint8_t *s = *src, *last = *src;
  uint32_t state = *state0;
  uint32_t codepoint = *codepoint0;
  while (s < srcend) {
    if (state == 0) {
      while (s < srcend - 4) {
        codepoint = *((uint32_t *)s);
        if ((codepoint & 0x80808080) != 0)
          break;
        s += 4;
        *d++ = (uint16_t)(codepoint & 0xff);
        *d++ = (uint16_t)((codepoint >> 8) & 0xff);
        *d++ = (uint16_t)((codepoint >> 16) & 0xff);
        *d++ = (uint16_t)((codepoint >> 24) & 0xff);
      }
      last = s;
    }
    if (decode(&state, &codepoint, *s++) != 0) {
      if (state != 12)
        continue;
      break;
    }
    if (codepoint <= 0xffff)
      *d++ = (uint16_t)codepoint;
    else {
      *d++ = (uint16_t)(0xD7C0 + (codepoint >> 10));
      *d++ = (uint16_t)(0xDC00 + (codepoint & 0x3FF));
    }
    last = s;
  }
  *destoff = d - dest;
  *codepoint0 = codepoint;
  *state0 = state;
  *src = last;
  return s;
}
```