// File: Unreality3D[P]Unreality3D/indie-studio/source/Network/NetManager.cpp
// Function: network::NetManager::subscribe(network::NetClient const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void	NetManager::subscribe(NetClient const *client, std::string const &topic)
  {
    // global
    if (topic == "")
      {
	auto c = std::find(_fullClients.begin(), _fullClients.end(), client);
	if (c == _fullClients.end())
	  _fullClients.push_back(client);
      }
    // topic
    else
      {
	auto topicSubs = _netClients.find(topic);
	// new topic
	if (topicSubs == _netClients.end())
	  {
	    _netClients[topic] = std::vector<NetClient const *>();
	    topicSubs = _netClients.find(topic);
	  }
	auto c = std::find((*topicSubs).second.begin(),
			   (*topicSubs).second.end(),
			   client);
	if (c == (*topicSubs).second.end())
	  (*topicSubs).second.push_back(client);
      }
  }

// Assembly:
subq $0xb8, %rsp
movq %rdi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movq %rdx, 0xa0(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0xa0(%rsp), %rdi
leaq 0x1a2dc(%rip), %rsi     # 0x46477
callq 0x2be70
testb $0x1, %al
jne 0x2c1a9
jmp 0x2c252
movq 0x10(%rsp), %rdi
addq $0x228, %rdi            # imm = 0x228
callq 0x2bec0
movq 0x10(%rsp), %rdi
movq %rax, 0x90(%rsp)
addq $0x228, %rdi            # imm = 0x228
callq 0x2bdb0
movq %rax, 0x88(%rsp)
movq 0x90(%rsp), %rdi
movq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0x28f40
movq 0x10(%rsp), %rdi
movq %rax, 0x98(%rsp)
addq $0x228, %rdi            # imm = 0x228
callq 0x2bdb0
movq %rax, 0x80(%rsp)
leaq 0x98(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x2a370
testb $0x1, %al
jne 0x2c234
jmp 0x2c24d
movq 0x10(%rsp), %rdi
addq $0x228, %rdi            # imm = 0x228
leaq 0xa8(%rsp), %rsi
callq 0x28cf0
jmp 0x2c3db
movq 0x10(%rsp), %rdi
addq $0x1f8, %rdi            # imm = 0x1F8
movq 0xa0(%rsp), %rsi
callq 0x2acf0
movq 0x10(%rsp), %rdi
movq %rax, 0x78(%rsp)
addq $0x1f8, %rdi            # imm = 0x1F8
callq 0x2aaa0
movq %rax, 0x70(%rsp)
leaq 0x78(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x2a3a0
testb $0x1, %al
jne 0x2c29e
jmp 0x2c339
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x2b360
movq 0x10(%rsp), %rdi
addq $0x1f8, %rdi            # imm = 0x1F8
movq 0xa0(%rsp), %rsi
callq 0x29670
movq %rax, 0x8(%rsp)
jmp 0x2c2d9
movq 0x8(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x28bc0
leaq 0x50(%rsp), %rdi
callq 0x28940
movq 0x10(%rsp), %rdi
addq $0x1f8, %rdi            # imm = 0x1F8
movq 0xa0(%rsp), %rsi
callq 0x2acf0
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x78(%rsp)
jmp 0x2c339
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x48(%rsp)
movl %eax, 0x44(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x28940
jmp 0x2c3e3
leaq 0x78(%rsp), %rdi
callq 0x2a800
movq %rax, %rdi
addq $0x20, %rdi
callq 0x2bec0
movq %rax, 0x28(%rsp)
leaq 0x78(%rsp), %rdi
callq 0x2a800
movq %rax, %rdi
addq $0x20, %rdi
callq 0x2bdb0
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0x28f40
movq %rax, 0x30(%rsp)
leaq 0x78(%rsp), %rdi
callq 0x2a800
movq %rax, %rdi
addq $0x20, %rdi
callq 0x2bdb0
movq %rax, 0x18(%rsp)
leaq 0x30(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x2a370
testb $0x1, %al
jne 0x2c3bb
jmp 0x2c3d9
leaq 0x78(%rsp), %rdi
callq 0x2a800
movq %rax, %rdi
addq $0x20, %rdi
leaq 0xa8(%rsp), %rsi
callq 0x28cf0
jmp 0x2c3db
addq $0xb8, %rsp
retq
movq 0x48(%rsp), %rdi
callq 0x2b6f0
nopl (%rax)