// File: /workspace/github_cpp_makefile_star2_O3/mh0fm4[P]SCDC/src/lib/scdc/scdc.cc
// Function: scdc_context::init(char const*, _scdc_args_t*)
bool init(const char *conf, scdc_args_t *args)
    {
      SCDC_TRACE("scdc-context: " << __func__ << ": '" << conf << "'");

      SCDC_TRACE("scdc-context: " << __func__ << ": data: " << data);

      if (data) return false;

      scdcint_t result_size = SCDC_RESULT_STR_MIN_SIZE;
      bool no_config = false;
      bool no_direct = false;

      stringlist confs(':', conf);

      while (confs.size() > 0)
      {
        string c = confs.front_pop();

        if (c == "no_config") no_config = true;
        else if (c == "no_direct") no_direct = true;
        else if (c.size() > 0)
        {
          SCDC_TRACE("scdc-context: " << __func__ << ": unknown parameter '" << c << "'");
        }
      }

      data = new _scdc_context_data_t;

      data->result = static_cast<scdc_result_t *>(::operator new(SCDC_RESULT_EXTENT(result_size)));
      SCDC_RESULT_SET_SIZE(data->result, result_size);
      SCDC_RESULT_SET_EMPTY(data->result);

      scdc_nodeport_pool::init();
      scdc_nodeconn_pool::init();

      data->nodeconns.set_nodeport_pool(&data->nodeports);

      if (!no_config)
      {
        data->dp_config = scdc_dataprov_open("", "config", &scdc_main_config_hook);

      } else data->dp_config = SCDC_DATAPROV_NULL;

      if (!no_direct)
      {
        data->np_direct = scdc_nodeport_open("direct", "");
        scdc_nodeport_start(data->np_direct, SCDC_NODEPORT_START_ASYNC_UNTIL_CANCEL);

      } else data->np_direct = SCDC_NODEPORT_NULL;

      return true;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq 0x48(%rdi), %rax
testq %rax, %rax
jne 0x1b530
movq %rsi, %rdx
movq %rdi, 0x10(%rsp)
movq %rax, 0x18(%rsp)
leaq 0x40(%rsp), %r14
movq %r14, %rdi
movl $0x3a, %esi
movq $-0x1, %rcx
callq 0x1b83e
cmpq $0x0, 0x10(%r14)
je 0x1b3bb
leaq 0x30(%rsp), %rbx
xorl %ebp, %ebp
leaq 0x20(%rsp), %r14
leaq 0x40(%rsp), %r15
leaq 0x4ef07(%rip), %r12     # 0x6a25d
leaq 0x4ef0a(%rip), %r13     # 0x6a267
movl $0x0, 0xc(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1b878
movq %r14, %rdi
movq %r12, %rsi
callq 0xb110
testl %eax, %eax
je 0x1b394
movq %r14, %rdi
movq %r13, %rsi
callq 0xb110
testl %eax, %eax
sete %al
orb %al, %bpl
jmp 0x1b39a
movb $0x1, %al
movl %eax, 0xc(%rsp)
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x1b3b1
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb510
cmpq $0x0, 0x50(%rsp)
jne 0x1b365
jmp 0x1b3c5
movl $0x0, 0xc(%rsp)
xorl %ebp, %ebp
movl $0xe0, %edi
callq 0xb500
movq 0x10(%rsp), %rbx
leaq 0x10(%rax), %rcx
xorl %edx, %edx
movl %edx, 0x10(%rax)
movq %rdx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq %rcx, 0x28(%rax)
movq %rdx, 0x30(%rax)
leaq 0x40(%rax), %rcx
movl %edx, 0x40(%rax)
movq %rdx, 0x48(%rax)
movq %rcx, 0x50(%rax)
movq %rcx, 0x58(%rax)
movq %rdx, 0x60(%rax)
leaq 0x70(%rax), %rcx
movl %edx, 0x70(%rax)
movq %rdx, 0x78(%rax)
movq %rcx, 0x80(%rax)
movq %rcx, 0x88(%rax)
movq %rdx, 0x90(%rax)
movq %rax, %rcx
addq $0xa0, %rcx
movl %edx, 0xa0(%rax)
movq %rdx, 0xa8(%rax)
movq %rcx, 0xb0(%rax)
movq %rcx, 0xb8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0xc0(%rax)
movq %rax, 0x48(%rbx)
movl $0x208, %edi            # imm = 0x208
callq 0xb500
movq 0x48(%rbx), %rcx
movq %rax, (%rcx)
movq $0x200, (%rax)          # imm = 0x200
movb $0x0, 0x8(%rax)
callq 0x33984
movq 0x48(%rbx), %rcx
leaq 0x68(%rcx), %rax
movq %rax, 0xc8(%rcx)
testb $0x1, 0xc(%rsp)
je 0x1b492
xorl %eax, %eax
jmp 0x1b4b7
leaq 0x50094(%rip), %rdi     # 0x6b52d
leaq 0x4ee3c(%rip), %rsi     # 0x6a2dc
leaq 0x6e791(%rip), %rdx     # 0x89c38
xorl %eax, %eax
callq 0x1949b
movq 0x10(%rsp), %rcx
movq 0x48(%rcx), %rcx
movq %rax, 0xd0(%rcx)
testb $0x1, %bpl
je 0x1b4d1
movq $0x0, 0xd8(%rcx)
jmp 0x1b521
leaq 0x4ed92(%rip), %rdi     # 0x6a26a
leaq 0x5004e(%rip), %rsi     # 0x6b52d
xorl %eax, %eax
callq 0x196a3
movq 0x10(%rsp), %rcx
movq 0x48(%rcx), %rcx
movq %rax, 0xd8(%rcx)
testq %rax, %rax
je 0x1b521
movq 0x30(%rax), %rcx
testq %rcx, %rcx
je 0x1b513
movq 0x710e5(%rip), %rdx     # 0x8c5f0
addq $0x38, %rdx
movq %rdx, 0x8(%rcx)
movq (%rax), %rcx
movl $0x4, %esi
movq %rax, %rdi
callq *0x28(%rcx)
leaq 0x40(%rsp), %rdi
callq 0x1bad0
movq 0x18(%rsp), %rax
testq %rax, %rax
sete %al
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1b547
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x1bad0
movq %rbx, %rdi
callq 0xb9c0