// File: /workspace/github_c_makefile_star2_O3/heltilda[P]cicada/bytecd.c
// Function: doResize
void doResize(ccBool allowAddMember)
{
    member *oneMember;
    ccInt loopMember, loopMemberLLIndex, rtrn, oneMemberLLIndex, newTop, oldTopIndex, newTopIndex, firstIndex, memberOffset;
    
    
        // get the beginning of the path
    
    callSearchPathFunction();
    if (errCode != passed)  return;
    
    
        // read in the new top index
    
    newTop = callIndexFunction();
    if (errCode != passed)  return;
    if (newTop < 0)  {  setError(index_argument_err, pcCodePtr-1);  return;  }
    
    
        // assuming everything's OK, resize the member
    
    if (searchView.windowPtr->variable_ptr->type == composite_type)  {
        
        linkedlist *memberLL = &(searchView.windowPtr->variable_ptr->mem.members);
        ccInt oldTop = numMemberIndices(&searchView);
        
        findMemberIndex(searchView.windowPtr->variable_ptr, 0, oldTop, &oneMember, &oldTopIndex, &memberOffset, ccFalse);
        
        if (newTop > oldTop)  {
            oneMemberLLIndex = searchView.windowPtr->variable_ptr->mem.members.elementNum;
            rtrn = addMember(searchView.windowPtr->variable_ptr, oneMemberLLIndex+1, 1, &oneMember, ccFalse, newTop-oldTop, ccFalse);
            if (rtrn != passed)  {  setError(rtrn, pcCodePtr-1);  return;  }
            for (loopMember = oldTop+1; loopMember <= newTop; loopMember++)  {
                rtrn = addMember(searchView.windowPtr->variable_ptr, oneMemberLLIndex+loopMember-oldTop, 1, &oneMember, ccFalse, 0, ccTrue);
                if (rtrn != passed)  {  setError(rtrn, pcCodePtr-1);  return;  }
        }   }
        
        else if (newTop < oldTop)  {
            if (newTop == 0)  newTopIndex = 0;
            else  findMemberIndex(searchView.windowPtr->variable_ptr, 0, newTop, &oneMember, &newTopIndex, &memberOffset, ccFalse);
            for (loopMemberLLIndex = memberLL->elementNum; loopMemberLLIndex > newTopIndex; loopMemberLLIndex--)  {
            if (!((member *) element(memberLL, loopMemberLLIndex))->ifHidden)  {
                removeMember(searchView.windowPtr->variable_ptr, loopMemberLLIndex);
        }   }}
        
        if (newTop == 0)  GL_Path.stemMember = NULL;
        else  {
            findMemberIndex(searchView.windowPtr->variable_ptr, 0, 1, &oneMember, &firstIndex, &memberOffset, ccFalse);
            GL_Path.stemMember = (member *) element(memberLL, firstIndex);
    }   }

    else if (searchView.windowPtr->variable_ptr->type == string_type)  {
        GL_Path.stemMember = LL_member(searchView.windowPtr->variable_ptr, searchView.offset + 1);
        if (searchView.width != 1)
            {  setError(multiple_indices_not_allowed_err, pcCodePtr-1);  return;  }
        
        resizeMember(GL_Path.stemMember, searchView.width, intRegister);    }
    
    else    {
        GL_Path.stemMember = LL_member(searchView.windowPtr->variable_ptr, 1);
        if (searchView.width != searchView.windowPtr->variable_ptr->instances)
            {  setError(incomplete_variable_err, pcCodePtr-1);  return;  }
        
        resizeMember(GL_Path.stemMember, searchView.width, intRegister);    }
    
    searchView.multipleIndices = ccTrue;
    
    GL_Path.indices = newTop;
    GL_Path.stemMemberNumber = 1;
    GL_Path.offset = 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x80, %rsp
callq 0x12bea
cmpl $0x0, 0x12370(%rip)     # 0x25778
jne 0x134e5
movq 0x12533(%rip), %rax     # 0x25948
movq %rax, 0x70(%rsp)
movups 0x12517(%rip), %xmm0    # 0x25938
movaps %xmm0, 0x60(%rsp)
movups 0x1245b(%rip), %xmm0    # 0x25888
movaps %xmm0, 0x50(%rsp)
movups 0x1243f(%rip), %xmm0    # 0x25878
movaps %xmm0, 0x40(%rsp)
movups 0x12423(%rip), %xmm0    # 0x25868
movaps %xmm0, 0x30(%rsp)
movq 0x12477(%rip), %rax     # 0x258c8
movq %rax, 0x20(%rsp)
movups 0x1245b(%rip), %xmm0    # 0x258b8
movaps %xmm0, 0x10(%rsp)
movq 0x1245f(%rip), %rax     # 0x258c8
movq %rax, 0x124d8(%rip)     # 0x25948
movups 0x12441(%rip), %xmm0    # 0x258b8
movups %xmm0, 0x124ba(%rip)    # 0x25938
movl $0x2, %edi
callq 0x10814
movq 0x70(%rsp), %rax
movq %rax, 0x124b4(%rip)     # 0x25948
movaps 0x60(%rsp), %xmm0
movups %xmm0, 0x12498(%rip)    # 0x25938
movaps 0x30(%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
movaps 0x50(%rsp), %xmm2
movups %xmm0, 0x123b2(%rip)    # 0x25868
movups %xmm1, 0x123bb(%rip)    # 0x25878
movups %xmm2, 0x123c4(%rip)    # 0x25888
movaps 0x10(%rsp), %xmm0
movups %xmm0, 0x123e8(%rip)    # 0x258b8
movq 0x20(%rsp), %rax
movq %rax, 0x123ec(%rip)     # 0x258c8
cmpl $0x0, 0x12295(%rip)     # 0x25778
je 0x134f5
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl 0x122d1(%rip), %ebx     # 0x257cc
testl %ebx, %ebx
js 0x135f9
movq 0x123ae(%rip), %rax     # 0x258b8
movq 0x10(%rax), %r14
movl 0xc0(%r14), %eax
addq $0x10, %r14
cmpl $0x4, %eax
je 0x1360e
cmpl $0x5, %eax
jne 0x13653
leaq 0x12386(%rip), %rdi     # 0x258b8
callq 0xef33
movl %eax, %r15d
movq 0x12377(%rip), %rax     # 0x258b8
movq 0x10(%rax), %rdi
movl $0x0, (%rsp)
leaq 0x30(%rsp), %rcx
leaq 0x60(%rsp), %r8
leaq 0xc(%rsp), %r9
xorl %esi, %esi
movl %r15d, %edx
callq 0xee01
movl %ebx, %ebp
subl %r15d, %ebp
jle 0x136a4
movq 0x12341(%rip), %rax     # 0x258b8
movq 0x10(%rax), %rdi
movl 0x10(%rdi), %r15d
incl %r15d
movl $0x0, (%rsp)
leaq 0x30(%rsp), %rcx
movl %r15d, %esi
movl $0x1, %edx
xorl %r8d, %r8d
movl %ebp, %r9d
callq 0xed61
testl %eax, %eax
jne 0x135e2
leaq 0x30(%rsp), %r12
subl $0x1, %ebp
jb 0x13751
movq 0x122fe(%rip), %rax     # 0x258b8
movq 0x10(%rax), %rdi
movl $0x1, (%rsp)
movl %r15d, %esi
movl $0x1, %edx
movq %r12, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xed61
incl %r15d
testl %eax, %eax
je 0x135aa
movq 0x1222f(%rip), %rsi     # 0x25818
addq $-0x4, %rsi
movl %eax, %edi
callq 0xcfa3
jmp 0x134e5
movq 0x12218(%rip), %rsi     # 0x25818
addq $-0x4, %rsi
movl $0x20, %edi
jmp 0x13702
movl 0x122ac(%rip), %esi     # 0x258c0
incl %esi
movq %r14, %rdi
callq 0x91d8
movq %rax, 0x12243(%rip)     # 0x25868
cmpl $0x1, 0x12298(%rip)     # 0x258c4
jne 0x136e0
movl 0x12194(%rip), %esi     # 0x257cc
movl 0xc(%rax), %edx
movl %esi, %ecx
subl %edx, %ecx
jg 0x13649
movl %esi, %edx
jge 0x1379b
movq %rax, %rdi
movl $0x1, %esi
jmp 0x1369a
movq %r14, %rdi
movl $0x1, %esi
callq 0x91d8
movq %rax, 0x12201(%rip)     # 0x25868
movl 0x12257(%rip), %esi     # 0x258c4
movq 0x12244(%rip), %rcx     # 0x258b8
movq 0x10(%rcx), %rcx
cmpl 0xf0(%rcx), %esi
jne 0x136f2
movl 0x12146(%rip), %edi     # 0x257cc
movl 0xc(%rax), %edx
movl %edi, %ecx
subl %edx, %ecx
jg 0x13697
movl %edi, %edx
jge 0x1379b
movq %rax, %rdi
callq 0x13f35
jmp 0x1379b
jae 0x13751
testl %ebx, %ebx
je 0x13716
movq 0x12203(%rip), %rax     # 0x258b8
movq 0x10(%rax), %rdi
movl $0x0, (%rsp)
leaq 0x30(%rsp), %rcx
leaq 0x10(%rsp), %r15
leaq 0xc(%rsp), %r9
xorl %esi, %esi
movl %ebx, %edx
movq %r15, %r8
callq 0xee01
movl (%r15), %eax
jmp 0x13720
movq 0x12131(%rip), %rsi     # 0x25818
addq $-0x4, %rsi
movl $0x1f, %edi
jmp 0x13702
movq 0x1211f(%rip), %rsi     # 0x25818
addq $-0x4, %rsi
movl $0x1d, %edi
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xcfa3
movl $0x0, 0x10(%rsp)
xorl %eax, %eax
movl (%r14), %ebp
cmpl %eax, %ebp
jle 0x13751
movq %r14, %rdi
movl %ebp, %esi
callq 0x91d8
cmpb $0x0, 0x40(%rax)
jne 0x13749
movq 0x1217a(%rip), %rax     # 0x258b8
movq 0x10(%rax), %rdi
movl %ebp, %esi
callq 0xf789
decl %ebp
cmpl 0x10(%rsp), %ebp
jg 0x13727
testl %ebx, %ebx
je 0x13792
movq 0x1215c(%rip), %rax     # 0x258b8
movq 0x10(%rax), %rdi
movl $0x0, (%rsp)
leaq 0x30(%rsp), %rcx
leaq 0x2c(%rsp), %r15
leaq 0xc(%rsp), %r9
xorl %esi, %esi
movl $0x1, %edx
movq %r15, %r8
callq 0xee01
movl (%r15), %esi
movq %r14, %rdi
callq 0x91d8
jmp 0x13794
xorl %eax, %eax
movq %rax, 0x120cd(%rip)     # 0x25868
movb $0x1, 0x12126(%rip)     # 0x258c8
movl %ebx, 0x120d0(%rip)     # 0x25878
movq $0x1, 0x120bd(%rip) # 0x25870
jmp 0x134e5