// File: /workspace/github_cpp_makefile_star2_O1/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
xorps %xmm1, %xmm1
movaps %xmm1, (%rsp)
leaq 0x24c2(%rip), %rcx      # 0x12453e
movq %rcx, 0x18(%rsp)
leaq 0x24e4(%rip), %rdx      # 0x12456c
movq %rdx, 0x10(%rsp)
movups 0x23b8(%rdi), %xmm0
movaps %xmm0, (%rsp)
movups %xmm1, 0x23b8(%rdi)
movq 0x23c8(%rdi), %rax
movq %rax, 0x10(%rsp)
movq %rdx, 0x23c8(%rdi)
movq 0x23d0(%rdi), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, 0x23d0(%rdi)
testq %rax, %rax
je 0x1220d7
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
xorps %xmm1, %xmm1
movaps %xmm1, (%rsp)
leaq 0x249f(%rip), %rcx      # 0x124584
movq %rcx, 0x18(%rsp)
leaq 0x24ad(%rip), %rdx      # 0x12459e
movq %rdx, 0x10(%rsp)
movups 0x23d8(%rbx), %xmm0
movaps %xmm0, (%rsp)
movups %xmm1, 0x23d8(%rbx)
movq 0x23e8(%rbx), %rax
movq %rax, 0x10(%rsp)
movq %rdx, 0x23e8(%rbx)
movq 0x23f0(%rbx), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, 0x23f0(%rbx)
testq %rax, %rax
je 0x122140
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
xorps %xmm1, %xmm1
movaps %xmm1, (%rsp)
leaq 0x2468(%rip), %rcx      # 0x1245b6
movq %rcx, 0x18(%rsp)
leaq 0x249e(%rip), %rdx      # 0x1245f8
movq %rdx, 0x10(%rsp)
movups 0x2258(%rbx), %xmm0
movaps %xmm0, (%rsp)
movups %xmm1, 0x2258(%rbx)
movq 0x2268(%rbx), %rax
movq %rax, 0x10(%rsp)
movq %rdx, 0x2268(%rbx)
movq 0x2270(%rbx), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, 0x2270(%rbx)
testq %rax, %rax
je 0x1221a9
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
xorps %xmm1, %xmm1
movaps %xmm1, (%rsp)
leaq 0x2459(%rip), %rcx      # 0x124610
movq %rcx, 0x18(%rsp)
leaq 0x244f(%rip), %rdx      # 0x124612
movq %rdx, 0x10(%rsp)
movups 0x22f8(%rbx), %xmm0
movaps %xmm0, (%rsp)
movups %xmm1, 0x22f8(%rbx)
movq 0x2308(%rbx), %rax
movq %rax, 0x10(%rsp)
movq %rdx, 0x2308(%rbx)
movq 0x2310(%rbx), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, 0x2310(%rbx)
testq %rax, %rax
je 0x122212
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
xorps %xmm1, %xmm1
movaps %xmm1, (%rsp)
leaq 0x240a(%rip), %rcx      # 0x12462a
movq %rcx, 0x18(%rsp)
leaq 0x2400(%rip), %rdx      # 0x12462c
movq %rdx, 0x10(%rsp)
movups 0x2418(%rbx), %xmm0
movaps %xmm0, (%rsp)
movups %xmm1, 0x2418(%rbx)
movq 0x2428(%rbx), %rax
movq %rax, 0x10(%rsp)
movq %rdx, 0x2428(%rbx)
movq 0x2430(%rbx), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, 0x2430(%rbx)
testq %rax, %rax
je 0x12227b
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
xorps %xmm1, %xmm1
movaps %xmm1, (%rsp)
leaq 0x23bb(%rip), %rcx      # 0x124644
movq %rcx, 0x18(%rsp)
leaq 0x23b1(%rip), %rdx      # 0x124646
movq %rdx, 0x10(%rsp)
movups 0x2438(%rbx), %xmm0
movaps %xmm0, (%rsp)
movups %xmm1, 0x2438(%rbx)
movq 0x2448(%rbx), %rax
movq %rax, 0x10(%rsp)
movq %rdx, 0x2448(%rbx)
movq 0x2450(%rbx), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, 0x2450(%rbx)
testq %rax, %rax
je 0x1222e4
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
xorps %xmm1, %xmm1
movaps %xmm1, (%rsp)
leaq 0x236c(%rip), %rcx      # 0x12465e
movq %rcx, 0x18(%rsp)
leaq 0x237a(%rip), %rdx      # 0x124678
movq %rdx, 0x10(%rsp)
movups 0x2458(%rbx), %xmm0
movaps %xmm0, (%rsp)
movups %xmm1, 0x2458(%rbx)
movq 0x2468(%rbx), %rax
movq %rax, 0x10(%rsp)
movq %rdx, 0x2468(%rbx)
movq 0x2470(%rbx), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, 0x2470(%rbx)
testq %rax, %rax
je 0x12234d
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
xorps %xmm1, %xmm1
movaps %xmm1, (%rsp)
leaq 0x2335(%rip), %rcx      # 0x124690
movq %rcx, 0x18(%rsp)
leaq 0x2343(%rip), %rdx      # 0x1246aa
movq %rdx, 0x10(%rsp)
movups 0x2478(%rbx), %xmm0
movaps %xmm0, (%rsp)
movups %xmm1, 0x2478(%rbx)
movq 0x2488(%rbx), %rax
movq %rax, 0x10(%rsp)
movq %rdx, 0x2488(%rbx)
movq 0x2490(%rbx), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, 0x2490(%rbx)
testq %rax, %rax
je 0x1223b6
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
xorps %xmm1, %xmm1
movaps %xmm1, (%rsp)
leaq 0x22fe(%rip), %rcx      # 0x1246c2
movq %rcx, 0x18(%rsp)
leaq 0x233e(%rip), %rdx      # 0x12470e
movq %rdx, 0x10(%rsp)
movups 0x2338(%rbx), %xmm0
movaps %xmm0, (%rsp)
movups %xmm1, 0x2338(%rbx)
movq 0x2348(%rbx), %rax
movq %rax, 0x10(%rsp)
movq %rdx, 0x2348(%rbx)
movq 0x2350(%rbx), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, 0x2350(%rbx)
testq %rax, %rax
je 0x12241f
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
xorps %xmm1, %xmm1
movaps %xmm1, (%rsp)
leaq 0x22f9(%rip), %rcx      # 0x124726
movq %rcx, 0x18(%rsp)
leaq 0x22fb(%rip), %rdx      # 0x124734
movq %rdx, 0x10(%rsp)
movups 0x2358(%rbx), %xmm0
movaps %xmm0, (%rsp)
movups %xmm1, 0x2358(%rbx)
movq 0x2368(%rbx), %rax
movq %rax, 0x10(%rsp)
movq %rdx, 0x2368(%rbx)
movq 0x2370(%rbx), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, 0x2370(%rbx)
testq %rax, %rax
je 0x122488
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
xorps %xmm1, %xmm1
movaps %xmm1, (%rsp)
leaq 0x22b6(%rip), %rcx      # 0x12474c
movq %rcx, 0x18(%rsp)
leaq 0x22b8(%rip), %rdx      # 0x12475a
movq %rdx, 0x10(%rsp)
movups 0x2378(%rbx), %xmm0
movaps %xmm0, (%rsp)
movups %xmm1, 0x2378(%rbx)
movq 0x2388(%rbx), %rax
movq %rax, 0x10(%rsp)
movq %rdx, 0x2388(%rbx)
movq 0x2390(%rbx), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, 0x2390(%rbx)
testq %rax, %rax
je 0x1224f1
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
xorps %xmm1, %xmm1
movaps %xmm1, (%rsp)
leaq 0x2273(%rip), %rcx      # 0x124772
movq %rcx, 0x18(%rsp)
leaq 0x2275(%rip), %rdx      # 0x124780
movq %rdx, 0x10(%rsp)
movups 0x2398(%rbx), %xmm0
movaps %xmm0, (%rsp)
movups %xmm1, 0x2398(%rbx)
movq 0x23a8(%rbx), %rax
movq %rax, 0x10(%rsp)
movq %rdx, 0x23a8(%rbx)
movq 0x23b0(%rbx), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, 0x23b0(%rbx)
testq %rax, %rax
je 0x12255a
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $0x20, %rsp
popq %rbx
retq
jmp 0x122576
jmp 0x122576
jmp 0x122576
jmp 0x122576
jmp 0x122576
jmp 0x122576
jmp 0x122576
jmp 0x122576
jmp 0x122576
jmp 0x122576
jmp 0x122576
movq %rax, %rdi
callq 0x1718f