// File: /workspace/github_c_makefile_star2_O0/haxlang[P]hax/haxVar.c
// Function: DeleteArray
static void
DeleteArray(
    Interp *iPtr,			/* Interpreter containing array. */
    char *arrayName,			/* Name of array (used for trace
					 * callbacks). */
    Var *varPtr,			/* Pointer to variable structure. */
    int flags				/* Flags to pass to CallTraces:
					 * HAX_TRACE_UNSETS and sometimes
					 * HAX_INTERP_DESTROYED and/or
					 * HAX_GLOBAL_ONLY. */)
{
    Hax_Memoryp *memoryp = iPtr->memoryp;
    Hax_HashSearch search;
    Hax_HashEntry *hPtr;
    Var *elPtr;

    DeleteSearches((Hax_Interp *) iPtr, varPtr);
    for (hPtr = Hax_FirstHashEntry(varPtr->value.tablePtr, &search);
	    hPtr != NULL; hPtr = Hax_NextHashEntry(&search)) {
	elPtr = (Var *) Hax_GetHashValue(hPtr);
	if (elPtr->tracePtr != NULL) {
	    (void) CallTraces(iPtr, (Var *) NULL, hPtr, arrayName,
		    Hax_GetHashKey(varPtr->value.tablePtr, hPtr), flags);
	    while (elPtr->tracePtr != NULL) {
		VarTrace *tracePtr = elPtr->tracePtr;
		elPtr->tracePtr = tracePtr->nextPtr;
		ckfree(memoryp, (char *) tracePtr);
	    }
	}
	if (elPtr->flags & VAR_SEARCHES_POSSIBLE) {
	    Hax_Panic((char *) "DeleteArray found searches on array alement!");
	}
	ckfree(memoryp, (char *) elPtr);
    }
    Hax_DeleteHashTable((Hax_Interp *) iPtr, varPtr->value.tablePtr);
    ckfree(memoryp, (char *) varPtr->value.tablePtr);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x8(%rbp), %rax
movq 0x280(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x1a2a0
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rdi
leaq -0x40(%rbp), %rsi
callq 0x43c0
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x1a97a
movq -0x48(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x1a932
movq -0x8(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
cmpl $0x1, 0x3c(%rax)
jne 0x1a8c5
movq -0x48(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x78(%rbp)
jmp 0x1a8d1
movq -0x48(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x78(%rbp)
movq -0x60(%rbp), %rcx
movq -0x68(%rbp), %rdx
movq -0x70(%rbp), %rdi
movq -0x78(%rbp), %r8
movl -0x1c(%rbp), %r9d
xorl %eax, %eax
movl %eax, %esi
callq 0x199a0
movq -0x50(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x1a930
movq -0x50(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x50(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x28(%rbp), %rdi
movq -0x58(%rbp), %rsi
leaq 0x4f8b(%rip), %rdx      # 0x1f8af
movl $0x8c7, %ecx            # imm = 0x8C7
callq 0x4260
jmp 0x1a8ee
jmp 0x1a932
movq -0x50(%rbp), %rax
movl 0x20(%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x1a94f
leaq 0x51fa(%rip), %rdi      # 0x1fb42
movb $0x0, %al
callq 0x4120
movq -0x28(%rbp), %rdi
movq -0x50(%rbp), %rsi
leaq 0x4f51(%rip), %rdx      # 0x1f8af
movl $0x8cd, %ecx            # imm = 0x8CD
callq 0x4260
leaq -0x40(%rbp), %rdi
callq 0x4370
movq %rax, -0x48(%rbp)
jmp 0x1a86b
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rsi
callq 0x41f0
movq -0x28(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rsi
leaq 0x4f11(%rip), %rdx      # 0x1f8af
movl $0x8d0, %ecx            # imm = 0x8D0
callq 0x4260
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)