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

```asm
<namegen>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x270,%rsp
  mov    %rdi,-0x258(%rbp)
  mov    %rsi,-0x260(%rbp)
  mov    %rdx,-0x268(%rbp)
  mov    %rcx,-0x270(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x24c(%rbp)
  mov    -0x258(%rbp),%rax
  mov    %rax,-0x240(%rbp)
  mov    -0x258(%rbp),%rdx
  mov    -0x260(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x220(%rbp)
  movl   $0x0,-0x248(%rbp)
  movq   $0x0,-0x238(%rbp)
  movq   $0x0,-0x230(%rbp)
  movq   $0x0,-0x228(%rbp)
  movq   $0x1,-0x110(%rbp)
  mov    -0x258(%rbp),%rax
  mov    %rax,-0x210(%rbp)
  jmp    L182
L105:
  mov    -0x268(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x244(%rbp)
  cmpl   $0x3e,-0x244(%rbp)
  jg     L292
  cmpl   $0x21,-0x244(%rbp)
  jl     L92
  mov    -0x244(%rbp),%eax
  sub    $0x21,%eax
  cmp    $0x1d,%eax
  ja     L92
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D15(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D15(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
L292:
  cmpl   $0x7c,-0x244(%rbp)
  je     L225
  jmp    L92
  addl   $0x1,-0x24c(%rbp)
  cmpl   $0x20,-0x24c(%rbp)
  jne    L343
  mov    -0x258(%rbp),%rax
  movb   $0x0,(%rax)
  mov    $0x3,%eax
  jmp    L176
L343:
  mov    -0x24c(%rbp),%eax
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%rdx
  mov    %rdx,%rax
  mov    %rax,-0x218(%rbp)
  mov    -0x24c(%rbp),%eax
  cltq
  movq   $0x1,-0x110(%rbp,%rax,8)
  mov    -0x24c(%rbp),%eax
  cltq
  mov    -0x240(%rbp),%rdx
  mov    %rdx,-0x210(%rbp,%rax,8)
  mov    -0x218(%rbp),%rax
  not    %rax
  and    %rax,-0x230(%rbp)
  mov    -0x218(%rbp),%rax
  not    %rax
  and    %rax,-0x238(%rbp)
  mov    -0x238(%rbp),%rax
  add    %rax,%rax
  and    -0x218(%rbp),%rax
  or     %rax,-0x238(%rbp)
  mov    -0x218(%rbp),%rax
  not    %rax
  and    %rax,-0x228(%rbp)
  mov    -0x248(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x24c(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%rdx
  mov    %rdx,%rax
  or     %rax,-0x228(%rbp)
  jmp    L195
  addl   $0x1,-0x24c(%rbp)
  cmpl   $0x20,-0x24c(%rbp)
  jne    L148
  mov    -0x258(%rbp),%rax
  movb   $0x0,(%rax)
  mov    $0x3,%eax
  jmp    L176
L148:
  mov    -0x24c(%rbp),%eax
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%rdx
  mov    %rdx,%rax
  mov    %rax,-0x218(%rbp)
  mov    -0x24c(%rbp),%eax
  cltq
  movq   $0x1,-0x110(%rbp,%rax,8)
  mov    -0x24c(%rbp),%eax
  cltq
  mov    -0x240(%rbp),%rdx
  mov    %rdx,-0x210(%rbp,%rax,8)
  mov    -0x218(%rbp),%rax
  or     %rax,-0x230(%rbp)
  mov    -0x218(%rbp),%rax
  not    %rax
  and    %rax,-0x238(%rbp)
  mov    -0x238(%rbp),%rax
  add    %rax,%rax
  and    -0x218(%rbp),%rax
  or     %rax,-0x238(%rbp)
  mov    -0x218(%rbp),%rax
  not    %rax
  and    %rax,-0x228(%rbp)
  mov    -0x248(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x24c(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%rdx
  mov    %rdx,%rax
  or     %rax,-0x228(%rbp)
  jmp    L195
  cmpl   $0x0,-0x24c(%rbp)
  jne    L45
  mov    -0x258(%rbp),%rax
  movb   $0x0,(%rax)
  mov    $0x2,%eax
  jmp    L176
L45:
  mov    -0x24c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x24c(%rbp)
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%rdx
  mov    %rdx,%rax
  mov    %rax,-0x218(%rbp)
  mov    -0x230(%rbp),%rax
  and    -0x218(%rbp),%rax
  test   %rax,%rax
  je     L47
  mov    -0x258(%rbp),%rax
  movb   $0x0,(%rax)
  mov    $0x2,%eax
  jmp    L176
  cmpl   $0x0,-0x24c(%rbp)
  jne    L141
  mov    -0x258(%rbp),%rax
  movb   $0x0,(%rax)
  mov    $0x2,%eax
  jmp    L176
L141:
  mov    -0x24c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x24c(%rbp)
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%rdx
  mov    %rdx,%rax
  mov    %rax,-0x218(%rbp)
  mov    -0x230(%rbp),%rax
  and    -0x218(%rbp),%rax
  test   %rax,%rax
  jne    L110
  mov    -0x258(%rbp),%rax
  movb   $0x0,(%rax)
  mov    $0x2,%eax
  jmp    L176
L225:
  mov    -0x24c(%rbp),%eax
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%rdx
  mov    %rdx,%rax
  mov    %rax,-0x218(%rbp)
  mov    -0x218(%rbp),%rax
  shr    %rax
  and    -0x238(%rbp),%rax
  test   %rax,%rax
  jne    L112
  mov    -0x270(%rbp),%rax
  mov    %rax,%rdi
  call   <namegen_rand32@plt>
  movslq %eax,%rcx
  mov    -0x24c(%rbp),%eax
  cltq
  mov    -0x110(%rbp,%rax,8),%rax
  lea    0x1(%rax),%rdx
  mov    -0x24c(%rbp),%eax
  cltq
  mov    %rdx,-0x110(%rbp,%rax,8)
  mov    -0x24c(%rbp),%eax
  cltq
  mov    -0x110(%rbp,%rax,8),%rsi
  mov    $0xffffffff,%eax
  mov    $0x0,%edx
  div    %rsi
  cmp    %rax,%rcx
  jae    L227
  mov    -0x24c(%rbp),%eax
  cltq
  mov    -0x210(%rbp,%rax,8),%rax
  mov    %rax,-0x240(%rbp)
  mov    -0x218(%rbp),%rax
  not    %rax
  and    %rax,-0x238(%rbp)
  mov    -0x228(%rbp),%rax
  and    -0x218(%rbp),%rax
  test   %rax,%rax
  setne  %al
  movzbl %al,%eax
  mov    %eax,-0x248(%rbp)
  jmp    L112
L227:
  mov    -0x218(%rbp),%rax
  or     %rax,-0x238(%rbp)
  jmp    L112
  movl   $0x1,-0x248(%rbp)
  jmp    L195
L92:
  mov    -0x24c(%rbp),%eax
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%rdx
  mov    %rdx,%rax
  mov    %rax,-0x218(%rbp)
  mov    -0x238(%rbp),%rax
  and    -0x218(%rbp),%rax
  test   %rax,%rax
  jne    L285
  mov    -0x230(%rbp),%rax
  and    -0x218(%rbp),%rax
  test   %rax,%rax
  je     L213
  mov    -0x240(%rbp),%rax
  cmp    -0x220(%rbp),%rax
  je     L285
  mov    -0x248(%rbp),%edx
  mov    -0x244(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <namegen_cap@plt>
  mov    %eax,%ecx
  mov    -0x240(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x240(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  jmp    L285
L213:
  mov    -0x248(%rbp),%edi
  mov    -0x270(%rbp),%rcx
  mov    -0x244(%rbp),%edx
  mov    -0x220(%rbp),%rsi
  mov    -0x240(%rbp),%rax
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <namegen_copy@plt>
  mov    %rax,-0x240(%rbp)
L285:
  movl   $0x0,-0x248(%rbp)
  jmp    L195
L47:
  nop
  jmp    L195
L110:
  nop
  jmp    L195
L112:
  nop
L195:
  addq   $0x1,-0x268(%rbp)
L182:
  mov    -0x268(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L105
  cmpl   $0x0,-0x24c(%rbp)
  je     L119
  mov    -0x258(%rbp),%rax
  movb   $0x0,(%rax)
  mov    $0x2,%eax
  jmp    L176
L119:
  mov    -0x240(%rbp),%rax
  cmp    -0x220(%rbp),%rax
  jne    L218
  mov    -0x240(%rbp),%rax
  sub    $0x1,%rax
  movb   $0x0,(%rax)
  mov    $0x1,%eax
  jmp    L176
L218:
  mov    -0x240(%rbp),%rax
  movb   $0x0,(%rax)
  mov    $0x0,%eax
L176:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L376
  call   <__stack_chk_fail@plt>
L376:
  leave
  ret
```

