// File: /workspace/github_cpp_makefile_star2_O1/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
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %rax
leaq -0x38(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0x9c8e
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rsi
movq -0x10(%rax,%rcx,8), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq $0x3, %rax
je 0xa7f3
cmpq $0x2, %rax
jne 0xa88b
addq $0x20, %rsi
leaq 0x243d3(%rip), %r14     # 0x2eb60
movq %r14, %rdi
callq 0xb9ca
addq $0x8, %r14
cmpq %r14, %rax
je 0xa94a
leaq 0x140(%rbx), %rdi
leaq -0x48(%rbp), %rsi
callq 0xb482
movq (%rax), %r13
movq 0x8(%rax), %r14
addq %rbx, %r14
testb $0x1, %r13b
je 0xa7ca
movq (%r14), %rax
movq -0x1(%rax,%r13), %r13
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rsi
addq $0x20, %rsi
leaq 0x24377(%rip), %rdi     # 0x2eb60
callq 0xb502
jmp 0xab56
addq $0x40, %rsi
leaq 0x24362(%rip), %r14     # 0x2eb60
movq %r14, %rdi
callq 0xb9ca
addq $0x8, %r14
cmpq %r14, %rax
je 0xa9bc
leaq 0x140(%rbx), %rdi
leaq -0x48(%rbp), %rsi
callq 0xb482
movq (%rax), %r13
movq 0x8(%rax), %r14
addq %rbx, %r14
testb $0x1, %r13b
je 0xa83b
movq (%r14), %rax
movq -0x1(%rax,%r13), %r13
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rsi
addq $0x20, %rsi
leaq 0x24306(%rip), %rdi     # 0x2eb60
callq 0xb502
movl (%rax), %r15d
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rsi
addq $0x40, %rsi
leaq 0x242df(%rip), %rdi     # 0x2eb60
callq 0xb502
jmp 0xabc7
addq $0x60, %rsi
leaq 0x242ca(%rip), %r14     # 0x2eb60
movq %r14, %rdi
callq 0xb9ca
addq $0x8, %r14
cmpq %r14, %rax
je 0xaa55
leaq 0x140(%rbx), %rdi
leaq -0x48(%rbp), %rsi
callq 0xb482
movq (%rax), %r13
movq 0x8(%rax), %r14
addq %rbx, %r14
testb $0x1, %r13b
je 0xa8d3
movq (%r14), %rax
movq -0x1(%rax,%r13), %r13
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rsi
addq $0x20, %rsi
leaq 0x2426e(%rip), %rdi     # 0x2eb60
callq 0xb502
movl (%rax), %r15d
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rsi
addq $0x40, %rsi
leaq 0x24247(%rip), %rdi     # 0x2eb60
callq 0xb502
movl (%rax), %r12d
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rsi
addq $0x60, %rsi
leaq 0x24220(%rip), %rdi     # 0x2eb60
callq 0xb502
jmp 0xac61
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rdi
addq $0x20, %rdi
callq 0xaf8c
leaq 0x140(%rbx), %rdi
testb %al, %al
je 0xab14
leaq -0x48(%rbp), %rsi
callq 0xb482
movq (%rax), %r13
movq 0x8(%rax), %r14
addq %rbx, %r14
testb $0x1, %r13b
je 0xa997
movq (%r14), %rax
movq -0x1(%rax,%r13), %r13
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rax
movq 0x20(%rax), %rdi
callq 0x5480
movl %eax, %r15d
jmp 0xab59
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rdi
addq $0x40, %rdi
callq 0xaf8c
leaq 0x140(%rbx), %rdi
testb %al, %al
je 0xab5e
leaq -0x48(%rbp), %rsi
callq 0xb482
movq (%rax), %r13
movq 0x8(%rax), %r14
addq %rbx, %r14
testb $0x1, %r13b
je 0xaa09
movq (%r14), %rax
movq -0x1(%rax,%r13), %r13
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rsi
addq $0x20, %rsi
leaq 0x24138(%rip), %rdi     # 0x2eb60
callq 0xb502
movl (%rax), %r15d
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rax
movq 0x40(%rax), %rdi
callq 0x5480
movl %eax, %r12d
jmp 0xabca
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rdi
addq $0x60, %rdi
callq 0xaf8c
leaq 0x140(%rbx), %rdi
testb %al, %al
je 0xabd1
leaq -0x48(%rbp), %rsi
callq 0xb482
movq (%rax), %r13
movq 0x8(%rax), %r14
addq %rbx, %r14
testb $0x1, %r13b
je 0xaaa2
movq (%r14), %rax
movq -0x1(%rax,%r13), %r13
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rsi
addq $0x20, %rsi
leaq 0x2409f(%rip), %rdi     # 0x2eb60
callq 0xb502
movl (%rax), %r15d
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rsi
addq $0x40, %rsi
leaq 0x24078(%rip), %rdi     # 0x2eb60
callq 0xb502
movl (%rax), %r12d
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rax
movq 0x60(%rax), %rdi
callq 0x5480
movl %eax, %ecx
jmp 0xac63
leaq -0x48(%rbp), %rsi
callq 0xb482
movq (%rax), %r13
movq 0x8(%rax), %r14
addq %rbx, %r14
testb $0x1, %r13b
je 0xab35
movq (%r14), %rax
movq -0x1(%rax,%r13), %r13
leaq 0x68(%rbx), %rdi
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rsi
addq $0x20, %rsi
callq 0xb582
movl (%rax), %r15d
xorl %r12d, %r12d
jmp 0xabca
leaq -0x48(%rbp), %rsi
callq 0xb482
movq (%rax), %r13
movq 0x8(%rax), %r14
addq %rbx, %r14
testb $0x1, %r13b
je 0xab7f
movq (%r14), %rax
movq -0x1(%rax,%r13), %r13
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rsi
addq $0x20, %rsi
leaq 0x23fc2(%rip), %rdi     # 0x2eb60
callq 0xb502
movl (%rax), %r15d
leaq 0x68(%rbx), %rdi
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rsi
addq $0x40, %rsi
callq 0xb582
movl (%rax), %r12d
xorl %ecx, %ecx
jmp 0xac63
leaq -0x48(%rbp), %rsi
callq 0xb482
movq (%rax), %r13
movq 0x8(%rax), %r14
addq %rbx, %r14
testb $0x1, %r13b
je 0xabf2
movq (%r14), %rax
movq -0x1(%rax,%r13), %r13
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rsi
addq $0x20, %rsi
leaq 0x23f4f(%rip), %rdi     # 0x2eb60
callq 0xb502
movl (%rax), %r15d
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rsi
addq $0x40, %rsi
leaq 0x23f28(%rip), %rdi     # 0x2eb60
callq 0xb502
movl (%rax), %r12d
leaq 0x68(%rbx), %rdi
movq 0x38(%rbx), %rax
movq 0x98(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
movq -0x18(%rax,%rcx,8), %rsi
addq $0x60, %rsi
callq 0xb582
movl (%rax), %ecx
movq %r14, %rdi
movl %r15d, %esi
movl %r12d, %edx
callq *%r13
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0xac81
callq 0x52d0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xac93
callq 0x52d0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0xacb7
callq 0x52d0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xacc9
callq 0x52d0
movq %rbx, %rdi
callq 0x5570
nop