// File: /workspace/github_cpp_makefile_star2_O1/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 0xbfe0(%rip), %rsi      # 0x51e65
leaq 0xbfdc(%rip), %rdx      # 0x51e68
callq 0x80e0
leaq 0x20(%rbx), %r14
leaq 0x30(%rbx), %rax
movq %rax, 0x20(%rbx)
leaq 0xbfc5(%rip), %rsi      # 0x51e69
leaq 0xbfc1(%rip), %rdx      # 0x51e6c
movq %r14, %rdi
callq 0x80e0
leaq 0x40(%rbx), %r14
leaq 0x50(%rbx), %rax
movq %rax, 0x40(%rbx)
leaq 0xbfa7(%rip), %rsi      # 0x51e6d
leaq 0xbfa3(%rip), %rdx      # 0x51e70
movq %r14, %rdi
callq 0x80e0
leaq 0x60(%rbx), %r14
leaq 0x70(%rbx), %rax
movq %rax, 0x60(%rbx)
leaq 0xbf89(%rip), %rsi      # 0x51e71
leaq 0xbf84(%rip), %rdx      # 0x51e73
movq %r14, %rdi
callq 0x80e0
leaq 0x80(%rbx), %r14
leaq 0x90(%rbx), %rax
movq %rax, 0x80(%rbx)
leaq 0xbf61(%rip), %rsi      # 0x51e74
leaq 0xbf5c(%rip), %rdx      # 0x51e76
movq %r14, %rdi
callq 0x80e0
leaq 0xa0(%rbx), %r14
leaq 0xb0(%rbx), %rax
movq %rax, 0xa0(%rbx)
leaq 0xbf39(%rip), %rsi      # 0x51e77
leaq 0xbf35(%rip), %rdx      # 0x51e7a
movq %r14, %rdi
callq 0x80e0
leaq 0xc0(%rbx), %r14
leaq 0xd0(%rbx), %rax
movq %rax, 0xc0(%rbx)
leaq 0xbf12(%rip), %rsi      # 0x51e7b
leaq 0xbf0e(%rip), %rdx      # 0x51e7e
movq %r14, %rdi
callq 0x80e0
leaq 0xe0(%rbx), %r14
leaq 0xf0(%rbx), %rax
movq %rax, 0xe0(%rbx)
leaq 0xbef3(%rip), %rsi      # 0x51e87
leaq 0xbeef(%rip), %rdx      # 0x51e8a
movq %r14, %rdi
callq 0x80e0
leaq 0x100(%rbx), %r14
leaq 0x110(%rbx), %rax
movq %rax, 0x100(%rbx)
leaq 0xbec0(%rip), %rsi      # 0x51e7f
leaq 0xbebb(%rip), %rdx      # 0x51e81
movq %r14, %rdi
callq 0x80e0
leaq 0x120(%rbx), %r14
leaq 0x130(%rbx), %rax
movq %rax, 0x120(%rbx)
leaq 0xbe98(%rip), %rsi      # 0x51e82
leaq 0xbe94(%rip), %rdx      # 0x51e85
movq %r14, %rdi
callq 0x80e0
leaq 0x140(%rbx), %r14
leaq 0x150(%rbx), %rax
movq %rax, 0x140(%rbx)
leaq 0xbe71(%rip), %rsi      # 0x51e86
leaq 0xbe6e(%rip), %rdx      # 0x51e8a
movq %r14, %rdi
callq 0x80e0
leaq 0x160(%rbx), %r14
leaq 0x170(%rbx), %rax
movq %rax, 0x160(%rbx)
leaq 0xbe4b(%rip), %rsi      # 0x51e8b
leaq 0xbe49(%rip), %rdx      # 0x51e90
movq %r14, %rdi
callq 0x80e0
leaq 0x180(%rbx), %r14
movups 0xc8bb(%rip), %xmm0     # 0x52918
movups %xmm0, 0x1a0(%rbx)
movups 0xc89d(%rip), %xmm0     # 0x52908
movups %xmm0, 0x190(%rbx)
movups 0xc87f(%rip), %xmm0     # 0x528f8
movups %xmm0, 0x180(%rbx)
movups 0xc8a1(%rip), %xmm0     # 0x52928
movups %xmm0, 0x1b0(%rbx)
movl $0x6, 0x1c0(%rbx)
movups 0xc561(%rip), %xmm0     # 0x52600
movups %xmm0, 0x1c4(%rbx)
movq $0xa, 0x1d4(%rbx)
leaq 0x1e0(%rbx), %rdi
movl $0x780, %edx            # imm = 0x780
xorl %esi, %esi
callq 0x51c0
leaq 0x960(%rbx), %rdi
movl $0x780, %edx            # imm = 0x780
xorl %esi, %esi
callq 0x51c0
leaq 0x10e0(%rbx), %rdi
movl $0x780, %edx            # imm = 0x780
xorl %esi, %esi
callq 0x51c0
leaq 0x1860(%rbx), %rdi
movl $0x5a0, %edx            # imm = 0x5A0
xorl %esi, %esi
callq 0x51c0
leaq 0x1e00(%rbx), %rdi
movl $0x780, %edx            # imm = 0x780
xorl %esi, %esi
callq 0x51c0
leaq 0x2580(%rbx), %rdi
leaq 0xc81e(%rip), %rsi      # 0x5293c
movl $0x1c, %ecx
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 0xc840(%rip), %rsi      # 0x529b0
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 0x4637a
movq %rbx, %rdi
callq 0x46428
movq %rbx, %rdi
callq 0x46680
movq %rbx, %rdi
callq 0x46716
movq %rbx, %rdi
callq 0x467ac
movq %rbx, %rdi
callq 0x46cc4
movl 0x2710(%rbx), %eax
movl %eax, 0x276c(%rbx)
movl %eax, 0x2770(%rbx)
movl %eax, 0x2774(%rbx)
movl %eax, 0x2778(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x46224
jmp 0x46224
jmp 0x46224
jmp 0x46224
jmp 0x46224
jmp 0x46224
jmp 0x46224
jmp 0x46224
jmp 0x46224
jmp 0x46224
movq %rax, %r15
cmpq %rbx, %r14
je 0x46364
addq $-0x10, %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x46248
movq (%r14), %rsi
incq %rsi
callq 0x52d0
leaq -0x20(%r14), %rax
addq $-0x10, %r14
cmpq %rbx, %r14
movq %rax, %r14
jne 0x46234
jmp 0x46364
movq %rax, %r15
movq %rbx, %r14
jmp 0x46227
movq %rax, %r15
leaq 0x2560(%rbx), %r12
xorl %r13d, %r13d
movq 0x2570(%rbx,%r13), %rax
testq %rax, %rax
je 0x4628d
leaq (%r12,%r13), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $-0x20, %r13
cmpq $-0x780, %r13           # imm = 0xF880
jne 0x46272
movl $0x1df8, %r12d          # imm = 0x1DF8
movq -0x10(%rbx,%r12), %rdi
testq %rdi, %rdi
je 0x462b6
movq (%rbx,%r12), %rsi
subq %rdi, %rsi
callq 0x52d0
addq $-0x18, %r12
cmpq $0x1858, %r12           # imm = 0x1858
jne 0x462a0
leaq 0x1840(%rbx), %r12
xorl %r13d, %r13d
movq 0x1850(%rbx,%r13), %rax
testq %rax, %rax
je 0x462e8
leaq (%r12,%r13), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $-0x20, %r13
cmpq $-0x780, %r13           # imm = 0xF880
jne 0x462cd
leaq 0x10c0(%rbx), %r12
xorl %r13d, %r13d
movq 0x10d0(%rbx,%r13), %rax
testq %rax, %rax
je 0x4631a
leaq (%r12,%r13), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $-0x20, %r13
cmpq $-0x780, %r13           # imm = 0xF880
jne 0x462ff
leaq 0x940(%rbx), %r12
xorl %r13d, %r13d
movq 0x950(%rbx,%r13), %rax
testq %rax, %rax
je 0x4634c
leaq (%r12,%r13), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $-0x20, %r13
cmpq $-0x780, %r13           # imm = 0xF880
jne 0x46331
movq %r14, %rdi
movq %rbx, %rsi
callq 0x59a9
movq %r15, %rdi
callq 0x54c0
jmp 0x46372
jmp 0x46372
jmp 0x46372
movq %rax, %rdi
callq 0x7ce9