// File: /workspace/github_cpp_makefile_star2_O3/mh0fm4[P]SCDC/src/components/node/nodeport.cc
// Function: scdc_nodeport::open_config_conf(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, scdc_args*, bool&)
bool scdc_nodeport::open_config_conf(const std::string &conf, scdc_args *args, bool &done)
{
  done = true;
  bool ret = true;

  if (conf == "cmd_handler")
  {
    if (args->get<scdc_nodeport_cmd_handler_args_t>(SCDC_ARGS_TYPE_NODEPORT_CMD_HANDLER, &cmd_handler_args, true) == SCDC_ARG_REF_NULL)
    {
      SCDC_ERROR("open_config_conf: getting command handler");
      ret = false;

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

  } else if (conf == "max_connections")
  {
    if (args->get<scdcint_t>(SCDC_ARGS_TYPE_SCDCINT, &max_connections) == SCDC_ARG_REF_NULL)
    {
      SCDC_ERROR("open_config_conf: getting max. connections");
      ret = false;

    } else
    {
      SCDC_TRACE("open_config_conf: max_connections: " << max_connections);
    }

  } else if (conf.compare(0, 4, "zlib") == 0)
  {
    SCDC_TRACE("open_config_conf: cfg_compression: '" << cfg_compression << "'");
    cfg_compression = conf;

  } else done = false;

  return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
movb $0x1, (%rcx)
leaq 0xfb3d(%rip), %rsi      # 0x6d975
movq %r14, %rdi
callq 0xb110
testl %eax, %eax
je 0x5de82
leaq 0xfb6b(%rip), %rsi      # 0x6d9b6
movq %r14, %rdi
callq 0xb110
testl %eax, %eax
je 0x5df04
leaq 0xfb8f(%rip), %rcx      # 0x6d9f1
movl $0x4, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0xb700
testl %eax, %eax
je 0x5dfc2
movb $0x0, (%r15)
jmp 0x5dfd1
addq $0x48, %rbx
movl $0x12, %esi
movq %r12, %rdi
movq %rbx, %rdx
movl $0x1, %ecx
callq 0x5e5a6
movq %rax, %rcx
movb $0x1, %al
testq %rcx, %rcx
jne 0x5dfd3
leaq 0x2e6c0(%rip), %r14     # 0x8c570
movq (%r14), %rdi
cmpq $0x0, 0x18(%rdi)
je 0x5dfbe
addq $0x20, %rdi
callq 0xb7d0
movq (%r14), %rax
movq 0x18(%rax), %rbx
leaq 0xc5d3(%rip), %rsi      # 0x6a4a8
movl $0xc, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0xfa98(%rip), %rsi      # 0x6d981
movl $0xa, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0xfa8f(%rip), %rsi      # 0x6d98c
movl $0x29, %edx
jmp 0x5df83
movq 0x8(%r12), %rax
testq %rax, %rax
je 0x5df2e
addq $0x68, %rbx
movq (%r12), %rdi
movl $0x2, %esi
movq %rbx, %rdx
callq *%rax
movq %rax, %rcx
movb $0x1, %al
testq %rcx, %rcx
jne 0x5dfd3
leaq 0x2e63b(%rip), %r14     # 0x8c570
movq (%r14), %rdi
cmpq $0x0, 0x18(%rdi)
je 0x5dfbe
addq $0x20, %rdi
callq 0xb7d0
movq (%r14), %rax
movq 0x18(%rax), %rbx
leaq 0xc552(%rip), %rsi      # 0x6a4a8
movl $0xc, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0xfa17(%rip), %rsi      # 0x6d981
movl $0xa, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0xfa48(%rip), %rsi      # 0x6d9c6
movl $0x2a, %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
movq (%r14), %rdi
addq $0x20, %rdi
callq 0xb3b0
xorl %eax, %eax
jmp 0x5dfd3
addq $0x70, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb2c0
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop