// File: /workspace/github_cpp_makefile_star2_O3/Unreality3D[P]Unreality3D/indie-studio/source/Network/Broker.cpp
// Function: network::Broker::onConnect(Socket::Server&, int)
void	Broker::onConnect(Socket::Server &s, int fd)
  {
    std::cout << "connexion etablished" << std::endl;
    _clients[fd] = network::Client(fd);
    _clients[fd].deserializer.OnConnect(
					[fd, this] (IndieProtocol::Connect c)
					{
					  this->onPacketConnect(fd, c);
					});
    _clients[fd].deserializer.OnList(
					[fd, this] (IndieProtocol::List l)
					{
					  this->onPacketList(fd, l);
					});
    _clients[fd].deserializer.OnMessage(
					[fd, this] (IndieProtocol::Message m)
					{
					  this->onPacketMessage(fd, m);
					});
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movl %edx, %ebp
movq %rdi, %rbx
leaq 0xc(%rsp), %r15
movl %edx, (%r15)
movq 0xbfc3(%rip), %r14      # 0x1afb8
leaq 0x62a4(%rip), %rsi      # 0x152a0
movl $0x14, %edx
movq %r14, %rdi
callq 0xb870
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xb750
movsbl %al, %esi
movq %r14, %rdi
callq 0xb040
movq %rax, %rdi
callq 0xb540
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movl %ebp, %esi
callq 0xb330
leaq 0x180(%rbx), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0xbac0
movq %rax, %r15
leaq 0x18(%rsp), %r13
movq -0x8(%r13), %rax
movq %rax, (%r15)
leaq 0x8(%r15), %rdi
movq %r13, %rsi
callq 0xb910
movl 0x20(%r13), %eax
movl %eax, 0x28(%r15)
movzwl 0x24(%r13), %eax
movw %ax, 0x2c(%r15)
leaq 0x30(%r15), %rdi
leaq 0x40(%rsp), %rsi
callq 0xb200
leaq 0x58(%rsp), %rsi
movb -0x8(%rsi), %al
movb %al, 0x40(%r15)
leaq 0x48(%r15), %rdi
callq 0xb940
leaq 0x68(%r15), %rdi
leaq 0x78(%rsp), %rsi
callq 0xbb00
movl $0x88, %esi
leaq (%r15,%rsi), %rdi
addq %r12, %rsi
callq 0xbb90
movl $0xa8, %eax
movq %r15, %rdi
addq %rax, %rdi
addq %rax, %r12
movq %r12, %rsi
callq 0xb200
movq 0xc8(%r15), %rax
leaq 0x10(%rsp), %r12
movups 0xb8(%r12), %xmm0
movups 0xb8(%r15), %xmm1
movups %xmm0, 0xb8(%r15)
movq 0xc8(%r12), %rcx
movq %rcx, 0xc8(%r15)
leaq 0xe0(%rsp), %rdi
movaps %xmm1, (%rdi)
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0xb8(%r12)
xorl %r13d, %r13d
movq %r13, 0xc8(%r12)
callq 0xb920
movq %r12, %rdi
callq 0xb8c0
leaq 0xc(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0xbac0
leaq 0x28(%rax), %rdi
movl (%r15), %eax
movq %r13, (%r12)
movl %eax, (%r12)
movq %rbx, 0x8(%r12)
leaq 0xcd2(%rip), %rax       # 0xfe3a
movq %rax, 0x18(%r12)
leaq 0xd9e(%rip), %rax       # 0xff12
movq %rax, 0x10(%r12)
leaq 0x10(%rsp), %rsi
callq 0xb5f0
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0xf19c
leaq 0x10(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0xc(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0xbac0
leaq 0x28(%rax), %rdi
movl (%r15), %eax
leaq 0x10(%rsp), %rsi
movq $0x0, (%rsi)
movl %eax, (%rsi)
movq %rbx, 0x8(%rsi)
leaq 0xd6e(%rip), %rax       # 0xff3a
movq %rax, 0x18(%rsi)
leaq 0xde3(%rip), %rax       # 0xffba
movq %rax, 0x10(%rsi)
callq 0xbde0
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0xf1f9
leaq 0x10(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0xc(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0xbac0
leaq 0x28(%rax), %rdi
movl (%r15), %eax
leaq 0x10(%rsp), %rsi
movq $0x0, (%rsi)
movl %eax, (%rsi)
movq %rbx, 0x8(%rsi)
leaq 0xdb9(%rip), %rax       # 0xffe2
movq %rax, 0x18(%rsi)
leaq 0xff8(%rip), %rax       # 0x1022c
movq %rax, 0x10(%rsi)
callq 0xbd00
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0xf256
leaq 0x10(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xf2cc
jmp 0xf2cc
jmp 0xf2cc
movq %rax, %rbx
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0xf2e1
leaq 0x10(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0xf2e1
jmp 0xf2cc
movq %rax, %rbx
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0xf2e1
leaq 0x10(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0xf2e1
jmp 0xf2cc
movq %rax, %rbx
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0xf2e1
leaq 0x10(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0xf2e1
movq %rax, %rdi
callq 0xd85c
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xb8c0
movq %rbx, %rdi
callq 0xbce0
nop