// File: /workspace/github_cpp_makefile_star2_O1/mh0fm4[P]SCDC/src/lib/scdc/scdc.cc
// Function: scdc_dataset_open_intern
scdc_dataset_t scdc_dataset_open_intern(const char *uri, scdc_args_t *args)
{
  SCDC_TRACE(__func__ << ": uri: '" << uri << "'");

  scdc_dataset_t dataset = new _scdc_dataset_t;

  string sscheme, sauthority, spath;
  split_uri(uri, -1, &sscheme, &sauthority, &spath);

  scdc_args xargs(args);

  dataset->nodeconn = scdc_main_context.data->nodeconns.open(sscheme.c_str(), sauthority.c_str(), &xargs);

  if (!dataset->nodeconn)
  {
    SCDC_TRACE(__func__ << ": failed: open connection failed");
    delete dataset;
    return SCDC_DATASET_NULL;
  }

  scdc_result result;
  dataset->dataset = dataset->nodeconn->dataset_open(spath, result);
  SCDC_RESULT_SET_STR(scdc_main_context.data->result, result.c_str());

  SCDC_TRACE(__func__ << ": result: '" << result << "'");

  if (!dataset->dataset)
  {
    SCDC_FAIL(__func__ << ": failed");
    scdc_main_context.data->nodeconns.close(dataset->nodeconn);
    delete dataset;
    return SCDC_DATASET_NULL;
  }

#if SCDC_DEBUG
  scdc_main_context.data->datasets.insert(dataset);
#endif

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

/*  SCDC_INFO("opening dataset " << dataset << " with uri '" << uri << "'");*/

  return dataset;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd0, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl $0x20, %edi
callq 0xb500
movq %rax, %r15
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movl $0x4000, %edi           # imm = 0x4000
callq 0xb040
movq %rax, 0x10(%r15)
movq $0x4000, 0x18(%r15)     # imm = 0x4000
movq %r15, 0x8(%rsp)
leaq 0x80(%rsp), %r15
movq %r15, -0x10(%r15)
xorl %eax, %eax
movq %rax, -0x8(%r15)
movb %al, (%r15)
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
leaq 0x40(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
leaq 0x70(%rsp), %rdx
leaq 0x50(%rsp), %rcx
leaq 0x30(%rsp), %r8
movq %r14, %rdi
movq $-0x1, %rsi
callq 0x1c885
leaq 0xb0(%rsp), %rax
movq %rax, 0x8(%rax)
movq %rax, (%rax)
movq $0x0, 0x10(%rax)
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movaps %xmm0, -0x20(%rax)
movaps %xmm1, -0x10(%rax)
movl $0x98, %edi
addq 0x72906(%rip), %rdi     # 0x8c5f0
movq 0x70(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x90(%rsp), %rcx
callq 0x330ba
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
movq 0x8(%rsp), %rbx
cmpq $0x0, (%rbx)
je 0x19d8d
leaq 0x20(%rsp), %r14
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb $0x0, (%r14)
movq (%rbx), %rax
movq 0x60(%rax), %rdi
movq (%rdi), %rax
leaq 0x30(%rsp), %rsi
leaq 0x10(%rsp), %rdx
callq *0x10(%rax)
movq 0x8(%rsp), %rbx
movq %rax, 0x8(%rbx)
movq 0x728a0(%rip), %rax     # 0x8c5f0
movq (%rax), %rdi
movq 0x10(%rsp), %rsi
movq (%rdi), %rdx
addq $0x8, %rdi
decq %rdx
callq 0xb2a0
cmpq $0x0, 0x8(%rbx)
je 0x19daf
movq 0x7287b(%rip), %rdi     # 0x8c5f0
addq $0x8, %rdi
leaq 0x8(%rsp), %rsi
callq 0x1c25c
movq 0x8(%rsp), %rbx
jmp 0x19e9c
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x19d9b
callq 0xb6c0
movl $0x20, %esi
movq %rbx, %rdi
callq 0xb510
xorl %ebx, %ebx
jmp 0x19eb3
movq 0x727ba(%rip), %rdi     # 0x8c570
cmpq $0x0, 0x8(%rdi)
je 0x19e5c
addq $0x20, %rdi
callq 0xb7d0
movq 0x7279f(%rip), %rax     # 0x8c570
movq 0x8(%rax), %rbx
leaq 0x503ac(%rip), %rsi     # 0x6a188
movl $0xb, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0x503a4(%rip), %rsi     # 0x6a194
movl $0x9, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0x5039a(%rip), %rsi     # 0x6a19e
movl $0x18, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0x545ce(%rip), %rsi     # 0x6e3e6
movl $0x8, %edx
movq %rbx, %rdi
callq 0xb5f0
movq (%rbx), %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 0x7271d(%rip), %rdi     # 0x8c570
addq $0x20, %rdi
callq 0xb3b0
movl $0x98, %edi
addq 0x72788(%rip), %rdi     # 0x8c5f0
movq 0x8(%rsp), %rax
movq (%rax), %rsi
callq 0x33484
movq 0x8(%rsp), %rbx
testq %rbx, %rbx
je 0x19e9a
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x19e8d
callq 0xb6c0
movl $0x20, %esi
movq %rbx, %rdi
callq 0xb510
xorl %ebx, %ebx
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x19eb3
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x90(%rsp), %rdi
callq 0x1b820
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x19ed7
movq 0x40(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x19eee
movq 0x60(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0x19f08
movq 0x80(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rbx, %rax
addq $0xd0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
jmp 0x19f4d
movq %rax, %rbx
jmp 0x19f5a
movq %rax, %rbx
movl $0x20, %esi
movq %r15, %rdi
jmp 0x19f9d
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x19f4d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x90(%rsp), %rdi
callq 0x1b820
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x19f71
movq 0x40(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x19f88
movq 0x60(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0x19fa2
movq 0x80(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rbx, %rdi
callq 0xb9c0