// File: /workspace/github_cpp_makefile_star2_O2/mh0fm4[P]SCDC/src/components/dataprov/dataprov_bench.cc
// Function: scdc_dataset_bench::do_cmd_cd(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_cd(const string &params, scdc_dataset_input_t *input, scdc_dataset_output_t *output, scdc_result &result)
    {
      SCDC_TRACE("dataset_bench: do_cmd_cd: '" << params << "'");

      stringlist pl('/', params);

      string p;
      
      while (pl.front_pop(p))
      {
        if (p == "binary") format = "binary";
        else if (p == "ascii") format = "ascii";
        else if (p == "zero") content = "zero";
        else if (p == "random") content = "random";
        else if (p == "memory") mode = "memory";
        else if (p == "file") mode = "file";
        else
        {
          result = "invalid path";
          SCDC_FAIL(__func__ << ": changing to path '" << p << "' failed: " << result);
          return false;
        }
      }

      return scdc_dataset::do_cmd_cd((format + "/" + content + "/" + mode).c_str(), input, output, result);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %r8, 0x10(%rsp)
movq %rcx, 0x30(%rsp)
movq %rdx, 0x28(%rsp)
movq %rdi, %r14
leaq 0x128(%rsp), %rbx
movq %rbx, %rdi
callq 0xb750
leaq 0x100(%rsp), %rdi
pushq $0x2f
popq %rsi
movq %rbx, %rdx
callq 0x2f05c
leaq 0x128(%rsp), %rdi
callq 0xb230
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x78(%r14), %rax
movq %rax, 0x18(%rsp)
leaq 0x58(%r14), %rax
movq %rax, 0x20(%rsp)
movq %r14, 0x38(%rsp)
leaq 0x38(%r14), %rbx
leaq 0x100(%rsp), %r14
leaq 0x40(%rsp), %r15
leaq 0x219bb(%rip), %r12     # 0x52fa8
leaq 0x219ae(%rip), %r13     # 0x52fa2
movq %r14, %rdi
movq %r15, %rsi
callq 0x19f34
testb %al, %al
je 0x316bb
movq %r15, %rdi
movq %r12, %rsi
callq 0x19be0
movq %rbx, %rdi
movq %r12, %rsi
testb %al, %al
jne 0x316b1
movq %r15, %rdi
movq %r13, %rsi
callq 0x19be0
movq %rbx, %rdi
movq %r13, %rsi
testb %al, %al
jne 0x316b1
movq %r15, %rdi
leaq 0x21951(%rip), %rbp     # 0x52f90
movq %rbp, %rsi
callq 0x19be0
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
testb %al, %al
jne 0x316b1
movq %r15, %rdi
leaq 0x2193e(%rip), %rbp     # 0x52f9b
movq %rbp, %rsi
callq 0x19be0
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
testb %al, %al
jne 0x316b1
movq %r15, %rdi
leaq 0x21934(%rip), %rbp     # 0x52faf
movq %rbp, %rsi
callq 0x19be0
movq 0x18(%rsp), %rdi
movq %rbp, %rsi
testb %al, %al
jne 0x316b1
movq %r15, %rdi
leaq 0x20f75(%rip), %rbp     # 0x5260e
movq %rbp, %rsi
callq 0x19be0
movq 0x18(%rsp), %rdi
movq %rbp, %rsi
testb %al, %al
je 0x317c5
callq 0xba40
jmp 0x315f4
leaq 0x1fc8b(%rip), %rdx     # 0x5134d
leaq 0x60(%rsp), %rdi
movq %rbx, %rsi
callq 0x1d867
leaq 0x80(%rsp), %rdi
leaq 0x60(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x1eeb2
movq 0x38(%rsp), %rbx
leaq 0x1fc5b(%rip), %rdx     # 0x5134d
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x1cb18
leaq 0xc0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
movq 0x18(%rsp), %rdx
callq 0x1eeb2
movq 0xc0(%rsp), %rsi
leaq 0xe0(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x1a132
leaq 0xe0(%rsp), %rsi
movq %rbx, %rdi
movq 0x28(%rsp), %rdx
movq 0x30(%rsp), %rcx
movq 0x10(%rsp), %r8
callq 0x243e4
movl %eax, %ebx
leaq 0xe0(%rsp), %rdi
callq 0xb230
leaq 0xc0(%rsp), %rdi
callq 0xb230
leaq 0xa0(%rsp), %rdi
callq 0xb230
leaq 0x80(%rsp), %rdi
callq 0xb230
leaq 0x60(%rsp), %rdi
callq 0xb230
leaq 0x40(%rsp), %rdi
callq 0xb230
leaq 0x100(%rsp), %rdi
callq 0x19ef4
movl %ebx, %eax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x217ea(%rip), %rsi     # 0x52fb6
movq 0x10(%rsp), %rdi
callq 0xba40
leaq 0x43da3(%rip), %rbx     # 0x75580
movq (%rbx), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x31871
addq $0x20, %rdi
callq 0xb800
movq (%rbx), %rax
movq 0x8(%rax), %rdi
leaq 0x1f986(%rip), %rsi     # 0x51188
callq 0xb520
leaq 0x2173a(%rip), %rsi     # 0x52f48
movq %rax, %rdi
callq 0xb520
leaq 0x20398(%rip), %rsi     # 0x51bb5
movq %rax, %rdi
callq 0xb520
leaq 0x21797(%rip), %rsi     # 0x52fc3
movq %rax, %rdi
callq 0xb520
leaq 0x40(%rsp), %rsi
movq %rax, %rdi
callq 0xb490
leaq 0x2015d(%rip), %rsi     # 0x519a5
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0xb490
movq %rax, %rdi
callq 0xb270
movq (%rbx), %rdi
addq $0x20, %rdi
callq 0xb3e0
xorl %ebx, %ebx
jmp 0x3179a
jmp 0x318e5
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
callq 0xb230
jmp 0x3188f
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0xb230
jmp 0x318a1
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0xb230
jmp 0x318b3
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0xb230
jmp 0x318c5
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0xb230
jmp 0x318e8
jmp 0x318e5
movq %rax, %rbx
leaq 0x128(%rsp), %rdi
callq 0xb230
jmp 0x318ff
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0xb230
leaq 0x100(%rsp), %rdi
callq 0x19ef4
movq %rbx, %rdi
callq 0xb9a0
nop