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

```asm
<devanagari_log2vis>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %edx,-0x64(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x64(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x28(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  movslq %eax,%rdx
  mov    %rdx,%r8
  mov    $0x0,%r9d
  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
L321:
  cmp    %rdx,%rsp
  je     L241
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L321
L241:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L136
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L136:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x64(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x3c(%rbp)
  movl   $0x0,-0x48(%rbp)
  jmp    L256
L336:
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x34(%rbp),%eax
  mov    %eax,%edi
  call   <is_consonant@plt>
  test   %rax,%rax
  je     L281
  mov    -0x48(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jge    L281
  mov    -0x48(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0x94d,%eax
  jne    L281
  mov    -0x34(%rbp),%eax
  lea    0x10000(%rax),%ecx
  mov    -0x30(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x30(%rbp)
  mov    %ecx,%edx
  mov    %edx,(%rax)
  addl   $0x1,-0x48(%rbp)
  jmp    L27
L281:
  mov    -0x30(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x30(%rbp)
  mov    -0x34(%rbp),%edx
  mov    %edx,(%rax)
L27:
  addl   $0x1,-0x48(%rbp)
L256:
  mov    -0x48(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L336
  movl   $0x0,-0x48(%rbp)
  jmp    L190
L165:
  mov    -0x20(%rbp),%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  cmp    $0x10930,%eax
  jne    L381
  mov    -0x48(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%edi
  call   <is_ind_vowel@plt>
  test   %rax,%rax
  jne    L29
  mov    -0x48(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%edi
  call   <is_consonant@plt>
  test   %rax,%rax
  je     L381
L29:
  mov    -0x48(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%ecx
  mov    -0x20(%rbp),%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  mov    -0x48(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  movl   $0xe97e,(%rax,%rdx,4)
  jmp    L341
L381:
  mov    -0x20(%rbp),%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  cmp    $0x931,%eax
  jne    L73
  mov    -0x48(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  cmp    $0x94d,%eax
  jne    L73
  mov    -0x20(%rbp),%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  movl   $0xe97d,(%rax,%rdx,4)
  mov    -0x48(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  movl   $0x0,(%rax,%rdx,4)
  jmp    L341
L73:
  mov    -0x20(%rbp),%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  cmp    $0x10930,%eax
  jne    L348
  mov    -0x48(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  cmp    $0x200d,%eax
  jne    L348
  mov    -0x20(%rbp),%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  movl   $0xe97d,(%rax,%rdx,4)
  mov    -0x48(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  movl   $0x0,(%rax,%rdx,4)
  jmp    L341
L348:
  mov    -0x20(%rbp),%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%edi
  call   <is_dead_consonant@plt>
  test   %rax,%rax
  je     L213
  mov    -0x48(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  cmp    $0x930,%eax
  jne    L213
  mov    -0x20(%rbp),%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  lea    -0x10000(%rax),%ecx
  mov    -0x20(%rbp),%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  mov    -0x48(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  movl   $0xe97f,(%rax,%rdx,4)
  jmp    L341
L213:
  mov    -0x20(%rbp),%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%edi
  call   <is_dead_consonant@plt>
  test   %rax,%rax
  je     L341
  mov    -0x48(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  cmp    $0x10930,%eax
  jne    L341
  mov    -0x20(%rbp),%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  lea    -0x10000(%rax),%ecx
  mov    -0x20(%rbp),%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  mov    -0x48(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  movl   $0xe97f,(%rax,%rdx,4)
  mov    -0x48(%rbp),%eax
  lea    0x2(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  movl   $0x94d,(%rax,%rdx,4)
L341:
  addl   $0x1,-0x48(%rbp)
L190:
  mov    -0x48(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L165
  movl   $0x0,-0x48(%rbp)
  jmp    L262
L350:
  mov    -0x20(%rbp),%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%edi
  call   <is_dead_consonant@plt>
  test   %rax,%rax
  je     L216
  mov    -0x3c(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x48(%rbp)
  je     L4
  mov    -0x48(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  cmp    $0x200d,%eax
  je     L4
  mov    -0x48(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%edi
  call   <is_consonant@plt>
  test   %rax,%rax
  jne    L4
  mov    -0x48(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%edi
  call   <is_dead_consonant@plt>
  test   %rax,%rax
  je     L216
L4:
  mov    -0x20(%rbp),%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  lea    -0x1e000(%rax),%ecx
  mov    -0x20(%rbp),%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
L216:
  addl   $0x1,-0x48(%rbp)
L262:
  mov    -0x48(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L350
  movl   $0x0,-0x44(%rbp)
  movl   $0x0,-0x48(%rbp)
  jmp    L373
L270:
  mov    -0x20(%rbp),%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,-0x38(%rbp)
  cmpl   $0x0,-0x38(%rbp)
  je     L298
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x60(%rbp),%rax
  add    %rax,%rdx
  mov    -0x44(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x44(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x44(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rax,%rdx
  mov    -0x38(%rbp),%eax
  mov    %eax,(%rdx)
  jmp    L169
L298:
  mov    -0x44(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x40(%rbp)
  cmpl   $0x0,-0x40(%rbp)
  jns    L48
  movl   $0x0,-0x40(%rbp)
L48:
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x60(%rbp),%rax
  add    %rax,%rdx
  mov    -0x40(%rbp),%eax
  mov    %eax,(%rdx)
L169:
  addl   $0x1,-0x48(%rbp)
L373:
  mov    -0x48(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L270
  mov    -0x44(%rbp),%eax
  mov    %rbx,%rsp
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L328
  call   <__stack_chk_fail@plt>
L328:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
int devanagari_log2vis(unsigned int *str, unsigned int *ctog, int len) {
  int i, len1, cc, j, k, c;
  unsigned int *q, buf[len];
  q = buf;
  len1 = len - 1;
  for (i = 0; i < len; i++) {
    cc = str[i];
    if (is_consonant(cc) && i < len1 && str[i + 1] == 0x94d) {
      *q++ = cc + 0x10000;
      i++;
    } else {
      *q++ = cc;
    }
  }
  for (i = 0; i < len1; i++) {
    if (buf[i] == (0x930 + 0x10000) && (is_ind_vowel(buf[i + 1]) || is_consonant(buf[i + 1]))) {
      buf[i] = buf[i + 1];
      buf[i + 1] = 0xe97e;
    } else if (buf[i] == 0x931 && buf[i + 1] == 0x94d) {
      buf[i] = 0xe97d;
      buf[i + 1] = 0;
    } else if (buf[i] == (0x930 + 0x10000) && buf[i + 1] == 0x200d) {
      buf[i] = 0xe97d;
      buf[i + 1] = 0;
    } else if (is_dead_consonant(buf[i]) && buf[i + 1] == 0x930) {
      buf[i] -= 0x10000;
      buf[i + 1] = 0xe97f;
    } else if (is_dead_consonant(buf[i]) && buf[i + 1] == (0x930 + 0x10000)) {
      buf[i] -= 0x10000;
      buf[i + 1] = 0xe97f;
      buf[i + 2] = 0x94d;
    }
  }
  for (i = 0; i < len1; i++) {
    if (is_dead_consonant(buf[i]) && (i == (len1 - 1) || buf[i + 1] == 0x200d || is_consonant(buf[i + 1]) || is_dead_consonant(buf[i + 1]))) {
      buf[i] -= 0x10000 + 0xe000;
    }
  }
  j = 0;
  for (i = 0; i < len; i++) {
    c = buf[i];
    if (c != 0) {
      ctog[i] = j;
      str[j++] = c;
    } else {
      k = j - 1;
      if (k < 0)
        k = 0;
      ctog[i] = k;
    }
  }
  return j;
}
```