// File: /workspace/github_cpp_makefile_star2_O2/CMU-SAFARI[P]SMLA/src/SMLA_DIO.cpp
// Function: ramulator::SMLA_DIO::SMLA_DIO(ramulator::SMLA_DIO::Org, ramulator::SMLA_DIO::Speed)
SMLA_DIO::SMLA_DIO(Org org, Speed speed) : 
    org_entry(org_table[int(org)]), 
    speed_entry(speed_table[int(speed)]),
    read_latency(speed_entry.nCL + speed_entry.nDQSCK + speed_entry.nBL)
{
    init_speed();
    init_prereq();
    init_rowhit(); // SAUGATA: added row hit function
    init_rowopen();
    init_lambda();
    init_timing();
		read_latency_smla[0] = speed_entry.nBL;
		read_latency_smla[1] = speed_entry.nBL;
		read_latency_smla[2] = speed_entry.nBL;
		read_latency_smla[3] = speed_entry.nBL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %rbx
leaq 0xa27f(%rip), %rsi      # 0x37ebe
leaq 0xf(%rsp), %rdx
callq 0x64b0
leaq 0x20(%rbx), %r14
leaq 0xa26e(%rip), %rsi      # 0x37ec2
leaq 0xe(%rsp), %rdx
movq %r14, %rdi
callq 0x64b0
leaq 0x40(%rbx), %r14
leaq 0xa25a(%rip), %rsi      # 0x37ec6
leaq 0xd(%rsp), %rdx
movq %r14, %rdi
callq 0x64b0
leaq 0x60(%rbx), %r14
leaq 0xa246(%rip), %rsi      # 0x37eca
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x64b0
leaq 0x80(%rbx), %r14
leaq 0xa22e(%rip), %rsi      # 0x37ecd
leaq 0xb(%rsp), %rdx
movq %r14, %rdi
callq 0x64b0
leaq 0xa0(%rbx), %r14
leaq 0xa216(%rip), %rsi      # 0x37ed0
leaq 0xa(%rsp), %rdx
movq %r14, %rdi
callq 0x64b0
leaq 0xc0(%rbx), %r14
leaq 0xa1ff(%rip), %rsi      # 0x37ed4
leaq 0x9(%rsp), %rdx
movq %r14, %rdi
callq 0x64b0
leaq 0xe0(%rbx), %r14
leaq 0xa1f0(%rip), %rsi      # 0x37ee0
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
callq 0x64b0
leaq 0x100(%rbx), %r14
leaq 0xa1cd(%rip), %rsi      # 0x37ed8
leaq 0x7(%rsp), %rdx
movq %r14, %rdi
callq 0x64b0
leaq 0x120(%rbx), %r14
leaq 0xa1b5(%rip), %rsi      # 0x37edb
leaq 0x6(%rsp), %rdx
movq %r14, %rdi
callq 0x64b0
leaq 0x140(%rbx), %r14
leaq 0xa19e(%rip), %rsi      # 0x37edf
leaq 0x5(%rsp), %rdx
movq %r14, %rdi
callq 0x64b0
leaq 0x160(%rbx), %r14
leaq 0xa188(%rip), %rsi      # 0x37ee4
leaq 0x4(%rsp), %rdx
movq %r14, %rdi
callq 0x64b0
movups 0xabc8(%rip), %xmm0     # 0x38938
movups %xmm0, 0x1a0(%rbx)
movups 0xabaa(%rip), %xmm0     # 0x38928
movups %xmm0, 0x190(%rbx)
movups 0xab8c(%rip), %xmm0     # 0x38918
movups %xmm0, 0x180(%rbx)
movups 0xabae(%rip), %xmm0     # 0x38948
movups %xmm0, 0x1b0(%rbx)
movl $0x6, 0x1c0(%rbx)
movups 0xa8a6(%rip), %xmm0     # 0x38658
movups %xmm0, 0x1c4(%rbx)
movq $0xa, 0x1d4(%rbx)
leaq 0x1e0(%rbx), %rdi
leaq 0x2580(%rbx), %r14
movl $0x23a0, %edx           # imm = 0x23A0
xorl %esi, %esi
callq 0x51c0
leaq 0xab77(%rip), %rsi      # 0x3895c
pushq $0x1c
popq %rcx
movq %r14, %rdi
rep  movsl (%rsi), %es:(%rdi)
movslq %r15d, %rax
imulq $0x1c, %rax, %rax
movups 0x2580(%rbx,%rax), %xmm0
movups 0x258c(%rbx,%rax), %xmm1
movups %xmm1, 0x25fc(%rbx)
movups %xmm0, 0x25f0(%rbx)
movabsq $0x8000000004, %rax     # imm = 0x8000000004
movq %rax, 0x260c(%rbx)
leaq 0x2618(%rbx), %rdi
leaq 0xab9f(%rip), %rsi      # 0x389d0
movl $0xe0, %edx
callq 0x5250
leaq 0x26f8(%rbx), %rdi
movslq %ebp, %rax
imulq $0x70, %rax, %rax
leaq (%rbx,%rax), %rsi
addq $0x2618, %rsi           # imm = 0x2618
pushq $0xe
popq %rcx
rep  movsq (%rsi), %es:(%rdi)
movl 0x2718(%rbx), %eax
addl 0x271c(%rbx), %eax
addl 0x2710(%rbx), %eax
movl %eax, 0x2768(%rbx)
movq %rbx, %rdi
callq 0x2dfb2
movq %rbx, %rdi
callq 0x2e056
movq %rbx, %rdi
callq 0x2e202
movq %rbx, %rdi
callq 0x2e270
movq %rbx, %rdi
callq 0x2e2de
movq %rbx, %rdi
callq 0x2e64e
movdqu 0x2710(%rbx), %xmm0
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movdqu %xmm0, 0x276c(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2ded8
jmp 0x2ded8
jmp 0x2ded8
jmp 0x2ded8
jmp 0x2ded8
jmp 0x2ded8
jmp 0x2ded8
jmp 0x2ded8
jmp 0x2ded8
jmp 0x2ded8
movq %rax, %r15
addq $-0x20, %r14
movq %r14, %rdi
callq 0x5508
cmpq %rbx, %r14
jne 0x2dedb
jmp 0x2dfa9
movq %rax, %r15
leaq 0x2560(%rbx), %r14
xorl %r12d, %r12d
leaq (%r14,%r12), %rdi
callq 0x2564a
addq $-0x20, %r12
cmpq $-0x780, %r12           # imm = 0xF880
jne 0x2defe
leaq 0x1de8(%rbx), %r14
xorl %r12d, %r12d
leaq (%r14,%r12), %rdi
callq 0x25666
addq $-0x18, %r12
cmpq $-0x5a0, %r12           # imm = 0xFA60
jne 0x2df1e
leaq 0x1840(%rbx), %r14
xorl %r12d, %r12d
leaq (%r14,%r12), %rdi
callq 0x2564a
addq $-0x20, %r12
cmpq $-0x780, %r12           # imm = 0xF880
jne 0x2df3e
leaq 0x10c0(%rbx), %r14
xorl %r12d, %r12d
leaq (%r14,%r12), %rdi
callq 0x2564a
addq $-0x20, %r12
cmpq $-0x780, %r12           # imm = 0xF880
jne 0x2df5e
movl $0x940, %r14d           # imm = 0x940
leaq (%rbx,%r14), %rdi
callq 0x2564a
addq $-0x20, %r14
cmpq $0x1c0, %r14            # imm = 0x1C0
jne 0x2df7a
movl $0x160, %r14d           # imm = 0x160
leaq (%rbx,%r14), %rdi
callq 0x5508
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x2df96
movq %r15, %rdi
callq 0x54a0
nop