// File: /workspace/github_cpp_makefile_star2_O2/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), %rax
testq %rax, %rax
jne 0x198ce
movq %rsi, %rdx
movq %rdi, (%rsp)
movq %rax, 0x8(%rsp)
leaq 0x10(%rsp), %r14
pushq $0x3a
popq %rsi
pushq $-0x1
popq %rcx
movq %r14, %rdi
callq 0x19b64
xorl %ebx, %ebx
leaq 0x38(%rsp), %r15
leaq 0x37a8d(%rip), %r12     # 0x5123d
leaq 0x37a90(%rip), %r13     # 0x51247
xorl %ebp, %ebp
cmpq $0x0, 0x20(%rsp)
je 0x197f7
movq %r15, %rdi
movq %r14, %rsi
callq 0x19ba0
movq %r15, %rdi
movq %r12, %rsi
callq 0x19be0
testb %al, %al
je 0x197df
movb $0x1, %bl
jmp 0x197ed
movq %r15, %rdi
movq %r13, %rsi
callq 0x19be0
orb %al, %bpl
movq %r15, %rdi
callq 0xb230
jmp 0x197b9
movl $0xe0, %edi
callq 0xb540
movq %rax, %r14
movq %rax, %rdi
callq 0x19bee
movq (%rsp), %rax
movq %r14, 0x48(%rax)
movl $0x208, %edi            # imm = 0x208
callq 0xb540
movq (%rsp), %rcx
movq 0x48(%rcx), %rcx
movq %rax, (%rcx)
movq $0x200, (%rax)          # imm = 0x200
movb $0x0, 0x8(%rax)
callq 0x2bbdc
movq (%rsp), %rax
movq 0x48(%rax), %rcx
leaq 0x68(%rcx), %rax
movq %rax, 0xc8(%rcx)
testb $0x1, %bl
je 0x19855
xorl %eax, %eax
jmp 0x19879
leaq 0x38c61(%rip), %rdi     # 0x524bd
leaq 0x37a59(%rip), %rsi     # 0x512bc
leaq 0x59306(%rip), %rdx     # 0x72b70
xorl %eax, %eax
callq 0x17fbc
movq (%rsp), %rcx
movq 0x48(%rcx), %rcx
movq %rax, 0xd0(%rcx)
testb $0x1, %bpl
je 0x19890
andq $0x0, 0xd8(%rcx)
jmp 0x198bf
leaq 0x379b3(%rip), %rdi     # 0x5124a
leaq 0x38c1f(%rip), %rsi     # 0x524bd
xorl %eax, %eax
callq 0x1815a
movq (%rsp), %rcx
movq 0x48(%rcx), %rcx
movq %rax, 0xd8(%rcx)
pushq $0x4
popq %rsi
movq %rax, %rdi
callq 0x18234
leaq 0x10(%rsp), %rdi
callq 0x19ef4
movq 0x8(%rsp), %rax
testq %rax, %rax
sete %al
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0xe0, %esi
movq %r14, %rdi
callq 0xb550
jmp 0x198fa
jmp 0x198f7
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x19ef4
movq %rbx, %rdi
callq 0xb9a0