user: Translate the below assembly code into C programming language:

```asm
<unicode_to_glyphs>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0xb8,%rsp
  mov    %rdi,-0x88(%rbp)
  mov    %rsi,-0x90(%rbp)
  mov    %edx,-0x94(%rbp)
  mov    %rcx,-0xa0(%rbp)
  mov    %r8d,-0x98(%rbp)
  mov    %r9d,-0xa4(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x98(%rbp),%edx
  movslq %edx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x68(%rbp)
  movslq %edx,%rax
  mov    %rax,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  movslq %edx,%rax
  mov    %rax,-0xd0(%rbp)
  movq   $0x0,-0xc8(%rbp)
  movslq %edx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L192:
  cmp    %rdx,%rsp
  je     L246
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L192
L246:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L124
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L124:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x60(%rbp)
  mov    -0x98(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x58(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0xe0(%rbp)
  movq   $0x0,-0xd8(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L256:
  cmp    %rdx,%rsp
  je     L214
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L256
L214:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L218
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L218:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x50(%rbp)
  mov    -0x98(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L87:
  cmp    %rdx,%rsp
  je     L82
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L87
L82:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L244
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L244:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x98(%rbp),%edx
  mov    -0xa0(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <unicode_classify@plt>
  mov    %eax,-0x6c(%rbp)
  cmpl   $0x0,-0x6c(%rbp)
  jne    L32
  cmpl   $0x0,-0xa4(%rbp)
  jne    L32
  mov    -0x98(%rbp),%eax
  mov    %eax,-0x74(%rbp)
  mov    -0x74(%rbp),%eax
  cmp    -0x94(%rbp),%eax
  jle    L81
  mov    -0x94(%rbp),%eax
  mov    %eax,-0x74(%rbp)
L81:
  mov    -0x74(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edx
  mov    -0xa0(%rbp),%rcx
  mov    -0x88(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  cmpq   $0x0,-0x90(%rbp)
  je     L133
  movl   $0x0,-0x70(%rbp)
  jmp    L75
L175:
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x90(%rbp),%rax
  add    %rax,%rdx
  mov    -0x70(%rbp),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x70(%rbp)
L75:
  mov    -0x70(%rbp),%eax
  cmp    -0x74(%rbp),%eax
  jl     L175
L133:
  mov    -0x74(%rbp),%eax
  jmp    L197
L32:
  mov    -0x98(%rbp),%eax
  mov    %eax,-0x74(%rbp)
  movl   $0x0,-0x70(%rbp)
  jmp    L220
L172:
  mov    -0x70(%rbp),%ecx
  mov    -0x60(%rbp),%rax
  mov    -0x70(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x70(%rbp)
L220:
  mov    -0x70(%rbp),%eax
  cmp    -0x74(%rbp),%eax
  jl     L172
  mov    -0x74(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edx
  mov    -0xa0(%rbp),%rcx
  mov    -0x40(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x6c(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L194
  mov    -0x74(%rbp),%edx
  mov    -0x50(%rbp),%rcx
  mov    -0x40(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <arab_join@plt>
  mov    %eax,-0x74(%rbp)
L194:
  mov    -0x6c(%rbp),%eax
  and    $0x2,%eax
  test   %eax,%eax
  je     L165
  mov    -0x74(%rbp),%edx
  mov    -0x50(%rbp),%rcx
  mov    -0x40(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <devanagari_log2vis@plt>
  mov    %eax,-0x74(%rbp)
  mov    -0x50(%rbp),%rdx
  mov    -0x98(%rbp),%ecx
  mov    -0x60(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <compose_char_to_glyph@plt>
L165:
  mov    -0x74(%rbp),%edx
  mov    -0x50(%rbp),%rcx
  mov    -0x40(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <unicode_ligature@plt>
  mov    %eax,-0x74(%rbp)
  mov    -0x50(%rbp),%rdx
  mov    -0x98(%rbp),%ecx
  mov    -0x60(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <compose_char_to_glyph@plt>
  cmpl   $0x0,-0xa4(%rbp)
  je     L132
  mov    -0x74(%rbp),%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <bidi_reverse_buf@plt>
  movl   $0x0,-0x70(%rbp)
  jmp    L8
L226:
  mov    -0x74(%rbp),%ecx
  mov    -0x60(%rbp),%rax
  mov    -0x70(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    %ecx,%eax
  sub    %edx,%eax
  lea    -0x1(%rax),%ecx
  mov    -0x60(%rbp),%rax
  mov    -0x70(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x70(%rbp)
L8:
  mov    -0x70(%rbp),%eax
  cmp    -0x98(%rbp),%eax
  jl     L226
L132:
  mov    -0x74(%rbp),%eax
  cmp    -0x94(%rbp),%eax
  jle    L117
  mov    -0x94(%rbp),%eax
  mov    %eax,-0x74(%rbp)
L117:
  mov    -0x74(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%rcx
  mov    -0x88(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  cmpq   $0x0,-0x90(%rbp)
  je     L188
  mov    -0x98(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edx
  mov    -0x60(%rbp),%rcx
  mov    -0x90(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
L188:
  mov    -0x74(%rbp),%eax
L197:
  mov    %rbx,%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L238
  call   <__stack_chk_fail@plt>
L238:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

assistant: ```c
int unicode_to_glyphs(unsigned int *dst, unsigned int *char_to_glyph_pos, int dst_size, unsigned int *src, int src_size, int reverse) {
  int len, i;
  unsigned int ctog[src_size];
  unsigned int ctog1[src_size];
  unsigned int buf[src_size];
  int unicode_class;
  unicode_class = unicode_classify(src, src_size);
  if (unicode_class == 0 && !reverse) {
    len = src_size;
    if (len > dst_size)
      len = dst_size;
    memcpy(dst, src, len * sizeof(unsigned int));
    if (char_to_glyph_pos) {
      for (i = 0; i < len; i++)
        char_to_glyph_pos[i] = i;
    }
    return len;
  } else {
    len = src_size;
    for (i = 0; i < len; i++)
      ctog[i] = i;
    memcpy(buf, src, len * sizeof(int));
    if (unicode_class & 0x00000001) {
      len = arab_join(buf, ctog1, len);
    }
    if (unicode_class & 0x00000002) {
      len = devanagari_log2vis(buf, ctog1, len);
      compose_char_to_glyph(ctog, src_size, ctog1);
    }
    len = unicode_ligature(buf, ctog1, len);
    compose_char_to_glyph(ctog, src_size, ctog1);
    if (reverse) {
      bidi_reverse_buf(buf, len);
      for (i = 0; i < src_size; i++) {
        ctog[i] = len - 1 - ctog[i];
      }
    }
    if (len > dst_size)
      len = dst_size;
    memcpy(dst, buf, len * sizeof(unsigned int));
    if (char_to_glyph_pos) {
      memcpy(char_to_glyph_pos, ctog, src_size * sizeof(unsigned int));
    }
  }
  return len;
}
```