// File: /workspace/github_cpp_makefile_star2_O1/enbock[P]Warp10Server/warp10server/src/WebService.cpp
// Function: Warp10::WebService::onListenerCreated(u::Object*)
void  WebService::onListenerCreated(Object* arg)
{
	u::Network::Event* event = ((u::Network::Event*)arg);
	if (event->networkType == type) {
		trace(className() + "::onListenerCreated: Listener ready.");
		IListener* listener = event->listener;
		listener->addEventListener(
			WebEvent::INCOMMING_CONNECTION,
			Callback(this, cb_cast(&WebService::onNewConnection))
		);
		listener->addEventListener(
			WebEvent::WILL_CLOSE,
			Callback(this, cb_cast(&WebService::onListenerClose))
		);
		listener->listen();
	}
	event->destroy();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rsi, %rbx
movq 0x98(%rsi), %rdx
cmpq 0x24bd59(%rip), %rdx    # 0x652740
jne 0x406b9b
movq %rdi, %r14
testq %rdx, %rdx
je 0x406a10
movq 0x24bd3c(%rip), %rsi    # 0x652738
movq 0x90(%rbx), %rdi
callq 0x401090
testl %eax, %eax
jne 0x406b9b
movq $0x653c40, %rdi         # imm = 0x653C40
leaq 0x1c7673(%rip), %rsi    # 0x5ce091
movl $0x4, %edx
callq 0x490a00
movq (%r14), %rax
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq *0x8(%rax)
leaq 0x58(%rsp), %rdi
leaq 0x1c77f1(%rip), %rsi    # 0x5ce233
callq 0x4a25e0
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x406a6e
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x406a76
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq $0x653c40, %rdi         # imm = 0x653C40
callq 0x490a00
movq %rax, %r15
leaq 0x1c75fe(%rip), %rsi    # 0x5ce0ab
movl $0x4, %edx
movq %rax, %rdi
callq 0x490a00
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x471b50
movsbl %al, %esi
movq %r15, %rdi
callq 0x490500
movq %rax, %rdi
callq 0x48fad0
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x406af7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x406b12
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x20(%rsp), %rdi
callq 0x410354
movq 0x50(%rbx), %r15
leaq 0xd0(%rsp), %r12
movl $0x41, %edx
movq %r12, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x40bd54
movq $0x652768, %rsi         # imm = 0x652768
movq %r15, %rdi
movq %r12, %rdx
callq 0x40dfba
leaq 0xd0(%rsp), %rdi
callq 0x410354
leaq 0x78(%rsp), %r12
movl $0x39, %edx
movq %r12, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x40bd54
movq $0x6527c0, %rsi         # imm = 0x6527C0
movq %r15, %rdi
movq %r12, %rdx
callq 0x40dfba
leaq 0x78(%rsp), %rdi
callq 0x410354
movq (%r15), %rax
movq %r15, %rdi
callq *0x20(%rax)
movq (%rbx), %rax
movq %rbx, %rdi
callq *(%rax)
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
jmp 0x406bc7
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0x410354
jmp 0x406bf6
movq %rax, %rbx
jmp 0x406bec
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x406bec
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x20(%rsp), %rdi
callq 0x40512a
movq %rbx, %rdi
callq 0x4d11b0