// File: /workspace/github_cpp_makefile_star2_O1/Merulo[P]CompilerJFTT/src/IRs/FourthIR.cpp
// Function: FourthIR::handleRead(RegisterBlock&, Block&, Line&)
void FourthIR::handleRead(RegisterBlock& rb, Block& b, Line& l)
{   
    Register& r = rb.getRegister(l.one, b, {}, true, false);
    r.variableName = l.one;
    r.needToSafe = true;

    b.lines.push_back({"GET", r.name});    
    updateRegisterState(b, rb, r, l.one);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
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
xorl %r9d, %r9d
callq 0x7d06
movq %rax, %r15
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x25a92
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x42a0
leaq 0x20(%r14), %r13
movq 0xa0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x25ab3
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x42a0
movq %r15, %rdi
addq $0x30, %rdi
movq %r13, %rsi
callq 0x4170
movb $0x1, 0x50(%r15)
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x12a54(%rip), %rsi     # 0x3852b
leaq 0x12a50(%rip), %rdx     # 0x3852e
movq %rsp, %rdi
callq 0x54fc
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)
leaq 0x125cf(%rip), %rdx     # 0x380e3
leaq 0x20(%rsp), %rdi
movq %rdx, %rsi
callq 0x54fc
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 0x25b70
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x25b91
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0xd0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x25bb2
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x25bc9
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x40(%rsp), %rdi
cmpq %rbp, %rdi
leaq 0x10(%rsp), %r12
je 0x25be5
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42a0
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x25bfb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x90(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
addq %rsi, %rdx
leaq 0x80(%rsp), %r14
movq %r14, %rdi
callq 0xca12
movq %rbx, %rdi
movq %r15, %rcx
movq %r14, %r8
callq 0x28ed2
movq 0x80(%rsp), %rdi
cmpq %r12, %rdi
je 0x25c4e
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x42a0
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 %r12, %rdi
je 0x25d1f
movq 0x90(%rsp), %rsi
jmp 0x25d17
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0xbf10
jmp 0x25c96
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x25cb2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x25cb2
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %rbp, %rdi
je 0x25cce
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x25cce
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x25d1f
movq 0x10(%rsp), %rsi
jmp 0x25d17
movq %rax, %rbx
jmp 0x25d1f
movq %rax, %rbx
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x25d02
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x42a0
movq 0xa0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x25d1f
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x42a0
movq %rbx, %rdi
callq 0x44c0
nop