// File: CMU-SAFARI[P]ramulator/src/WideIO.cpp
// Function: ramulator::WideIO::init_timing()
void WideIO::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.nCCD});
    t[int(Command::RD)].push_back({Command::RDA, 1, s.nCCD});
    t[int(Command::RDA)].push_back({Command::RD, 1, s.nCCD});
    t[int(Command::RDA)].push_back({Command::RDA, 1, s.nCCD});
    t[int(Command::WR)].push_back({Command::WR, 1, s.nCCD});
    t[int(Command::WR)].push_back({Command::WRA, 1, s.nCCD});
    t[int(Command::WRA)].push_back({Command::WR, 1, s.nCCD});
    t[int(Command::WRA)].push_back({Command::WRA, 1, s.nCCD});
    t[int(Command::RD)].push_back({Command::WR, 1, s.nRTW});
    t[int(Command::RD)].push_back({Command::WRA, 1, s.nRTW});
    t[int(Command::RDA)].push_back({Command::WR, 1, s.nRTW});
    t[int(Command::RDA)].push_back({Command::WRA, 1, s.nRTW});
    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});

    // CAS <-> PRA
    t[int(Command::RD)].push_back({Command::PRA, 1, s.nRTP});
    t[int(Command::WR)].push_back({Command::PRA, 1, s.nCWL + s.nBL + s.nWR});

    // CAS <-> PD
    t[int(Command::RD)].push_back({Command::PD, 1, s.nCL + s.nBL + 1});
    t[int(Command::RDA)].push_back({Command::PD, 1, s.nCL + s.nBL + 1});
    t[int(Command::WR)].push_back({Command::PD, 1, s.nCWL + s.nBL + s.nWR});
    t[int(Command::WRA)].push_back({Command::PD, 1, s.nCWL + s.nBL + s.nWR + 1}); // +1 for pre
    t[int(Command::PDX)].push_back({Command::RD, 1, s.nXP});
    t[int(Command::PDX)].push_back({Command::RDA, 1, s.nXP});
    t[int(Command::PDX)].push_back({Command::WR, 1, s.nXP});
    t[int(Command::PDX)].push_back({Command::WRA, 1, s.nXP});
    
    // 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, 2, s.nTAW});
    t[int(Command::ACT)].push_back({Command::PRA, 1, s.nRAS});
    t[int(Command::PRA)].push_back({Command::ACT, 1, s.nRP});

    // RAS <-> REF
    t[int(Command::PRE)].push_back({Command::REF, 1, s.nRP});
    t[int(Command::PRA)].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::PD, 1, 1});
    t[int(Command::PDX)].push_back({Command::ACT, 1, s.nXP});
    t[int(Command::PDX)].push_back({Command::PRE, 1, s.nXP});
    t[int(Command::PDX)].push_back({Command::PRA, 1, s.nXP});

    // RAS <-> SR
    t[int(Command::PRE)].push_back({Command::SREF, 1, s.nRP});
    t[int(Command::PRA)].push_back({Command::SREF, 1, s.nRP});
    t[int(Command::SREFX)].push_back({Command::ACT, 1, s.nXSR});

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

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

    // REF <-> SR
    t[int(Command::SREFX)].push_back({Command::REF, 1, s.nXSR});
    
    // PD <-> PD
    t[int(Command::PD)].push_back({Command::PDX, 1, s.nCKE});
    t[int(Command::PDX)].push_back({Command::PD, 1, s.nXP});

    // PD <-> SR
    t[int(Command::PDX)].push_back({Command::SREF, 1, s.nXP});
    t[int(Command::SREFX)].push_back({Command::PD, 1, s.nXSR});
    
    // SR <-> SR
    t[int(Command::SREF)].push_back({Command::SREFX, 1, s.nCKESR});
    t[int(Command::SREFX)].push_back({Command::SREF, 1, s.nXSR});


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

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

    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 $0x470, %rsp            # imm = 0x470
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x470(%rbp)
movq %rax, %rcx
addq $0x26f8, %rcx           # imm = 0x26F8
movq %rcx, -0x10(%rbp)
addq $0x1860, %rax           # imm = 0x1860
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 0x23e1e0
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 0x23e1e0
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 0x23e1e0
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 0x23e1e0
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 0x23e1e0
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 0x23e1e0
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 0x23e1e0
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 0x23e1e0
movq -0x470(%rbp), %rax
addq $0x1860, %rax           # imm = 0x1860
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 0x23e1e0
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 0x23e1e0
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 0x23e1e0
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 0x23e1e0
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 0x23e1e0
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 0x23e1e0
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 0x23e1e0
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 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x48, %rdi
movl $0x4, -0x128(%rbp)
movl $0x1, -0x124(%rbp)
movq -0x10(%rbp), %rax
movl 0x40(%rax), %eax
movl %eax, -0x120(%rbp)
movb $0x0, -0x11c(%rbp)
leaq -0x128(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x48, %rdi
movl $0x6, -0x138(%rbp)
movl $0x1, -0x134(%rbp)
movq -0x10(%rbp), %rax
movl 0x40(%rax), %eax
movl %eax, -0x130(%rbp)
movb $0x0, -0x12c(%rbp)
leaq -0x138(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x78, %rdi
movl $0x4, -0x148(%rbp)
movl $0x1, -0x144(%rbp)
movq -0x10(%rbp), %rax
movl 0x40(%rax), %eax
movl %eax, -0x140(%rbp)
movb $0x0, -0x13c(%rbp)
leaq -0x148(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x78, %rdi
movl $0x6, -0x158(%rbp)
movl $0x1, -0x154(%rbp)
movq -0x10(%rbp), %rax
movl 0x40(%rax), %eax
movl %eax, -0x150(%rbp)
movb $0x0, -0x14c(%rbp)
leaq -0x158(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
movl $0x3, -0x168(%rbp)
movl $0x1, -0x164(%rbp)
movq -0x10(%rbp), %rax
movl 0x30(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
movq -0x10(%rbp), %rcx
addl 0x44(%rcx), %eax
movl %eax, -0x160(%rbp)
movb $0x0, -0x15c(%rbp)
leaq -0x168(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
movl $0x5, -0x178(%rbp)
movl $0x1, -0x174(%rbp)
movq -0x10(%rbp), %rax
movl 0x30(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
movq -0x10(%rbp), %rcx
addl 0x44(%rcx), %eax
movl %eax, -0x170(%rbp)
movb $0x0, -0x16c(%rbp)
leaq -0x178(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x90, %rdi
movl $0x3, -0x188(%rbp)
movl $0x1, -0x184(%rbp)
movq -0x10(%rbp), %rax
movl 0x30(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
movq -0x10(%rbp), %rcx
addl 0x44(%rcx), %eax
movl %eax, -0x180(%rbp)
movb $0x0, -0x17c(%rbp)
leaq -0x188(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x90, %rdi
movl $0x5, -0x198(%rbp)
movl $0x1, -0x194(%rbp)
movq -0x10(%rbp), %rax
movl 0x30(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
movq -0x10(%rbp), %rcx
addl 0x44(%rcx), %eax
movl %eax, -0x190(%rbp)
movb $0x0, -0x18c(%rbp)
leaq -0x198(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x48, %rdi
movl $0x2, -0x1a8(%rbp)
movl $0x1, -0x1a4(%rbp)
movq -0x10(%rbp), %rax
movl 0x3c(%rax), %eax
movl %eax, -0x1a0(%rbp)
movb $0x0, -0x19c(%rbp)
leaq -0x1a8(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
movl $0x2, -0x1b8(%rbp)
movl $0x1, -0x1b4(%rbp)
movq -0x10(%rbp), %rax
movl 0x30(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
movq -0x10(%rbp), %rcx
addl 0x48(%rcx), %eax
movl %eax, -0x1b0(%rbp)
movb $0x0, -0x1ac(%rbp)
leaq -0x1b8(%rbp), %rsi
callq 0x23e1e0
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 0x23e1e0
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 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
movl $0x8, -0x1e8(%rbp)
movl $0x1, -0x1e4(%rbp)
movq -0x10(%rbp), %rax
movl 0x30(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
movq -0x10(%rbp), %rcx
addl 0x48(%rcx), %eax
movl %eax, -0x1e0(%rbp)
movb $0x0, -0x1dc(%rbp)
leaq -0x1e8(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x90, %rdi
movl $0x8, -0x1f8(%rbp)
movl $0x1, -0x1f4(%rbp)
movq -0x10(%rbp), %rax
movl 0x30(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
movq -0x10(%rbp), %rcx
addl 0x48(%rcx), %eax
addl $0x1, %eax
movl %eax, -0x1f0(%rbp)
movb $0x0, -0x1ec(%rbp)
leaq -0x1f8(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
movl $0x3, -0x208(%rbp)
movl $0x1, -0x204(%rbp)
movq -0x10(%rbp), %rax
movl 0x60(%rax), %eax
movl %eax, -0x200(%rbp)
movb $0x0, -0x1fc(%rbp)
leaq -0x208(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
movl $0x5, -0x218(%rbp)
movl $0x1, -0x214(%rbp)
movq -0x10(%rbp), %rax
movl 0x60(%rax), %eax
movl %eax, -0x210(%rbp)
movb $0x0, -0x20c(%rbp)
leaq -0x218(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
movl $0x4, -0x228(%rbp)
movl $0x1, -0x224(%rbp)
movq -0x10(%rbp), %rax
movl 0x60(%rax), %eax
movl %eax, -0x220(%rbp)
movb $0x0, -0x21c(%rbp)
leaq -0x228(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
movl $0x6, -0x238(%rbp)
movl $0x1, -0x234(%rbp)
movq -0x10(%rbp), %rax
movl 0x60(%rax), %eax
movl %eax, -0x230(%rbp)
movb $0x0, -0x22c(%rbp)
leaq -0x238(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
movl $0x0, -0x248(%rbp)
movl $0x1, -0x244(%rbp)
movq -0x10(%rbp), %rax
movl 0x4c(%rax), %eax
movl %eax, -0x240(%rbp)
movb $0x0, -0x23c(%rbp)
leaq -0x248(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
movl $0x0, -0x258(%rbp)
movl $0x2, -0x254(%rbp)
movq -0x10(%rbp), %rax
movl 0x50(%rax), %eax
movl %eax, -0x250(%rbp)
movb $0x0, -0x24c(%rbp)
leaq -0x258(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
movl $0x2, -0x268(%rbp)
movl $0x1, -0x264(%rbp)
movq -0x10(%rbp), %rax
movl 0x34(%rax), %eax
movl %eax, -0x260(%rbp)
movb $0x0, -0x25c(%rbp)
leaq -0x268(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x30, %rdi
movl $0x0, -0x278(%rbp)
movl $0x1, -0x274(%rbp)
movq -0x10(%rbp), %rax
movl 0x2c(%rax), %eax
movl %eax, -0x270(%rbp)
movb $0x0, -0x26c(%rbp)
leaq -0x278(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x18, %rdi
movl $0x7, -0x288(%rbp)
movl $0x1, -0x284(%rbp)
movq -0x10(%rbp), %rax
movl 0x2c(%rax), %eax
movl %eax, -0x280(%rbp)
movb $0x0, -0x27c(%rbp)
leaq -0x288(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x30, %rdi
movl $0x7, -0x298(%rbp)
movl $0x1, -0x294(%rbp)
movq -0x10(%rbp), %rax
movl 0x2c(%rax), %eax
movl %eax, -0x290(%rbp)
movb $0x0, -0x28c(%rbp)
leaq -0x298(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0xa8, %rdi
movl $0x0, -0x2a8(%rbp)
movl $0x1, -0x2a4(%rbp)
movq -0x10(%rbp), %rax
movl 0x54(%rax), %eax
movl %eax, -0x2a0(%rbp)
movb $0x0, -0x29c(%rbp)
leaq -0x2a8(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
movl $0x8, -0x2b8(%rbp)
movl $0x1, -0x2b4(%rbp)
movl $0x1, -0x2b0(%rbp)
movb $0x0, -0x2ac(%rbp)
leaq -0x2b8(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
movl $0x0, -0x2c8(%rbp)
movl $0x1, -0x2c4(%rbp)
movq -0x10(%rbp), %rax
movl 0x60(%rax), %eax
movl %eax, -0x2c0(%rbp)
movb $0x0, -0x2bc(%rbp)
leaq -0x2c8(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
movl $0x1, -0x2d8(%rbp)
movl $0x1, -0x2d4(%rbp)
movq -0x10(%rbp), %rax
movl 0x60(%rax), %eax
movl %eax, -0x2d0(%rbp)
movb $0x0, -0x2cc(%rbp)
leaq -0x2d8(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
movl $0x2, -0x2e8(%rbp)
movl $0x1, -0x2e4(%rbp)
movq -0x10(%rbp), %rax
movl 0x60(%rax), %eax
movl %eax, -0x2e0(%rbp)
movb $0x0, -0x2dc(%rbp)
leaq -0x2e8(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x18, %rdi
movl $0xa, -0x2f8(%rbp)
movl $0x1, -0x2f4(%rbp)
movq -0x10(%rbp), %rax
movl 0x2c(%rax), %eax
movl %eax, -0x2f0(%rbp)
movb $0x0, -0x2ec(%rbp)
leaq -0x2f8(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x30, %rdi
movl $0xa, -0x308(%rbp)
movl $0x1, -0x304(%rbp)
movq -0x10(%rbp), %rax
movl 0x2c(%rax), %eax
movl %eax, -0x300(%rbp)
movb $0x0, -0x2fc(%rbp)
leaq -0x308(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x108, %rdi            # imm = 0x108
movl $0x0, -0x318(%rbp)
movl $0x1, -0x314(%rbp)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movl %eax, -0x310(%rbp)
movb $0x0, -0x30c(%rbp)
leaq -0x318(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0xa8, %rdi
movl $0x7, -0x328(%rbp)
movl $0x1, -0x324(%rbp)
movq -0x10(%rbp), %rax
movl 0x54(%rax), %eax
movl %eax, -0x320(%rbp)
movb $0x0, -0x31c(%rbp)
leaq -0x328(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0xa8, %rdi
movl $0x8, -0x338(%rbp)
movl $0x1, -0x334(%rbp)
movl $0x1, -0x330(%rbp)
movb $0x0, -0x32c(%rbp)
leaq -0x338(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
movl $0x7, -0x348(%rbp)
movl $0x1, -0x344(%rbp)
movq -0x10(%rbp), %rax
movl 0x60(%rax), %eax
movl %eax, -0x340(%rbp)
movb $0x0, -0x33c(%rbp)
leaq -0x348(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x108, %rdi            # imm = 0x108
movl $0x7, -0x358(%rbp)
movl $0x1, -0x354(%rbp)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movl %eax, -0x350(%rbp)
movb $0x0, -0x34c(%rbp)
leaq -0x358(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0xc0, %rdi
movl $0x9, -0x368(%rbp)
movl $0x1, -0x364(%rbp)
movq -0x10(%rbp), %rax
movl 0x5c(%rax), %eax
movl %eax, -0x360(%rbp)
movb $0x0, -0x35c(%rbp)
leaq -0x368(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
movl $0x8, -0x378(%rbp)
movl $0x1, -0x374(%rbp)
movq -0x10(%rbp), %rax
movl 0x60(%rax), %eax
movl %eax, -0x370(%rbp)
movb $0x0, -0x36c(%rbp)
leaq -0x378(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
movl $0xa, -0x388(%rbp)
movl $0x1, -0x384(%rbp)
movq -0x10(%rbp), %rax
movl 0x60(%rax), %eax
movl %eax, -0x380(%rbp)
movb $0x0, -0x37c(%rbp)
leaq -0x388(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x108, %rdi            # imm = 0x108
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 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0xf0, %rdi
movl $0xb, -0x3a8(%rbp)
movl $0x1, -0x3a4(%rbp)
movq -0x10(%rbp), %rax
movl 0x64(%rax), %eax
movl %eax, -0x3a0(%rbp)
movb $0x0, -0x39c(%rbp)
leaq -0x3a8(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x108, %rdi            # imm = 0x108
movl $0xa, -0x3b8(%rbp)
movl $0x1, -0x3b4(%rbp)
movq -0x10(%rbp), %rax
movl 0x68(%rax), %eax
movl %eax, -0x3b0(%rbp)
movb $0x0, -0x3ac(%rbp)
leaq -0x3b8(%rbp), %rsi
callq 0x23e1e0
movq -0x470(%rbp), %rax
addq $0x1860, %rax           # imm = 0x1860
addq $0x240, %rax            # imm = 0x240
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
movl $0x3, -0x3c8(%rbp)
movl $0x1, -0x3c4(%rbp)
movq -0x10(%rbp), %rax
movl 0x28(%rax), %eax
movl %eax, -0x3c0(%rbp)
movb $0x0, -0x3bc(%rbp)
leaq -0x3c8(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
movl $0x5, -0x3d8(%rbp)
movl $0x1, -0x3d4(%rbp)
movq -0x10(%rbp), %rax
movl 0x28(%rax), %eax
movl %eax, -0x3d0(%rbp)
movb $0x0, -0x3cc(%rbp)
leaq -0x3d8(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
movl $0x4, -0x3e8(%rbp)
movl $0x1, -0x3e4(%rbp)
movq -0x10(%rbp), %rax
movl 0x28(%rax), %eax
movl %eax, -0x3e0(%rbp)
movb $0x0, -0x3dc(%rbp)
leaq -0x3e8(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
movl $0x6, -0x3f8(%rbp)
movl $0x1, -0x3f4(%rbp)
movq -0x10(%rbp), %rax
movl 0x28(%rax), %eax
movl %eax, -0x3f0(%rbp)
movb $0x0, -0x3ec(%rbp)
leaq -0x3f8(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x48, %rdi
movl $0x1, -0x408(%rbp)
movl $0x1, -0x404(%rbp)
movq -0x10(%rbp), %rax
movl 0x3c(%rax), %eax
movl %eax, -0x400(%rbp)
movb $0x0, -0x3fc(%rbp)
leaq -0x408(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
movl $0x1, -0x418(%rbp)
movl $0x1, -0x414(%rbp)
movq -0x10(%rbp), %rax
movl 0x30(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
movq -0x10(%rbp), %rcx
addl 0x48(%rcx), %eax
movl %eax, -0x410(%rbp)
movb $0x0, -0x40c(%rbp)
leaq -0x418(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x78, %rdi
movl $0x0, -0x428(%rbp)
movl $0x1, -0x424(%rbp)
movq -0x10(%rbp), %rax
movl 0x3c(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x2c(%rcx), %eax
movl %eax, -0x420(%rbp)
movb $0x0, -0x41c(%rbp)
leaq -0x428(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x90, %rdi
movl $0x0, -0x438(%rbp)
movl $0x1, -0x434(%rbp)
movq -0x10(%rbp), %rax
movl 0x30(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x18(%rcx), %eax
movq -0x10(%rbp), %rcx
addl 0x48(%rcx), %eax
movq -0x10(%rbp), %rcx
addl 0x2c(%rcx), %eax
movl %eax, -0x430(%rbp)
movb $0x0, -0x42c(%rbp)
leaq -0x438(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
movl $0x0, -0x448(%rbp)
movl $0x1, -0x444(%rbp)
movq -0x10(%rbp), %rax
movl 0x38(%rax), %eax
movl %eax, -0x440(%rbp)
movb $0x0, -0x43c(%rbp)
leaq -0x448(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
movl $0x1, -0x458(%rbp)
movl $0x1, -0x454(%rbp)
movq -0x10(%rbp), %rax
movl 0x34(%rax), %eax
movl %eax, -0x450(%rbp)
movb $0x0, -0x44c(%rbp)
leaq -0x458(%rbp), %rsi
callq 0x23e1e0
movq -0x18(%rbp), %rdi
addq $0x18, %rdi
movl $0x0, -0x468(%rbp)
movl $0x1, -0x464(%rbp)
movq -0x10(%rbp), %rax
movl 0x2c(%rax), %eax
movl %eax, -0x460(%rbp)
movb $0x0, -0x45c(%rbp)
leaq -0x468(%rbp), %rsi
callq 0x23e1e0
addq $0x470, %rsp            # imm = 0x470
popq %rbp
retq
nopl (%rax,%rax)