// File: /workspace/github_cpp_makefile_star2_O3/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 0x17a3e
cmpl $0x9, 0x553f0(%rip)     # 0x6481c
jne 0xf5ff
leaq 0x118(%rsp), %rbx
leaq 0x58(%rsp), %r14
leaq 0x10(%rsp), %r15
leaq 0xd319(%rip), %r13      # 0x1c764
movl 0x553c6(%rip), %r12d    # 0x64818
movq %rbx, %rdi
callq 0x6f40
movq 0x5563f(%rip), %rbp     # 0x64aa0
movq %rbp, 0x8(%rsp)
movq %r14, %rdi
callq 0x17a3e
movq 0x5562b(%rip), %rax     # 0x64aa0
movq (%rax), %rsi
movq %rsi, 0x55589(%rip)     # 0x64a08
movq (%rbp), %rdx
movq %rdx, 0x55586(%rip)     # 0x64a10
movq %r15, %rdi
callq 0x84c6
addq $-0x8, 0xadf0e(%rip)    # 0xbd3a8
movb 0x10(%rsp), %cl
cmpl $0x2, %r12d
setl %al
orb %cl, %al
je 0xf590
cmpl $0x4, %r12d
ja 0xf5c4
movl %r12d, %eax
movslq (%r13,%rax,4), %rdx
addq %r13, %rdx
jmpq *%rdx
testb %cl, %cl
je 0xf56d
movq 0x55535(%rip), %rdx     # 0x64a08
movq 0x55516(%rip), %rcx     # 0x649f0
cmpq %rcx, %rdx
je 0xf5c4
movq 0x554fe(%rip), %rsi     # 0x649e8
cmpq %rsi, 0x554c7(%rip)     # 0x649b8
je 0xf5ab
cmpl $0x4, 0x10(%rdx)
jne 0xf590
leaq 0x59568(%rip), %rcx     # 0x68a70
jmp 0xf5c0
movq 0x554d4(%rip), %rax     # 0x649e8
cmpq %rax, 0x5549d(%rip)     # 0x649b8
je 0xf59c
movq 0x554e4(%rip), %rax     # 0x64a08
movl $0x12, %r12d
cmpl $0x4, 0x10(%rax)
je 0xf5c4
jmp 0xf590
movq 0x554cb(%rip), %rax     # 0x64a08
cmpq 0x55494(%rip), %rax     # 0x649d8
jne 0xf590
movl $0x2, %r12d
jmp 0xf5c4
movq 0x55493(%rip), %rax     # 0x649e8
cmpq %rax, 0x5545c(%rip)     # 0x649b8
jne 0xf590
movq %rax, 0x554a3(%rip)     # 0x64a08
movl $0x3, %r12d
jmp 0xf5c4
leaq 0x8(%rsp), %rdi
callq 0xf035
testb %al, %al
je 0xf590
movq 0x5546e(%rip), %rax     # 0x649f0
movq %rax, 0x5547f(%rip)     # 0x64a08
movq 0x8(%rsp), %rbp
jmp 0xf5c4
movl $0x15, %edi
callq 0x58ff
jmp 0xf5f2
movq %rax, 0x55465(%rip)     # 0x64a08
movl $0x4, %r12d
jmp 0xf5c4
testl %r12d, %r12d
cmoveq %rsi, %rcx
movq %rcx, 0x5544f(%rip)     # 0x64a08
leaq 0x593f0(%rip), %rcx     # 0x689b0
movl (%rcx,%rax,4), %r12d
movl $0x20, %edi
callq 0x3d77
movl %r12d, 0x8(%rax)
movq %rbp, 0x10(%rax)
movq 0x554c3(%rip), %rcx     # 0x64aa0
movq %rcx, 0x18(%rax)
movq %rax, 0x554b8(%rip)     # 0x64aa0
movq 0x55419(%rip), %rcx     # 0x64a08
movq %rcx, (%rax)
cmpl $0x9, 0x55223(%rip)     # 0x6481c
je 0xf44b
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq