// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x50, %rsp
movb %dil, %al
movb %al, -0x1(%rbp)
callq 0x17b20
cmpl $0x0, 0x1463e(%rip)     # 0x2c768
je 0x18131
jmp 0x18490
callq 0x17cb0
movl %eax, -0x24(%rbp)
cmpl $0x0, 0x14628(%rip)     # 0x2c768
je 0x18147
jmp 0x18490
cmpl $0x0, -0x24(%rbp)
jge 0x18167
movq 0x146b4(%rip), %rsi     # 0x2c808
addq $-0x4, %rsi
movl $0x20, %edi
callq 0xf740
jmp 0x18490
movq 0x1473a(%rip), %rax     # 0x2c8a8
movq 0x10(%rax), %rax
cmpl $0x5, 0xc0(%rax)
jne 0x1838d
movq 0x14722(%rip), %rax     # 0x2c8a8
movq 0x10(%rax), %rax
addq $0x10, %rax
movq %rax, -0x40(%rbp)
leaq 0x145b7(%rip), %rdi     # 0x2c750
addq $0x158, %rdi            # imm = 0x158
callq 0x12ad0
movl %eax, -0x44(%rbp)
movq 0x146f9(%rip), %rax     # 0x2c8a8
movq 0x10(%rax), %rdi
movl -0x44(%rbp), %edx
xorl %esi, %esi
leaq -0x10(%rbp), %rcx
leaq -0x28(%rbp), %r8
leaq -0x34(%rbp), %r9
movl $0x0, (%rsp)
callq 0x128f0
movl -0x24(%rbp), %eax
cmpl -0x44(%rbp), %eax
jle 0x182b2
movq 0x146c5(%rip), %rax     # 0x2c8a8
movq 0x10(%rax), %rax
movl 0x10(%rax), %eax
movl %eax, -0x20(%rbp)
movq 0x146b4(%rip), %rax     # 0x2c8a8
movq 0x10(%rax), %rdi
movl -0x20(%rbp), %esi
addl $0x1, %esi
movl -0x24(%rbp), %r9d
subl -0x44(%rbp), %r9d
movl $0x1, %edx
leaq -0x10(%rbp), %rcx
xorl %r8d, %r8d
movl $0x0, (%rsp)
callq 0x127d0
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x1823f
movl -0x1c(%rbp), %edi
movq 0x145d7(%rip), %rsi     # 0x2c808
addq $-0x4, %rsi
callq 0xf740
jmp 0x18490
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x24(%rbp), %eax
jg 0x182ad
movq 0x14651(%rip), %rax     # 0x2c8a8
movq 0x10(%rax), %rdi
movl -0x20(%rbp), %esi
addl -0x14(%rbp), %esi
subl -0x44(%rbp), %esi
movl $0x1, %edx
leaq -0x10(%rbp), %rcx
xorl %r9d, %r9d
movl %r9d, %r8d
movl $0x1, (%rsp)
callq 0x127d0
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x182a0
movl -0x1c(%rbp), %edi
movq 0x14576(%rip), %rsi     # 0x2c808
addq $-0x4, %rsi
callq 0xf740
jmp 0x18490
jmp 0x182a2
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x18248
jmp 0x18338
movl -0x24(%rbp), %eax
cmpl -0x44(%rbp), %eax
jge 0x18336
cmpl $0x0, -0x24(%rbp)
jne 0x182c9
movl $0x0, -0x2c(%rbp)
jmp 0x182f1
movq 0x145d8(%rip), %rax     # 0x2c8a8
movq 0x10(%rax), %rdi
movl -0x24(%rbp), %edx
xorl %esi, %esi
leaq -0x10(%rbp), %rcx
leaq -0x2c(%rbp), %r8
leaq -0x34(%rbp), %r9
movl $0x0, (%rsp)
callq 0x128f0
movq -0x40(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jle 0x18334
movq -0x40(%rbp), %rdi
movl -0x18(%rbp), %esi
callq 0x9700
cmpb $0x0, 0x40(%rax)
jne 0x18327
movq 0x1458d(%rip), %rax     # 0x2c8a8
movq 0x10(%rax), %rdi
movl -0x18(%rbp), %esi
callq 0x136e0
jmp 0x18329
movl -0x18(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x182fa
jmp 0x18336
jmp 0x18338
cmpl $0x0, -0x24(%rbp)
jne 0x1834b
movq $0x0, 0x1450f(%rip) # 0x2c858
jmp 0x18388
movq 0x14556(%rip), %rax     # 0x2c8a8
movq 0x10(%rax), %rdi
xorl %esi, %esi
movl $0x1, %edx
leaq -0x10(%rbp), %rcx
leaq -0x30(%rbp), %r8
leaq -0x34(%rbp), %r9
movl $0x0, (%rsp)
callq 0x128f0
movq -0x40(%rbp), %rdi
movl -0x30(%rbp), %esi
callq 0x9700
movq %rax, 0x144d0(%rip)     # 0x2c858
jmp 0x1846c
movq 0x14514(%rip), %rax     # 0x2c8a8
movq 0x10(%rax), %rax
cmpl $0x4, 0xc0(%rax)
jne 0x18402
movq 0x14500(%rip), %rax     # 0x2c8a8
movq 0x10(%rax), %rdi
addq $0x10, %rdi
movl 0x144fa(%rip), %esi     # 0x2c8b0
addl $0x1, %esi
callq 0x9700
movq %rax, 0x14493(%rip)     # 0x2c858
cmpl $0x1, 0x144e8(%rip)     # 0x2c8b4
je 0x183e8
movq 0x14433(%rip), %rsi     # 0x2c808
addq $-0x4, %rsi
movl $0x1f, %edi
callq 0xf740
jmp 0x18490
movq 0x14469(%rip), %rdi     # 0x2c858
movl 0x144bf(%rip), %esi     # 0x2c8b4
movl 0x143c1(%rip), %edx     # 0x2c7bc
callq 0x16ca0
jmp 0x1846a
movq 0x1449f(%rip), %rax     # 0x2c8a8
movq 0x10(%rax), %rdi
addq $0x10, %rdi
movl $0x1, %esi
callq 0x9700
movq %rax, 0x14436(%rip)     # 0x2c858
movl 0x1448c(%rip), %eax     # 0x2c8b4
movq 0x14479(%rip), %rcx     # 0x2c8a8
movq 0x10(%rcx), %rcx
cmpl 0xf0(%rcx), %eax
je 0x18452
movq 0x143c6(%rip), %rsi     # 0x2c808
addq $-0x4, %rsi
movl $0x1d, %edi
callq 0xf740
jmp 0x18490
movq 0x143ff(%rip), %rdi     # 0x2c858
movl 0x14455(%rip), %esi     # 0x2c8b4
movl 0x14357(%rip), %edx     # 0x2c7bc
callq 0x16ca0
jmp 0x1846c
movb $0x1, 0x14445(%rip)     # 0x2c8b8
movl -0x24(%rbp), %eax
movl %eax, 0x143ec(%rip)     # 0x2c868
movl $0x1, 0x143da(%rip)     # 0x2c860
movl $0x0, 0x143d4(%rip)     # 0x2c864
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)