// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rdi, %rbx
leaq 0xc(%rsp), %r15
movl %edx, (%r15)
movq 0xc070(%rip), %r14      # 0x1afb8
leaq 0x6351(%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
movl (%r15), %esi
leaq 0x10(%rsp), %r12
movq %r12, %rdi
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
xorps %xmm0, %xmm0
leaq 0xe0(%rsp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movups 0xb8(%r15), %xmm0
movq 0xc8(%r15), %rax
leaq 0x10(%rsp), %r12
movups 0xb8(%r12), %xmm1
movups %xmm1, 0xb8(%r15)
movq 0xc8(%r12), %rcx
movq %rcx, 0xc8(%r15)
movq 0x10(%rdi), %rcx
movq %rax, 0x10(%rdi)
movaps (%rdi), %xmm1
movaps %xmm0, (%rdi)
movups %xmm1, 0xb8(%r12)
movq %rcx, 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
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
movaps %xmm0, 0x10(%r12)
movl %eax, (%r12)
movq %rbx, 0x8(%r12)
leaq 0xd13(%rip), %rax       # 0xfde8
movq %rax, 0x18(%r12)
leaq 0xddb(%rip), %rax       # 0xfebc
movq %rax, 0x10(%r12)
leaq 0x10(%rsp), %rsi
callq 0xb5f0
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0xf109
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
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x10(%rsi)
movl %eax, (%rsi)
movq %rbx, 0x8(%rsi)
leaq 0xda8(%rip), %rax       # 0xfee4
movq %rax, 0x18(%rsi)
leaq 0xe1d(%rip), %rax       # 0xff64
movq %rax, 0x10(%rsi)
callq 0xbde0
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0xf169
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
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x10(%rsi)
movl %eax, (%rsi)
movq %rbx, 0x8(%rsi)
leaq 0xdf0(%rip), %rax       # 0xff8c
movq %rax, 0x18(%rsi)
leaq 0x102d(%rip), %rax      # 0x101d4
movq %rax, 0x10(%rsi)
callq 0xbd00
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0xf1c9
leaq 0x10(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0xf23e
jmp 0xf23e
jmp 0xf23e
movq %rax, %rbx
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0xf253
leaq 0x10(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0xf253
jmp 0xf23e
movq %rax, %rbx
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0xf253
leaq 0x10(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0xf253
jmp 0xf23e
movq %rax, %rbx
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0xf253
leaq 0x10(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0xf253
movq %rax, %rdi
callq 0xd7ee
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xb8c0
movq %rbx, %rdi
callq 0xbce0
nop