// File: /workspace/github_cpp_makefile_star2_O3/enbock[P]Warp10Server/warp10server/src/WebService.cpp
// Function: Warp10::WebService::onRequest(u::Object*)
void WebService::onRequest(Object* arg)
{
	Network::WebEvent* event  = ((Network::WebEvent*)arg);
	WebConnection* connection = ((WebConnection*)event->connection);

	connection->removeEventListener(
		WebEvent::REQUEST,
		Callback(this, cb_cast(&WebService::onRequest))
	);
	
	trace(
		this->className() + "::onRequest: Incoming request: " 
		+ "Method: '" + event->request.method
		+ "'\tResource: '" + event->request.resource + "'"
	);

	event->destroy();

	// DUMMY
	u::Network::Event close(u::Network::Event::CLOSE);
	connection->dispatchEvent(&close);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1d8, %rsp            # imm = 0x1D8
movq %rsi, %r14
movq %rdi, %r15
movq 0x48(%rsi), %rbx
leaq 0x180(%rsp), %r12
movl $0x49, %edx
movq %r12, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x40bcd8
movq $0x652870, %rsi         # imm = 0x652870
movq %rbx, %rdi
movq %r12, %rdx
callq 0x40dfa4
leaq 0x180(%rsp), %rdi
callq 0x410332
movq $0x653c40, %rdi         # imm = 0x653C40
leaq 0x1c721e(%rip), %rsi    # 0x5ce091
movl $0x4, %edx
callq 0x490910
movq (%r15), %rax
leaq 0xc8(%rsp), %rdi
movq %r15, %rsi
callq *0x8(%rax)
leaq 0x100(%rsp), %rdi
leaq 0x1c73bb(%rip), %rsi    # 0x5ce258
callq 0x4a24f0
leaq 0x18(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x406ec9
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x406ecf
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1c7386(%rip), %rsi    # 0x5ce278
callq 0x4a24f0
leaq 0x38(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x406f1e
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x406f24
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0xc0(%r14), %rsi
movq 0xc8(%r14), %rdx
callq 0x4a23b0
leaq 0x58(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x406f7a
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x406f80
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1c72df(%rip), %rsi    # 0x5ce282
callq 0x4a24f0
leaq 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x406fd9
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x406fe1
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x88(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x118(%r14), %rsi
movq 0x120(%r14), %rdx
callq 0x4a23b0
leaq 0xb8(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x407043
movq %rdx, 0xa8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb8(%rsp)
jmp 0x40704b
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0xa8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1c720f(%rip), %rsi    # 0x5ce280
callq 0x4a24f0
leaq 0x78(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x40709d
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x4070a4
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
movq $0x653c40, %rdi         # imm = 0x653C40
callq 0x490910
movq %rax, %r15
leaq 0x1c6fcf(%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 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x407127
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x426e30
movq 0xa8(%rsp), %rdi
cmpq %r13, %rdi
je 0x407144
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x426e30
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x407161
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x426e30
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
leaq 0x18(%rsp), %r15
je 0x407182
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x426e30
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x40719e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x426e30
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4071b5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x426e30
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4071d6
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x426e30
leaq 0xc8(%rsp), %rdi
callq 0x410332
movq (%r14), %rax
movq %r14, %rdi
callq *(%rax)
movq $0x652c08, %rsi         # imm = 0x652C08
leaq 0xc8(%rsp), %r14
movq %r14, %rdi
callq 0x416860
movq %rbx, %rdi
movq %r14, %rsi
callq 0x40e11a
leaq 0xc8(%rsp), %rdi
callq 0x41697a
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x41697a
jmp 0x407335
movq %rax, %rbx
jmp 0x40729a
movq %rax, %rbx
jmp 0x4072b7
movq %rax, %rbx
jmp 0x4072d4
movq %rax, %rbx
jmp 0x4072f0
movq %rax, %rbx
jmp 0x40730c
movq %rax, %rbx
jmp 0x407328
movq %rax, %rbx
leaq 0x180(%rsp), %rdi
callq 0x410332
jmp 0x407335
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x40729a
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x426e30
movq 0xa8(%rsp), %rdi
cmpq %r13, %rdi
je 0x4072b7
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x426e30
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x4072d4
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x426e30
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4072f0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x426e30
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x40730c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x426e30
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x407328
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x426e30
leaq 0xc8(%rsp), %rdi
callq 0x40512c
movq %rbx, %rdi
callq 0x4d10c0
nopl (%rax)