user: What would the C source look like for the assembly code provided here:

```asm
<server_connection>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  lea    D1(%rip),%r13
  push   %r12
  mov    %edi,%r12d
  mov    $0x1,%edi
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbx
  call   <xmalloc@plt>
  mov    %r13,%rsi
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <strcpy@plt>
  nopl   (%rax)
L28:
  xor    %ecx,%ecx
  mov    $0x80,%edx
  mov    %rbx,%rsi
  mov    %r12d,%edi
  call   <recv@plt>
  test   %eax,%eax
  jle    L54
  mov    $0xa,%esi
  mov    %rbx,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L33
  movb   $0x0,(%rax)
  mov    %rbp,%rdi
  lea    0x1(%rax),%r14
  call   <strlen@plt>
  mov    %rbx,%rdi
  mov    %eax,%r15d
  call   <strlen@plt>
  mov    %rbp,%rdi
  lea    0x1(%r15,%rax,1),%esi
  call   <xrealloc@plt>
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <strlen@plt>
  mov    %rbx,%rdi
  mov    %eax,%r15d
  call   <strlen@plt>
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  lea    (%r15,%rax,1),%edx
  call   <strncat@plt>
  mov    %r12d,%edi
  mov    %rbp,%rsi
  call   <handle_message@plt>
  mov    %r14,%rdi
  call   <strlen@plt>
  cmp    $0x1,%eax
  jle    L43
  mov    %r14,%rdi
  call   <strlen@plt>
  mov    %rbp,%rdi
  lea    0x1(%rax),%esi
  call   <xrealloc@plt>
  mov    %r14,%rsi
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <strcpy@plt>
  jmp    L28
  nopw   0x0(%rax,%rax,1)
L33:
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %rbx,%rdi
  mov    %eax,%r14d
  call   <strlen@plt>
  mov    %rbp,%rdi
  lea    0x1(%r14,%rax,1),%esi
  call   <xrealloc@plt>
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <strlen@plt>
  mov    %rbx,%rdi
  mov    %eax,%r14d
  call   <strlen@plt>
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  lea    (%r14,%rax,1),%edx
  call   <strncat@plt>
  jmp    L28
  nopw   0x0(%rax,%rax,1)
L43:
  mov    %rbp,%rdi
  mov    $0x1,%esi
  call   <xrealloc@plt>
  mov    %r13,%rsi
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <strcpy@plt>
  jmp    L28
L54:
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L36
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L36:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D1
type: string

tool: 

assistant: ```c
void server_connection(int socketfd) {
  char buf[128];
  int len;
  char *msg = xmalloc(sizeof(char));
  strcpy(msg, "");
  while (len = recv(socketfd, &buf, 128, 0), len > 0) {
    if (len == -1) {
      break;
    }
    char *newline = strchr(buf, '\n');
    if (newline == NULL) {
      msg = xrealloc(msg, strlen(msg) + strlen(buf) + 1);
      strncat(msg, buf, strlen(msg) + strlen(buf));
    } else {
      char *rest = &newline[1];
      newline[0] = '\0';
      msg = xrealloc(msg, strlen(msg) + strlen(buf) + 1);
      strncat(msg, buf, strlen(msg) + strlen(buf));
      handle_message(socketfd, msg);
      if (strlen(rest) > 1) {
        msg = xrealloc(msg, strlen(rest) + 1);
        strcpy(msg, rest);
      } else {
        msg = xrealloc(msg, sizeof(char));
        strcpy(msg, "");
      }
    }
  }
}
```