// File: /workspace/github_cpp_makefile_star2_O1/MPSLab-ASU[P]DiRAC/./src/baseAccelSim.cc
// Function: baseAccelSim::read_golden_outputs()
void baseAccelSim::read_golden_outputs()
{
	for(uint8_t op=input_operands; op < total_operands; op++)
	{
		string fileName = dir_data + "golden_op" + std::to_string(int(op)+1) + ".txt";
		ifstream inFile(fileName.c_str());

		if(!inFile)
		{
			cout << "Cannot open and read file: " << fileName.c_str() << endl;
			exit (EXIT_FAILURE);
		}

		for(int i=0; i < size_tensors[op]; i++) {
			inFile >> golden_outputs[op-input_operands][i];
		}
		inFile.close();
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movzbl 0x202361(%rip), %r12d   # 0x60b558
cmpb 0x202358(%rip), %r12b   # 0x60b556
jae 0x4094c4
leaq 0x70(%rsp), %r15
leaq 0x50(%rsp), %rbx
leaq 0x60(%rsp), %r13
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq 0x20253d(%rip), %rsi    # 0x60b760
movq 0x20253e(%rip), %rdx    # 0x60b768
addq %rsi, %rdx
movq %rsp, %r14
movq %r14, %rdi
callq 0x40e204
movq %r14, %rdi
leaq 0x18be1d(%rip), %rsi    # 0x59505f
callq 0x496230
leal 0x1(%r12), %ebp
movl $0x1, %r14d
cmpq $0x9, %r12
jb 0x40929e
movl $0x4, %r14d
movl %ebp, %eax
movl $0xd1b71759, %edx       # imm = 0xD1B71759
cmpl $0x63, %eax
jbe 0x409295
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x40929b
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x40929e
movl %eax, %ecx
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %r14d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x409265
addl $-0x3, %r14d
jmp 0x40929e
addl $-0x2, %r14d
jmp 0x40929e
decl %r14d
movl %r14d, %esi
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x20(%rsp), %rdi
movl $0x2d, %edx
callq 0x4943e0
movq 0x20(%rsp), %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x40e196
movq (%rsp), %rcx
movl $0xf, %esi
leaq 0x10(%rsp), %rax
cmpq %rax, %rcx
je 0x4092e1
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %r8
movq 0x28(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
movq %rbx, %r14
movq %r15, %rbp
jbe 0x409315
movl $0xf, %esi
leaq 0x30(%rsp), %rdi
cmpq %rdi, 0x20(%rsp)
je 0x409310
movq 0x30(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x409324
movq 0x20(%rsp), %rsi
movq %rsp, %rdi
callq 0x4960f0
jmp 0x409332
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x495a70
movq %rbp, 0x60(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x409352
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0x409359
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x68(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq %r13, %rdi
leaq 0x18ce20(%rip), %rsi    # 0x5961a0
callq 0x496230
movq %r14, 0x40(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4093a8
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
jmp 0x4093af
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x48(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x60(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4093de
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x416ca0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x4093fa
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x416ca0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x409415
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x416ca0
movq 0x40(%rsp), %rsi
movq %r13, %rdi
movl $0x8, %edx
callq 0x460c10
movq 0x60(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x80(%rsp,%rax)
jne 0x4094d6
movq 0x20212b(%rip), %rax    # 0x60b570
cmpq $0x0, (%rax,%r12,8)
je 0x40948a
xorl %r14d, %r14d
xorl %ebp, %ebp
movq 0x202110(%rip), %rax    # 0x60b568
movzbl 0x2020f9(%rip), %ecx    # 0x60b558
movl %r12d, %edx
subl %ecx, %edx
movslq %edx, %rcx
movq (%rax,%rcx,8), %rsi
addq %r14, %rsi
movq %r13, %rdi
callq 0x46a610
incq %rbp
movq 0x2020f0(%rip), %rax    # 0x60b570
addq $0x2, %r14
cmpq %rbp, (%rax,%r12,8)
ja 0x409451
movq %r13, %rdi
callq 0x4611c0
movq %r13, %rdi
callq 0x461570
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0x4094b1
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x416ca0
incq %r12
movzbl 0x20209b(%rip), %eax    # 0x60b556
cmpq %rax, %r12
jb 0x409213
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq $0x60c900, %rdi         # imm = 0x60C900
leaq 0x18ab3c(%rip), %rsi    # 0x594020
movl $0x1b, %edx
callq 0x484270
movq 0x40(%rsp), %rsi
movq $0x60c900, %rdi         # imm = 0x60C900
callq 0x4847a0
movq %rax, %rdi
callq 0x484080
movl $0x1, %edi
callq 0x4de3d0
jmp 0x409571
jmp 0x409571
jmp 0x409517
movq %rax, %r14
jmp 0x409557
movq %rax, %r14
jmp 0x40953b
movq %rax, %r14
movq 0x60(%rsp), %rdi
cmpq %rbp, %rdi
je 0x40953b
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x416ca0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x409557
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x416ca0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x409595
movq 0x10(%rsp), %rsi
jmp 0x40958d
movq %rax, %r14
jmp 0x40957e
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0x461570
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0x409595
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x416ca0
movq %r14, %rdi
callq 0x4c2960
nop