// File: /workspace/github_cpp_makefile_star2_O3/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 -0x98(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x8(%rdi), %rax
cmpq %rax, 0x10(%rdi)
je 0x9a48
leaq -0x130(%rbp), %r12
leaq -0x38(%rbp), %r15
leaq 0x38(%rbx), %rcx
movq %rcx, -0x88(%rbp)
leaq 0x40(%rbx), %rcx
movq %rcx, -0x78(%rbp)
leaq 0x20(%rbx), %rcx
movq %rcx, -0x80(%rbp)
leaq -0x48(%rbp), %rdi
xorl %r14d, %r14d
movl (%rax,%r14,4), %eax
movq %r12, -0x140(%rbp)
xorl %edx, %edx
movq %rdx, -0x138(%rbp)
movb %dl, -0x130(%rbp)
leaq -0x110(%rbp), %rcx
movq %rcx, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movb %dl, -0x110(%rbp)
leaq -0xf0(%rbp), %rcx
movq %rcx, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movb %dl, -0xf0(%rbp)
leaq -0xd0(%rbp), %rcx
movq %rcx, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movb %dl, -0xd0(%rbp)
movl $0x0, -0xb4(%rbp)
movw $0x0, -0xaf(%rbp)
movb %dl, -0xad(%rbp)
movl %eax, -0xac(%rbp)
movq %rdi, %r13
leaq -0x140(%rbp), %rsi
callq 0x1d250
leaq -0xa8(%rbp), %rdi
movq %r13, %rsi
callq 0x53c0
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x947e
callq 0x52d0
cmpb $0x1, -0xae(%rbp)
jne 0x953b
movl (%rbx), %eax
movswl -0xbc(%rbp), %edx
leal (%rax,%rdx), %r12d
incl %r12d
movq 0x48(%rbx), %rcx
testq %rcx, %rcx
je 0x94d1
addl %edx, %eax
movq -0x78(%rbp), %rdx
xorl %esi, %esi
cmpl %eax, 0x20(%rcx)
setle %sil
cmovgq %rcx, %rdx
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x94aa
cmpq -0x78(%rbp), %rdx
je 0x94d1
cmpl 0x20(%rdx), %r12d
jge 0x96b6
movq 0x60(%rbx), %r15
movl $0x1, %esi
cmpq $0xa, %r15
jb 0x95f4
movl $0x4, %esi
movq %r15, %rcx
cmpq $0x63, %rcx
jbe 0x95ed
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x95f2
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x95f4
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 0x94ec
addl $-0x3, %esi
jmp 0x95f4
cmpb $0x1, -0xad(%rbp)
jne 0x999a
movl -0xb4(%rbp), %r12d
movq 0x48(%rbx), %rax
testq %rax, %rax
je 0x9583
movq -0x78(%rbp), %rcx
xorl %edx, %edx
cmpl %r12d, 0x20(%rax)
setl %dl
cmovgeq %rax, %rcx
movq 0x10(%rax,%rdx,8), %rax
testq %rax, %rax
jne 0x955c
cmpq -0x78(%rbp), %rcx
je 0x9583
cmpl 0x20(%rcx), %r12d
jge 0x987f
movq 0x60(%rbx), %r15
movl $0x1, %esi
cmpq $0xa, %r15
jb 0x97bd
movl $0x4, %esi
movq %r15, %rcx
cmpq $0x63, %rcx
jbe 0x97b6
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x97bb
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x97bd
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 0x959e
addl $-0x3, %esi
jmp 0x97bd
addl $-0x2, %esi
jmp 0x95f4
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 0x9d7b
movl $0x5, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x17a4c(%rip), %rcx     # 0x2107b
callq 0x5370
leaq -0x38(%rbp), %r15
movq %r15, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x9658
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x965f
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl %r12d, -0x6c(%rbp)
movq -0x88(%rbp), %rdi
leaq -0x6c(%rbp), %rsi
callq 0x9c2e
movq %rax, %rdi
leaq -0x48(%rbp), %rsi
callq 0x53c0
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x96a4
callq 0x52d0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x96b6
callq 0x52d0
movq 0x60(%rbx), %r15
movl $0x1, %esi
cmpq $0xa, %r15
leaq -0x130(%rbp), %r12
jb 0x971b
movl $0x4, %esi
movq %r15, %rcx
cmpq $0x63, %rcx
jbe 0x9714
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x9719
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x971b
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 0x96d4
addl $-0x3, %esi
jmp 0x971b
addl $-0x2, %esi
jmp 0x971b
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 0x9d7b
movl $0x5, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x17925(%rip), %rcx     # 0x2107b
callq 0x5370
leaq -0x38(%rbp), %r15
movq %r15, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x977f
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x9786
movups (%rcx), %xmm0
movups %xmm0, (%r15)
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 -0xa8(%rbp), %rdi
callq 0x50c0
jmp 0x997a
addl $-0x2, %esi
jmp 0x97bd
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 0x9d7b
movl $0x5, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x17883(%rip), %rcx     # 0x2107b
callq 0x5370
leaq -0x38(%rbp), %r15
movq %r15, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x9821
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x9828
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl %r12d, -0x6c(%rbp)
movq -0x88(%rbp), %rdi
leaq -0x6c(%rbp), %rsi
callq 0x9c2e
movq %rax, %rdi
leaq -0x48(%rbp), %rsi
callq 0x53c0
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x986d
callq 0x52d0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x987f
callq 0x52d0
movq 0x60(%rbx), %r15
movl $0x1, %esi
cmpq $0xa, %r15
leaq -0x130(%rbp), %r12
jb 0x98e4
movl $0x4, %esi
movq %r15, %rcx
cmpq $0x63, %rcx
jbe 0x98dd
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x98e2
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x98e4
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 0x989d
addl $-0x3, %esi
jmp 0x98e4
addl $-0x2, %esi
jmp 0x98e4
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 0x9d7b
movl $0x5, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x1775c(%rip), %rcx     # 0x2107b
callq 0x5370
leaq -0x38(%rbp), %r15
movq %r15, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x9948
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x994f
movups (%rcx), %xmm0
movups %xmm0, (%r15)
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 -0xa8(%rbp), %rdi
callq 0x50c0
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x9988
callq 0x52d0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x999a
callq 0x52d0
leaq -0x48(%rbp), %r13
movq %r13, %rdi
leaq 0x17a5a(%rip), %rsi     # 0x21402
leaq -0xa8(%rbp), %rdx
callq 0x9c96
movq -0x80(%rbp), %rdi
movq %r13, %rsi
callq 0xa0ea
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x99ce
callq 0x52d0
incl (%rbx)
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x99e8
callq 0x52d0
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x9a00
callq 0x52d0
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0x9a18
callq 0x52d0
movq -0x140(%rbp), %rdi
cmpq %r12, %rdi
je 0x9a29
callq 0x52d0
incq %r14
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %rcx, %r14
leaq -0x48(%rbp), %rdi
jb 0x93c8
leaq 0x40(%rbx), %r14
cmpq 0x50(%rbx), %r14
je 0x9af9
leaq 0x20(%rbx), %rax
movq %rax, -0x80(%rbp)
leaq -0x140(%rbp), %r15
movq %rbx, %r12
movq -0x80(%rbp), %rax
movq (%rax), %r13
movq %r14, %rdi
callq 0x5350
movslq 0x20(%rax), %rbx
movq %r14, %rdi
callq 0x5350
leaq -0x130(%rbp), %rcx
movq %rcx, -0x140(%rbp)
movq 0x28(%rax), %rsi
movq 0x30(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x9dfc
movq %r15, %rdi
leaq 0x17962(%rip), %rsi     # 0x21410
callq 0x55e0
shlq $0x5, %rbx
addq %rbx, %r13
movq -0x80(%rbp), %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0xa354
movq -0x140(%rbp), %rdi
leaq -0x130(%rbp), %rax
cmpq %rax, %rdi
movq %r12, %rbx
je 0x9ae4
callq 0x52d0
movq %r14, %rdi
callq 0x5350
movq %rax, %r14
cmpq 0x50(%rbx), %rax
jne 0x9a65
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0x9b11
callq 0x52d0
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9b3c
jmp 0x9b35
jmp 0x9b95
jmp 0x9b95
jmp 0x9b3c
jmp 0x9b35
jmp 0x9b95
jmp 0x9b3c
jmp 0x9b35
movq %rax, %r14
jmp 0x9b4d
jmp 0x9b95
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x9b4d
callq 0x52d0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
jne 0x9b8e
jmp 0x9b98
movq %rax, %r14
jmp 0x9ba4
jmp 0x9b63
movq %rax, %r14
movq -0x140(%rbp), %rdi
leaq -0x130(%rbp), %rax
cmpq %rax, %rdi
je 0x9ba4
callq 0x52d0
jmp 0x9ba4
jmp 0x9b95
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x9b98
callq 0x52d0
jmp 0x9b98
movq %rax, %r14
leaq -0x140(%rbp), %rdi
callq 0x9d22
leaq -0x98(%rbp), %rax
movq -0xa8(%rbp), %rdi
cmpq %rax, %rdi
je 0x9bbc
callq 0x52d0
movq %r14, %rdi
callq 0x5560