user: 下面的汇编指令对应的C源代码是什么：

```asm
<at_recv>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  xor    %ebp,%ebp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%r14
  lea    0x18(%rsp),%r13
  movq   $0x0,0x18(%rsp)
  movq   $0x0,0x20(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L44:
  mov    %r12,%rdx
  mov    %r14,%rsi
  mov    %r13,%rdi
  call   <getline@plt>
  mov    %eax,%r15d
  cmp    $0xffffffff,%eax
  je     L62
  test   %r15d,%r15d
  je     L44
  mov    0x18(%rsp),%rsi
  movslq %r15d,%rax
  lea    -0x1(%rax),%rdi
  movzbl -0x1(%rsi,%rax,1),%edx
  cmp    $0xa,%dl
  je     L72
  cmp    $0xd,%dl
  je     L182
L0:
  add    $0x1,%r15d
L166:
  movb   $0x0,(%rsi,%rax,1)
  mov    0x18(%rsp),%rdi
  cmpb   $0x4f,(%rdi)
  jne    L178
  cmpb   $0x4b,0x1(%rdi)
  jne    L178
  cmpb   $0x0,0x2(%rdi)
  je     L171
  nopl   0x0(%rax)
L178:
  lea    D19(%rip),%rsi
  mov    %rdi,0x8(%rsp)
  call   <strcmp@plt>
  mov    0x8(%rsp),%rdi
  test   %eax,%eax
  je     L149
  mov    $0xa,%edx
  lea    D14(%rip),%rsi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L86
  mov    0x18(%rsp),%rdi
  mov    $0xa,%edx
  lea    D3(%rip),%rsi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L86
  test   %rbx,%rbx
  je     L146
  test   %rbp,%rbp
  je     L71
  movb   $0x20,-0x1(%rbx)
L71:
  mov    0x18(%rsp),%rsi
  mov    %rbx,%rdi
  mov    %r15d,%edx
  call   <memcpy@plt>
  movslq %r15d,%rcx
  add    %rcx,%rbx
L146:
  add    $0x1,%rbp
  jmp    L44
  nopw   0x0(%rax,%rax,1)
L72:
  sub    $0x1,%r15d
  je     L44
  movzbl -0x2(%rsi,%rax,1),%edx
  mov    %rdi,%rax
  cmp    $0xd,%dl
  jne    L0
L182:
  mov    %r15d,%eax
  sub    $0x1,%eax
  je     L44
  cltq
  jmp    L166
  xchg   %ax,%ax
L62:
  mov    0x18(%rsp),%rdi
L171:
  mov    %ebp,%r12d
L20:
  call   <free@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L25
  add    $0x38,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L86:
  mov    0x18(%rsp),%rdi
  mov    $0xffffffff,%r12d
  jmp    L20
  nopl   (%rax)
L149:
  mov    $0xffffffff,%r12d
  jmp    L20
L25:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D19
data_type: string
name: read_data
arguments: tag: D14
data_type: string
name: read_data
arguments: tag: D3
data_type: string

tool: D19: ERROR

tool: D14: +CME ERROR:

tool: D3: +CMS ERROR:

assistant: ```c
ssize_t at_recv(FILE *fp, char *dest) {
  char *line = NULL;
  size_t len = 0;
  size_t ret = 0;
  ssize_t read;
  while ((read = getline(&line, &len, fp)) != -1) {
    if (!read)
      continue;
    if ((line[read - 1] == '\n') && (--read == 0))
      continue;
    if ((line[read - 1] == '\r') && (--read == 0))
      continue;
    line[read++] = '\0';
    if (!strcmp(line, "OK"))
      break;
    if ((!strcmp(line, "ERROR")) || (!strncmp(line, "+CME ERROR:", 10)) || (!strncmp(line, "+CMS ERROR:", 10))) {
      ret = -1;
      break;
    }
    if (dest) {
      if (ret)
        dest[-1] = ' ';
      memcpy(dest, line, read);
      dest += read;
    }
    ret++;
  }
  free(line);
  return ret;
}
```