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

```asm
<rex_matchme>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L196
  mov    $0x1,%eax
  jmp    L109
L196:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x24,%al
  jne    L49
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L49
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  sete   %al
  movzbl %al,%eax
  jmp    L109
L49:
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5c,%al
  jne    L74
  mov    $0x2,%edx
  jmp    L178
L74:
  mov    $0x1,%edx
L178:
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  je     L168
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3f,%al
  jne    L25
L168:
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  call   <fatal@plt>
L25:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  jne    L112
  addq   $0x1,-0x8(%rbp)
L190:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x38(%rbp),%rdx
  mov    -0x30(%rbp),%rcx
  mov    -0x8(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <rex_matchme>
  test   %eax,%eax
  je     L137
  mov    $0x1,%eax
  jmp    L109
L137:
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x38(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x30(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x30(%rbp)
  mov    -0x10(%rbp),%rdx
  mov    %rax,%rsi
  mov    %rdx,%rdi
  call   <rex_matchit@plt>
  test   %rax,%rax
  jne    L190
  mov    $0x0,%eax
  jmp    L109
L112:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3f,%al
  jne    L4
  addq   $0x1,-0x8(%rbp)
  mov    -0x30(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <rex_matchit@plt>
  test   %rax,%rax
  je     L71
  mov    -0x38(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x38(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x30(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    -0x38(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <rex_matchme>
  test   %eax,%eax
  je     L99
  mov    $0x1,%eax
  jmp    L109
L99:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%eax
  lea    -0x1(%rax),%edx
  mov    -0x38(%rbp),%rax
  mov    %edx,(%rax)
L71:
  mov    -0x38(%rbp),%rdx
  mov    -0x30(%rbp),%rcx
  mov    -0x8(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <rex_matchme>
  jmp    L109
L4:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x38(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x30(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <rex_matchit@plt>
  test   %rax,%rax
  je     L135
  mov    -0x30(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    -0x38(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <rex_matchme>
  jmp    L109
L135:
  mov    $0x0,%eax
L109:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D7
datatype: string

tool: D7: unescaped * or ? in regexp: %s

assistant: ```c
bool rex_matchme(const char *re, const char *str, int *len) {
  if (re[0] == '\0')
    return true;
  if (re[0] == '$' && re[1] == '\0')
    return (str[0] == '\0');
  const char *ch = re;
  const char *nxt = re + 1 + (ch[0] == '\\');
  if (*ch == '*' || *ch == '?')
    fatal("unescaped * or ? in regexp: %s", re);
  if (nxt[0] == '*') {
    nxt++;
    do {
      const int save = *len;
      if (rex_matchme(nxt, str, len))
        return true;
      *len = save + 1;
    } while (rex_matchit(ch, str++));
    return false;
  }
  if (nxt[0] == '?') {
    nxt++;
    if (rex_matchit(ch, str)) {
      (*len)++;
      if (rex_matchme(nxt, str + 1, len))
        return true;
      (*len)--;
    }
    return rex_matchme(nxt, str, len);
  }
  (*len)++;
  if (rex_matchit(ch, str))
    return rex_matchme(nxt, str + 1, len);
  return false;
}
```