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

  bool ret = true;

  args = open_args_init(args);

  if (args->get<double>(SCDC_ARGS_TYPE_DOUBLE, &timeout) == SCDC_ARG_REF_NULL)
  {
    SCDC_ERROR("open: getting timeout");
    ret = false;
    goto do_quit;
  }

  if (args->get<scdc_nodeport_timer_handler_args_t>(SCDC_ARGS_TYPE_NODEPORT_TIMER_HANDLER, &timer_handler_args, true) == SCDC_ARG_REF_NULL)
  {
    SCDC_ERROR("open: getting timer handler");
    ret = false;
    goto do_quit;
  }

  if (!scdc_nodeport::open(conf, args))
  {
    SCDC_FAIL("open: opening base");
    ret = false;
  }

  open_args_clear();

do_quit:
  if (!ret) open_args_release();

  return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rdx, %rsi
callq 0x34bae
movq %rax, %r15
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x3482d
leaq 0x98(%rbx), %rdx
movq (%r15), %rdi
movl $0x3, %esi
callq *%rax
testq %rax, %rax
je 0x3482d
leaq 0xa0(%rbx), %rdx
movl $0x13, %esi
movq %r15, %rdi
movl $0x1, %ecx
callq 0x34c02
testq %rax, %rax
je 0x348d9
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x5e84c
movl %eax, %ebp
testb %al, %al
jne 0x3481d
leaq 0x57ddc(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x3481d
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x8(%rax), %r14
leaq 0x359d3(%rip), %rsi     # 0x6a188
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x372fc(%rip), %rsi     # 0x6bac5
movl $0x10, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x37350(%rip), %rsi     # 0x6bb2d
movl $0x12, %edx
movq %r14, %rdi
callq 0xb5f0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xb4d0
movsbl %al, %esi
movq %r14, %rdi
callq 0xb050
movq %rax, %rdi
callq 0xb340
movq (%r15), %rdi
addq $0x20, %rdi
callq 0xb3b0
movq 0x38(%rbx), %rax
movq $0x0, (%rax)
jmp 0x348bf
leaq 0x57d3c(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x18(%rdi)
je 0x348bd
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x18(%rax), %r14
leaq 0x35c33(%rip), %rsi     # 0x6a488
movl $0xc, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x3725c(%rip), %rsi     # 0x6bac5
movl $0x10, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x3727e(%rip), %rsi     # 0x6bafb
movl $0x15, %edx
movq %r14, %rdi
callq 0xb5f0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xb4d0
movsbl %al, %esi
movq %r14, %rdi
callq 0xb050
movq %rax, %rdi
callq 0xb340
movq (%r15), %rdi
addq $0x20, %rdi
callq 0xb3b0
xorl %ebp, %ebp
testb %bpl, %bpl
jne 0x348cc
movq %rbx, %rdi
callq 0x34c88
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x57c90(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x18(%rdi)
je 0x348bd
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x18(%rax), %r14
leaq 0x35b87(%rip), %rsi     # 0x6a488
movl $0xc, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x371b0(%rip), %rsi     # 0x6bac5
movl $0x10, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x371e8(%rip), %rsi     # 0x6bb11
movl $0x1b, %edx
jmp 0x34882
nop