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

```asm
<end_data_trans>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x18,%rsp
  lea    D24(%rip),%r15
  lea    D0(%rip),%r14
  lea    D48(%rip),%r13
  mov    %fs:0x28,%rax
  mov    %rax,0x1008(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbp
  mov    %rcx,%rbx
  mov    %edi,%r12d
  mov    $0x200,%ecx
  mov    %rbp,%rdi
  mov    %edx,%r8d
  lea    D13(%rip),%rdx
  rep stos %rax,%es:(%rdi)
  mov    %rsi,%rcx
  mov    %rbp,%rdi
  lea    D45(%rip),%rsi
  call   <sprintf@plt>
  mov    %rbp,%r8
  mov    %r15,%rcx
  mov    $0x1a2,%edx
  mov    %r14,%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %r12d,%edi
  mov    %rbp,%rsi
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <write@plt>
  xor    %eax,%eax
  mov    $0x200,%ecx
  mov    %rbp,%rdi
  rep stos %rax,%es:(%rdi)
  mov    $0x1000,%edx
  mov    %r12d,%edi
  mov    %rbp,%rsi
  call   <read@plt>
  mov    %r15,%rcx
  mov    %r14,%rsi
  mov    %r13,%rdi
  mov    %eax,%r12d
  mov    %rbp,%r8
  mov    $0x1a7,%edx
  xor    %eax,%eax
  call   <printf@plt>
  mov    (%rsp),%rax
  lea    0x8(%rbx),%rdi
  mov    %rbp,%rsi
  and    $0xfffffffffffffff8,%rdi
  mov    %rax,(%rbx)
  mov    0xff8(%rsp),%rax
  mov    %rax,0xff8(%rbx)
  sub    %rdi,%rbx
  sub    %rbx,%rsi
  add    $0x1000,%ebx
  shr    $0x3,%ebx
  mov    %ebx,%ecx
  rep movsq %ds:(%rsi),%es:(%rdi)
  mov    0x1008(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L2
  add    $0x1018,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L2:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D24
data_type: string
name: retrieve_data
arguments: data_tag: D0
data_type: string
name: retrieve_data
arguments: data_tag: D48
data_type: string
name: retrieve_data
arguments: data_tag: D13
data_type: string
name: retrieve_data
arguments: data_tag: D45
data_type: string

tool: D24: end_data_trans

tool: D0: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/princeofdream/debug_src_full/refs/heads/master/network_utils/remote_debug/remote_debug_base.c

tool: D48: --<%s:%d>--<%s>--buffer: %s--


tool: D13: --end-data-byJamesL

tool: D45: %s %s %04d

assistant: ```c
int end_data_trans(int fd, char *ext_arg, int cmd_count, char *stat) {
  int ret;
  char buf[4096];
  memset(buf, 0x0, sizeof(buf));
  sprintf(buf, "%s %s %04d", "--end-data-byJamesL", ext_arg, cmd_count);
  printf("--<%s:%d>--<%s>--"
         "buffer: %s"
         "--\n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/princeofdream/debug_src_full/refs/heads/master/network_utils/remote_debug/remote_debug_base.c", 418, __FUNCTION__, buf);
  ret = write(fd, buf, strlen(buf));
  memset(buf, 0x0, sizeof(buf));
  ret = read(fd, buf, sizeof(buf));
  printf("--<%s:%d>--<%s>--"
         "buffer: %s"
         "--\n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/princeofdream/debug_src_full/refs/heads/master/network_utils/remote_debug/remote_debug_base.c", 423, __FUNCTION__, buf);
  if (strncmp(buf, "finish", strlen("finish")) != 0) {
  }
  memcpy(stat, buf, sizeof(buf));
  return ret;
}
```