// File: /workspace/github_cpp_makefile_star2_O1/gvaumour[P]cache-simulator/src/SimpleFeatureTable.cc
// Function: SimpleFeatureTable::SimpleFeatureTable(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool)
SimpleFeatureTable::SimpleFeatureTable( int size, string name, bool isBP)
{
	m_size = size;
	m_name = name;
	m_counter_size = simu_parameters.perceptron_counter_size;
	
	m_table.resize(size);
	for(int i = 0 ; i < m_size; i++)
		m_table[i] = new SimpleFeatureEntry();

	if(simu_parameters.perceptron_drawFeatureMaps)
	{
		stats_heatmap_counter = vector<vector<int> >(m_size, vector<int>());
		stats_counter_buffer = vector<vector<int> >(m_size, vector<int>());
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %esi, %ebp
movq %rdi, %r14
leaq 0x8(%rdi), %rbx
leaq 0x18(%rdi), %rax
movq %rax, 0x28(%rsp)
movq %rax, 0x8(%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
movb $0x0, 0x18(%rdi)
leaq 0x30(%rdi), %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rdi)
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x50(%rdi)
movups %xmm0, 0x60(%rdi)
movq %rax, 0x70(%rdi)
movl %esi, (%rdi)
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x51a0
leaq 0x1beb3(%rip), %r13     # 0x45f50
movl 0x1b0(%r13), %eax
movl %eax, 0x28(%r14)
movslq %ebp, %rsi
movq %r15, %rdi
callq 0x2a928
movslq (%r14), %r12
testq %r12, %r12
jle 0x2a0e0
xorl %ebp, %ebp
movl $0x8, %edi
callq 0x52e0
movl $0x0, 0x4(%rax)
movb $0x0, (%rax)
movq (%r15), %rcx
movq %rax, (%rcx,%rbp,8)
incq %rbp
cmpq %rbp, %r12
jne 0x2a0bd
cmpb $0x0, 0x1cc(%r13)
je 0x2a202
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdx
movaps %xmm0, (%rdx)
movq $0x0, 0x10(%rdx)
leaq 0x30(%rsp), %rdi
leaq 0xf(%rsp), %rcx
movq %r12, %rsi
callq 0xc5b2
leaq 0x50(%rsp), %rdi
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movups 0x48(%r14), %xmm0
movq 0x58(%r14), %rax
leaq 0x30(%rsp), %r12
movaps (%r12), %xmm1
movups %xmm1, 0x48(%r14)
movq 0x10(%r12), %rcx
movq %rcx, 0x58(%r14)
movq 0x10(%rdi), %rcx
movq %rax, 0x10(%rdi)
movaps (%rdi), %xmm1
movaps %xmm0, (%rdi)
movaps %xmm1, (%r12)
movq %rcx, 0x10(%r12)
callq 0xc642
movq %r12, %rdi
callq 0xc642
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2a17b
callq 0x52a0
movslq (%r14), %rsi
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdx
movaps %xmm0, (%rdx)
movq $0x0, 0x10(%rdx)
leaq 0x30(%rsp), %rdi
leaq 0xf(%rsp), %rcx
callq 0xc5b2
leaq 0x50(%rsp), %rdi
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movups 0x60(%r14), %xmm0
movq 0x70(%r14), %rax
leaq 0x30(%rsp), %rbx
movaps (%rbx), %xmm1
movups %xmm1, 0x60(%r14)
movq 0x10(%rbx), %rcx
movq %rcx, 0x70(%r14)
movq 0x10(%rdi), %rcx
movq %rax, 0x10(%rdi)
movaps (%rdi), %xmm1
movaps %xmm0, (%rdi)
movaps %xmm1, (%rbx)
movq %rcx, 0x10(%rbx)
callq 0xc642
movq %rbx, %rdi
callq 0xc642
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2a202
callq 0x52a0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2a213
movq %rax, %r12
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2a22c
callq 0x52a0
jmp 0x2a22c
jmp 0x2a229
movq %rax, %r12
leaq 0x48(%r14), %rbp
addq $0x60, %r14
movq %r14, %rdi
callq 0xc642
movq %rbp, %rdi
callq 0xc642
movq (%r15), %rdi
testq %rdi, %rdi
je 0x2a251
callq 0x52a0
movq (%rbx), %rdi
cmpq 0x28(%rsp), %rdi
je 0x2a260
callq 0x52a0
movq %r12, %rdi
callq 0x55a0