// File: /workspace/github_cpp_makefile_star2_O2/besm6[P]pascal-re/pascompl.cc
// Function: Factor::Factor()
Factor() {
        inParam = parsingParam;
        parsingParam = false;
        if (SY < MULOP) {
            switch (SY) {
            case IDENT: {
                if (hashTravPtr == NULL) {
                    error(errNotDefined);
                    curExpr = uVarPtr;
                } else switch (hashTravPtr->cl) {
                    case TYPEID: {
                        error(23); /* errTypeIdInsteadOfVar */
                          curExpr = uVarPtr;
                    } break;
                    case ENUMID: {
                        curExpr = new Expr;
                        curExpr->typ = hashTravPtr->typ;
                        curExpr->op = GETENUM;
                        curExpr->num1 = hashTravPtr->value();
                        curExpr->num2 = 0;
                        inSymbol();
                    } break;
                    case ROUTINEID: {
                        routine = hashTravPtr;
                        inSymbol();
                        if (routine->offset == 0) {
                            if (routine->typ != NULL and
                                SY == LPAREN) {
                                stdCall();
                                return;
                            }
                            error(44); /* errIncorrectUsageOfStandProcOrFunc */
                        } else if (routine->typ == NULL) {
                            if (inParam) {
                                curOp = PCALL;
                            } else {
                                error(68); /* errUsingProcedureInExpression */
                            }
                        } else /* 14330 */ {
                            if (SY == LPAREN) {
                                parseCallArgs(routine);
                                return;
                            }
                            if (inParam && (SY == COMMA || (SY == RPAREN))) {
                                curOp = FCALL;
                            } else {
                                parseCallArgs(routine);
                                return;
                            }
                        } /* 14342 */
                        curExpr = new Expr;
                        if (SY != RPAREN && SY != COMMA) {
                            error(errNoCommaOrParenOrTooFewArgs);
                            throw 8888;
                        }
                        curExpr->typ = routine->typ;
                        curExpr->op = curOp;
                        curExpr->expr1 = NULL;
                        curExpr->id2 = routine;
                    } break;
                    case VARID: case FORMALID: case FIELDID:
                        parseLval();
                        break;
                    } /* case */
            } break;
            case LPAREN: {
                expression();
                checkSymAndRead(RPAREN);
            } break;
            case INTCONST: case REALCONST: case CHARCONST: case LTSY: case GTSY: {
                curExpr = new Expr;
                parseLiteral(curExpr->typ, curExpr->d1, false);
                curExpr->num2 = suffix;
                curExpr->op = GETENUM;
                inSymbol();
            } break;
            case NOTSY: {
                inSymbol();
                Factor();
                if (curExpr->typ != BooleanType)
                    error(1); /* errNoCommaNorSemicolon */
                l4exp6z = curExpr;
                curExpr = new Expr;
                curExpr->typ = BooleanType;
                curExpr->op = NOTOP;
                curExpr->expr1 = l4exp6z;
            } break;
            case LBRACK: {
                curExpr = new Expr;
                inSymbol();
                l4var8z = curExpr;
                l4var1z.m = Bits();
                if (SY != RBRACK) {
                    l4var12z = true;
                    bool102z = false;
                    do {
                        l4exp6z = curExpr;
                        expression();
                        if (l4var12z) {
                            curType = curExpr->typ;
                            if (not (Bits(curType->k) <= Bits(kindScalar, kindRange)))
                                error(23); /* errTypeIdInsteadOfVar */
                        } else {
                            if (not typeCheck(curType, curExpr->typ))
                                error(24); /*errIncompatibleExprsInSetCtor*/
                        }
                        l4var12z = false;
                        l4exp5z = curExpr;
                        if (SY == COLON) {
                            expression();
                            if (not typeCheck(curType, curExpr->typ))
                                error(24); /*errIncompatibleExprsInSetCtor*/
                            if (l4exp5z->op == GETENUM and
                                curExpr->op == GETENUM) {
                                l4var4z.i = l4exp5z->num1;
                                l4var3z.i = curExpr->num1;
                                l4var4z.i.exp = 0;
                                l4var3z.i.exp = 0;
                                l4var1z.m = l4var1z.m + BitRange(l4var4z.i, l4var3z.i);
                                curExpr = l4exp6z;
                                goto L14567;
                            }
                            l4var7z = new Expr;
                            l4var7z->typ = setType;
                            l4var7z->op = MKRANGE;
                            l4var7z->expr1 = l4exp5z;
                            l4var7z->expr2 = curExpr;
                            l4exp5z = l4var7z;
                        } else {/* 14535 */
                            if (l4exp5z->op == GETENUM) {
                                l4var4z.i = l4exp5z->num1;
                                l4var4z.i.exp = 0;
                                l4var1z.m = l4var1z.m + Bits(l4var4z.i);
                                curExpr = l4exp6z;
                                goto L14567;
                            }
                            l4var7z = new Expr;
                            l4var7z->typ = setType;
                            l4var7z->op = STANDPROC;
                            l4var7z->expr1 = l4exp5z;
                            l4var7z->num2 = 109;
                            l4exp5z = l4var7z;
                        } /* 14560 */
                        curExpr = new Expr;
                        curExpr->typ = setType;
                        curExpr->op = SETOR;
                        curExpr->expr1 = l4exp6z;
                        curExpr->expr2 = l4exp5z;
L14567:;
                    } while (SY == COMMA);
                } /* 14571 */
                checkSymAndRead(RBRACK);
                l4var8z->op = GETENUM;
                l4var8z->typ = setType;
                l4var8z->d1 = l4var1z;
            } break;
            default:;
            } /* case */
        } else {
            error(errBadSymbol);
            throw 8888;
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x7e8, %rsp            # imm = 0x7E8
movb 0x4efbd(%rip), %al      # 0x637f8
movb %al, 0x8(%rdi)
movb $0x0, 0x4efb3(%rip)     # 0x637f8
movl 0x4efd1(%rip), %eax     # 0x6381c
cmpl $0x8, %eax
jg 0x14dd2
ja 0x148ad
movq %rdi, %rbx
movl %eax, %eax
leaq 0x515e(%rip), %rcx      # 0x199c0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
pushq $0x20
popq %rdi
callq 0x390b
movq %rax, 0x4f226(%rip)     # 0x63aa0
leaq 0x10(%rax), %rsi
movq %rax, %rdi
xorl %edx, %edx
callq 0x71f0
movl 0x4ef32(%rip), %eax     # 0x637c0
movq 0x4f20b(%rip), %rcx     # 0x63aa0
movq %rax, 0x18(%rcx)
movl $0x20, 0x8(%rcx)
leaq 0x398(%rsp), %rdi
callq 0x6316
addq $0x7e8, %rsp            # imm = 0x7E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xd048
pushq $0xc
popq %rdi
addq $0x7e8, %rsp            # imm = 0x7E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7429
movq 0x4f0bc(%rip), %rax     # 0x639a0
testq %rax, %rax
je 0x14c7e
movl 0x20(%rax), %ecx
cmpq $0x5, %rcx
ja 0x148ad
leaq 0x50e7(%rip), %rdx      # 0x199e4
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
addq $0x7e8, %rsp            # imm = 0x7E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xcda9
leaq 0x228(%rsp), %rdi
callq 0x6316
leaq 0x58(%rsp), %rdi
callq 0x14824
movq 0x4f166(%rip), %rax     # 0x63aa0
movq (%rax), %rcx
cmpq 0x4f094(%rip), %rcx     # 0x639d8
je 0x14955
pushq $0x1
popq %rdi
callq 0x4f2c
movq 0x4f14b(%rip), %rax     # 0x63aa0
movq %rax, 0x28(%rbx)
pushq $0x20
popq %rdi
callq 0x390b
movq %rax, 0x4f138(%rip)     # 0x63aa0
movq 0x4f069(%rip), %rcx     # 0x639d8
movq %rcx, (%rax)
movq 0x4f127(%rip), %rax     # 0x63aa0
movl $0x2a, 0x8(%rax)
movq 0x28(%rbx), %rcx
movq %rcx, 0x10(%rax)
jmp 0x148ad
pushq $0x20
popq %rdi
callq 0x390b
movq %rax, 0x4f104(%rip)     # 0x63aa0
leaq 0xb8(%rsp), %rdi
callq 0x6316
movq 0x4f0f0(%rip), %rax     # 0x63aa0
movq %rax, 0x38(%rbx)
andq $0x0, (%rbx)
cmpl $0xd, 0x4ee5d(%rip)     # 0x6381c
je 0x14c51
movb $0x1, 0x58(%rbx)
movb $0x0, 0x4efa5(%rip)     # 0x63975
leaq 0x18(%rbx), %r14
leaq 0x10(%rbx), %rcx
movq %rcx, 0x8(%rsp)
pushq $0x17
popq %r15
leaq 0x10(%rsp), %r12
pushq $0x20
popq %r13
pushq $0x18
popq %rbp
movq %rax, 0x28(%rbx)
callq 0xd048
cmpb $0x1, 0x58(%rbx)
jne 0x14b0f
movq 0x4f099(%rip), %rax     # 0x63aa0
movq (%rax), %rax
movq %rax, 0x50(%rbx)
movb $0x2f, %cl
subb 0x10(%rax), %cl
movzbl %cl, %eax
movabsq $0x9fffffffffff, %rcx   # imm = 0x9FFFFFFFFFFF
btq %rax, %rcx
movq %r15, %rdi
jae 0x14a2e
callq 0x4f2c
movb $0x0, 0x58(%rbx)
movq 0x4f067(%rip), %rax     # 0x63aa0
movq %rax, 0x20(%rbx)
cmpl $0x12, 0x4edd8(%rip)    # 0x6381c
jne 0x14b40
callq 0xd048
movq 0x50(%rbx), %rsi
movq 0x4f046(%rip), %rax     # 0x63aa0
movq (%rax), %rdx
movq %r12, %rdi
callq 0x74d4
addq $-0x8, 0xa793b(%rip)    # 0xbc3a8
cmpb $0x0, 0x10(%rsp)
jne 0x14a7c
movq %rbp, %rdi
callq 0x4f2c
movq 0x20(%rbx), %rax
cmpl $0x20, 0x8(%rax)
jne 0x14b96
movq 0x4f00f(%rip), %rcx     # 0x63aa0
cmpl $0x20, 0x8(%rcx)
jne 0x14b96
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0x381c
movq 0x4eff2(%rip), %rax     # 0x63aa0
movq 0x10(%rax), %rsi
movq 0x8(%rsp), %rdi
callq 0x381c
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rdi
movq %rdi, %rax
movabsq $-0xfe0000000001, %rcx  # imm = 0xFFFF01FFFFFFFFFF
andq %rcx, %rax
movq %rax, 0x18(%rbx)
movq %rsi, %rax
andq %rcx, %rax
movq %rax, 0x10(%rbx)
shlq $0x17, %rdi
sarq $0x17, %rdi
shlq $0x17, %rsi
sarq $0x17, %rsi
callq 0x37ec
movq (%rbx), %rcx
movabsq $0xffffffffffff, %rdx   # imm = 0xFFFFFFFFFFFF
andq %rdx, %rcx
orq %rax, %rcx
movq %rcx, (%rbx)
jmp 0x14b86
movq 0x50(%rbx), %rsi
movq 0x4ef86(%rip), %rax     # 0x63aa0
movq (%rax), %rdx
movq %r12, %rdi
callq 0x74d4
addq $-0x8, 0xa787b(%rip)    # 0xbc3a8
cmpb $0x0, 0x10(%rsp)
movq %rbp, %rdi
je 0x14a29
jmp 0x14a2e
cmpl $0x20, 0x8(%rax)
jne 0x14bd0
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0x381c
movq (%rbx), %rax
movq 0x18(%rbx), %rcx
movb $0x2f, %dl
subb %cl, %dl
movabsq $-0xfe0000000001, %rsi  # imm = 0xFFFF01FFFFFFFFFF
andq %rsi, %rcx
movq %rcx, 0x18(%rbx)
btsq %rdx, %rax
movabsq $0xffffffffffff, %rcx   # imm = 0xFFFFFFFFFFFF
andq %rcx, %rax
movq %rax, (%rbx)
movq 0x28(%rbx), %rax
movq %rax, 0x4ef0f(%rip)     # 0x63aa0
jmp 0x14c44
movq %r13, %rdi
callq 0x390b
movq %rax, 0x30(%rbx)
movq 0x4ee27(%rip), %rcx     # 0x639d0
movq %rcx, (%rax)
movq 0x30(%rbx), %rax
movl $0x1a, 0x8(%rax)
movq 0x20(%rbx), %rcx
movq %rcx, 0x10(%rax)
movq 0x4eeda(%rip), %rax     # 0x63aa0
movq 0x30(%rbx), %rcx
movq %rax, 0x18(%rcx)
jmp 0x14c05
movq %r13, %rdi
callq 0x390b
movq %rax, 0x30(%rbx)
movq 0x4eded(%rip), %rcx     # 0x639d0
movq %rcx, (%rax)
movq 0x30(%rbx), %rax
movl $0x2d, 0x8(%rax)
movq 0x20(%rbx), %rcx
movq %rcx, 0x10(%rax)
movq 0x30(%rbx), %rax
movq $0x6d, 0x18(%rax)
movq 0x30(%rbx), %rax
movq %rax, 0x20(%rbx)
movq %r13, %rdi
callq 0x390b
movq %rax, 0x4ee84(%rip)     # 0x63aa0
movq 0x4edad(%rip), %rcx     # 0x639d0
movq %rcx, (%rax)
movq 0x4ee73(%rip), %rax     # 0x63aa0
movl $0x13, 0x8(%rax)
movq 0x28(%rbx), %rcx
movq %rcx, 0x10(%rax)
movq 0x20(%rbx), %rcx
movq %rcx, 0x18(%rax)
cmpl $0xe, 0x4ebd1(%rip)     # 0x6381c
je 0x149ed
pushq $0xd
popq %rdi
callq 0x7429
movq 0x38(%rbx), %rax
movl $0x20, 0x8(%rax)
movq 0x4ed65(%rip), %rcx     # 0x639d0
movq %rcx, (%rax)
movq (%rbx), %rax
movq 0x38(%rbx), %rcx
movq %rax, 0x10(%rcx)
jmp 0x148ad
pushq $0xb
popq %rdi
callq 0x4f2c
movq 0x4ee0b(%rip), %rax     # 0x63a98
movq %rax, 0x4ee0c(%rip)     # 0x63aa0
jmp 0x148ad
movq %rax, 0x40(%rbx)
leaq 0x508(%rsp), %rdi
callq 0x6316
movq 0x40(%rbx), %rdi
cmpq $0x0, 0x8(%rdi)
movq 0x18(%rdi), %rax
je 0x14d36
testq %rax, %rax
je 0x14d51
movl 0x4eb54(%rip), %eax     # 0x6381c
cmpl $0x7, %eax
jne 0x14d60
callq 0xd295
jmp 0x148ad
pushq $0x17
jmp 0x14c80
pushq $0x20
popq %rdi
callq 0x390b
movq %rax, 0x4edb2(%rip)     # 0x63aa0
movq 0x4ecab(%rip), %rcx     # 0x639a0
movq 0x18(%rcx), %rcx
movq %rcx, (%rax)
movq 0x4ed9d(%rip), %rax     # 0x63aa0
movl $0x20, 0x8(%rax)
movq 0x4ec8f(%rip), %rdi     # 0x639a0
callq 0x12c80
movq (%rax), %rax
movq 0x4ed80(%rip), %rcx     # 0x63aa0
movq %rax, 0x10(%rcx)
andq $0x0, 0x18(%rcx)
leaq 0x678(%rsp), %rdi
jmp 0x148a8
testq %rax, %rax
je 0x14d7f
cmpl $0x7, 0x4eada(%rip)     # 0x6381c
jne 0x14d7f
movq %rbx, %rdi
callq 0x16460
jmp 0x148ad
cmpb $0x1, 0x8(%rbx)
jne 0x14d83
movl $0x26, 0x48(%rbx)
jmp 0x14d8b
andl $-0x3, %eax
cmpl $0xc, %eax
jne 0x14cd1
cmpb $0x0, 0x8(%rbx)
je 0x14cd1
movl $0x27, 0x48(%rbx)
jmp 0x14d8b
pushq $0x2c
jmp 0x14d85
pushq $0x44
popq %rdi
callq 0x4f2c
pushq $0x20
popq %rdi
callq 0x390b
movq %rax, 0x4ed06(%rip)     # 0x63aa0
movl 0x4ea7c(%rip), %ecx     # 0x6381c
andl $-0x3, %ecx
cmpl $0xc, %ecx
jne 0x14df9
movq 0x40(%rbx), %rcx
movq 0x18(%rcx), %rcx
movq %rcx, (%rax)
movl 0x48(%rbx), %eax
movq 0x4ece3(%rip), %rcx     # 0x63aa0
movl %eax, 0x8(%rcx)
andq $0x0, 0x10(%rcx)
movq 0x40(%rbx), %rax
movq %rax, 0x18(%rcx)
jmp 0x148ad
pushq $0xc
popq %rdi
callq 0x4f2c
pushq $0x4
popq %rdi
callq 0x3110
movl $0x22b8, (%rax)         # imm = 0x22B8
movq 0xe191(%rip), %rsi      # 0x22f80
movq %rax, %rdi
xorl %edx, %edx
callq 0x33e0
pushq $0x29
jmp 0x14dd4
nop