// File: /workspace/github_cpp_makefile_star2_O1/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 0x40bd54
movq $0x652870, %rsi         # imm = 0x652870
movq %rbx, %rdi
movq %r12, %rdx
callq 0x40e05e
leaq 0x180(%rsp), %rdi
callq 0x410354
movq $0x653c40, %rdi         # imm = 0x653C40
leaq 0x1c7200(%rip), %rsi    # 0x5ce091
movl $0x4, %edx
callq 0x490a00
movq (%r15), %rax
leaq 0xc8(%rsp), %rdi
movq %r15, %rsi
callq *0x8(%rax)
leaq 0x100(%rsp), %rdi
leaq 0x1c739d(%rip), %rsi    # 0x5ce258
callq 0x4a25e0
leaq 0x18(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x406ee7
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x406eed
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 0x1c7368(%rip), %rsi    # 0x5ce278
callq 0x4a25e0
leaq 0x38(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x406f3c
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x406f42
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 0x4a24a0
leaq 0x58(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x406f98
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x406f9e
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 0x1c72c1(%rip), %rsi    # 0x5ce282
callq 0x4a25e0
leaq 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x406ff7
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x406fff
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 0x4a24a0
leaq 0xb8(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x407061
movq %rdx, 0xa8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb8(%rsp)
jmp 0x407069
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 0x1c71f1(%rip), %rsi    # 0x5ce280
callq 0x4a25e0
leaq 0x78(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4070bb
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x4070c2
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 0x490a00
movq %rax, %r15
leaq 0x1c6fb1(%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 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x407145
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x426f20
movq 0xa8(%rsp), %rdi
cmpq %r13, %rdi
je 0x407162
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x426f20
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x40717f
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x426f20
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
leaq 0x18(%rsp), %r15
je 0x4071a0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x426f20
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x4071bc
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x426f20
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4071d3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4071f4
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0xc8(%rsp), %rdi
callq 0x410354
movq (%r14), %rax
movq %r14, %rdi
callq *(%rax)
movq $0x652c08, %rsi         # imm = 0x652C08
leaq 0xc8(%rsp), %r14
movq %r14, %rdi
callq 0x4168dc
movq %rbx, %rdi
movq %r14, %rsi
callq 0x40e18e
leaq 0xc8(%rsp), %rdi
callq 0x4169fc
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 0x4169fc
jmp 0x407353
movq %rax, %rbx
jmp 0x4072b8
movq %rax, %rbx
jmp 0x4072d5
movq %rax, %rbx
jmp 0x4072f2
movq %rax, %rbx
jmp 0x40730e
movq %rax, %rbx
jmp 0x40732a
movq %rax, %rbx
jmp 0x407346
movq %rax, %rbx
leaq 0x180(%rsp), %rdi
callq 0x410354
jmp 0x407353
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4072b8
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x426f20
movq 0xa8(%rsp), %rdi
cmpq %r13, %rdi
je 0x4072d5
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x426f20
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x4072f2
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x426f20
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x40730e
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x426f20
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x40732a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x426f20
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x407346
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x426f20
leaq 0xc8(%rsp), %rdi
callq 0x40512a
movq %rbx, %rdi
callq 0x4d11b0
nop