// File: /workspace/github_cpp_makefile_star2_O1/kelwinfc[P]ci4721-Fernandez-Gyomrey/src/inst.cpp
// Function: Spim_Inst::to_string[abi:cxx11](bool)
string Spim_Inst::to_string(bool with_comment){

    std::stringstream out;
    out << label;
    string r = "", _ = (with_comment ? comment : "" ) + "L" + out.str() + ": ";
    
    opd *opds[] = {arg0, arg1, arg2};
    
    switch (op ){
        default:
            break;
    }
    
    for (int i = 0; i < 3; ++ i) {
        if (opds[i]) {
            r += (0 == i ? "" : ", ") + opds[i]->to_string();
        }
    }
    
    switch (op ){
        default:
            break;
    }
    
    return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x6210
leaq 0xc0(%rsp), %rdi
movl 0x8(%r15), %esi
callq 0x61e0
leaq 0x10(%rbx), %rax
movq %rax, 0x48(%rsp)
movq %rax, (%rbx)
leaq 0xc8ce(%rip), %rdx      # 0x2e382
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x6fec
leaq 0x60(%rsp), %r14
leaq 0x50(%rsp), %rdi
testb %bpl, %bpl
je 0x21ae3
movq %r14, (%rdi)
movq 0x28(%r15), %rsi
movq 0x30(%r15), %rdx
addq %rsi, %rdx
callq 0x16c42
jmp 0x21af5
movq %r14, (%rdi)
leaq 0xc895(%rip), %rdx      # 0x2e382
movq %rdx, %rsi
callq 0x6fec
leaq 0xcbd5(%rip), %rsi      # 0x2e6d1
leaq 0x50(%rsp), %rdi
callq 0x65a0
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21b2d
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x21b35
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xc8(%rsp), %rsi
leaq 0x70(%rsp), %rdi
callq 0x64a0
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x78(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r13, %rcx
je 0x21b81
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x21ba6
leaq 0x80(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x21ba1
movq 0x80(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x21bb7
movq 0x70(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x60f0
jmp 0x21bc5
leaq 0x70(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x6350
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x21be9
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x21bef
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xaaa4(%rip), %rsi      # 0x2c6b7
leaq 0x8(%rsp), %rdi
callq 0x65a0
leaq 0xa0(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21c4d
movq %rdx, 0x90(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa0(%rsp)
jmp 0x21c53
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x98(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x18(%rsp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0x21c8a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x62f0
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21cab
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x62f0
movq %r14, %rbp
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x21cc5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x62f0
movq %r13, %r14
movq 0x50(%rsp), %rdi
cmpq %rbp, %rdi
je 0x21cdf
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x62f0
movups 0x10(%r15), %xmm0
movaps %xmm0, 0x50(%rsp)
movq 0x20(%r15), %rax
movq %rax, 0x60(%rsp)
xorl %ebp, %ebp
leaq 0x28(%rsp), %r15
leaq 0xad46(%rip), %r13      # 0x2ca46
movq 0x50(%rsp,%rbp,8), %rsi
testq %rsi, %rsi
je 0x21dc0
movq %r15, %rdi
callq 0x1d380
xorl %r8d, %r8d
testq %rbp, %rbp
setne %r8b
movq %r13, %rcx
leaq 0xc658(%rip), %rax      # 0x2e382
cmoveq %rax, %rcx
addl %r8d, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x6350
movq %r12, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21d60
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x21d68
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x60f0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x21da9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x62f0
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x21dc0
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x62f0
incq %rbp
cmpq $0x3, %rbp
jne 0x21d00
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x21df2
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x62f0
movq 0x1c18f(%rip), %rsi     # 0x3df88
leaq 0xb0(%rsp), %rdi
callq 0x6240
leaq 0x130(%rsp), %rdi
callq 0x6100
movq %rbx, %rax
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x21e2a
movq %rax, %r15
jmp 0x21f0f
movq %rax, %r15
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21e55
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x62f0
jmp 0x21e55
movq %rax, %r15
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21e7b
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x62f0
jmp 0x21e7b
movq %rax, %r15
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x21e97
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x62f0
jmp 0x21e97
movq %rax, %r15
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x21f0f
movq 0x60(%rsp), %rsi
jmp 0x21f07
jmp 0x21eaa
movq %rax, %r15
jmp 0x21f29
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x21ed3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x62f0
jmp 0x21ed3
movq %rax, %r15
jmp 0x21eea
movq %rax, %r15
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x21eea
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x62f0
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x21f0f
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x62f0
movq (%rbx), %rdi
cmpq 0x48(%rsp), %rdi
je 0x21f29
movq 0x48(%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x62f0
movq 0x1c058(%rip), %rsi     # 0x3df88
leaq 0xb0(%rsp), %rdi
callq 0x6240
leaq 0x130(%rsp), %rdi
callq 0x6100
movq %r15, %rdi
callq 0x6550