// File: /workspace/github_cpp_makefile_star2_O1/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 %r12
pushq %rbx
subq $0x70, %rsp
movq %rdx, %r14
movq %rsi, %rdx
movq %rdi, %rbx
leaq 0x48(%rsp), %r15
movq %r15, %rdi
movl $0x3a, %esi
movq $-0x1, %rcx
callq 0x1b8f2
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x1b92c
movq $0x0, (%rsp)
leaq 0x3620e(%rip), %rsi     # 0x6a24a
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x34155
leaq 0x379d2(%rip), %rsi     # 0x6ba27
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x3416c
leaq 0x379c2(%rip), %rsi     # 0x6ba30
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x34183
leaq 0x37005(%rip), %rsi     # 0x6b08c
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x3419a
leaq 0x379d6(%rip), %rsi     # 0x6ba76
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x341b1
leaq 0x584b7(%rip), %r12     # 0x8c570
movq (%r12), %rdi
cmpq $0x0, 0x18(%rdi)
je 0x341ca
addq $0x20, %rdi
callq 0xb7d0
movq (%r12), %rax
movq 0x18(%rax), %r15
leaq 0x363a8(%rip), %rsi     # 0x6a488
movl $0xc, %edx
movq %r15, %rdi
callq 0xb5f0
leaq 0x37988(%rip), %rsi     # 0x6ba7c
movl $0xf, %edx
movq %r15, %rdi
callq 0xb5f0
leaq 0x3799c(%rip), %rsi     # 0x6baa4
movl $0x16, %edx
movq %r15, %rdi
callq 0xb5f0
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r15, %rdi
callq 0xb5f0
movq %rax, %r15
leaq 0x3822a(%rip), %rsi     # 0x6c35b
movl $0x1, %edx
movq %rax, %rdi
callq 0xb5f0
movq %r15, %rdi
callq 0xb250
movq (%r12), %rdi
addq $0x20, %rdi
callq 0xb3b0
jmp 0x341ca
movl $0xb0, %edi
callq 0xb500
movq %rax, %r15
movq %rax, %rdi
callq 0x5c182
jmp 0x341c6
movl $0xc0, %edi
callq 0xb500
movq %rax, %r15
movq %rax, %rdi
callq 0x5cada
jmp 0x341c6
movl $0xb8, %edi
callq 0xb500
movq %rax, %r15
movq %rax, %rdi
callq 0x5d5dc
jmp 0x341c6
movl $0x98, %edi
callq 0xb500
movq %rax, %r15
movq %rax, %rdi
callq 0x5c5e4
jmp 0x341c6
movl $0x128, %edi            # imm = 0x128
callq 0xb500
movq %rax, %r15
movq %rax, %rdi
callq 0x345a0
movq %r15, (%rsp)
movq (%rsp), %r15
testq %r15, %r15
je 0x34240
leaq 0x48(%rsp), %rsi
movl 0x18(%rsi), %edx
leaq 0x28(%rsp), %rdi
callq 0x1f196
movq 0x28(%rsp), %rsi
movq (%r15), %rax
movq %r15, %rdi
movq %r14, %rdx
callq *0x18(%rax)
movl %eax, %ebp
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x34213
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
testb %bpl, %bpl
je 0x3422e
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x3436a
movq (%rsp), %rbx
testb $0x1, %dl
je 0x34232
jmp 0x34242
movq (%rsp), %rbx
testq %rbx, %rbx
je 0x34240
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
xorl %ebx, %ebx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3425d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x48(%rsp), %rdi
callq 0x1bb7e
movq %rbx, %rax
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x128, %esi            # imm = 0x128
jmp 0x342a9
movq %rax, %rbx
movl $0x98, %esi
jmp 0x342a9
movq %rax, %rbx
movl $0xb8, %esi
jmp 0x342a9
movq %rax, %rbx
movl $0xc0, %esi
jmp 0x342a9
jmp 0x342d5
movq %rax, %rbx
movl $0xb0, %esi
movq %r15, %rdi
jmp 0x342c7
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x342d8
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x342d8
jmp 0x342d5
movq %rax, %rbx
jmp 0x342f3
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x342f3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x48(%rsp), %rdi
callq 0x1bb7e
movq %rbx, %rdi
callq 0xb9c0
nop