// File: /workspace/github_cpp_makefile_star2_O3/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 0xf9bd(%rip), %rbx      # 0x6d254
cmovneq %rsi, %rbx
leaq 0x80(%rsp), %r15
movq %r15, %rdi
movl $0x3a, %esi
movq %rbx, %rdx
movq $-0x1, %rcx
callq 0x1b83e
movq %rsp, %rdi
movq %r15, %rsi
callq 0x1b878
leaq 0x80(%rsp), %rsi
movl 0x18(%rsi), %edx
leaq 0x60(%rsp), %rdi
callq 0x1f068
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
cmpq $0x0, 0x90(%rsp)
je 0x5da0c
leaq 0xff9b(%rip), %rsi      # 0x6d8a3
movq %rsp, %rdi
callq 0xb110
testl %eax, %eax
je 0x5d9fb
leaq 0xdc0e(%rip), %rsi      # 0x6b52d
movq %rsp, %rdi
callq 0xb110
testl %eax, %eax
je 0x5d9fb
leaq 0xff9e(%rip), %rsi      # 0x6d8d4
movq %rsp, %rdi
callq 0xb110
testl %eax, %eax
je 0x5db8a
leaq 0x2ec23(%rip), %rbx     # 0x8c570
movq (%rbx), %rdi
cmpq $0x0, 0x18(%rdi)
je 0x5db1d
addq $0x20, %rdi
callq 0xb7d0
movq (%rbx), %rax
movq 0x18(%rax), %rbx
leaq 0xcb36(%rip), %rsi      # 0x6a4a8
movl $0xc, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0xfed4(%rip), %rsi      # 0x6d85a
movl $0xe, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0xff87(%rip), %rsi      # 0x6d921
movl $0x1b, %edx
movq %rbx, %rdi
callq 0xb5f0
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0xb5f0
movq %rax, %rbx
leaq 0xea11(%rip), %rsi      # 0x6c3d3
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 0x5db0a
movq 0x60(%rsp), %rsi
leaq 0x40(%rsp), %rdi
callq 0x5cf74
jmp 0x5da1a
movq (%rsp), %rsi
leaq 0x40(%rsp), %rdi
callq 0x5cf74
leaq 0x20(%rsp), %rdi
leaq 0x40(%rsp), %r15
movq %r15, %rsi
callq 0xb670
movq (%r15), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x5da46
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 0x5da82
leaq 0x2ac(%rip), %rcx       # 0x5dd14
movq %rcx, 0x10(%rax)
movq %r14, 0x18(%rax)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5dcf6
movl %eax, %ebx
jmp 0x5db1f
leaq 0x2eae7(%rip), %rbx     # 0x8c570
movq (%rbx), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x5db1d
addq $0x20, %rdi
callq 0xb7d0
movq (%rbx), %rax
movq 0x8(%rax), %rbx
leaq 0xc6fa(%rip), %rsi      # 0x6a1a8
movl $0xb, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0xfd98(%rip), %rsi      # 0x6d85a
movl $0xe, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0xfd35(%rip), %rsi      # 0x6d80b
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 0x2ea5f(%rip), %rax     # 0x8c570
movq (%rax), %rdi
addq $0x20, %rdi
callq 0xb3b0
xorl %ebx, %ebx
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x5db36
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5db51
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5db6c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x80(%rsp), %rdi
callq 0x1bad0
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 0x5da46
jmp 0x5dbae
jmp 0x5dbae
jmp 0x5dbae
movq %rax, %rbx
jmp 0x5dbe3
movq %rax, %rbx
jmp 0x5dbfe
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x5dbc8
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5dbe3
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5dbfe
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x80(%rsp), %rdi
callq 0x1bad0
movq %rbx, %rdi
callq 0xb9c0
nop