// File: enbock[P]Warp10Server/app/tEvent.cpp
// Function: u::tEvent::onEvent(u::Object*)
void onEvent(Object *arg)
			{
				Event *event = (Event*)arg;
				//trace("onEvent="+event->toString());
				event->destroy();

				static int64 cnt = 0;
				static Mutex cntMutex;
				cntMutex.lock();
				cnt++;
				trace("\n"+int2string(cnt)+"\n\033[A\033[A\033[A");
				cntMutex.unlock();

				if(cnt >= 25000)
				{
					if(cnt == 25000)
					{
						trace("----------------EXIT------------------");
						programExit();
					}
					removeEventListener(Event::COMPLETE, Callback(
						this, cb_cast(&tEvent::onEvent)
					));
					removeEventListener(Event::PROGRESS, Callback(
						this, cb_cast(&tEvent::onEvent2)
					));
				}

				dispatchEvent(new Event(Event::COMPLETE))->destroy();
				dispatchEvent(new Event(Event::PROGRESS))->destroy();
				dispatchEvent(new Event(Event::COMPLETE))->destroy();
			}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1f0, %rsp            # imm = 0x1F0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
movq (%rdi), %rax
callq *(%rax)
cmpb $0x0, 0x21369a(%rip)    # 0x6195c0
jne 0x405f6d
leaq 0x213691(%rip), %rdi    # 0x6195c0
callq 0x414af0
cmpl $0x0, %eax
je 0x405f6d
leaq 0x213648(%rip), %rdi    # 0x619588
callq 0x40d650
jmp 0x405f47
movq $0x40d6b0, %rdi         # imm = 0x40D6B0
leaq 0x213633(%rip), %rsi    # 0x619588
leaq 0x2111ec(%rip), %rdx    # 0x617148
callq 0x4da590
leaq 0x213658(%rip), %rdi    # 0x6195c0
callq 0x414c00
leaq 0x213614(%rip), %rdi    # 0x619588
callq 0x40d7d0
movq 0x213600(%rip), %rax    # 0x619580
addq $0x1, %rax
movq %rax, 0x2135f5(%rip)    # 0x619580
movq $0x61a6a0, %rdi         # imm = 0x61A6A0
leaq 0x1990e0(%rip), %rsi    # 0x59f079
callq 0x47dcd0
movq %rax, -0x1a8(%rbp)
movb $0x0, -0xc1(%rbp)
movb $0x0, -0xc2(%rbp)
movb $0x0, -0xc4(%rbp)
movb $0x1, %al
testb $0x1, %al
jne 0x405fc2
jmp 0x406013
movl 0x2135b8(%rip), %esi    # 0x619580
leaq -0xc0(%rbp), %rdi
callq 0x40dc60
movb $0x1, -0xc1(%rbp)
leaq -0x88(%rbp), %rdx
leaq 0x1a0781(%rip), %rsi    # 0x5a676a
leaq -0x68(%rbp), %rdi
callq 0x405790
jmp 0x405ff4
movb $0x1, -0xc2(%rbp)
leaq 0x1990f4(%rip), %rdx    # 0x59f0f6
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x405740
jmp 0x406011
jmp 0x406048
leaq -0xc3(%rbp), %rdi
movq %rdi, -0x1b0(%rbp)
callq 0x415b00
movq -0x1b0(%rbp), %rdx
movb $0x1, -0xc4(%rbp)
leaq 0x1b8a4f(%rip), %rsi    # 0x5bea8a
leaq -0x48(%rbp), %rdi
callq 0x405e40
jmp 0x406046
jmp 0x406048
movq -0x1a8(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x490550
movq %rax, -0x1b8(%rbp)
jmp 0x406061
movq -0x1b8(%rbp), %rdi
leaq 0x19902c(%rip), %rsi    # 0x59f09b
callq 0x47dcd0
movq %rax, -0x1c0(%rbp)
jmp 0x40607d
movq -0x1c0(%rbp), %rdi
movq $0x47d5b0, %rsi         # imm = 0x47D5B0
callq 0x47c7c0
jmp 0x406092
leaq -0x48(%rbp), %rdi
callq 0x48dbd0
testb $0x1, -0xc4(%rbp)
jne 0x4060a6
jmp 0x4060b2
leaq -0xc3(%rbp), %rdi
callq 0x415b20
testb $0x1, -0xc2(%rbp)
jne 0x4060bd
jmp 0x4060c6
leaq -0x68(%rbp), %rdi
callq 0x48dbd0
testb $0x1, -0xc1(%rbp)
jne 0x4060d1
jmp 0x4060dd
leaq -0xc0(%rbp), %rdi
callq 0x404d10
leaq 0x2134a4(%rip), %rdi    # 0x619588
callq 0x40d740
cmpq $0x61a8, 0x21348c(%rip) # imm = 0x61A8
jl 0x406314
cmpq $0x61a8, 0x21347b(%rip) # imm = 0x61A8
jne 0x4061fc
movq $0x61a6a0, %rdi         # imm = 0x61A6A0
leaq 0x198f60(%rip), %rsi    # 0x59f079
callq 0x47dcd0
movq %rax, %rdi
leaq 0x198fd9(%rip), %rsi    # 0x59f101
callq 0x47dcd0
movq %rax, %rdi
leaq 0x198f64(%rip), %rsi    # 0x59f09b
callq 0x47dcd0
movq %rax, %rdi
movq $0x47d5b0, %rsi         # imm = 0x47D5B0
callq 0x47c7c0
callq 0x404a20
jmp 0x4061fc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq 0x213458(%rip), %rdi    # 0x6195c0
callq 0x414bb0
jmp 0x40643e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x4061e0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x4061ca
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x4061b1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x48dbd0
testb $0x1, -0xc4(%rbp)
jne 0x4061bc
jmp 0x4061c8
leaq -0xc3(%rbp), %rdi
callq 0x415b20
jmp 0x4061ca
testb $0x1, -0xc2(%rbp)
jne 0x4061d5
jmp 0x4061de
leaq -0x68(%rbp), %rdi
callq 0x48dbd0
jmp 0x4061e0
testb $0x1, -0xc1(%rbp)
jne 0x4061eb
jmp 0x4061f7
leaq -0xc0(%rbp), %rdi
callq 0x404d10
jmp 0x40643e
movq -0x1a0(%rbp), %rsi
leaq -0x31a(%rip), %rax      # 0x405ef0
movq %rax, -0x130(%rbp)
movq $0x0, -0x128(%rbp)
movq -0x130(%rbp), %rdx
movq -0x128(%rbp), %rcx
xorl %eax, %eax
movl %eax, %r8d
leaq -0x120(%rbp), %rdi
movq %rdi, -0x1c8(%rbp)
callq 0x407150
movq -0x1a0(%rbp), %rdi
movq -0x1c8(%rbp), %rdx
movq $0x6195d8, %rsi         # imm = 0x6195D8
callq 0x408ed0
jmp 0x40625e
leaq -0x120(%rbp), %rdi
callq 0x406450
movq -0x1a0(%rbp), %rsi
leaq 0x1f8(%rip), %rax       # 0x406470
movq %rax, -0x198(%rbp)
movq $0x0, -0x190(%rbp)
movq -0x198(%rbp), %rdx
movq -0x190(%rbp), %rcx
xorl %eax, %eax
movl %eax, %r8d
leaq -0x188(%rbp), %rdi
movq %rdi, -0x1d0(%rbp)
callq 0x407150
movq -0x1a0(%rbp), %rdi
movq -0x1d0(%rbp), %rdx
movq $0x619630, %rsi         # imm = 0x619630
callq 0x408ed0
jmp 0x4062cc
leaq -0x188(%rbp), %rdi
callq 0x406450
jmp 0x406314
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x120(%rbp), %rdi
callq 0x406450
jmp 0x40643e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x188(%rbp), %rdi
callq 0x406450
jmp 0x40643e
movl $0x48, %edi
callq 0x414cb0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x1d8(%rbp)
movq $0x6195d8, %rsi         # imm = 0x6195D8
callq 0x4077e0
jmp 0x406339
movq -0x1d8(%rbp), %rsi
movq -0x1a0(%rbp), %rdi
callq 0x409000
movq %rax, %rdi
movq (%rdi), %rax
movq (%rax), %rax
callq *%rax
movl $0x48, %edi
callq 0x414cb0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x1e0(%rbp)
movq $0x619630, %rsi         # imm = 0x619630
callq 0x4077e0
jmp 0x40637c
movq -0x1e0(%rbp), %rsi
movq -0x1a0(%rbp), %rdi
callq 0x409000
movq %rax, %rdi
movq (%rdi), %rax
movq (%rax), %rax
callq *%rax
movl $0x48, %edi
callq 0x414cb0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x1e8(%rbp)
movq $0x6195d8, %rsi         # imm = 0x6195D8
callq 0x4077e0
jmp 0x4063bf
movq -0x1e8(%rbp), %rsi
movq -0x1a0(%rbp), %rdi
callq 0x409000
movq %rax, %rdi
movq (%rdi), %rax
callq *(%rax)
addq $0x1f0, %rsp            # imm = 0x1F0
popq %rbp
retq
movq -0x1d8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
movl $0x48, %esi
callq 0x413b20
jmp 0x40643e
movq -0x1e0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
movl $0x48, %esi
callq 0x413b20
jmp 0x40643e
movq -0x1e8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
movl $0x48, %esi
callq 0x413b20
movq -0x20(%rbp), %rdi
callq 0x4be910
nopw (%rax,%rax)