// File: /workspace/github_cpp_makefile_star2_O3/Merulo[P]CompilerJFTT/src/IRs/ThirdIR.cpp
// Function: ThirdIR::checkZeroJump(Block&)
bool ThirdIR::checkZeroJump(Block& b)
{
    Line lastLine = b.lines.back();
    if (_symbolTable->isConst(lastLine.one) && _symbolTable->getConstValue(lastLine.one) == "0" && !_symbolTable->isConst(lastLine.two))
    {
        return true;
    }
    if (_symbolTable->isConst(lastLine.two) && _symbolTable->getConstValue(lastLine.two) == "0" && !_symbolTable->isConst(lastLine.one))
    {
        return true;
    }    
    return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rdi, %rbx
movq 0x28(%rsi), %r14
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
movq -0x68(%r14), %rsi
movq -0x60(%r14), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0xc7aa
leaq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %r15
movq %r15, -0x10(%r15)
movq -0x48(%r14), %rsi
movq -0x40(%r14), %rdx
addq %rsi, %rdx
callq 0xc7aa
leaq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %r13
movq %r13, -0x10(%r13)
movq -0x28(%r14), %rsi
movq -0x20(%r14), %rdx
addq %rsi, %rdx
callq 0xc7aa
movl -0x8(%r14), %eax
movl %eax, 0x80(%rsp)
movq (%rbx), %r14
leaq 0x138(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
leaq 0x128(%rsp), %rdi
callq 0xc7aa
leaq 0x128(%rsp), %rsi
movq %r14, %rdi
callq 0x1a6f8
testb %al, %al
je 0x2eed5
movq (%rbx), %r14
leaq 0x118(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
leaq 0x108(%rsp), %rdi
callq 0xc7aa
movq %rsp, %rdi
leaq 0x108(%rsp), %rdx
movq %r14, %rsi
callq 0x1afb8
leaq 0x8671(%rip), %rsi      # 0x37535
movq %rsp, %rdi
callq 0x40d0
testl %eax, %eax
je 0x2eedd
xorl %r14d, %r14d
jmp 0x2ef40
xorl %r14d, %r14d
jmp 0x2ef7d
movq (%rbx), %r14
leaq 0xf8(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
leaq 0xe8(%rsp), %rdi
callq 0xc7aa
leaq 0xe8(%rsp), %rsi
movq %r14, %rdi
callq 0x1a6f8
movl %eax, %r14d
xorb $0x1, %r14b
movq 0xe8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2ef3b
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x30(%rsp), %r12
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2ef5b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x2ef78
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x50(%rsp), %r15
movq 0x128(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2ef9a
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x42a0
movb $0x1, %bpl
testb %r14b, %r14b
jne 0x2f0fe
movq (%rbx), %r14
leaq 0xb8(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa8(%rsp), %rdi
callq 0xc7aa
leaq 0xa8(%rsp), %rsi
movq %r14, %rdi
callq 0x1a6f8
testb %al, %al
je 0x2f036
movq (%rbx), %r14
leaq 0x98(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0xc7aa
movq %rsp, %rdi
leaq 0x88(%rsp), %rdx
movq %r14, %rsi
callq 0x1afb8
leaq 0x850f(%rip), %rsi      # 0x37535
movq %rsp, %rdi
callq 0x40d0
testl %eax, %eax
je 0x2f03d
xorl %ebp, %ebp
jmp 0x2f099
xorl %ebp, %ebp
jmp 0x2f0d9
movq (%rbx), %rbx
leaq 0xd8(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
leaq 0xc8(%rsp), %rdi
callq 0xc7aa
leaq 0xc8(%rsp), %rsi
movq %rbx, %rdi
callq 0x1a6f8
movl %eax, %ebp
xorb $0x1, %bpl
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2f099
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2f0b4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x2f0d9
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x2f0fe
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0x2f115
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x2f12c
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x2f143
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42a0
movl %ebp, %eax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2f17c
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x2f17c
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2f1de
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x2f1de
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2f1be
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x2f1be
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2f230
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x2f230
movq %rax, %rbx
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x2f20a
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x2f20a
jmp 0x2f207
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x2f2ae
movq 0xb8(%rsp), %rsi
jmp 0x2f269
movq %rax, %rbx
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x2f254
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x2f254
jmp 0x2f251
movq %rax, %rbx
movq 0x128(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2f2ae
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x2f2ae
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x2f292
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x2f292
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x2f2b8
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x2f2b8
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xbca2
movq %rbx, %rdi
callq 0x44c0