user: 这段汇编代码用C语言表示是什么样的：

```asm
<rgrep_matches>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <strleng@plt>
  mov    %eax,-0x10(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strleng@plt>
  mov    %eax,-0xc(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <checkSpecial@plt>
  cmp    $0x1388,%rax
  je     L36
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <checkSpecial@plt>
  mov    -0x30(%rbp),%rdx
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    $0x5c,%eax
  je     L225
  cmp    $0x5c,%eax
  jg     L361
  cmp    $0x3f,%eax
  je     L193
  cmp    $0x3f,%eax
  jg     L361
  cmp    $0x2b,%eax
  je     L227
  cmp    $0x2e,%eax
  jne    L361
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <sameChar@plt>
  test   %eax,%eax
  je     L380
  mov    -0xc(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jne    L309
  mov    $0x1,%eax
  jmp    L100
L309:
  mov    $0x0,%eax
  jmp    L100
L380:
  mov    -0x28(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <matchPatternDots@plt>
  test   %eax,%eax
  je     L61
  mov    $0x1,%eax
  jmp    L100
L61:
  mov    -0x30(%rbp),%rax
  mov    $0x2b,%esi
  mov    %rax,%rdi
  call   <firstOccur@plt>
  cmp    $0x1388,%eax
  je     L280
  mov    -0x28(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <afterPlus@plt>
  test   %eax,%eax
  je     L225
  mov    $0x1,%eax
  jmp    L100
L280:
  mov    $0x0,%eax
  jmp    L100
L225:
  mov    $0x0,%eax
  jmp    L100
L227:
  cmpl   $0x1,-0x10(%rbp)
  jne    L412
  mov    $0x1,%eax
  jmp    L100
L412:
  mov    -0x28(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <morePlus@plt>
  test   %eax,%eax
  je     L118
  mov    $0x1,%eax
  jmp    L100
L118:
  mov    -0x28(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <patternPlus@plt>
  test   %eax,%eax
  je     L106
  mov    $0x1,%eax
  jmp    L100
L106:
  mov    $0x0,%eax
  jmp    L100
L193:
  mov    -0x28(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <questionMark@plt>
  test   %eax,%eax
  je     L315
  mov    $0x1,%eax
  jmp    L100
L315:
  mov    $0x0,%eax
  jmp    L100
L361:
  mov    $0x0,%eax
  jmp    L100
L36:
  movl   $0x0,-0x18(%rbp)
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <firstOccur@plt>
  mov    %eax,-0x8(%rbp)
  cmpl   $0x0,-0x10(%rbp)
  jne    L127
  mov    $0x1,%eax
  jmp    L100
L127:
  cmpl   $0x1,-0x10(%rbp)
  jne    L393
  cmpl   $0x1388,-0x8(%rbp)
  je     L105
  mov    $0x1,%eax
  jmp    L100
L393:
  cmpl   $0x1,-0x10(%rbp)
  jle    L105
  cmpl   $0x1388,-0x8(%rbp)
  je     L346
  addl   $0x1,-0x18(%rbp)
  movl   $0x1,-0x14(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strleng@plt>
  mov    %eax,-0x4(%rbp)
  jmp    L306
L205:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x8(%rbp),%ecx
  mov    -0x14(%rbp),%eax
  add    %ecx,%eax
  movslq %eax,%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jne    L186
  addl   $0x1,-0x18(%rbp)
  mov    -0x18(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jne    L155
  mov    $0x1,%eax
  jmp    L100
L186:
  mov    $0x0,%eax
  jmp    L100
L155:
  addl   $0x1,-0x14(%rbp)
L306:
  mov    -0x14(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jl     L205
  jmp    L105
L346:
  mov    $0x0,%eax
  jmp    L100
L105:
  mov    $0x0,%eax
L100:
  leave
  ret
```

assistant: ```c
int rgrep_matches(char *line, char *pattern) {
  int n = strleng(pattern);
  int m = strleng(line);
  if (checkSpecial(pattern) != 5000) {
    switch (pattern[checkSpecial(pattern)]) {
    case '.':
      if (sameChar(pattern)) {
        if (m == n)
          return 1;
        else
          return 0;
      } else if (matchPatternDots(pattern, line)) {
        return 1;
      } else if (firstOccur(pattern, '+') != 5000) {
        if (afterPlus(pattern, line))
          return 1;
      } else
        return 0;
    case '\\':
      return 0;
    case '+':
      if (n == 1)
        return 1;
      if (morePlus(pattern, line))
        return 1;
      if (patternPlus(pattern, line))
        return 1;
      return 0;
    case '?':
      if (questionMark(pattern, line))
        return 1;
      return 0;
    default:
      return 0;
    }
  } else {
    int matches = 0;
    int index = firstOccur(line, pattern[0]);
    if (n == 0) {
      return 1;
    } else if (n == 1) {
      if (index != 5000) {
        return 1;
      }
    } else if (n > 1) {
      if (index != 5000) {
        matches++;
        for (int i = 1, l = strleng(line); i < l; i++) {
          if (pattern[i] == line[index + i]) {
            matches++;
            if (matches == n) {
              return 1;
            }
          } else
            return 0;
        }
      } else
        return 0;
    }
    return 0;
  }
  return 0;
}
```