user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<do_get>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rsi,%r13
  lea    D36(%rip),%rsi
  push   %r12
  mov    %edi,%r12d
  mov    %r13,%rdi
  push   %rbp
  push   %rbx
  sub    $0x498,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x488(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r15
  lea    0x80(%rsp),%r14
  lea    0x90(%rsp),%rbx
  call   <strcmp@plt>
  pxor   %xmm0,%xmm0
  lea    D67(%rip),%rdx
  mov    %r15,%rdi
  test   %rax,%rax
  lea    D72(%rip),%rax
  movaps %xmm0,(%rsp)
  lea    D75(%rip),%rsi
  cmove  %rax,%r13
  movaps %xmm0,0x10(%rsp)
  movaps %xmm0,0x20(%rsp)
  mov    %r13,%rcx
  movaps %xmm0,0x30(%rsp)
  xor    %r13d,%r13d
  movaps %xmm0,0x40(%rsp)
  movaps %xmm0,0x50(%rsp)
  movaps %xmm0,0x60(%rsp)
  movaps %xmm0,0x70(%rsp)
  call   <sprintf@plt>
  lea    D79(%rip),%rsi
  mov    %r15,%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  jne    L15
  jmp    L44
  xchg   %ax,%ax
L14:
  xor    %ecx,%ecx
  mov    %r14,%rsi
  mov    %r12d,%edi
  call   <send@plt>
L15:
  pxor   %xmm0,%xmm0
  mov    %r13,%rax
  mov    $0x7e,%ecx
  mov    %rbx,%rdi
  movaps %xmm0,0x80(%rsp)
  mov    $0x400,%edx
  mov    $0x1,%esi
  rep stos %rax,%es:(%rdi)
  mov    %rbp,%rcx
  mov    %r14,%rdi
  call   <fread@plt>
  mov    %eax,%edx
  test   %eax,%eax
  jg     L14
  mov    %rbp,%rdi
  call   <fclose@plt>
L27:
  mov    0x488(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L21
  add    $0x498,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L44:
  mov    %r15,%rsi
  lea    D54(%rip),%rdi
  call   <printf@plt>
  movdqa D22(%rip),%xmm0
  mov    %r14,%rdi
  movaps %xmm0,0x80(%rsp)
  movdqa D45(%rip),%xmm0
  movaps %xmm0,0x90(%rsp)
  call   <strlen@plt>
  xor    %ecx,%ecx
  mov    %r14,%rsi
  mov    %r12d,%edi
  mov    %eax,%edx
  call   <send@plt>
  jmp    L27
L21:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D36
type: string
name: parse_data
arguments: label: D67
type: string
name: parse_data
arguments: label: D72
type: string
name: parse_data
arguments: label: D75
type: string
name: parse_data
arguments: label: D79
type: string
name: parse_data
arguments: label: D54
type: string
name: parse_data
arguments: label: D22
type: byte[16]
name: parse_data
arguments: label: D45
type: byte[16]

tool: D36: /

tool: D67: /WEB

tool: D72: /index.html

tool: D75: %s%s

tool: D79: r

tool: D54: The file %s is not found!


tool: {"D22": [0x3c,0x68,0x31,0x3e,0x34,0x30,0x34,0x20,0x66,0x69,0x6c,0x65,0x20,0x6e,0x6f,0x74]}

tool: {"D45": [0x20,0x66,0x6f,0x75,0x6e,0x64,0x21,0x3c,0x2f,0x68,0x31,0x3e,0x00,0x00,0x00,0x00]}

assistant: ```c
void do_get(int fd, char *filename) {
  if (strcmp(filename, "/") == 0)
    filename = "/index.html";
  char path[128] = {'\0'};
  sprintf(path, "%s%s", "/WEB", filename);
  FILE *fp = fopen(path, "r");
  if (NULL == fp) {
    printf("The file %s is not found!\n", path);
    char errmsg[32] = "<h1>404 file not found!</h1>";
    send(fd, errmsg, strlen(errmsg), 0);
    return;
  }
  while (1) {
    char buf[1024] = {'\0'};
    int read_size = fread(buf, 1, sizeof(buf), fp);
    if (read_size <= 0)
      break;
    send(fd, buf, read_size, 0);
  }
  fclose(fp);
  return;
}
```