// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r9d, %r12d
movq %r8, -0x40(%rbp)
movl %ecx, %r13d
movq %rdx, -0x50(%rbp)
movq %rsi, %r14
movq %rdi, %rbx
movl %r9d, %edx
callq 0x98ef
movq %rax, %r15
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0xf924
movq %r14, -0x60(%rbp)
movl %r12d, -0x44(%rbp)
movq -0x30(%rbp), %rsi
movl 0x10(%rsi), %eax
movl %eax, -0x54(%rbp)
cmpl $0x2, %eax
jl 0xf7e3
movq %rbx, %rdi
callq 0x8fa8
movq %rax, %r15
movq %rax, -0x30(%rbp)
movq %r15, -0x38(%rbp)
testl %r13d, %r13d
jle 0xf9e4
xorl %r15d, %r15d
cmpq $0x0, -0x40(%rbp)
sete %r12b
movq -0x30(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xf0bd
testl %eax, %eax
jne 0xfa4b
decl %r13d
movb %r12b, %r15b
xorl %r12d, %r12d
movl %r15d, -0x58(%rbp)
cmpq %r12, %r13
je 0xf9b3
movq (%r14), %rdi
testq %rdi, %rdi
sete %al
leaq 0x28a5f(%rip), %rcx     # 0x38298
cmpq %rcx, %rdi
sete %cl
orb %al, %cl
jne 0xf84b
xorl %esi, %esi
callq *0x28a3d(%rip)          # 0x38288
movq $0x0, (%r14)
movq -0x50(%rbp), %rax
movq (%rax,%r12,8), %rdx
movq %rbx, %rdi
movq %r14, %rsi
leaq -0x30(%rbp), %rcx
movl %r15d, %r8d
callq 0xf4d9
testl %eax, %eax
je 0xf8d9
cmpq $0x0, -0x40(%rbp)
je 0xfa4b
movq %rbx, %rdi
callq 0xae58
movq %r13, %r15
movq %rax, %r13
leaq 0x26af0(%rip), %rax     # 0x36380
movq %rax, 0x8(%r13)
movq $0x0, (%r13)
movl $0x30, %esi
xorl %edi, %edi
callq *0x289df(%rip)          # 0x38288
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movq %rax, 0x18(%r13)
movq %r13, -0x30(%rbp)
movq -0x50(%rbp), %rax
movq (%rax,%r12,8), %rdx
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rcx
movq %r15, %r13
movl -0x58(%rbp), %r15d
jmp 0xf900
movq -0x30(%rbp), %rsi
cmpl $0x2, 0x10(%rsi)
jl 0xf905
movq %rbx, %rdi
callq 0x8fa8
movq %rax, -0x30(%rbp)
movq -0x50(%rbp), %rcx
movq (%rcx,%r12,8), %rdx
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rcx
callq 0xf287
incq %r12
movq -0x30(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xf0bd
testl %eax, %eax
je 0xf820
jmp 0xfa4b
movq %r13, -0x38(%rbp)
movq %r14, %r13
cmpq $0x0, -0x40(%rbp)
sete %al
movl %r12d, %ecx
andl $0x8, %ecx
shrl $0x3, %ecx
movl $0x1, %r14d
testb %cl, %al
jne 0xfa63
movq %rbx, %rdi
callq 0xae58
movq %rax, %r15
leaq 0x26a24(%rip), %rax     # 0x36380
movq %rax, 0x8(%r15)
movq $0x0, (%r15)
movl $0x30, %esi
xorl %edi, %edi
callq *0x28914(%rip)          # 0x38288
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movq %rax, 0x18(%r15)
movq %r15, -0x30(%rbp)
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x871b
testl %eax, %eax
je 0xf9a7
movq %rbx, %rdi
movq %r15, %rsi
jmp 0xfa5e
movq %r13, %r14
movq -0x38(%rbp), %r13
jmp 0xf7bd
movslq %r13d, %rax
movq -0x50(%rbp), %rcx
movq (%rcx,%rax,8), %rdx
movq %rbx, %rdi
movq %r14, %rsi
movq -0x40(%rbp), %rcx
callq 0xf04d
testl %eax, %eax
je 0xf9e4
cmpq $0x0, -0x40(%rbp)
sete %al
testb $0x8, -0x44(%rbp)
sete %cl
testb %cl, %al
je 0xfa4b
movq -0x30(%rbp), %r14
movq (%r14), %rdi
testq %rdi, %rdi
sete %al
leaq 0x288a0(%rip), %r12     # 0x38298
cmpq %r12, %rdi
sete %cl
orb %al, %cl
jne 0xfa0a
xorl %esi, %esi
callq *0x2887e(%rip)          # 0x38288
movq $0x0, (%r14)
movq -0x38(%rbp), %rdx
movq (%rdx), %rdi
testq %rdi, %rdi
sete %al
cmpq %r12, %rdi
sete %cl
orb %al, %cl
jne 0xfa34
xorl %esi, %esi
callq *0x28858(%rip)          # 0x38288
movq -0x38(%rbp), %rdx
movq $0x0, (%rdx)
movq %rbx, %rdi
movq -0x60(%rbp), %rsi
callq 0x871b
testl %eax, %eax
je 0xfa75
movl $0x1, %r14d
cmpl $0x2, -0x54(%rbp)
jl 0xfa63
movq %rbx, %rdi
movq -0x38(%rbp), %rsi
callq 0x759a
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
testb $0x10, -0x44(%rbp)
jne 0xfa63
movq -0x38(%rbp), %rdx
incl 0x10(%rdx)
movq (%rbx), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0xfaa2
movq %rbx, %rdi
callq 0x759a
movq -0x38(%rbp), %rdx
movq %rdx, (%rbx)
jmp 0xfa63