// File: /workspace/github_cpp_makefile_star2_O2/mh0fm4[P]SCDC/src/components/node/nodeport_pool.cc
// Function: scdc_nodeport_pool::authority(char const*, scdc_args*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool scdc_nodeport_pool::authority(const char *conf, scdc_args *args, std::string &auth)
{
  stringlist confs(':', conf);
  string np_type = confs.front_pop();
  conf += confs.offset();

#if USE_NODE_DIRECT
  if (np_type == "direct") return scdc_nodeport_direct::authority(conf, args, auth);
#endif
#if USE_NODE_TCP
  if (np_type == "tcp") return scdc_nodeport_tcp::authority(conf, args, auth);
#endif
#if USE_NODE_UDS
  if (np_type == "uds") return scdc_nodeport_uds::authority(conf, args, auth);
#endif
#if USE_NODE_MPI
  if (np_type == "mpi") return scdc_nodeport_mpi::authority(conf, args, auth);
#endif
#if USE_NODE_STREAM
  if (np_type == "stream") return scdc_nodeport_stream::authority(conf, args, auth);
#endif
#if USE_NODE_TIMER
  if (np_type == "timer") return scdc_nodeport_timer::authority(conf, args, auth);
#endif

  if (np_type.size() > 0)
  {
    SCDC_ERROR("unknown nodeport type '" << np_type << "'");
    auth.clear();
    return false;
  }

  return scdc_nodeport::authority(conf, args, auth);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x20(%rsp), %r12
pushq $0x3a
popq %rsi
pushq $-0x1
popq %rcx
movq %r12, %rdi
movq %r15, %rdx
callq 0x19b64
movq %rsp, %rdi
movq %r12, %rsi
callq 0x19ba0
leaq 0x40(%rsp), %rax
movq -0x20(%rax), %rcx
addq $0x30, %rcx
cmpq $0x0, -0x10(%rax)
cmoveq %rax, %rcx
addq (%rcx), %r15
leaq 0x255cd(%rip), %rsi     # 0x5124a
movq %rsp, %rdi
callq 0x19be0
testb %al, %al
je 0x2bc99
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x46c14
jmp 0x2bd00
leaq 0x26d37(%rip), %rsi     # 0x529d7
movq %rsp, %rdi
callq 0x19be0
testb %al, %al
je 0x2bcbc
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x4726c
jmp 0x2bd00
leaq 0x26d1d(%rip), %rsi     # 0x529e0
movq %rsp, %rdi
callq 0x19be0
testb %al, %al
je 0x2bcdf
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x47c3a
jmp 0x2bd00
leaq 0x26356(%rip), %rsi     # 0x5203c
movq %rsp, %rdi
callq 0x19be0
testb %al, %al
je 0x2bd22
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x486d6
movl %eax, %ebx
movq %rsp, %rdi
callq 0xb230
leaq 0x20(%rsp), %rdi
callq 0x19ef4
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x26cfd(%rip), %rsi     # 0x52a26
movq %rsp, %rdi
callq 0x19be0
testb %al, %al
jne 0x2bcf2
cmpq $0x0, 0x8(%rsp)
je 0x2bcf2
leaq 0x4983c(%rip), %r14     # 0x75580
movq (%r14), %rdi
cmpq $0x0, 0x18(%rdi)
je 0x2bdb6
addq $0x20, %rdi
callq 0xb800
movq (%r14), %rax
movq 0x18(%rax), %rdi
leaq 0x25723(%rip), %rsi     # 0x51488
callq 0xb520
leaq 0x26cbb(%rip), %rsi     # 0x52a2c
movq %rax, %rdi
callq 0xb520
leaq 0x26cbc(%rip), %rsi     # 0x52a3c
movq %rax, %rdi
callq 0xb520
movq %rsp, %rsi
movq %rax, %rdi
callq 0xb490
leaq 0x275c9(%rip), %rsi     # 0x53363
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
callq 0xb270
movq (%r14), %rdi
addq $0x20, %rdi
callq 0xb3e0
andq $0x0, 0x8(%rbx)
movq (%rbx), %rax
movb $0x0, (%rax)
xorl %ebx, %ebx
jmp 0x2bd02
movq %rax, %rbx
jmp 0x2bdd8
movq %rax, %rbx
movq %rsp, %rdi
callq 0xb230
leaq 0x20(%rsp), %rdi
callq 0x19ef4
movq %rbx, %rdi
callq 0xb9a0