// File: /workspace/github_cpp_makefile_star2_O3/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 0x22790
movq %r14, 0x10(%rsp)
leaq 0xa0(%r14), %r12
cmpq %r12, %rax
je 0x21c4d
leaq 0x40(%rsp), %r14
leaq 0x20(%rsp), %r15
xorl %ebp, %ebp
movq %r14, %rdi
leaq 0x48dbf(%rip), %rsi     # 0x6a9a1
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 0x1d0a0
movq %r15, %rdi
movq %r14, %rsi
callq 0xba60
movq (%rsp), %rdi
movq %r15, %rsi
callq 0xb670
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x21c37
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb510
incq %rbp
movq 0x8(%rsp), %rdi
movq (%rsp), %rsi
callq 0x22790
cmpq %r12, %rax
jne 0x21bd8
leaq 0x40(%rsp), %r14
movq %r14, %rdi
movq (%rsp), %rsi
movq 0x18(%rsp), %r15
movq %r15, %rdx
callq 0x224a6
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x2281a
movl %edx, %ebp
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21c90
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21cab
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb510
testb $0x1, %bpl
je 0x21cc3
movq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x1fad2
jmp 0x21d81
leaq 0x6a8a6(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x21d81
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x8(%rax), %r14
leaq 0x484b9(%rip), %rsi     # 0x6a1a8
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x48bd6(%rip), %rsi     # 0x6a8d9
movl $0x10, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x48c90(%rip), %rsi     # 0x6a9a7
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 0x4a1bf(%rip), %rsi     # 0x6bf00
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 0x2250a
jmp 0x21dc2
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x21dc2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb510
movq %r14, %rdi
callq 0xb9c0