// File: /workspace/github_c_makefile_star2_O1/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 0x12d49
cmpl $0x0, 0x12258(%rip)     # 0x25778
jne 0x135fd
movq 0x1241b(%rip), %rax     # 0x25948
movq %rax, 0x70(%rsp)
movups 0x123ff(%rip), %xmm0    # 0x25938
movaps %xmm0, 0x60(%rsp)
movups 0x12343(%rip), %xmm0    # 0x25888
movaps %xmm0, 0x50(%rsp)
movups 0x12327(%rip), %xmm0    # 0x25878
movaps %xmm0, 0x40(%rsp)
movups 0x1230b(%rip), %xmm0    # 0x25868
movaps %xmm0, 0x30(%rsp)
movq 0x1235f(%rip), %rax     # 0x258c8
movq %rax, 0x20(%rsp)
movups 0x12343(%rip), %xmm0    # 0x258b8
movaps %xmm0, 0x10(%rsp)
movq 0x12347(%rip), %rax     # 0x258c8
movq %rax, 0x123c0(%rip)     # 0x25948
movups 0x12329(%rip), %xmm0    # 0x258b8
movups %xmm0, 0x123a2(%rip)    # 0x25938
movl $0x2, %edi
callq 0x10a77
movq 0x70(%rsp), %rax
movq %rax, 0x1239c(%rip)     # 0x25948
movaps 0x60(%rsp), %xmm0
movups %xmm0, 0x12380(%rip)    # 0x25938
movaps 0x30(%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
movaps 0x50(%rsp), %xmm2
movups %xmm0, 0x1229a(%rip)    # 0x25868
movups %xmm1, 0x122a3(%rip)    # 0x25878
movups %xmm2, 0x122ac(%rip)    # 0x25888
movaps 0x10(%rsp), %xmm0
movups %xmm0, 0x122d0(%rip)    # 0x258b8
movq 0x20(%rsp), %rax
movq %rax, 0x122d4(%rip)     # 0x258c8
cmpl $0x0, 0x1217d(%rip)     # 0x25778
je 0x1360d
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl 0x121b9(%rip), %ebx     # 0x257cc
testl %ebx, %ebx
js 0x13718
movq 0x12296(%rip), %rax     # 0x258b8
movq 0x10(%rax), %r14
movl 0xc0(%r14), %eax
addq $0x10, %r14
cmpl $0x4, %eax
je 0x1372d
cmpl $0x5, %eax
jne 0x13761
leaq 0x1226e(%rip), %rdi     # 0x258b8
callq 0xf172
movl %eax, %r15d
movq 0x1225f(%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 0xf043
movl %ebx, %r9d
subl %r15d, %r9d
jle 0x137a1
movq 0x12228(%rip), %rax     # 0x258b8
movq 0x10(%rax), %rdi
movl 0x10(%rdi), %ebp
incl %ebp
movl $0x0, (%rsp)
leaq 0x30(%rsp), %rcx
movl %ebp, %esi
movl $0x1, %edx
xorl %r8d, %r8d
callq 0xefa3
testl %eax, %eax
jne 0x13701
cmpl %ebx, %r15d
movl %ebx, %r12d
cmovgl %r15d, %r12d
subl %r15d, %r12d
leaq 0x30(%rsp), %r15
subl $0x1, %r12d
jb 0x13844
movq 0x121dd(%rip), %rax     # 0x258b8
movq 0x10(%rax), %rdi
movl $0x1, (%rsp)
movl %ebp, %esi
movl $0x1, %edx
movq %r15, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xefa3
incl %ebp
testl %eax, %eax
je 0x136ca
movq 0x12110(%rip), %rsi     # 0x25818
addq $-0x4, %rsi
movl %eax, %edi
callq 0xd1a9
jmp 0x135fd
movq 0x120f9(%rip), %rsi     # 0x25818
addq $-0x4, %rsi
movl $0x20, %edi
jmp 0x137f9
movl 0x1218d(%rip), %esi     # 0x258c0
incl %esi
movq %r14, %rdi
callq 0x911c
movq %rax, 0x12124(%rip)     # 0x25868
cmpl $0x1, 0x12179(%rip)     # 0x258c4
jne 0x137d7
movl 0x12075(%rip), %edx     # 0x257cc
movq %rax, %rdi
movl $0x1, %esi
jmp 0x13797
movq %r14, %rdi
movl $0x1, %esi
callq 0x911c
movq %rax, 0x120f3(%rip)     # 0x25868
movl 0x12149(%rip), %esi     # 0x258c4
movq 0x12136(%rip), %rcx     # 0x258b8
movq 0x10(%rcx), %rcx
cmpl 0xf0(%rcx), %esi
jne 0x137e9
movl 0x12038(%rip), %edx     # 0x257cc
movq %rax, %rdi
callq 0x121b3
jmp 0x1388e
jge 0x13844
testl %ebx, %ebx
je 0x1380d
movq 0x12106(%rip), %rax     # 0x258b8
movq 0x10(%rax), %rdi
movl $0x0, (%rsp)
leaq 0x30(%rsp), %rcx
leaq 0x10(%rsp), %r8
leaq 0xc(%rsp), %r9
xorl %esi, %esi
movl %ebx, %edx
callq 0xf043
jmp 0x13815
movq 0x1203a(%rip), %rsi     # 0x25818
addq $-0x4, %rsi
movl $0x1f, %edi
jmp 0x137f9
movq 0x12028(%rip), %rsi     # 0x25818
addq $-0x4, %rsi
movl $0x1d, %edi
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xd1a9
movl $0x0, 0x10(%rsp)
movl (%r14), %ebp
cmpl 0x10(%rsp), %ebp
jle 0x13844
movq %r14, %rdi
movl %ebp, %esi
callq 0x911c
cmpb $0x0, 0x40(%rax)
jne 0x13840
movq 0x12083(%rip), %rax     # 0x258b8
movq 0x10(%rax), %rdi
movl %ebp, %esi
callq 0xf9cd
decl %ebp
jmp 0x13818
testl %ebx, %ebx
je 0x13885
movq 0x12069(%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 0xf043
movl (%r15), %esi
movq %r14, %rdi
callq 0x911c
jmp 0x13887
xorl %eax, %eax
movq %rax, 0x11fda(%rip)     # 0x25868
movb $0x1, 0x12033(%rip)     # 0x258c8
movl %ebx, 0x11fdd(%rip)     # 0x25878
movq $0x1, 0x11fca(%rip) # 0x25870
jmp 0x135fd