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

```asm
<func_notdir_suffix>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  mov    (%rsi),%rax
  movl   $0x0,0x1c(%rsp)
  mov    %rax,0x20(%rsp)
  lea    D3(%rip),%rax
  cmp    %rax,%rdx
  je     L112
  xor    %r15d,%r15d
  cmpb   $0x73,(%rdx)
  movb   $0x1,0xb(%rsp)
  je     L17
L146:
  movl   $0x0,0xc(%rsp)
  lea    0x1c(%rsp),%r12
  lea    0x20(%rsp),%rbp
  cs nopw 0x0(%rax,%rax,1)
L71:
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <find_next_token@plt>
  mov    %rax,%r13
  test   %rax,%rax
  je     L82
  mov    0x1c(%rsp),%ebx
  mov    %rbx,%rdx
  add    %r13,%rbx
  jae    L150
  jmp    L39
  nopl   (%rax)
L5:
  sub    $0x1,%rbx
  cmp    %rbx,%r13
  ja     L39
L150:
  movzbl (%rbx),%eax
  test   %r15d,%r15d
  je     L192
  cmp    $0x2e,%al
  je     L193
L192:
  cmp    $0x2f,%al
  jne    L5
  cmp    %r13,%rbx
  jb     L39
  test   %r15d,%r15d
  jne    L71
  add    $0x1,%rbx
L21:
  mov    %rbx,%rax
  mov    %r14,%rdi
  mov    %rbx,%rsi
  sub    %r13,%rax
  sub    %eax,%edx
  call   <variable_buffer_output@plt>
  mov    %rax,%r14
L44:
  cmp    %r13,%rbx
  jae    L107
L36:
  cmpb   $0x0,0xb(%rsp)
  je     L71
L107:
  mov    %r14,%rdi
  mov    $0x1,%edx
  lea    D18(%rip),%rsi
  call   <variable_buffer_output@plt>
  movl   $0x1,0xc(%rsp)
  mov    %rax,%r14
  jmp    L71
  nopl   (%rax)
L39:
  test   %r15d,%r15d
  jne    L44
  mov    %r14,%rdi
  mov    %r13,%rsi
  call   <variable_buffer_output@plt>
  mov    %rax,%r14
  jmp    L44
  nopl   (%rax)
L193:
  cmp    %r13,%rbx
  jb     L36
  jmp    L21
  nopw   0x0(%rax,%rax,1)
L82:
  cmpl   $0x1,0xc(%rsp)
  adc    $0xffffffffffffffff,%r14
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L76
  add    $0x38,%rsp
  mov    %r14,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L112:
  movb   $0x0,0xb(%rsp)
  mov    $0x1,%r15d
  jmp    L146
L17:
  lea    0x1(%rax),%rsi
  lea    0x1(%rdx),%edi
  xor    %r15d,%r15d
  call   <strcmp@plt>
  test   %eax,%eax
  sete   %r15b
  setne  0xb(%rsp)
  jmp    L146
L76:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D3
type_guessed: string
name: retrieve_data
arguments: data_tag: D18
type_guessed: string

tool: D3: suffix

tool: D18:  

assistant: ```c
char *func_notdir_suffix(char *o, char **argv, const char *funcname) {
  const char *list_iterator = argv[0];
  const char *p2;
  int doneany = 0;
  unsigned int len = 0;
  int is_suffix = ((funcname) == ("suffix") || (*(funcname) == *("suffix") && (*(funcname) == '\0' || !strcmp((funcname) + 1, ("suffix") + 1))));
  int is_notdir = !is_suffix;
  while ((p2 = find_next_token(&list_iterator, &len)) != 0) {
    const char *p = p2 + len;
    while (p >= p2 && (!is_suffix || *p != '.')) {
      if (((*p) == '/'))
        break;
      --p;
    }
    if (p >= p2) {
      if (is_notdir)
        ++p;
      else if (*p != '.')
        continue;
      o = variable_buffer_output(o, p, len - (p - p2));
    } else if (is_notdir)
      o = variable_buffer_output(o, p2, len);
    if (is_notdir || p >= p2) {
      o = variable_buffer_output(o, " ", 1);
      doneany = 1;
    }
  }
  if (doneany)
    --o;
  return o;
}
```