// File: /workspace/github_c_makefile_star2_O3/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 $0x48, %rsp
movl %r9d, %r14d
movq %r8, %r15
movq %rcx, -0x40(%rbp)
movq %rdx, -0x50(%rbp)
movq %rsi, %r12
movq %rdi, %rbx
movl %r9d, %edx
callq 0x98e7
movq %rax, %r13
movq %rax, -0x38(%rbp)
testq %rax, %rax
movq %r15, -0x60(%rbp)
je 0xf90f
movl 0x10(%r13), %eax
movl %eax, -0x54(%rbp)
cmpl $0x2, %eax
movl %r14d, -0x44(%rbp)
movq %r12, -0x68(%rbp)
jl 0xf7d5
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8fc2
movq %rax, %r13
movq %rax, -0x38(%rbp)
movq %r13, %r14
cmpl $0x0, -0x40(%rbp)
jle 0xf9bb
movl $0x0, -0x2c(%rbp)
testq %r15, %r15
sete %r14b
movq %rbx, %rdi
movq %r13, %rsi
callq 0xf08c
testl %eax, %eax
jne 0xfa1e
movq -0x40(%rbp), %rax
decl %eax
movq %rax, -0x40(%rbp)
movl -0x2c(%rbp), %eax
movb %r14b, %al
movl %eax, -0x2c(%rbp)
xorl %r12d, %r12d
movq %r13, %r14
cmpq %r12, -0x40(%rbp)
je 0xf98c
movq (%r14), %rdi
testq %rdi, %rdi
sete %al
leaq 0x27a62(%rip), %rcx     # 0x37298
cmpq %rcx, %rdi
sete %cl
orb %al, %cl
jne 0xf848
xorl %esi, %esi
callq *0x27a40(%rip)          # 0x37288
movq $0x0, (%r14)
movq -0x50(%rbp), %rax
movq (%rax,%r12,8), %rdx
movq %rbx, %rdi
movq %r14, %rsi
leaq -0x38(%rbp), %rcx
movl -0x2c(%rbp), %r8d
callq 0xf4bf
testl %eax, %eax
je 0xf8b9
testq %r15, %r15
je 0xfa1e
movq %rbx, %rdi
callq 0xae38
movq %rax, %r15
leaq 0x25b07(%rip), %rax     # 0x35390
movq %rax, 0x8(%r15)
movq $0x0, (%r15)
movl $0x30, %esi
xorl %edi, %edi
callq *0x279e7(%rip)          # 0x37288
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movq %rax, 0x18(%r15)
movq %r15, -0x38(%rbp)
jmp 0xf8d6
movq -0x38(%rbp), %r15
cmpl $0x2, 0x10(%r15)
jl 0xf8ed
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8fc2
movq %rax, %r15
movq %rax, -0x38(%rbp)
movq -0x50(%rbp), %rax
movq (%rax,%r12,8), %rdx
movq 0x18(%r14), %rsi
movq %rbx, %rdi
movq %r15, %rcx
callq 0xf26d
incq %r12
movq %rbx, %rdi
movq %r15, %rsi
callq 0xf08c
movq %r15, %r14
testl %eax, %eax
movq -0x60(%rbp), %r15
je 0xf81c
jmp 0xfa1e
testq %r15, %r15
sete %al
movl %r14d, %ecx
andl $0x8, %ecx
shrl $0x3, %ecx
movl $0x1, %r15d
testb %cl, %al
jne 0xfa35
movq %rbx, %rdi
callq 0xae38
movq %rax, %r13
leaq 0x25a52(%rip), %rax     # 0x35390
movq %rax, 0x8(%r13)
movq $0x0, (%r13)
movl $0x30, %esi
xorl %edi, %edi
callq *0x27931(%rip)          # 0x37288
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movq %rax, 0x18(%r13)
movq %r13, -0x38(%rbp)
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x876e
testl %eax, %eax
jne 0xfa2a
movq -0x60(%rbp), %r15
jmp 0xf7af
movslq -0x40(%rbp), %rax
movq -0x50(%rbp), %rcx
movq (%rcx,%rax,8), %rdx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rcx
callq 0xf018
testl %eax, %eax
je 0xf9bb
testq %r15, %r15
sete %al
testb $0x8, -0x44(%rbp)
sete %cl
testb %cl, %al
je 0xfa1e
movq (%r14), %rdi
testq %rdi, %rdi
sete %al
leaq 0x278cd(%rip), %r15     # 0x37298
cmpq %r15, %rdi
sete %cl
orb %al, %cl
jne 0xf9dd
xorl %esi, %esi
callq *0x278ab(%rip)          # 0x37288
movq $0x0, (%r14)
movq (%r13), %rdi
testq %rdi, %rdi
sete %al
cmpq %r15, %rdi
sete %cl
orb %al, %cl
movq -0x68(%rbp), %r14
jne 0xfa04
xorl %esi, %esi
callq *0x27884(%rip)          # 0x37288
movq $0x0, (%r13)
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x876e
testl %eax, %eax
je 0xfa47
movl $0x1, %r15d
cmpl $0x2, -0x54(%rbp)
jl 0xfa35
movq %rbx, %rdi
movq %r13, %rsi
callq 0x758c
movl %r15d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r15d, %r15d
testb $0x10, -0x44(%rbp)
jne 0xfa35
incl 0x10(%r13)
movq (%rbx), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0xfa6d
movq %rbx, %rdi
callq 0x758c
movq %r13, (%rbx)
jmp 0xfa35