// File: mh0fm4[P]SCDC/src/components/node/nodeport.cc
// Function: scdc_nodeport::open(char const*, scdc_args*)
bool scdc_nodeport::open(const char *conf, scdc_args *args)
{
  SCDC_TRACE("open: conf: '" << conf << "'");

  bool ret = true;

  args = open_args_init(args);

  string confs(conf);

  if (conf && !open_config(confs, args))
  {
    SCDC_FAIL("open: processing configuration failed");
    ret = false;
    goto do_quit;
  }

  if (args->get<scdc_nodeport_loop_handler_args_t>(SCDC_ARGS_TYPE_NODEPORT_LOOP_HANDLER_DUMMY, &loop_handler_dummy_args, true) == SCDC_ARG_REF_NULL)
  {
    SCDC_ERROR("open: getting loop handler dummy");
    ret = false;
    goto do_quit;

  } else
  {
    SCDC_TRACE("open_config_conf: loop_handler_dummy: " << reinterpret_cast<void *>(loop_handler_dummy_args.handler) << " / " << static_cast<void *>(loop_handler_dummy_args.data));
  }

  open_args_clear();

do_quit:
  if (!ret) open_args_release();

  return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x60(%rbp)
jmp 0x96831
movq -0x60(%rbp), %rdi
movb $0x1, -0x19(%rbp)
movq -0x18(%rbp), %rsi
callq 0x55330
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq -0x41(%rbp), %rdi
movq %rdi, -0x68(%rbp)
callq 0xcbc0
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
leaq -0x40(%rbp), %rdi
callq 0x27820
jmp 0x9686e
leaq -0x41(%rbp), %rdi
callq 0xc730
cmpq $0x0, -0x10(%rbp)
je 0x969b0
movq -0x60(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq -0x40(%rbp), %rsi
callq 0x96300
movb %al, -0x71(%rbp)
jmp 0x96898
movb -0x71(%rbp), %al
testb $0x1, %al
jne 0x969b0
jmp 0x968a5
jmp 0x968a7
leaq 0x3ddfa(%rip), %rax     # 0xd46a8
movq (%rax), %rdi
callq 0x257e0
movq %rax, -0x80(%rbp)
jmp 0x968bc
movq -0x80(%rbp), %rax
cmpq $0x0, %rax
je 0x969a3
leaq 0x3ddd7(%rip), %rax     # 0xd46a8
movq (%rax), %rdi
callq 0x25800
jmp 0x968db
leaq 0x3ddc6(%rip), %rax     # 0xd46a8
movq (%rax), %rdi
callq 0x257e0
movq %rax, -0x88(%rbp)
jmp 0x968f3
movq -0x88(%rbp), %rdi
leaq 0xf8af(%rip), %rsi      # 0xa61b0
callq 0xc670
movq %rax, -0x90(%rbp)
jmp 0x9690f
movq -0x90(%rbp), %rdi
leaq 0x13040(%rip), %rsi     # 0xa995d
callq 0xc670
movq %rax, -0x98(%rbp)
jmp 0x9692b
movq -0x98(%rbp), %rdi
leaq 0x113c4(%rip), %rsi     # 0xa7cfd
callq 0xc670
movq %rax, -0xa0(%rbp)
jmp 0x96947
movq -0xa0(%rbp), %rdi
movq 0x3d66b(%rip), %rsi     # 0xd3fc0
callq 0xc6d0
jmp 0x9695c
leaq 0x3dd45(%rip), %rax     # 0xd46a8
movq (%rax), %rdi
callq 0x25820
jmp 0x9696d
jmp 0x969a3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x41(%rbp), %rdi
callq 0xc730
jmp 0x96b0a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x40(%rbp), %rdi
callq 0xc3e0
jmp 0x96b0a
jmp 0x969a5
jmp 0x969a7
movb $0x0, -0x19(%rbp)
jmp 0x96ad4
movq -0x60(%rbp), %rdx
movq -0x18(%rbp), %rdi
addq $0x58, %rdx
movl $0x15, %esi
movl $0x1, %ecx
callq 0x96cb0
movq %rax, -0xa8(%rbp)
jmp 0x969d4
movq -0xa8(%rbp), %rax
cmpq $0x0, %rax
jne 0x96abf
jmp 0x969e7
leaq 0x3dcba(%rip), %rax     # 0xd46a8
movq (%rax), %rdi
callq 0x2e8e0
movq %rax, -0xb0(%rbp)
jmp 0x969ff
movq -0xb0(%rbp), %rax
cmpq $0x0, %rax
je 0x96ab5
leaq 0x3dc91(%rip), %rax     # 0xd46a8
movq (%rax), %rdi
callq 0x2e900
jmp 0x96a21
leaq 0x3dc80(%rip), %rax     # 0xd46a8
movq (%rax), %rdi
callq 0x2e8e0
movq %rax, -0xb8(%rbp)
jmp 0x96a39
movq -0xb8(%rbp), %rdi
leaq 0xfa61(%rip), %rsi      # 0xa64a8
callq 0xc670
movq %rax, -0xc0(%rbp)
jmp 0x96a55
movq -0xc0(%rbp), %rdi
leaq 0x12efa(%rip), %rsi     # 0xa995d
callq 0xc670
movq %rax, -0xc8(%rbp)
jmp 0x96a71
movq -0xc8(%rbp), %rdi
leaq 0x12f53(%rip), %rsi     # 0xa99d2
callq 0xc670
movq %rax, -0xd0(%rbp)
jmp 0x96a8d
movq -0xd0(%rbp), %rdi
movq 0x3d525(%rip), %rsi     # 0xd3fc0
callq 0xc6d0
jmp 0x96aa2
leaq 0x3dbff(%rip), %rax     # 0xd46a8
movq (%rax), %rdi
callq 0x2e920
jmp 0x96ab3
jmp 0x96ab5
jmp 0x96ab7
jmp 0x96ab9
movb $0x0, -0x19(%rbp)
jmp 0x96ad4
jmp 0x96ac1
jmp 0x96ac3
jmp 0x96ac5
jmp 0x96ac7
movq -0x60(%rbp), %rdi
callq 0x554e0
jmp 0x96ad2
jmp 0x96ad4
testb $0x1, -0x19(%rbp)
jne 0x96ae7
movq -0x60(%rbp), %rdi
callq 0x55500
jmp 0x96ae5
jmp 0x96ae7
movb -0x19(%rbp), %al
movb %al, -0xd1(%rbp)
leaq -0x40(%rbp), %rdi
callq 0xc3e0
movb -0xd1(%rbp), %al
andb $0x1, %al
addq $0xe0, %rsp
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0xcba0
nopw %cs:(%rax,%rax)