// File: /workspace/github_cpp_makefile_star2_O3/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 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
xorl %r9d, %r9d
callq 0x7b6c
movq %rax, %r15
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x25824
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x42a0
leaq 0x20(%r14), %r13
movq 0xa0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x25845
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 0x11cc2(%rip), %rsi     # 0x3752b
leaq 0x11cbe(%rip), %rdx     # 0x3752e
movq %rsp, %rdi
callq 0x53cc
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)
leaq 0x1183d(%rip), %rdx     # 0x370e3
leaq 0x20(%rsp), %rdi
movq %rdx, %rsi
callq 0x53cc
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 0x25902
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x25923
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0xd0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x25944
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x2595b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x40(%rsp), %rdi
cmpq %rbp, %rdi
leaq 0x10(%rsp), %r12
je 0x25977
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42a0
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x2598d
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 0xc7aa
movq %rbx, %rdi
movq %r15, %rcx
movq %r14, %r8
callq 0x28c64
movq 0x80(%rsp), %rdi
cmpq %r12, %rdi
je 0x259e0
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 0x25ab1
movq 0x90(%rsp), %rsi
jmp 0x25aa9
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0xbca2
jmp 0x25a28
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x25a44
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x25a44
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %rbp, %rdi
je 0x25a60
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x25a60
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x25ab1
movq 0x10(%rsp), %rsi
jmp 0x25aa9
movq %rax, %rbx
jmp 0x25ab1
movq %rax, %rbx
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x25a94
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x42a0
movq 0xa0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x25ab1
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x42a0
movq %rbx, %rdi
callq 0x44c0
nop