// File: /workspace/github_c_makefile_star2_O2/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 $0x18, %rsp
movq %rcx, %r14
movq %rdx, %r12
movq %rdi, %r15
movslq 0xc(%rdi), %rbx
movq %rbx, %rdi
shlq $0x5, %rdi
callq 0x81d0
movq %rax, (%rsp)
testq %rax, %rax
je 0xda46
movq %r12, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movl 0x8(%r15), %eax
movl %eax, %r12d
addl %ebx, %eax
cmpl %eax, %r12d
jge 0xda6e
leal 0x1(%r12), %ebp
movq (%r15), %rax
movq 0x10(%rax), %rdi
addq $0x10, %rdi
movl %ebp, %esi
callq 0x9088
movq (%rax), %rbx
movq 0x10(%rbx), %r13
addq $0x10, %r13
movq %r13, %rdi
callq 0x8b50
testl %eax, %eax
jne 0xda46
pushq $0x1
popq %r14
movq 0x10(%rbx), %rdi
cmpl 0x30(%rdi), %r14d
jg 0xd9b8
addq $0x30, %rdi
movl %r14d, %esi
callq 0x9088
cmpq %rbx, %rax
je 0xd9b3
movq 0x8(%rax), %rcx
cmpl $0x0, (%rcx)
jle 0xd9b3
cmpb $0x0, 0x20(%rax)
jne 0xda30
movb $0x2, 0x20(%rax)
incl %r14d
jmp 0xd981
xorl %edx, %edx
subl 0x18(%rbx), %edx
movq %rbx, %rdi
xorl %esi, %esi
callq 0xdaa5
testl %eax, %eax
jne 0xd9e6
movl 0x1c(%rbx), %esi
movq 0x10(%rbx), %rax
movl %esi, %edx
subl 0xf0(%rax), %edx
movq %rbx, %rdi
callq 0xdaa5
testl %eax, %eax
je 0xd9ff
leaq 0x16d73(%rip), %rcx     # 0x24760
movq 0xb8(%rcx), %rsi
addq $-0x4, %rsi
movl %eax, %edi
callq 0xc7c2
movl 0x8(%r15), %eax
subl %eax, %r12d
movslq %r12d, %rcx
shlq $0x5, %rcx
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movq (%rsp), %rdx
movups %xmm1, 0x10(%rdx,%rcx)
movups %xmm0, (%rdx,%rcx)
movl 0xc(%r15), %ebx
movl %ebp, %r12d
jmp 0xd940
leaq 0x16d29(%rip), %rax     # 0x24760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
pushq $0x2a
jmp 0xda5a
leaq 0x16d13(%rip), %rax     # 0x24760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
pushq $0x1
popq %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xc7c2
movq 0x8(%rsp), %rdx
movq (%rdx), %rax
movq (%rsp), %rcx
movq %rcx, (%rax)
movq 0x10(%rsp), %rcx
movq (%rcx), %rax
movl $0x4, (%rax)
movl %ebx, 0x4(%rax)
addq $0x8, (%rdx)
addq $0x8, (%rcx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq