// File: /workspace/github_c_makefile_star2_O1/haxlang[P]hax/haxBasic.c
// Function: Hax_VarEval
int
Hax_VarEval(
    Hax_Interp *interp,		/* Interpreter in which to execute command. */
    ...				/* One or more strings to concatenate,
				 * terminated with a NULL string. */)
{
    Interp *iPtr = (Interp *) interp;
    Hax_Memoryp *memoryp = iPtr->memoryp;
    va_list argList;
#define FIXED_SIZE 200
    char fixedSpace[FIXED_SIZE+1];
    int spaceAvl, spaceUsed, length;
    char *string, *cmd;
    int result;

    /*
     * Copy the strings one after the other into a single larger
     * string.  Use stack-allocated space for small commands, but if
     * the commands gets too large than call ckalloc to create the
     * space.
     */

    va_start(argList, interp);
    interp = va_arg(argList, Hax_Interp *);
    spaceAvl = FIXED_SIZE;
    spaceUsed = 0;
    cmd = fixedSpace;
    while (1) {
	string = va_arg(argList, char *);
	if (string == NULL) {
	    break;
	}
	length = strlen(string);
	if ((spaceUsed + length) > spaceAvl) {
	    char *newPtr;

	    spaceAvl = spaceUsed + length;
	    spaceAvl += spaceAvl/2;
	    newPtr = (char *) ckalloc(memoryp, (unsigned) spaceAvl);
	    memcpy(newPtr, cmd, spaceUsed);
	    if (cmd != fixedSpace) {
		ckfree(memoryp, cmd);
	    }
	    cmd = newPtr;
	}
	strcpy(cmd + spaceUsed, string);
	spaceUsed += length;
    }
    va_end(argList);
    cmd[spaceUsed] = '\0';

    result = Hax_Eval(interp, NULL, cmd, 0, (char **) NULL);
    if (cmd != fixedSpace) {
	ckfree(memoryp, cmd);
    }
    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
leaq 0x100(%rsp), %r10
movq %rsi, 0x8(%r10)
movq %rdx, 0x10(%r10)
movq %rcx, 0x18(%r10)
movq %r8, 0x20(%r10)
movq %r9, 0x28(%r10)
testb %al, %al
je 0x6cc4
movaps %xmm0, 0x130(%rsp)
movaps %xmm1, 0x140(%rsp)
movaps %xmm2, 0x150(%rsp)
movaps %xmm3, 0x160(%rsp)
movaps %xmm4, 0x170(%rsp)
movaps %xmm5, 0x180(%rsp)
movaps %xmm6, 0x190(%rsp)
movaps %xmm7, 0x1a0(%rsp)
movq 0x280(%rdi), %rdx
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rsp)
leaq 0x1f0(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movl $0x8, %ecx
cmpq $0x28, %rcx
ja 0x6d08
movl $0x8, %eax
addq 0x10(%rsp), %rax
addl $0x8, %ecx
movl %ecx, (%rsp)
jmp 0x6d16
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq %rdx, 0x18(%rsp)
movq (%rax), %rax
movq %rax, 0x28(%rsp)
movl $0xc8, %r15d
leaq 0x30(%rsp), %r13
xorl %ebx, %ebx
leaq 0xe509(%rip), %r12      # 0x15240
movl (%rsp), %ecx
cmpq $0x28, %rcx
ja 0x6d50
movq %rcx, %rax
addq 0x10(%rsp), %rax
addl $0x8, %ecx
movl %ecx, (%rsp)
jmp 0x6d5e
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %rbp
movslq %ebx, %r14
testq %rbp, %rbp
je 0x6de0
movq %rbp, %rdi
callq 0x41d0
addl %eax, %ebx
cmpl %r15d, %ebx
jle 0x6dcd
movl %ebx, %esi
shrl %esi
addl %ebx, %esi
movq 0x18(%rsp), %rdi
movq %rsi, 0x20(%rsp)
movq %r12, %rdx
movl $0x3f2, %ecx            # imm = 0x3F2
callq 0x44c0
movq %r13, %r15
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x43a0
leaq 0x30(%rsp), %rax
cmpq %rax, %r15
je 0x6dc8
movq 0x18(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
movl $0x3f5, %ecx            # imm = 0x3F5
callq 0x4280
movq 0x20(%rsp), %r15
addq %r13, %r14
movq %r14, %rdi
movq %rbp, %rsi
callq 0x40f0
jmp 0x6d37
movb $0x0, (%r13,%r14)
movq 0x28(%rsp), %rdi
xorl %esi, %esi
movq %r13, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x45b0
movl %eax, %ebp
leaq 0x30(%rsp), %rax
cmpq %rax, %r13
je 0x6e1f
leaq 0xe433(%rip), %rdx      # 0x15240
movq 0x18(%rsp), %rdi
movq %r13, %rsi
movl $0x401, %ecx            # imm = 0x401
callq 0x4280
movl %ebp, %eax
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq