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

```asm
<http>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    $0x0,%edx
  lea    D61(%rip),%rsi
  call   <net_connect_tcp@plt>
  mov    %eax,%r12d
  test   %eax,%eax
  js     L60
L56:
  mov    %rsp,%rdi
  mov    %rbx,%r8
  mov    %rbp,%rcx
  mov    $0x2,%edx
  lea    D30(%rip),%rsi
  call   <prepare@plt>
  mov    %eax,%edx
  mov    $0x0,%ecx
  mov    (%rsp),%rsi
  mov    %r12d,%edi
  call   <send@plt>
  mov    %eax,%ebx
  mov    (%rsp),%rdi
  call   <free@plt>
  test   %ebx,%ebx
  js     L15
L5:
  lea    D24(%rip),%r13
  lea    D68(%rip),%rbp
  lea    D33(%rip),%rbx
  jmp    L8
L60:
  mov    $0x0,%esi
  lea    D23(%rip),%rdi
  mov    $0x0,%eax
  call   <die@plt>
  jmp    L56
L15:
  mov    %r12d,%edx
  mov    $0x1,%esi
  lea    D25(%rip),%rdi
  mov    $0x0,%eax
  call   <die@plt>
  jmp    L5
L4:
  mov    %rbx,%rsi
  mov    %r14,%rdi
  call   <strstr@plt>
  add    $0x4,%rax
  mov    %rax,(%rsp)
L34:
  mov    (%rsp),%r14
  mov    %rbp,%rsi
  mov    %r14,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  jne    L4
  mov    %rbx,%rsi
  mov    %r14,%rdi
  call   <strstr@plt>
  mov    %rax,(%rsp)
  test   %rax,%rax
  jne    L78
L8:
  mov    %r12d,%edi
  call   <net_receive@plt>
  mov    %rax,(%rsp)
  test   %rax,%rax
  jne    L34
  mov    %r12d,%edx
  mov    $0x1,%esi
  mov    %r13,%rdi
  call   <die@plt>
  jmp    L34
L78:
  add    $0x4,%rax
  mov    %rax,(%rsp)
  mov    %r12d,%edi
  call   <close@plt>
  mov    (%rsp),%rax
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L48
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L48:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D61
type: string
name: extract_symbolic_data
arguments: tag: D30
type: string
name: extract_symbolic_data
arguments: tag: D24
type: string
name: extract_symbolic_data
arguments: tag: D68
type: string
name: extract_symbolic_data
arguments: tag: D33
type: string
name: extract_symbolic_data
arguments: tag: D23
type: string
name: extract_symbolic_data
arguments: tag: D25
type: string

tool: D61: http

tool: D30: GET %s HTTP/1.1
Host: %s
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
Connection: close



tool: D24: Receive

tool: D68: HTTP/1.1 100 Continue


tool: D33: 



tool: D23: Connect

tool: D25: Send

assistant: ```c
char *http(char *host, char *loc) {
  char *packet;
  int s = net_connect_tcp(host, "http", 0);
  if (s < 0)
    die("Connect", 0);
  char *cmd = "GET %s HTTP/1.1\r\nHost: %s\r\nUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0\r\nConnection: close\r\n\r\n";
  int len = prepare(&packet, cmd, 2, loc, host);
  int r = send(s, packet, len, 0);
  free(packet);
  if (r < 0)
    die("Send", 1, s);
  do {
    if ((packet = net_receive(s)) == NULL)
      die("Receive", 1, s);
    while (strstr(packet, "HTTP/1.1 100 Continue\r\n") != NULL)
      packet = strstr(packet, "\r\n\r\n") + 4;
    packet = strstr(packet, "\r\n\r\n");
  } while (packet == NULL);
  packet += 4;
  close(s);
  return packet;
}
```