// File: /workspace/github_cpp_makefile_star2_O1/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 $0x1038, %rsp           # imm = 0x1038
movq %rsi, 0x10(%rsp)
movq %rdi, %r14
movb %dl, (%rdi)
leaq 0x50(%rdi), %rax
movq %rax, 0x18(%rsp)
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)
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 0xb075c(%rip), %rax     # 0xbd408
movq -0x8(%rax), %rbp
leaq 0xe8(%rbp), %r13
leaq 0x10(%rbp), %rbx
leaq 0x20(%rsp), %rsi
movq %rdi, (%rsi)
leaq 0xb074e(%rip), %rdi     # 0xbd418
callq 0x1b320
movq $0x3, 0x57c7e(%rip) # 0x64958
leaq 0xec8(%rsp), %rdi
callq 0x6e26
leaq 0xd58(%rsp), %r15
leaq 0xbe8(%rsp), %r12
movl 0x57b2f(%rip), %eax     # 0x6482c
testl %eax, %eax
jne 0xce08
movq $0x0, 0x30(%r14)
cmpl $0x0, 0x57b18(%rip)     # 0x6482c
je 0xcd25
movl $0x3, %edi
callq 0x589e
jmp 0xcda5
cmpq $0x0, 0x57c83(%rip)     # 0x649b0
je 0xcd39
movl $0x2, %edi
callq 0x589e
movl $0x60, %edi
callq 0x3d03
movl $0x6, 0x20(%rax)
movq %rax, 0xc8(%rbp)
movq %r14, %rdi
callq 0x1756c
movq 0x30(%r14), %rax
testq %rax, %rax
je 0xcd79
cmpl $0x0, 0x20(%rax)
je 0xd2eb
movq 0xc8(%rbp), %rcx
movq %rcx, 0x28(%rax)
jmp 0xcd87
movq 0xc8(%rbp), %rax
movq %rax, 0xd0(%rbp)
movq 0xc8(%rbp), %rax
movq %rax, 0x30(%r14)
movq $0x3, 0x57bbb(%rip) # 0x64958
movq %r15, %rdi
callq 0x6e26
cmpl $0xe, 0x57a80(%rip)     # 0x6482c
setne 0x9(%rbp)
jne 0xcdc5
movq $0x3, 0x57b9b(%rip) # 0x64958
movq %r12, %rdi
callq 0x6e26
cmpb $0x1, 0x9(%rbp)
jne 0xcd0d
movl $0x12, %edi
callq 0x82d3
callq 0xc84d
cmpl $0xf, 0x57a47(%rip)     # 0x6482c
jne 0xccf7
movq $0x3, 0x57b62(%rip) # 0x64958
leaq 0xa78(%rsp), %rdi
callq 0x6e26
jmp 0xccf7
cmpl $0x21, %eax
jne 0xd28c
movq $0x3, 0x57b3c(%rip) # 0x64958
leaq 0x908(%rsp), %rdi
callq 0x6e26
movq 0x57bc8(%rip), %rax     # 0x649f8
movq %rax, 0x10(%r14)
cmpl $0x0, 0x579f1(%rip)     # 0x6482c
je 0xce63
movl $0x3, %edi
callq 0x589e
movabsq $0xffffffffffdf, %rdi   # imm = 0xFFFFFFFFFFDF
andq (%rbp), %rdi
orq $0x20, %rdi
callq 0x7f7c
jmp 0xcf6a
movq 0x57be6(%rip), %rax     # 0x64a50
movq %rax, 0x40(%r14)
movq 0x57a53(%rip), %rax     # 0x648c8
movq %rax, 0x48(%r14)
movq 0x57b30(%rip), %rax     # 0x649b0
movq %rax, 0xc8(%rbp)
leaq 0x798(%rsp), %rdi
callq 0x6e26
cmpl $0x12, 0x57991(%rip)    # 0x6482c
jne 0xcf09
cmpq $0x0, 0xc8(%rbp)
je 0xceb1
movl $0x2, %edi
callq 0x589e
movl $0x60, %edi
callq 0x3d03
movl $0x6, 0x20(%rax)
movq %rax, 0xc8(%rbp)
movq 0x40(%r14), %rax
movq %rax, 0x57b7c(%rip)     # 0x64a50
movq 0x48(%r14), %rax
movq %rax, 0x579e9(%rip)     # 0x648c8
movq %r14, %rdi
callq 0x1756c
leaq 0x628(%rsp), %rdi
callq 0x6e26
movq 0xc8(%rbp), %rax
movq %rax, 0xd0(%rbp)
callq 0xc84d
jmp 0xcf6a
movq 0x48(%r14), %rax
leaq 0x5d2cc(%rip), %rcx     # 0x6a1e0
movq (%rcx,%rax,8), %rax
movq %rax, 0xc8(%rbp)
testq %rax, %rax
je 0xcf3d
movq 0x40(%r14), %rcx
cmpq %rcx, (%rax)
je 0xcf49
movq 0x10(%rax), %rax
movq %rax, 0xc8(%rbp)
testq %rax, %rax
jne 0xcf28
movl $0xb, %edi
callq 0x589e
jmp 0xcf6a
cmpl $0x0, 0x20(%rax)
je 0xcf62
movl $0x4, %edi
callq 0x589e
movq 0x57a98(%rip), %rax     # 0x649f8
jmp 0xcf66
movq 0x18(%rax), %rax
movq %rax, 0x10(%r14)
movq 0x10(%r14), %rax
cmpl $0x2, 0x10(%rax)
jne 0xcf7c
movq 0x18(%rax), %rax
movq %rax, 0x10(%r14)
movl $0x2a, %edi
callq 0x82d3
movups (%rbx), %xmm0
movq 0x18(%rsp), %rax
movups %xmm0, (%rax)
xorl %eax, %eax
movq 0x20(%rbp,%rax), %rcx
movq %rcx, 0x60(%r14,%rax)
movq 0x28(%rbp,%rax), %rcx
movq %rcx, 0x68(%r14,%rax)
addq $0x10, %rax
cmpq $0x80, %rax
jne 0xcf93
movups (%rbx), %xmm0
movq 0x8(%rsp), %rax
movups %xmm0, (%rax)
xorl %eax, %eax
movq 0x20(%rbp,%rax), %rcx
movq %rcx, 0xf0(%r14,%rax)
movq 0x28(%rbp,%rax), %rcx
movq %rcx, 0xf8(%r14,%rax)
addq $0x10, %rax
cmpq $0x80, %rax
jne 0xcfc0
movq $0x0, 0x8(%r14)
leaq 0x20(%r14), %r15
leaq 0x38(%r14), %r12
movq $0x0, 0x18(%r14)
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x8027
movq (%r15), %rsi
testq %rsi, %rsi
je 0xd037
movq 0x10(%r14), %rdx
leaq 0x20(%rsp), %rdi
callq 0x83b2
addq $-0x8, 0xb038f(%rip)    # 0xbd3b8
cmpb $0x0, 0x20(%rsp)
movl $0x7, %edi
je 0xd03c
jmp 0xd041
movl $0x6, %edi
callq 0x589e
movl $0x38, %edi
callq 0x3d03
movq (%rbx), %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
movq %r13, %rdx
testq %rcx, %rcx
je 0xd098
cmpl $0x8, 0x10(%rcx)
jne 0xd2cc
addq $0x30, %rcx
movq %rcx, %rdx
movq %rax, (%rdx)
movq 0x28(%r14), %rax
movq %rax, 0x18(%r14)
leaq 0x4b8(%rsp), %rdi
callq 0x6e26
cmpl $0xe, 0x57775(%rip)     # 0x6482c
setne 0x9(%rbp)
jne 0xd0ca
leaq 0x348(%rsp), %rdi
callq 0x6e26
cmpb $0x1, 0x9(%rbp)
jne 0xcffe
movq 0x8(%r14), %rax
testq %rax, %rax
je 0xd0f1
cmpl $0x8, 0x10(%rax)
jne 0xd2cc
movq (%r13), %rcx
movq %rcx, 0x28(%rax)
jmp 0xd134
movq 0xf0(%rbp), %rax
cmpl $0x6, 0x10(%rax)
jne 0xd30a
cmpq $0x0, 0x18(%rax)
movq 0x10(%rsp), %rcx
je 0xd122
cmpl $0x8, 0x10(%rcx)
jne 0xd2cc
movq (%r13), %rax
movq %rax, 0x20(%rcx)
jmp 0xd134
movq (%r13), %rcx
cmpl $0x8, 0x10(%rcx)
jne 0xd2cc
movq %rcx, 0x18(%rax)
movq (%r13), %rax
movq %rax, 0x8(%r14)
movl $0x12, %edi
callq 0x82d3
cmpl $0x7, 0x576df(%rip)     # 0x6482c
je 0xd169
movq 0x5772a(%rip), %rax     # 0x64880
cmpq 0x5772b(%rip), %rax     # 0x64888
je 0xd169
movl $0x5f, %edi
callq 0x589e
movq (%r13), %rsi
leaq 0x1d8(%rsp), %rdi
xorl %edx, %edx
callq 0xcc08
addq $-0x8, 0xb029c(%rip)    # 0xbd420
movq 0x8(%rsp), %rax
movq (%rax), %rax
cmpq (%rbx), %rax
jge 0xd1c6
movups (%rbx), %xmm0
movq 0x8(%rsp), %rax
movups %xmm0, (%rax)
xorl %eax, %eax
movq 0x20(%rbp,%rax), %rcx
movq %rcx, 0xf0(%r14,%rax)
movq 0x28(%rbp,%rax), %rcx
movq %rcx, 0xf8(%r14,%rax)
addq $0x10, %rax
cmpq $0x80, %rax
jne 0xd19e
jmp 0xd1f4
cmpb $0x1, 0x8(%rbp)
jne 0xd1f4
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 0xd191
movq 0x18(%rsp), %rax
movups (%rax), %xmm0
movups %xmm0, (%rbx)
xorl %eax, %eax
movq 0x60(%r14,%rax), %rcx
movq %rcx, 0x20(%rbp,%rax)
movq 0x68(%r14,%rax), %rcx
movq %rcx, 0x28(%rbp,%rax)
addq $0x10, %rax
cmpq $0x80, %rax
jne 0xd201
movl $0xc, %edi
callq 0x82d3
cmpl $0xf, 0x575fa(%rip)     # 0x6482c
setne 0x9(%rbp)
jne 0xd242
leaq 0x68(%rsp), %rdi
callq 0x6e26
cmpl $0x27, 0x575e3(%rip)    # 0x6482c
jne 0xd24f
movb $0x1, 0x9(%rbp)
cmpb $0x1, 0x9(%rbp)
jne 0xcff6
movq 0x8(%rsp), %rax
movups (%rax), %xmm0
movups %xmm0, (%rbx)
xorl %eax, %eax
movq 0xf0(%r14,%rax), %rcx
movq %rcx, 0x20(%rbp,%rax)
movq 0xf8(%r14,%rax), %rcx
movq %rcx, 0x28(%rbp,%rax)
addq $0x10, %rax
cmpq $0x80, %rax
jne 0xd266
movq 0x10(%rbp), %rax
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
cmpq $0x1, %rax
sete %al
andb 0x8(%rbp), %al
cmpb $0x1, %al
jne 0xd2ba
cmpq $0x1, 0x18(%rbp)
jne 0xd2ba
movl $0x30, %eax
subq 0x30(%rbp), %rax
movq %rax, 0x8(%rcx)
addq $0x1038, %rsp           # imm = 0x1038
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10575(%rip), %rdi     # 0x1d848
leaq 0x102da(%rip), %rsi     # 0x1d5b4
leaq 0x106f4(%rip), %rcx     # 0x1d9d5
movl $0x1f7, %edx            # imm = 0x1F7
callq 0x3170
leaq 0x102e8(%rip), %rdi     # 0x1d5da
leaq 0x102bb(%rip), %rsi     # 0x1d5b4
leaq 0x103ed(%rip), %rcx     # 0x1d6ed
movl $0x2d5, %edx            # imm = 0x2D5
callq 0x3170
leaq 0x10537(%rip), %rdi     # 0x1d848
leaq 0x1029c(%rip), %rsi     # 0x1d5b4
leaq 0x10621(%rip), %rcx     # 0x1d940
jmp 0xd2e1
nop