// File: /workspace/github_cpp_makefile_star2_O1/fondoger[P]C0-Compiler/src/mips.cpp
// Function: MIPS(std::ostream&)
static void MIPS(std::ostream &ss)
{
    static std::string prev_op = "";
    static std::string prev_code = "";
    std::stringstream indent_blanks;
    for (int i = 0; i < indent_num; i++) {
        mipscode_stream << ' ';
    }
    std::ostringstream oss;
    oss << ss.rdbuf();
    std::string mips_code = oss.str();
    mipscode_stream << mips_code << std::endl;
    bool should_omit = false;
    if (mips_code.substr(0, 2) == "lw") {
        if (prev_op == "sw" && mips_code.substr(2) == prev_code.substr(2)) {
            should_omit = true;
        } else {
            prev_op = "lw";
            prev_code = mips_code;
        }
    } else if (mips_code.substr(0, 2) == "sw") {
        if (prev_op == "lw" && mips_code.substr(2) == prev_code.substr(2)) {
            should_omit = true;
        } else {
            prev_op = "sw";
            prev_code = mips_code;
        }
    } else {
        prev_op = "";
    }
    if (!should_omit) {
        for (int i = 0; i < indent_num; i++) {
            opt_mipscode_stream << ' ';
        }
        opt_mipscode_stream << mips_code << std::endl;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x370, %rsp            # imm = 0x370
movq %rdi, %rbx
movb 0x1182e(%rip), %al      # 0x28780
testb %al, %al
je 0x172d9
movb 0x11848(%rip), %al      # 0x287a8
testb %al, %al
je 0x1733c
leaq -0x388(%rbp), %rdi
callq 0x31f0
cmpl $0x0, 0x11835(%rip)     # 0x287b0
jle 0x16fb1
xorl %r12d, %r12d
leaq 0xf419(%rip), %r14      # 0x263a0
leaq -0x200(%rbp), %r15
movb $0x20, -0x200(%rbp)
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x3340
incl %r12d
cmpl 0x11801(%rip), %r12d    # 0x287b0
jl 0x16f8e
leaq -0x200(%rbp), %rdi
callq 0x3390
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq 0xe8(%rbx,%rax), %rsi
leaq -0x200(%rbp), %rdi
callq 0x30a0
leaq -0x1f8(%rbp), %rsi
leaq -0x68(%rbp), %rdi
callq 0x3420
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
leaq 0xf3a9(%rip), %rdi      # 0x263a0
callq 0x3340
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31d0
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
movl $0x2, %ecx
xorl %edx, %edx
callq 0x3300
leaq 0x5d96(%rip), %rbx      # 0x1cdd7
leaq -0x48(%rbp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x30c0
movl %eax, %r14d
movq (%r15), %rdi
leaq -0x38(%rbp), %r12
cmpq %r12, %rdi
je 0x17064
callq 0x32a0
testl %r14d, %r14d
je 0x170c8
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
movl $0x2, %ecx
xorl %edx, %edx
callq 0x3300
leaq 0x5d56(%rip), %rbx      # 0x1cdda
movq %r15, %rdi
movq %rbx, %rsi
callq 0x30c0
movl %eax, %r14d
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x1709f
callq 0x32a0
testl %r14d, %r14d
je 0x17120
movq 0x116bd(%rip), %rdx     # 0x28768
leaq 0x116ae(%rip), %rdi     # 0x28760
leaq 0x5d61(%rip), %rcx      # 0x1ce1a
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x33f0
jmp 0x171fc
leaq 0x11691(%rip), %rdi     # 0x28760
leaq 0x5d04(%rip), %rsi      # 0x1cdda
callq 0x30c0
movl %eax, %r14d
testl %eax, %eax
jne 0x1719d
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
movl $0x2, %edx
movq $-0x1, %rcx
callq 0x3300
leaq 0x11682(%rip), %rsi     # 0x28788
leaq -0x88(%rbp), %rdi
movl $0x2, %edx
movq $-0x1, %rcx
callq 0x3300
jmp 0x17172
leaq 0x11639(%rip), %rdi     # 0x28760
leaq 0x5ca9(%rip), %rsi      # 0x1cdd7
callq 0x30c0
movl %eax, %r14d
testl %eax, %eax
jne 0x1719d
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
movl $0x2, %edx
movq $-0x1, %rcx
callq 0x3300
leaq 0x1162e(%rip), %rsi     # 0x28788
leaq -0x88(%rbp), %rdi
movl $0x2, %edx
movq $-0x1, %rcx
callq 0x3300
movq -0x40(%rbp), %rdx
cmpq -0x80(%rbp), %rdx
jne 0x1719d
testq %rdx, %rdx
je 0x172d1
movq -0x88(%rbp), %rsi
movq -0x48(%rbp), %rdi
callq 0x32f0
testl %eax, %eax
sete %r15b
jmp 0x171a0
xorl %r15d, %r15d
testl %r14d, %r14d
jne 0x171c5
leaq -0x78(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x171b7
callq 0x32a0
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x171c5
callq 0x32a0
testb %r15b, %r15b
jne 0x17271
movq 0x11593(%rip), %rdx     # 0x28768
leaq 0x11584(%rip), %rdi     # 0x28760
movl $0x2, %r8d
xorl %esi, %esi
movq %rbx, %rcx
callq 0x33f0
leaq 0x11595(%rip), %rdi     # 0x28788
leaq -0x68(%rbp), %rsi
callq 0x3160
cmpl $0x0, 0x115ad(%rip)     # 0x287b0
jle 0x17233
xorl %r15d, %r15d
leaq 0xf3b1(%rip), %rbx      # 0x265c0
leaq -0x21(%rbp), %r14
movb $0x20, -0x21(%rbp)
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3340
incl %r15d
cmpl 0x1157f(%rip), %r15d    # 0x287b0
jl 0x17213
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
leaq 0xf37e(%rip), %rdi      # 0x265c0
callq 0x3340
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31d0
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x17283
callq 0x32a0
movq 0xbd3e(%rip), %rsi      # 0x22fc8
leaq -0x200(%rbp), %rdi
callq 0x3150
leaq -0x190(%rbp), %rdi
callq 0x30e0
movq 0xbcf7(%rip), %rsi      # 0x22fa0
leaq -0x388(%rbp), %rdi
callq 0x3210
leaq -0x308(%rbp), %rdi
callq 0x30e0
addq $0x370, %rsp            # imm = 0x370
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %r15b
jmp 0x171a0
leaq 0x114a0(%rip), %rdi     # 0x28780
callq 0x34a0
testl %eax, %eax
je 0x16f5a
leaq 0x1147c(%rip), %rax     # 0x28770
movq %rax, 0x11465(%rip)     # 0x28760
leaq 0x1145e(%rip), %rdi     # 0x28760
leaq 0x5b11(%rip), %rdx      # 0x1ce1a
movq %rdx, %rsi
callq 0x14454
movq 0xbc98(%rip), %rdi      # 0x22fb0
leaq 0x11441(%rip), %rsi     # 0x28760
leaq 0xbf4a(%rip), %rdx      # 0x23270
callq 0x3270
leaq 0x1144e(%rip), %rdi     # 0x28780
callq 0x31a0
jmp 0x16f5a
leaq 0x11465(%rip), %rdi     # 0x287a8
callq 0x34a0
testl %eax, %eax
je 0x16f68
leaq 0x11441(%rip), %rax     # 0x28798
movq %rax, 0x1142a(%rip)     # 0x28788
leaq 0x11423(%rip), %rdi     # 0x28788
leaq 0x5aae(%rip), %rdx      # 0x1ce1a
movq %rdx, %rsi
callq 0x14454
movq 0xbc35(%rip), %rdi      # 0x22fb0
leaq 0x11406(%rip), %rsi     # 0x28788
leaq 0xbee7(%rip), %rdx      # 0x23270
callq 0x3270
leaq 0x11413(%rip), %rdi     # 0x287a8
callq 0x31a0
jmp 0x16f68
movq %rax, %rbx
leaq 0x113ff(%rip), %rdi     # 0x287a8
jmp 0x173b5
movq %rax, %rbx
leaq 0x113cb(%rip), %rdi     # 0x28780
callq 0x3190
jmp 0x17441
jmp 0x173c3
jmp 0x173e9
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x173ec
callq 0x32a0
jmp 0x173ec
jmp 0x173e9
jmp 0x173e9
jmp 0x173e9
jmp 0x173de
movq %rax, %rbx
jmp 0x173fe
jmp 0x1741f
jmp 0x173e9
jmp 0x173e9
movq %rax, %rbx
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x173fe
callq 0x32a0
movq 0xbbc3(%rip), %rsi      # 0x22fc8
leaq -0x200(%rbp), %rdi
callq 0x3150
leaq -0x190(%rbp), %rdi
callq 0x30e0
jmp 0x17422
movq %rax, %rbx
movq 0xbb77(%rip), %rsi      # 0x22fa0
leaq -0x388(%rbp), %rdi
callq 0x3210
leaq -0x308(%rbp), %rdi
callq 0x30e0
movq %rbx, %rdi
callq 0x3480