// File: slafi[P]EventSystem/EventSystem/main.cpp
// Function: callback_1(Events::EventArgs*)
void callback_1(EventArgs* args) {
	cout << "Callback #1 is notified and will show everything..." << endl;

	cout << "Callback #1 =>" << "Event type #" << args->get_event_type() << " triggered on " << args->get_timestamp() << endl;

	map<int, string> _args = *args->get_args();

	cout << "Callback #1 =>" << "Event type id: " << args->get_event_type() << endl;
	for (std::map<int, string>::iterator it = _args.begin(); it != _args.end(); ++it)
	{
		std::cout << "Callback #1 =>" << "Index: " << it->first << ", property: " << it->second << '\n';
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x8(%rbp)
movq 0xa45a(%rip), %rdi      # 0xcfd0
movq %rdi, -0xa0(%rbp)
leaq 0x551b(%rip), %rsi      # 0x809f
callq 0x21d0
movq %rax, %rdi
movq 0xa425(%rip), %rsi      # 0xcfb8
callq 0x2210
movq -0xa0(%rbp), %rdi
leaq 0x552d(%rip), %rsi      # 0x80d3
callq 0x21d0
movq %rax, %rdi
leaq 0x552d(%rip), %rsi      # 0x80e2
callq 0x21d0
movq %rax, -0x98(%rbp)
movq -0x8(%rbp), %rdi
callq 0x7840
movq -0x98(%rbp), %rdi
movl %eax, %esi
callq 0x22e0
movq %rax, %rdi
leaq 0x550d(%rip), %rsi      # 0x80ef
callq 0x21d0
movq %rax, -0x90(%rbp)
movq -0x8(%rbp), %rsi
leaq -0x28(%rbp), %rdi
movq %rdi, -0x88(%rbp)
callq 0x7870
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x21b0
movq %rax, -0x80(%rbp)
jmp 0x2c1b
movq -0x80(%rbp), %rdi
movq 0xa392(%rip), %rsi      # 0xcfb8
callq 0x2210
jmp 0x2c2d
leaq -0x28(%rbp), %rdi
callq 0x2100
movq -0x8(%rbp), %rdi
callq 0x7850
movq %rax, %rsi
leaq -0x68(%rbp), %rdi
callq 0x3280
movq 0xa37e(%rip), %rdi      # 0xcfd0
leaq 0x547a(%rip), %rsi      # 0x80d3
callq 0x21d0
movq %rax, -0xa8(%rbp)
jmp 0x2c67
movq -0xa8(%rbp), %rdi
leaq 0x5489(%rip), %rsi      # 0x80fe
callq 0x21d0
movq %rax, -0xb0(%rbp)
jmp 0x2c83
movq -0x8(%rbp), %rdi
callq 0x7840
movl %eax, -0xb4(%rbp)
jmp 0x2c94
movl -0xb4(%rbp), %esi
movq -0xb0(%rbp), %rdi
callq 0x22e0
movq %rax, -0xc0(%rbp)
jmp 0x2caf
movq -0xc0(%rbp), %rdi
movq 0xa2fb(%rip), %rsi      # 0xcfb8
callq 0x2210
jmp 0x2cc4
leaq -0x68(%rbp), %rdi
callq 0x32b0
movq %rax, -0x70(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x3310
movq %rax, -0x78(%rbp)
leaq -0x70(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x32e0
testb $0x1, %al
jne 0x2cf4
jmp 0x2dde
movq 0xa2d5(%rip), %rdi      # 0xcfd0
leaq 0x53d1(%rip), %rsi      # 0x80d3
callq 0x21d0
movq %rax, -0xc8(%rbp)
jmp 0x2d10
movq -0xc8(%rbp), %rdi
leaq 0x53f0(%rip), %rsi      # 0x810e
callq 0x21d0
movq %rax, -0xd0(%rbp)
jmp 0x2d2c
leaq -0x70(%rbp), %rdi
callq 0x3340
movq -0xd0(%rbp), %rdi
movl (%rax), %esi
callq 0x22e0
movq %rax, -0xd8(%rbp)
jmp 0x2d4c
movq -0xd8(%rbp), %rdi
leaq 0x53bc(%rip), %rsi      # 0x8116
callq 0x21d0
movq %rax, -0xe0(%rbp)
jmp 0x2d68
leaq -0x70(%rbp), %rdi
callq 0x3340
movq -0xe0(%rbp), %rdi
movq %rax, %rsi
addq $0x8, %rsi
callq 0x21b0
movq %rax, -0xe8(%rbp)
jmp 0x2d8d
movq -0xe8(%rbp), %rdi
movl $0xa, %esi
callq 0x2260
jmp 0x2da0
jmp 0x2da2
leaq -0x70(%rbp), %rdi
callq 0x3360
jmp 0x2cd1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x2100
jmp 0x2df0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x3220
jmp 0x2df0
leaq -0x68(%rbp), %rdi
callq 0x3220
addq $0xf0, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x22f0
nopl (%rax)