// File: /workspace/github_cpp_makefile_star2_O1/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 0x1d27b
movq 0x70(%rbx), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
leaq 0x28(%rbx), %r14
addq $-0xa0, %rsi
callq 0x201dc
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %r15, %rcx
callq 0x1ca1c
leaq 0x10(%rbx), %rdi
movq 0x58(%rbx), %rsi
cmpq 0x60(%rbx), %rsi
jne 0x1d2b7
movq 0x70(%rbx), %rax
movl $0x1e0, %esi            # imm = 0x1E0
addq -0x8(%rax), %rsi
addq $-0xa0, %rsi
callq 0x1f9e8
movq %r14, %rdi
callq 0x20488
leaq 0xe8(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2bc54
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0xca12
leaq 0x1b192(%rip), %rsi     # 0x38494
leaq 0xe8(%rsp), %rdi
callq 0x4510
leaq 0xe8(%rsp), %rsi
movq %r14, %rdi
callq 0x201dc
movq 0x58(%rbx), %rsi
cmpq 0x60(%rbx), %rsi
jne 0x1d336
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 0xca12
leaq 0x1b0d2(%rip), %rsi     # 0x3849d
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 0x1d3fc
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x48(%rsp), %rsi
movq %r14, %rdi
callq 0x201dc
movq 0x58(%rbx), %rsi
cmpq 0x60(%rbx), %rsi
jne 0x1d420
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 0x1d451
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x1d476
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x68(%rsp), %rbx
movq 0x18(%rbx), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x1d49c
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x42a0
movq %rbx, %rdi
callq 0xbf5e
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x1d4bb
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1d4d7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x170(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d4f8
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d519
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d53a
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x108(%rsp), %rbx
movq %rbx, %rdi
callq 0xbf5e
movq -0x20(%rbx), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x1d56b
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 0x1d5a3
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x1d5a3
jmp 0x1d5a0
movq %rax, %rbx
jmp 0x1d5ce
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x1fa18
jmp 0x1d5b2
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1d5ce
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0xe8(%rsp), %rdi
callq 0x1fa18
movq %rbx, %rdi
callq 0x44c0
nop