// File: /workspace/github_cpp_makefile_star2_O3/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 0x24bd71(%rip), %rdx    # 0x652740
jne 0x406b7d
movq %rdi, %r14
testq %rdx, %rdx
je 0x4069f8
movq 0x24bd54(%rip), %rsi    # 0x652738
movq 0x90(%rbx), %rdi
callq 0x401090
testl %eax, %eax
jne 0x406b7d
movq $0x653c40, %rdi         # imm = 0x653C40
leaq 0x1c768b(%rip), %rsi    # 0x5ce091
movl $0x4, %edx
callq 0x490910
movq (%r14), %rax
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq *0x8(%rax)
leaq 0x58(%rsp), %rdi
leaq 0x1c7809(%rip), %rsi    # 0x5ce233
callq 0x4a24f0
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x406a56
movq %rsi, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x406a61
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq %r12, %rsi
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq $0x653c40, %rdi         # imm = 0x653C40
callq 0x490910
movq %rax, %r15
leaq 0x1c761c(%rip), %rsi    # 0x5ce0ab
movl $0x4, %edx
movq %rax, %rdi
callq 0x490910
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x471a60
movsbl %al, %esi
movq %r15, %rdi
callq 0x490410
movq %rax, %rdi
callq 0x48f9e0
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x406ad9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x426e30
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x406af4
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x426e30
leaq 0x20(%rsp), %rdi
callq 0x410332
movq 0x50(%rbx), %r15
leaq 0xd0(%rsp), %r12
movl $0x41, %edx
movq %r12, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x40bcd8
movq $0x652768, %rsi         # imm = 0x652768
movq %r15, %rdi
movq %r12, %rdx
callq 0x40ded4
leaq 0xd0(%rsp), %rdi
callq 0x410332
leaq 0x78(%rsp), %r12
movl $0x39, %edx
movq %r12, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x40bcd8
movq $0x6527c0, %rsi         # imm = 0x6527C0
movq %r15, %rdi
movq %r12, %rdx
callq 0x40ded4
leaq 0x78(%rsp), %rdi
callq 0x410332
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 0x406ba9
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0x410332
jmp 0x406bd8
movq %rax, %rbx
jmp 0x406bce
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x406bce
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x426e30
leaq 0x20(%rsp), %rdi
callq 0x40512c
movq %rbx, %rdi
callq 0x4d10c0