// File: 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
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xd0(%rbp)
jmp 0x742cc
movb $0x0, -0x29(%rbp)
movq -0x10(%rbp), %rsi
leaq -0x50(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
callq 0xc270
leaq -0x70(%rbp), %rdi
movq %rdi, -0xe0(%rbp)
callq 0xc960
leaq -0x90(%rbp), %rdi
callq 0xc960
movq -0xd0(%rbp), %rdi
callq 0x77520
movq -0xd0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
movq -0xe0(%rbp), %rcx
movq %rax, %rdi
addq $0x18, %rsi
callq 0x714c0
movb %al, -0xd1(%rbp)
jmp 0x74335
movb -0xd1(%rbp), %al
testb $0x1, %al
jne 0x744d3
jmp 0x74345
movq -0x28(%rbp), %rdi
leaq 0x33cde(%rip), %rsi     # 0xa802e
callq 0xc920
jmp 0x74357
jmp 0x74359
leaq 0x60348(%rip), %rax     # 0xd46a8
movq (%rax), %rdi
callq 0x257e0
cmpq $0x0, %rax
je 0x744ca
leaq 0x6032f(%rip), %rax     # 0xd46a8
movq %rax, -0xf8(%rbp)
movq (%rax), %rdi
callq 0x25800
movq -0xf8(%rbp), %rax
movq (%rax), %rdi
callq 0x257e0
movq %rax, %rdi
leaq 0x31e0f(%rip), %rsi     # 0xa61b0
callq 0xc670
movq %rax, -0xf0(%rbp)
jmp 0x743af
movq -0xf0(%rbp), %rdi
leaq 0x33ff0(%rip), %rsi     # 0xa83ad
callq 0xc670
movq %rax, -0x100(%rbp)
jmp 0x743cb
movq -0x100(%rbp), %rdi
leaq 0x3414f(%rip), %rsi     # 0xa8528
callq 0xc670
movq %rax, -0x108(%rbp)
jmp 0x743e7
movq -0x108(%rbp), %rdi
leaq 0x33fcc(%rip), %rsi     # 0xa83c1
callq 0xc670
movq %rax, -0x110(%rbp)
jmp 0x74403
movq -0x110(%rbp), %rdi
movq -0xd0(%rbp), %rsi
addq $0x18, %rsi
callq 0xc5b0
movq %rax, -0x118(%rbp)
jmp 0x74423
movq -0x118(%rbp), %rdi
leaq 0x33f9e(%rip), %rsi     # 0xa83cf
callq 0xc670
movq %rax, -0x120(%rbp)
jmp 0x7443f
movq -0x120(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0xc5b0
movq %rax, -0x128(%rbp)
jmp 0x74458
movq -0x128(%rbp), %rdi
leaq 0x32562(%rip), %rsi     # 0xa69c8
callq 0xc670
movq %rax, -0x130(%rbp)
jmp 0x74474
movq -0x130(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0xc5b0
movq %rax, -0x138(%rbp)
jmp 0x7448d
movq -0x138(%rbp), %rdi
movq 0x5fb25(%rip), %rsi     # 0xd3fc0
callq 0xc6d0
jmp 0x744a2
leaq 0x601ff(%rip), %rax     # 0xd46a8
movq (%rax), %rdi
callq 0x25820
jmp 0x744ca
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
jmp 0x74763
jmp 0x744cc
jmp 0x744ce
jmp 0x74725
movq -0xd0(%rbp), %rdi
callq 0x77520
movq %rax, %rdi
leaq -0x70(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x71620
jmp 0x744f4
jmp 0x744f6
jmp 0x744f8
jmp 0x744fa
leaq -0x90(%rbp), %rdi
callq 0xc260
movq %rax, %rdi
callq 0x5d810
movq %rax, -0x140(%rbp)
jmp 0x74517
movq -0x140(%rbp), %rax
cmpq $0x0, %rax
jne 0x74661
movq -0x28(%rbp), %rdi
leaq 0x33fff(%rip), %rsi     # 0xa8532
callq 0xc920
jmp 0x7453a
jmp 0x7453c
leaq 0x60165(%rip), %rax     # 0xd46a8
movq (%rax), %rdi
callq 0x257e0
cmpq $0x0, %rax
je 0x74658
leaq 0x6014c(%rip), %rax     # 0xd46a8
movq %rax, -0x150(%rbp)
movq (%rax), %rdi
callq 0x25800
movq -0x150(%rbp), %rax
movq (%rax), %rdi
callq 0x257e0
movq %rax, %rdi
leaq 0x31c2c(%rip), %rsi     # 0xa61b0
callq 0xc670
movq %rax, -0x148(%rbp)
jmp 0x74592
movq -0x148(%rbp), %rdi
leaq 0x33e0d(%rip), %rsi     # 0xa83ad
callq 0xc670
movq %rax, -0x158(%rbp)
jmp 0x745ae
movq -0x158(%rbp), %rdi
leaq 0x33f6c(%rip), %rsi     # 0xa8528
callq 0xc670
movq %rax, -0x160(%rbp)
jmp 0x745ca
movq -0x160(%rbp), %rdi
leaq 0x33f6a(%rip), %rsi     # 0xa8542
callq 0xc670
movq %rax, -0x168(%rbp)
jmp 0x745e6
movq -0x168(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xc5b0
movq %rax, -0x170(%rbp)
jmp 0x745ff
movq -0x170(%rbp), %rdi
leaq 0x323bb(%rip), %rsi     # 0xa69c8
callq 0xc670
movq %rax, -0x178(%rbp)
jmp 0x7461b
movq -0x178(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0xc5b0
movq %rax, -0x180(%rbp)
jmp 0x74634
movq -0x180(%rbp), %rdi
movq 0x5f97e(%rip), %rsi     # 0xd3fc0
callq 0xc6d0
jmp 0x74649
leaq 0x60058(%rip), %rax     # 0xd46a8
movq (%rax), %rdi
callq 0x25820
jmp 0x7465a
jmp 0x7465c
jmp 0x74725
leaq -0x50(%rbp), %rdi
callq 0xcb60
testb $0x1, %al
jne 0x74673
jmp 0x74721
leaq -0xc1(%rbp), %rdi
movq %rdi, -0x188(%rbp)
callq 0xcbc0
movq -0x188(%rbp), %rdx
leaq 0x31cdb(%rip), %rsi     # 0xa636f
leaq -0xc0(%rbp), %rdi
callq 0x27820
jmp 0x746a2
movq -0xd0(%rbp), %rdi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %r8
movq (%rdi), %rax
movq 0x20(%rax), %rax
leaq -0xc0(%rbp), %rsi
callq *%rax
jmp 0x746c7
leaq -0xc0(%rbp), %rdi
callq 0xc3e0
leaq -0xc1(%rbp), %rdi
callq 0xc730
jmp 0x74721
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
jmp 0x74713
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0xc3e0
leaq -0xc1(%rbp), %rdi
callq 0xc730
jmp 0x74763
movb $0x1, -0x29(%rbp)
jmp 0x74727
jmp 0x74729
jmp 0x7472b
movb -0x29(%rbp), %al
movb %al, -0x189(%rbp)
leaq -0x90(%rbp), %rdi
callq 0xc3e0
leaq -0x70(%rbp), %rdi
callq 0xc3e0
leaq -0x50(%rbp), %rdi
callq 0xc3e0
movb -0x189(%rbp), %al
andb $0x1, %al
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
leaq -0x90(%rbp), %rdi
callq 0xc3e0
leaq -0x70(%rbp), %rdi
callq 0xc3e0
leaq -0x50(%rbp), %rdi
callq 0xc3e0
movq -0x98(%rbp), %rdi
callq 0xcba0
nopl (%rax)