// File: /workspace/github_cpp_makefile_star2_O2/mh0fm4[P]SCDC/src/components/dataprov/dataprov_fs2.cc
// Function: scdc_dataset_fs2_access::do_cmd_rm(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, _scdc_dataset_inout_t*, _scdc_dataset_inout_t*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool do_cmd_rm(const string &params, scdc_dataset_input_t *input, scdc_dataset_output_t *output, scdc_result &result)
    {
      SCDC_TRACE("do_cmd_rm: params: '" << params << "'");

      bool ret = false;

      const string sub = params;
      string pwd_path, abs_path;

      if (!dataprov_fs2()->make_pwd_path(pwd, sub, pwd_path))
      {
        result = "invalid path";
        SCDC_FAIL(__func__ << ": make path '" << pwd << "' + '" << sub << "' failed: " << result);
        goto do_return;
      }

      dataprov_fs2()->make_abs_path(pwd_path, abs_path);
      SCDC_TRACE("do_cmd_rm: pwd_path: '" << pwd_path << "', abs_path: '" << abs_path << "'");

      if (!z_fs_rm(abs_path.c_str()))
      {
        result = "removing failed";
        SCDC_FAIL(__func__ << ": removing file or directory '" << pwd_path << "' failed: " << result);
        goto do_return;
      }

      if (sub.empty()) do_cmd_cd("..", input, output, result);

      ret = true;

do_return:
      SCDC_TRACE("do_cmd_rm: return: " << ret);

      return ret;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %r8, %rbx
movq %rcx, %r15
movq %rdx, %r12
movq %rdi, %r13
leaq 0x48(%rsp), %rbp
movq %rbp, %rdi
callq 0xb750
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
leaq 0x38(%rsp), %rcx
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
xorl %edx, %edx
movb %dl, (%rax)
movb %dl, (%rcx)
leaq 0x18(%r13), %r14
leaq 0x8(%rsp), %rcx
movq %r14, %rsi
movq %rbp, %rdx
callq 0x37714
testb %al, %al
je 0x38c62
movq 0x8(%r13), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
callq 0x377f2
movq 0x28(%rsp), %rdi
callq 0x2db30
testq %rax, %rax
je 0x38d20
movb $0x1, %bpl
cmpq $0x0, 0x50(%rsp)
jne 0x38dca
leaq 0x18723(%rip), %rsi     # 0x5134f
leaq 0x68(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x1a132
movq (%r13), %rax
leaq 0x68(%rsp), %rsi
movq %r13, %rdi
movq %r12, %rdx
movq %r15, %rcx
movq %rbx, %r8
callq *0x20(%rax)
leaq 0x68(%rsp), %rdi
callq 0xb230
jmp 0x38dca
leaq 0x1a34d(%rip), %rsi     # 0x52fb6
movq %rbx, %rdi
callq 0xba40
leaq 0x3c908(%rip), %r15     # 0x75580
movq (%r15), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x38dc8
addq $0x20, %rdi
callq 0xb800
movq (%r15), %rax
movq 0x8(%rax), %rdi
leaq 0x184eb(%rip), %rsi     # 0x51188
callq 0xb520
leaq 0x1a694(%rip), %rsi     # 0x5333d
movq %rax, %rdi
callq 0xb520
leaq 0x1a800(%rip), %rsi     # 0x534b8
movq %rax, %rdi
callq 0xb520
leaq 0x1a68a(%rip), %rsi     # 0x53351
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
movq %r14, %rsi
callq 0xb490
leaq 0x1a67e(%rip), %rsi     # 0x5335f
movq %rax, %rdi
callq 0xb520
leaq 0x48(%rsp), %rsi
movq %rax, %rdi
callq 0xb490
leaq 0x18ca8(%rip), %rsi     # 0x519a5
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
movq %rbx, %rsi
callq 0xb490
movq %rax, %rdi
callq 0xb270
movq (%r15), %rdi
jmp 0x38dbf
leaq 0x1a79b(%rip), %rsi     # 0x534c2
movq %rbx, %rdi
callq 0xba40
leaq 0x3c84a(%rip), %r14     # 0x75580
movq (%r14), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x38dc8
addq $0x20, %rdi
callq 0xb800
movq (%r14), %rax
movq 0x8(%rax), %rdi
leaq 0x1842d(%rip), %rsi     # 0x51188
callq 0xb520
leaq 0x1a5d6(%rip), %rsi     # 0x5333d
movq %rax, %rdi
callq 0xb520
leaq 0x1a742(%rip), %rsi     # 0x534b8
movq %rax, %rdi
callq 0xb520
leaq 0x1a74d(%rip), %rsi     # 0x534d2
movq %rax, %rdi
callq 0xb520
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0xb490
leaq 0x18c04(%rip), %rsi     # 0x519a5
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
movq %rbx, %rsi
callq 0xb490
movq %rax, %rdi
callq 0xb270
movq (%r14), %rdi
addq $0x20, %rdi
callq 0xb3e0
xorl %ebp, %ebp
leaq 0x28(%rsp), %rdi
callq 0xb230
leaq 0x8(%rsp), %rdi
callq 0xb230
leaq 0x48(%rsp), %rdi
callq 0xb230
movl %ebp, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0xb230
jmp 0x38e10
jmp 0x38e0d
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xb230
leaq 0x8(%rsp), %rdi
callq 0xb230
leaq 0x48(%rsp), %rdi
callq 0xb230
movq %rbx, %rdi
callq 0xb9a0