// File: /workspace/github_cpp_makefile_star2_O3/fondoger[P]C0-Compiler/src/grammar.cpp
// Function: pCondition()
static void pCondition()
{
    std::string left_val, right_val;
    DataType left_dtype, right_dtype;
    pExpression(left_val, left_dtype);
    if ( g_sym == EQL || g_sym == NEQ || g_sym == LSS ||
         g_sym == LEQ || g_sym == GTR || g_sym == GEQ) {
        std::string op = tokens[g_sym];
        readSymbol();
        pExpression(right_val, right_dtype);
        if (left_dtype != right_dtype) {
            error(ERR_COMPARE_TYPE_NOT_MATCH);
        }
        genMidCode(COMPARE, left_val, op, right_val);
    } else {
        // must be DT_INT
        if (left_dtype != DT_INT) {
            error(ERR_EXPECT_INT_TYPE_SINGLE_CONDITION);
        }
        genMidCode(COMPARE, left_val, NONE, NONE);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
leaq -0x68(%rbp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb %al, (%r14)
leaq -0xc8(%rbp), %r15
movq %r15, -0x10(%r15)
movq %rax, -0x8(%r15)
movb %al, (%r15)
leaq -0x78(%rbp), %rdi
leaq -0x2c(%rbp), %rsi
callq 0x11c82
leaq 0x17b72(%rip), %rax     # 0x29630
movl (%rax), %eax
leal -0x17(%rax), %ecx
cmpl $0x5, %ecx
ja 0x11b82
shlq $0x5, %rax
leaq 0x12669(%rip), %rcx     # 0x24140
leaq -0x48(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
addq %rsi, %rdx
leaq -0x58(%rbp), %rdi
callq 0xe4fc
callq 0x19d18
leaq -0xd8(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x11c82
movl -0x2c(%rbp), %eax
cmpl -0x30(%rbp), %eax
je 0x11b54
leaq -0xa8(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0xa8ab(%rip), %rsi      # 0x1c3cf
leaq 0xa8bd(%rip), %rdx      # 0x1c3e8
leaq -0xb8(%rbp), %rdi
callq 0x14396
leaq -0xb8(%rbp), %rdi
callq 0xdccb
movq -0xb8(%rbp), %rdi
cmpq %r13, %rdi
je 0x11b54
callq 0x32a0
leaq -0x34(%rbp), %rdi
movl $0x11, (%rdi)
leaq -0x78(%rbp), %rsi
leaq -0x58(%rbp), %rdx
leaq -0xd8(%rbp), %rcx
callq 0x150ec
movq -0x58(%rbp), %rdi
cmpq %r12, %rdi
je 0x11be8
callq 0x32a0
jmp 0x11be8
cmpl $0x1, -0x2c(%rbp)
je 0x11bcb
leaq -0x88(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0xa84e(%rip), %rsi      # 0x1c3e9
leaq 0xa875(%rip), %rdx      # 0x1c417
leaq -0x98(%rbp), %rdi
callq 0x14396
leaq -0x98(%rbp), %rdi
callq 0xdccb
movq -0x98(%rbp), %rdi
cmpq %r12, %rdi
je 0x11bcb
callq 0x32a0
leaq -0x58(%rbp), %rdi
movl $0x11, (%rdi)
leaq 0x133a4(%rip), %rcx     # 0x24f80
leaq -0x78(%rbp), %rsi
movq %rcx, %rdx
callq 0x150ec
movq -0xd8(%rbp), %rdi
cmpq %r15, %rdi
je 0x11bf9
callq 0x32a0
movq -0x78(%rbp), %rdi
cmpq %r14, %rdi
je 0x11c07
callq 0x32a0
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0xb8(%rbp), %rdi
cmpq %r13, %rdi
je 0x11c48
callq 0x32a0
jmp 0x11c48
jmp 0x11c45
movq %rax, %rbx
movq -0x98(%rbp), %rdi
jmp 0x11c4c
jmp 0x11c58
jmp 0x11c45
jmp 0x11c58
jmp 0x11c58
movq %rax, %rbx
movq -0x58(%rbp), %rdi
cmpq %r12, %rdi
je 0x11c5b
callq 0x32a0
jmp 0x11c5b
movq %rax, %rbx
movq -0xd8(%rbp), %rdi
cmpq %r15, %rdi
je 0x11c6c
callq 0x32a0
movq -0x78(%rbp), %rdi
cmpq %r14, %rdi
je 0x11c7a
callq 0x32a0
movq %rbx, %rdi
callq 0x3480