// File: /workspace/github_cpp_makefile_star2_O3/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 0x1f57a
addq $0x8, %r14
cmpq %r14, %rax
je 0x1e4db
movq 0x40(%rax), %r14
movq 0x28(%rsp), %rdx
leaq 0x40(%rsp), %rdi
movq %r15, %rsi
movq $-0x1, %rcx
callq 0xb530
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rsp, %rdi
callq 0x1d0a0
leaq 0x4c007(%rip), %rsi     # 0x6a36d
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 0x1d0a0
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1e3ba
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 0x1e3e1
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e3fc
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 0x1e589
leaq 0x6e150(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x1e4d3
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x8(%rax), %r14
leaq 0x4bd63(%rip), %rsi     # 0x6a1a8
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x4c05c(%rip), %rsi     # 0x6a4b5
movl $0xf, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x4c09c(%rip), %rsi     # 0x6a509
movl $0xc, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x4c095(%rip), %rsi     # 0x6a516
movl $0x1a, %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
xorl %r14d, %r14d
jmp 0x1e589
leaq 0x6e08e(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x1e56b
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x8(%rax), %r14
leaq 0x4bca5(%rip), %rsi     # 0x6a1a8
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x4bf9e(%rip), %rsi     # 0x6a4b5
movl $0xf, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x4bfad(%rip), %rsi     # 0x6a4d8
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 0x4bf75(%rip), %rcx     # 0x6a4ee
movl $0x1a, %r8d
movq %rbx, %rdi
xorl %esi, %esi
callq 0xb870
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e5a4
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 0x1e5d8
jmp 0x1e5f7
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1e5d8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e5fa
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x1e5fa
jmp 0x1e5f7
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e615
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rbx, %rdi
callq 0xb9c0
nop