// File: /workspace/github_cpp_makefile_star2_O2/mh0fm4[P]SCDC/src/components/dataprov/dataprov_pool.cc
// Function: scdc_dataprov_pool::dataset_open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
scdc_dataset *scdc_dataprov_pool::dataset_open(const std::string &path, scdc_result &result)
{
  SCDC_TRACE(__func__ << ": '" << path << "'");

  string p = path.substr(0, path.find('/'));

  iterator i = find(p);

  if (i == end())
  {
    SCDC_FAIL("dataset_open: failed: no matching provider found");
    result = "no matching provider found";
    return 0;
  }

  scdc_dataprov *dataprov = i->second;

  p = ltrim(path.substr(p.size()), "/");

  scdc_dataset *dataset = dataprov->dataset_path_open(p, result);

  if (!dataset)
  {
    SCDC_FAIL(__func__ << ": opening dataset failed: " << result);
  }

  SCDC_TRACE(__func__ << ": return: " << dataset);

  return dataset;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
pushq $0x2f
popq %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0xb710
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0xb560
movq %r14, %rdi
movq %r12, %rsi
callq 0x1cf4e
addq $0x8, %r14
cmpq %r14, %rax
je 0x1c39b
movq 0x40(%rax), %r14
movq 0x10(%rsp), %rdx
leaq 0x48(%rsp), %rdi
pushq $-0x1
popq %rcx
movq %r15, %rsi
callq 0xb560
leaq 0x28(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0xb750
leaq 0x28(%rsp), %rdi
callq 0x1c704
leaq 0x68(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0xb750
leaq 0x28(%rsp), %rdi
callq 0xb230
leaq 0x8(%rsp), %r15
leaq 0x68(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0xb690
movq %r12, %rdi
callq 0xb230
leaq 0x48(%rsp), %rdi
callq 0xb230
movq (%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq *0x28(%rax)
movq %rax, %r14
testq %rax, %rax
jne 0x1c40c
leaq 0x5925d(%rip), %r14     # 0x75580
movq (%r14), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x1c409
addq $0x20, %rdi
callq 0xb800
movq (%r14), %rax
movq 0x8(%rax), %rdi
leaq 0x34e40(%rip), %rsi     # 0x51188
callq 0xb520
leaq 0x35141(%rip), %rsi     # 0x51495
movq %rax, %rdi
callq 0xb520
leaq 0x35186(%rip), %rsi     # 0x514e9
movq %rax, %rdi
callq 0xb520
leaq 0x35184(%rip), %rsi     # 0x514f6
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
jmp 0x1c409
leaq 0x591de(%rip), %r14     # 0x75580
movq (%r14), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x1c3fa
addq $0x20, %rdi
callq 0xb800
movq (%r14), %rax
movq 0x8(%rax), %rdi
leaq 0x34dc5(%rip), %rsi     # 0x51188
callq 0xb520
leaq 0x350c6(%rip), %rsi     # 0x51495
movq %rax, %rdi
callq 0xb520
leaq 0x350da(%rip), %rsi     # 0x514b8
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
callq 0xb270
movq (%r14), %rdi
addq $0x20, %rdi
callq 0xb3e0
leaq 0x350cd(%rip), %rsi     # 0x514ce
movq %rbx, %rdi
callq 0xba40
xorl %r14d, %r14d
leaq 0x8(%rsp), %rdi
callq 0xb230
movq %r14, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
jmp 0x1c43c
jmp 0x1c44a
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xb230
leaq 0x48(%rsp), %rdi
callq 0xb230
jmp 0x1c44d
jmp 0x1c44a
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xb230
movq %rbx, %rdi
callq 0xb9a0
nop