// File: enbock[P]Warp10Server/warp10server/src/WebService.cpp
// Function: Warp10::WebService::WebService(u::Network::Manager*, u::String, long)
WebService::WebService(Manager* manager, String address, int64 port) : Object()
{
	_manager = manager;
	_address = address;
	_port   = port;

	_builder.setupListener(_address, _port);
	_builder.networkType = type;

	_manager->addEventListener(
		u::Network::Event::NETWORK_REGISTERED,
		Callback(this, cb_cast(&WebService::onNetworkRegistered))
	);
	_manager->addEventListener(
		u::Network::Event::LISTENER_CREATED,
		Callback(this, cb_cast(&WebService::onListenerCreated))
	);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movq %rdx, -0x170(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x168(%rbp)
callq 0x4174c0
movq -0x168(%rbp), %rdi
leaq 0x254a38(%rip), %rax    # 0x65cd78
movq %rax, (%rdi)
addq $0x40, %rdi
movq %rdi, -0x160(%rbp)
callq 0x4095f0
jmp 0x408355
movq -0x168(%rbp), %rdi
addq $0x130, %rdi            # imm = 0x130
movq %rdi, -0x178(%rbp)
callq 0x417c00
jmp 0x408371
movq -0x170(%rbp), %rsi
movq -0x168(%rbp), %rdi
movq -0x10(%rbp), %rax
movq %rax, 0x38(%rdi)
addq $0x130, %rdi            # imm = 0x130
callq 0x4180d0
jmp 0x408395
movq -0x168(%rbp), %rsi
movq -0x20(%rbp), %rax
movq %rax, 0x188(%rsi)
movq %rsi, %rax
addq $0x40, %rax
movq %rax, -0x180(%rbp)
addq $0x130, %rsi            # imm = 0x130
leaq -0x88(%rbp), %rdi
callq 0x417f20
jmp 0x4083ca
movq -0x180(%rbp), %rdi
movq -0x168(%rbp), %rax
movq 0x188(%rax), %rdx
leaq -0x88(%rbp), %rsi
callq 0x409c30
jmp 0x4083ed
leaq -0x88(%rbp), %rdi
callq 0x405650
movq -0x168(%rbp), %rdi
addq $0xd8, %rdi
leaq 0x25f312(%rip), %rsi    # 0x667720
callq 0x4180d0
jmp 0x408415
movq -0x168(%rbp), %rsi
movq 0x38(%rsi), %rax
movq %rax, -0x188(%rbp)
movq $0x0, -0xe8(%rbp)
movq $0x29, -0xf0(%rbp)
movq -0xf0(%rbp), %rdx
movq -0xe8(%rbp), %rcx
xorl %eax, %eax
movl %eax, %r8d
leaq -0xe0(%rbp), %rdi
callq 0x410a10
jmp 0x40845e
movq -0x188(%rbp), %rdi
movq $0x667b78, %rsi         # imm = 0x667B78
leaq -0xe0(%rbp), %rdx
callq 0x412620
jmp 0x40847a
leaq -0xe0(%rbp), %rdi
callq 0x407e40
movq -0x168(%rbp), %rsi
movq 0x38(%rsi), %rax
movq %rax, -0x190(%rbp)
movq $0x0, -0x150(%rbp)
movq $0x31, -0x158(%rbp)
movq -0x158(%rbp), %rdx
movq -0x150(%rbp), %rcx
xorl %eax, %eax
movl %eax, %r8d
leaq -0x148(%rbp), %rdi
callq 0x410a10
jmp 0x4084cf
movq -0x190(%rbp), %rdi
movq $0x667bd0, %rsi         # imm = 0x667BD0
leaq -0x148(%rbp), %rdx
callq 0x412620
jmp 0x4084eb
leaq -0x148(%rbp), %rdi
callq 0x407e40
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x408591
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x408585
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x408579
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x405650
jmp 0x408579
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x407e40
jmp 0x408579
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x148(%rbp), %rdi
callq 0x407e40
movq -0x178(%rbp), %rdi
callq 0x405650
movq -0x160(%rbp), %rdi
callq 0x409690
movq -0x168(%rbp), %rdi
callq 0x4175e0
movq -0x28(%rbp), %rdi
callq 0x4deb40
nopw %cs:(%rax,%rax)