// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]ramulator/src/LPDDR3.cpp
// Function: ramulator::LPDDR3::init_lambda()
void LPDDR3::init_lambda()
{
    lambda[int(Level::Bank)][int(Command::ACT)] = [] (DRAM<LPDDR3>* node, int id) {
        node->state = State::Opened;
        node->row_state[id] = State::Opened;};
    lambda[int(Level::Bank)][int(Command::PRE)] = [] (DRAM<LPDDR3>* node, int id) {
        node->state = State::Closed;
        node->row_state.clear();};
    lambda[int(Level::Rank)][int(Command::PRA)] = [] (DRAM<LPDDR3>* node, int id) {
        for (auto bank : node->children) {
            bank->state = State::Closed;
            bank->row_state.clear();}};
    lambda[int(Level::Rank)][int(Command::REF)] = [] (DRAM<LPDDR3>* node, int id) {};
    lambda[int(Level::Bank)][int(Command::RD)] = [] (DRAM<LPDDR3>* node, int id) {};
    lambda[int(Level::Bank)][int(Command::WR)] = [] (DRAM<LPDDR3>* node, int id) {};
    lambda[int(Level::Bank)][int(Command::RDA)] = [] (DRAM<LPDDR3>* node, int id) {
        node->state = State::Closed;
        node->row_state.clear();};
    lambda[int(Level::Bank)][int(Command::WRA)] = [] (DRAM<LPDDR3>* node, int id) {
        node->state = State::Closed;
        node->row_state.clear();};
    lambda[int(Level::Rank)][int(Command::PD)] = [] (DRAM<LPDDR3>* node, int id) {
        for (auto bank : node->children) {
            if (bank->state == State::Closed)
                continue;
            node->state = State::ActPowerDown;
            return;
        }
        node->state = State::PrePowerDown;};
    lambda[int(Level::Rank)][int(Command::PDX)] = [] (DRAM<LPDDR3>* node, int id) {
        node->state = State::PowerUp;};
    lambda[int(Level::Rank)][int(Command::SREF)] = [] (DRAM<LPDDR3>* node, int id) {
        node->state = State::SelfRefresh;};
    lambda[int(Level::Rank)][int(Command::SREFX)] = [] (DRAM<LPDDR3>* node, int id) {
        node->state = State::PowerUp;};
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movups 0x23b8(%rdi), %xmm0
movaps %xmm0, (%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x23b8(%rdi)
movq 0x23c8(%rdi), %rax
movq %rax, 0x10(%rsp)
leaq 0x25aa(%rip), %rcx      # 0x12148e
movq %rcx, 0x23c8(%rdi)
movq 0x23d0(%rdi), %rcx
movq %rcx, 0x18(%rsp)
leaq 0x2562(%rip), %rcx      # 0x121460
movq %rcx, 0x23d0(%rdi)
testq %rax, %rax
je 0x11ef17
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movups 0x23d8(%rbx), %xmm0
movaps %xmm0, (%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x23d8(%rbx)
movq 0x23e8(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x2581(%rip), %rcx      # 0x1214c0
movq %rcx, 0x23e8(%rbx)
movq 0x23f0(%rbx), %rcx
movq %rcx, 0x18(%rsp)
leaq 0x254d(%rip), %rcx      # 0x1214a6
movq %rcx, 0x23f0(%rbx)
testq %rax, %rax
je 0x11ef72
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movups 0x2258(%rbx), %xmm0
movaps %xmm0, (%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x2258(%rbx)
movq 0x2268(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x2580(%rip), %rcx      # 0x12151a
movq %rcx, 0x2268(%rbx)
movq 0x2270(%rbx), %rcx
movq %rcx, 0x18(%rsp)
leaq 0x2524(%rip), %rcx      # 0x1214d8
movq %rcx, 0x2270(%rbx)
testq %rax, %rax
je 0x11efcd
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movups 0x22f8(%rbx), %xmm0
movaps %xmm0, (%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x22f8(%rbx)
movq 0x2308(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x253f(%rip), %rcx      # 0x121534
movq %rcx, 0x2308(%rbx)
movq 0x2310(%rbx), %rcx
movq %rcx, 0x18(%rsp)
leaq 0x2523(%rip), %rcx      # 0x121532
movq %rcx, 0x2310(%rbx)
testq %rax, %rax
je 0x11f028
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movups 0x2418(%rbx), %xmm0
movaps %xmm0, (%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x2418(%rbx)
movq 0x2428(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x24fe(%rip), %rcx      # 0x12154e
movq %rcx, 0x2428(%rbx)
movq 0x2430(%rbx), %rcx
movq %rcx, 0x18(%rsp)
leaq 0x24e2(%rip), %rcx      # 0x12154c
movq %rcx, 0x2430(%rbx)
testq %rax, %rax
je 0x11f083
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movups 0x2438(%rbx), %xmm0
movaps %xmm0, (%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x2438(%rbx)
movq 0x2448(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x24bd(%rip), %rcx      # 0x121568
movq %rcx, 0x2448(%rbx)
movq 0x2450(%rbx), %rcx
movq %rcx, 0x18(%rsp)
leaq 0x24a1(%rip), %rcx      # 0x121566
movq %rcx, 0x2450(%rbx)
testq %rax, %rax
je 0x11f0de
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movups 0x2458(%rbx), %xmm0
movaps %xmm0, (%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x2458(%rbx)
movq 0x2468(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x2494(%rip), %rcx      # 0x12159a
movq %rcx, 0x2468(%rbx)
movq 0x2470(%rbx), %rcx
movq %rcx, 0x18(%rsp)
leaq 0x2460(%rip), %rcx      # 0x121580
movq %rcx, 0x2470(%rbx)
testq %rax, %rax
je 0x11f139
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movups 0x2478(%rbx), %xmm0
movaps %xmm0, (%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x2478(%rbx)
movq 0x2488(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x246b(%rip), %rcx      # 0x1215cc
movq %rcx, 0x2488(%rbx)
movq 0x2490(%rbx), %rcx
movq %rcx, 0x18(%rsp)
leaq 0x2437(%rip), %rcx      # 0x1215b2
movq %rcx, 0x2490(%rbx)
testq %rax, %rax
je 0x11f194
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movups 0x2338(%rbx), %xmm0
movaps %xmm0, (%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x2338(%rbx)
movq 0x2348(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x2462(%rip), %rcx      # 0x12161e
movq %rcx, 0x2348(%rbx)
movq 0x2350(%rbx), %rcx
movq %rcx, 0x18(%rsp)
leaq 0x240e(%rip), %rcx      # 0x1215e4
movq %rcx, 0x2350(%rbx)
testq %rax, %rax
je 0x11f1ef
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movups 0x2358(%rbx), %xmm0
movaps %xmm0, (%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x2358(%rbx)
movq 0x2368(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x242d(%rip), %rcx      # 0x121644
movq %rcx, 0x2368(%rbx)
movq 0x2370(%rbx), %rcx
movq %rcx, 0x18(%rsp)
leaq 0x2405(%rip), %rcx      # 0x121636
movq %rcx, 0x2370(%rbx)
testq %rax, %rax
je 0x11f24a
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movups 0x2378(%rbx), %xmm0
movaps %xmm0, (%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x2378(%rbx)
movq 0x2388(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x23f8(%rip), %rcx      # 0x12166a
movq %rcx, 0x2388(%rbx)
movq 0x2390(%rbx), %rcx
movq %rcx, 0x18(%rsp)
leaq 0x23d0(%rip), %rcx      # 0x12165c
movq %rcx, 0x2390(%rbx)
testq %rax, %rax
je 0x11f2a5
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movups 0x2398(%rbx), %xmm0
movaps %xmm0, (%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x2398(%rbx)
movq 0x23a8(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x23c3(%rip), %rcx      # 0x121690
movq %rcx, 0x23a8(%rbx)
movq 0x23b0(%rbx), %rcx
movq %rcx, 0x18(%rsp)
leaq 0x239b(%rip), %rcx      # 0x121682
movq %rcx, 0x23b0(%rbx)
testq %rax, %rax
je 0x11f300
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $0x20, %rsp
popq %rbx
retq
jmp 0x11f31c
jmp 0x11f31c
jmp 0x11f31c
jmp 0x11f31c
jmp 0x11f31c
jmp 0x11f31c
jmp 0x11f31c
jmp 0x11f31c
jmp 0x11f31c
jmp 0x11f31c
jmp 0x11f31c
movq %rax, %rdi
callq 0x171a3