user: What would the C source look like for the assembly code provided here?

```asm
<goodSuffix>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  cmpq   $0x0,-0x28(%rbp)
  je     L129
  cmpl   $0x0,-0x2c(%rbp)
  jg     L64
L129:
  mov    $0x0,%eax
  jmp    L162
L64:
  mov    -0x2c(%rbp),%edx
  lea    -0x18(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <applyArr@plt>
  mov    -0x18(%rbp),%rax
  test   %rax,%rax
  jne    L105
  mov    $0x0,%eax
  jmp    L162
L105:
  mov    -0x2c(%rbp),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <upfrontGoodSuffix@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  test   %rax,%rax
  jne    L70
  lea    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <freeArr@plt>
  mov    $0x0,%eax
  jmp    L162
L70:
  movl   $0x0,-0x20(%rbp)
  jmp    L30
L15:
  mov    -0x18(%rbp),%rcx
  mov    -0x20(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x20(%rbp)
  cltq
  shl    $0x2,%rax
  lea    (%rcx,%rax,1),%rdx
  mov    -0x2c(%rbp),%eax
  mov    %eax,(%rdx)
L30:
  mov    -0x20(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L15
  movl   $0x0,-0x1c(%rbp)
  mov    -0x2c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x20(%rbp)
  jmp    L91
L100:
  mov    -0x20(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x10(%rbp),%rcx
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jne    L111
  jmp    L133
L22:
  mov    -0x18(%rbp),%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x2c(%rbp)
  jne    L52
  mov    -0x2c(%rbp),%eax
  sub    $0x1,%eax
  mov    -0x18(%rbp),%rcx
  mov    -0x1c(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x2,%rdx
  add    %rcx,%rdx
  sub    -0x20(%rbp),%eax
  mov    %eax,(%rdx)
L52:
  addl   $0x1,-0x1c(%rbp)
L133:
  mov    -0x2c(%rbp),%eax
  sub    $0x1,%eax
  sub    -0x20(%rbp),%eax
  cmp    %eax,-0x1c(%rbp)
  jl     L22
L111:
  subl   $0x1,-0x20(%rbp)
L91:
  cmpl   $0x0,-0x20(%rbp)
  jns    L100
  movl   $0x0,-0x20(%rbp)
  jmp    L32
L68:
  mov    -0x2c(%rbp),%eax
  sub    $0x1,%eax
  mov    -0x18(%rbp),%rsi
  mov    -0x2c(%rbp),%edx
  lea    -0x1(%rdx),%ecx
  mov    -0x10(%rbp),%rdi
  mov    -0x20(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x2,%rdx
  add    %rdi,%rdx
  mov    (%rdx),%edi
  sub    %edi,%ecx
  mov    %ecx,%edx
  movslq %edx,%rdx
  shl    $0x2,%rdx
  add    %rsi,%rdx
  sub    -0x20(%rbp),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x20(%rbp)
L32:
  mov    -0x2c(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x20(%rbp)
  jl     L68
  lea    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <freeArr@plt>
  mov    -0x18(%rbp),%rax
L162:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L76
  call   <__stack_chk_fail@plt>
L76:
  leave
  ret
```

assistant: ```c
int *goodSuffix(char *pattern, int len) {
  if (!pattern || 0 >= len) {
    return NULL;
  }
  int *arr, *suffixArr;
  applyArr(&arr, len);
  if (!arr) {
    return NULL;
  }
  suffixArr = upfrontGoodSuffix(pattern, len);
  if (!suffixArr) {
    freeArr(&arr);
    return NULL;
  }
  int i = 0;
  while (i < len) {
    arr[i++] = len;
  }
  int j = 0;
  for (i = len - 1; i >= 0; i--) {
    if (i + 1 == suffixArr[i]) {
      while (j < len - 1 - i) {
        if (len == arr[j]) {
          arr[j] = len - 1 - i;
        }
        j++;
      }
    }
  }
  for (i = 0; i < len - 1; i++) {
    arr[len - 1 - suffixArr[i]] = len - 1 - i;
  }
  freeArr(&suffixArr);
  return arr;
}
```