// File: /workspace/github_cpp_makefile_star2_O3/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rsi, %r14
movq %rdi, %r15
movl $0x20, %edi
callq 0xb500
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movl $0x4000, %edi           # imm = 0x4000
callq 0xb040
movq %rax, 0x10(%rbx)
movq $0x4000, 0x18(%rbx)     # imm = 0x4000
movq %rbx, 0x8(%rsp)
leaq 0x80(%rsp), %r12
movq %r12, -0x10(%r12)
xorl %eax, %eax
movq %rax, -0x8(%r12)
movb %al, (%r12)
leaq 0x60(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
leaq 0x40(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq %rax, -0x8(%rbp)
movb %al, (%rbp)
leaq 0x70(%rsp), %rdx
leaq 0x50(%rsp), %rcx
leaq 0x30(%rsp), %r8
movq %r15, %rdi
movq $-0x1, %rsi
callq 0x1c7df
leaq 0xb0(%rsp), %rax
movq %rax, 0x8(%rax)
movq %rax, (%rax)
movq $0x0, 0x10(%rax)
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movaps %xmm0, -0x20(%rax)
movaps %xmm1, -0x10(%rax)
movl $0x98, %edi
addq 0x72986(%rip), %rdi     # 0x8c5f0
movq 0x70(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x90(%rsp), %rcx
callq 0x32d26
movq %rax, (%rbx)
testq %rax, %rax
je 0x19cfa
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
movq 0x60(%rax), %rdi
movq (%rdi), %rax
leaq 0x30(%rsp), %rsi
leaq 0x10(%rsp), %rdx
callq *0x10(%rax)
movq %rax, 0x8(%rbx)
movq 0x72933(%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 0x19d1c
movq 0x7290e(%rip), %rdi     # 0x8c5f0
addq $0x8, %rdi
leaq 0x8(%rsp), %rsi
callq 0x1c1b4
movq 0x8(%rsp), %rbx
jmp 0x19dfa
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x19d08
callq 0xb6c0
movl $0x20, %esi
movq %rbx, %rdi
callq 0xb510
xorl %ebx, %ebx
jmp 0x19e11
movq 0x7284d(%rip), %rdi     # 0x8c570
cmpq $0x0, 0x8(%rdi)
je 0x19dc9
addq $0x20, %rdi
callq 0xb7d0
movq 0x72832(%rip), %rax     # 0x8c570
movq 0x8(%rax), %r14
leaq 0x5045f(%rip), %rsi     # 0x6a1a8
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x50457(%rip), %rsi     # 0x6a1b4
movl $0x9, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x5044d(%rip), %rsi     # 0x6a1be
movl $0x18, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x546d1(%rip), %rsi     # 0x6e456
movl $0x8, %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 0x727b0(%rip), %rdi     # 0x8c570
addq $0x20, %rdi
callq 0xb3b0
movl $0x98, %edi
addq 0x7281b(%rip), %rdi     # 0x8c5f0
movq (%rbx), %rsi
callq 0x330f0
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x19deb
callq 0xb6c0
movl $0x20, %esi
movq %rbx, %rdi
callq 0xb510
xorl %ebx, %ebx
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x19e11
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x90(%rsp), %rdi
callq 0x1b76c
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x19e35
movq 0x40(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x50(%rsp), %rdi
cmpq %r13, %rdi
je 0x19e4c
movq 0x60(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x70(%rsp), %rdi
cmpq %r12, %rdi
je 0x19e66
movq 0x80(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rbx, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x19eac
movq %rax, %r14
jmp 0x19eb9
movq %rax, %r14
movl $0x20, %esi
movq %rbx, %rdi
jmp 0x19efc
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x19eac
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x90(%rsp), %rdi
callq 0x1b76c
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x19ed0
movq 0x40(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x50(%rsp), %rdi
cmpq %r13, %rdi
je 0x19ee7
movq 0x60(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x70(%rsp), %rdi
cmpq %r12, %rdi
je 0x19f01
movq 0x80(%rsp), %rsi
incq %rsi
callq 0xb510
movq %r14, %rdi
callq 0xb9c0