// File: /workspace/github_cpp_makefile_star2_O1/pollow[P]MIPSClide/disassembler.cpp
// Function: Disassembler::reverse()
void Disassembler::reverse() {
    string str;
    for(size_t i = 0; i < codes.size(); i++) {
        Instruction tmp(codes[i]);
        str = tmp.reverse();
        if ( tmp.need_label ) {
            unsigned int t = pc+tmp.offset+1;
            if (labels.count(t) == 0) {
                labels[t] = "Label"+to_string(labels.size());
            }
            str += "Label"+to_string(labels.size());
        } else if ( tmp.need_target ) {
            unsigned int t = tmp.target;
            if (labels.count(t) == 0) {
                labels[t] = "Label"+to_string(labels.size());
            }
            str += "Label"+to_string(labels.size());
        }
        instructions.push_back("\t" + str);
        pc++;
    }
    for(auto i = labels.rbegin(); i != labels.rend(); i++) {
        instructions.insert(instructions.begin() + i->first, i->second + ":");
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rdi, %rbx
leaq -0x90(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x8(%rdi), %rax
cmpq %rax, 0x10(%rdi)
je 0x9a8d
leaq -0x108(%rbp), %r15
leaq 0x38(%rbx), %rcx
movq %rcx, -0x80(%rbp)
leaq 0x40(%rbx), %rcx
movq %rcx, -0x70(%rbp)
leaq 0x20(%rbx), %rcx
movq %rcx, -0x140(%rbp)
movabsq $0x346dc5d63886594b, %r14 # imm = 0x346DC5D63886594B
xorl %r12d, %r12d
movl (%rax,%r12,4), %eax
leaq -0x128(%rbp), %rcx
movq %rcx, -0x138(%rbp)
xorl %edx, %edx
movq %rdx, -0x130(%rbp)
movb %dl, -0x128(%rbp)
movq %r15, -0x118(%rbp)
movq %rdx, -0x110(%rbp)
movb %dl, -0x108(%rbp)
leaq -0xe8(%rbp), %rcx
movq %rcx, -0xf8(%rbp)
movq %rdx, -0xf0(%rbp)
movb %dl, -0xe8(%rbp)
leaq -0xc8(%rbp), %rcx
movq %rcx, -0xd8(%rbp)
movq %rdx, -0xd0(%rbp)
movb %dl, -0xc8(%rbp)
movl $0x0, -0xac(%rbp)
movw $0x0, -0xa7(%rbp)
movb %dl, -0xa5(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x48(%rbp), %r13
movq %r13, %rdi
leaq -0x138(%rbp), %rsi
callq 0x1d1d0
leaq -0xa0(%rbp), %rdi
movq %r13, %rsi
callq 0x53c0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x948c
callq 0x52d0
cmpb $0x1, -0xa6(%rbp)
jne 0x955d
movl (%rbx), %ecx
movswl -0xb4(%rbp), %edx
movq 0x48(%rbx), %rsi
movq -0x70(%rbp), %r9
movq %r9, %rax
testq %rsi, %rsi
je 0x94d0
leal (%rcx,%rdx), %edi
movq %r9, %rax
xorl %r8d, %r8d
cmpl %edi, 0x20(%rsi)
setle %r8b
cmovgq %rsi, %rax
movq 0x10(%rsi,%r8,8), %rsi
testq %rsi, %rsi
jne 0x94b8
leal (%rcx,%rdx), %r14d
incl %r14d
movq %r9, %rcx
cmpq %r9, %rax
je 0x94ea
cmpl 0x20(%rax), %r14d
cmovlq %r9, %rax
movq %rax, %rcx
cmpq %r9, %rcx
jne 0x96e2
movq 0x60(%rbx), %r15
movl $0x1, %esi
cmpq $0xa, %r15
jb 0x9620
movl $0x4, %esi
movq %r15, %rcx
cmpq $0x63, %rcx
jbe 0x9619
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x961e
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x9620
movq %rcx, %rax
movabsq $0x346dc5d63886594b, %rdx # imm = 0x346DC5D63886594B
mulq %rdx
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x950e
addl $-0x3, %esi
jmp 0x9620
cmpb $0x1, -0xa5(%rbp)
jne 0x99dc
movl -0xac(%rbp), %r15d
movq 0x48(%rbx), %rcx
movq -0x70(%rbp), %rax
testq %rcx, %rcx
je 0x9599
movq -0x70(%rbp), %rax
xorl %edx, %edx
cmpl %r15d, 0x20(%rcx)
setl %dl
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rdx,8), %rcx
testq %rcx, %rcx
jne 0x9582
movq -0x70(%rbp), %rdx
movq %rdx, %rcx
cmpq %rdx, %rax
je 0x95b0
cmpl 0x20(%rax), %r15d
cmovlq %rdx, %rax
movq %rax, %rcx
cmpq %rdx, %rcx
jne 0x98be
movq 0x60(%rbx), %r13
movl $0x1, %esi
cmpq $0xa, %r13
jb 0x97f2
movl $0x4, %esi
movq %r13, %rcx
cmpq $0x63, %rcx
jbe 0x97eb
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x97f0
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x97f2
movq %rcx, %rax
mulq %r14
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x95d4
addl $-0x3, %esi
jmp 0x97f2
addl $-0x2, %esi
jmp 0x9620
decl %esi
movl %esi, %esi
leaq -0x58(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq -0x68(%rbp), %r13
movq %r13, %rdi
xorl %edx, %edx
callq 0x53b0
movq -0x68(%rbp), %rdi
movl -0x60(%rbp), %esi
movq %r15, %rdx
callq 0x9dc1
movl $0x5, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x17a20(%rip), %rcx     # 0x2107b
callq 0x5370
leaq -0x38(%rbp), %rsi
movq %rsi, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x9684
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x968a
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl %r14d, -0x74(%rbp)
movq -0x80(%rbp), %rdi
leaq -0x74(%rbp), %rsi
callq 0x9c76
movq %rax, %rdi
leaq -0x48(%rbp), %rsi
callq 0x53c0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x96d0
callq 0x52d0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x96e2
callq 0x52d0
movq 0x60(%rbx), %r15
movl $0x1, %esi
cmpq $0xa, %r15
jb 0x9740
movl $0x4, %esi
movq %r15, %rcx
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
cmpq $0x63, %rcx
jbe 0x9739
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x973e
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x9740
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x9703
addl $-0x3, %esi
jmp 0x9740
addl $-0x2, %esi
jmp 0x9740
decl %esi
movl %esi, %esi
leaq -0x58(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq -0x68(%rbp), %r14
movq %r14, %rdi
xorl %edx, %edx
callq 0x53b0
movq -0x68(%rbp), %rdi
movl -0x60(%rbp), %esi
movq %r15, %rdx
callq 0x9dc1
movl $0x5, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x17900(%rip), %rcx     # 0x2107b
callq 0x5370
leaq -0x38(%rbp), %rsi
movq %rsi, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq -0x108(%rbp), %r15
movabsq $0x346dc5d63886594b, %r14 # imm = 0x346DC5D63886594B
je 0x97b5
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x97bb
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0xa0(%rbp), %rdi
callq 0x50c0
jmp 0x99b8
addl $-0x2, %esi
jmp 0x97f2
decl %esi
movl %esi, %esi
leaq -0x58(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq -0x68(%rbp), %r14
movq %r14, %rdi
xorl %edx, %edx
callq 0x53b0
movq -0x68(%rbp), %rdi
movl -0x60(%rbp), %esi
movq %r13, %rdx
callq 0x9dc1
movl $0x5, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x1784e(%rip), %rcx     # 0x2107b
callq 0x5370
leaq -0x38(%rbp), %rsi
movq %rsi, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
movabsq $0x346dc5d63886594b, %r14 # imm = 0x346DC5D63886594B
je 0x9860
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x9866
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl %r15d, -0x74(%rbp)
movq -0x80(%rbp), %rdi
leaq -0x74(%rbp), %rsi
callq 0x9c76
movq %rax, %rdi
leaq -0x48(%rbp), %rsi
callq 0x53c0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x98ac
callq 0x52d0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x98be
callq 0x52d0
movq 0x60(%rbx), %r15
movl $0x1, %esi
cmpq $0xa, %r15
jb 0x9912
movl $0x4, %esi
movq %r15, %rcx
cmpq $0x63, %rcx
jbe 0x990b
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x9910
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x9912
movq %rcx, %rax
mulq %r14
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x98d5
addl $-0x3, %esi
jmp 0x9912
addl $-0x2, %esi
jmp 0x9912
decl %esi
movl %esi, %esi
leaq -0x58(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq -0x68(%rbp), %r14
movq %r14, %rdi
xorl %edx, %edx
callq 0x53b0
movq -0x68(%rbp), %rdi
movl -0x60(%rbp), %esi
movq %r15, %rdx
callq 0x9dc1
movl $0x5, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x1772e(%rip), %rcx     # 0x2107b
callq 0x5370
leaq -0x38(%rbp), %rsi
movq %rsi, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq -0x108(%rbp), %r15
movabsq $0x346dc5d63886594b, %r14 # imm = 0x346DC5D63886594B
je 0x9987
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x998d
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0xa0(%rbp), %rdi
callq 0x50c0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x99ca
callq 0x52d0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x99dc
callq 0x52d0
leaq -0x48(%rbp), %r13
movq %r13, %rdi
leaq 0x17a18(%rip), %rsi     # 0x21402
leaq -0xa0(%rbp), %rdx
callq 0x9cdd
movq -0x140(%rbp), %rdi
movq %r13, %rsi
callq 0xa138
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x9a17
callq 0x52d0
incl (%rbx)
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x9a31
callq 0x52d0
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x9a49
callq 0x52d0
movq -0x118(%rbp), %rdi
cmpq %r15, %rdi
je 0x9a5a
callq 0x52d0
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
je 0x9a72
callq 0x52d0
incq %r12
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %rcx, %r12
jb 0x93ce
leaq 0x40(%rbx), %r14
cmpq 0x50(%rbx), %r14
je 0x9b3e
leaq 0x20(%rbx), %rax
movq %rax, -0x70(%rbp)
leaq -0x138(%rbp), %r15
movq %rbx, %r12
movq -0x70(%rbp), %rax
movq (%rax), %r13
movq %r14, %rdi
callq 0x5350
movslq 0x20(%rax), %rbx
movq %r14, %rdi
callq 0x5350
leaq -0x128(%rbp), %rcx
movq %rcx, -0x138(%rbp)
movq 0x28(%rax), %rsi
movq 0x30(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x9e42
movq %r15, %rdi
leaq 0x1791d(%rip), %rsi     # 0x21410
callq 0x55e0
shlq $0x5, %rbx
addq %rbx, %r13
movq -0x70(%rbp), %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0xa3a2
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
movq %r12, %rbx
je 0x9b29
callq 0x52d0
movq %r14, %rdi
callq 0x5350
movq %rax, %r14
cmpq 0x50(%rbx), %rax
jne 0x9aaa
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x9b56
callq 0x52d0
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9b81
jmp 0x9b7a
jmp 0x9bdd
jmp 0x9b81
jmp 0x9b7a
jmp 0x9bdd
jmp 0x9b81
jmp 0x9b7a
jmp 0x9bdd
movq %rax, %r14
jmp 0x9b96
jmp 0x9bdd
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x9b96
callq 0x52d0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
jmp 0x9bd1
movq %rax, %r14
jmp 0x9bec
jmp 0x9ba7
movq %rax, %r14
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
je 0x9bec
callq 0x52d0
jmp 0x9bec
jmp 0x9bdd
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x9be0
callq 0x52d0
jmp 0x9be0
movq %rax, %r14
leaq -0x138(%rbp), %rdi
callq 0x9d68
leaq -0x90(%rbp), %rax
movq -0xa0(%rbp), %rdi
cmpq %rax, %rdi
je 0x9c04
callq 0x52d0
movq %r14, %rdi
callq 0x5560