// File: /workspace/github_cpp_makefile_star2_O1/Merulo[P]CompilerJFTT/src/IRs/ThirdIR.cpp
// Function: ThirdIR::legalizeEquality(Block&)
void ThirdIR::legalizeEquality(Block& b)
{
    if (checkZeroJump(b))
    {
        legalizeZeroJump(b);
        return;
    }
    b.lines.insert(b.lines.begin() + b.lines.size() - 1, {"#DO NOT REMOVE CONST"});
    Line lastLine = b.lines.back();
    legalizeJLS(b, true);
    b.lines.back().one = lastLine.one;
    b.lines.back().two = lastLine.two;
    legalizeJMR(b, true);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x2f0f6
testb %al, %al
je 0x2e8ac
movq %r14, %rdi
movq %rbx, %rsi
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x301b0
movq 0x28(%rbx), %r15
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x9c52(%rip), %rsi      # 0x38512
leaq 0x9c5f(%rip), %rdx      # 0x38526
movq %rsp, %rdi
callq 0x54fc
leaq 0xb8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x9801(%rip), %rdx      # 0x380e3
leaq 0xa8(%rsp), %rdi
movq %rdx, %rsi
callq 0x54fc
leaq 0x98(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x97de(%rip), %rdx      # 0x380e3
leaq 0x88(%rsp), %rdi
movq %rdx, %rsi
callq 0x54fc
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
leaq 0xa8(%rsp), %rdx
leaq 0x88(%rsp), %rcx
callq 0xbe58
leaq 0x20(%rbx), %rdi
addq $-0x68, %r15
leaq 0x20(%rsp), %rdx
movq %r15, %rsi
callq 0x30656
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
movq %rax, %r12
cmpq %rax, %rdi
je 0x2e965
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2e980
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x30(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x2e99b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x2e9b8
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0xa8(%rsp), %rdi
cmpq %rbp, %rdi
movq %r12, %r13
je 0x2e9d8
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x42a0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2e9f3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x28(%rbx), %rbp
leaq 0x20(%rsp), %rdi
movq %r15, (%rdi)
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
addq %rsi, %rdx
callq 0xca12
leaq 0x40(%rsp), %r15
leaq 0x50(%rsp), %rax
movq %rax, (%r15)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xca12
leaq 0x60(%rsp), %r12
movq %r13, (%r12)
movq -0x28(%rbp), %rsi
movq -0x20(%rbp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xca12
movl -0x8(%rbp), %eax
movl %eax, 0x80(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
movl $0x1, %edx
callq 0x2e1f2
movq 0x28(%rbx), %rdi
addq $-0x48, %rdi
movq %r15, %rsi
callq 0x4170
movq 0x28(%rbx), %rdi
addq $-0x28, %rdi
movq %r12, %rsi
callq 0x4170
movq %r14, %rdi
movq %rbx, %rsi
movl $0x1, %edx
callq 0x2e542
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0x2eaac
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
leaq 0x30(%rsp), %rbx
je 0x2eacd
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x2eae4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42a0
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x2eb1a
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x2eb1a
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x2ebb9
movq 0x30(%rsp), %rsi
jmp 0x2eb9d
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xbf10
jmp 0x2eb46
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x2eb68
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x2eb68
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2eb8a
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x2eb8a
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2ebb9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x2ebb9
movq %rax, %rbx
jmp 0x2ebb9
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xbf10
movq %rbx, %rdi
callq 0x44c0
nop