// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/ulib/src/Network/Manager.cpp
// Function: u::Network::Manager::onRequestListener(u::Object*)
void Manager::onRequestListener(Object *arg)
{
	Event* event = ((Event*) arg);

	lock();
	if (_builder.hasKey(event->networkType) == true && _isClosing == false) 
	{
		Network::IListener* listener;
		listener = ((IBuilder*)((Object *)_builder[event->networkType]))
			->createListener();
		trace(
			className() + "::onRequestListener: Create " + listener->toString()
		);
		_listener.push(listener);

		listener->addEventListener(
			Event::CLOSED
			, Callback(this, cb_cast(&Network::Manager::onListenerClosed))
		);

		Event response(
			Event::LISTENER_CREATED, event->networkType, listener
		);
		unlock();
		dispatchEvent(&response);
	} else {
		unlock();
	}

	event->destroy();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2b8, %rsp            # imm = 0x2B8
movq %rsi, %rbx
movq %rdi, %r14
callq 0x410246
leaq 0x88(%r14), %r12
leaq 0x58(%rbx), %r15
leaq 0xa0(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x410a3a
movq %r12, %rdi
movq %r13, %rsi
callq 0x41889c
leaq 0xe8(%rsp), %rcx
testb %al, %al
je 0x4172ab
movb 0x160(%r14), %bpl
movq 0xd8(%rsp), %rdi
cmpq %rcx, %rdi
je 0x4171d1
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0xa0(%rsp), %rdi
callq 0x410354
testb %bpl, %bpl
jne 0x4172d5
leaq 0x150(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x410a3a
movq %r12, %rdi
movq %r13, %rsi
callq 0x418352
movq %rax, %rdi
callq 0x418688
movq (%rax), %rcx
movq %rax, %rdi
callq *0x20(%rcx)
movq %rax, %r12
leaq 0x198(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x41723a
movq 0x198(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x150(%rsp), %rdi
callq 0x410354
movq $0x653c40, %rdi         # imm = 0x653C40
leaq 0x1b6e3c(%rip), %rsi    # 0x5ce091
movl $0x4, %edx
callq 0x490a00
movq (%r14), %rax
leaq 0x1a8(%rsp), %rdi
movq %r14, %rsi
callq *0x8(%rax)
leaq 0x1e0(%rsp), %rdi
leaq 0x1b7ea6(%rip), %rsi    # 0x5cf125
callq 0x4a25e0
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4172f7
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x4172ff
movq 0xd8(%rsp), %rdi
cmpq %rcx, %rdi
je 0x4172c8
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0xa0(%rsp), %rdi
callq 0x410354
movq %r14, %rdi
callq 0x4101fe
movq (%rbx), %rax
movq %rbx, %rdi
callq *(%rax)
addq $0x2b8, %rsp            # imm = 0x2B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%r12), %rax
leaq 0x48(%rsp), %rdi
movq %r12, %rsi
callq *0x18(%rax)
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x88(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r13, %rcx
je 0x41734b
movq 0x18(%rsp), %rsi
leaq 0x90(%rsp), %rbp
cmpq %rsi, %rax
jbe 0x417374
movl $0xf, %esi
cmpq %rbp, 0x80(%rsp)
je 0x41736f
movq 0x90(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x417388
movq 0x80(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x4a24a0
jmp 0x417399
leaq 0x80(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4a1e20
leaq 0x38(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x4173bd
movq %rsi, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x4173c3
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq $0x653c40, %rdi         # imm = 0x653C40
callq 0x490a00
movq %rax, %r13
leaq 0x1b6cab(%rip), %rsi    # 0x5ce0ab
movl $0x4, %edx
movq %rax, %rdi
callq 0x490a00
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x471b50
movsbl %al, %esi
movq %r13, %rdi
callq 0x490500
movq %rax, %rdi
callq 0x48fad0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x417450
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x426f20
movq 0x80(%rsp), %rdi
cmpq %rbp, %rdi
je 0x41746d
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x48(%rsp), %rdi
callq 0x410354
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x417493
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x1f0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4174b4
movq 0x1f0(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x1a8(%rsp), %rdi
callq 0x410354
leaq 0x110(%r14), %rdi
movq %r12, %rsi
callq 0x417b02
leaq 0x260(%rsp), %r13
movl $0x31, %edx
movq %r13, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x40bd54
movq $0x652c60, %rsi         # imm = 0x652C60
movq %r12, %rdi
movq %r13, %rdx
callq 0x40dfba
leaq 0x260(%rsp), %rdi
callq 0x410354
leaq 0xf8(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x410a3a
movq $0x652bb0, %rsi         # imm = 0x652BB0
leaq 0x1a8(%rsp), %rdi
movq %r13, %rdx
movq %r12, %rcx
callq 0x41679c
leaq 0x140(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x41755a
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0xf8(%rsp), %rdi
callq 0x410354
movq %r14, %rdi
callq 0x4101fe
leaq 0x1a8(%rsp), %rsi
movq %r14, %rdi
callq 0x40e18e
leaq 0x1a8(%rsp), %rdi
callq 0x4169fc
jmp 0x4172dd
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
jmp 0x41763d
movq %rax, %rbx
leaq 0x260(%rsp), %rdi
callq 0x410354
jmp 0x417642
movq %rax, %rbx
jmp 0x417602
movq %rax, %rbx
jmp 0x41760c
movq %rax, %rbx
jmp 0x417628
movq %rax, %rbx
leaq 0x1a8(%rsp), %rdi
callq 0x4169fc
jmp 0x417642
movq %rax, %rbx
leaq 0x150(%rsp), %rdi
jmp 0x41763d
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x417602
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x48(%rsp), %rdi
callq 0x40512a
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x417628
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x1a8(%rsp), %rdi
jmp 0x41763d
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x40512a
movq %rbx, %rdi
callq 0x4d11b0