// File: /workspace/github_cpp_makefile_star2_O3/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 0x2edc6
testb %al, %al
je 0x2e57c
movq %r14, %rdi
movq %rbx, %rsi
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2fe4a
movq 0x28(%rbx), %r15
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x8f82(%rip), %rsi      # 0x37512
leaq 0x8f8f(%rip), %rdx      # 0x37526
movq %rsp, %rdi
callq 0x53cc
leaq 0xb8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x8b31(%rip), %rdx      # 0x370e3
leaq 0xa8(%rsp), %rdi
movq %rdx, %rsi
callq 0x53cc
leaq 0x98(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x8b0e(%rip), %rdx      # 0x370e3
leaq 0x88(%rsp), %rdi
movq %rdx, %rsi
callq 0x53cc
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
leaq 0xa8(%rsp), %rdx
leaq 0x88(%rsp), %rcx
callq 0xbbea
leaq 0x20(%rbx), %rdi
addq $-0x68, %r15
leaq 0x20(%rsp), %rdx
movq %r15, %rsi
callq 0x302f0
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
movq %rax, %r12
cmpq %rax, %rdi
je 0x2e635
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2e650
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x30(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x2e66b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x2e688
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0xa8(%rsp), %rdi
cmpq %rbp, %rdi
movq %r12, %r13
je 0x2e6a8
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x42a0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2e6c3
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 0xc7aa
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 0xc7aa
leaq 0x60(%rsp), %r12
movq %r13, (%r12)
movq -0x28(%rbp), %rsi
movq -0x20(%rbp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xc7aa
movl -0x8(%rbp), %eax
movl %eax, 0x80(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
movl $0x1, %edx
callq 0x2dec2
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 0x2e212
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0x2e77c
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
leaq 0x30(%rsp), %rbx
je 0x2e79d
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x2e7b4
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 0x2e7ea
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x2e7ea
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x2e889
movq 0x30(%rsp), %rsi
jmp 0x2e86d
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xbca2
jmp 0x2e816
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x2e838
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x2e838
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2e85a
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x2e85a
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2e889
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x2e889
movq %rax, %rbx
jmp 0x2e889
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xbca2
movq %rbx, %rdi
callq 0x44c0
nop