// File: fanchenxinok[P]gtest-lcov/myResponsers/responser12.cpp
// Function: responser1::onResponser()
void responser1::onResponser()
{
	while(1){
		pthread_mutex_lock(&mutex);
		pthread_cond_wait(&cond,&mutex);
		switch(eventMsg.eventID)
		{
			case R1_FUN1:
			{
				r1_fun1();
				/* ������Ϣ�������������ؽ��� */
				MSG_INFO msgInfo;
				msgInfo.resType = RES1;
				msgInfo.msg.eventID = L1_FUN1;
				/* ������new �����ڴ�����ΪMY_INFO �ṹ��
				    ����string ��Ա��ֻ����new ���ܵ�����
				    ���캯����*/
				MY_INFO* myinfo = new MY_INFO(); 
				myinfo->name = "fanchenxin";
				myinfo->age = 27;
				myinfo->sex = 'm';
				msgDataPack(msgInfo.msg.msgData, sizeof(MY_INFO), myinfo, -1);
				sendMsgToListener(msgInfo);
				break;
			}
			case R1_FUN2:
			{
				int a, b;
				msgDataUnPack(eventMsg.msgData, sizeof(int), &a,
					sizeof(int), &b, -1);
				int sum = r1_fun2(a, b);
				cout << "(1)The sum = " << sum << endl;

				/* ������Ϣ�������������ؽ��� */
				MSG_INFO msgInfo;
				msgInfo.resType = RES1;
				msgInfo.msg.eventID = L1_FUN2;
				msgDataPack(msgInfo.msg.msgData, sizeof(int), &sum, -1);
				sendMsgToListener(msgInfo);
				break;
			}
			default:
				break;
		}
		
		pthread_mutex_unlock(&mutex);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2f0, %rsp            # imm = 0x2F0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x248(%rbp)
movq -0x248(%rbp), %rdi
addq $0xc0, %rdi
movq %rdi, -0x258(%rbp)
callq 0x21e0
movq -0x258(%rbp), %rsi
movq -0x248(%rbp), %rdi
addq $0x90, %rdi
callq 0x21f0
movq -0x248(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x24c(%rbp)
testl %eax, %eax
je 0x3218
jmp 0x3204
movl -0x24c(%rbp), %eax
subl $0x1, %eax
je 0x3307
jmp 0x3406
movq -0x248(%rbp), %rdi
callq 0x3120
movw $0x0, -0x90(%rbp)
movl $0x0, -0x8c(%rbp)
movl $0x28, %edi
callq 0x2180
movq %rax, %rdi
movq %rdi, -0x260(%rbp)
xorl %esi, %esi
movl $0x28, %edx
callq 0x20c0
movq -0x260(%rbp), %rdi
callq 0x2ca0
movq -0x260(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rdi
leaq 0xf64(%rip), %rsi       # 0x41e3
callq 0x21c0
movq -0x248(%rbp), %rdi
movq -0x98(%rbp), %rax
movl $0x1b, 0x20(%rax)
movq -0x98(%rbp), %rax
movb $0x6d, 0x24(%rax)
leaq -0x90(%rbp), %rsi
addq $0x4, %rsi
addq $0x4, %rsi
movq -0x98(%rbp), %rcx
movl $0x28, %edx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movb $0x0, %al
callq 0x2220
leaq -0x120(%rbp), %rdi
leaq -0x90(%rbp), %rsi
movl $0x88, %edx
callq 0x2110
movq %rsp, %rdi
movl $0x11, %ecx
leaq -0x120(%rbp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movq -0x248(%rbp), %rdi
callq 0x2150
jmp 0x3408
movq -0x248(%rbp), %rdi
movq %rdi, %rsi
addq $0x8, %rsi
addq $0x4, %rsi
movl $0x4, %r8d
leaq -0x124(%rbp), %rcx
leaq -0x128(%rbp), %r9
movq %r8, %rdx
movl $0xffffffff, (%rsp)     # imm = 0xFFFFFFFF
movb $0x0, %al
callq 0x2240
movq -0x248(%rbp), %rdi
movl -0x124(%rbp), %esi
movl -0x128(%rbp), %edx
callq 0x3160
movl %eax, -0x12c(%rbp)
movq 0x3c75(%rip), %rdi      # 0x6fd8
leaq 0xe84(%rip), %rsi       # 0x41ee
callq 0x2170
movq %rax, %rdi
movl -0x12c(%rbp), %esi
callq 0x2230
movq %rax, %rdi
movq 0x3c41(%rip), %rsi      # 0x6fc8
callq 0x21a0
movq -0x248(%rbp), %rdi
movw $0x0, -0x1b4(%rbp)
movl $0x1, -0x1b0(%rbp)
leaq -0x1b4(%rbp), %rsi
addq $0x4, %rsi
addq $0x4, %rsi
movl $0x4, %edx
leaq -0x12c(%rbp), %rcx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movb $0x0, %al
callq 0x2220
leaq -0x240(%rbp), %rdi
leaq -0x1b4(%rbp), %rsi
movl $0x88, %edx
callq 0x2110
movq %rsp, %rdi
movl $0x11, %ecx
leaq -0x240(%rbp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movq -0x248(%rbp), %rdi
callq 0x2150
jmp 0x3408
jmp 0x3408
movq -0x248(%rbp), %rdi
addq $0xc0, %rdi
callq 0x2100
jmp 0x31ba