assistant: ```c
int namegen(char *dst, unsigned long len, const char *pattern, unsigned long *seed) {
  int depth = 0;
  char *p = dst;
  char *e = dst + len;
  int capitalize = 0;
  char *reset[32];
  unsigned long n[32];
  unsigned long silent = 0;
  unsigned long literal = 0;
  unsigned long capstack = 0;
  n[0] = 1;
  reset[0] = dst;
  for (; *pattern; pattern++) {
    unsigned long bit;
    int c = *pattern;
    switch (c) {
    case '<':
      if (++depth == 32) {
        *dst = 0;
        return 3;
      }
      bit = 1UL << depth;
      n[depth] = 1;
      reset[depth] = p;
      literal &= ~bit;
      silent &= ~bit;
      silent |= (silent << 1) & bit;
      capstack &= ~bit;
      capstack |= (unsigned long)capitalize << depth;
      break;
    case '(':
      if (++depth == 32) {
        *dst = 0;
        return 3;
      }
      bit = 1UL << depth;
      n[depth] = 1;
      reset[depth] = p;
      literal |= bit;
      silent &= ~bit;
      silent |= (silent << 1) & bit;
      capstack &= ~bit;
      capstack |= (unsigned long)capitalize << depth;
      break;
    case '>':
      if (depth == 0) {
        *dst = 0;
        return 2;
      }
      bit = 1UL << depth--;
      if (literal & bit) {
        *dst = 0;
        return 2;
      }
      break;
    case ')':
      if (depth == 0) {
        *dst = 0;
        return 2;
      }
      bit = 1UL << depth--;
      if (!(literal & bit)) {
        *dst = 0;
        return 2;
      }
      break;
    case '|':
      bit = 1UL << depth;
      if (!(silent & (bit >> 1))) {
        if (namegen_rand32(seed) < 0xffffffffUL / ++n[depth]) {
          p = reset[depth];
          silent &= ~bit;
          capitalize = !!(capstack & bit);
        } else {
          silent |= bit;
        }
      }
      break;
    case '!':
      capitalize = 1;
      break;
    default:
      bit = 1UL << depth;
      if (!(silent & bit)) {
        if (literal & bit) {
          if (p != e)
            *p++ = namegen_cap(c, capitalize);
        } else {
          p = namegen_copy(p, e, c, seed, capitalize);
        }
      }
      capitalize = 0;
    }
  }
  if (depth) {
    *dst = 0;
    return 2;
  } else if (p == e) {
    p[-1] = 0;
    return 1;
  } else {
    *p = 0;
    return 0;
  }
}
```