user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x158,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x148(%rsp)
  xor    %eax,%eax
  mov    $0x73,%esi
  lea    D59(%rip),%rdi
  call   <strchr@plt>
  lea    0xe0(%rsp),%r12
  lea    0x70(%rsp),%rbp
  mov    %rsp,%rbx
  mov    %r12,%rcx
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  lea    D22(%rip),%rdi
  call   <scanf@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %rax,%rbx
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %rax,%rbp
  mov    %r12,%rdi
  call   <strlen@plt>
  add    %rbp,%rbx
  cmp    %rax,%rbx
  sete   %bpl
  sete   %r12b
  movzbl %r12b,%r12d
  movzbl (%rsp),%esi
  test   %sil,%sil
  je     L95
  test   %bpl,%bpl
  je     L95
  lea    0x1(%rsp),%rbx
  lea    0xe0(%rsp),%r13
L69:
  movsbl %sil,%esi
  mov    %r13,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L32
  movb   $0x2d,(%rax)
  add    $0x1,%rbx
  movzbl -0x1(%rbx),%esi
  test   %sil,%sil
  jne    L69
L95:
  movzbl 0x70(%rsp),%esi
  test   %sil,%sil
  je     L85
  test   %bpl,%bpl
  je     L85
  lea    0x71(%rsp),%rbx
  lea    0xe0(%rsp),%rbp
L82:
  movsbl %sil,%esi
  mov    %rbp,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L122
  movb   $0x2d,(%rax)
  add    $0x1,%rbx
  movzbl -0x1(%rbx),%esi
  test   %sil,%sil
  jne    L82
  mov    $0x1,%r12d
L85:
  lea    0xe0(%rsp),%rbp
  lea    D66(%rip),%rsi
  mov    %rbp,%rdi
  call   <strspn@plt>
  mov    %rax,%rbx
  mov    %rbp,%rdi
  call   <strlen@plt>
  test   %r12d,%r12d
  je     L60
  cmp    %rax,%rbx
  jne    L60
  lea    D46(%rip),%rsi
  jmp    L20
L32:
  lea    D39(%rip),%rsi
L20:
  lea    D78(%rip),%rdi
  call   <printf@plt>
  mov    0x148(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L92
  mov    $0x0,%eax
  add    $0x158,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L122:
  lea    D39(%rip),%rsi
  jmp    L20
L60:
  lea    D39(%rip),%rsi
  jmp    L20
L92:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D59
type: string
name: retrieve_data
arguments: label: D22
type: string
name: retrieve_data
arguments: label: D66
type: string
name: retrieve_data
arguments: label: D46
type: string
name: retrieve_data
arguments: label: D39
type: string
name: retrieve_data
arguments: label: D78
type: string

tool: D59: dfgg

tool: D22: %s%s%s

tool: D66: -

tool: D46: YES

tool: D39: NO

tool: D78: %s

assistant: ```c
int main() {
  char str1[102], str2[102], strs[102];
  int count;
  int is = 1;
  strchr("dfgg", 's');
  scanf("%s%s%s", str1, str2, strs);
  if (strlen(str1) + strlen(str2) != strlen(strs))
    is = 0;
  for (count = 0; str1[count] != '\0' && is != 0; count++) {
    char *z = strchr(strs, str1[count]);
    if (z == NULL) {
      is = 0;
      break;
    } else
      *z = '-';
  }
  for (count = 0; str2[count] != '\0' && is != 0; count++) {
    char *z = strchr(strs, str2[count]);
    if (z == NULL) {
      is = 0;
      break;
    } else
      *z = '-';
  }
  if (strspn(strs, "-") != strlen(strs)) {
    is = 0;
  }
  printf("%s", ((is == 0) ? "NO" : "YES"));
  return 0;
}
```