// File: /workspace/github_cpp_makefile_star2_O2/besm6[P]pascal-re/pascompl.cc
// Function: term()
void term()
{
    Operator l4var1z;
    ExprPtr l4var2z, l4var3z;
    bool l4var4z;

    Factor();
    while (SY == MULOP) {
        l4var1z = charClass;
        inSymbol();
        l4var2z = curExpr;
        Factor();
        arg1Type = curExpr->typ;
        arg2Type = l4var2z->typ;
        l4var4z = typeCheck(arg1Type, arg2Type);
        if (not l4var4z and
            RDIVOP < l4var1z) {
L14650:
            error(errNeedOtherTypesOfOperands);
        } else {
            switch (l4var1z) {
            case MUL:
            case RDIVOP: {
                if (l4var4z) {
                    if (arg1Type == RealType) {
                        /* empty */
                    } else {
                        if (typ120z == IntegerType) {
                            if (l4var1z == MUL) {
                                arg1Type = IntegerType;
                            } else {
                                arg1Type = RealType;
                            }
                            l4var1z = iMulOpMap[l4var1z];
                        } else {
                            if (arg1Type->k == kindSet) {
                                l4var1z = setOpMap[l4var1z];
                            } else
                                goto L14650;
                        }
                    }
                } else {
                    if (areTypesCompatible(l4var2z)) {
                        arg1Type = RealType;
                    } else
                        goto L14650;
                }
            } break;
            case AMPERS: {
                if (arg1Type != BooleanType)
                    goto L14650;
            } break;
            case IDIVOP: {
                if (typ120z != IntegerType)
                    goto L14650;
                arg1Type = IntegerType;
            } break;
            case IMODOP: {
                if (typ120z == IntegerType) {
                    arg1Type = IntegerType;
                } else {
                    if (arg1Type->k == kindSet)
                        l4var1z = SETXOR;
                    else
                        goto L14650;
                }
            } break;
            default: break;
            }
            l4var3z = new Expr;
            l4var3z->op = l4var1z;
            l4var3z->expr1 = l4var2z;
            l4var3z->expr2 = curExpr;
            curExpr = l4var3z;
            l4var3z->typ = arg1Type;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
leaq 0xb8(%rsp), %rdi
callq 0x14824
leaq 0x118(%rsp), %rbx
leaq 0x58(%rsp), %r14
leaq 0x10(%rsp), %r15
leaq 0xc109(%rip), %r13      # 0x19660
cmpl $0x9, 0x562be(%rip)     # 0x6381c
jne 0xd6fa
movl 0x562ae(%rip), %ebp     # 0x63818
movq %rbx, %rdi
callq 0x6316
movq 0x56527(%rip), %r12     # 0x63aa0
movq %r12, 0x8(%rsp)
movq %r14, %rdi
callq 0x14824
movq 0x56513(%rip), %rax     # 0x63aa0
movq (%rax), %rsi
movq %rsi, 0x56471(%rip)     # 0x63a08
movq (%r12), %rdx
movq %rdx, 0x5646e(%rip)     # 0x63a10
movq %r15, %rdi
callq 0x74d4
addq $-0x8, 0xaedf6(%rip)    # 0xbc3a8
movb 0x10(%rsp), %cl
cmpl $0x2, %ebp
setl %al
orb %cl, %al
je 0xd69a
cmpl $0x4, %ebp
ja 0xd6ca
movl %ebp, %eax
movslq (%r13,%rax,4), %rdx
addq %r13, %rdx
jmpq *%rdx
testb %cl, %cl
je 0xd677
movq 0x56420(%rip), %rdx     # 0x63a08
movq 0x56401(%rip), %rcx     # 0x639f0
cmpq %rcx, %rdx
je 0xd6ca
movq 0x563e9(%rip), %rsi     # 0x639e8
cmpq %rsi, 0x563b2(%rip)     # 0x639b8
je 0xd6b3
cmpl $0x4, 0x10(%rdx)
jne 0xd69a
leaq 0x5a453(%rip), %rcx     # 0x67a70
jmp 0xd6c7
movq 0x563bf(%rip), %rax     # 0x639e8
cmpq %rax, 0x56388(%rip)     # 0x639b8
je 0xd6a7
movq 0x563cf(%rip), %rax     # 0x63a08
cmpl $0x4, 0x10(%rax)
pushq $0x12
popq %rbp
jne 0xd69a
jmp 0xd6ca
movq 0x563ba(%rip), %rax     # 0x63a08
pushq $0x2
popq %rbp
cmpq 0x56380(%rip), %rax     # 0x639d8
jne 0xd69a
jmp 0xd6ca
movq 0x56385(%rip), %rax     # 0x639e8
cmpq %rax, 0x5634e(%rip)     # 0x639b8
jne 0xd69a
movq %rax, 0x56395(%rip)     # 0x63a08
pushq $0x3
jmp 0xd6b0
leaq 0x8(%rsp), %rdi
callq 0xd209
testb %al, %al
je 0xd69a
movq 0x56364(%rip), %rax     # 0x639f0
movq %rax, 0x56375(%rip)     # 0x63a08
movq 0x8(%rsp), %r12
jmp 0xd6ca
pushq $0x15
popq %rdi
callq 0x4f2c
jmp 0xd557
movq %rax, 0x5635a(%rip)     # 0x63a08
pushq $0x4
popq %rbp
jmp 0xd6ca
testl %ebp, %ebp
cmoveq %rsi, %rcx
movq %rcx, 0x56348(%rip)     # 0x63a08
leaq 0x5a2e9(%rip), %rcx     # 0x679b0
movl (%rcx,%rax,4), %ebp
pushq $0x20
popq %rdi
callq 0x390b
movl %ebp, 0x8(%rax)
movq %r12, 0x10(%rax)
movq 0x563c0(%rip), %rcx     # 0x63aa0
movq %rcx, 0x18(%rax)
movq %rax, 0x563b5(%rip)     # 0x63aa0
movq 0x56316(%rip), %rcx     # 0x63a08
movq %rcx, (%rax)
jmp 0xd557
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq