user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<mk_re_parse>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movzbl (%rdi),%eax
  mov    %rdi,0x10(%rsp)
  test   %al,%al
  je     L141
  mov    %rdi,%r14
  mov    %rdi,%rdx
  xor    %r15d,%r15d
  xor    %r13d,%r13d
  lea    0x10(%rsp),%rbx
  jmp    L100
  nopw   0x0(%rax,%rax,1)
L25:
  test   $0x1,%r15b
  jne    L90
  cmp    $0x2f,%al
  je     L147
L90:
  cmp    $0x5b,%al
  je     L112
  cmp    $0x5d,%al
  cmove  %r13d,%r15d
L39:
  lea    0x1(%rdx),%rax
  add    $0x1,%r14
  mov    %rax,0x10(%rsp)
  movzbl (%rdx),%edx
  mov    %dl,-0x1(%r14)
  mov    %rax,%rdx
L78:
  movzbl (%rdx),%eax
  test   %al,%al
  je     L147
L100:
  cmp    $0x5c,%al
  jne    L25
  lea    0x1(%rdx),%rax
  mov    %rax,0x10(%rsp)
  movzbl 0x1(%rdx),%eax
  cmp    $0x37,%al
  jle    L163
  lea    -0x61(%rax),%esi
  cmp    $0x17,%sil
  ja     L86
  mov    $0xaa2023,%edi
  bt     %rsi,%rdi
  jb     L124
L86:
  add    $0x2,%rdx
  movb   $0x5c,(%r14)
  add    $0x2,%r14
  mov    %al,-0x1(%r14)
  mov    %rdx,0x10(%rsp)
  movzbl (%rdx),%eax
  test   %al,%al
  jne    L100
  nopl   0x0(%rax,%rax,1)
L147:
  mov    %r14,%rsi
  sub    %r12,%rsi
L30:
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <tmp_string@plt>
  mov    %ebp,%esi
  mov    %eax,%edi
  xor    %eax,%eax
  call   <make_regexp@plt>
  cltq
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L91
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L163:
  cmp    $0x2e,%al
  jle    L86
  nopl   0x0(%rax)
L124:
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <parse_escape@plt>
  mov    %eax,%r9d
  test   %eax,%eax
  js     L173
L162:
  mov    %r9b,(%r14)
  mov    0x10(%rsp),%rdx
  add    $0x1,%r14
  jmp    L78
  nopw   0x0(%rax,%rax,1)
L112:
  mov    $0x1,%r15d
  jmp    L39
  nopl   0x0(%rax,%rax,1)
L173:
  mov    %eax,0xc(%rsp)
  lea    D19(%rip),%rdx
  mov    $0x18b,%esi
  xor    %eax,%eax
  lea    D13(%rip),%rdi
  call   <fatal@plt>
  mov    0xc(%rsp),%r9d
  jmp    L162
L141:
  xor    %esi,%esi
  jmp    L30
L91:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D19
type_guessed: string
name: unpack_data
arguments: tag: D13
type_guessed: string

tool: D19: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ensemblr/llvm-project-boilerplate/refs/heads/main/MultiSource/Benchmarks/MallocBench/gawk/main.c

tool: D13: line %d, file: %s; bailing out

assistant: ```c
struct re_pattern_buffer *mk_re_parse(s, ignorecase)
char *s;
int ignorecase;
{
  char *src;
  register char *dest;
  register int c;
  int in_brack = 0;
  for (dest = src = s; *src != '\0';) {
    if (*src == '\\') {
      c = *++src;
      switch (c) {
      case '/':
      case 'a':
      case 'b':
      case 'f':
      case 'n':
      case 'r':
      case 't':
      case 'v':
      case 'x':
      case '0':
      case '1':
      case '2':
      case '3':
      case '4':
      case '5':
      case '6':
      case '7':
        c = parse_escape(&src);
        if (c < 0)
          fatal("line %d, file: %s; bailing out", 395, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ensemblr/llvm-project-boilerplate/refs/heads/main/MultiSource/Benchmarks/MallocBench/gawk/main.c");
        ;
        *dest++ = (char)c;
        break;
      default:
        *dest++ = '\\';
        *dest++ = (char)c;
        src++;
        break;
      }
    } else if (*src == '/' && !in_brack)
      break;
    else {
      if (*src == '[')
        in_brack = 1;
      else if (*src == ']')
        in_brack = 0;
      *dest++ = *src++;
    }
  }
  return make_regexp(tmp_string(s, dest - s), ignorecase);
}
```