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

```asm
<re_escape>:
  endbr64
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %esi,%ebp
  lea    0x1(%rdi),%rsi
  push   %rbx
  sub    $0x20,%rsp
  movsbl (%rdi),%edx
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  mov    %rdi,0x10(%rsp)
  mov    %rsi,0x8(%rsp)
  test   %edx,%edx
  je     L159
  mov    %rdi,%rcx
  lea    D4(%rip),%rbx
  jmp    L104
  cs nopw 0x0(%rax,%rax,1)
L30:
  mov    0x10(%rsp),%rdx
  lea    0x1(%rdx),%rcx
  mov    %rcx,0x10(%rsp)
  mov    %al,(%rdx)
L60:
  mov    0x8(%rsp),%rcx
  lea    0x1(%rcx),%rsi
  mov    %rsi,0x8(%rsp)
  movsbl (%rcx),%edx
  test   %edx,%edx
  je     L190
L104:
  mov    %edx,%eax
  cmp    $0x5c,%edx
  jne    L30
  lea    0x2(%rcx),%rax
  mov    %rax,0x8(%rsp)
  movzbl 0x1(%rcx),%eax
  lea    -0x30(%rax),%edx
  cmp    $0x48,%dl
  ja     L6
  movzbl %dl,%edx
  movslq (%rbx,%rdx,4),%rdx
  add    %rbx,%rdx
  notrack jmp *%rdx
  xchg   %ax,%ax
L190:
  mov    0x10(%rsp),%rax
L191:
  xor    %edi,%edi
  cmp    %rax,%rsi
  setae  %dil
  call   <assert@plt>
  mov    0x10(%rsp),%rax
  movb   $0x0,(%rax)
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L87
  add    $0x20,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax,%rax,1)
L6:
  test   %ebp,%ebp
  jne    L30
  mov    %rsi,0x8(%rsp)
  mov    $0x5c,%eax
  jmp    L30
  lea    0x8(%rsp),%rdi
  mov    %ebp,%r8d
  mov    $0x8,%ecx
  mov    $0x3,%edx
  mov    $0x1,%esi
  call   <re_byte@plt>
  jmp    L30
  mov    $0x4,%esi
  lea    0x8(%rsp),%rdi
  mov    %ebp,%r8d
  mov    $0x10,%ecx
  mov    $0x4,%edx
  call   <re_byte@plt>
  mov    %eax,%esi
L170:
  lea    0x10(%rsp),%rdi
  call   <re_escape_utf8@plt>
  jmp    L60
  mov    $0x9,%eax
  jmp    L30
  mov    $0xd,%eax
  jmp    L30
  lea    0x8(%rsp),%rdi
  mov    %ebp,%r8d
  mov    $0x10,%ecx
  mov    $0x2,%edx
  mov    $0x1,%esi
  call   <re_byte@plt>
  jmp    L30
  mov    $0x8,%esi
  lea    0x8(%rsp),%rdi
  mov    %ebp,%r8d
  mov    $0x10,%ecx
  mov    $0x8,%edx
  call   <re_byte@plt>
  mov    %eax,%esi
  jmp    L170
  mov    $0xa,%eax
  jmp    L30
  mov    $0xc,%eax
  jmp    L30
  mov    $0x8,%eax
  jmp    L30
  mov    $0x7,%eax
  jmp    L30
  nopw   0x0(%rax,%rax,1)
L159:
  mov    %rdi,%rax
  jmp    L191
  mov    $0xb,%eax
  jmp    L30
L87:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
char *re_escape(char *s, int liberal) {
  char *in = s, *out = s;
  int c;
  while ((c = *in++)) {
    int u = 0;
    if ('\\' == c) {
      c = *in++;
      switch (c) {
      case '0':
      case '1':
        c = re_byte(&in, 1, 3, 8, liberal);
        break;
      case '\\':
        c = '\\';
        break;
      case 'a':
        c = '\a';
        break;
      case 'b':
        c = '\b';
        break;
      case 'f':
        c = '\f';
        break;
      case 'n':
        c = '\n';
        break;
      case 'r':
        c = '\r';
        break;
      case 't':
        c = '\t';
        break;
      case 'U':
        c = re_byte(&in, 8, 8, 16, liberal);
        u = 1;
        break;
      case 'u':
        c = re_byte(&in, 4, 4, 16, liberal);
        u = 1;
        break;
      case 'v':
        c = '\v';
        break;
      case 'x':
        c = re_byte(&in, 1, 2, 16, liberal);
        break;
      default: {
        if (!liberal) {
          --in;
          c = '\\';
        }
        break;
      }
      }
    }
    if (u)
      re_escape_utf8(&out, c);
    else
      *out++ = c;
  }
  assert(out <= in);
  *out = 0;
  return s;
}
```