// File: /workspace/github_c_makefile_star2_O1/heltilda[P]cicada/intrpt.c
// Function: passString
void passString(view *theView, ccInt stringDummyIndex, void *ptrHandle, void *infoHandle)
{
    ccInt windowCounter, stringIndex, rtrn;
    
    linkedlist *stringListCopy = (linkedlist *) malloc((size_t) (theView->width*sizeof(linkedlist)));
    if (stringListCopy == NULL)  {  setError(out_of_memory_err, pcCodePtr-1);  return;  }
    
    for (stringIndex = theView->offset+1; stringIndex <= theView->offset+theView->width; stringIndex++)  {
        
        window *theStringWindow = LL_member(theView->windowPtr->variable_ptr, stringIndex)->memberWindow;
        linkedlist *theStringLL = &(theStringWindow->variable_ptr->mem.data);
        
        rtrn = defragmentLinkedList(theStringLL);
        if (rtrn != passed)  {  setError(out_of_memory_err, pcCodePtr-1);  return;  }
        
            // make sure the string doesn't have more than one window -- that way the user can modify its size and we can still fix the member
        
        for (windowCounter = 1; windowCounter <= theStringWindow->variable_ptr->windows.data.elementNum; windowCounter++)  {
            window *loopWindow = (window *) element(&(theStringWindow->variable_ptr->windows.data), windowCounter);
            if ((loopWindow != theStringWindow) && (*(loopWindow->references) > 0))  {
                if (loopWindow->jamStatus == cannot_jam)  loopWindow->jamStatus = unjammed;
                else  {
                    setError(overlapping_window_err, pcCodePtr-1);
                    return;
        }   }   }
        
        rtrn = addMemory(theStringWindow, 0, -theStringWindow->offset);
        if (rtrn == passed)
            rtrn = addMemory(theStringWindow, theStringWindow->width, theStringWindow->width-theStringWindow->variable_ptr->instances);
        if (rtrn != passed)  setError(rtrn, pcCodePtr-1);
        
        stringListCopy[stringIndex-theView->offset-1] = *theStringLL;
    }
    
    **(char ***) ptrHandle = (char *) stringListCopy;
    (*(arg_info **) infoHandle)->argType = string_type;
    (*(arg_info **) infoHandle)->argIndices = theView->width;
    (*(char ***) ptrHandle)++;
    (*(arg_info **) infoHandle)++;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r15
movslq 0xc(%rdi), %rdi
shlq $0x5, %rdi
callq 0x81d0
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0xe66e
movq %r14, 0x28(%rsp)
movq %rbx, 0x30(%rsp)
movl 0xc(%r15), %eax
testl %eax, %eax
jle 0xe636
movl 0x8(%r15), %r12d
leaq 0x17248(%rip), %rcx     # 0x25760
leaq 0x18(%rcx), %rax
movq %rax, 0x8(%rsp)
leaq 0x1c(%rcx), %rax
movq %rax, 0x10(%rsp)
leaq 0x28(%rcx), %rax
movq %rax, 0x18(%rsp)
leal 0x1(%r12), %r14d
movq (%r15), %rax
movq 0x10(%rax), %rdi
addq $0x10, %rdi
movl %r14d, %esi
callq 0x911c
movq (%rax), %rbp
movq 0x10(%rbp), %r13
addq $0x10, %r13
movq %r13, %rdi
callq 0x8bb7
testl %eax, %eax
jne 0xe6cc
movq 0x10(%rbp), %rdi
cmpl $0x0, 0x30(%rdi)
jle 0xe5a8
addq $0x30, %rdi
xorl %ebx, %ebx
incl %ebx
movl %ebx, %esi
callq 0x911c
cmpq %rbp, %rax
je 0xe59b
movq 0x8(%rax), %rcx
cmpl $0x0, (%rcx)
jle 0xe59b
cmpb $0x0, 0x20(%rax)
jne 0xe693
movb $0x2, 0x20(%rax)
movq 0x10(%rbp), %rax
leaq 0x30(%rax), %rdi
cmpl 0x30(%rax), %ebx
jl 0xe576
xorl %edx, %edx
subl 0x18(%rbp), %edx
movq %rbp, %rdi
xorl %esi, %esi
callq 0xe6e5
testl %eax, %eax
jne 0xe5d2
movl 0x1c(%rbp), %esi
movq 0x10(%rbp), %rax
movl %esi, %edx
subl 0xf0(%rax), %edx
movq %rbp, %rdi
callq 0xe6e5
testl %eax, %eax
je 0xe5fe
leaq 0x17183(%rip), %rcx     # 0x25760
movq 0xb8(%rcx), %rdi
addq $-0x4, %rdi
movl %eax, %esi
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %r8
callq 0xf1d9
movl 0x8(%r15), %ecx
subl %ecx, %r12d
movslq %r12d, %rax
shlq $0x5, %rax
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movq 0x20(%rsp), %rdx
movups %xmm1, 0x10(%rdx,%rax)
movups %xmm0, (%rdx,%rax)
movl 0xc(%r15), %eax
addl %eax, %ecx
movl %r14d, %r12d
cmpl %ecx, %r14d
jl 0xe533
movq 0x28(%rsp), %rsi
movq (%rsi), %rcx
movq 0x20(%rsp), %rdx
movq %rdx, (%rcx)
movq 0x30(%rsp), %rdx
movq (%rdx), %rcx
movl $0x4, (%rcx)
movl %eax, 0x4(%rcx)
addq $0x8, (%rsi)
addq $0x8, (%rdx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x170eb(%rip), %r8      # 0x25760
movq 0xb8(%r8), %rdi
addq $-0x4, %rdi
leaq 0x18(%r8), %rdx
leaq 0x1c(%r8), %rcx
addq $0x28, %r8
movl $0x1, %esi
jmp 0xe6b9
leaq 0x170c6(%rip), %rax     # 0x25760
movq 0xb8(%rax), %rdi
addq $-0x4, %rdi
movl $0x2a, %esi
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %r8
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xf1d9
leaq 0x1708d(%rip), %rax     # 0x25760
movq 0xb8(%rax), %rdi
addq $-0x4, %rdi
movl $0x1, %esi
jmp 0xe6aa