user: Translate the below assembly code into C programming language:

```asm
<do_get>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x490,%rsp
  mov    %edi,%ebp
  mov    %rsi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x488(%rsp)
  xor    %eax,%eax
  lea    D27(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  lea    D10(%rip),%rax
  cmove  %rax,%rbx
  movq   $0x0,(%rsp)
  movq   $0x0,0x8(%rsp)
  movq   $0x0,0x10(%rsp)
  movq   $0x0,0x18(%rsp)
  movq   $0x0,0x20(%rsp)
  movq   $0x0,0x28(%rsp)
  movq   $0x0,0x30(%rsp)
  movq   $0x0,0x38(%rsp)
  movq   $0x0,0x40(%rsp)
  movq   $0x0,0x48(%rsp)
  movq   $0x0,0x50(%rsp)
  movq   $0x0,0x58(%rsp)
  movq   $0x0,0x60(%rsp)
  movq   $0x0,0x68(%rsp)
  movq   $0x0,0x70(%rsp)
  movq   $0x0,0x78(%rsp)
  mov    %rsp,%r12
  mov    %rbx,%rcx
  lea    D6(%rip),%rdx
  lea    D45(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
  lea    D37(%rip),%rsi
  mov    %r12,%rdi
  call   <fopen@plt>
  mov    %rax,%rbx
  mov    $0x0,%r12d
  test   %rax,%rax
  jne    L18
  mov    %rsp,%rsi
  lea    D1(%rip),%rdi
  call   <printf@plt>
  movabs $0x203430343e31683c,%rax
  movabs $0x746f6e20656c6966,%rdx
  mov    %rax,0x80(%rsp)
  mov    %rdx,0x88(%rsp)
  movabs $0x3c21646e756f6620,%rax
  mov    $0x3e31682f,%edx
  mov    %rax,0x90(%rsp)
  mov    %rdx,0x98(%rsp)
  lea    0x80(%rsp),%rbx
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    $0x0,%ecx
  mov    %rbx,%rsi
  mov    %ebp,%edi
  call   <send@plt>
  jmp    L10
L14:
  lea    0x80(%rsp),%rsi
  mov    $0x0,%ecx
  mov    %ebp,%edi
  call   <send@plt>
L18:
  movq   $0x0,0x80(%rsp)
  movq   $0x0,0x88(%rsp)
  lea    0x90(%rsp),%rdi
  mov    $0x7e,%ecx
  mov    %r12,%rax
  rep stos %rax,%es:(%rdi)
  lea    0x80(%rsp),%rdi
  mov    %rbx,%rcx
  mov    $0x400,%edx
  mov    $0x1,%esi
  call   <fread@plt>
  mov    %eax,%edx
  test   %eax,%eax
  jg     L14
  mov    %rbx,%rdi
  call   <fclose@plt>
L10:
  mov    0x488(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L28
  add    $0x490,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L28:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D27
datatype: string
name: extract_symbolic_data
arguments: data_tag: D10
datatype: string
name: extract_symbolic_data
arguments: data_tag: D6
datatype: string
name: extract_symbolic_data
arguments: data_tag: D45
datatype: string
name: extract_symbolic_data
arguments: data_tag: D37
datatype: string
name: extract_symbolic_data
arguments: data_tag: D1
datatype: string

tool: D27: /

tool: D10: /index.html

tool: D6: /WEB

tool: D45: %s%s

tool: D37: r

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


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;
}
```