// File: /workspace/github_cpp_makefile_star2_O1/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 %r12
pushq %rbx
subq $0xa8, %rsp
cmpb $0x0, (%rsi)
movq %rdi, %r14
leaq 0xf493(%rip), %rbx      # 0x6d1e4
cmovneq %rsi, %rbx
leaq 0x80(%rsp), %r15
movq %r15, %rdi
movl $0x3a, %esi
movq %rbx, %rdx
movq $-0x1, %rcx
callq 0x1b8f2
movq %rsp, %rdi
movq %r15, %rsi
callq 0x1b92c
leaq 0x80(%rsp), %rsi
movl 0x18(%rsi), %edx
leaq 0x60(%rsp), %rdi
callq 0x1f196
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
cmpq $0x0, 0x90(%rsp)
je 0x5dec6
leaq 0xfa71(%rip), %rsi      # 0x6d833
movq %rsp, %rdi
callq 0xb110
testl %eax, %eax
je 0x5deb5
leaq 0xd734(%rip), %rsi      # 0x6b50d
movq %rsp, %rdi
callq 0xb110
testl %eax, %eax
je 0x5deb5
leaq 0xfa74(%rip), %rsi      # 0x6d864
movq %rsp, %rdi
callq 0xb110
testl %eax, %eax
je 0x5e044
leaq 0x2e769(%rip), %rbx     # 0x8c570
movq (%rbx), %rdi
cmpq $0x0, 0x18(%rdi)
je 0x5dfd7
addq $0x20, %rdi
callq 0xb7d0
movq (%rbx), %rax
movq 0x18(%rax), %rbx
leaq 0xc65c(%rip), %rsi      # 0x6a488
movl $0xc, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0xf9aa(%rip), %rsi      # 0x6d7ea
movl $0xe, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0xfa5d(%rip), %rsi      # 0x6d8b1
movl $0x1b, %edx
movq %rbx, %rdi
callq 0xb5f0
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0xb5f0
movq %rax, %rbx
leaq 0xe4df(%rip), %rsi      # 0x6c35b
movl $0x1, %edx
movq %rax, %rdi
callq 0xb5f0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0xb4d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0xb050
movq %rax, %rdi
callq 0xb340
jmp 0x5dfc4
movq 0x60(%rsp), %rsi
leaq 0x40(%rsp), %rdi
callq 0x5d404
jmp 0x5ded4
movq (%rsp), %rsi
leaq 0x40(%rsp), %rdi
callq 0x5d404
leaq 0x20(%rsp), %rdi
leaq 0x40(%rsp), %r15
movq %r15, %rsi
callq 0xb670
movq (%r15), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x5df00
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x68(%r14), %rdi
movq 0x20(%rsp), %rsi
movq (%rdi), %rax
callq *0x100(%rax)
movq %rax, 0x70(%r14)
testq %rax, %rax
je 0x5df3c
leaq 0x2ae(%rip), %rcx       # 0x5e1d0
movq %rcx, 0x10(%rax)
movq %r14, 0x18(%rax)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5e1b2
movl %eax, %ebx
jmp 0x5dfd9
leaq 0x2e62d(%rip), %rbx     # 0x8c570
movq (%rbx), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x5dfd7
addq $0x20, %rdi
callq 0xb7d0
movq (%rbx), %rax
movq 0x8(%rax), %rbx
leaq 0xc220(%rip), %rsi      # 0x6a188
movl $0xb, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0xf86e(%rip), %rsi      # 0x6d7ea
movl $0xe, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0xf80b(%rip), %rsi      # 0x6d79b
movl $0x15, %edx
movq %rbx, %rdi
callq 0xb5f0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0xb4d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0xb050
movq %rax, %rdi
callq 0xb340
leaq 0x2e5a5(%rip), %rax     # 0x8c570
movq (%rax), %rdi
addq $0x20, %rdi
callq 0xb3b0
xorl %ebx, %ebx
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x5dff0
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5e00b
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5e026
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x80(%rsp), %rdi
callq 0x1bb7e
movl %ebx, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x20(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0xb2c0
jmp 0x5df00
jmp 0x5e068
jmp 0x5e068
jmp 0x5e068
movq %rax, %rbx
jmp 0x5e09d
movq %rax, %rbx
jmp 0x5e0b8
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x5e082
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5e09d
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5e0b8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x80(%rsp), %rdi
callq 0x1bb7e
movq %rbx, %rdi
callq 0xb9c0
nop