// File: solaldunckel[P]webserv/srcs/Utils/File.cpp
// Function: File::append(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void File::append(std::string &body) {
  close();
  fd_ = ::open(path_.c_str(), O_RDWR | O_APPEND);
  if (fd_ < 0)
    return ;
  if (body.length() && write(fd_, body.c_str(), body.length()) <= 0)
    Log.print(DEBUG, "append : " + std::string(strerror(errno)) + " of " + path_, RED, true);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
callq 0x35960
movq -0xd8(%rbp), %rdi
addq $0x80, %rdi
callq 0x51f0
movq %rax, %rdi
movl $0x402, %esi            # imm = 0x402
movb $0x0, %al
callq 0x53c0
movl %eax, %ecx
movq -0xd8(%rbp), %rax
movl %ecx, (%rax)
cmpl $0x0, (%rax)
jge 0x3648a
jmp 0x366db
movq -0x10(%rbp), %rdi
callq 0x5830
cmpq $0x0, %rax
je 0x366db
movq -0xd8(%rbp), %rax
movl (%rax), %eax
movl %eax, -0xe4(%rbp)
movq -0x10(%rbp), %rdi
callq 0x51f0
movq %rax, -0xe0(%rbp)
movq -0x10(%rbp), %rdi
callq 0x5830
movl -0xe4(%rbp), %edi
movq -0xe0(%rbp), %rsi
movq %rax, %rdx
callq 0x5190
cmpq $0x0, %rax
jg 0x366db
callq 0x5060
movl (%rax), %edi
callq 0x5170
movq %rax, -0xf8(%rbp)
leaq -0x91(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
callq 0x5960
movq -0xf8(%rbp), %rsi
movq -0xf0(%rbp), %rdx
leaq -0x90(%rbp), %rdi
callq 0x6be0
jmp 0x36526
leaq 0xd93d(%rip), %rsi      # 0x43e6a
leaq -0x70(%rbp), %rdi
leaq -0x90(%rbp), %rdx
callq 0x107f0
jmp 0x3653f
leaq 0xd958(%rip), %rdx      # 0x43e9e
leaq -0x50(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x6a80
jmp 0x36555
movq -0xd8(%rbp), %rdx
subq $-0x80, %rdx
leaq -0x30(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x6a30
jmp 0x3656f
leaq -0xc9(%rbp), %rdi
movq %rdi, -0x100(%rbp)
callq 0x5960
movq -0x100(%rbp), %rdx
leaq 0xca90(%rip), %rsi      # 0x43020
leaq -0xc8(%rbp), %rdi
callq 0x6be0
jmp 0x3659e
leaq 0x26053(%rip), %rdi     # 0x5c5f8
movl $0x2, %esi
leaq -0x30(%rbp), %rdx
leaq -0xc8(%rbp), %rcx
movl $0x1, %r8d
callq 0x3b240
jmp 0x365c2
leaq -0xc8(%rbp), %rdi
callq 0x5aa8
leaq -0xc9(%rbp), %rdi
callq 0x55e0
leaq -0x30(%rbp), %rdi
callq 0x5aa8
leaq -0x50(%rbp), %rdi
callq 0x5aa8
leaq -0x70(%rbp), %rdi
callq 0x5aa8
leaq -0x90(%rbp), %rdi
callq 0x5aa8
leaq -0x91(%rbp), %rdi
callq 0x55e0
jmp 0x366db
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x366cd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x366c1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x366b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x366af
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x3669a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x5aa8
leaq -0xc9(%rbp), %rdi
callq 0x55e0
leaq -0x30(%rbp), %rdi
callq 0x5aa8
leaq -0x50(%rbp), %rdi
callq 0x5aa8
leaq -0x70(%rbp), %rdi
callq 0x5aa8
leaq -0x90(%rbp), %rdi
callq 0x5aa8
leaq -0x91(%rbp), %rdi
callq 0x55e0
jmp 0x366e4
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
movq -0xa0(%rbp), %rdi
callq 0x5950