// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/baseAccelSim.cc
// Function: baseAccelSim::read_file_input_network_packets(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void baseAccelSim::read_file_input_network_packets(string inputNetworkPacketsFileName)
{
	packetArr = new Packet*[total_operands];
	for(uint8_t i=0; i < total_operands; i++)
    packetArr[i] = new Packet[size_packetArr[i]];

	uint16_t it=0;
	ifstream inFile(inputNetworkPacketsFileName.c_str());
	if(!inFile)
	{
		cout << "Cannot open and read file: " << inputNetworkPacketsFileName.c_str() << endl;
		exit (EXIT_FAILURE);
	}

	string line;
 	while (getline(inFile, line)) {
		istringstream tokenStream(line);
		string token1, token2, token3, token4;
		tokenStream >> token1 >> token2 >> token3 >> token4;
		uint8_t		operand 	= stoul(token1);
		uint16_t 	idx				= stoul(token2);
		uint8_t 	rowTag 		= stoul(token3);
		uint8_t		colTag 		= stoul(token4);

		packetArr[operand][idx].setData(0);
		packetArr[operand][idx].setRowTag(rowTag);
		packetArr[operand][idx].setColTag(colTag);
	}
	inFile.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x448, %rsp            # imm = 0x448
movq %rsi, %rbx
movzbl 0x201322(%rip), %r12d   # 0x60b556
leal (,%r12,8), %edi
callq 0x418d20
movq %rax, 0x2013b0(%rip)    # 0x60b5f8
testl %r12d, %r12d
je 0x40a298
xorl %r13d, %r13d
movq 0x201391(%rip), %rax    # 0x60b5e8
movzwl (%rax,%r13,2), %ebp
leal (,%rbp,4), %r14d
leaq 0x8(%r14), %rdi
callq 0x418d20
leaq 0x8(%rax), %r15
movq %rbp, (%rax)
testl %ebp, %ebp
je 0x40a285
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x401088
movq 0x20136c(%rip), %rax    # 0x60b5f8
movq %r15, (%rax,%r13,8)
incq %r13
cmpq %r13, %r12
jne 0x40a250
movq (%rbx), %rsi
leaq 0x240(%rsp), %rbp
movq %rbp, %rdi
movl $0x8, %edx
callq 0x461750
movq (%rbp), %rax
movq -0x18(%rax), %rcx
testb $0x5, 0x260(%rsp,%rcx)
jne 0x40a66e
leaq 0xa8(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
leaq 0x68(%rsp), %rbx
leaq 0x48(%rsp), %r15
leaq 0x28(%rsp), %r12
leaq 0x98(%rsp), %r14
leaq 0xc0(%rsp), %r13
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x465f00
movsbl %al, %edx
movq %rbp, %rdi
movq %r14, %rsi
callq 0x41aa00
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x40a5bd
movq %r13, %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0x48cfb0
movq %rbx, 0x58(%rsp)
xorl %ecx, %ecx
movq %rcx, 0x60(%rsp)
movb %cl, 0x68(%rsp)
movq %r15, 0x38(%rsp)
movq %rcx, 0x40(%rsp)
movb %cl, 0x48(%rsp)
movq %r12, 0x18(%rsp)
movq %rcx, 0x20(%rsp)
movb %cl, 0x28(%rsp)
leaq 0x88(%rsp), %rax
movq %rax, 0x78(%rsp)
movq %rcx, 0x80(%rsp)
movb %cl, 0x88(%rsp)
movq %r13, %rdi
leaq 0x58(%rsp), %rsi
callq 0x41a680
movq %rax, %rdi
leaq 0x38(%rsp), %rsi
callq 0x41a680
movq %rax, %rdi
leaq 0x18(%rsp), %rsi
callq 0x41a680
movq %rax, %rdi
leaq 0x78(%rsp), %rsi
callq 0x41a680
movq 0x58(%rsp), %r14
callq 0x4c85e0
movq %rax, %r13
movl (%rax), %ebx
movl $0x0, (%rax)
movq %r14, %rdi
leaq 0x8(%rsp), %rsi
movl $0xa, %edx
callq 0x4df260
cmpq %r14, 0x8(%rsp)
je 0x40a626
movl (%r13), %r12d
testl %r12d, %r12d
movq %rax, 0xb8(%rsp)
je 0x40a407
cmpl $0x22, %r12d
jne 0x40a40e
jmp 0x40a63e
movl %ebx, (%r13)
movl %ebx, %r12d
movq %rbp, %r14
movq 0x38(%rsp), %r15
movl $0x0, (%r13)
movq %r15, %rdi
leaq 0x8(%rsp), %rsi
movl $0xa, %edx
callq 0x4df260
cmpq %r15, 0x8(%rsp)
je 0x40a632
movl (%r13), %ebp
testl %ebp, %ebp
je 0x40a44d
cmpl $0x22, %ebp
jne 0x40a454
jmp 0x40a656
movl %r12d, (%r13)
movl %r12d, %ebp
movq %rax, %rbx
movq 0x18(%rsp), %r12
movl $0x0, (%r13)
movq %r12, %rdi
leaq 0x8(%rsp), %rsi
movl $0xa, %edx
callq 0x4df260
cmpq %r12, 0x8(%rsp)
je 0x40a60e
movq %rax, %r15
movl (%r13), %eax
testl %eax, %eax
je 0x40a49a
movl %eax, 0x14(%rsp)
cmpl $0x22, %eax
jne 0x40a4a2
jmp 0x40a64a
movl %ebp, (%r13)
movl %ebp, 0x14(%rsp)
movq 0x78(%rsp), %r12
movl $0x0, (%r13)
movq %r12, %rdi
leaq 0x8(%rsp), %rsi
movl $0xa, %edx
callq 0x4df260
cmpq %r12, 0x8(%rsp)
je 0x40a61a
movl (%r13), %ecx
testl %ecx, %ecx
leaq 0x28(%rsp), %r12
movq %r14, %rbp
je 0x40a4e6
cmpl $0x22, %ecx
jne 0x40a4ee
jmp 0x40a662
movl 0x14(%rsp), %ecx
movl %ecx, (%r13)
movq 0x201103(%rip), %rcx    # 0x60b5f8
movzbl 0xb8(%rsp), %edx
movq (%rcx,%rdx,8), %rcx
movzwl %bx, %edx
movw $0x0, 0x2(%rcx,%rdx,4)
movb %r15b, (%rcx,%rdx,4)
movb %al, 0x1(%rcx,%rdx,4)
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x40a535
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x4177e0
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
leaq 0x68(%rsp), %rbx
leaq 0x48(%rsp), %r15
leaq 0x98(%rsp), %r14
leaq 0xc0(%rsp), %r13
je 0x40a566
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x4177e0
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0x40a57d
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x4177e0
movq 0x58(%rsp), %rdi
cmpq %rbx, %rdi
je 0x40a594
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x4177e0
movq %r13, %rdi
movq $0x606328, %rsi         # imm = 0x606328
callq 0x48d260
leaq 0x138(%rsp), %rdi
callq 0x467320
movq 0x240(%rsp), %rax
jmp 0x40a2fc
leaq 0x240(%rsp), %rdi
callq 0x461d00
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x40a5ef
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x4177e0
leaq 0x240(%rsp), %rdi
callq 0x4620b0
addq $0x448, %rsp            # imm = 0x448
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x18b3b6(%rip), %rdi    # 0x5959cb
callq 0x402b51
leaq 0x18b3aa(%rip), %rdi    # 0x5959cb
callq 0x402b51
leaq 0x18b39e(%rip), %rdi    # 0x5959cb
callq 0x402b51
leaq 0x18b392(%rip), %rdi    # 0x5959cb
callq 0x402b51
leaq 0x18b386(%rip), %rdi    # 0x5959cb
callq 0x402c01
leaq 0x18b37a(%rip), %rdi    # 0x5959cb
callq 0x402c01
leaq 0x18b36e(%rip), %rdi    # 0x5959cb
callq 0x402c01
leaq 0x18b362(%rip), %rdi    # 0x5959cb
callq 0x402c01
movq $0x60c900, %rdi         # imm = 0x60C900
leaq 0x1899a4(%rip), %rsi    # 0x594020
movl $0x1b, %edx
callq 0x484db0
movq (%rbx), %rsi
movq $0x60c900, %rdi         # imm = 0x60C900
callq 0x4852e0
movq %rax, %rdi
callq 0x484bc0
movl $0x1, %edi
callq 0x4def10
movq %rax, %r14
jmp 0x40a7be
jmp 0x40a706
jmp 0x40a706
movq %rax, %r14
cmpl $0x0, (%r13)
jne 0x40a6f5
movl %r12d, (%r13)
jmp 0x40a6f5
movq %rax, %r14
cmpl $0x0, (%r13)
jne 0x40a6f5
movl 0x14(%rsp), %eax
movl %eax, (%r13)
jmp 0x40a6f5
movq %rax, %r14
cmpl $0x0, (%r13)
jne 0x40a6f5
movl %ebx, (%r13)
jmp 0x40a6f5
movq %rax, %r14
cmpl $0x0, (%r13)
jne 0x40a6f5
movl %ebp, (%r13)
leaq 0x68(%rsp), %rbx
leaq 0x48(%rsp), %r15
leaq 0x28(%rsp), %r12
jmp 0x40a711
movq %rax, %r14
jmp 0x40a799
movq %rax, %r14
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x40a733
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x4177e0
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x40a74a
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x4177e0
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0x40a761
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x4177e0
movq 0x58(%rsp), %rdi
cmpq %rbx, %rdi
je 0x40a778
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x4177e0
movq $0x606328, %rsi         # imm = 0x606328
leaq 0xc0(%rsp), %rdi
callq 0x48d260
leaq 0x138(%rsp), %rdi
callq 0x467320
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x40a7be
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x4177e0
leaq 0x240(%rsp), %rdi
callq 0x4620b0
movq %r14, %rdi
callq 0x4c34a0
nop