// File: /workspace/github_cpp_makefile_star2_O3/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 0xc7aa
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 0x7b6c
movq %rax, %r15
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x26835
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x42a0
movq 0xa0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x26852
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x10841(%rip), %rsi     # 0x3709a
movq %rbx, %rdi
callq 0x40d0
testl %eax, %eax
je 0x2688b
leaq 0x10832(%rip), %rsi     # 0x3709e
movq %rbx, %rdi
callq 0x40d0
testl %eax, %eax
je 0x2688b
leaq 0x10908(%rip), %rsi     # 0x37187
movq %rbx, %rdi
callq 0x40d0
testl %eax, %eax
jne 0x26890
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 0xc7aa
leaq 0x50(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %rdi
callq 0xc7aa
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x40(%rbx), %rsi
movq 0x48(%rbx), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0xc7aa
leaq 0xc0(%rsp), %rdi
movq %rsp, %rsi
leaq 0x40(%rsp), %rdx
leaq 0x20(%rsp), %rcx
callq 0xbbea
addq $0x20, %r12
leaq 0xc0(%rsp), %rsi
movq %r12, %rdi
callq 0xccac
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x26936
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x26957
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0xd0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x26978
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x2698f
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x40(%rsp), %rdi
cmpq %rbp, %rdi
je 0x269a6
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42a0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x269c1
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 0xc7aa
movq %r14, %rdi
movq %r15, %rcx
movq %r12, %r8
callq 0x28c64
addq $0x20, %rbx
movq 0x80(%rsp), %rdi
cmpq %r13, %rdi
je 0x26a17
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 0x26af2
movq 0x90(%rsp), %rsi
jmp 0x26aea
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0xbca2
jmp 0x26a6e
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x26a8a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x26a8a
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %rbp, %rdi
je 0x26aa6
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x26aa6
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x26af2
movq 0x10(%rsp), %rsi
jmp 0x26aea
movq %rax, %rbx
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x26ad5
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x42a0
movq 0xa0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x26af2
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x42a0
movq %rbx, %rdi
callq 0x44c0