// File: /workspace/github_cpp_makefile_star2_O1/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 0xc7d1(%rip), %rdi      # 0x12458
movq %r14, %rsi
callq 0x93be
movq %rax, %rbx
leaq 0xc7c7(%rip), %rax      # 0x12460
cmpq %rax, %rbx
je 0x5ccd
movq %r15, 0x130(%rbx)
testb %bpl, %bpl
je 0x5cb1
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 0xc784(%rip), %rdi      # 0x12458
movq %r14, %rsi
callq 0x7b30
movq %rax, %rbx
cmpl $0x0, 0xc852(%rip)      # 0x12538
je 0x5d2b
leaq 0x30(%rsp), %rsi
movl $0x40, %edx
movq %r14, %rdi
movl $0x1, %ecx
callq 0xa578
testq %r12, %r12
je 0x5d1a
leaq 0x7048(%rip), %rdi      # 0xcd53
movq %rax, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x40b4
jmp 0x5d2b
leaq 0x7048(%rip), %rdi      # 0xcd69
movq %rax, %rsi
xorl %eax, %eax
callq 0x40b4
testq %r12, %r12
je 0x5d84
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 0x9724
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 0x5d84
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x33d0
movq %r15, 0x80(%rbx)
movq %r15, 0x90(%rbx)
testb %bpl, %bpl
je 0x5d9e
movq %r15, 0x98(%rbx)
cmpl $0x0, 0xcab3(%rip)      # 0x12858
je 0x5cb8
leaq 0x120(%rsp), %r15
movq %r15, %rdi
callq 0xa2ea
movq %r14, %rdi
callq 0x9cce
movq %r15, %rdi
movl %eax, %esi
callq 0xa1da
movq %r15, %rdi
movq %r14, %rsi
callq 0xa6a2
movq %r15, %rdi
xorl %esi, %esi
callq 0xa540
leaq 0xcaa7(%rip), %rdi      # 0x12890
leaq 0xc818(%rip), %rsi      # 0x12608
callq 0x8554
movq %rax, %r12
leaq 0xca99(%rip), %rax      # 0x12898
cmpq %rax, %r12
jne 0x5f1d
cmpl $0x0, 0xc729(%rip)      # 0x12538
je 0x5e40
leaq 0xc7f0(%rip), %rdi      # 0x12608
leaq 0xe0(%rsp), %rsi
movl $0x40, %edx
movl $0x1, %ecx
callq 0xa578
leaq 0x7596(%rip), %rdi      # 0xd3cc
movq %rax, %rsi
xorl %eax, %eax
callq 0x40b4
leaq 0x8(%rsp), %r15
xorps %xmm0, %xmm0
movaps %xmm0, 0x8(%r15)
movaps %xmm0, 0x18(%r15)
movaps %xmm0, -0x8(%r15)
movq %r15, 0x10(%r15)
movq %r15, 0x18(%r15)
movq $0x0, 0x20(%r15)
leaq 0xc79a(%rip), %rsi      # 0x12608
leaq 0x30(%rsp), %rdi
callq 0xa334
leaq 0xb8(%rsp), %rcx
movq 0x10(%rsp), %rdx
testq %rdx, %rdx
je 0x5ece
leaq 0x28(%rsp), %rax
movl -0x20(%rax), %esi
movl %esi, 0xb8(%rsp)
movq %rdx, 0xc0(%rsp)
movups -0x10(%rax), %xmm0
movups %xmm0, 0xc8(%rsp)
movq %rcx, 0x8(%rdx)
movq (%rax), %rcx
movq %rcx, 0xd8(%rsp)
movq $0x0, -0x18(%rax)
movq %r15, -0x10(%rax)
movq %r15, -0x8(%rax)
jmp 0x5eed
leaq 0xd8(%rsp), %rax
movl $0x0, -0x20(%rax)
movq $0x0, -0x18(%rax)
movq %rcx, -0x10(%rax)
movq %rcx, -0x8(%rax)
movq $0x0, (%rax)
leaq 0xc995(%rip), %rdi      # 0x12890
leaq 0x30(%rsp), %rsi
callq 0x85bc
movq %rax, %r12
leaq 0xb0(%rsp), %rdi
callq 0x84a8
movq %rsp, %rdi
callq 0x84a8
leaq 0xa0(%r12), %r15
leaq 0x120(%rsp), %rsi
movq %r15, %rdi
callq 0x8828
movq %rax, %r13
addq $0xa8, %r12
cmpq %r12, %rax
jne 0x60d6
cmpl $0x0, 0xc5e9(%rip)      # 0x12538
je 0x5fa5
leaq 0x120(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
movl $0x40, %edx
movl $0x1, %ecx
callq 0xa578
movq %rax, %r12
leaq 0xc68e(%rip), %rdi      # 0x12608
leaq 0x1a0(%rsp), %rsi
movl $0x40, %edx
movl $0x1, %ecx
callq 0xa578
leaq 0x744d(%rip), %rdi      # 0xd3e5
movq %r12, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x40b4
movl 0xc8ad(%rip), %edi      # 0x12858
leaq 0xc656(%rip), %rsi      # 0x12608
leaq 0x120(%rsp), %rdx
callq 0x9ce3
testl %eax, %eax
js 0x605c
leaq 0x8(%rsp), %r12
xorps %xmm0, %xmm0
movaps %xmm0, 0x8(%r12)
movaps %xmm0, 0x18(%r12)
movaps %xmm0, -0x8(%r12)
movq %r12, 0x10(%r12)
movq %r12, 0x18(%r12)
movq $0x0, 0x20(%r12)
leaq 0x30(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0xa334
leaq 0xb8(%rsp), %rcx
movq 0x10(%rsp), %rdx
testq %rdx, %rdx
je 0x608b
leaq 0x28(%rsp), %rax
movl -0x20(%rax), %esi
movl %esi, 0xb8(%rsp)
movq %rdx, 0xc0(%rsp)
movups -0x10(%rax), %xmm0
movups %xmm0, 0xc8(%rsp)
movq %rcx, 0x8(%rdx)
movq (%rax), %rcx
movq %rcx, 0xd8(%rsp)
movq $0x0, -0x18(%rax)
movq %r12, -0x10(%rax)
movq %r12, -0x8(%rax)
jmp 0x60aa
cmpl $0x0, 0xc4d5(%rip)      # 0x12538
je 0x5cb8
callq 0x3030
movl (%rax), %edi
callq 0x3140
leaq 0x737a(%rip), %rdi      # 0xd3f6
movq %rax, %rsi
xorl %eax, %eax
callq 0x40b4
jmp 0x5cb8
leaq 0xd8(%rsp), %rax
movl $0x0, -0x20(%rax)
movq $0x0, -0x18(%rax)
movq %rcx, -0x10(%rax)
movq %rcx, -0x8(%rax)
movq $0x0, (%rax)
leaq 0x30(%rsp), %rsi
movq %r15, %rdi
callq 0x8890
movq %rax, %r13
leaq 0xb0(%rsp), %rdi
callq 0x8504
movq %rsp, %rdi
callq 0x8504
leaq 0xa0(%r13), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x8a94
addq $0xa8, %r13
cmpq %r13, %rax
jne 0x5cb8
cmpl $0x0, 0xc439(%rip)      # 0x12538
je 0x6175
leaq 0xe0(%rsp), %rsi
movl $0x40, %edx
movq %r14, %rdi
movl $0x1, %ecx
callq 0xa578
movq %rax, %r12
leaq 0x120(%rsp), %rdi
leaq 0x1a0(%rsp), %rsi
movl $0x40, %edx
movl $0x1, %ecx
callq 0xa578
movq %rax, %r13
leaq 0xc4c1(%rip), %rdi      # 0x12608
leaq 0x1e0(%rsp), %rsi
movl $0x40, %edx
movl $0x1, %ecx
callq 0xa578
leaq 0x72a9(%rip), %rdi      # 0xd40e
movq %r12, %rsi
movq %r13, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x40b4
movq %r15, %rdi
movq %r14, %rsi
callq 0x8afc
jmp 0x5cb8
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x8504
jmp 0x619a
movq %rax, %rbx
movq %rsp, %rdi
callq 0x8504
jmp 0x61e2
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x84a8
jmp 0x61b9
movq %rax, %rbx
movq %rsp, %rdi
callq 0x84a8
jmp 0x61e2
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x61e2
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x33d0
jmp 0x61e2
movq %rax, %rbx
movq %rbx, %rdi
callq 0x35d0