// File: /workspace/github_cpp_makefile_star2_O3/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 0x6220
leaq 0xc0(%rsp), %rdi
movl 0x8(%r15), %esi
callq 0x61f0
leaq 0x10(%rbx), %rax
movq %rax, 0x48(%rsp)
movq %rax, (%rbx)
leaq 0xd874(%rip), %rdx      # 0x2f382
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x7008
leaq 0x60(%rsp), %r14
leaq 0x50(%rsp), %rdi
testb %bpl, %bpl
je 0x21b3d
movq %r14, (%rdi)
movq 0x28(%r15), %rsi
movq 0x30(%r15), %rdx
addq %rsi, %rdx
callq 0x16c68
jmp 0x21b4f
movq %r14, (%rdi)
leaq 0xd83b(%rip), %rdx      # 0x2f382
movq %rdx, %rsi
callq 0x7008
leaq 0xdb7b(%rip), %rsi      # 0x2f6d1
leaq 0x50(%rsp), %rdi
callq 0x65b0
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21b87
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x21b8f
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 0x64b0
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x78(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r13, %rcx
je 0x21bdb
movq 0x38(%rsp), %rdi
movq 0x70(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x21c04
leaq 0x80(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x21bff
movq 0x80(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x21c10
leaq 0x28(%rsp), %rdi
callq 0x60f0
jmp 0x21c1e
leaq 0x70(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x6360
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x21c42
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x21c48
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 0xba4b(%rip), %rsi      # 0x2d6b7
leaq 0x8(%rsp), %rdi
callq 0x65b0
leaq 0xa0(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21ca6
movq %rdx, 0x90(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa0(%rsp)
jmp 0x21cac
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 0x21ce3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6300
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21d04
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x6300
movq %r14, %rbp
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x21d1e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6300
movq %r13, %r14
movq 0x50(%rsp), %rdi
cmpq %rbp, %rdi
je 0x21d38
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x6300
movups 0x10(%r15), %xmm0
movaps %xmm0, 0x50(%rsp)
movq 0x20(%r15), %rax
movq %rax, 0x60(%rsp)
xorl %ebp, %ebp
leaq 0x28(%rsp), %r15
leaq 0xbced(%rip), %r13      # 0x2da46
movq 0x50(%rsp,%rbp,8), %rsi
testq %rsi, %rsi
je 0x21e19
movq %r15, %rdi
callq 0x1d404
xorl %r8d, %r8d
testq %rbp, %rbp
setne %r8b
movq %r13, %rcx
leaq 0xd5ff(%rip), %rax      # 0x2f382
cmoveq %rax, %rcx
addl %r8d, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x6360
movq %r12, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21db9
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x21dc1
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 0x21e02
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6300
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x21e19
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6300
incq %rbp
cmpq $0x3, %rbp
jne 0x21d59
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x21e4b
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x6300
movq 0x1d136(%rip), %rsi     # 0x3ef88
leaq 0xb0(%rsp), %rdi
callq 0x6250
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 0x21e83
movq %rax, %r15
jmp 0x21f68
movq %rax, %r15
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21eae
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6300
jmp 0x21eae
movq %rax, %r15
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21ed4
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x6300
jmp 0x21ed4
movq %rax, %r15
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x21ef0
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6300
jmp 0x21ef0
movq %rax, %r15
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x21f68
movq 0x60(%rsp), %rsi
jmp 0x21f60
jmp 0x21f03
movq %rax, %r15
jmp 0x21f82
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x21f2c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6300
jmp 0x21f2c
movq %rax, %r15
jmp 0x21f43
movq %rax, %r15
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x21f43
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6300
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x21f68
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x6300
movq (%rbx), %rdi
cmpq 0x48(%rsp), %rdi
je 0x21f82
movq 0x48(%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x6300
movq 0x1cfff(%rip), %rsi     # 0x3ef88
leaq 0xb0(%rsp), %rdi
callq 0x6250
leaq 0x130(%rsp), %rdi
callq 0x6100
movq %r15, %rdi
callq 0x6560