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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x160,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x158(%rbp)
  movl   $0x0,-0x154(%rbp)
  lea    -0x150(%rbp),%rax
  mov    %rax,%rsi
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0xe0(%rbp),%rax
  mov    %rax,%rsi
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    -0x150(%rbp),%rdx
  lea    -0x70(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  jmp    L8
L16:
  addl   $0x1,-0x154(%rbp)
  lea    -0xe0(%rbp),%rdx
  lea    -0x150(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  mov    %rax,%rdx
  lea    -0x70(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  lea    -0xe0(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x158(%rbp)
  jmp    L48
L0:
  lea    -0xe0(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    -0x158(%rbp),%eax
  sub    %edx,%eax
  mov    %eax,%ecx
  mov    -0x158(%rbp),%eax
  cltq
  movzbl -0x70(%rbp,%rax,1),%edx
  movslq %ecx,%rax
  mov    %dl,-0x150(%rbp,%rax,1)
  addl   $0x1,-0x158(%rbp)
L48:
  lea    -0x70(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0x158(%rbp)
  jle    L0
  lea    -0x150(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  lea    -0x150(%rbp),%rcx
  lea    -0x70(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  lea    -0x150(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cltq
  movb   $0x0,-0x70(%rbp,%rax,1)
  lea    -0x150(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    $0x1,%eax
  cltq
  movb   $0x0,-0x70(%rbp,%rax,1)
L8:
  lea    -0xe0(%rbp),%rdx
  lea    -0x70(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  je     L17
  cmpl   $0x4,-0x154(%rbp)
  jle    L16
L17:
  lea    -0xe0(%rbp),%rax
  mov    %rax,%rsi
  lea    D46(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x154(%rbp),%eax
  mov    %eax,%esi
  lea    D35(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L36
  call   <__stack_chk_fail@plt>
L36:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D34
type_guessed: string
name: read_data
arguments: data_label: D7
type_guessed: string
name: read_data
arguments: data_label: D32
type_guessed: string
name: read_data
arguments: data_label: D46
type_guessed: string
name: read_data
arguments: data_label: D35
type_guessed: string

tool: D34: Enter the String: 

tool: D7: %s

tool: D32: Enter The Key: 

tool: D46: No. of Time "%s" appears is: 

tool: D35: %d 


assistant: ```c
int main() {
  printf("Enter the String: \n");
  int i = 0, count = 0;
  ;
  char str1[100], key[100], str2[100];
  scanf("%s", str1);
  printf("Enter The Key: \n");
  scanf("%s", key);
  strcpy(str2, str1);
  while (strstr(str2, key) && count < 5) {
    count++;
    strcpy(str2, strstr(str1, key));
    for (i = strlen(key); i <= strlen(str2); i++)
      str1[i - strlen(key)] = str2[i];
    strncpy(str2, str1, strlen(str1));
    str2[strlen(str1)] = '\0';
    str2[strlen(str1) + 1] = '\0';
  }
  printf("No. of Time \"%s\" appears is: ", key);
  printf("%d \n", count);
  return 0;
}
```