// File: /workspace/github_cpp_makefile_star2_O1/mh0fm4[P]SCDC/src/components/dataprov/dataprov_relay.cc
// Function: scdc_dataprov_relay::relay_put(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>>&)
bool scdc_dataprov_relay::relay_put(const std::string &path, const std::string &url, std::string &r)
{
  SCDC_TRACE("relay_put: path: '" << path << "', url: '" << url << "'");

  scdcint_t i = 0;

  r = path;

  while (relay.find(r) != relay.end())
  {
    char s[64];
    sprintf(s, "_%" scdcint_fmt, i);

    r = path + s;

    ++i;
  }

  pair<relay_t::iterator, bool> ret = relay.insert(relay_t::value_type(r, url));

  if (!ret.second)
  {
    SCDC_FAIL("relay_put: inserting relay entry '" << r << "' failed");
    return false;
  }

  reg_put(url);

  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rcx, %rbx
movq %rdx, 0x18(%rsp)
movq %rsi, %r13
movq %rdi, %r14
movq %rcx, %rdi
callq 0xb2c0
leaq 0x98(%r14), %rdi
movq %rdi, 0x8(%rsp)
movq %rbx, (%rsp)
movq %rbx, %rsi
callq 0x2286e
movq %r14, 0x10(%rsp)
leaq 0xa0(%r14), %r12
cmpq %r12, %rax
je 0x21d2b
leaq 0x40(%rsp), %r14
leaq 0x20(%rsp), %r15
xorl %ebp, %ebp
movq %r14, %rdi
leaq 0x48cc1(%rip), %rsi     # 0x6a981
movq %rbp, %rdx
xorl %eax, %eax
callq 0xb0d0
leaq 0x30(%rsp), %rbx
movq %rbx, 0x20(%rsp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x1d19a
movq %r15, %rdi
movq %r14, %rsi
callq 0xba60
movq (%rsp), %rdi
movq %r15, %rsi
callq 0xb670
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x21d15
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb510
incq %rbp
movq 0x8(%rsp), %rdi
movq (%rsp), %rsi
callq 0x2286e
cmpq %r12, %rax
jne 0x21cb6
leaq 0x40(%rsp), %r14
movq %r14, %rdi
movq (%rsp), %rsi
movq 0x18(%rsp), %r15
movq %r15, %rdx
callq 0x22584
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x228f8
movl %edx, %ebp
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21d6e
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21d89
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb510
testb $0x1, %bpl
je 0x21da1
movq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x1fbf8
jmp 0x21e5f
leaq 0x6a7c8(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x21e5f
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x8(%rax), %r14
leaq 0x483bb(%rip), %rsi     # 0x6a188
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x48ad8(%rip), %rsi     # 0x6a8b9
movl $0x10, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x48b92(%rip), %rsi     # 0x6a987
movl $0x22, %edx
movq %r14, %rdi
callq 0xb5f0
movq (%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r14, %rdi
callq 0xb5f0
movq %rax, %rbx
leaq 0x4a069(%rip), %rsi     # 0x6be88
movl $0x8, %edx
movq %rax, %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 (%r15), %rdi
addq $0x20, %rdi
callq 0xb3b0
andb $0x1, %bpl
movl %ebp, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x40(%rsp), %rdi
callq 0x225e8
jmp 0x21ea0
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x21ea0
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb510
movq %r14, %rdi
callq 0xb9c0