// File: /workspace/github_cpp_makefile_star2_O2/besm6[P]pascal-re/pascompl.cc
// Function: prepStore()
void prepStore()
{
    int64_t l4int1z, l4int2z, l4int3z;
    bool l4bool4z, l4bool5z;
    state l4st6z;
    Kind l4var7z;

    l4int1z = insnList->ilf7;
    if (15 < l4int1z) {
        /* nothing? */
    } else if (l4int1z == 15)  {
        addToInsnList(macro + mcACC2ADDR);
    } else {
        addToInsnList(indexreg[l4int1z] + InsnTemp[UTC]);
    }
    l4bool4z = insnList->regsused.has(0);
    l4st6z = insnList->st;
    if ((l4st6z != st0) or l4bool4z)
        addxToInsnList(macro + mcPUSH);
    if (l4st6z == st0) {
        if (l4bool4z)  {
            addInsnAndOffset(insnList->ilf5.i + InsnTemp[UTC],
                             insnList->ilf6);
            addToInsnList(macro+mcPOP2ADDR);
        } else {
            addInsnAndOffset(insnList->ilf5.i, insnList->ilf6);
        }
    } else {
        l4var7z = insnList->typ->k;
        l4int1z = insnList->typ->bits;
        l4bool5z = (l4var7z < kindSet) or
            ((l4var7z == kindRecord) and optSflags.m.has(S6));
        if (l4st6z == st1) {
            l4int2z = insnList->shift;
            l4int3z = l4int2z + insnList->width;
            if (l4bool5z)  {
                if (l4int2z != 0)
                    addxToInsnList(ASN64 - l4int2z);
            } else {
                if (l4int3z != 48)
                    addxToInsnList(ASN64 + 48 - l4int3z);
            }
            addInsnAndOffset(InsnTemp[UTC] + insnList->ilf5.i,
                             insnList->ilf6);
            curVal.m = BitRange(0,47) - BitRange((48-l4int3z),(47 -l4int2z));
            addInsnAndOffset(macro+22, getFCSToffset());
        } else {
            if (not l4bool5z) {
                l4int2z = (insnList->width - l4int1z);
                if (l4int2z != 0)
                    addxToInsnList(ASN64 - l4int2z);
                addxToInsnList(InsnTemp[YTA]);
                addxToInsnList(ASN64 - l4int1z);
            }
            addToInsnList(getHelperProc(77)); /* "P/STAR" */
            insnList->next->mode = 1;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x5bdb8(%rip), %rax     # 0x63aa8
movq 0x38(%rax), %rax
cmpq $0xf, %rax
jg 0x7d18
movl $0x1000006, %edi        # imm = 0x1000006
je 0x7d13
leaq 0x60168(%rip), %rcx     # 0x67e70
movq 0x60799(%rip), %rdi     # 0x684a8
addq (%rcx,%rax,8), %rdi
callq 0x794e
movq 0x5bd89(%rip), %rax     # 0x63aa8
movq 0x18(%rax), %rbx
btq $0x2f, %rbx
setae %cl
movl 0x40(%rax), %ebp
testl %ebp, %ebp
sete %dl
testb %cl, %dl
jne 0x7dc4
movl $0x1000005, %edi        # imm = 0x1000005
callq 0x79a6
movq 0x5bd5c(%rip), %rax     # 0x63aa8
testl %ebp, %ebp
je 0x7d89
movq 0x10(%rax), %rdx
movl 0x10(%rdx), %ecx
pushq $0x30
popq %rbx
cmpl $0x4, %ecx
jge 0x7dd9
cmpl $0x1, %ebp
jne 0x7e5c
movq 0x50(%rax), %r12
movq 0x48(%rax), %r13
addq %r12, %r13
testq %r12, %r12
je 0x7e8d
movl $0x1e040, %edi          # imm = 0x1E040
subq %r12, %rdi
jmp 0x7e9a
btq $0x2f, %rbx
jae 0x7dc4
movq 0x28(%rax), %rdi
movq 0x30(%rax), %rsi
shlq $0x17, %rdi
sarq $0x17, %rdi
addq 0x60701(%rip), %rdi     # 0x684a8
callq 0x798d
movl $0x1000013, %edi        # imm = 0x1000013
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x794e
movq 0x28(%rax), %rdi
movq 0x30(%rax), %rsi
shlq $0x17, %rdi
sarq $0x17, %rdi
jmp 0x7f1b
movq 0x8(%rdx), %r14
cmpl $0x6, %ecx
jne 0x7e06
movq 0x5bc87(%rip), %rcx     # 0x63a70
cmpl $0x1, %ebp
jne 0x7e21
movq 0x50(%rax), %r12
movq 0x48(%rax), %r13
addq %r12, %r13
btq $0x2c, %rcx
jb 0x7d73
jmp 0x7e16
cmpl $0x1, %ebp
jne 0x7e28
movq 0x50(%rax), %r12
movq 0x48(%rax), %r13
addq %r12, %r13
cmpq $0x30, %r13
jne 0x7e92
movq %rbx, %r13
jmp 0x7e9f
btq $0x2c, %rcx
jb 0x7e5c
movq 0x48(%rax), %rax
cmpq %r14, %rax
je 0x7e43
movq %r14, %rdi
subq %rax, %rdi
addq $0x1e040, %rdi          # imm = 0x1E040
callq 0x79a6
movq 0x605ee(%rip), %rdi     # 0x68438
callq 0x79a6
movl $0x1e040, %edi          # imm = 0x1E040
subq %r14, %rdi
callq 0x79a6
pushq $0x4d
popq %rdi
callq 0x52d1
movq %rax, %rdi
callq 0x794e
movq 0x5bc35(%rip), %rax     # 0x63aa8
movq (%rax), %rax
movq $0x1, 0x8(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r12d, %r12d
jmp 0x7e9f
movl $0x1e070, %edi          # imm = 0x1E070
subq %r13, %rdi
callq 0x79a6
movq 0x5bc02(%rip), %rax     # 0x63aa8
movq 0x28(%rax), %rdi
movq 0x30(%rax), %rsi
shlq $0x17, %rdi
sarq $0x17, %rdi
addq 0x605eb(%rip), %rdi     # 0x684a8
callq 0x798d
pushq $0x2f
popq %r14
xorl %edi, %edi
movq %r14, %rsi
callq 0x37ec
movq %rax, %r15
subq %r13, %rbx
subq %r12, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x37ec
movabsq $-0x1000000000000, %rcx # imm = 0xFFFF000000000000
andq %rax, %rcx
notq %rax
movabsq $0xffffffffffff, %rdx   # imm = 0xFFFFFFFFFFFF
andq %r15, %rdx
andq %rax, %rdx
orq %rdx, %rcx
movq %rcx, 0x5bb22(%rip)     # 0x63a30
callq 0x554f
movl $0x1000016, %edi        # imm = 0x1000016
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x798d