// File: /workspace/github_cpp_makefile_star2_O2/nurseiit[P]cpp-server/server.cpp
// Function: Headers::get_response[abi:cxx11]()
std::string get_response() {
    std::stringstream response_stream;

    FILE *fp;
    std::string path = url;

    if (path == "/") {
      path = "/index.html";
    }
    if (path.find("../") != -1) {
      path = "/403.html";
    }
    path = "./web" + path;

    if ((fp = fopen(path.c_str(), "rb")) == nullptr) {
      std::string content = "<html><body><h1>404 Not Found</h1></body></html>";
      response_stream << "HTTP/1.1 404 Not Found" << std::endl;
      response_stream << "content-type: text/html" << std::endl;
      response_stream << "content-length: " << content.length() << std::endl;
      response_stream << std::endl;
      response_stream << content;
    } else {
      std::stringstream content_stream;
      char buffer[6969];
      long n;

      while ((n = fread(buffer, 1, 6969, fp)) > 0)
        content_stream << buffer;
      fclose(fp);

      std::string content = content_stream.str();
      response_stream << "HTTP/1.1 200 OK" << std::endl;
      response_stream << "content-type: text/html" << std::endl;
      response_stream << "content-length: " << content.length() << std::endl;
      response_stream << std::endl;
      response_stream << content;
    }
    return response_stream.str();
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e90, %rsp           # imm = 0x1E90
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1c8(%rsp), %rdi
callq 0x52b0
addq $0x20, %r14
movq %rsp, %rdi
movq %r14, %rsi
callq 0x5480
leaq 0x320f(%rip), %rsi      # 0xf728
movq %rsp, %rdi
callq 0xd073
testb %al, %al
je 0xc534
leaq 0x31ee(%rip), %rsi      # 0xf71a
movq %rsp, %rdi
callq 0x5630
leaq 0x31eb(%rip), %rsi      # 0xf726
movq %rsp, %rdi
xorl %edx, %edx
callq 0x5670
cmpq $-0x1, %rax
je 0xc55a
leaq 0x31d8(%rip), %rsi      # 0xf72a
movq %rsp, %rdi
callq 0x5630
leaq 0x31d3(%rip), %rsi      # 0xf734
leaq 0x350(%rsp), %rdi
movq %rsp, %rdx
callq 0xd080
movq %rsp, %r14
leaq 0x350(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x5400
movq %r15, %rdi
callq 0x51c0
movq (%r14), %rdi
leaq 0x31a1(%rip), %rsi      # 0xf73a
callq 0x53e0
testq %rax, %rax
je 0xc689
movq %rax, %r14
leaq 0x40(%rsp), %rdi
callq 0x52b0
leaq 0x50(%rsp), %r15
leaq 0x350(%rsp), %r12
pushq $0x1
popq %r13
movl $0x1b39, %edx           # imm = 0x1B39
movq %r12, %rdi
movq %r13, %rsi
movq %r14, %rcx
callq 0x54f0
testq %rax, %rax
jle 0xc5ea
movq %r15, %rdi
movq %r12, %rsi
callq 0x5360
jmp 0xc5c5
movq %r14, %rdi
callq 0x5370
leaq 0x58(%rsp), %rsi
leaq 0x20(%rsp), %rdi
callq 0x5540
leaq 0x1d8(%rsp), %r14
leaq 0x319e(%rip), %rsi      # 0xf7ae
movq %r14, %rdi
callq 0x5360
movq %rax, %rdi
callq 0x51e0
leaq 0x315e(%rip), %rsi      # 0xf785
movq %r14, %rdi
callq 0x5360
movq %rax, %rdi
callq 0x51e0
leaq 0x315f(%rip), %rsi      # 0xf79d
movq %r14, %rdi
callq 0x5360
movq 0x28(%rsp), %rsi
movq %rax, %rdi
callq 0x5290
movq %rax, %rdi
callq 0x51e0
movq %r14, %rdi
callq 0x51e0
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x5330
leaq 0x20(%rsp), %rdi
callq 0x51c0
leaq 0x40(%rsp), %rdi
callq 0x52d0
jmp 0xc724
leaq 0x30ad(%rip), %rsi      # 0xf73d
leaq 0x350(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0x5190
leaq 0x1d8(%rsp), %r14
leaq 0x30bd(%rip), %rsi      # 0xf76e
movq %r14, %rdi
callq 0x5360
movq %rax, %rdi
callq 0x51e0
leaq 0x30bd(%rip), %rsi      # 0xf785
movq %r14, %rdi
callq 0x5360
movq %rax, %rdi
callq 0x51e0
leaq 0x30be(%rip), %rsi      # 0xf79d
movq %r14, %rdi
callq 0x5360
movq 0x358(%rsp), %rsi
movq %rax, %rdi
callq 0x5290
movq %rax, %rdi
callq 0x51e0
movq %r14, %rdi
callq 0x51e0
leaq 0x350(%rsp), %rsi
movq %r14, %rdi
callq 0x5330
leaq 0x350(%rsp), %rdi
callq 0x51c0
leaq 0x1e0(%rsp), %rsi
movq %rbx, %rdi
callq 0x5540
movq %rsp, %rdi
callq 0x51c0
leaq 0x1c8(%rsp), %rdi
callq 0x52d0
movq %rbx, %rax
addq $0x1e90, %rsp           # imm = 0x1E90
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0xc76a
jmp 0xc790
jmp 0xc76a
jmp 0xc76a
movq %rax, %rbx
jmp 0xc7a5
movq %rax, %rbx
jmp 0xc79d
movq %rax, %rbx
leaq 0x350(%rsp), %rdi
callq 0x51c0
jmp 0xc79d
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x51c0
jmp 0xc793
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x52d0
movq %rsp, %rdi
callq 0x51c0
leaq 0x1c8(%rsp), %rdi
callq 0x52d0
movq %rbx, %rdi
callq 0x55b0