// File: /workspace/github_cpp_makefile_star2_O1/mh0fm4[P]SCDC/src/components/dataprov/dataprov_fs2.cc
// Function: scdc_dataset_fs2_store::do_cmd_put(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_put(const string &params, scdc_dataset_input_t *input, scdc_dataset_output_t *output, scdc_result &result)
    {
      SCDC_TRACE("do_cmd_put: '" << params << "'");

      scdc_dataprov_fs2 *dataprov_fs2 = static_cast<scdc_dataprov_fs2 *>(dataprov);

      if (params.empty())
      {
        result = "empty path";
        SCDC_FAIL(__func__ << ": writing to store failed: " << result);
        return false;

      } else if (admin)
      {
        SCDC_TRACE("do_cmd_put: creating store '" << params << "'");

        string store_path;
        dataprov_fs2->do_full_path(0, store_path);

        store_path += DIR_STORE_PREFIX + string(params) + "/";

        SCDC_TRACE("do_cmd_put: store_path: '" << store_path << "'");

        if (!z_fs_mkdir(store_path.c_str()))
        {
          result = string("creating store failed: ") + strerror(errno);
          SCDC_FAIL(__func__ << ": making store '" << store_path << "' failed: " << result);
          return false;
        }

      } else if (pwd.size() == 0)
      {
        result = "no store selected";
        SCDC_FAIL(__func__ << ": creating entry failed: " << result);
        return false;

      } else
      {
        SCDC_TRACE("do_cmd_put: creating entry '" << params << "'");

        string store_path;
        dataprov_fs2->do_full_path(0, store_path);

        store_path += DIR_STORE_PREFIX + pwd + "/";

        SCDC_TRACE("do_cmd_put: store_path: '" << store_path << "'");

        string entry_path = store_path + DIR_ENTRY_PREFIX + params + DIR_ENTRY_SUFFIX;

        SCDC_TRACE("do_cmd_put: entry_path: '" << entry_path.c_str() << "'");

        if (!input)
        {
          result = "no input available";
          SCDC_FAIL("do_cmd_put: creating entry failed: " << result);
          return false;
        }

        if (scdc_dataset_input_redirect(input, "to:file", entry_path.c_str()) != SCDC_SUCCESS)
        {
          result = " input redirection failed";
          SCDC_FAIL("do_cmd_put: creating entry failed: " << result);
          return false;
        }
      }

      return true;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %r8, %rbx
cmpq $0x0, 0x8(%rsi)
je 0x48aef
movq %rsi, %r15
movq %rdi, %r12
movq 0x8(%rdi), %rdi
cmpb $0x1, 0x6c(%r12)
jne 0x48b7f
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
leaq 0x48(%rsp), %rdx
xorl %esi, %esi
callq 0x45c90
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x1d19a
leaq 0x23aea(%rip), %rcx     # 0x6c597
leaq 0x68(%rsp), %rdi
movl $0x9, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0xb5d0
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x48cdf
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x48ce6
movq 0x8(%rbx), %rdx
leaq 0x23ac1(%rip), %rcx     # 0x6c5bb
xorl %r14d, %r14d
movl $0xa, %r8d
movq %rbx, %rdi
xorl %esi, %esi
callq 0xb870
leaq 0x43a5c(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x4919f
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x8(%rax), %r14
leaq 0x2164f(%rip), %rsi     # 0x6a188
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x23a0d(%rip), %rsi     # 0x6c55a
movl $0x12, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x21f83(%rip), %rsi     # 0x6aae4
movl $0xa, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x23a51(%rip), %rsi     # 0x6c5c6
movl $0x1b, %edx
jmp 0x48c8d
cmpq $0x0, 0x20(%r12)
je 0x48c02
movq %rdx, %r14
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x48(%rsp), %rdx
xorl %esi, %esi
callq 0x45c90
addq $0x18, %r12
leaq 0x239e2(%rip), %rsi     # 0x6c597
leaq 0x28(%rsp), %rdi
movq %r12, %rdx
callq 0x1b85e
leaq 0x21784(%rip), %rsi     # 0x6a34d
leaq 0x28(%rsp), %rdi
callq 0xba60
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x48e3a
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x48e42
movq 0x8(%rbx), %rdx
leaq 0x239fe(%rip), %rcx     # 0x6c60b
xorl %r14d, %r14d
movl $0x11, %r8d
movq %rbx, %rdi
xorl %esi, %esi
callq 0xb870
leaq 0x43949(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x4919f
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x8(%rax), %r14
leaq 0x2153c(%rip), %rsi     # 0x6a188
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x238fa(%rip), %rsi     # 0x6c55a
movl $0x12, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x21e70(%rip), %rsi     # 0x6aae4
movl $0xa, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x239b2(%rip), %rsi     # 0x6c63a
movl $0x19, %edx
movq %r14, %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
jmp 0x4919c
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x21644(%rip), %rsi     # 0x6a34d
callq 0xba60
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x48d35
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x48d3d
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x48(%rsp), %rdi
callq 0xb150
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x48d80
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x48d97
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x48dae
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x48(%rsp), %rdi
callq 0x35c2e
testq %rax, %rax
je 0x48ddc
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x48dd4
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb510
movb $0x1, %r14b
jmp 0x4919f
leaq 0x28(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x237f7(%rip), %rsi     # 0x6c5e2
leaq 0x23807(%rip), %rdx     # 0x6c5f9
callq 0x1bee6
callq 0xb070
movl (%rax), %edi
callq 0xb190
leaq 0x28(%rsp), %rdi
movq %rax, %rsi
callq 0xba60
movq %r13, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x491b4
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x491bc
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x48(%rsp), %rdi
callq 0xb150
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x48e85
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x38(%rsp), %r13
movq -0x10(%r13), %rdi
cmpq %r13, %rdi
je 0x48ea0
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x78(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x1d19a
leaq 0x236de(%rip), %rsi     # 0x6c5a5
leaq 0x68(%rsp), %rdi
callq 0xba60
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x68(%rsp), %rdi
callq 0xb150
movq %r13, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x48f05
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x48f0d
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x225dd(%rip), %rsi     # 0x6b50d
callq 0xba60
movq %r12, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x48f58
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x48f60
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x48f8f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x48fa6
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb510
testq %r14, %r14
je 0x48ffa
movq 0x8(%rsp), %rdx
leaq 0x2369d(%rip), %rsi     # 0x6c654
movq %r14, %rdi
xorl %eax, %eax
callq 0x2e213
cmpq $0x1, %rax
jne 0x490a1
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x48fe2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
jne 0x48dc7
jmp 0x48dd4
movq 0x8(%rbx), %rdx
leaq 0x23618(%rip), %rcx     # 0x6c61d
movl $0x12, %r8d
movq %rbx, %rdi
xorl %esi, %esi
callq 0xb870
leaq 0x43554(%rip), %r14     # 0x8c570
movq (%r14), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x49169
addq $0x20, %rdi
callq 0xb7d0
movq (%r14), %rax
movq 0x8(%rax), %r14
leaq 0x21147(%rip), %rsi     # 0x6a188
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x23505(%rip), %rsi     # 0x6c55a
movl $0x12, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x235c7(%rip), %rsi     # 0x6c630
movl $0x23, %edx
movq %r14, %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
jmp 0x49143
movq 0x8(%rbx), %rdx
leaq 0x235b0(%rip), %rcx     # 0x6c65c
movl $0x19, %r8d
movq %rbx, %rdi
xorl %esi, %esi
callq 0xb870
leaq 0x434ad(%rip), %r14     # 0x8c570
movq (%r14), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x49169
addq $0x20, %rdi
callq 0xb7d0
movq (%r14), %rax
movq 0x8(%rax), %r14
leaq 0x210a0(%rip), %rsi     # 0x6a188
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x2345e(%rip), %rsi     # 0x6c55a
movl $0x12, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x23520(%rip), %rsi     # 0x6c630
movl $0x23, %edx
movq %r14, %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
leaq 0x43413(%rip), %rax     # 0x8c570
movq (%rax), %rdi
addq $0x20, %rdi
callq 0xb3b0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x49180
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4919c
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb510
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb670
movq (%r14), %rdi
cmpq %r13, %rdi
je 0x491f8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x4920f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x4335a(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x492f2
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x8(%rax), %r14
leaq 0x20f4d(%rip), %rsi     # 0x6a188
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x2330b(%rip), %rsi     # 0x6c55a
movl $0x12, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x21881(%rip), %rsi     # 0x6aae4
movl $0xa, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x23383(%rip), %rsi     # 0x6c5fa
movl $0x10, %edx
movq %r14, %rdi
callq 0xb5f0
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq %r14, %rdi
callq 0xb5f0
movq %rax, %r14
leaq 0x21750(%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
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
jne 0x4918f
jmp 0x4919c
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x4941f
movq 0x38(%rsp), %rsi
jmp 0x493e5
jmp 0x4941c
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x49346
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x49346
jmp 0x49343
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4940b
movq 0x78(%rsp), %rsi
jmp 0x49403
jmp 0x49396
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4937f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x4937f
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4940b
movq 0x38(%rsp), %rsi
jmp 0x49403
jmp 0x49396
movq %rax, %rbx
jmp 0x4940b
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x493ba
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x493ba
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x493d6
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x493d6
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x4941f
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x4941f
jmp 0x4941c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4940b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
jne 0x49429
jmp 0x49436
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x49436
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rbx, %rdi
callq 0xb9c0