// File: /workspace/github_cpp_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq %rsi, %rdi
movl $0x2f, %esi
xorl %edx, %edx
callq 0xb6e0
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0xb530
movq %r14, %rdi
movq %r12, %rsi
callq 0x1f6a4
addq $0x8, %r14
cmpq %r14, %rax
je 0x1e5eb
movq 0x40(%rax), %r14
movq 0x28(%rsp), %rdx
leaq 0x40(%rsp), %rdi
movq %r15, %rsi
movq $-0x1, %rcx
callq 0xb530
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x1d19a
leaq 0x4bed7(%rip), %rsi     # 0x6a34d
movq %rsp, %r15
movl $0x1, %ecx
movq %r15, %rdi
xorl %edx, %edx
callq 0xb980
movq %r15, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0xb0e0
leaq 0x70(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x60(%rsp), %rdi
callq 0x1d19a
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1e4ca
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x20(%rsp), %rdi
leaq 0x60(%rsp), %r15
movq %r15, %rsi
callq 0xb670
movq (%r15), %rdi
cmpq %r13, %rdi
je 0x1e4f1
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e50c
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb510
movq (%r14), %rax
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq *0x28(%rax)
movq %rax, %r14
testq %rax, %rax
jne 0x1e699
leaq 0x6e040(%rip), %r12     # 0x8c570
movq (%r12), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x1e699
addq $0x20, %rdi
callq 0xb7d0
movq (%r12), %rax
movq 0x8(%rax), %r15
leaq 0x4bc31(%rip), %rsi     # 0x6a188
movl $0xb, %edx
movq %r15, %rdi
callq 0xb5f0
leaq 0x4bf2a(%rip), %rsi     # 0x6a495
movl $0xf, %edx
movq %r15, %rdi
callq 0xb5f0
leaq 0x4bf6a(%rip), %rsi     # 0x6a4e9
movl $0xc, %edx
movq %r15, %rdi
callq 0xb5f0
leaq 0x4bf63(%rip), %rsi     # 0x6a4f6
movl $0x1a, %edx
movq %r15, %rdi
callq 0xb5f0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r15, %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
addq $0x20, %rdi
callq 0xb3b0
jmp 0x1e699
leaq 0x6df7e(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x1e67b
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x8(%rax), %r14
leaq 0x4bb75(%rip), %rsi     # 0x6a188
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x4be6e(%rip), %rsi     # 0x6a495
movl $0xf, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x4be7d(%rip), %rsi     # 0x6a4b8
movl $0x30, %edx
movq %r14, %rdi
callq 0xb5f0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xb4d0
movsbl %al, %esi
movq %r14, %rdi
callq 0xb050
movq %rax, %rdi
callq 0xb340
movq (%r15), %rdi
addq $0x20, %rdi
callq 0xb3b0
movq 0x8(%rbx), %rdx
xorl %r14d, %r14d
leaq 0x4be45(%rip), %rcx     # 0x6a4ce
movl $0x1a, %r8d
movq %rbx, %rdi
xorl %esi, %esi
callq 0xb870
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e6b4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb510
movq %r14, %rax
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
jmp 0x1e6e8
jmp 0x1e707
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1e6e8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e70a
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x1e70a
jmp 0x1e707
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e725
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rbx, %rdi
callq 0xb9c0
nop