// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb0, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl (%rdi), %edi
testl %edi, %edi
jle 0x1d297
callq 0x4840
movl $0x0, (%rbx)
movq 0x80(%rbx), %rdi
movl $0x402, %esi            # imm = 0x402
xorl %eax, %eax
callq 0x4310
movl %eax, (%rbx)
testl %eax, %eax
js 0x1d4d1
movq 0x8(%r14), %rdx
testq %rdx, %rdx
je 0x1d4d1
movq (%r14), %rsi
movl %eax, %edi
callq 0x4150
testq %rax, %rax
jg 0x1d4d1
callq 0x4050
movl (%rax), %edi
callq 0x4140
leaq 0x90(%rsp), %r14
leaq 0xf(%rsp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x5702
leaq 0x8b8b(%rip), %rcx      # 0x25e8a
movl $0x9, %r8d
movq %r14, %rdi
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 0x1d338
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x1d33f
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x30(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x8b5c(%rip), %rsi      # 0x25ebe
callq 0x4830
leaq 0x60(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1d38e
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
jmp 0x1d395
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x50(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x80(%rbx), %rsi
movq 0x88(%rbx), %rdx
callq 0x4100
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1d3ec
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x1d3f4
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x80(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x7c01(%rip), %rsi      # 0x25020
leaq 0x7bff(%rip), %rdx      # 0x25025
leaq 0x70(%rsp), %rdi
callq 0x578e
leaq 0x150a1(%rip), %rdi     # 0x324d8
leaq 0x10(%rsp), %rdx
leaq 0x70(%rsp), %rcx
movl $0x2, %esi
movl $0x1, %r8d
callq 0x20fae
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x1d46b
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x4460
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x1d482
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4460
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x1d499
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x4460
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x1d4b0
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4460
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d4d1
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x4460
addq $0xb0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x1d504
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x4460
jmp 0x1d504
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x1d520
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4460
jmp 0x1d520
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x1d53c
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x4460
jmp 0x1d53c
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x1d558
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4460
jmp 0x1d558
movq %rax, %rbx
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d579
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x4460
movq %rbx, %rdi
callq 0x4780
nop