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

```asm
<SockAPI_SendHttpResp>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x28,%rsp
  mov    %r9,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x2018(%rsp)
  xor    %eax,%eax
  test   %edi,%edi
  js     L83
  mov    %edi,%ebp
  mov    %esi,%r15d
  mov    %rcx,%r12
  mov    %r8,%r14
  cmpq   $0x0,0x2060(%rsp)
  je     L187
  cmpq   $0x0,0x8(%rsp)
  je     L83
L187:
  lea    -0x64(%r15),%eax
  cmp    $0x1f3,%eax
  ja     L83
  test   %rdx,%rdx
  je     L84
  cmpb   $0x0,(%rdx)
  je     L84
L168:
  lea    0x10(%rsp),%r13
  mov    %rdx,%rcx
  lea    D18(%rip),%rsi
  mov    %r15d,%edx
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <sprintf@plt>
  mov    %rax,%rbx
  test   %r12,%r12
  je     L55
  cmpb   $0x0,(%r12)
  jne    L215
L55:
  test   %r14,%r14
  je     L162
  cmpb   $0x0,(%r14)
  jne    L136
L162:
  lea    0x2(%rbx),%rdx
  mov    %r13,%rsi
  mov    %ebp,%edi
  movb   $0xd,0x10(%rsp,%rbx,1)
  movb   $0xa,0x11(%rsp,%rbx,1)
  call   <SockAPI_SendN@plt>
  test   %rax,%rax
  jne    L83
  cmpq   $0x0,0x2060(%rsp)
  jne    L241
L221:
  mov    0x2018(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L76
  add    $0x2028,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L84:
  mov    %r15d,%edi
  call   <respcode2str@plt>
  mov    %rax,%rdx
  jmp    L168
L241:
  mov    0x2060(%rsp),%rdx
  mov    0x8(%rsp),%rsi
  mov    %ebp,%edi
  call   <SockAPI_SendN@plt>
  neg    %rax
  sbb    %eax,%eax
  jmp    L221
  nopl   0x0(%rax,%rax,1)
L215:
  cmpq   $0x0,0x2060(%rsp)
  je     L83
  mov    0x2060(%rsp),%rcx
  lea    0x0(%r13,%rax,1),%rdi
  xor    %eax,%eax
  mov    %r12,%rdx
  lea    D8(%rip),%rsi
  call   <sprintf@plt>
  add    %rax,%rbx
  jmp    L55
  nopl   (%rax)
L136:
  mov    %r14,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  cmp    $0x2,%eax
  jle    L83
  cmpb   $0xd,(%r14)
  je     L41
L20:
  movslq %edx,%rcx
  cmpb   $0xd,-0x2(%r14,%rcx,1)
  je     L170
  cmpb   $0xa,-0x1(%r14,%rcx,1)
  jne    L83
L170:
  lea    (%rcx,%rbx,1),%r14
  lea    0x3(%r14),%rax
  cmp    $0x2000,%rax
  ja     L83
  lea    0x0(%r13,%rbx,1),%rdi
  mov    %r13,%rsi
  mov    %r14,%rbx
  call   <memcpy@plt>
  jmp    L162
  nopl   (%rax)
L41:
  cmpb   $0xa,0x1(%r14)
  jne    L20
  nop
L83:
  mov    $0xffffffff,%eax
  jmp    L221
L76:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D18
type_guessed: string
name: retrieve_data
arguments: label: D8
type_guessed: string

tool: D18: HTTP/1.1 %d %s


tool: D8: Content-type: %s
Content-length: %d


assistant: ```c
int SockAPI_SendHttpResp(int sd, int status, const char *statusstr, const char *content_type, const char *otherhead, const char *content, size_t content_len) {
  char buf[8192];
  size_t offset = 0;
  if (sd < 0 || (content_len > 0 && !content) || status < 100 || status >= 600)
    return -1;
  if (!statusstr || !(*statusstr))
    statusstr = respcode2str(status);
  offset = sprintf(buf, "HTTP/1.1 %d %s\r\n", status, statusstr);
  if (content_type && *content_type) {
    if (content_len < 1)
      return -1;
    offset += sprintf(buf + offset, "Content-type: %s\r\nContent-length: %d\r\n", content_type, content_len);
  }
  if (otherhead && *otherhead) {
    int sz = strlen(otherhead);
    if (sz <= 2 || (otherhead[0] == '\r' && otherhead[1] == '\n') || (otherhead[sz - 2] != '\r' && otherhead[sz - 1] != '\n') || offset + sz + 3 > sizeof(buf))
      return -1;
    memcpy(buf + offset, buf, sz);
    offset += sz;
  }
  buf[offset++] = '\r';
  buf[offset++] = '\n';
  if (SockAPI_SendN(sd, buf, offset) == 0 && ((content_len == 0) || SockAPI_SendN(sd, content, content_len) == 0))
    return 0;
  return -1;
}
```