user: Demonstrate the C code that generates the assembly output below:

```asm
<rgrep_matches>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%r12
  mov    %rsi,%rbx
  mov    %rsi,%rdi
  call   <strleng@plt>
  mov    %eax,%ebp
  mov    %r12,%rdi
  call   <strleng@plt>
  mov    %eax,%r13d
  mov    %rbx,%rdi
  call   <checkSpecial@plt>
  cmp    $0x1388,%rax
  je     L180
  mov    %rbx,%rdi
  call   <checkSpecial@plt>
  movzbl (%rbx,%rax,1),%eax
  cmp    $0x2e,%al
  je     L68
  cmp    $0x3f,%al
  je     L12
  cmp    $0x2b,%al
  je     L250
  mov    $0x0,%ebp
L272:
  mov    %ebp,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L68:
  mov    %rbx,%rdi
  call   <sameChar@plt>
  test   %eax,%eax
  je     L41
  cmp    %r13d,%ebp
  sete   %bpl
  movzbl %bpl,%ebp
  jmp    L272
L41:
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <matchPatternDots@plt>
  mov    %eax,%ebp
  test   %eax,%eax
  je     L43
  mov    $0x1,%ebp
  jmp    L272
L43:
  mov    $0x2b,%esi
  mov    %rbx,%rdi
  call   <firstOccur@plt>
  cmp    $0x1388,%eax
  je     L272
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <afterPlus@plt>
  test   %eax,%eax
  setne  %bpl
  movzbl %bpl,%ebp
  jmp    L272
L250:
  cmp    $0x1,%ebp
  je     L272
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <morePlus@plt>
  mov    $0x1,%ebp
  test   %eax,%eax
  jne    L272
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <patternPlus@plt>
  test   %eax,%eax
  setne  %bpl
  movzbl %bpl,%ebp
  jmp    L272
L12:
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <questionMark@plt>
  test   %eax,%eax
  setne  %bpl
  movzbl %bpl,%ebp
  jmp    L272
L180:
  movsbl (%rbx),%esi
  mov    %r12,%rdi
  call   <firstOccur@plt>
  mov    %eax,%r13d
  test   %ebp,%ebp
  je     L278
  cmp    $0x1,%ebp
  je     L119
  cmp    $0x1388,%eax
  je     L216
  cmp    $0x1,%ebp
  jle    L216
  mov    %r12,%rdi
  call   <strleng@plt>
  cmp    $0x1,%eax
  jle    L207
  mov    %eax,%eax
  lea    -0x1(%rbp),%ecx
  mov    $0x1,%edx
  movslq %r13d,%r13
  add    %r13,%r12
L30:
  movzbl (%r12,%rdx,1),%esi
  cmp    %sil,(%rbx,%rdx,1)
  jne    L214
  cmp    %rcx,%rdx
  je     L187
  add    $0x1,%rdx
  cmp    %rax,%rdx
  jne    L30
  mov    $0x0,%ebp
  jmp    L272
L119:
  cmp    $0x1388,%eax
  setne  %bpl
  movzbl %bpl,%ebp
  jmp    L272
L278:
  mov    $0x1,%ebp
  jmp    L272
L216:
  mov    $0x0,%ebp
  jmp    L272
L207:
  mov    $0x0,%ebp
  jmp    L272
L214:
  mov    $0x0,%ebp
  jmp    L272
L187:
  mov    $0x1,%ebp
  jmp    L272
```

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;
}
```