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

	    if ((*topicSubs).second.size() == 0)
	      _netClients.erase(topicSubs);
	  }
      }
  }

// Assembly:
subq $0xb8, %rsp
movq %rdi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movq %rdx, 0xa0(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0xa0(%rsp), %rdi
leaq 0x1a01c(%rip), %rsi     # 0x46477
callq 0x2be70
testb $0x1, %al
jne 0x2c469
jmp 0x2c52f
movq 0x18(%rsp), %rdi
addq $0x228, %rdi            # imm = 0x228
callq 0x2bec0
movq 0x18(%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 0x18(%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 0x297e0
testb $0x1, %al
jne 0x2c4f4
jmp 0x2c52a
movq 0x18(%rsp), %rax
addq $0x228, %rax            # imm = 0x228
movq %rax, 0x10(%rsp)
leaq 0x78(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x28740
movq 0x10(%rsp), %rdi
movq 0x78(%rsp), %rsi
callq 0x2a550
movq %rax, 0x70(%rsp)
jmp 0x2c678
movq 0x18(%rsp), %rdi
addq $0x1f8, %rdi            # imm = 0x1F8
movq 0xa0(%rsp), %rsi
callq 0x2acf0
movq 0x18(%rsp), %rdi
movq %rax, 0x68(%rsp)
addq $0x1f8, %rdi            # imm = 0x1F8
callq 0x2aaa0
movq %rax, 0x60(%rsp)
leaq 0x68(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x2a120
testb $0x1, %al
jne 0x2c57b
jmp 0x2c676
leaq 0x68(%rsp), %rdi
callq 0x2a800
movq %rax, %rdi
addq $0x20, %rdi
callq 0x2bec0
movq %rax, 0x50(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x2a800
movq %rax, %rdi
addq $0x20, %rdi
callq 0x2bdb0
movq %rax, 0x48(%rsp)
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0x28f40
movq %rax, 0x58(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x2a800
movq %rax, %rdi
addq $0x20, %rdi
callq 0x2bdb0
movq %rax, 0x40(%rsp)
leaq 0x58(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x297e0
testb $0x1, %al
jne 0x2c5fd
jmp 0x2c633
leaq 0x68(%rsp), %rdi
callq 0x2a800
addq $0x20, %rax
movq %rax, 0x8(%rsp)
leaq 0x38(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x28740
movq 0x8(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x2a550
movq %rax, 0x30(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x2a800
movq %rax, %rdi
addq $0x20, %rdi
callq 0x295a0
cmpq $0x0, %rax
jne 0x2c674
movq 0x18(%rsp), %rdi
addq $0x1f8, %rdi            # imm = 0x1F8
movq 0x68(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rsi
callq 0x2a660
movq %rax, 0x20(%rsp)
jmp 0x2c676
jmp 0x2c678
addq $0xb8, %rsp
retq