// File: CMU-SAFARI[P]ramulator/src/GDDR5.cpp
// Function: ramulator::GDDR5::init_timing()
void GDDR5::init_timing()
{
    SpeedEntry& s = speed_entry;
    vector<TimingEntry> *t;

    /*** Channel ***/ 
    t = timing[int(Level::Channel)];

    // CAS <-> CAS
    t[int(Command::RD)].push_back({Command::RD, 1, s.nBL});
    t[int(Command::RD)].push_back({Command::RDA, 1, s.nBL});
    t[int(Command::RDA)].push_back({Command::RD, 1, s.nBL});
    t[int(Command::RDA)].push_back({Command::RDA, 1, s.nBL});
    t[int(Command::WR)].push_back({Command::WR, 1, s.nBL});
    t[int(Command::WR)].push_back({Command::WRA, 1, s.nBL});
    t[int(Command::WRA)].push_back({Command::WR, 1, s.nBL});
    t[int(Command::WRA)].push_back({Command::WRA, 1, s.nBL});


    /*** Rank ***/ 
    t = timing[int(Level::Rank)];

    // CAS <-> CAS
    t[int(Command::RD)].push_back({Command::RD, 1, s.nCCDS});
    t[int(Command::RD)].push_back({Command::RDA, 1, s.nCCDS});
    t[int(Command::RDA)].push_back({Command::RD, 1, s.nCCDS});
    t[int(Command::RDA)].push_back({Command::RDA, 1, s.nCCDS});
    t[int(Command::WR)].push_back({Command::WR, 1, s.nCCDS});
    t[int(Command::WR)].push_back({Command::WRA, 1, s.nCCDS});
    t[int(Command::WRA)].push_back({Command::WR, 1, s.nCCDS});
    t[int(Command::WRA)].push_back({Command::WRA, 1, s.nCCDS});
    t[int(Command::RD)].push_back({Command::WR, 1, s.nCL + s.nCCDS + 2 - s.nCWL});
    t[int(Command::RD)].push_back({Command::WRA, 1, s.nCL + s.nCCDS + 2 - s.nCWL});
    t[int(Command::RDA)].push_back({Command::WR, 1, s.nCL + s.nCCDS + 2 - s.nCWL});
    t[int(Command::RDA)].push_back({Command::WRA, 1, s.nCL + s.nCCDS + 2 - s.nCWL});
    t[int(Command::WR)].push_back({Command::RD, 1, s.nCWL + s.nBL + s.nWTR});
    t[int(Command::WR)].push_back({Command::RDA, 1, s.nCWL + s.nBL + s.nWTR});
    t[int(Command::WRA)].push_back({Command::RD, 1, s.nCWL + s.nBL + s.nWTR});
    t[int(Command::WRA)].push_back({Command::RDA, 1, s.nCWL + s.nBL + s.nWTR});

    t[int(Command::RD)].push_back({Command::PREA, 1, s.nRTP});
    t[int(Command::WR)].push_back({Command::PREA, 1, s.nCWL + s.nBL + s.nWR});

    // CAS <-> PD
    t[int(Command::RD)].push_back({Command::PDE, 1, s.nCL + s.nBL + 1});
    t[int(Command::RDA)].push_back({Command::PDE, 1, s.nCL + s.nBL + 1});
    t[int(Command::WR)].push_back({Command::PDE, 1, s.nCWL + s.nBL + s.nWR});
    t[int(Command::WRA)].push_back({Command::PDE, 1, s.nCWL + s.nBL + s.nWR + 1}); // +1 for pre
    t[int(Command::PDX)].push_back({Command::RD, 1, s.nXPN});
    t[int(Command::PDX)].push_back({Command::RDA, 1, s.nXPN});
    t[int(Command::PDX)].push_back({Command::WR, 1, s.nXPN});
    t[int(Command::PDX)].push_back({Command::WRA, 1, s.nXPN});
    
    // CAS <-> SR: none (all banks have to be precharged)

    // RAS <-> RAS
    t[int(Command::ACT)].push_back({Command::ACT, 1, s.nRRD});
    t[int(Command::ACT)].push_back({Command::ACT, 4, s.nFAW});
    t[int(Command::ACT)].push_back({Command::ACT, 32, s.n32AW});
    t[int(Command::ACT)].push_back({Command::PREA, 1, s.nRAS});
    t[int(Command::PREA)].push_back({Command::ACT, 1, s.nRP});
    t[int(Command::PRE)].push_back({Command::PRE, 1, s.nPPD});

    // RAS <-> REF
    t[int(Command::PRE)].push_back({Command::REF, 1, s.nRP});
    t[int(Command::PREA)].push_back({Command::REF, 1, s.nRP});
    t[int(Command::REF)].push_back({Command::ACT, 1, s.nRFC});

    // RAS <-> PD
    t[int(Command::ACT)].push_back({Command::PDE, 1, 1});
    t[int(Command::PDX)].push_back({Command::ACT, 1, s.nXPN});
    t[int(Command::PDX)].push_back({Command::PRE, 1, s.nXPN});
    t[int(Command::PDX)].push_back({Command::PREA, 1, s.nXPN});

    // RAS <-> SR
    t[int(Command::PRE)].push_back({Command::SRE, 1, s.nRP});
    t[int(Command::PREA)].push_back({Command::SRE, 1, s.nRP});
    t[int(Command::SRX)].push_back({Command::ACT, 1, s.nXS});

    // REF <-> REF
    t[int(Command::REF)].push_back({Command::REF, 1, s.nRFC});

    // REF <-> PD
    t[int(Command::REF)].push_back({Command::PDE, 1, 1});
    t[int(Command::PDX)].push_back({Command::REF, 1, s.nXPN});

    // REF <-> SR
    t[int(Command::SRX)].push_back({Command::REF, 1, s.nXS});
    
    // PD <-> PD
    t[int(Command::PDE)].push_back({Command::PDX, 1, s.nPD});
    t[int(Command::PDX)].push_back({Command::PDE, 1, s.nXPN});

    // PD <-> SR
    t[int(Command::PDX)].push_back({Command::SRE, 1, s.nXPN});
    t[int(Command::SRX)].push_back({Command::PDE, 1, s.nXS});
    
    // SR <-> SR
    t[int(Command::SRE)].push_back({Command::SRX, 1, s.nCKESR});
    t[int(Command::SRX)].push_back({Command::SRE, 1, s.nXS});


    // Bank group level
    t = timing[int(Level::BankGroup)];
    // CAS <-> CAS
    t[int(Command::RD)].push_back({Command::RD, 1, s.nCCDL});
    t[int(Command::RD)].push_back({Command::RDA, 1, s.nCCDL});
    t[int(Command::RDA)].push_back({Command::RD, 1, s.nCCDL});
    t[int(Command::RDA)].push_back({Command::RDA, 1, s.nCCDL});
    t[int(Command::WR)].push_back({Command::WR, 1, s.nCCDL});
    t[int(Command::WR)].push_back({Command::WRA, 1, s.nCCDL});
    t[int(Command::WRA)].push_back({Command::WR, 1, s.nCCDL});
    t[int(Command::WRA)].push_back({Command::WRA, 1, s.nCCDL});
    t[int(Command::WR)].push_back({Command::WR, 1, s.nCCDL});
    t[int(Command::WR)].push_back({Command::WRA, 1, s.nCCDL});
    t[int(Command::WRA)].push_back({Command::WR, 1, s.nCCDL});
    t[int(Command::WRA)].push_back({Command::WRA, 1, s.nCCDL});

    /*** Bank ***/ 
    t = timing[int(Level::Bank)];

    // CAS <-> RAS
    t[int(Command::ACT)].push_back({Command::RD, 1, s.nRCDR});
    t[int(Command::ACT)].push_back({Command::RDA, 1, s.nRCDR});
    t[int(Command::ACT)].push_back({Command::WR, 1, s.nRCDW});
    t[int(Command::ACT)].push_back({Command::WRA, 1, s.nRCDW});

    t[int(Command::RD)].push_back({Command::PRE, 1, s.nRTP});
    t[int(Command::WR)].push_back({Command::PRE, 1, s.nCWL + s.nBL + s.nWR});

    t[int(Command::RDA)].push_back({Command::ACT, 1, s.nRTP + s.nRP});
    t[int(Command::WRA)].push_back({Command::ACT, 1, s.nCWL + s.nBL + s.nWR + s.nRP});

    // RAS <-> RAS
    t[int(Command::ACT)].push_back({Command::ACT, 1, s.nRC});
    t[int(Command::ACT)].push_back({Command::PRE, 1, s.nRAS});
    t[int(Command::PRE)].push_back({Command::ACT, 1, s.nRP});
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x550, %rsp            # imm = 0x550
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x550(%rbp)
movq %rax, %rcx
addq $0x3188, %rcx           # imm = 0x3188
movq %rcx, -0x10(%rbp)
addq $0x1ce0, %rax           # imm = 0x1CE0
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
addq $0x48, %rdi
movl $0x3, -0x28(%rbp)
movl $0x1, -0x24(%rbp)
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x20(%rbp)
movb $0x0, -0x1c(%rbp)
leaq -0x28(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x48, %rdi
movl $0x5, -0x38(%rbp)
movl $0x1, -0x34(%rbp)
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x30(%rbp)
movb $0x0, -0x2c(%rbp)
leaq -0x38(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x78, %rdi
movl $0x3, -0x48(%rbp)
movl $0x1, -0x44(%rbp)
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x40(%rbp)
movb $0x0, -0x3c(%rbp)
leaq -0x48(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x78, %rdi
movl $0x5, -0x58(%rbp)
movl $0x1, -0x54(%rbp)
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x50(%rbp)
movb $0x0, -0x4c(%rbp)
leaq -0x58(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
movl $0x4, -0x68(%rbp)
movl $0x1, -0x64(%rbp)
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x60(%rbp)
movb $0x0, -0x5c(%rbp)
leaq -0x68(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
movl $0x6, -0x78(%rbp)
movl $0x1, -0x74(%rbp)
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x70(%rbp)
movb $0x0, -0x6c(%rbp)
leaq -0x78(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x90, %rdi
movl $0x4, -0x88(%rbp)
movl $0x1, -0x84(%rbp)
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x80(%rbp)
movb $0x0, -0x7c(%rbp)
leaq -0x88(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x90, %rdi
movl $0x6, -0x98(%rbp)
movl $0x1, -0x94(%rbp)
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x90(%rbp)
movb $0x0, -0x8c(%rbp)
leaq -0x98(%rbp), %rsi
callq 0x1bd130
movq -0x550(%rbp), %rax
addq $0x1ce0, %rax           # imm = 0x1CE0
addq $0x120, %rax            # imm = 0x120
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
addq $0x48, %rdi
movl $0x3, -0xa8(%rbp)
movl $0x1, -0xa4(%rbp)
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0xa0(%rbp)
movb $0x0, -0x9c(%rbp)
leaq -0xa8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x48, %rdi
movl $0x5, -0xb8(%rbp)
movl $0x1, -0xb4(%rbp)
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0xb0(%rbp)
movb $0x0, -0xac(%rbp)
leaq -0xb8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x78, %rdi
movl $0x3, -0xc8(%rbp)
movl $0x1, -0xc4(%rbp)
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0xc0(%rbp)
movb $0x0, -0xbc(%rbp)
leaq -0xc8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x78, %rdi
movl $0x5, -0xd8(%rbp)
movl $0x1, -0xd4(%rbp)
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0xd0(%rbp)
movb $0x0, -0xcc(%rbp)
leaq -0xd8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
movl $0x4, -0xe8(%rbp)
movl $0x1, -0xe4(%rbp)
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0xe0(%rbp)
movb $0x0, -0xdc(%rbp)
leaq -0xe8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
movl $0x6, -0xf8(%rbp)
movl $0x1, -0xf4(%rbp)
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0xf0(%rbp)
movb $0x0, -0xec(%rbp)
leaq -0xf8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x90, %rdi
movl $0x4, -0x108(%rbp)
movl $0x1, -0x104(%rbp)
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0x100(%rbp)
movb $0x0, -0xfc(%rbp)
leaq -0x108(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x90, %rdi
movl $0x6, -0x118(%rbp)
movl $0x1, -0x114(%rbp)
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0x110(%rbp)
movb $0x0, -0x10c(%rbp)
leaq -0x118(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x48, %rdi
movl $0x4, -0x128(%rbp)
movl $0x1, -0x124(%rbp)
movq -0x10(%rbp), %rax
movl 0x24(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x1c(%rcx), %eax
addl $0x2, %eax
movq -0x10(%rbp), %rcx
subl 0x34(%rcx), %eax
movl %eax, -0x120(%rbp)
movb $0x0, -0x11c(%rbp)
leaq -0x128(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x48, %rdi
movl $0x6, -0x138(%rbp)
movl $0x1, -0x134(%rbp)
movq -0x10(%rbp), %rax
movl 0x24(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x1c(%rcx), %eax
addl $0x2, %eax
movq -0x10(%rbp), %rcx
subl 0x34(%rcx), %eax
movl %eax, -0x130(%rbp)
movb $0x0, -0x12c(%rbp)
leaq -0x138(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x78, %rdi
movl $0x4, -0x148(%rbp)
movl $0x1, -0x144(%rbp)
movq -0x10(%rbp), %rax
movl 0x24(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x1c(%rcx), %eax
addl $0x2, %eax
movq -0x10(%rbp), %rcx
subl 0x34(%rcx), %eax
movl %eax, -0x140(%rbp)
movb $0x0, -0x13c(%rbp)
leaq -0x148(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x78, %rdi
movl $0x6, -0x158(%rbp)
movl $0x1, -0x154(%rbp)
movq -0x10(%rbp), %rax
movl 0x24(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x1c(%rcx), %eax
addl $0x2, %eax
movq -0x10(%rbp), %rcx
subl 0x34(%rcx), %eax
movl %eax, -0x150(%rbp)
movb $0x0, -0x14c(%rbp)
leaq -0x158(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
movl $0x3, -0x168(%rbp)
movl $0x1, -0x164(%rbp)
movq -0x10(%rbp), %rax
movl 0x34(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
movq -0x10(%rbp), %rcx
addl 0x48(%rcx), %eax
movl %eax, -0x160(%rbp)
movb $0x0, -0x15c(%rbp)
leaq -0x168(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
movl $0x5, -0x178(%rbp)
movl $0x1, -0x174(%rbp)
movq -0x10(%rbp), %rax
movl 0x34(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
movq -0x10(%rbp), %rcx
addl 0x48(%rcx), %eax
movl %eax, -0x170(%rbp)
movb $0x0, -0x16c(%rbp)
leaq -0x178(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x90, %rdi
movl $0x3, -0x188(%rbp)
movl $0x1, -0x184(%rbp)
movq -0x10(%rbp), %rax
movl 0x34(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
movq -0x10(%rbp), %rcx
addl 0x48(%rcx), %eax
movl %eax, -0x180(%rbp)
movb $0x0, -0x17c(%rbp)
leaq -0x188(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x90, %rdi
movl $0x5, -0x198(%rbp)
movl $0x1, -0x194(%rbp)
movq -0x10(%rbp), %rax
movl 0x34(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
movq -0x10(%rbp), %rcx
addl 0x48(%rcx), %eax
movl %eax, -0x190(%rbp)
movb $0x0, -0x18c(%rbp)
leaq -0x198(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x48, %rdi
movl $0x2, -0x1a8(%rbp)
movl $0x1, -0x1a4(%rbp)
movq -0x10(%rbp), %rax
movl 0x44(%rax), %eax
movl %eax, -0x1a0(%rbp)
movb $0x0, -0x19c(%rbp)
leaq -0x1a8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
movl $0x2, -0x1b8(%rbp)
movl $0x1, -0x1b4(%rbp)
movq -0x10(%rbp), %rax
movl 0x34(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
movq -0x10(%rbp), %rcx
addl 0x4c(%rcx), %eax
movl %eax, -0x1b0(%rbp)
movb $0x0, -0x1ac(%rbp)
leaq -0x1b8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x48, %rdi
movl $0x8, -0x1c8(%rbp)
movl $0x1, -0x1c4(%rbp)
movq -0x10(%rbp), %rax
movl 0x24(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
addl $0x1, %eax
movl %eax, -0x1c0(%rbp)
movb $0x0, -0x1bc(%rbp)
leaq -0x1c8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x78, %rdi
movl $0x8, -0x1d8(%rbp)
movl $0x1, -0x1d4(%rbp)
movq -0x10(%rbp), %rax
movl 0x24(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
addl $0x1, %eax
movl %eax, -0x1d0(%rbp)
movb $0x0, -0x1cc(%rbp)
leaq -0x1d8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
movl $0x8, -0x1e8(%rbp)
movl $0x1, -0x1e4(%rbp)
movq -0x10(%rbp), %rax
movl 0x34(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
movq -0x10(%rbp), %rcx
addl 0x4c(%rcx), %eax
movl %eax, -0x1e0(%rbp)
movb $0x0, -0x1dc(%rbp)
leaq -0x1e8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x90, %rdi
movl $0x8, -0x1f8(%rbp)
movl $0x1, -0x1f4(%rbp)
movq -0x10(%rbp), %rax
movl 0x34(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
movq -0x10(%rbp), %rcx
addl 0x4c(%rcx), %eax
addl $0x1, %eax
movl %eax, -0x1f0(%rbp)
movb $0x0, -0x1ec(%rbp)
leaq -0x1f8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
movl $0x3, -0x208(%rbp)
movl $0x1, -0x204(%rbp)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movl %eax, -0x200(%rbp)
movb $0x0, -0x1fc(%rbp)
leaq -0x208(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
movl $0x5, -0x218(%rbp)
movl $0x1, -0x214(%rbp)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movl %eax, -0x210(%rbp)
movb $0x0, -0x20c(%rbp)
leaq -0x218(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
movl $0x4, -0x228(%rbp)
movl $0x1, -0x224(%rbp)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movl %eax, -0x220(%rbp)
movb $0x0, -0x21c(%rbp)
leaq -0x228(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
movl $0x6, -0x238(%rbp)
movl $0x1, -0x234(%rbp)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movl %eax, -0x230(%rbp)
movb $0x0, -0x22c(%rbp)
leaq -0x238(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
movl $0x0, -0x248(%rbp)
movl $0x1, -0x244(%rbp)
movq -0x10(%rbp), %rax
movl 0x50(%rax), %eax
movl %eax, -0x240(%rbp)
movb $0x0, -0x23c(%rbp)
leaq -0x248(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
movl $0x0, -0x258(%rbp)
movl $0x4, -0x254(%rbp)
movq -0x10(%rbp), %rax
movl 0x54(%rax), %eax
movl %eax, -0x250(%rbp)
movb $0x0, -0x24c(%rbp)
leaq -0x258(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
movl $0x0, -0x268(%rbp)
movl $0x20, -0x264(%rbp)
movq -0x10(%rbp), %rax
movl 0x58(%rax), %eax
movl %eax, -0x260(%rbp)
movb $0x0, -0x25c(%rbp)
leaq -0x268(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
movl $0x2, -0x278(%rbp)
movl $0x1, -0x274(%rbp)
movq -0x10(%rbp), %rax
movl 0x38(%rax), %eax
movl %eax, -0x270(%rbp)
movb $0x0, -0x26c(%rbp)
leaq -0x278(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x30, %rdi
movl $0x0, -0x288(%rbp)
movl $0x1, -0x284(%rbp)
movq -0x10(%rbp), %rax
movl 0x30(%rax), %eax
movl %eax, -0x280(%rbp)
movb $0x0, -0x27c(%rbp)
leaq -0x288(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x18, %rdi
movl $0x1, -0x298(%rbp)
movl $0x1, -0x294(%rbp)
movq -0x10(%rbp), %rax
movl 0x40(%rax), %eax
movl %eax, -0x290(%rbp)
movb $0x0, -0x28c(%rbp)
leaq -0x298(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x18, %rdi
movl $0x7, -0x2a8(%rbp)
movl $0x1, -0x2a4(%rbp)
movq -0x10(%rbp), %rax
movl 0x30(%rax), %eax
movl %eax, -0x2a0(%rbp)
movb $0x0, -0x29c(%rbp)
leaq -0x2a8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x30, %rdi
movl $0x7, -0x2b8(%rbp)
movl $0x1, -0x2b4(%rbp)
movq -0x10(%rbp), %rax
movl 0x30(%rax), %eax
movl %eax, -0x2b0(%rbp)
movb $0x0, -0x2ac(%rbp)
leaq -0x2b8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0xa8, %rdi
movl $0x0, -0x2c8(%rbp)
movl $0x1, -0x2c4(%rbp)
movq -0x10(%rbp), %rax
movl 0x5c(%rax), %eax
movl %eax, -0x2c0(%rbp)
movb $0x0, -0x2bc(%rbp)
leaq -0x2c8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
movl $0x8, -0x2d8(%rbp)
movl $0x1, -0x2d4(%rbp)
movl $0x1, -0x2d0(%rbp)
movb $0x0, -0x2cc(%rbp)
leaq -0x2d8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
movl $0x0, -0x2e8(%rbp)
movl $0x1, -0x2e4(%rbp)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movl %eax, -0x2e0(%rbp)
movb $0x0, -0x2dc(%rbp)
leaq -0x2e8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
movl $0x1, -0x2f8(%rbp)
movl $0x1, -0x2f4(%rbp)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movl %eax, -0x2f0(%rbp)
movb $0x0, -0x2ec(%rbp)
leaq -0x2f8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
movl $0x2, -0x308(%rbp)
movl $0x1, -0x304(%rbp)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movl %eax, -0x300(%rbp)
movb $0x0, -0x2fc(%rbp)
leaq -0x308(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x18, %rdi
movl $0xa, -0x318(%rbp)
movl $0x1, -0x314(%rbp)
movq -0x10(%rbp), %rax
movl 0x30(%rax), %eax
movl %eax, -0x310(%rbp)
movb $0x0, -0x30c(%rbp)
leaq -0x318(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x30, %rdi
movl $0xa, -0x328(%rbp)
movl $0x1, -0x324(%rbp)
movq -0x10(%rbp), %rax
movl 0x30(%rax), %eax
movl %eax, -0x320(%rbp)
movb $0x0, -0x31c(%rbp)
leaq -0x328(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x108, %rdi            # imm = 0x108
movl $0x0, -0x338(%rbp)
movl $0x1, -0x334(%rbp)
movq -0x10(%rbp), %rax
movl 0x74(%rax), %eax
movl %eax, -0x330(%rbp)
movb $0x0, -0x32c(%rbp)
leaq -0x338(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0xa8, %rdi
movl $0x7, -0x348(%rbp)
movl $0x1, -0x344(%rbp)
movq -0x10(%rbp), %rax
movl 0x5c(%rax), %eax
movl %eax, -0x340(%rbp)
movb $0x0, -0x33c(%rbp)
leaq -0x348(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0xa8, %rdi
movl $0x8, -0x358(%rbp)
movl $0x1, -0x354(%rbp)
movl $0x1, -0x350(%rbp)
movb $0x0, -0x34c(%rbp)
leaq -0x358(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
movl $0x7, -0x368(%rbp)
movl $0x1, -0x364(%rbp)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movl %eax, -0x360(%rbp)
movb $0x0, -0x35c(%rbp)
leaq -0x368(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x108, %rdi            # imm = 0x108
movl $0x7, -0x378(%rbp)
movl $0x1, -0x374(%rbp)
movq -0x10(%rbp), %rax
movl 0x74(%rax), %eax
movl %eax, -0x370(%rbp)
movb $0x0, -0x36c(%rbp)
leaq -0x378(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0xc0, %rdi
movl $0x9, -0x388(%rbp)
movl $0x1, -0x384(%rbp)
movq -0x10(%rbp), %rax
movl 0x64(%rax), %eax
movl %eax, -0x380(%rbp)
movb $0x0, -0x37c(%rbp)
leaq -0x388(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
movl $0x8, -0x398(%rbp)
movl $0x1, -0x394(%rbp)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movl %eax, -0x390(%rbp)
movb $0x0, -0x38c(%rbp)
leaq -0x398(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
movl $0xa, -0x3a8(%rbp)
movl $0x1, -0x3a4(%rbp)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movl %eax, -0x3a0(%rbp)
movb $0x0, -0x39c(%rbp)
leaq -0x3a8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x108, %rdi            # imm = 0x108
movl $0x8, -0x3b8(%rbp)
movl $0x1, -0x3b4(%rbp)
movq -0x10(%rbp), %rax
movl 0x74(%rax), %eax
movl %eax, -0x3b0(%rbp)
movb $0x0, -0x3ac(%rbp)
leaq -0x3b8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0xf0, %rdi
movl $0xb, -0x3c8(%rbp)
movl $0x1, -0x3c4(%rbp)
movq -0x10(%rbp), %rax
movl 0x70(%rax), %eax
movl %eax, -0x3c0(%rbp)
movb $0x0, -0x3bc(%rbp)
leaq -0x3c8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x108, %rdi            # imm = 0x108
movl $0xa, -0x3d8(%rbp)
movl $0x1, -0x3d4(%rbp)
movq -0x10(%rbp), %rax
movl 0x74(%rax), %eax
movl %eax, -0x3d0(%rbp)
movb $0x0, -0x3cc(%rbp)
leaq -0x3d8(%rbp), %rsi
callq 0x1bd130
movq -0x550(%rbp), %rax
addq $0x1ce0, %rax           # imm = 0x1CE0
addq $0x240, %rax            # imm = 0x240
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
addq $0x48, %rdi
movl $0x3, -0x3e8(%rbp)
movl $0x1, -0x3e4(%rbp)
movq -0x10(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x3e0(%rbp)
movb $0x0, -0x3dc(%rbp)
leaq -0x3e8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x48, %rdi
movl $0x5, -0x3f8(%rbp)
movl $0x1, -0x3f4(%rbp)
movq -0x10(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x3f0(%rbp)
movb $0x0, -0x3ec(%rbp)
leaq -0x3f8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x78, %rdi
movl $0x3, -0x408(%rbp)
movl $0x1, -0x404(%rbp)
movq -0x10(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x400(%rbp)
movb $0x0, -0x3fc(%rbp)
leaq -0x408(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x78, %rdi
movl $0x5, -0x418(%rbp)
movl $0x1, -0x414(%rbp)
movq -0x10(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x410(%rbp)
movb $0x0, -0x40c(%rbp)
leaq -0x418(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
movl $0x4, -0x428(%rbp)
movl $0x1, -0x424(%rbp)
movq -0x10(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x420(%rbp)
movb $0x0, -0x41c(%rbp)
leaq -0x428(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
movl $0x6, -0x438(%rbp)
movl $0x1, -0x434(%rbp)
movq -0x10(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x430(%rbp)
movb $0x0, -0x42c(%rbp)
leaq -0x438(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x90, %rdi
movl $0x4, -0x448(%rbp)
movl $0x1, -0x444(%rbp)
movq -0x10(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x440(%rbp)
movb $0x0, -0x43c(%rbp)
leaq -0x448(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x90, %rdi
movl $0x6, -0x458(%rbp)
movl $0x1, -0x454(%rbp)
movq -0x10(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x450(%rbp)
movb $0x0, -0x44c(%rbp)
leaq -0x458(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
movl $0x4, -0x468(%rbp)
movl $0x1, -0x464(%rbp)
movq -0x10(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x460(%rbp)
movb $0x0, -0x45c(%rbp)
leaq -0x468(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
movl $0x6, -0x478(%rbp)
movl $0x1, -0x474(%rbp)
movq -0x10(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x470(%rbp)
movb $0x0, -0x46c(%rbp)
leaq -0x478(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x90, %rdi
movl $0x4, -0x488(%rbp)
movl $0x1, -0x484(%rbp)
movq -0x10(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x480(%rbp)
movb $0x0, -0x47c(%rbp)
leaq -0x488(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x90, %rdi
movl $0x6, -0x498(%rbp)
movl $0x1, -0x494(%rbp)
movq -0x10(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x490(%rbp)
movb $0x0, -0x48c(%rbp)
leaq -0x498(%rbp), %rsi
callq 0x1bd130
movq -0x550(%rbp), %rax
addq $0x1ce0, %rax           # imm = 0x1CE0
addq $0x360, %rax            # imm = 0x360
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
movl $0x3, -0x4a8(%rbp)
movl $0x1, -0x4a4(%rbp)
movq -0x10(%rbp), %rax
movl 0x28(%rax), %eax
movl %eax, -0x4a0(%rbp)
movb $0x0, -0x49c(%rbp)
leaq -0x4a8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
movl $0x5, -0x4b8(%rbp)
movl $0x1, -0x4b4(%rbp)
movq -0x10(%rbp), %rax
movl 0x28(%rax), %eax
movl %eax, -0x4b0(%rbp)
movb $0x0, -0x4ac(%rbp)
leaq -0x4b8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
movl $0x4, -0x4c8(%rbp)
movl $0x1, -0x4c4(%rbp)
movq -0x10(%rbp), %rax
movl 0x2c(%rax), %eax
movl %eax, -0x4c0(%rbp)
movb $0x0, -0x4bc(%rbp)
leaq -0x4c8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
movl $0x6, -0x4d8(%rbp)
movl $0x1, -0x4d4(%rbp)
movq -0x10(%rbp), %rax
movl 0x2c(%rax), %eax
movl %eax, -0x4d0(%rbp)
movb $0x0, -0x4cc(%rbp)
leaq -0x4d8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x48, %rdi
movl $0x1, -0x4e8(%rbp)
movl $0x1, -0x4e4(%rbp)
movq -0x10(%rbp), %rax
movl 0x44(%rax), %eax
movl %eax, -0x4e0(%rbp)
movb $0x0, -0x4dc(%rbp)
leaq -0x4e8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
movl $0x1, -0x4f8(%rbp)
movl $0x1, -0x4f4(%rbp)
movq -0x10(%rbp), %rax
movl 0x34(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
movq -0x10(%rbp), %rcx
addl 0x4c(%rcx), %eax
movl %eax, -0x4f0(%rbp)
movb $0x0, -0x4ec(%rbp)
leaq -0x4f8(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x78, %rdi
movl $0x0, -0x508(%rbp)
movl $0x1, -0x504(%rbp)
movq -0x10(%rbp), %rax
movl 0x44(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x30(%rcx), %eax
movl %eax, -0x500(%rbp)
movb $0x0, -0x4fc(%rbp)
leaq -0x508(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x90, %rdi
movl $0x0, -0x518(%rbp)
movl $0x1, -0x514(%rbp)
movq -0x10(%rbp), %rax
movl 0x34(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
movq -0x10(%rbp), %rcx
addl 0x4c(%rcx), %eax
movq -0x10(%rbp), %rcx
addl 0x30(%rcx), %eax
movl %eax, -0x510(%rbp)
movb $0x0, -0x50c(%rbp)
leaq -0x518(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
movl $0x0, -0x528(%rbp)
movl $0x1, -0x524(%rbp)
movq -0x10(%rbp), %rax
movl 0x3c(%rax), %eax
movl %eax, -0x520(%rbp)
movb $0x0, -0x51c(%rbp)
leaq -0x528(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
movl $0x1, -0x538(%rbp)
movl $0x1, -0x534(%rbp)
movq -0x10(%rbp), %rax
movl 0x38(%rax), %eax
movl %eax, -0x530(%rbp)
movb $0x0, -0x52c(%rbp)
leaq -0x538(%rbp), %rsi
callq 0x1bd130
movq -0x18(%rbp), %rdi
addq $0x18, %rdi
movl $0x0, -0x548(%rbp)
movl $0x1, -0x544(%rbp)
movq -0x10(%rbp), %rax
movl 0x30(%rax), %eax
movl %eax, -0x540(%rbp)
movb $0x0, -0x53c(%rbp)
leaq -0x548(%rbp), %rsi
callq 0x1bd130
addq $0x550, %rsp            # imm = 0x550
popq %rbp
retq
nopw %cs:(%rax,%rax)