// File: /workspace/github_cpp_makefile_star2_O1/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 0x11d47
leaq 0x17aad(%rip), %rax     # 0x29630
movl (%rax), %eax
leal -0x17(%rax), %ecx
cmpl $0x5, %ecx
ja 0x11c47
shlq $0x5, %rax
leaq 0x125a4(%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 0xe4c0
callq 0x19e44
leaq -0xd8(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x11d47
movl -0x2c(%rbp), %eax
cmpl -0x30(%rbp), %eax
je 0x11c19
leaq -0xa8(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0xa82b(%rip), %rsi      # 0x1c414
leaq 0xa83d(%rip), %rdx      # 0x1c42d
leaq -0xb8(%rbp), %rdi
callq 0x14454
leaq -0xb8(%rbp), %rdi
callq 0xdcc8
movq -0xb8(%rbp), %rdi
cmpq %r13, %rdi
je 0x11c19
callq 0x32a0
leaq -0x34(%rbp), %rdi
movl $0x11, (%rdi)
leaq -0x78(%rbp), %rsi
leaq -0x58(%rbp), %rdx
leaq -0xd8(%rbp), %rcx
callq 0x151b0
movq -0x58(%rbp), %rdi
cmpq %r12, %rdi
je 0x11cad
callq 0x32a0
jmp 0x11cad
cmpl $0x1, -0x2c(%rbp)
je 0x11c90
leaq -0x88(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0xa7ce(%rip), %rsi      # 0x1c42e
leaq 0xa7f5(%rip), %rdx      # 0x1c45c
leaq -0x98(%rbp), %rdi
callq 0x14454
leaq -0x98(%rbp), %rdi
callq 0xdcc8
movq -0x98(%rbp), %rdi
cmpq %r12, %rdi
je 0x11c90
callq 0x32a0
leaq -0x58(%rbp), %rdi
movl $0x11, (%rdi)
leaq 0x132df(%rip), %rcx     # 0x24f80
leaq -0x78(%rbp), %rsi
movq %rcx, %rdx
callq 0x151b0
movq -0xd8(%rbp), %rdi
cmpq %r15, %rdi
je 0x11cbe
callq 0x32a0
movq -0x78(%rbp), %rdi
cmpq %r14, %rdi
je 0x11ccc
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 0x11d0d
callq 0x32a0
jmp 0x11d0d
jmp 0x11d0a
movq %rax, %rbx
movq -0x98(%rbp), %rdi
jmp 0x11d11
jmp 0x11d1d
jmp 0x11d0a
jmp 0x11d1d
jmp 0x11d1d
movq %rax, %rbx
movq -0x58(%rbp), %rdi
cmpq %r12, %rdi
je 0x11d20
callq 0x32a0
jmp 0x11d20
movq %rax, %rbx
movq -0xd8(%rbp), %rdi
cmpq %r15, %rdi
je 0x11d31
callq 0x32a0
movq -0x78(%rbp), %rdi
cmpq %r14, %rdi
je 0x11d3f
callq 0x32a0
movq %rbx, %rdi
callq 0x3480