// File: /workspace/github_cpp_makefile_star2_O3/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 0x20232b(%rip), %r12d   # 0x60b558
cmpb 0x202322(%rip), %r12b   # 0x60b556
jae 0x4094f8
leaq 0x70(%rsp), %r15
leaq 0x50(%rsp), %rbx
leaq 0x60(%rsp), %r13
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq 0x202507(%rip), %rsi    # 0x60b760
movq 0x202508(%rip), %rdx    # 0x60b768
addq %rsi, %rdx
movq %rsp, %r14
movq %r14, %rdi
callq 0x40e292
movq %r14, %rdi
leaq 0x18bde7(%rip), %rsi    # 0x59505f
callq 0x496d70
leal 0x1(%r12), %ebp
movl $0x1, %r14d
cmpq $0x9, %r12
jb 0x4092d4
movl $0x4, %r14d
movl %ebp, %eax
movl $0xd1b71759, %edx       # imm = 0xD1B71759
cmpl $0x63, %eax
jbe 0x4092cb
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x4092d1
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x4092d4
movl %eax, %ecx
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %r14d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x40929b
addl $-0x3, %r14d
jmp 0x4092d4
addl $-0x2, %r14d
jmp 0x4092d4
decl %r14d
movl %r14d, %esi
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x20(%rsp), %rdi
movl $0x2d, %edx
callq 0x494f20
movq 0x20(%rsp), %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x40e224
movq (%rsp), %rcx
movl $0xf, %edi
leaq 0x10(%rsp), %rax
cmpq %rax, %rcx
je 0x409317
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %r8
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
movq %rbx, %r14
movq %r15, %rbp
jbe 0x40934e
movl $0xf, %edi
leaq 0x30(%rsp), %r9
cmpq %r9, %rsi
je 0x409349
movq 0x30(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x409358
movq %rsp, %rdi
callq 0x496c30
jmp 0x409366
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4965b0
movq %rbp, 0x60(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x409386
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0x40938d
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 0x18ce88(%rip), %rsi    # 0x59623c
callq 0x496d70
movq %r14, 0x40(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4093dc
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
jmp 0x4093e3
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 0x409412
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x4177e0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x40942e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4177e0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x409449
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4177e0
movq 0x40(%rsp), %rsi
movq %r13, %rdi
movl $0x8, %edx
callq 0x461750
movq 0x60(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x80(%rsp,%rax)
jne 0x40950a
movq 0x2020f7(%rip), %rax    # 0x60b570
cmpq $0x0, (%rax,%r12,8)
je 0x4094be
xorl %r14d, %r14d
xorl %ebp, %ebp
movq 0x2020dc(%rip), %rax    # 0x60b568
movzbl 0x2020c5(%rip), %ecx    # 0x60b558
movl %r12d, %edx
subl %ecx, %edx
movslq %edx, %rcx
movq (%rax,%rcx,8), %rsi
addq %r14, %rsi
movq %r13, %rdi
callq 0x46b150
incq %rbp
movq 0x2020bc(%rip), %rax    # 0x60b570
addq $0x2, %r14
cmpq %rbp, (%rax,%r12,8)
ja 0x409485
movq %r13, %rdi
callq 0x461d00
movq %r13, %rdi
callq 0x4620b0
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0x4094e5
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x4177e0
incq %r12
movzbl 0x202067(%rip), %eax    # 0x60b556
cmpq %rax, %r12
jb 0x409249
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq $0x60c900, %rdi         # imm = 0x60C900
leaq 0x18ab08(%rip), %rsi    # 0x594020
movl $0x1b, %edx
callq 0x484db0
movq 0x40(%rsp), %rsi
movq $0x60c900, %rdi         # imm = 0x60C900
callq 0x4852e0
movq %rax, %rdi
callq 0x484bc0
movl $0x1, %edi
callq 0x4def10
jmp 0x4095a5
jmp 0x4095a5
jmp 0x40954b
movq %rax, %r14
jmp 0x40958b
movq %rax, %r14
jmp 0x40956f
movq %rax, %r14
movq 0x60(%rsp), %rdi
cmpq %rbp, %rdi
je 0x40956f
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x4177e0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x40958b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4177e0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4095c9
movq 0x10(%rsp), %rsi
jmp 0x4095c1
movq %rax, %r14
jmp 0x4095b2
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0x4620b0
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0x4095c9
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x4177e0
movq %r14, %rdi
callq 0x4c34a0
nop