// File: /workspace/github_cpp_makefile_star2_O3/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
movq %r15, %rdi
movl $0x3a, %esi
movq $-0x1, %rcx
callq 0x1b83e
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x1b878
leaq 0x365c4(%rip), %rsi     # 0x6a26a
leaq 0x10(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x33dbf
leaq 0x37d88(%rip), %rsi     # 0x6ba47
leaq 0x10(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x33dd6
leaq 0x37d78(%rip), %rsi     # 0x6ba50
leaq 0x10(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x33ded
leaq 0x373bb(%rip), %rsi     # 0x6b0ac
leaq 0x10(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x33e04
leaq 0x37d8c(%rip), %rsi     # 0x6ba96
leaq 0x10(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x33e1b
leaq 0x5884d(%rip), %r14     # 0x8c570
movq (%r14), %rdi
cmpq $0x0, 0x18(%rdi)
je 0x33ea7
addq $0x20, %rdi
callq 0xb7d0
movq (%r14), %rax
movq 0x18(%rax), %rbx
leaq 0x36760(%rip), %rsi     # 0x6a4a8
movl $0xc, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0x37d40(%rip), %rsi     # 0x6ba9c
movl $0xf, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0x37d54(%rip), %rsi     # 0x6bac4
movl $0x16, %edx
movq %rbx, %rdi
callq 0xb5f0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0xb5f0
movq %rax, %rbx
leaq 0x3863a(%rip), %rsi     # 0x6c3d3
movl $0x1, %edx
movq %rax, %rdi
callq 0xb5f0
movq %rbx, %rdi
callq 0xb250
movq (%r14), %rdi
addq $0x20, %rdi
callq 0xb3b0
jmp 0x33ea7
movl $0xb0, %edi
callq 0xb500
movq %rax, %r15
movq %rax, %rdi
callq 0x5bd40
jmp 0x33e30
movl $0xc0, %edi
callq 0xb500
movq %rax, %r15
movq %rax, %rdi
callq 0x5c698
jmp 0x33e30
movl $0xb8, %edi
callq 0xb500
movq %rax, %r15
movq %rax, %rdi
callq 0x5d146
jmp 0x33e30
movl $0x98, %edi
callq 0xb500
movq %rax, %r15
movq %rax, %rdi
callq 0x5c1a8
jmp 0x33e30
movl $0x128, %edi            # imm = 0x128
callq 0xb500
movq %rax, %r15
movq %rax, %rdi
callq 0x34208
movq %r15, 0x8(%rsp)
leaq 0x50(%rsp), %rsi
movl 0x18(%rsi), %edx
leaq 0x30(%rsp), %rdi
callq 0x1f068
movq 0x30(%rsp), %rsi
movq (%r15), %rax
movq %r15, %rdi
movq %r14, %rdx
callq *0x18(%rax)
movl %eax, %ebp
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33e75
movq 0x40(%rsp), %rsi
incq %rsi
callq 0xb510
testb %bpl, %bpl
je 0x33e9e
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x33fce
movq 0x8(%rsp), %rbx
testb $0x1, %dl
jne 0x33ea9
testq %rbx, %rbx
je 0x33ea7
movq (%rbx), %rax
movq %rbx, %rdi
jmp 0x33ea4
movq (%r15), %rax
movq %r15, %rdi
callq *0x8(%rax)
xorl %ebx, %ebx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33ec4
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x50(%rsp), %rdi
callq 0x1bad0
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x128, %esi            # imm = 0x128
jmp 0x33f0c
movq %rax, %rbx
movl $0x98, %esi
jmp 0x33f0c
movq %rax, %rbx
movl $0xb8, %esi
jmp 0x33f0c
movq %rax, %rbx
movl $0xc0, %esi
jmp 0x33f0c
movq %rax, %rbx
movl $0xb0, %esi
movq %r15, %rdi
jmp 0x33f2c
jmp 0x33f3a
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33f3d
movq 0x40(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x33f3d
jmp 0x33f3a
movq %rax, %rbx
jmp 0x33f58
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33f58
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x50(%rsp), %rdi
callq 0x1bad0
movq %rbx, %rdi
callq 0xb9c0