// File: demon386[P]git-store/./libs/filesystem/src/operations.cpp
// Function: (anonymous namespace)::remove_file_or_directory(boost::filesystem::path const&, boost::filesystem::file_type, boost::system::error_code*)
bool remove_file_or_directory(const path& p, fs::file_type type, error_code* ec)
    // return true if file removed, false if not removed
  {
    if (type == fs::file_not_found)
    {
      if (ec != 0) ec->clear();
      return false;
    }

    if (type == fs::directory_file
#     ifdef BOOST_WINDOWS_API
        || type == fs::_detail_directory_symlink
#     endif
      )
    {
      if (error(!remove_directory(p) ? BOOST_ERRNO : 0, p, ec,
        "boost::filesystem::remove"))
          return false;
    }
    else
    {
      if (error(!remove_file(p) ? BOOST_ERRNO : 0, p, ec,
        "boost::filesystem::remove"))
          return false;
    }
    return true;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
cmpl $0x1, -0x14(%rbp)
jne 0x4b345
cmpq $0x0, -0x20(%rbp)
je 0x4b33c
movq -0x20(%rbp), %rdi
callq 0x4d9e0
movb $0x0, -0x1(%rbp)
jmp 0x4b527
cmpl $0x3, -0x14(%rbp)
jne 0x4b439
movq -0x10(%rbp), %rdi
callq 0x4d140
testb $0x1, %al
jne 0x4b368
callq 0xd070
movl (%rax), %eax
movl %eax, -0x80(%rbp)
jmp 0x4b36f
xorl %eax, %eax
movl %eax, -0x80(%rbp)
jmp 0x4b36f
movl -0x80(%rbp), %eax
movl %eax, -0x9c(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq -0x41(%rbp), %rdi
movq %rdi, -0x88(%rbp)
callq 0xdb50
movq -0x88(%rbp), %rdx
leaq 0x17bb0(%rip), %rsi     # 0x62f5c
leaq -0x40(%rbp), %rdi
callq 0xd8b0
jmp 0x4b3b7
movq -0x90(%rbp), %rdx
movq -0x98(%rbp), %rsi
movl -0x9c(%rbp), %edi
leaq -0x40(%rbp), %rcx
callq 0x4a0b0
movb %al, -0x9d(%rbp)
jmp 0x4b3dc
leaq -0x40(%rbp), %rdi
callq 0xdca8
leaq -0x41(%rbp), %rdi
callq 0xd6b0
movb -0x9d(%rbp), %al
testb $0x1, %al
jne 0x4b3fa
jmp 0x4b434
movb $0x0, -0x1(%rbp)
jmp 0x4b527
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x4b426
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x40(%rbp), %rdi
callq 0xdca8
leaq -0x41(%rbp), %rdi
callq 0xd6b0
jmp 0x4b535
jmp 0x4b523
movq -0x10(%rbp), %rdi
callq 0x4d170
testb $0x1, %al
jne 0x4b455
callq 0xd070
movl (%rax), %eax
movl %eax, -0xa4(%rbp)
jmp 0x4b45f
xorl %eax, %eax
movl %eax, -0xa4(%rbp)
jmp 0x4b45f
movl -0xa4(%rbp), %eax
movl %eax, -0xc4(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq -0x79(%rbp), %rdi
movq %rdi, -0xb0(%rbp)
callq 0xdb50
movq -0xb0(%rbp), %rdx
leaq 0x17abd(%rip), %rsi     # 0x62f5c
leaq -0x78(%rbp), %rdi
callq 0xd8b0
jmp 0x4b4aa
movq -0xb8(%rbp), %rdx
movq -0xc0(%rbp), %rsi
movl -0xc4(%rbp), %edi
leaq -0x78(%rbp), %rcx
callq 0x4a0b0
movb %al, -0xc5(%rbp)
jmp 0x4b4cf
leaq -0x78(%rbp), %rdi
callq 0xdca8
leaq -0x79(%rbp), %rdi
callq 0xd6b0
movb -0xc5(%rbp), %al
testb $0x1, %al
jne 0x4b4ed
jmp 0x4b521
movb $0x0, -0x1(%rbp)
jmp 0x4b527
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x4b516
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x78(%rbp), %rdi
callq 0xdca8
leaq -0x79(%rbp), %rdi
callq 0xd6b0
jmp 0x4b535
jmp 0x4b523
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0xd0, %rsp
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0xdb30
nop