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

```asm
<main>:
  endbr64
  push   %r14
  lea    D67(%rip),%rdi
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x150,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x148(%rsp)
  xor    %eax,%eax
  lea    0x80(%rsp),%rbp
  call   <printf@plt>
  nopl   0x0(%rax)
L9:
  xor    %eax,%eax
  movslq %ebx,%r12
  call   <getchar@plt>
  mov    %al,0x0(%rbp,%rbx,1)
  add    $0x1,%rbx
  cmp    $0xa,%al
  jne    L9
  lea    D31(%rip),%rdi
  xor    %eax,%eax
  lea    0x10(%rsp),%r13
  xor    %ebx,%ebx
  movb   $0x0,0x80(%rsp,%r12,1)
  call   <printf@plt>
  nopl   0x0(%rax)
L4:
  xor    %eax,%eax
  movslq %ebx,%r12
  call   <getchar@plt>
  mov    %al,0x0(%r13,%rbx,1)
  add    $0x1,%rbx
  cmp    $0xa,%al
  jne    L4
  movb   $0x0,0x10(%rsp,%r12,1)
  lea    D38(%rip),%rdi
  xor    %eax,%eax
  lea    D59(%rip),%r12
  call   <printf@plt>
  lea    0x8(%rsp),%r14
  mov    %r12,%rdi
  mov    %r14,%rsi
  call   <scanf@plt>
  mov    0x8(%rsp),%edx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <ins_string@plt>
  mov    %rbp,%rsi
  lea    D48(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D22(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  mov    %r14,%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%esi
  mov    0x8(%rsp),%edx
  mov    %rbp,%rdi
  call   <delnchars@plt>
  xor    %eax,%eax
  mov    %rbp,%rsi
  lea    D40(%rip),%rdi
  call   <printf@plt>
  mov    0x148(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L22
  add    $0x150,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L22:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D67
data_type: string
name: disassemble_data
arguments: label: D31
data_type: string
name: disassemble_data
arguments: label: D38
data_type: string
name: disassemble_data
arguments: label: D59
data_type: string
name: disassemble_data
arguments: label: D48
data_type: string
name: disassemble_data
arguments: label: D22
data_type: string
name: disassemble_data
arguments: label: D40
data_type: string

tool: D67: Enter the main string: 

tool: D31: Enter the sub-string: 

tool: D38: Enter the position to insert sub-string to main string: 

tool: D59: %d

tool: D48: The main string is now:
%s


tool: D22: Enter the number of characters and the position to delete from in the above string: 

tool: D40: The string is now:
%s


assistant: ```c
int main() {
  char str1[2 * 100], str2[100];
  int i, x, n;
  printf("Enter the main string: ");
  i = 0;
  while ((str1[i++] = getchar()) != '\n')
    ;
  str1[i - 1] = '\0';
  printf("Enter the sub-string: ");
  i = 0;
  while ((str2[i++] = getchar()) != '\n')
    ;
  str2[i - 1] = '\0';
  printf("Enter the position to insert sub-string to main string: ");
  scanf("%d", &x);
  ins_string(str1, str2, x);
  printf("The main string is now:\n%s\n", str1);
  printf("Enter the number of characters and the position to delete from in the above string: ");
  scanf("%d", &n);
  scanf("%d", &x);
  delnchars(str1, n, x);
  printf("The string is now:\n%s\n", str1);
  return 0;
}
```