user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<str_echo>:
  endbr64
  push   %r15
  mov    %edi,%esi
  lea    D75(%rip),%r15
  push   %r14
  lea    D50(%rip),%r14
  push   %r13
  lea    D61(%rip),%r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edi,%ebx
  lea    D21(%rip),%rdi
  sub    $0x418,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbp
  call   <printf@plt>
  jmp    L45
  nopw   0x0(%rax,%rax,1)
L27:
  js     L60
  mov    %ebx,%edx
  mov    %r15,%rsi
  lea    D6(%rip),%rdi
  xor    %eax,%eax
  call   <noprintf@plt>
  xor    %eax,%eax
  mov    %r12d,%edx
  mov    %rbp,%rsi
  mov    %ebx,%edi
  call   <writen@plt>
  cmp    %eax,%r12d
  jne    L16
L45:
  mov    %ebx,%edx
  mov    %r15,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <noprintf@plt>
  mov    %rbp,%rsi
  mov    %ebx,%edi
  xor    %eax,%eax
  mov    $0x400,%edx
  call   <readline@plt>
  mov    %r13,%rdi
  mov    %eax,%r12d
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  test   %r12d,%r12d
  jne    L27
  mov    %r15,%rsi
  lea    D22(%rip),%rdi
  xor    %eax,%eax
  call   <noprintf@plt>
L61:
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L18
  add    $0x418,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L60:
  lea    D33(%rip),%rdi
  xor    %eax,%eax
  mov    $0xffffffff,%r12d
  call   <perror@plt>
  jmp    L61
  cs nopw 0x0(%rax,%rax,1)
L16:
  lea    D68(%rip),%rdi
  xor    %eax,%eax
  mov    $0xffffffff,%r12d
  call   <perror@plt>
  jmp    L61
L18:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D75
type: string
name: parse_data
arguments: data_tag: D50
type: string
name: parse_data
arguments: data_tag: D61
type: string
name: parse_data
arguments: data_tag: D21
type: string
name: parse_data
arguments: data_tag: D6
type: string
name: parse_data
arguments: data_tag: D22
type: string
name: parse_data
arguments: data_tag: D33
type: string
name: parse_data
arguments: data_tag: D68
type: string

tool: D75: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/anthony-kolesov/arc_ltp/refs/heads/master/testcases/kernel/sched/clisrv/pthserv.c

tool: D50: %s: str_echo(): reading from sockfd %d


tool: D61: str_echo: n = %d


tool: D21: sockfd = %d


tool: D6: %s: str_echo(): writing to sockfd = %d


tool: D22: %s: str_echo(): connection terminated


tool: D33: str_echo: readline error

tool: D68: str_echo: writen error

assistant: ```c
int str_echo(sockfd)
int sockfd;
{
  int n, testint;
  char line[1024];
  printf("sockfd = %d\n", sockfd);
  for (;;) {
    ;
    noprintf("%s: str_echo(): reading from sockfd %d\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/anthony-kolesov/arc_ltp/refs/heads/master/testcases/kernel/sched/clisrv/pthserv.c", sockfd);
    n = readline(sockfd, line, 1024);
    printf("str_echo: n = %d\n", n);
    if (n == 0) {
      noprintf("%s: str_echo(): connection terminated\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/anthony-kolesov/arc_ltp/refs/heads/master/testcases/kernel/sched/clisrv/pthserv.c");
      return 0;
    } else if (n < 0) {
      perror("str_echo: readline error");
      return (-1);
    }
    noprintf("%s: str_echo(): writing to sockfd = %d\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/anthony-kolesov/arc_ltp/refs/heads/master/testcases/kernel/sched/clisrv/pthserv.c", sockfd);
    testint = writen(sockfd, line, n);
    ;
    if (testint != n) {
      perror("str_echo: writen error");
      return (-1);
    };
  }
}
```