// File: /workspace/github_cpp_makefile_star2_O3/besm6[P]pascal-re/pascompl.cc
// Function: parseRecordDecl::parseRecordDecl(Types*, bool)
parseRecordDecl::parseRecordDecl(TypesPtr rectype, bool isOuterDecl_)
    : isOuterDecl(isOuterDecl_)
{
    bool &cond = parseTypeRef::super.back()->cond;
    TypesPtr &curType = parseTypeRef::super.back()->curType;
    TypesPtr &tempType = parseTypeRef::super.back()->tempType;
    IdentRecPtr &curField = parseTypeRef::super.back()->curField;
    IdentRecPtr &curEnum = parseTypeRef::super.back()->curEnum;
    bool &isPacked = parseTypeRef::super.back()->isPacked;
    parseTypeRef::caserec &cases = parseTypeRef::super.back()->cases;
    Bitset &skipTarget = parseTypeRef::super.back()->skipTarget;

    super.push_back(this);

    int93z = 3;
    inSymbol();
    while (SY == IDENT) {
        l4var6z = NULL;
        do {
            if (SY != IDENT) {
                error(errNoIdent);
            } else {
                if (hashTravPtr != NULL)
                    error(errIdentAlreadyDefined);
                curEnum = new IdentRec;
                addFieldToHash();
                if (l4var6z == NULL) {
                    curField = curEnum;
                } else {
                    l4var6z->list() = curEnum;
                }
                l4var6z = curEnum;
                int93z = 3;
                inSymbol();
            }
            cond = (SY != COMMA);
            if (not cond) {
                int93z = 3;
                inSymbol();
            }
        } while (!cond);
        checkSymAndRead(COLON);
        packFields();
        if (SY == SEMICOLON) {
            int93z = 3;
            inSymbol();
        }
    } /*11752*/
    if (SY == CASESY) {
        int93z = 3;
        inSymbol();
        selType = IntegerType;
/*(identif)*/
        if (SY != IDENT) {
            error(3);
            skip(skipTarget + Bits(OFSY));
        } else { /* 11766 */
            l4var8z = curIdent;
            l4var9z = bucket;
            curEnum = hashTravPtr;
            inSymbol();
            if (SY == COLON) {
                if (curEnum != NULL)
                    error(errIdentAlreadyDefined);
                curEnum = new IdentRec;
                curIdent = l4var8z;
                bucket = l4var9z;
                addFieldToHash();
                inSymbol();
                curField = curEnum;
                packFields();
            } else {
                curEnum = symHashTabBase[l4var9z];
                while (curEnum != NULL) {
                    if (curEnum->id != l4var8z) {
                        curEnum = curEnum->next;
                    } else {
                        if (curEnum->cl != TYPEID) {
                            error(errNotAType);
                            selType = IntegerType;
                        } else {
                            selType = curEnum->typ;
                        }
                        goto exit_identif;
                    }
                }
                error(errNotDefined);
            }
        } exit_identif:; /* 12035 */
        if (selType->k == kindRange)
            selType = selType->cast<RangeT>().base;
        checkSymAndRead(OFSY);
        cases1 = cases;
        cases2 = cases;
        l4typ1z = NULL;
        do {
            l4var3z = NULL;
            do {
                parseLiteral(l4var4z, l4var7z, false);
                if (l4var4z == NULL)
                    error(errNoConstant);
                else if (not typeCheck(l4var4z, selType))
                    error(errConstOfOtherTypeNeeded);
                l4var5z = new CasesT(cases.size, l4var7z, NULL, NULL, NULL);
                if (l4var3z == NULL) {
                    tempType = l4var5z;
                } else {
                    l4var3z->cast<CasesT>().sameAs = l4var5z;
                }
                l4var3z = l4var5z;
                inSymbol();
                cond = (SY != COMMA);
                if (not cond)
                    inSymbol();
            } while (!cond);
            if (l4typ1z == NULL) {
                if (curType->cast<RecordT>().cases == NULL) {
                  curType->cast<RecordT>().cases = &tempType->cast<CasesT>();
                } else {
                    rectype->cast<CasesT>().first = tempType;
                }
            } else {
                l4typ1z->cast<CasesT>().next = tempType;
            }
            l4typ1z = tempType;
            checkSymAndRead(COLON);
            if (SY != LPAREN)
                requiredSymErr(LPAREN);
            parseRecordDecl(tempType, false);
            if ((cases2.size < cases.size) or
                (isPacked and (cases.size = 1) and (cases2.size = 1) and
                 (cases.count = 1) and (cases2.count = 1) and
                 (cases.pairs[1].first < cases2.pairs[1].first))) {
                cases2 = cases;
            } /* 12201 */
            cases = cases1;
            checkSymAndRead(RPAREN);
            cond = SY != SEMICOLON;
            if (not cond)
                inSymbol();
            if (SY == ENDSY)
                cond = true;
        } while (!cond);
        cases = cases2;
    } /* 12232 */
    rectype->size = cases.size;
    if (isPacked and (cases.size == 1) and (cases.count == 1)) {
        rectype->bits = 48 - cases.pairs[1].first;
    }
    /* 12242 */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1168, %rsp           # imm = 0x1168
movq %rsi, 0x18(%rsp)
movq %rdi, %r14
movb %dl, (%rdi)
leaq 0x50(%rdi), %rax
movq %rax, 0x20(%rsp)
leaq 0x60(%rdi), %r13
xorps %xmm0, %xmm0
movups %xmm0, 0x60(%rdi)
movups %xmm0, 0x70(%rdi)
movups %xmm0, 0x80(%rdi)
movups %xmm0, 0x90(%rdi)
movups %xmm0, 0xa0(%rdi)
movups %xmm0, 0xb0(%rdi)
movups %xmm0, 0xc0(%rdi)
movups %xmm0, 0xd0(%rdi)
leaq 0xe0(%rdi), %rax
movq %rax, 0x8(%rsp)
leaq 0xf0(%rdi), %rax
movq %rax, 0x10(%rsp)
movups %xmm0, 0xf0(%rdi)
movups %xmm0, 0x100(%rdi)
movups %xmm0, 0x110(%rdi)
movups %xmm0, 0x120(%rdi)
movups %xmm0, 0x130(%rdi)
movups %xmm0, 0x140(%rdi)
movups %xmm0, 0x150(%rdi)
movups %xmm0, 0x160(%rdi)
movq 0xb0432(%rip), %rax     # 0xbd3f8
movq -0x8(%rax), %rbp
leaq 0x10(%rbp), %rax
movq %rax, (%rsp)
leaq 0x28(%rsp), %rsi
movq %rdi, (%rsi)
leaq 0xb0427(%rip), %rdi     # 0xbd408
callq 0x1b712
movq $0x3, 0x57957(%rip) # 0x64948
leaq 0xff8(%rsp), %rdi
callq 0x6f40
movl 0x57818(%rip), %eax     # 0x6481c
leaq 0xe88(%rsp), %rbx
leaq 0xba8(%rsp), %r15
leaq 0xd18(%rsp), %r12
testl %eax, %eax
jne 0xd124
movq $0x0, 0x30(%r14)
xorl %eax, %eax
testl %eax, %eax
je 0xd03e
movl $0x3, %edi
callq 0x58ff
jmp 0xd0b7
cmpq $0x0, 0x5795a(%rip)     # 0x649a0
je 0xd052
movl $0x2, %edi
callq 0x58ff
movl $0x60, %edi
callq 0x3d77
movl $0x6, 0x20(%rax)
movq %rax, 0xc8(%rbp)
movq %r14, %rdi
callq 0x17916
movq 0x30(%r14), %rax
testq %rax, %rax
je 0xd092
cmpl $0x0, 0x20(%rax)
je 0xd627
movq 0xc8(%rbp), %rcx
movq %rcx, 0x28(%rax)
jmp 0xd0a0
movq 0xc8(%rbp), %rcx
movq %rcx, 0xd0(%rbp)
movq %rcx, 0x30(%r14)
movq $0x3, 0x57899(%rip) # 0x64948
movq %rbx, %rdi
callq 0x6f40
cmpl $0xe, 0x5775e(%rip)     # 0x6481c
setne 0x9(%rbp)
jne 0xd0e8
movq $0x3, 0x57879(%rip) # 0x64948
movq %r12, %rdi
callq 0x6f40
testb $0x1, 0x9(%rbp)
jne 0xd0e8
movl 0x57739(%rip), %eax     # 0x6481c
jmp 0xd02e
movl $0x12, %edi
callq 0x83e7
callq 0xcb60
movl 0x5771f(%rip), %eax     # 0x6481c
cmpl $0xf, %eax
jne 0xd01c
movq $0x3, 0x57837(%rip) # 0x64948
movq %r15, %rdi
callq 0x6f40
movl 0x576fd(%rip), %eax     # 0x6481c
jmp 0xd01c
cmpl $0x21, %eax
jne 0xd5c8
movq $0x3, 0x57810(%rip) # 0x64948
leaq 0xa38(%rsp), %rdi
callq 0x6f40
movq 0x5789c(%rip), %rax     # 0x649e8
movq %rax, 0x10(%r14)
cmpl $0x0, 0x576c5(%rip)     # 0x6481c
je 0xd1a1
movl $0x3, %edi
callq 0x58ff
movabsq $0xffffffffffdf, %r15   # imm = 0xFFFFFFFFFFDF
andq (%rbp), %r15
orq $0x20, %r15
leaq 0x28(%rsp), %rbx
movl 0x5769c(%rip), %eax     # 0x6481c
cmpq $0x2f, %rax
ja 0xd197
movb $0x2f, %cl
subb %al, %cl
movzbl %cl, %eax
btq %rax, %r15
jb 0xd2a8
movq %rbx, %rdi
callq 0x6f40
jmp 0xd17a
movq 0x57898(%rip), %rax     # 0x64a40
movq %rax, 0x40(%r14)
movq 0x57705(%rip), %rax     # 0x648b8
movq %rax, 0x48(%r14)
movq 0x577e2(%rip), %rax     # 0x649a0
movq %rax, 0xc8(%rbp)
leaq 0x8c8(%rsp), %rdi
callq 0x6f40
cmpl $0x12, 0x57643(%rip)    # 0x6481c
jne 0xd247
cmpq $0x0, 0xc8(%rbp)
je 0xd1ef
movl $0x2, %edi
callq 0x58ff
movl $0x60, %edi
callq 0x3d77
movl $0x6, 0x20(%rax)
movq %rax, 0xc8(%rbp)
movq 0x40(%r14), %rax
movq %rax, 0x5782e(%rip)     # 0x64a40
movq 0x48(%r14), %rax
movq %rax, 0x5769b(%rip)     # 0x648b8
movq %r14, %rdi
callq 0x17916
leaq 0x758(%rsp), %rdi
callq 0x6f40
movq 0xc8(%rbp), %rax
movq %rax, 0xd0(%rbp)
callq 0xcb60
jmp 0xd2a8
movq 0x48(%r14), %rax
leaq 0x5cf7e(%rip), %rcx     # 0x6a1d0
movq (%rcx,%rax,8), %rax
movq %rax, 0xc8(%rbp)
testq %rax, %rax
je 0xd27b
movq 0x40(%r14), %rcx
cmpq %rcx, (%rax)
je 0xd287
movq 0x10(%rax), %rax
movq %rax, 0xc8(%rbp)
testq %rax, %rax
jne 0xd266
movl $0xb, %edi
callq 0x58ff
jmp 0xd2a8
cmpl $0x0, 0x20(%rax)
je 0xd2a0
movl $0x4, %edi
callq 0x58ff
movq 0x5774a(%rip), %rax     # 0x649e8
jmp 0xd2a4
movq 0x18(%rax), %rax
movq %rax, 0x10(%r14)
movq 0x10(%r14), %rax
cmpl $0x2, 0x10(%rax)
jne 0xd2ba
movq 0x18(%rax), %rax
movq %rax, 0x10(%r14)
movl $0x2a, %edi
callq 0x83e7
movq (%rsp), %rax
movups (%rax), %xmm0
movq 0x20(%rsp), %rax
movups %xmm0, (%rax)
xorl %eax, %eax
movups 0x20(%rbp,%rax), %xmm0
movups %xmm0, (%r13,%rax)
addq $0x10, %rax
cmpq $0x80, %rax
jne 0xd2d5
movq (%rsp), %rax
movups (%rax), %xmm0
movq 0x8(%rsp), %rax
movups %xmm0, (%rax)
xorl %eax, %eax
movq 0x10(%rsp), %rcx
movups 0x20(%rbp,%rax), %xmm0
movups %xmm0, (%rcx,%rax)
addq $0x10, %rax
cmpq $0x80, %rax
jne 0xd302
movq $0x0, 0x8(%r14)
leaq 0x20(%r14), %r15
leaq 0x38(%r14), %r12
leaq 0x5e8(%rsp), %rbx
movq $0x0, 0x18(%r14)
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x8157
movq (%r15), %rsi
testq %rsi, %rsi
je 0xd370
movq 0x10(%r14), %rdx
leaq 0x28(%rsp), %rdi
callq 0x84c6
addq $-0x8, 0xb0046(%rip)    # 0xbd3a8
cmpb $0x0, 0x28(%rsp)
movl $0x7, %edi
je 0xd375
jmp 0xd37a
movl $0x6, %edi
callq 0x58ff
movl $0x38, %edi
callq 0x3d77
movq (%rsp), %rcx
movq (%rcx), %rcx
movq 0x38(%r14), %rdx
movq %rcx, (%rax)
movq $0x30, 0x8(%rax)
movl $0x8, 0x10(%rax)
movq %rdx, 0x18(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
movq $0x0, 0x30(%rax)
movq %rax, 0x28(%r14)
movq 0x18(%r14), %rcx
testq %rcx, %rcx
je 0xd3d1
cmpl $0x8, 0x10(%rcx)
jne 0xd608
movq %rax, 0x30(%rcx)
jmp 0xd3dc
movq %rax, 0xe8(%rbp)
movq 0x28(%r14), %rax
movq %rax, 0x18(%r14)
movq %rbx, %rdi
callq 0x6f40
cmpl $0xe, 0x5742d(%rip)     # 0x6481c
setne 0x9(%rbp)
jne 0xd40c
leaq 0x478(%rsp), %rdi
callq 0x6f40
testb $0x1, 0x9(%rbp)
je 0xd337
movq 0x8(%r14), %rcx
testq %rcx, %rcx
je 0xd42c
cmpl $0x8, 0x10(%rcx)
jne 0xd608
movq 0xe8(%rbp), %rax
movq %rax, 0x28(%rcx)
jmp 0xd47c
movq 0xf0(%rbp), %rax
cmpl $0x6, 0x10(%rax)
jne 0xd646
cmpq $0x0, 0x18(%rax)
movq 0x18(%rsp), %rcx
je 0xd460
cmpl $0x8, 0x10(%rcx)
jne 0xd608
movq 0xe8(%rbp), %rax
movq %rax, 0x20(%rcx)
jmp 0xd47c
movq 0xe8(%rbp), %rcx
cmpl $0x8, 0x10(%rcx)
jne 0xd608
movq %rcx, 0x18(%rax)
movq 0xe8(%rbp), %rax
movq %rax, 0x8(%r14)
movl $0x12, %edi
callq 0x83e7
cmpl $0x7, 0x5738b(%rip)     # 0x6481c
je 0xd4ad
movq 0x573d6(%rip), %rax     # 0x64870
cmpq 0x573d7(%rip), %rax     # 0x64878
je 0xd4ad
movl $0x5f, %edi
callq 0x58ff
movq 0xe8(%rbp), %rsi
leaq 0x308(%rsp), %rdi
xorl %edx, %edx
callq 0xcf12
addq $-0x8, 0xaff45(%rip)    # 0xbd410
movq 0x8(%rsp), %rax
movq (%rax), %rax
cmpq 0x10(%rbp), %rax
movq 0x10(%rsp), %rcx
jge 0xd506
movq (%rsp), %rax
movups (%rax), %xmm0
movq 0x8(%rsp), %rax
movups %xmm0, (%rax)
xorl %eax, %eax
movups 0x20(%rbp,%rax), %xmm0
movups %xmm0, (%rcx,%rax)
addq $0x10, %rax
cmpq $0x80, %rax
jne 0xd4ef
jmp 0xd534
cmpb $0x1, 0x8(%rbp)
jne 0xd534
movl $0x1, %eax
movq %rax, 0x10(%rbp)
movq %rax, 0xe0(%r14)
movq %rax, 0x18(%rbp)
movq %rax, 0xe8(%r14)
movq 0x30(%rbp), %rax
cmpq 0x100(%r14), %rax
jl 0xd4de
movq 0x20(%rsp), %rax
movups (%rax), %xmm0
movq (%rsp), %rax
movups %xmm0, (%rax)
xorl %eax, %eax
movups (%r13,%rax), %xmm0
movups %xmm0, 0x20(%rbp,%rax)
addq $0x10, %rax
cmpq $0x80, %rax
jne 0xd545
movl $0xc, %edi
callq 0x83e7
movl 0x572b0(%rip), %eax     # 0x6481c
cmpl $0xf, %eax
setne 0x9(%rbp)
jne 0xd588
leaq 0x198(%rsp), %rdi
callq 0x6f40
movl 0x57294(%rip), %eax     # 0x6481c
cmpl $0x27, %eax
je 0xd599
testb $0x1, 0x9(%rbp)
je 0xd32f
jmp 0xd59d
movb $0x1, 0x9(%rbp)
movq 0x8(%rsp), %rax
movups (%rax), %xmm0
movq (%rsp), %rax
movups %xmm0, (%rax)
xorl %eax, %eax
movq 0x10(%rsp), %rcx
movups (%rcx,%rax), %xmm0
movups %xmm0, 0x20(%rbp,%rax)
addq $0x10, %rax
cmpq $0x80, %rax
jne 0xd5b3
movq 0x10(%rbp), %rax
movq 0x18(%rsp), %rcx
movq %rax, (%rcx)
cmpq $0x1, %rax
sete %al
andb 0x8(%rbp), %al
cmpb $0x1, %al
jne 0xd5f6
cmpq $0x1, 0x18(%rbp)
jne 0xd5f6
movl $0x30, %eax
subq 0x30(%rbp), %rax
movq %rax, 0x8(%rcx)
addq $0x1168, %rsp           # imm = 0x1168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x102f6(%rip), %rdi     # 0x1d905
leaq 0x1005e(%rip), %rsi     # 0x1d674
leaq 0x10475(%rip), %rcx     # 0x1da92
movl $0x1f7, %edx            # imm = 0x1F7
callq 0x3170
leaq 0x1006c(%rip), %rdi     # 0x1d69a
leaq 0x1003f(%rip), %rsi     # 0x1d674
leaq 0x10171(%rip), %rcx     # 0x1d7ad
movl $0x2d5, %edx            # imm = 0x2D5
callq 0x3170
leaq 0x102b8(%rip), %rdi     # 0x1d905
leaq 0x10020(%rip), %rsi     # 0x1d674
leaq 0x103a2(%rip), %rcx     # 0x1d9fd
jmp 0xd61d
nop