// File: /workspace/github_cpp_makefile_star2_O2/CMU-SAFARI[P]ramulator/src/WideIO.cpp
// Function: ramulator::WideIO::WideIO(ramulator::WideIO::Org, ramulator::WideIO::Speed)
WideIO::WideIO(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();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %rbx
leaq 0x106e5(%rip), %rsi     # 0xdb170
leaq 0xf(%rsp), %rdx
callq 0x10eea
leaq 0x20(%rbx), %r14
leaq 0x106d4(%rip), %rsi     # 0xdb174
leaq 0xe(%rsp), %rdx
movq %r14, %rdi
callq 0x10eea
leaq 0x40(%rbx), %r14
leaq 0x152fd(%rip), %rsi     # 0xdfdb5
leaq 0xd(%rsp), %rdx
movq %r14, %rdi
callq 0x10eea
leaq 0x60(%rbx), %r14
leaq 0x106a8(%rip), %rsi     # 0xdb178
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x10eea
leaq 0x80(%rbx), %r14
leaq 0x70b7(%rip), %rsi      # 0xd1ba2
leaq 0xb(%rsp), %rdx
movq %r14, %rdi
callq 0x10eea
leaq 0xa0(%rbx), %r14
leaq 0x10675(%rip), %rsi     # 0xdb17b
leaq 0xa(%rsp), %rdx
movq %r14, %rdi
callq 0x10eea
leaq 0xc0(%rbx), %r14
leaq 0x1065e(%rip), %rsi     # 0xdb17f
leaq 0x9(%rsp), %rdx
movq %r14, %rdi
callq 0x10eea
leaq 0xe0(%rbx), %r14
leaq 0x197ab(%rip), %rsi     # 0xe42e7
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
callq 0x10eea
leaq 0x100(%rbx), %r14
leaq 0x15262(%rip), %rsi     # 0xdfdb9
leaq 0x7(%rsp), %rdx
movq %r14, %rdi
callq 0x10eea
leaq 0x120(%rbx), %r14
leaq 0x10615(%rip), %rsi     # 0xdb187
leaq 0x6(%rsp), %rdx
movq %r14, %rdi
callq 0x10eea
leaq 0x140(%rbx), %r14
leaq 0x1522f(%rip), %rsi     # 0xdfdbc
leaq 0x5(%rsp), %rdx
movq %r14, %rdi
callq 0x10eea
leaq 0x160(%rbx), %r14
leaq 0x15219(%rip), %rsi     # 0xdfdc1
leaq 0x4(%rsp), %rdx
movq %r14, %rdi
callq 0x10eea
movups 0x1a98c(%rip), %xmm0    # 0xe5548
movups %xmm0, 0x1a0(%rbx)
movups 0x1a96e(%rip), %xmm0    # 0xe5538
movups %xmm0, 0x190(%rbx)
movups 0x1a950(%rip), %xmm0    # 0xe5528
movups %xmm0, 0x180(%rbx)
movups 0x1a972(%rip), %xmm0    # 0xe5558
movups %xmm0, 0x1b0(%rbx)
movl $0x6, 0x1c0(%rbx)
movups 0x1179e(%rip), %xmm0    # 0xdc39c
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 0xb1d0
leaq 0x1a93b(%rip), %rsi     # 0xe556c
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 0x1a963(%rip), %rsi     # 0xe55e0
movl $0xe0, %edx
callq 0xb270
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 0xcade8
movq %rbx, %rdi
callq 0xcae8c
movq %rbx, %rdi
callq 0xcb038
movq %rbx, %rdi
callq 0xcb0a6
movq %rbx, %rdi
callq 0xcb114
movq %rbx, %rdi
callq 0xcb484
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0xcad0f
jmp 0xcad0f
jmp 0xcad0f
jmp 0xcad0f
jmp 0xcad0f
jmp 0xcad0f
jmp 0xcad0f
jmp 0xcad0f
jmp 0xcad0f
jmp 0xcad0f
movq %rax, %r15
addq $-0x20, %r14
movq %r14, %rdi
callq 0xb568
cmpq %rbx, %r14
jne 0xcad12
jmp 0xcade0
movq %rax, %r15
leaq 0x2560(%rbx), %r14
xorl %r12d, %r12d
leaq (%r14,%r12), %rdi
callq 0x96b6a
addq $-0x20, %r12
cmpq $-0x780, %r12           # imm = 0xF880
jne 0xcad35
leaq 0x1de8(%rbx), %r14
xorl %r12d, %r12d
leaq (%r14,%r12), %rdi
callq 0x62300
addq $-0x18, %r12
cmpq $-0x5a0, %r12           # imm = 0xFA60
jne 0xcad55
leaq 0x1840(%rbx), %r14
xorl %r12d, %r12d
leaq (%r14,%r12), %rdi
callq 0x96b6a
addq $-0x20, %r12
cmpq $-0x780, %r12           # imm = 0xF880
jne 0xcad75
leaq 0x10c0(%rbx), %r14
xorl %r12d, %r12d
leaq (%r14,%r12), %rdi
callq 0x96b6a
addq $-0x20, %r12
cmpq $-0x780, %r12           # imm = 0xF880
jne 0xcad95
movl $0x940, %r14d           # imm = 0x940
leaq (%rbx,%r14), %rdi
callq 0x96b6a
addq $-0x20, %r14
cmpq $0x1c0, %r14            # imm = 0x1C0
jne 0xcadb1
movl $0x160, %r14d           # imm = 0x160
leaq (%rbx,%r14), %rdi
callq 0xb568
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0xcadcd
movq %r15, %rdi
callq 0xb4d0