// File: /workspace/github_cpp_makefile_star2_O3/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
leaq 0xc705(%rip), %rsi      # 0x51ede
leaq 0xc701(%rip), %rdx      # 0x51ee1
callq 0x80d6
leaq 0x20(%rbx), %r14
leaq 0x30(%rbx), %rax
movq %rax, 0x20(%rbx)
leaq 0xc6ea(%rip), %rsi      # 0x51ee2
leaq 0xc6e6(%rip), %rdx      # 0x51ee5
movq %r14, %rdi
callq 0x80d6
leaq 0x40(%rbx), %r14
leaq 0x50(%rbx), %rax
movq %rax, 0x40(%rbx)
leaq 0xc6cc(%rip), %rsi      # 0x51ee6
leaq 0xc6c8(%rip), %rdx      # 0x51ee9
movq %r14, %rdi
callq 0x80d6
leaq 0x60(%rbx), %r14
leaq 0x70(%rbx), %rax
movq %rax, 0x60(%rbx)
leaq 0xc6ae(%rip), %rsi      # 0x51eea
leaq 0xc6a9(%rip), %rdx      # 0x51eec
movq %r14, %rdi
callq 0x80d6
leaq 0x80(%rbx), %r14
leaq 0x90(%rbx), %rax
movq %rax, 0x80(%rbx)
leaq 0xc686(%rip), %rsi      # 0x51eed
leaq 0xc681(%rip), %rdx      # 0x51eef
movq %r14, %rdi
callq 0x80d6
leaq 0xa0(%rbx), %r14
leaq 0xb0(%rbx), %rax
movq %rax, 0xa0(%rbx)
leaq 0xc65e(%rip), %rsi      # 0x51ef0
leaq 0xc65a(%rip), %rdx      # 0x51ef3
movq %r14, %rdi
callq 0x80d6
leaq 0xc0(%rbx), %r14
leaq 0xd0(%rbx), %rax
movq %rax, 0xc0(%rbx)
leaq 0xc637(%rip), %rsi      # 0x51ef4
leaq 0xc633(%rip), %rdx      # 0x51ef7
movq %r14, %rdi
callq 0x80d6
leaq 0xe0(%rbx), %r14
leaq 0xf0(%rbx), %rax
movq %rax, 0xe0(%rbx)
leaq 0xc618(%rip), %rsi      # 0x51f00
leaq 0xc614(%rip), %rdx      # 0x51f03
movq %r14, %rdi
callq 0x80d6
leaq 0x100(%rbx), %r14
leaq 0x110(%rbx), %rax
movq %rax, 0x100(%rbx)
leaq 0xc5e5(%rip), %rsi      # 0x51ef8
leaq 0xc5e0(%rip), %rdx      # 0x51efa
movq %r14, %rdi
callq 0x80d6
leaq 0x120(%rbx), %r14
leaq 0x130(%rbx), %rax
movq %rax, 0x120(%rbx)
leaq 0xc5bd(%rip), %rsi      # 0x51efb
leaq 0xc5b9(%rip), %rdx      # 0x51efe
movq %r14, %rdi
callq 0x80d6
leaq 0x140(%rbx), %r14
leaq 0x150(%rbx), %rax
movq %rax, 0x140(%rbx)
leaq 0xc596(%rip), %rsi      # 0x51eff
leaq 0xc593(%rip), %rdx      # 0x51f03
movq %r14, %rdi
callq 0x80d6
leaq 0x160(%rbx), %r14
leaq 0x170(%rbx), %rax
movq %rax, 0x160(%rbx)
leaq 0xc570(%rip), %rsi      # 0x51f04
leaq 0xc56e(%rip), %rdx      # 0x51f09
movq %r14, %rdi
callq 0x80d6
leaq 0x180(%rbx), %r14
movups 0xcfa7(%rip), %xmm0     # 0x52958
movups %xmm0, 0x1a0(%rbx)
movups 0xcf89(%rip), %xmm0     # 0x52948
movups %xmm0, 0x190(%rbx)
movups 0xcf6b(%rip), %xmm0     # 0x52938
movups %xmm0, 0x180(%rbx)
movups 0xcf8d(%rip), %xmm0     # 0x52968
movups %xmm0, 0x1b0(%rbx)
movl $0x6, 0x1c0(%rbx)
movups 0xcc85(%rip), %xmm0     # 0x52678
movups %xmm0, 0x1c4(%rbx)
movq $0xa, 0x1d4(%rbx)
leaq 0x1e0(%rbx), %rdi
leaq 0x2580(%rbx), %r12
movl $0x23a0, %edx           # imm = 0x23A0
xorl %esi, %esi
callq 0x51c0
leaq 0xcf56(%rip), %rsi      # 0x5297c
movl $0x1c, %ecx
movq %r12, %rdi
rep  movsl (%rsi), %es:(%rdi)
movslq %r15d, %rax
leaq (%rax,%rax,8), %rcx
leaq (%rcx,%rcx,2), %rcx
addq %rax, %rcx
movups 0x2580(%rbx,%rcx), %xmm0
movups 0x258c(%rbx,%rcx), %xmm1
movups %xmm1, 0x25fc(%rbx)
movups %xmm0, 0x25f0(%rbx)
movabsq $0x8000000004, %rax     # imm = 0x8000000004
movq %rax, 0x260c(%rbx)
leaq 0x2618(%rbx), %rdi
leaq 0xcf75(%rip), %rsi      # 0x529f0
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
movl $0xe, %ecx
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 0x45c6c
movq %rbx, %rdi
callq 0x45d1a
movq %rbx, %rdi
callq 0x45f2c
movq %rbx, %rdi
callq 0x45fb4
movq %rbx, %rdi
callq 0x4603c
movq %rbx, %rdi
callq 0x464ac
movdqu 0x2710(%rbx), %xmm0
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movdqu %xmm0, 0x276c(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x45b26
jmp 0x45b26
jmp 0x45b26
jmp 0x45b26
jmp 0x45b26
jmp 0x45b26
jmp 0x45b26
jmp 0x45b26
jmp 0x45b26
jmp 0x45b26
movq %rax, %r15
addq $-0x10, %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x45b41
movq (%r14), %rsi
incq %rsi
callq 0x52d0
leaq -0x20(%r14), %rax
addq $-0x10, %r14
cmpq %rbx, %r14
movq %rax, %r14
jne 0x45b2d
jmp 0x45c55
movq %rax, %r15
leaq 0x2560(%rbx), %r12
xorl %r13d, %r13d
movq 0x2570(%rbx,%r13), %rax
testq %rax, %rax
je 0x45b7e
leaq (%r12,%r13), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $-0x20, %r13
cmpq $-0x780, %r13           # imm = 0xF880
jne 0x45b63
movl $0x1df8, %r12d          # imm = 0x1DF8
movq -0x10(%rbx,%r12), %rdi
testq %rdi, %rdi
je 0x45ba7
movq (%rbx,%r12), %rsi
subq %rdi, %rsi
callq 0x52d0
addq $-0x18, %r12
cmpq $0x1858, %r12           # imm = 0x1858
jne 0x45b91
leaq 0x1840(%rbx), %r12
xorl %r13d, %r13d
movq 0x1850(%rbx,%r13), %rax
testq %rax, %rax
je 0x45bd9
leaq (%r12,%r13), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $-0x20, %r13
cmpq $-0x780, %r13           # imm = 0xF880
jne 0x45bbe
leaq 0x10c0(%rbx), %r12
xorl %r13d, %r13d
movq 0x10d0(%rbx,%r13), %rax
testq %rax, %rax
je 0x45c0b
leaq (%r12,%r13), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $-0x20, %r13
cmpq $-0x780, %r13           # imm = 0xF880
jne 0x45bf0
leaq 0x940(%rbx), %r12
xorl %r13d, %r13d
movq 0x950(%rbx,%r13), %rax
testq %rax, %rax
je 0x45c3d
leaq (%r12,%r13), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $-0x20, %r13
cmpq $-0x780, %r13           # imm = 0xF880
jne 0x45c22
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5992
movq %r15, %rdi
callq 0x54c0
jmp 0x45c63
jmp 0x45c63
jmp 0x45c63
movq %rax, %rdi
callq 0x7cd9
nop