user: 请将以下的汇编代码转换成C语言代码：

```asm
<accept_loop>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x4000(%rsp),%r11
L14:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L14
  sub    $0x1c8,%rsp
  mov    $0x1fe,%ecx
  pxor   %xmm0,%xmm0
  mov    %fs:0x28,%rax
  mov    %rax,0x41b8(%rsp)
  xor    %eax,%eax
  mov    %edi,%ebx
  lea    0x1c0(%rsp),%rdi
  movaps %xmm0,0x1b0(%rsp)
  movaps %xmm0,0x11b0(%rsp)
  movaps %xmm0,0x21b0(%rsp)
  movaps %xmm0,0x31b0(%rsp)
  rep stos %rax,%es:(%rdi)
  lea    0x11c0(%rsp),%rdi
  mov    $0x1fe,%ecx
  rep stos %rax,%es:(%rdi)
  lea    0x21c0(%rsp),%rdi
  mov    $0x1fe,%ecx
  rep stos %rax,%es:(%rdi)
  lea    0x31c0(%rsp),%rdi
  mov    $0x1fe,%ecx
  rep stos %rax,%es:(%rdi)
  lea    0x14(%rsp),%rax
  mov    %rax,(%rsp)
  lea    0x28(%rsp),%rax
  mov    %rax,0x8(%rsp)
  jmp    L27
  nop
L26:
  mov    0x2c(%rsp),%edi
  lea    0x30(%rsp),%r12
  lea    0x21b0(%rsp),%r13
  lea    0xb0(%rsp),%r15
  call   <inet_ntoa@plt>
  mov    0x28(%rsp),%edi
  mov    %rax,%rbp
  call   <ntohs@plt>
  mov    %rbp,%rsi
  lea    D162(%rip),%rdi
  lea    0x1b0(%rsp),%rbp
  mov    %eax,%edx
  xor    %eax,%eax
  call   <printf@plt>
  xor    %esi,%esi
  mov    %rbp,%rdi
  mov    $0x1000,%edx
  call   <memset@plt>
  xor    %ecx,%ecx
  mov    %rbp,%rsi
  mov    $0x1000,%edx
  mov    %r14d,%edi
  call   <recv@plt>
  lea    D104(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rdi
  lea    0x31b0(%rsp),%rbp
  call   <puts@plt>
  lea    D140(%rip),%rdi
  call   <puts@plt>
  xor    %edi,%edi
  call   <time@plt>
  lea    0x18(%rsp),%rdi
  mov    %rax,0x18(%rsp)
  call   <gmtime@plt>
  lea    D1(%rip),%rdx
  mov    $0x80,%esi
  mov    %r12,%rdi
  mov    %rax,%rcx
  call   <strftime@plt>
  mov    0x18(%rsp),%rax
  lea    0x20(%rsp),%rdi
  add    $0x12c,%rax
  mov    %rax,0x20(%rsp)
  call   <gmtime@plt>
  lea    D166(%rip),%rdx
  mov    $0x80,%esi
  lea    0x130(%rsp),%rdi
  mov    %rax,%rcx
  call   <strftime@plt>
  lea    D150(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  lea    D73(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  lea    D6(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  lea    D172(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  lea    D2(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  lea    D114(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  lea    D90(%rip),%r12
  call   <strcat@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  lea    D113(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  lea    D100(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  lea    D176(%rip),%rsi
  mov    %r13,%rdi
  call   <strcpy@plt>
  lea    D147(%rip),%rsi
  mov    %r13,%rdi
  call   <strcat@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %r15,%rdi
  lea    D11(%rip),%rsi
  mov    %eax,%edx
  call   <sprintf@plt>
  mov    %r15,%rsi
  mov    %r13,%rdi
  lea    0x11b0(%rsp),%r15
  call   <strcat@plt>
  mov    %r12,%rsi
  mov    %r13,%rdi
  call   <strcat@plt>
  lea    D105(%rip),%rsi
  mov    %r13,%rdi
  call   <strcat@plt>
  mov    %r13,%rsi
  mov    %r15,%rdi
  call   <strcpy@plt>
  mov    %r12,%rsi
  mov    %r15,%rdi
  call   <strcat@plt>
  mov    %rbp,%rsi
  mov    %r15,%rdi
  call   <strcat@plt>
  mov    %r15,%rdi
  call   <strlen@plt>
  mov    %r14d,%edi
  xor    %ecx,%ecx
  mov    %r15,%rsi
  mov    %eax,%edx
  call   <send@plt>
  mov    %r14d,%edi
  call   <close@plt>
L27:
  mov    (%rsp),%rdx
  mov    0x8(%rsp),%rsi
  mov    %ebx,%edi
  movl   $0x8,0x14(%rsp)
  call   <accept@plt>
  mov    %eax,%r14d
  test   %eax,%eax
  jns    L26
  lea    D75(%rip),%rdi
  call   <perror@plt>
  mov    0x41b8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L20
  add    $0x41c8,%rsp
  mov    $0xffffffff,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L20:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D162
type_infered: string
name: disassemble_data
arguments: tag: D104
type_infered: string
name: disassemble_data
arguments: tag: D140
type_infered: string
name: disassemble_data
arguments: tag: D1
type_infered: string
name: disassemble_data
arguments: tag: D166
type_infered: string
name: disassemble_data
arguments: tag: D150
type_infered: string
name: disassemble_data
arguments: tag: D73
type_infered: string
name: disassemble_data
arguments: tag: D6
type_infered: string
name: disassemble_data
arguments: tag: D172
type_infered: string
name: disassemble_data
arguments: tag: D2
type_infered: string
name: disassemble_data
arguments: tag: D114
type_infered: string
name: disassemble_data
arguments: tag: D90
type_infered: string
name: disassemble_data
arguments: tag: D113
type_infered: string
name: disassemble_data
arguments: tag: D100
type_infered: string
name: disassemble_data
arguments: tag: D176
type_infered: string
name: disassemble_data
arguments: tag: D147
type_infered: string
name: disassemble_data
arguments: tag: D11
type_infered: string
name: disassemble_data
arguments: tag: D105
type_infered: string
name: disassemble_data
arguments: tag: D75
type_infered: string

tool: D162: accept!(IPAddress = %s, Port = %hu)


tool: D104: ----- recv begin -----

tool: D140: ----- recv end -----

tool: D1: %Y/%m/%d %H:%M:%S %Z

tool: D166: %a, %d %b %Y %H:%M:%S %Z

tool: D150: <html>


tool: D73:   <head>


tool: D6:     <title>Content-Type</title>


tool: D172:   </head>


tool: D2:   <body>


tool: D114:     

tool: D90: 


tool: D113:   </body>


tool: D100: </html>


tool: D176: HTTP/1.0 200 OK


tool: D147: Content-Length: 

tool: D11: %d

tool: D105: Content-Type: text/html


tool: D75: accept

assistant: ```c
int accept_loop(int soc) {
  struct sockaddr_in client_addr;
  int client_addr_len;
  int acc;
  char *client_ip_addr_str;
  u_short client_port;
  int ret = 0;
  char recv_buf[4096] = {0};
  char send_buf[4096] = {0};
  char response_header[4096] = {0};
  char response_body[4096] = {0};
  time_t t;
  struct tm *tm_ptr;
  char time_str[128];
  int content_length = 0;
  char content_length_str[128];
  time_t expires_t;
  struct tm *expires_tm_ptr;
  char expires_time_str[128];
  while (1) {
    client_addr_len = sizeof(client_addr);
    acc = accept(soc, (struct sockaddr *)&client_addr, &client_addr_len);
    if (acc < 0) {
      perror("accept");
      ret = -1;
      break;
    }
    client_ip_addr_str = inet_ntoa(client_addr.sin_addr);
    client_port = ntohs(client_addr.sin_port);
    printf("accept!(IPAddress = %s, Port = %hu)\n", client_ip_addr_str, client_port);
    memset(recv_buf, 0, sizeof(char) * 4096);
    recv(acc, recv_buf, sizeof(recv_buf), 0);
    printf("----- recv begin -----\n");
    printf("%s\n", recv_buf);
    printf("----- recv end -----\n");
    t = time(NULL);
    tm_ptr = gmtime(&t);
    strftime(time_str, sizeof(time_str), "%Y/%m/%d %H:%M:%S %Z", tm_ptr);
    expires_t = t + 5 * 60;
    expires_tm_ptr = gmtime(&expires_t);
    strftime(expires_time_str, sizeof(expires_time_str), "%a, %d %b %Y %H:%M:%S %Z", expires_tm_ptr);
    strcpy(response_body, "<html>\r\n");
    strcat(response_body, "  <head>\r\n");
    strcat(response_body, "    <title>Content-Type</title>\r\n");
    strcat(response_body, "  </head>\r\n");
    strcat(response_body, "  <body>\r\n");
    strcat(response_body, "    ");
    strcat(response_body, time_str);
    strcat(response_body, "\r\n");
    strcat(response_body, "  </body>\r\n");
    strcat(response_body, "</html>\r\n");
    strcpy(response_header, "HTTP/1.0 200 OK\r\n");
    strcat(response_header, "Content-Length: ");
    content_length = strlen(response_body);
    sprintf(content_length_str, "%d", content_length);
    strcat(response_header, content_length_str);
    strcat(response_header, "\r\n");
    strcat(response_header, "Content-Type: text/html\r\n");
    strcpy(send_buf, response_header);
    strcat(send_buf, "\r\n");
    strcat(send_buf, response_body);
    send(acc, send_buf, strlen(send_buf), 0);
    close(acc);
  }
  return ret;
}
```