// File: /workspace/github_c_makefile_star2_O0/msteveb[P]autosetup/./jimsh0.c
// Function: Jim_SetDictKeysVector
int Jim_SetDictKeysVector(Jim_Interp *interp, Jim_Obj *varNamePtr,
    Jim_Obj *const *keyv, int keyc, Jim_Obj *newObjPtr, int flags)
{
    Jim_Obj *varObjPtr, *objPtr, *dictObjPtr;
    int shared, i;

    varObjPtr = objPtr = Jim_GetVariable(interp, varNamePtr, flags);
    if (objPtr == NULL) {
        if (newObjPtr == NULL && (flags & JIM_MUSTEXIST)) {

            return JIM_ERR;
        }
        varObjPtr = objPtr = Jim_NewDictObj(interp, NULL, 0);
        if (Jim_SetVariable(interp, varNamePtr, objPtr) != JIM_OK) {
            Jim_FreeNewObj(interp, varObjPtr);
            return JIM_ERR;
        }
    }
    if ((shared = Jim_IsShared(objPtr)))
        varObjPtr = objPtr = Jim_DuplicateObj(interp, objPtr);
    for (i = 0; i < keyc; i++) {
        dictObjPtr = objPtr;


        if (SetDictFromAny(interp, dictObjPtr) != JIM_OK) {
            goto err;
        }

        if (i == keyc - 1) {

            if (Jim_DictAddElement(interp, objPtr, keyv[keyc - 1], newObjPtr) != JIM_OK) {
                if (newObjPtr || (flags & JIM_MUSTEXIST)) {
                    goto err;
                }
            }
            break;
        }


        Jim_InvalidateStringRep(dictObjPtr);
        if (Jim_DictKey(interp, dictObjPtr, keyv[i], &objPtr,
                newObjPtr ? JIM_NONE : JIM_ERRMSG) == JIM_OK) {
            if (Jim_IsShared(objPtr)) {
                objPtr = Jim_DuplicateObj(interp, objPtr);
                DictAddElement(interp, dictObjPtr, keyv[i], objPtr);
            }
        }
        else {
            if (newObjPtr == NULL) {
                goto err;
            }
            objPtr = Jim_NewDictObj(interp, NULL, 0);
            DictAddElement(interp, dictObjPtr, keyv[i], objPtr);
        }
    }

    Jim_InvalidateStringRep(objPtr);
    Jim_InvalidateStringRep(varObjPtr);
    if (Jim_SetVariable(interp, varNamePtr, varObjPtr) != JIM_OK) {
        goto err;
    }

    if (!(flags & JIM_NORESULT)) {
        Jim_SetResult(interp, varObjPtr);
    }
    return JIM_OK;
  err:
    if (shared) {
        Jim_FreeNewObj(interp, varObjPtr);
    }
    return JIM_ERR;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq %r8, -0x30(%rbp)
movl %r9d, -0x34(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x34(%rbp), %edx
callq 0xa7b0
movq %rax, -0x48(%rbp)
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x48(%rbp)
jne 0x11764
cmpq $0x0, -0x30(%rbp)
jne 0x1171c
movl -0x34(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x1171c
movl $0x1, -0x4(%rbp)
jmp 0x1197f
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq 0x11160
movq %rax, -0x48(%rbp)
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x8df0
cmpl $0x0, %eax
je 0x11762
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x7a10
movl $0x1, -0x4(%rbp)
jmp 0x1197f
jmp 0x11764
movq -0x48(%rbp), %rax
cmpl $0x1, 0x10(%rax)
setg %al
movb %al, %cl
andb $0x1, %cl
movzbl %cl, %ecx
movl %ecx, -0x54(%rbp)
testb $0x1, %al
jne 0x11780
jmp 0x11795
movq -0x10(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x9a00
movq %rax, -0x48(%rbp)
movq %rax, -0x40(%rbp)
movl $0x0, -0x58(%rbp)
movl -0x58(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x118de
movq -0x48(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0x10c20
cmpl $0x0, %eax
je 0x117c7
jmp 0x11965
movl -0x58(%rbp), %eax
movl -0x24(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x11819
movq -0x10(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x20(%rbp), %rax
movl -0x24(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdx
movq -0x30(%rbp), %rcx
callq 0x10bc0
cmpl $0x0, %eax
je 0x11814
cmpq $0x0, -0x30(%rbp)
jne 0x1180d
movl -0x34(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x11812
jmp 0x11965
jmp 0x11814
jmp 0x118de
movq -0x50(%rbp), %rdi
callq 0xa9b0
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x20(%rbp), %rax
movslq -0x58(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x30(%rbp), %rcx
movl $0x1, %r8d
xorl %eax, %eax
cmpq $0x0, %rcx
cmovnel %eax, %r8d
leaq -0x48(%rbp), %rcx
callq 0x112a0
cmpl $0x0, %eax
jne 0x11892
movq -0x48(%rbp), %rax
cmpl $0x1, 0x10(%rax)
jle 0x11890
movq -0x10(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x9a00
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x20(%rbp), %rax
movslq -0x58(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x48(%rbp), %rcx
callq 0x10eb0
jmp 0x118ce
cmpq $0x0, -0x30(%rbp)
jne 0x1189e
jmp 0x11965
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq 0x11160
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x20(%rbp), %rax
movslq -0x58(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x48(%rbp), %rcx
callq 0x10eb0
jmp 0x118d0
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x1179c
movq -0x48(%rbp), %rdi
callq 0xa9b0
movq -0x40(%rbp), %rdi
callq 0xa9b0
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq 0x8df0
cmpl $0x0, %eax
je 0x11908
jmp 0x11965
movl -0x34(%rbp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
jne 0x1195c
jmp 0x11915
movq -0x40(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
movl 0x10(%rcx), %eax
addl $-0x1, %eax
movl %eax, 0x10(%rcx)
cmpl $0x0, %eax
jg 0x1194f
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
callq 0x7a10
movq -0x60(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
jmp 0x1195c
movl $0x0, -0x4(%rbp)
jmp 0x1197f
cmpl $0x0, -0x54(%rbp)
je 0x11978
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x7a10
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)