// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rdi, %rbx
movq (%rsi), %rax
movq %rsi, %rdi
callq *(%rax)
movb 0x207563(%rip), %al     # 0x60c5c0
testb %al, %al
je 0x405271
leaq 0x20751c(%rip), %rdi    # 0x60c588
callq 0x407cb6
incq 0x207508(%rip)          # 0x60c580
movq $0x60d6a0, %rdi         # imm = 0x60D6A0
leaq 0x190ff3(%rip), %rsi    # 0x596079
callq 0x474850
movq %rax, %r14
movl 0x2074ec(%rip), %esi    # 0x60c580
leaq 0x40(%rsp), %rdi
callq 0x407f86
leaq 0x78(%rsp), %rdx
leaq 0x1982e0(%rip), %rsi    # 0x59d38a
movq %rsp, %rdi
callq 0x404ee4
leaq 0x190fd1(%rip), %rdx    # 0x59608a
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0x404ec5
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x4870d0
leaq 0x190fab(%rip), %rsi    # 0x596085
movq %rax, %rdi
callq 0x474850
movq %rax, %rdi
callq 0x474130
leaq 0x20(%rsp), %rdi
callq 0x484750
movq %rsp, %rdi
callq 0x484750
leaq 0x40(%rsp), %rdi
callq 0x404ab8
leaq 0x20747b(%rip), %rdi    # 0x60c588
callq 0x407c72
cmpq $0x61a8, 0x207463(%rip) # imm = 0x61A8
jl 0x4051df
jne 0x405163
movq $0x60d6a0, %rdi         # imm = 0x60D6A0
leaq 0x190f46(%rip), %rsi    # 0x596079
callq 0x474850
leaq 0x190f56(%rip), %rsi    # 0x596095
movq %rax, %rdi
callq 0x474850
leaq 0x190f37(%rip), %rsi    # 0x596085
movq %rax, %rdi
callq 0x474850
movq %rax, %rdi
callq 0x474130
callq 0x4048f8
leaq -0x128(%rip), %rdx      # 0x405042
leaq 0xf0(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x40561c
movq $0x60c5d8, %rsi         # imm = 0x60C5D8
movq %rbx, %rdi
movq %r14, %rdx
callq 0x406734
leaq 0xf0(%rsp), %rdi
callq 0x407db8
leaq 0x18a(%rip), %rdx       # 0x405332
leaq 0x98(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x40561c
movq $0x60c630, %rsi         # imm = 0x60C630
movq %rbx, %rdi
movq %r14, %rdx
callq 0x406734
leaq 0x98(%rsp), %rdi
callq 0x407db8
pushq $0x48
popq %rdi
callq 0x40b890
movq %rax, %r14
movq $0x60c5d8, %rsi         # imm = 0x60C5D8
movq %rax, %rdi
callq 0x4059b8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x406818
movq (%rax), %rcx
movq %rax, %rdi
callq *(%rcx)
pushq $0x48
popq %rdi
callq 0x40b890
movq %rax, %r14
movq $0x60c630, %rsi         # imm = 0x60C630
movq %rax, %rdi
callq 0x4059b8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x406818
movq (%rax), %rcx
movq %rax, %rdi
callq *(%rcx)
pushq $0x48
popq %rdi
callq 0x40b890
movq %rax, %r14
movq $0x60c5d8, %rsi         # imm = 0x60C5D8
movq %rax, %rdi
callq 0x4059b8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x406818
movq (%rax), %rcx
movq %rax, %rdi
callq *(%rcx)
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r14
retq
leaq 0x207348(%rip), %rdi    # 0x60c5c0
callq 0x40b6d0
testl %eax, %eax
je 0x405065
leaq 0x2072fc(%rip), %rdi    # 0x60c588
callq 0x407be8
movq $0x407c26, %rdi         # imm = 0x407C26
leaq 0x2072e9(%rip), %rsi    # 0x60c588
leaq 0x204ea2(%rip), %rdx    # 0x60a148
callq 0x4d1110
leaq 0x20730e(%rip), %rdi    # 0x60c5c0
callq 0x40b7e0
jmp 0x405065
movq %rax, %rbx
leaq 0x2072fa(%rip), %rdi    # 0x60c5c0
callq 0x40b790
jmp 0x405329
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
jmp 0x4052e5
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x407db8
jmp 0x405329
jmp 0x4052f0
jmp 0x4052f0
movq %rax, %rbx
pushq $0x48
popq %rsi
movq %r14, %rdi
callq 0x40a700
jmp 0x405329
movq %rax, %rbx
jmp 0x405317
movq %rax, %rbx
jmp 0x40531f
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x484750
movq %rsp, %rdi
callq 0x484750
leaq 0x40(%rsp), %rdi
callq 0x404ab8
movq %rbx, %rdi
callq 0x4b5490
nop