// File: /workspace/github_cpp_makefile_star2_O1/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 $0x7d8, %rsp            # imm = 0x7D8
movb 0x4d15d(%rip), %al      # 0x64808
movb %al, 0x8(%rdi)
movb $0x0, 0x4d153(%rip)     # 0x64808
movl 0x4d171(%rip), %eax     # 0x6482c
cmpl $0x8, %eax
jg 0x17c86
ja 0x1771f
movq %rdi, %rbx
movl %eax, %eax
leaq 0x52be(%rip), %rcx      # 0x1c990
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x20, %edi
callq 0x3d03
movq %rax, 0x4d3c4(%rip)     # 0x64ab0
leaq 0x10(%rax), %rsi
movq %rax, %rdi
xorl %edx, %edx
callq 0x8027
movl 0x4d0d0(%rip), %eax     # 0x647d0
movq 0x4d3a9(%rip), %rcx     # 0x64ab0
movq %rax, 0x18(%rcx)
movl $0x20, 0x8(%rcx)
leaq 0x388(%rsp), %rdi
callq 0x6e26
addq $0x7d8, %rsp            # imm = 0x7D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xebcc
movl $0xc, %edi
addq $0x7d8, %rsp            # imm = 0x7D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x82d3
movq 0x4d258(%rip), %rax     # 0x649b0
testq %rax, %rax
je 0x17b1b
movl 0x20(%rax), %ecx
cmpq $0x5, %rcx
ja 0x1771f
leaq 0x5243(%rip), %rdx      # 0x1c9b4
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
addq $0x7d8, %rsp            # imm = 0x7D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe885
leaq 0x218(%rsp), %rdi
callq 0x6e26
leaq 0x48(%rsp), %rdi
callq 0x17694
movq 0x4d302(%rip), %rax     # 0x64ab0
movq (%rax), %rax
cmpq 0x4d230(%rip), %rax     # 0x649e8
je 0x177c4
movl $0x1, %edi
callq 0x589e
movq 0x4d2e5(%rip), %rax     # 0x64ab0
movq %rax, 0x28(%rbx)
movl $0x20, %edi
callq 0x3d03
movq %rax, 0x4d2d0(%rip)     # 0x64ab0
movq 0x4d201(%rip), %rcx     # 0x649e8
movq %rcx, (%rax)
movq 0x4d2bf(%rip), %rax     # 0x64ab0
movl $0x2a, 0x8(%rax)
movq 0x28(%rbx), %rcx
movq %rcx, 0x10(%rax)
jmp 0x1771f
movl $0x20, %edi
callq 0x3d03
movq %rax, 0x4d29a(%rip)     # 0x64ab0
leaq 0xa8(%rsp), %rdi
callq 0x6e26
movq 0x4d286(%rip), %rax     # 0x64ab0
movq %rax, 0x38(%rbx)
movq $0x0, (%rbx)
cmpl $0xd, 0x4cff0(%rip)     # 0x6482c
je 0x17aec
movabsq $0xffffffffffff, %rbp   # imm = 0xFFFFFFFFFFFF
movb $0x1, 0x58(%rbx)
movb $0x0, 0x4d12e(%rip)     # 0x64985
leaq 0x18(%rbx), %r14
leaq 0x10(%rbx), %r15
movabsq $0x9fffffffffff, %r13   # imm = 0x9FFFFFFFFFFF
movq %rsp, %r12
movq 0x4d23d(%rip), %rax     # 0x64ab0
movq %rax, 0x28(%rbx)
callq 0xebcc
cmpb $0x1, 0x58(%rbx)
jne 0x1797b
movq 0x4d223(%rip), %rax     # 0x64ab0
movq (%rax), %rax
movq %rax, 0x50(%rbx)
movb $0x2f, %cl
subb 0x10(%rax), %cl
movzbl %cl, %eax
movl $0x17, %edi
btq %rax, %r13
jae 0x178ac
callq 0x589e
movb $0x0, 0x58(%rbx)
movq 0x4d1f9(%rip), %rax     # 0x64ab0
movq %rax, 0x20(%rbx)
cmpl $0x12, 0x4cf6a(%rip)    # 0x6482c
jne 0x179ad
callq 0xebcc
movq 0x50(%rbx), %rsi
movq 0x4d1d8(%rip), %rax     # 0x64ab0
movq (%rax), %rdx
movq %r12, %rdi
callq 0x83b2
addq $-0x8, 0xa5acd(%rip)    # 0xbd3b8
cmpb $0x0, (%rsp)
jne 0x178fb
movl $0x18, %edi
callq 0x589e
movq 0x20(%rbx), %rax
cmpl $0x20, 0x8(%rax)
jne 0x179e7
movq 0x4d1a0(%rip), %rcx     # 0x64ab0
cmpl $0x20, 0x8(%rcx)
jne 0x179e7
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0x3bf2
movq 0x4d183(%rip), %rax     # 0x64ab0
movq 0x10(%rax), %rsi
movq %r15, %rdi
callq 0x3bf2
movq (%r14), %rdx
movq %rdx, %rax
movabsq $-0xfe0000000001, %rsi  # imm = 0xFFFF01FFFFFFFFFF
andq %rsi, %rax
movq %rax, (%r14)
movq (%r15), %rax
movq %rax, %rcx
andq %rsi, %rcx
movq %rcx, (%r15)
shlq $0x17, %rdx
sarq $0x17, %rdx
shlq $0x17, %rax
sarq $0x17, %rax
cmpq %rax, %rdx
jle 0x17a9d
xorl %edx, %edx
jmp 0x17ac8
movq 0x50(%rbx), %rsi
movq 0x4d12a(%rip), %rax     # 0x64ab0
movq (%rax), %rdx
movq %r12, %rdi
callq 0x83b2
addq $-0x8, 0xa5a1f(%rip)    # 0xbd3b8
cmpb $0x0, (%rsp)
movl $0x18, %edi
je 0x178a7
jmp 0x178ac
cmpl $0x20, 0x8(%rax)
jne 0x17a23
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0x3bf2
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
andq %rbp, %rax
jmp 0x17ad1
movl $0x20, %edi
callq 0x3d03
movq %rax, 0x30(%rbx)
movq 0x4cfe4(%rip), %rcx     # 0x649e0
movq %rcx, (%rax)
movq 0x30(%rbx), %rax
movl $0x1a, 0x8(%rax)
movq 0x20(%rbx), %rcx
movq %rcx, 0x10(%rax)
movq 0x4d097(%rip), %rax     # 0x64ab0
movq 0x30(%rbx), %rcx
movq %rax, 0x18(%rcx)
jmp 0x17a5a
movl $0x20, %edi
callq 0x3d03
movq %rax, 0x30(%rbx)
movq 0x4cfa8(%rip), %rcx     # 0x649e0
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)
movl $0x20, %edi
callq 0x3d03
movq %rax, 0x4d03d(%rip)     # 0x64ab0
movq 0x4cf66(%rip), %rcx     # 0x649e0
movq %rcx, (%rax)
movq 0x4d02c(%rip), %rax     # 0x64ab0
movl $0x13, 0x8(%rax)
movq 0x28(%rbx), %rcx
movq %rcx, 0x10(%rax)
movq 0x20(%rbx), %rcx
movq %rcx, 0x18(%rax)
jmp 0x17adf
incq %rax
movl $0x2f, %ecx
subq %rdx, %rcx
xorl %edx, %edx
movl $0x1, %esi
shlq %cl, %rsi
andq %rbp, %rsi
orq %rsi, %rdx
leaq (%rax,%rcx), %rsi
decq %rsi
decq %rcx
cmpq $0x2f, %rsi
jne 0x17aaa
movq (%rbx), %rax
andq %rbp, %rax
orq %rdx, %rax
movq %rax, (%rbx)
movq 0x28(%rbx), %rax
movq %rax, 0x4cfd1(%rip)     # 0x64ab0
cmpl $0xe, 0x4cd46(%rip)     # 0x6482c
je 0x1786c
movl $0xd, %edi
callq 0x82d3
movq 0x38(%rbx), %rax
movl $0x20, 0x8(%rax)
movq 0x4ced8(%rip), %rcx     # 0x649e0
movq %rcx, (%rax)
movq (%rbx), %rax
movq 0x38(%rbx), %rcx
movq %rax, 0x10(%rcx)
jmp 0x1771f
movl $0xb, %edi
callq 0x589e
movq 0x4cf7c(%rip), %rax     # 0x64aa8
movq %rax, 0x4cf7d(%rip)     # 0x64ab0
jmp 0x1771f
movq %rax, 0x40(%rbx)
leaq 0x4f8(%rsp), %rdi
callq 0x6e26
movq 0x40(%rbx), %rdi
cmpq $0x0, 0x8(%rdi)
movq 0x18(%rdi), %rax
je 0x17be0
testq %rax, %rax
je 0x17bfb
movl 0x4ccc1(%rip), %eax     # 0x6482c
cmpl $0x7, %eax
jne 0x17c0a
callq 0xee60
jmp 0x1771f
movl $0x17, %edi
jmp 0x17b20
movl $0x20, %edi
callq 0x3d03
movq %rax, 0x4cf1a(%rip)     # 0x64ab0
movq 0x4ce13(%rip), %rcx     # 0x649b0
movq 0x18(%rcx), %rcx
movq %rcx, (%rax)
movq 0x4cf05(%rip), %rax     # 0x64ab0
movl $0x20, 0x8(%rax)
movq 0x4cdf7(%rip), %rcx     # 0x649b0
cmpl $0x0, 0x20(%rcx)
je 0x17cb1
movq 0x30(%rcx), %rcx
movq %rcx, 0x10(%rax)
movq $0x0, 0x18(%rax)
leaq 0x668(%rsp), %rdi
jmp 0x1771a
testq %rax, %rax
je 0x17c29
cmpl $0x7, 0x4cc40(%rip)     # 0x6482c
jne 0x17c29
movq %rbx, %rdi
callq 0x194b6
jmp 0x1771f
cmpb $0x1, 0x8(%rbx)
jne 0x17c30
movl $0x26, 0x48(%rbx)
jmp 0x17c3a
andl $-0x3, %eax
cmpl $0xc, %eax
jne 0x17b74
cmpb $0x0, 0x8(%rbx)
je 0x17b74
movl $0x27, 0x48(%rbx)
jmp 0x17c3a
movl $0x2c, %edi
jmp 0x17c35
movl $0x44, %edi
callq 0x589e
movl $0x20, %edi
callq 0x3d03
movq %rax, 0x4ce65(%rip)     # 0x64ab0
movl 0x4cbdb(%rip), %ecx     # 0x6482c
andl $-0x3, %ecx
cmpl $0xc, %ecx
jne 0x17cd0
movq 0x40(%rbx), %rcx
movq 0x18(%rcx), %rcx
movq %rcx, (%rax)
movl 0x48(%rbx), %eax
movq 0x4ce42(%rip), %rcx     # 0x64ab0
movl %eax, 0x8(%rcx)
movq $0x0, 0x10(%rcx)
movq 0x40(%rbx), %rax
movq %rax, 0x18(%rcx)
jmp 0x1771f
movl $0xc, %edi
callq 0x589e
movl $0x4, %edi
callq 0x3110
movl $0x22b8, (%rax)         # imm = 0x22B8
movq 0xc2d9(%rip), %rsi      # 0x23f80
movq %rax, %rdi
xorl %edx, %edx
callq 0x3400
leaq 0x5922(%rip), %rdi      # 0x1d5da
leaq 0x58f5(%rip), %rsi      # 0x1d5b4
leaq 0x5921(%rip), %rcx      # 0x1d5e7
movl $0x2d9, %edx            # imm = 0x2D9
callq 0x3170
movl $0x29, %edi
jmp 0x17c8b
nop