// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x180, %rsp            # imm = 0x180
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 0x125a8
movq 0x70(%rbx), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
leaq 0x28(%rbx), %r14
addq $-0xa0, %rsi
callq 0x14092
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %r15, %rcx
callq 0x12014
leaq 0x10(%rbx), %rdi
movq 0x58(%rbx), %rsi
cmpq 0x60(%rbx), %rsi
jne 0x125e4
movq 0x70(%rbx), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
addq $-0xa0, %rsi
callq 0x13a6a
movq %r14, %rdi
callq 0x14360
leaq 0xe0(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1b100
movq %rsp, %rdi
movq %r15, %rsi
callq 0x4390
leaq 0x10e77(%rip), %rsi     # 0x23494
leaq 0xe0(%rsp), %rdi
callq 0x44d0
leaq 0xe0(%rsp), %rsi
movq %r14, %rdi
callq 0x14092
movq 0x58(%rbx), %rsi
cmpq 0x60(%rbx), %rsi
jne 0x12651
movq 0x70(%rbx), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
addq $-0xa0, %rsi
movq 0x18(%rbx), %rdi
addq $-0x48, %rdi
callq 0x4180
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
andq $0x0, 0x20(%rax)
leaq 0x88(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
leaq 0xa8(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
leaq 0xc8(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
movb %cl, 0x10(%rax)
leaq 0x10dd7(%rip), %rdx     # 0x2349d
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0x13a99
leaq 0x40(%rsp), %r15
leaq 0x20(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x4340
movq %r12, %rdi
callq 0x4548
movq %r14, %rdi
movq %r15, %rsi
callq 0x14092
movq 0x58(%rbx), %rsi
cmpq 0x60(%rbx), %rsi
jne 0x12712
movq 0x70(%rbx), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
addq $-0xa0, %rsi
movq 0x18(%rbx), %rdi
addq $-0x68, %rdi
callq 0x4180
leaq 0x40(%rsp), %rdi
callq 0x13ad2
movq %rsp, %rdi
callq 0x4548
leaq 0xe0(%rsp), %rdi
callq 0x13ad2
addq $0x180, %rsp            # imm = 0x180
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x1275d
movq %rax, %rbx
jmp 0x12777
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x13ad2
jmp 0x1276f
movq %rax, %rbx
movq %rsp, %rdi
callq 0x4548
leaq 0xe0(%rsp), %rdi
callq 0x13ad2
movq %rbx, %rdi
callq 0x4490