// File: /workspace/github_cpp_makefile_star2_O2/mh0fm4[P]SCDC/src/components/dataprov/dataprov_relay.cc
// Function: scdc_dataprov_relay::config_do_cmd_param(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, scdc_config_result&, bool&)
bool scdc_dataprov_relay::config_do_cmd_param(const std::string &cmd, const std::string &param, std::string val, scdc_config_result &result, bool &done)
{
  SCDC_TRACE("config_do_cmd_param: cmd: '" << cmd << "', param: '" << param << "', val: '" << val << "', result: '" << result << "'");

  done = true;
  bool ret = true;

  if (param == "")
  {
    ret = scdc_dataprov_register::config_do_cmd_param(cmd, param, val, result, done);
    if (!ret) goto do_quit;

    done = true;

    if (cmd == "info")
    {
    } else if (cmd == "ls")
    {
      ret = scdc_dataprov_config::ls(result, "relay");

    } else done = false;

  } else
  {
    ret = scdc_dataprov_register::config_do_cmd_param(cmd, param, val, result, done);
    if (!ret) goto do_quit;

    if (done);
    else if (param == "relay")
    {
      done = true;

      if (cmd == "put")
      {
        string path, url, r;

        ret = scdc_dataprov_config::put<string>(result, "relay", val, path)
           && scdc_dataprov_config::put<string>(result, "relay", val, url);

        if (ret && (!relay_put(path, url, r) || !relay_update(path))) ret = scdc_dataprov_config::fail(result, "relay", "adding path '" + path + "' with url '" + url + "' failed");

      } else if (cmd == "get")
      {
        string r;

        if (relay_get(val, r)) ret = scdc_dataprov_config::get(result, "relay", r);
        else ret = scdc_dataprov_config::fail(result, "relay", "getting relay '" + val + "' failed");

      } else if (cmd == "info")
      {
        string r;

        if (relay_info(val, r)) ret = scdc_dataprov_config::info(result, "relay", r);
        else ret = scdc_dataprov_config::fail(result, "relay", "info of relay '" + val + "' failed");

      } else if (cmd == "rm")
      {
        if (relay_rm(val)) ret = scdc_dataprov_config::rm(result, "relay");
        else ret = scdc_dataprov_config::fail(result, "relay", "removing relay '" + val + "' failed");

      } else if (cmd == "ls")
      {
        string r;

        if (relay_ls(val, r)) ret = scdc_dataprov_config::ls(result, "relay", r);
        else ret = scdc_dataprov_config::fail(result, "relay", "listing relay '" + val + "' failed");
      }

    } else done = false;
  }

do_quit:
  if (done && !ret)
  {
    SCDC_FAIL("config_do_cmd_param: cmd '" << cmd << "' failed");
    return false;
  }

  return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %r9, %r13
movq %r8, %r14
movq %rcx, %r12
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %rbp
movb $0x1, (%r9)
leaq 0x3428d(%rip), %rsi     # 0x524bd
movq %rdx, %rdi
callq 0x19be0
testb %al, %al
je 0x1e2d3
leaq 0x118(%rsp), %rdi
movq %r12, %rsi
callq 0xb750
movq %rbp, %rdi
movq %r15, %r12
movq %r15, %rsi
movq %rbx, %rdx
leaq 0x118(%rsp), %rcx
movq %r14, %r8
movq %r13, %r9
callq 0x2ec9c
movl %eax, %ebx
leaq 0x118(%rsp), %rdi
callq 0xb230
testb %bl, %bl
je 0x1e4ce
movb $0x1, (%r13)
leaq 0x335be(%rip), %rsi     # 0x51850
movq %r12, %rbx
movq %r12, %rdi
callq 0x19be0
movb $0x1, %bpl
testb %al, %al
jne 0x1e56d
leaq 0x33b4e(%rip), %rsi     # 0x51dfd
movq %rbx, %rdi
callq 0x19be0
testb %al, %al
je 0x1e581
leaq 0x33194(%rip), %rsi     # 0x5145a
movq %r14, %rdi
callq 0x1a2c8
jmp 0x1e56d
leaq 0xf8(%rsp), %rdi
movq %r12, 0x8(%rsp)
movq %r12, %rsi
callq 0xb750
movq %rbp, %r12
movq %rbp, %rdi
movq %r15, 0x70(%rsp)
movq %r15, %rsi
movq %rbx, %rdx
leaq 0xf8(%rsp), %rcx
movq %r14, %r8
movq %r13, %r15
movq %r13, %r9
callq 0x2ec9c
movl %eax, %ebp
leaq 0xf8(%rsp), %rdi
callq 0xb230
testb %bpl, %bpl
je 0x1e4d5
movb $0x1, %bpl
cmpb $0x0, (%r15)
jne 0x1e56d
leaq 0x3311f(%rip), %rsi     # 0x5145a
movq %rbx, %rdi
callq 0x19be0
testb %al, %al
je 0x1e588
movb $0x1, (%r15)
leaq 0x3374a(%rip), %rsi     # 0x51aa0
movq 0x70(%rsp), %rbx
movq %rbx, %rdi
callq 0x19be0
testb %al, %al
je 0x1e58e
leaq 0x40(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
leaq 0x20(%rsp), %rdx
movq %rdx, -0x10(%rdx)
andq $0x0, -0x8(%rdx)
movb %cl, (%rax)
movb %cl, (%rdx)
leaq 0x60(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
leaq 0x330b6(%rip), %rsi     # 0x5145a
leaq 0x30(%rsp), %rcx
movq %r14, %rdi
movq 0x8(%rsp), %r13
movq %r13, %rdx
callq 0x1eed2
testb %al, %al
je 0x1e5f2
leaq 0x33092(%rip), %rsi     # 0x5145a
leaq 0x10(%rsp), %rcx
movq %r14, %rdi
movq %r13, %rdx
callq 0x1eed2
testb %al, %al
je 0x1e5f2
movq %r12, %rdi
movq (%r12), %rax
leaq 0x30(%rsp), %rsi
leaq 0x10(%rsp), %rdx
leaq 0x50(%rsp), %rcx
callq *0x78(%rax)
testb %al, %al
je 0x1e41a
movq (%r12), %rax
leaq 0x30(%rsp), %rsi
movq %r12, %rdi
callq *0xa0(%rax)
movb $0x1, %bpl
testb %al, %al
jne 0x1e5f4
leaq 0x3349e(%rip), %rsi     # 0x518bf
leaq 0x78(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x19ae2
leaq 0x33496(%rip), %rdx     # 0x518cd
leaq 0x98(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0x1cb18
leaq 0xb8(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0x10(%rsp), %rdx
callq 0x1eeb2
leaq 0x34a26(%rip), %rdx     # 0x52e90
leaq 0xd8(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x1cb18
movq 0xd8(%rsp), %rdx
leaq 0x32fcc(%rip), %rsi     # 0x5145a
movq %r14, %rdi
callq 0x1f0f0
movl %eax, %ebp
leaq 0xd8(%rsp), %rdi
callq 0xb230
leaq 0xb8(%rsp), %rdi
callq 0xb230
leaq 0x98(%rsp), %rdi
callq 0xb230
leaq 0x78(%rsp), %rdi
callq 0xb230
jmp 0x1e5f4
xorl %ebp, %ebp
movq %r12, %rbx
jmp 0x1e4df
xorl %ebp, %ebp
movq 0x70(%rsp), %rbx
movq %r15, %r13
testb %bpl, %bpl
jne 0x1e56d
cmpb $0x0, (%r13)
je 0x1e56d
movq %rbx, %r14
leaq 0x57087(%rip), %rbx     # 0x75580
movq (%rbx), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x1e56b
addq $0x20, %rdi
callq 0xb800
movq (%rbx), %rax
movq 0x8(%rax), %rdi
leaq 0x32c6e(%rip), %rsi     # 0x51188
callq 0xb520
leaq 0x33348(%rip), %rsi     # 0x5186e
movq %rax, %rdi
callq 0xb520
leaq 0x333e6(%rip), %rsi     # 0x5191b
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
movq %r14, %rsi
callq 0xb490
leaq 0x34941(%rip), %rsi     # 0x52e90
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
callq 0xb270
movq (%rbx), %rdi
addq $0x20, %rdi
callq 0xb3e0
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x0, (%r13)
jmp 0x1e56d
movb $0x0, (%r15)
jmp 0x1e56d
leaq 0x33583(%rip), %rsi     # 0x51b18
movq %rbx, %rdi
callq 0x19be0
testb %al, %al
je 0x1e617
leaq 0x40(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%r12), %rax
leaq 0x30(%rsp), %rdx
movq %r12, %rdi
movq 0x8(%rsp), %r12
movq %r12, %rsi
callq *0x80(%rax)
movq %r15, %r13
testb %al, %al
je 0x1e72a
leaq 0x32e7c(%rip), %rsi     # 0x5145a
leaq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x1ef3e
movl %eax, %ebp
jmp 0x1e836
xorl %ebp, %ebp
leaq 0x50(%rsp), %rdi
callq 0xb230
leaq 0x10(%rsp), %rdi
callq 0xb230
leaq 0x30(%rsp), %rdi
callq 0xb230
jmp 0x1e4dc
leaq 0x33232(%rip), %rsi     # 0x51850
movq %rbx, %rdi
callq 0x19be0
testb %al, %al
je 0x1e695
leaq 0x40(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%r12), %rax
leaq 0x30(%rsp), %rdx
movq %r12, %rdi
movq 0x8(%rsp), %r12
movq %r12, %rsi
callq *0x88(%rax)
testb %al, %al
movq %r15, %r13
je 0x1e7e2
leaq 0x32df3(%rip), %rsi     # 0x5145a
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x1a132
movq 0x30(%rsp), %rsi
movq %r14, %rdi
callq 0x1a288
leaq 0x10(%rsp), %rdi
callq 0xb230
movb $0x1, %bpl
jmp 0x1e836
leaq 0x34e23(%rip), %rsi     # 0x534bf
movq %rbx, %rdi
callq 0x19be0
testb %al, %al
je 0x1e76d
movq (%r12), %rax
movq %r12, %rdi
movq 0x8(%rsp), %rsi
callq *0x90(%rax)
testb %al, %al
jne 0x1e56d
leaq 0x3322d(%rip), %rsi     # 0x518fa
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
movq 0x8(%rsp), %rdx
callq 0x19ae2
leaq 0x347aa(%rip), %rdx     # 0x52e90
leaq 0x30(%rsp), %rdi
movq %rbx, %rsi
callq 0x1cb18
movq 0x30(%rsp), %rdx
leaq 0x32d5b(%rip), %rsi     # 0x5145a
movq %r14, %rdi
callq 0x1f0f0
movl %eax, %ebp
movq %r15, %r13
leaq 0x30(%rsp), %rdi
callq 0xb230
leaq 0x10(%rsp), %rdi
callq 0xb230
movq 0x70(%rsp), %rbx
jmp 0x1e4df
leaq 0x331a9(%rip), %rsi     # 0x518da
leaq 0x50(%rsp), %rdi
movq %r12, %rdx
callq 0x19ae2
leaq 0x3474b(%rip), %rdx     # 0x52e90
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x1cb18
movq 0x10(%rsp), %rdx
leaq 0x32cfa(%rip), %rsi     # 0x5145a
movq %r14, %rdi
callq 0x1f0f0
jmp 0x1e820
leaq 0x33689(%rip), %rsi     # 0x51dfd
movq %rbx, %rdi
callq 0x19be0
testb %al, %al
je 0x1e56d
leaq 0x40(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%r12), %rax
leaq 0x30(%rsp), %rdx
movq %r12, %rdi
movq 0x8(%rsp), %r12
movq %r12, %rsi
callq *0x98(%rax)
testb %al, %al
movq %r15, %r13
je 0x1e845
leaq 0x32c99(%rip), %rsi     # 0x5145a
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x1a132
movq 0x30(%rsp), %rsi
movq %r14, %rdi
callq 0x1a2c8
jmp 0x1e683
leaq 0x33101(%rip), %rsi     # 0x518ea
leaq 0x50(%rsp), %rdi
movq %r12, %rdx
callq 0x19ae2
leaq 0x34693(%rip), %rdx     # 0x52e90
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x1cb18
movq 0x10(%rsp), %rdx
leaq 0x32c42(%rip), %rsi     # 0x5145a
movq %r14, %rdi
callq 0x1f0f0
movl %eax, %ebp
leaq 0x10(%rsp), %rdi
callq 0xb230
leaq 0x50(%rsp), %rdi
callq 0xb230
leaq 0x30(%rsp), %rdi
callq 0xb230
jmp 0x1e4df
leaq 0x330bf(%rip), %rsi     # 0x5190b
leaq 0x50(%rsp), %rdi
movq %r12, %rdx
callq 0x19ae2
leaq 0x34630(%rip), %rdx     # 0x52e90
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x1cb18
movq 0x10(%rsp), %rdx
leaq 0x32bdf(%rip), %rsi     # 0x5145a
movq %r14, %rdi
callq 0x1f0f0
jmp 0x1e820
jmp 0x1e90d
jmp 0x1e91c
jmp 0x1e8bd
jmp 0x1e92a
jmp 0x1e92a
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xb230
jmp 0x1e8af
jmp 0x1e92a
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
jmp 0x1e965
jmp 0x1e90d
jmp 0x1e91c
movq %rax, %rbx
jmp 0x1e93c
jmp 0x1e92a
jmp 0x1e92a
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
callq 0xb230
jmp 0x1e8db
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0xb230
jmp 0x1e8ed
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0xb230
jmp 0x1e8ff
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0xb230
jmp 0x1e932
jmp 0x1e92f
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xb230
jmp 0x1e91f
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
jmp 0x1e941
jmp 0x1e92a
jmp 0x1e92a
movq %rax, %rbx
jmp 0x1e946
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xb230
leaq 0x10(%rsp), %rdi
callq 0xb230
leaq 0x30(%rsp), %rdi
jmp 0x1e965
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
jmp 0x1e965
movq %rax, %rbx
leaq 0x118(%rsp), %rdi
callq 0xb230
movq %rbx, %rdi
callq 0xb9a0