// File: /workspace/github_cpp_makefile_star2_O3/Merulo[P]CompilerJFTT/src/IRs/FirstIR.cpp
// Function: FirstIR::handleConditionOperation(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void FirstIR::handleConditionOperation(cStrRef operation, cStrRef one, cStrRef two)
{
    _conditionBlocks.push(_currentBlock.top());
    addNewCode(operation, one, two);
    _blocks.push_back(_currentBlock.top());
    _currentBlock.pop();

    //creates blockIfFalse
    Block b2 = generateConditionBlock();
    std::string name = b2.blockName;
    b2.blockName+= "_ifFalse";
    _currentBlock.push(b2);
    _blocks.back().blockIfFalse = _currentBlock.top().blockName;

    //creates blockIfTrue
    Block b3;
    b3.blockName = name + "_ifTrue";
    _currentBlock.push(b3);
    _blocks.back().blockIfTrue = _currentBlock.top().blockName;    

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
addq $0x118, %rdi            # imm = 0x118
movq 0x58(%rbx), %rsi
cmpq 0x60(%rbx), %rsi
jne 0x1cfaf
movq 0x70(%rbx), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
leaq 0x28(%rbx), %r14
addq $-0xa0, %rsi
callq 0x1ff14
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %r15, %rcx
callq 0x1c778
leaq 0x10(%rbx), %rdi
movq 0x58(%rbx), %rsi
cmpq 0x60(%rbx), %rsi
jne 0x1cfeb
movq 0x70(%rbx), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
addq $-0xa0, %rsi
callq 0x1f720
movq %r14, %rdi
callq 0x201c0
leaq 0xe8(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2b9b8
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0xc7aa
leaq 0x1a45e(%rip), %rsi     # 0x37494
leaq 0xe8(%rsp), %rdi
callq 0x4510
leaq 0xe8(%rsp), %rsi
movq %r14, %rdi
callq 0x1ff14
movq 0x58(%rbx), %rsi
cmpq 0x60(%rbx), %rsi
jne 0x1d06a
movq 0x70(%rbx), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
addq $-0xa0, %rsi
movq 0x18(%rbx), %rdi
addq $-0x48, %rdi
callq 0x4170
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
xorl %eax, %eax
movq %rax, -0x8(%r13)
movb %al, (%r13)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r13)
movq %rax, 0x20(%r13)
leaq 0x90(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0xb0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0xd0(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq %rax, -0x8(%rbp)
movb %al, (%rbp)
movb %al, 0x10(%rbp)
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0xc7aa
leaq 0x1a39e(%rip), %rsi     # 0x3749d
leaq 0x28(%rsp), %rdi
callq 0x4510
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %r15
movq %r15, %rsi
callq 0x4380
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x1d130
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x48(%rsp), %rsi
movq %r14, %rdi
callq 0x1ff14
movq 0x58(%rbx), %rsi
cmpq 0x60(%rbx), %rsi
jne 0x1d154
movq 0x70(%rbx), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
addq $-0xa0, %rsi
movq 0x18(%rbx), %rdi
addq $-0x68, %rdi
callq 0x4170
movq 0xc0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1d185
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x1d1aa
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x68(%rsp), %rbx
movq 0x18(%rbx), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x1d1d0
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x42a0
movq %rbx, %rdi
callq 0xbcf0
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x1d1ef
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1d20b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x170(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d22c
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d24d
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d26e
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x108(%rsp), %rbx
movq %rbx, %rdi
callq 0xbcf0
movq -0x20(%rbx), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x1d29f
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x42a0
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x1d2d7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x1d2d7
jmp 0x1d2d4
movq %rax, %rbx
jmp 0x1d302
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x1f750
jmp 0x1d2e6
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1d302
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0xe8(%rsp), %rdi
callq 0x1f750
movq %rbx, %rdi
callq 0x44c0
nop