// File: /workspace/github_cpp_makefile_star2_O1/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 $0x58, %rsp
movq 0x48(%rdi), %rbx
testq %rbx, %rbx
jne 0x1b5ea
movq %rsi, %rdx
movq %rdi, %r15
leaq 0x30(%rsp), %r14
movq %r14, %rdi
movl $0x3a, %esi
movq $-0x1, %rcx
callq 0x1b8f2
cmpq $0x0, 0x10(%r14)
je 0x1b48b
movq %r15, (%rsp)
movq %rbx, 0x8(%rsp)
leaq 0x20(%rsp), %rbx
xorl %ebp, %ebp
leaq 0x10(%rsp), %r14
leaq 0x30(%rsp), %r15
leaq 0x4ee1b(%rip), %r12     # 0x6a23d
xorl %r13d, %r13d
movq %r14, %rdi
movq %r15, %rsi
callq 0x1b92c
movq %r14, %rdi
movq %r12, %rsi
callq 0xb110
testl %eax, %eax
je 0x1b45e
movq %r14, %rdi
leaq 0x4edfe(%rip), %rsi     # 0x6a247
callq 0xb110
testl %eax, %eax
movzbl %bpl, %ebp
movl $0x1, %eax
cmovel %eax, %ebp
jmp 0x1b461
movb $0x1, %r13b
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x1b478
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xb510
cmpq $0x0, 0x40(%rsp)
jne 0x1b425
movq 0x8(%rsp), %rbx
movq (%rsp), %r15
jmp 0x1b490
xorl %r13d, %r13d
xorl %ebp, %ebp
movl $0xe0, %edi
callq 0xb500
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(%r15)
movl $0x208, %edi            # imm = 0x208
callq 0xb500
movq 0x48(%r15), %rcx
movq %rax, (%rcx)
movq $0x200, (%rax)          # imm = 0x200
movb $0x0, 0x8(%rax)
callq 0x33d10
movq 0x48(%r15), %rcx
leaq 0x68(%rcx), %rax
movq %rax, 0xc8(%rcx)
testb $0x1, %r13b
je 0x1b557
xorl %eax, %eax
jmp 0x1b577
leaq 0x4ffaf(%rip), %rdi     # 0x6b50d
leaq 0x4ed57(%rip), %rsi     # 0x6a2bc
leaq 0x6e63c(%rip), %rdx     # 0x89ba8
xorl %eax, %eax
callq 0x19527
movq 0x48(%r15), %rcx
movq %rax, 0xd0(%rcx)
testb $0x1, %bpl
je 0x1b595
movq 0x48(%r15), %rax
movq $0x0, 0xd8(%rax)
jmp 0x1b5e0
leaq 0x4ecae(%rip), %rdi     # 0x6a24a
leaq 0x4ff6a(%rip), %rsi     # 0x6b50d
xorl %eax, %eax
callq 0x1972c
movq 0x48(%r15), %rcx
movq %rax, 0xd8(%rcx)
testq %rax, %rax
je 0x1b5e0
movq 0x30(%rax), %rcx
testq %rcx, %rcx
je 0x1b5d2
movq 0x71026(%rip), %rdx     # 0x8c5f0
addq $0x38, %rdx
movq %rdx, 0x8(%rcx)
movq (%rax), %rcx
movl $0x4, %esi
movq %rax, %rdi
callq *0x28(%rcx)
leaq 0x30(%rsp), %rdi
callq 0x1bb7e
testq %rbx, %rbx
sete %al
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1b601
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x1bb7e
movq %rbx, %rdi
callq 0xb9c0