// File: /workspace/github_c_makefile_star2_O3/haxlang[P]hax/haxVar.c
// Function: Hax_GlobalCmd
int
Hax_GlobalCmd(
    ClientData dummy,			/* Not used. */
    Hax_Interp *interp,			/* Current interpreter. */
    int argc,				/* Number of arguments. */
    char **argv				/* Argument strings. */)
{
    Var *varPtr, *gVarPtr;
    Interp *iPtr = (Interp *) interp;
    Hax_HashEntry *hPtr, *hPtr2;
    int newPtr;

    if (argc < 2) {
	Hax_AppendResult((Hax_Interp *) iPtr, "wrong # args: should be \"",
		argv[0], " varName ?varName ...?\"", (char *) NULL);
	return HAX_ERROR;
    }
    if (iPtr->varFramePtr == NULL) {
	return HAX_OK;
    }

    for (argc--, argv++; argc > 0; argc--, argv++) {
	hPtr = Hax_CreateHashEntry(interp, &iPtr->globalTable, *argv, &newPtr);
	if (newPtr) {
	    gVarPtr = NewVar(interp, 0);
	    gVarPtr->flags |= VAR_UNDEFINED;
	    Hax_SetHashValue(hPtr, gVarPtr);
	} else {
	    gVarPtr = (Var *) Hax_GetHashValue(hPtr);
	}
	hPtr2 = Hax_CreateHashEntry(interp, &iPtr->varFramePtr->varTable, *argv,
		    &newPtr);
	if (!newPtr) {
	    Var *varPtr;
	    varPtr = (Var *) Hax_GetHashValue(hPtr2);
	    if (varPtr->flags & VAR_UPVAR) {
		continue;
	    } else {
		Hax_AppendResult((Hax_Interp *) iPtr, "variable \"", *argv,
		    "\" already exists", (char *) NULL);
		return HAX_ERROR;
	    }
	}
	varPtr = NewVar(interp, 0);
	varPtr->flags |= VAR_UPVAR;
	varPtr->value.upvarPtr = hPtr;
	gVarPtr->upvarUses++;
	Hax_SetHashValue(hPtr2, varPtr);
    }
    return HAX_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movq %rsi, %rbx
cmpl $0x1, %edx
jg 0x134cf
movq (%r14), %rdx
leaq 0x13af(%rip), %rsi      # 0x14860
leaq 0x2d29(%rip), %rcx      # 0x161e1
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x4510
movl $0x1, %eax
jmp 0x135fb
xorl %eax, %eax
cmpq $0x0, 0xc8(%rbx)
je 0x135fb
movl %edx, %r15d
leaq 0x68(%rbx), %rax
movq %rax, 0x10(%rsp)
incl %r15d
addq $0x8, %r14
leaq 0xc(%rsp), %r13
movq (%r14), %rdx
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
movq %r13, %rcx
callq *0xb0(%rbx)
movq %rax, %rbp
cmpl $0x0, 0xc(%rsp)
je 0x1356a
movq 0x280(%rbx), %rdi
movl $0x30, %esi
leaq 0x2c9b(%rip), %rdx      # 0x161c3
movl $0x825, %ecx            # imm = 0x825
callq 0x44d0
movq %rax, %r12
movabsq $0x800000000, %rax      # imm = 0x800000000
movq %rax, (%r12)
movl $0x0, 0x8(%r12)
movb $0x0, 0x28(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r12)
movl $0x4, 0x20(%r12)
movq %r12, 0x18(%rbp)
jmp 0x1356e
movq 0x18(%rbp), %r12
movq 0xc8(%rbx), %rsi
movq (%r14), %rdx
movq %rbx, %rdi
movq %r13, %rcx
callq *0x48(%rsi)
movq %rax, %r13
cmpl $0x0, 0xc(%rsp)
je 0x135d9
movq 0x280(%rbx), %rdi
movl $0x30, %esi
leaq 0x2c25(%rip), %rdx      # 0x161c3
movl $0x825, %ecx            # imm = 0x825
callq 0x44d0
movabsq $0x800000000, %rcx      # imm = 0x800000000
movq %rcx, (%rax)
movl $0x0, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movl $0x2, 0x20(%rax)
movq %rbp, 0x28(%rax)
incl 0x8(%r12)
movq %rax, 0x18(%r13)
jmp 0x135e3
movq 0x18(%r13), %rax
testb $0x2, 0x20(%rax)
je 0x1360a
decl %r15d
addq $0x8, %r14
cmpl $0x2, %r15d
leaq 0xc(%rsp), %r13
ja 0x134f7
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r14), %rdx
leaq 0x170b(%rip), %rsi      # 0x14d1f
leaq 0x2d3f(%rip), %rcx      # 0x1635a
jmp 0x134b8