// File: /workspace/github_cpp_makefile_star2_O3/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 %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq %rdx, %rsi
callq 0x34818
movq %rax, %r15
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x343fb
leaq 0x98(%rbx), %rdx
movq (%r15), %rdi
movl $0x3, %esi
callq *%rax
testq %rax, %rax
je 0x343fb
leaq 0xa0(%rbx), %rdx
movl $0x13, %esi
movq %r15, %rdi
movl $0x1, %ecx
callq 0x3486e
testq %rax, %rax
je 0x34494
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x5e390
testb %al, %al
je 0x344f2
movq 0x38(%rbx), %rax
movq $0x0, (%rax)
movb $0x1, %al
jmp 0x34597
leaq 0x5816e(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x18(%rdi)
je 0x3458d
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x18(%rax), %r14
leaq 0x36081(%rip), %rsi     # 0x6a4a8
movl $0xc, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x376aa(%rip), %rsi     # 0x6bae5
movl $0x10, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x376cc(%rip), %rsi     # 0x6bb1b
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
jmp 0x3458d
leaq 0x580d5(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x18(%rdi)
je 0x3458d
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x18(%rax), %r14
leaq 0x35fe8(%rip), %rsi     # 0x6a4a8
movl $0xc, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x37611(%rip), %rsi     # 0x6bae5
movl $0x10, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x37649(%rip), %rsi     # 0x6bb31
movl $0x1b, %edx
jmp 0x34454
leaq 0x58077(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x34582
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x8(%rax), %r14
leaq 0x35c8e(%rip), %rsi     # 0x6a1a8
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x375b7(%rip), %rsi     # 0x6bae5
movl $0x10, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x3760b(%rip), %rsi     # 0x6bb4d
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)
movq %rbx, %rdi
callq 0x348f4
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
nop