// File: /workspace/github_cpp_makefile_star2_O1/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, %r14
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq 0x28(%rsp), %r13
movq %r13, %rdi
movq %rax, %rsi
callq 0x1d19a
leaq 0x18(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x58(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x18(%r14), %rsi
leaq 0x8(%rsp), %rcx
movq %r13, %rdx
callq 0x45ada
testb %al, %al
je 0x47b27
movq 0x8(%r14), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0x45c32
movq 0x48(%rsp), %rdi
callq 0x35cc8
testq %rax, %rax
je 0x47c4b
movb $0x1, %bpl
cmpq $0x0, 0x30(%rsp)
jne 0x47d4b
leaq 0x78(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x2287f(%rip), %rsi     # 0x6a34f
leaq 0x2287a(%rip), %rdx     # 0x6a351
leaq 0x68(%rsp), %rdi
callq 0x1bee6
movq (%r14), %rax
leaq 0x68(%rsp), %rsi
movq %r14, %rdi
movq %r12, %rdx
movq %r15, %rcx
movq %rbx, %r8
callq *0x20(%rax)
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
leaq 0x38(%rsp), %rbx
leaq 0x18(%rsp), %r14
leaq 0x58(%rsp), %r15
je 0x47d5a
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x47d5a
movq 0x8(%rbx), %rdx
leaq 0x2447c(%rip), %rcx     # 0x6bfae
movl $0xc, %r8d
movq %rbx, %rdi
xorl %esi, %esi
callq 0xb870
leaq 0x44a27(%rip), %r12     # 0x8c570
movq (%r12), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x47d49
addq $0x20, %rdi
callq 0xb7d0
movq (%r12), %rax
movq 0x8(%rax), %r15
leaq 0x22618(%rip), %rsi     # 0x6a188
movl $0xb, %edx
movq %r15, %rdi
callq 0xb5f0
leaq 0x247b1(%rip), %rsi     # 0x6c335
movl $0x13, %edx
movq %r15, %rdi
callq 0xb5f0
leaq 0x24918(%rip), %rsi     # 0x6c4b0
movl $0x9, %edx
movq %r15, %rdi
callq 0xb5f0
leaq 0x2479d(%rip), %rsi     # 0x6c349
movl $0xd, %edx
movq %r15, %rdi
callq 0xb5f0
movq 0x18(%r14), %rsi
movq 0x20(%r14), %rdx
movq %r15, %rdi
callq 0xb5f0
movq %rax, %r14
leaq 0x24784(%rip), %rsi     # 0x6c357
movl $0x5, %edx
movq %rax, %rdi
callq 0xb5f0
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0xb5f0
movq %rax, %r14
leaq 0x22df4(%rip), %rsi     # 0x6a9f0
movl $0xa, %edx
movq %rax, %rdi
callq 0xb5f0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0xb5f0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0xb4d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0xb050
movq %rax, %rdi
callq 0xb340
movq (%r12), %rdi
jmp 0x47d40
movq 0x8(%rbx), %rdx
leaq 0x24864(%rip), %rcx     # 0x6c4ba
movl $0xf, %r8d
movq %rbx, %rdi
xorl %esi, %esi
callq 0xb870
leaq 0x44903(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x47d49
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x8(%rax), %r14
leaq 0x224f6(%rip), %rsi     # 0x6a188
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x2468f(%rip), %rsi     # 0x6c335
movl $0x13, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x247f6(%rip), %rsi     # 0x6c4b0
movl $0x9, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x247fc(%rip), %rsi     # 0x6c4ca
movl $0x1e, %edx
movq %r14, %rdi
callq 0xb5f0
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0xb5f0
movq %rax, %r14
leaq 0x22cf9(%rip), %rsi     # 0x6a9f0
movl $0xa, %edx
movq %rax, %rdi
callq 0xb5f0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0xb5f0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0xb4d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0xb050
movq %rax, %rdi
callq 0xb340
movq (%r15), %rdi
addq $0x20, %rdi
callq 0xb3b0
xorl %ebp, %ebp
leaq 0x38(%rsp), %rbx
leaq 0x18(%rsp), %r14
leaq 0x58(%rsp), %r15
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x47d71
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x47d88
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x28(%rsp), %rdi
cmpq %rbx, %rdi
je 0x47d9f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
movl %ebp, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x47dd4
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x47dd4
jmp 0x47dd1
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x47df0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x47e0c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x47e28
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rbx, %rdi
callq 0xb9c0