// File: /workspace/github_cpp_makefile_star2_O2/pollow[P]MIPSClide/simulator.cpp
// Function: Simulator::tick()
void Simulator::tick() {
    pc++;
    string com = elements[pc-1][0];
    string tmp;
    if ( elements[pc-1].size() == 2 ) {
        if (Instruction::regs.count(elements[pc-1][1])) {
            (this->*(func_table[com]))(Instruction::regs[elements[pc-1][1]], 0, 0);
        } else if (is_number(elements[pc-1][1])) {
            (this->*(func_table[com]))(atoi(elements[pc-1][1].c_str()), 0, 0);
        } else {
            (this->*(func_table[com]))(labels[elements[pc-1][1]], 0, 0);
        }
    } else if (elements[pc-1].size() == 3 ) {
        if (Instruction::regs.count(elements[pc-1][2])) {
            (this->*(func_table[com]))(Instruction::regs[elements[pc-1][1]], Instruction::regs[elements[pc-1][2]], 0);
        } else if (is_number(elements[pc-1][2])) {
            (this->*(func_table[com]))(Instruction::regs[elements[pc-1][1]], atoi(elements[pc-1][2].c_str()), 0);
        } else {
            (this->*(func_table[com]))(Instruction::regs[elements[pc-1][1]], labels[elements[pc-1][2]], 0);
        }
    } else {
        if (Instruction::regs.count(elements[pc-1][3])) {
            (this->*(func_table[com]))(Instruction::regs[elements[pc-1][1]], Instruction::regs[elements[pc-1][2]], Instruction::regs[elements[pc-1][3]]);
        } else if (is_number(elements[pc-1][3])) {
            (this->*(func_table[com]))(Instruction::regs[elements[pc-1][1]], Instruction::regs[elements[pc-1][2]], atoi(elements[pc-1][3].c_str()));
        } else {
            (this->*(func_table[com]))(Instruction::regs[elements[pc-1][1]], Instruction::regs[elements[pc-1][2]], labels[elements[pc-1][3]]);
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq 0x98(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x98(%rdi)
movq 0x38(%rdi), %rcx
imulq $0x18, %rax, %rax
movq (%rcx,%rax), %rsi
leaq -0x48(%rbp), %rdi
callq 0x5410
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rsi
movq -0x10(%rax,%rcx), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq $0x3, %rax
je 0xa07b
cmpq $0x2, %rax
jne 0xa106
addq $0x20, %rsi
leaq 0x24b51(%rip), %rdi     # 0x2eb70
callq 0xabb0
testq %rax, %rax
je 0xa1b5
leaq 0x140(%rbx), %rdi
leaq -0x48(%rbp), %rsi
callq 0xabd4
movq (%rax), %r13
movq 0x8(%rax), %r14
addq %rbx, %r14
testb $0x1, %r13b
je 0xa055
movq (%r14), %rax
movq -0x1(%rax,%r13), %r13
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rsi
addq $0x20, %rsi
leaq 0x24aff(%rip), %rdi     # 0x2eb70
callq 0xac3e
jmp 0xa3a3
addq $0x40, %rsi
leaq 0x24aea(%rip), %rdi     # 0x2eb70
callq 0xabb0
testq %rax, %rax
je 0xa221
leaq 0x140(%rbx), %rdi
leaq -0x48(%rbp), %rsi
callq 0xabd4
movq (%rax), %r13
movq 0x8(%rax), %r14
addq %rbx, %r14
testb $0x1, %r13b
je 0xa0bc
movq (%r14), %rax
movq -0x1(%rax,%r13), %r13
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rsi
addq $0x20, %rsi
leaq 0x24a98(%rip), %rdi     # 0x2eb70
callq 0xac3e
movl (%rax), %r15d
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rsi
addq $0x40, %rsi
leaq 0x24a74(%rip), %rdi     # 0x2eb70
callq 0xac3e
jmp 0xa40e
addq $0x60, %rsi
leaq 0x24a5f(%rip), %rdi     # 0x2eb70
callq 0xabb0
testq %rax, %rax
je 0xa2b1
leaq 0x140(%rbx), %rdi
leaq -0x48(%rbp), %rsi
callq 0xabd4
movq (%rax), %r13
movq 0x8(%rax), %r14
addq %rbx, %r14
testb $0x1, %r13b
je 0xa147
movq (%r14), %rax
movq -0x1(%rax,%r13), %r13
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rsi
addq $0x20, %rsi
leaq 0x24a0d(%rip), %rdi     # 0x2eb70
callq 0xac3e
movl (%rax), %r15d
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rsi
addq $0x40, %rsi
leaq 0x249e9(%rip), %rdi     # 0x2eb70
callq 0xac3e
movl (%rax), %r12d
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rsi
addq $0x60, %rsi
leaq 0x249c5(%rip), %rdi     # 0x2eb70
callq 0xac3e
jmp 0xa49f
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rdi
addq $0x20, %rdi
callq 0xa6cc
leaq 0x140(%rbx), %rdi
testb %al, %al
je 0xa364
leaq -0x48(%rbp), %rsi
callq 0xabd4
movq (%rax), %r13
movq 0x8(%rax), %r14
addq %rbx, %r14
testb $0x1, %r13b
je 0xa1ff
movq (%r14), %rax
movq -0x1(%rax,%r13), %r13
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rax
movq 0x20(%rax), %rdi
callq 0x5480
movl %eax, %r15d
jmp 0xa3a6
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rdi
addq $0x40, %rdi
callq 0xa6cc
leaq 0x140(%rbx), %rdi
testb %al, %al
je 0xa3ab
leaq -0x48(%rbp), %rsi
callq 0xabd4
movq (%rax), %r13
movq 0x8(%rax), %r14
addq %rbx, %r14
testb $0x1, %r13b
je 0xa26b
movq (%r14), %rax
movq -0x1(%rax,%r13), %r13
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rsi
addq $0x20, %rsi
leaq 0x248e9(%rip), %rdi     # 0x2eb70
callq 0xac3e
movl (%rax), %r15d
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rax
movq 0x40(%rax), %rdi
callq 0x5480
movl %eax, %r12d
jmp 0xa411
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rdi
addq $0x60, %rdi
callq 0xa6cc
leaq 0x140(%rbx), %rdi
testb %al, %al
je 0xa418
leaq -0x48(%rbp), %rsi
callq 0xabd4
movq (%rax), %r13
movq 0x8(%rax), %r14
addq %rbx, %r14
testb $0x1, %r13b
je 0xa2fb
movq (%r14), %rax
movq -0x1(%rax,%r13), %r13
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rsi
addq $0x20, %rsi
leaq 0x24859(%rip), %rdi     # 0x2eb70
callq 0xac3e
movl (%rax), %r15d
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rsi
addq $0x40, %rsi
leaq 0x24835(%rip), %rdi     # 0x2eb70
callq 0xac3e
movl (%rax), %r12d
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rax
movq 0x60(%rax), %rdi
callq 0x5480
movl %eax, %ecx
jmp 0xa4a1
leaq -0x48(%rbp), %rsi
callq 0xabd4
movq (%rax), %r13
movq 0x8(%rax), %r14
addq %rbx, %r14
testb $0x1, %r13b
je 0xa385
movq (%r14), %rax
movq -0x1(%rax,%r13), %r13
leaq 0x68(%rbx), %rdi
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rsi
addq $0x20, %rsi
callq 0xaca8
movl (%rax), %r15d
xorl %r12d, %r12d
jmp 0xa411
leaq -0x48(%rbp), %rsi
callq 0xabd4
movq (%rax), %r13
movq 0x8(%rax), %r14
addq %rbx, %r14
testb $0x1, %r13b
je 0xa3cc
movq (%r14), %rax
movq -0x1(%rax,%r13), %r13
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rsi
addq $0x20, %rsi
leaq 0x24788(%rip), %rdi     # 0x2eb70
callq 0xac3e
movl (%rax), %r15d
leaq 0x68(%rbx), %rdi
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rsi
addq $0x40, %rsi
callq 0xaca8
movl (%rax), %r12d
xorl %ecx, %ecx
jmp 0xa4a1
leaq -0x48(%rbp), %rsi
callq 0xabd4
movq (%rax), %r13
movq 0x8(%rax), %r14
addq %rbx, %r14
testb $0x1, %r13b
je 0xa439
movq (%r14), %rax
movq -0x1(%rax,%r13), %r13
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rsi
addq $0x20, %rsi
leaq 0x2471b(%rip), %rdi     # 0x2eb70
callq 0xac3e
movl (%rax), %r15d
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rsi
addq $0x40, %rsi
leaq 0x246f7(%rip), %rdi     # 0x2eb70
callq 0xac3e
movl (%rax), %r12d
leaq 0x68(%rbx), %rdi
movq 0x38(%rbx), %rax
imulq $0x18, 0x98(%rbx), %rcx
movq -0x18(%rax,%rcx), %rsi
addq $0x60, %rsi
callq 0xaca8
movl (%rax), %ecx
movq %r14, %rdi
movl %r15d, %esi
movl %r12d, %edx
callq *%r13
leaq -0x68(%rbp), %rdi
callq 0x5170
leaq -0x48(%rbp), %rdi
callq 0x5170
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0x5170
leaq -0x48(%rbp), %rdi
callq 0x5170
movq %rbx, %rdi
callq 0x5580
nop