// File: /workspace/github_c_makefile_star2_O3/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, %r14
movq %rdx, %r12
movq %rdi, %r15
movslq 0xc(%rdi), %rbx
movq %rbx, %rdi
shlq $0x5, %rdi
callq 0x81d0
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0xe457
movq %r12, 0x28(%rsp)
movq %r14, 0x30(%rsp)
testl %ebx, %ebx
jle 0xe41f
movl 0x8(%r15), %r12d
leaq 0x1745f(%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 0x91d8
movq (%rax), %rbp
movq 0x10(%rbp), %r13
addq $0x10, %r13
movq %r13, %rdi
callq 0x8c00
testl %eax, %eax
jne 0xe4b5
movq 0x10(%rbp), %rdi
cmpl $0x0, 0x30(%rdi)
jle 0xe391
addq $0x30, %rdi
xorl %ebx, %ebx
incl %ebx
movl %ebx, %esi
callq 0x91d8
cmpq %rbp, %rax
je 0xe384
movq 0x8(%rax), %rcx
cmpl $0x0, (%rcx)
jle 0xe384
cmpb $0x0, 0x20(%rax)
jne 0xe47c
movb $0x2, 0x20(%rax)
movq 0x10(%rbp), %rax
leaq 0x30(%rax), %rdi
cmpl 0x30(%rax), %ebx
jl 0xe35f
xorl %edx, %edx
subl 0x18(%rbp), %edx
movq %rbp, %rdi
xorl %esi, %esi
callq 0xe4ce
testl %eax, %eax
jne 0xe3bf
movl 0x1c(%rbp), %esi
movq 0x10(%rbp), %rax
movl %esi, %edx
subl 0xf0(%rax), %edx
movq %rbp, %rdi
callq 0xe4ce
testl %eax, %eax
je 0xe3e7
leaq 0x1739a(%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 0xef9a
movl 0x8(%r15), %eax
subl %eax, %r12d
movslq %r12d, %rcx
shlq $0x5, %rcx
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movq 0x20(%rsp), %rdx
movups %xmm1, 0x10(%rdx,%rcx)
movups %xmm0, (%rdx,%rcx)
movl 0xc(%r15), %ebx
addl %ebx, %eax
movl %r14d, %r12d
cmpl %eax, %r14d
jl 0xe31c
movq 0x28(%rsp), %rdx
movq (%rdx), %rax
movq 0x20(%rsp), %rcx
movq %rcx, (%rax)
movq 0x30(%rsp), %rcx
movq (%rcx), %rax
movl $0x4, (%rax)
movl %ebx, 0x4(%rax)
addq $0x8, (%rdx)
addq $0x8, (%rcx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x17302(%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 0xe4a2
leaq 0x172dd(%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 0xef9a
leaq 0x172a4(%rip), %rax     # 0x25760
movq 0xb8(%rax), %rdi
addq $-0x4, %rdi
movl $0x1, %esi
jmp 0xe493