// File: /workspace/github_cpp_makefile_star2_O1/solaldunckel[P]webserv/srcs/Utils/File.cpp
// Function: File::getContent[abi:cxx11]()
std::string File::getContent() {
  std::string final;
  char buf[4096 + 1];
  int ret;

  lseek(fd_, 0, SEEK_SET);
  while ((ret = read(fd_, buf, 4096)) != 0) {
    if (ret == -1) {
      Log.print(DEBUG, "read : " + std::string(strerror(errno)), RED, true);
      return "";
    }
    buf[ret] = '\0';
    final.insert(final.length(), buf, ret);
  }
  return final;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10a0, %rsp           # imm = 0x10A0
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x20(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
movl (%rsi), %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4810
leaq 0x90(%rsp), %r15
leaq 0x10(%rsp), %r12
movl (%r14), %edi
movl $0x1000, %edx           # imm = 0x1000
movq %r15, %rsi
callq 0x45d0
testl %eax, %eax
je 0x1edbb
cmpl $-0x1, %eax
je 0x1ed5b
movslq %eax, %r8
movb $0x0, 0x90(%rsp,%r8)
movq 0x18(%rsp), %rsi
movq %r12, %rdi
xorl %edx, %edx
movq %r15, %rcx
callq 0x44c0
jmp 0x1ed1e
callq 0x4050
movl (%rax), %edi
callq 0x4140
leaq 0x70(%rsp), %rdi
leaq 0xf(%rsp), %rdx
movq %rax, %rsi
callq 0x5702
leaq 0x71ac(%rip), %rcx      # 0x25f2c
leaq 0x70(%rsp), %rdi
movl $0x7, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x44c0
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1ee03
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x1ee0a
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq 0x10(%rsp), %rcx
cmpq %r13, %rcx
je 0x1edda
movq %rcx, (%rbx)
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rbx)
jmp 0x1ede2
movups (%r13), %xmm0
movups %xmm0, (%rax)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rbx)
movq %r13, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
jmp 0x1eecc
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x60(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x61ee(%rip), %rsi      # 0x25020
leaq 0x61ec(%rip), %rdx      # 0x25025
leaq 0x50(%rsp), %rdi
callq 0x578e
leaq 0x1368e(%rip), %rdi     # 0x324d8
leaq 0x30(%rsp), %rdx
leaq 0x50(%rsp), %rcx
movl $0x2, %esi
movl $0x1, %r8d
callq 0x20fae
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x1ee7b
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x4460
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x1ee92
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4460
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1eeb3
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x4460
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x6bb7(%rip), %rdx      # 0x25a78
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x578e
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x1eee3
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4460
movq %rbx, %rax
addq $0x10a0, %rsp           # imm = 0x10A0
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x1ef59
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x1ef18
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x4460
jmp 0x1ef18
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x1ef34
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4460
jmp 0x1ef34
movq %rax, %rbx
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1ef5c
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x4460
jmp 0x1ef5c
jmp 0x1ef59
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x1ef73
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4460
movq %rbx, %rdi
callq 0x4780
nop