// File: /workspace/github_cpp_makefile_star2_O2/mh0fm4[P]SCDC/src/components/node/nodeport_pool.cc
// Function: scdc_nodeport_pool::open(char const*, scdc_args*)
scdc_nodeport *scdc_nodeport_pool::open(const char *conf, scdc_args *args)
{
  SCDC_TRACE("open: conf: '" << conf << "'");

  stringlist confs(':', conf);
  string np_type = confs.front_pop();

  scdc_nodeport *nodeport = 0;

#if USE_NODE_DIRECT
  if (np_type == "direct") nodeport = new scdc_nodeport_direct();
  else
#endif
#if USE_NODE_TCP
  if (np_type == "tcp") nodeport = new scdc_nodeport_tcp();
  else
#endif
#if USE_NODE_UDS
  if (np_type == "uds") nodeport = new scdc_nodeport_uds();
  else
#endif
#if USE_NODE_MPI
  if (np_type == "mpi") nodeport = new scdc_nodeport_mpi();
  else
#endif
#if USE_NODE_STREAM
  if (np_type == "stream") nodeport = new scdc_nodeport_stream();
  else
#endif
#if USE_NODE_TIMER
  if (np_type == "timer") nodeport = new scdc_nodeport_timer();
  else
#endif
  SCDC_ERROR("unkown nodeport type '" << np_type << "'");

  if (!nodeport) return 0;

  if (!nodeport->open(confs.conflate().c_str(), args))
  {
    delete nodeport;
    return 0;
  }

  pair<iterator, bool> ret = insert(nodeport);

  if (!ret.second)
  {
    delete nodeport;
    return 0;
  }

  return nodeport;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r14
movq %rsi, %rdx
movq %rdi, %rbx
leaq 0x50(%rsp), %r15
pushq $0x3a
popq %rsi
pushq $-0x1
popq %rcx
movq %r15, %rdi
callq 0x19b64
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x19ba0
leaq 0x253ba(%rip), %rsi     # 0x5124a
leaq 0x10(%rsp), %rdi
callq 0x19be0
testb %al, %al
je 0x2beb8
movl $0xb0, %edi
callq 0xb540
movq %rax, %r15
movq %rax, %rdi
callq 0x46d14
jmp 0x2bf6d
leaq 0x26b18(%rip), %rsi     # 0x529d7
leaq 0x10(%rsp), %rdi
callq 0x19be0
testb %al, %al
je 0x2bee7
movl $0xc0, %edi
callq 0xb540
movq %rax, %r15
movq %rax, %rdi
callq 0x47486
jmp 0x2bf6d
leaq 0x26af2(%rip), %rsi     # 0x529e0
leaq 0x10(%rsp), %rdi
callq 0x19be0
testb %al, %al
je 0x2bf13
movl $0xb8, %edi
callq 0xb540
movq %rax, %r15
movq %rax, %rdi
callq 0x47d3a
jmp 0x2bf6d
leaq 0x26122(%rip), %rsi     # 0x5203c
leaq 0x10(%rsp), %rdi
callq 0x19be0
testb %al, %al
je 0x2bf3f
movl $0x98, %edi
callq 0xb540
movq %rax, %r15
movq %rax, %rdi
callq 0x47074
jmp 0x2bf6d
leaq 0x26ae0(%rip), %rsi     # 0x52a26
leaq 0x10(%rsp), %rdi
callq 0x19be0
testb %al, %al
je 0x2bff4
movl $0x128, %edi            # imm = 0x128
callq 0xb540
movq %rax, %r15
movq %rax, %rdi
callq 0x2c43c
movq %r15, 0x8(%rsp)
leaq 0x30(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x1ca32
movq 0x30(%rsp), %rsi
movq (%r15), %rax
movq %r15, %rdi
movq %r14, %rdx
callq *0x18(%rax)
movl %eax, %ebp
leaq 0x30(%rsp), %rdi
callq 0xb230
testb %bpl, %bpl
je 0x2bfc7
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2c138
movq 0x8(%rsp), %rbx
testb $0x1, %dl
jne 0x2bfd2
testq %rbx, %rbx
je 0x2bfd0
movq (%rbx), %rax
movq %rbx, %rdi
jmp 0x2bfcd
movq (%r15), %rax
movq %r15, %rdi
callq *0x8(%rax)
xorl %ebx, %ebx
leaq 0x10(%rsp), %rdi
callq 0xb230
leaq 0x50(%rsp), %rdi
callq 0x19ef4
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x49585(%rip), %rbx     # 0x75580
movq (%rbx), %rdi
cmpq $0x0, 0x18(%rdi)
je 0x2bfd0
addq $0x20, %rdi
callq 0xb800
movq (%rbx), %rax
movq 0x18(%rax), %rdi
leaq 0x2546c(%rip), %rsi     # 0x51488
callq 0xb520
leaq 0x26a04(%rip), %rsi     # 0x52a2c
movq %rax, %rdi
callq 0xb520
leaq 0x26a1d(%rip), %rsi     # 0x52a54
movq %rax, %rdi
callq 0xb520
leaq 0x10(%rsp), %rsi
movq %rax, %rdi
callq 0xb490
leaq 0x27310(%rip), %rsi     # 0x53363
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
callq 0xb270
movq (%rbx), %rdi
addq $0x20, %rdi
callq 0xb3e0
jmp 0x2bfd0
movq %rax, %rbx
movl $0x128, %esi            # imm = 0x128
jmp 0x2c0a6
movq %rax, %rbx
movl $0x98, %esi
jmp 0x2c0a6
movq %rax, %rbx
movl $0xb8, %esi
jmp 0x2c0a6
movq %rax, %rbx
movl $0xc0, %esi
jmp 0x2c0a6
jmp 0x2c0c6
movq %rax, %rbx
movl $0xb0, %esi
movq %r15, %rdi
callq 0xb550
jmp 0x2c0c9
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xb230
jmp 0x2c0c9
jmp 0x2c0c6
movq %rax, %rbx
jmp 0x2c0d3
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xb230
leaq 0x50(%rsp), %rdi
callq 0x19ef4
movq %rbx, %rdi
callq 0xb9a0
nop