// File: /workspace/github_cpp_makefile_star2_O3/hugosantos[P]dbeacon/dbeacon.cpp
// Function: getSource(address const&, char const*, unsigned long, unsigned long, bool)
beaconSource &getSource(const address &baddr, const char *name, uint64_t now, uint64_t recvdts, bool rx_local) {
	Sources::iterator i = sources.find(baddr);
	if (i != sources.end()) {
		i->second.lastevent = now;
		if (rx_local)
			i->second.lastlocalevent = now;
		return i->second;
	}

	beaconSource &src = sources[baddr];

	if (verbose) {
		char tmp[64];

		if (name)
			info("Adding source %s [%s]", baddr.to_string(tmp, sizeof(tmp)), name);
		else
			info("Adding source %s", baddr.to_string(tmp, sizeof(tmp)));
	}

	if (name)
		src.setName(name);

	src.creation = now;
	src.lastevent = now;
	if (rx_local)
		src.lastlocalevent = now;

	if (IsSSMEnabled())
		CountSSMJoin(ssmProbeAddr, baddr);

	return src;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movl %r8d, %ebp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
leaq 0xc820(%rip), %rdi      # 0x12458
movq %r14, %rsi
callq 0x9336
movq %rax, %rbx
leaq 0xc816(%rip), %rax      # 0x12460
cmpq %rax, %rbx
je 0x5c7e
movq %r15, 0x130(%rbx)
testb %bpl, %bpl
je 0x5c62
movq %r15, 0x138(%rbx)
addq $0xa0, %rbx
movq %rbx, %rax
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc7d3(%rip), %rdi      # 0x12458
movq %r14, %rsi
callq 0x7aba
movq %rax, %rbx
cmpl $0x0, 0xc8a1(%rip)      # 0x12538
je 0x5cdc
leaq 0x30(%rsp), %rsi
movl $0x40, %edx
movq %r14, %rdi
movl $0x1, %ecx
callq 0xa4ca
testq %r12, %r12
je 0x5ccb
leaq 0x7097(%rip), %rdi      # 0xcd53
movq %rax, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x40b4
jmp 0x5cdc
leaq 0x7097(%rip), %rdi      # 0xcd69
movq %rax, %rsi
xorl %eax, %eax
callq 0x40b4
testq %r12, %r12
je 0x5d35
leaq 0x40(%rsp), %r13
movq %r13, -0x10(%r13)
movq %r12, %rdi
callq 0x3180
leaq (%rax,%r12), %rdx
leaq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0x9698
movq %rbx, %rdi
addq $0x290, %rdi            # imm = 0x290
leaq 0x30(%rsp), %rsi
callq 0x31e0
movb $0x1, 0x358(%rbx)
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x5d35
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x33d0
movq %r15, 0x80(%rbx)
movq %r15, 0x90(%rbx)
testb %bpl, %bpl
je 0x5d4f
movq %r15, 0x98(%rbx)
cmpl $0x0, 0xcb02(%rip)      # 0x12858
je 0x5c69
leaq 0x120(%rsp), %r15
movq %r15, %rdi
callq 0xa23c
movq %r14, %rdi
callq 0x9c38
movq %r15, %rdi
movl %eax, %esi
callq 0xa12c
movq %r15, %rdi
movq %r14, %rsi
callq 0xa5f4
movq %r15, %rdi
xorl %esi, %esi
callq 0xa492
leaq 0xcaf6(%rip), %rdi      # 0x12890
leaq 0xc867(%rip), %rsi      # 0x12608
callq 0x84e6
movq %rax, %r12
leaq 0xcae8(%rip), %rax      # 0x12898
cmpq %rax, %r12
jne 0x5ec8
cmpl $0x0, 0xc778(%rip)      # 0x12538
je 0x5df1
leaq 0xc83f(%rip), %rdi      # 0x12608
leaq 0xe0(%rsp), %rsi
movl $0x40, %edx
movl $0x1, %ecx
callq 0xa4ca
leaq 0x75de(%rip), %rdi      # 0xd3c5
movq %rax, %rsi
xorl %eax, %eax
callq 0x40b4
leaq 0x8(%rsp), %r15
xorl %eax, %eax
movq %rax, 0x8(%r15)
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%r15)
movq %r15, 0x10(%r15)
movq %r15, 0x18(%r15)
movq %rax, 0x20(%r15)
leaq 0xc7f1(%rip), %rsi      # 0x12608
leaq 0x30(%rsp), %rdi
callq 0xa286
leaq 0xb8(%rsp), %rcx
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x5e6f
leaq 0x28(%rsp), %rax
movl -0x20(%rax), %edx
movq %rsi, 0xc0(%rsp)
movq -0x10(%rax), %r8
movq -0x8(%rax), %rdi
movq %rcx, 0x8(%rsi)
movq (%rax), %rcx
movq %rcx, 0xd8(%rsp)
movq $0x0, -0x18(%rax)
movq %r15, -0x10(%rax)
movq %r15, -0x8(%rax)
movq %r8, %rcx
jmp 0x5e84
leaq 0xd8(%rsp), %rax
movq $0x0, -0x18(%rax)
xorl %edx, %edx
movq %rcx, %rdi
leaq 0x30(%rsp), %rsi
movq %rcx, 0x98(%rsi)
movq %rdi, 0xa0(%rsi)
movq $0x0, (%rax)
movl %edx, 0x88(%rsi)
leaq 0xc9e5(%rip), %rdi      # 0x12890
callq 0x854a
movq %rax, %r12
leaq 0xb0(%rsp), %rdi
callq 0x843a
movq %rsp, %rdi
callq 0x843a
leaq 0xa0(%r12), %r15
leaq 0x120(%rsp), %rsi
movq %r15, %rdi
callq 0x87a8
movq %rax, %r13
addq $0xa8, %r12
cmpq %r12, %rax
jne 0x607a
cmpl $0x0, 0xc63e(%rip)      # 0x12538
je 0x5f50
leaq 0x120(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
movl $0x40, %edx
movl $0x1, %ecx
callq 0xa4ca
movq %rax, %r12
leaq 0xc6e3(%rip), %rdi      # 0x12608
leaq 0x1a0(%rsp), %rsi
movl $0x40, %edx
movl $0x1, %ecx
callq 0xa4ca
leaq 0x749b(%rip), %rdi      # 0xd3de
movq %r12, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x40b4
movl 0xc902(%rip), %edi      # 0x12858
leaq 0xc6ab(%rip), %rsi      # 0x12608
leaq 0x120(%rsp), %rdx
callq 0x9c4d
testl %eax, %eax
js 0x5ff6
leaq 0x8(%rsp), %r12
xorl %eax, %eax
movq %rax, 0x8(%r12)
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%r12)
movq %r12, 0x10(%r12)
movq %r12, 0x18(%r12)
movq %rax, 0x20(%r12)
leaq 0x30(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0xa286
leaq 0xb8(%rsp), %rcx
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x6025
leaq 0x28(%rsp), %rax
movl -0x20(%rax), %edx
movq %rsi, 0xc0(%rsp)
movq -0x10(%rax), %r8
movq -0x8(%rax), %rdi
movq %rcx, 0x8(%rsi)
movq (%rax), %rcx
movq %rcx, 0xd8(%rsp)
movq $0x0, -0x18(%rax)
movq %r12, -0x10(%rax)
movq %r12, -0x8(%rax)
movq %r8, %rcx
jmp 0x603a
cmpl $0x0, 0xc53b(%rip)      # 0x12538
je 0x5c69
callq 0x3030
movl (%rax), %edi
callq 0x3140
leaq 0x73d9(%rip), %rdi      # 0xd3ef
movq %rax, %rsi
xorl %eax, %eax
callq 0x40b4
jmp 0x5c69
leaq 0xd8(%rsp), %rax
movq $0x0, -0x18(%rax)
xorl %edx, %edx
movq %rcx, %rdi
leaq 0x30(%rsp), %rsi
movq %rcx, 0x98(%rsi)
movq %rdi, 0xa0(%rsi)
movq $0x0, (%rax)
movl %edx, 0x88(%rsi)
movq %r15, %rdi
callq 0x880c
movq %rax, %r13
leaq 0xb0(%rsp), %rdi
callq 0x8496
movq %rsp, %rdi
callq 0x8496
leaq 0xa0(%r13), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x8a10
addq $0xa8, %r13
cmpq %r13, %rax
jne 0x5c69
cmpl $0x0, 0xc495(%rip)      # 0x12538
je 0x6119
leaq 0xe0(%rsp), %rsi
movl $0x40, %edx
movq %r14, %rdi
movl $0x1, %ecx
callq 0xa4ca
movq %rax, %r12
leaq 0x120(%rsp), %rdi
leaq 0x1a0(%rsp), %rsi
movl $0x40, %edx
movl $0x1, %ecx
callq 0xa4ca
movq %rax, %r13
leaq 0xc51d(%rip), %rdi      # 0x12608
leaq 0x1e0(%rsp), %rsi
movl $0x40, %edx
movl $0x1, %ecx
callq 0xa4ca
leaq 0x72fe(%rip), %rdi      # 0xd407
movq %r12, %rsi
movq %r13, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x40b4
movq %r15, %rdi
movq %r14, %rsi
callq 0x8a74
jmp 0x5c69
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x8496
jmp 0x613e
movq %rax, %rbx
movq %rsp, %rdi
callq 0x8496
jmp 0x6186
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x843a
jmp 0x615d
movq %rax, %rbx
movq %rsp, %rdi
callq 0x843a
jmp 0x6186
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x6186
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x33d0
jmp 0x6186
movq %rax, %rbx
movq %rbx, %rdi
callq 0x35d0