// File: /workspace/github_cpp_makefile_star2_O2/mh0fm4[P]SCDC/src/components/node/node_uds.cc
// Function: scdc_nodeconn_uds::open(char const*)
bool scdc_nodeconn_uds::open(const char *authority)
{
  SCDC_TRACE("open: connect to '" << authority << "'");

  if (strlen(authority) <= 0) authority = NODE_UDS_SOCKETNAME_DEFAULT;

  stringlist sl(':', authority);

  string type = sl.front_pop();
  string val = sl.conflate();

  string socketfile;

  if (sl.size() <= 0)
  {
    socketfile = make_uds_socketfile(type.c_str());

  } else if (type == "socketname" || type == "")
  {
    socketfile = make_uds_socketfile(val.c_str());

  } else if (type == "socketfile")
  {
    socketfile = val;

  } else
  {
    SCDC_ERROR("unknown UDS nodeport type '" << type << "'");
    return false;
  }

  scdc_transport_uds *transport_uds = static_cast<scdc_transport_uds *>(transport);

  transport_connection = transport_uds->connect(socketfile.c_str());

  if (!transport_connection)
  {
    SCDC_FAIL("open: connect failed!");
    return false;
  }

  transport_connection->on_idle_handler = scdc_nodeconn_on_idle_close_handler;
  transport_connection->on_idle_data = this;

  return scdc_nodeconn::open(authority);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xb0, %rsp
cmpb $0x0, (%rsi)
movq %rdi, %r14
leaq 0xbe87(%rip), %rbx      # 0x541e4
cmovneq %rsi, %rbx
leaq 0x88(%rsp), %r15
pushq $0x3a
popq %rsi
pushq $-0x1
popq %rcx
movq %r15, %rdi
movq %rbx, %rdx
callq 0x19b64
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x19ba0
leaq 0x48(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x1ca32
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
cmpq $0x0, 0x98(%rsp)
je 0x483f4
leaq 0xc477(%rip), %rsi      # 0x54833
leaq 0x8(%rsp), %rdi
callq 0x19be0
testb %al, %al
jne 0x483e3
leaq 0xa0ec(%rip), %rsi      # 0x524bd
leaq 0x8(%rsp), %rdi
callq 0x19be0
testb %al, %al
je 0x484f8
movq 0x48(%rsp), %rsi
leaq 0x68(%rsp), %rdi
callq 0x47bf0
jmp 0x48403
movq 0x8(%rsp), %rsi
leaq 0x68(%rsp), %rdi
callq 0x47bf0
leaq 0x28(%rsp), %rdi
leaq 0x68(%rsp), %r15
movq %r15, %rsi
callq 0xb690
movq %r15, %rdi
callq 0xb230
movq 0x68(%r14), %rdi
movq 0x28(%rsp), %rsi
movq (%rdi), %rax
callq *0x100(%rax)
movq %rax, 0x70(%r14)
testq %rax, %rax
je 0x48456
leaq 0x269(%rip), %rcx       # 0x486a8
movq %rcx, 0x10(%rax)
movq %r14, 0x18(%rax)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4868a
movl %eax, %ebx
jmp 0x484be
leaq 0x2d123(%rip), %rbx     # 0x75580
movq (%rbx), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x484bc
addq $0x20, %rdi
callq 0xb800
movq (%rbx), %rax
movq 0x8(%rax), %rdi
leaq 0x8d0a(%rip), %rsi      # 0x51188
callq 0xb520
leaq 0xc360(%rip), %rsi      # 0x547ea
movq %rax, %rdi
callq 0xb520
leaq 0xc302(%rip), %rsi      # 0x5479b
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
callq 0xb270
leaq 0x2d0d0(%rip), %rax     # 0x75580
movq (%rax), %rdi
addq $0x20, %rdi
callq 0xb3e0
xorl %ebx, %ebx
leaq 0x28(%rsp), %rdi
callq 0xb230
leaq 0x48(%rsp), %rdi
callq 0xb230
leaq 0x8(%rsp), %rdi
callq 0xb230
leaq 0x88(%rsp), %rdi
callq 0x19ef4
movl %ebx, %eax
addq $0xb0, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0xc365(%rip), %rsi      # 0x54864
leaq 0x8(%rsp), %rdi
callq 0x19be0
testb %al, %al
je 0x48521
leaq 0x28(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0xb2e0
jmp 0x4841d
leaq 0x2d058(%rip), %rbx     # 0x75580
movq (%rbx), %rdi
cmpq $0x0, 0x18(%rdi)
je 0x484bc
addq $0x20, %rdi
callq 0xb800
movq (%rbx), %rax
movq 0x18(%rax), %rdi
leaq 0x8f3f(%rip), %rsi      # 0x51488
callq 0xb520
leaq 0xc295(%rip), %rsi      # 0x547ea
movq %rax, %rdi
callq 0xb520
leaq 0xc34d(%rip), %rsi      # 0x548b1
movq %rax, %rdi
callq 0xb520
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0xb490
leaq 0xade3(%rip), %rsi      # 0x53363
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
callq 0xb270
jmp 0x484a9
jmp 0x485a5
jmp 0x485a5
jmp 0x485a5
movq %rax, %rbx
jmp 0x485bc
movq %rax, %rbx
jmp 0x485c6
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xb230
leaq 0x48(%rsp), %rdi
callq 0xb230
leaq 0x8(%rsp), %rdi
callq 0xb230
leaq 0x88(%rsp), %rdi
callq 0x19ef4
movq %rbx, %rdi
callq 0xb9a0
nop