// File: /workspace/github_cpp_makefile_star2_O1/Merulo[P]CompilerJFTT/src/IRs/FourthIR.cpp
// Function: FourthIR::handleSimpleOperation(RegisterBlock&, Block&, Line&)
void FourthIR::handleSimpleOperation(RegisterBlock& rb, Block& b, Line& l)
{    
    Register& r = rb.getRegister(l.one, b, {}, true, true);
    if (l.operation == "DEC" || l.operation == "INC" || l.operation == "HALF")
    {
        r.needToSafe = true;
    }

    b.lines.push_back({l.operation, r.name, l.two});     

    updateRegisterState(b, rb, r, l.one);
    r.variableName = l.one;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
leaq 0xb0(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x20(%rcx), %rsi
movq 0x28(%rcx), %rdx
addq %rsi, %rdx
leaq 0xa0(%rsp), %r13
movq %r13, %rdi
callq 0xca12
xorps %xmm0, %xmm0
leaq 0x60(%rsp), %rcx
movaps %xmm0, (%rcx)
movq $0x0, 0x10(%rcx)
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
movl $0x1, %r8d
movl $0x1, %r9d
callq 0x7d06
movq %rax, %r15
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x26a9b
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x42a0
movq 0xa0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x26ab8
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x115db(%rip), %rsi     # 0x3809a
movq %rbx, %rdi
callq 0x40d0
testl %eax, %eax
je 0x26af1
leaq 0x115cc(%rip), %rsi     # 0x3809e
movq %rbx, %rdi
callq 0x40d0
testl %eax, %eax
je 0x26af1
leaq 0x116a2(%rip), %rsi     # 0x38187
movq %rbx, %rdi
callq 0x40d0
testl %eax, %eax
jne 0x26af6
movb $0x1, 0x50(%r15)
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0xca12
leaq 0x50(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %rdi
callq 0xca12
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x40(%rbx), %rsi
movq 0x48(%rbx), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0xca12
leaq 0xc0(%rsp), %rdi
movq %rsp, %rsi
leaq 0x40(%rsp), %rdx
leaq 0x20(%rsp), %rcx
callq 0xbe58
addq $0x20, %r12
leaq 0xc0(%rsp), %rsi
movq %r12, %rdi
callq 0xcf0e
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x26b9c
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x26bbd
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0xd0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x26bde
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x26bf5
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x40(%rsp), %rdi
cmpq %rbp, %rdi
je 0x26c0c
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42a0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x26c27
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x90(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
addq %rsi, %rdx
leaq 0x80(%rsp), %r12
movq %r12, %rdi
callq 0xca12
movq %r14, %rdi
movq %r15, %rcx
movq %r12, %r8
callq 0x28ed2
addq $0x20, %rbx
movq 0x80(%rsp), %rdi
cmpq %r13, %rdi
je 0x26c7d
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x42a0
addq $0x30, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4170
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r13, %rdi
je 0x26d58
movq 0x90(%rsp), %rsi
jmp 0x26d50
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0xbf10
jmp 0x26cd4
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x26cf0
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x26cf0
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %rbp, %rdi
je 0x26d0c
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x26d0c
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x26d58
movq 0x10(%rsp), %rsi
jmp 0x26d50
movq %rax, %rbx
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x26d3b
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x42a0
movq 0xa0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x26d58
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x42a0
movq %rbx, %rdi
callq 0x44c0