user: 请将以下的汇编代码转换成C语言代码：

```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     L18
  mov    %rdi,%rcx
  lea    D5(%rip),%rbx
  jmp    L93
  cs nopw 0x0(%rax,%rax,1)
L134:
  mov    0x10(%rsp),%rdx
  lea    0x1(%rdx),%rcx
  mov    %rcx,0x10(%rsp)
  mov    %al,(%rdx)
L163:
  mov    0x8(%rsp),%rcx
  lea    0x1(%rcx),%rsi
  mov    %rsi,0x8(%rsp)
  movsbl (%rcx),%edx
  test   %edx,%edx
  je     L56
L93:
  mov    %edx,%eax
  cmp    $0x5c,%edx
  jne    L134
  lea    0x2(%rcx),%rax
  mov    %rax,0x8(%rsp)
  movzbl 0x1(%rcx),%eax
  lea    -0x30(%rax),%edx
  cmp    $0x48,%dl
  ja     L132
  movzbl %dl,%edx
  movslq (%rbx,%rdx,4),%rdx
  add    %rbx,%rdx
  notrack jmp *%rdx
  xchg   %ax,%ax
L56:
  mov    0x10(%rsp),%rax
L141:
  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    L146
  add    $0x20,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax,%rax,1)
L132:
  test   %ebp,%ebp
  jne    L134
  mov    %rsi,0x8(%rsp)
  mov    $0x5c,%eax
  jmp    L134
  lea    0x8(%rsp),%rdi
  mov    %ebp,%r8d
  mov    $0x8,%ecx
  mov    $0x3,%edx
  mov    $0x1,%esi
  call   <re_byte@plt>
  jmp    L134
  mov    $0x4,%esi
  lea    0x8(%rsp),%rdi
  mov    %ebp,%r8d
  mov    $0x10,%ecx
  mov    $0x4,%edx
  call   <re_byte@plt>
  mov    %eax,%esi
L100:
  lea    0x10(%rsp),%rdi
  call   <re_escape_utf8@plt>
  jmp    L163
  mov    $0x9,%eax
  jmp    L134
  mov    $0xd,%eax
  jmp    L134
  lea    0x8(%rsp),%rdi
  mov    %ebp,%r8d
  mov    $0x10,%ecx
  mov    $0x2,%edx
  mov    $0x1,%esi
  call   <re_byte@plt>
  jmp    L134
  mov    $0x8,%esi
  lea    0x8(%rsp),%rdi
  mov    %ebp,%r8d
  mov    $0x10,%ecx
  mov    $0x8,%edx
  call   <re_byte@plt>
  mov    %eax,%esi
  jmp    L100
  mov    $0xa,%eax
  jmp    L134
  mov    $0xc,%eax
  jmp    L134
  mov    $0x8,%eax
  jmp    L134
  mov    $0x7,%eax
  jmp    L134
  nopw   0x0(%rax,%rax,1)
L18:
  mov    %rdi,%rax
  jmp    L141
  mov    $0xb,%eax
  jmp    L134
L146:
  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;
}
```