// File: /workspace/github_c_makefile_star2_O1/msteveb[P]autosetup/./jimsh0.c
// Function: JimDictWith
static int JimDictWith(Jim_Interp *interp, Jim_Obj *dictVarName, Jim_Obj *const *keyv, int keyc, Jim_Obj *scriptObj)
{
    int i;
    Jim_Obj *objPtr;
    Jim_Obj *dictObj;
    Jim_Obj **dictValues;
    int len;
    int ret = JIM_OK;


    dictObj = Jim_GetVariable(interp, dictVarName, JIM_ERRMSG);
    if (dictObj == NULL || Jim_DictKeysVector(interp, dictObj, keyv, keyc, &objPtr, JIM_ERRMSG) != JIM_OK) {
        return JIM_ERR;
    }

    dictValues = Jim_DictPairs(interp, objPtr, &len);
    if (len && dictValues == NULL) {
        return JIM_ERR;
    }
    for (i = 0; i < len; i += 2) {
        if (Jim_SetVariable(interp, dictValues[i], dictValues[i + 1]) == JIM_ERR) {
            return JIM_ERR;
        }
    }


    if (Jim_Length(scriptObj)) {
        ret = Jim_EvalObj(interp, scriptObj);


        if (ret == JIM_OK && Jim_GetVariable(interp, dictVarName, 0) != NULL) {

            Jim_Obj **newkeyv = Jim_Alloc(sizeof(*newkeyv) * (keyc + 1));
            for (i = 0; i < keyc; i++) {
                newkeyv[i] = keyv[i];
            }

            for (i = 0; i < len; i += 2) {

                if (Jim_StringCompareObj(interp, dictVarName, dictValues[i], 0) != 0) {

                    objPtr = Jim_GetVariable(interp, dictValues[i], 0);
                    newkeyv[keyc] = dictValues[i];
                    Jim_SetDictKeysVector(interp, dictVarName, newkeyv, keyc + 1, objPtr, JIM_NORESULT);
                }
            }
            Jim_Free(newkeyv);
        }
    }

    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %r12
movl %ecx, %r14d
movq %rdx, %r13
movq %rdi, %r15
movl $0x1, %ebx
movq %rsi, -0x48(%rbp)
movl $0x1, %edx
callq 0x98ef
testq %rax, %rax
je 0x24f95
leaq -0x40(%rbp), %r8
movl $0x1, %ebx
movq %r15, %rdi
movq %rax, %rsi
movq %r13, %rdx
movl %r14d, %ecx
movl $0x1, %r9d
callq 0xf714
testl %eax, %eax
jne 0x24f95
movq %r12, -0x38(%rbp)
movl %r14d, -0x2c(%rbp)
movq -0x40(%rbp), %rsi
leaq -0x54(%rbp), %r14
movq %r15, %rdi
movq %r14, %rdx
callq 0xf6a2
movq %rax, %r12
movl (%r14), %edx
testl %edx, %edx
setne %al
testq %r12, %r12
sete %cl
testb %cl, %al
jne 0x24f95
testl %edx, %edx
movl %edx, -0x30(%rbp)
jle 0x24e93
xorl %r14d, %r14d
movq (%r12,%r14,8), %rsi
movq 0x8(%r12,%r14,8), %rdx
movq %r15, %rdi
callq 0x871b
testl %eax, %eax
jne 0x24f95
addq $0x2, %r14
cmpl %r14d, -0x30(%rbp)
jg 0x24e70
movq -0x38(%rbp), %rbx
cmpq $0x0, (%rbx)
jne 0x24ea7
movq 0x8(%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
cmpl $0x0, 0x14(%rbx)
je 0x24f93
movq %r15, %rdi
movq %rbx, %rsi
callq 0x9078
movl %eax, %ebx
testl %eax, %eax
jne 0x24f95
xorl %ebx, %ebx
movq %r15, %rdi
movq -0x48(%rbp), %rsi
xorl %edx, %edx
callq 0x98ef
testq %rax, %rax
je 0x24f95
movl -0x2c(%rbp), %ebx
movslq %ebx, %rax
movq %rax, -0x50(%rbp)
leaq 0x8(,%rax,8), %rsi
xorl %edi, %edi
callq *0x1338f(%rip)          # 0x38288
testl %ebx, %ebx
jle 0x24f13
movl -0x2c(%rbp), %esi
xorl %ecx, %ecx
movq (%r13,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
incq %rcx
cmpq %rcx, %rsi
jne 0x24f02
movq %rax, -0x38(%rbp)
movq -0x40(%rbp), %rbx
cmpl $0x0, -0x30(%rbp)
movq -0x48(%rbp), %r14
jle 0x24f7f
incl -0x2c(%rbp)
xorl %r13d, %r13d
movq (%r12,%r13,8), %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0xb302
testl %eax, %eax
je 0x24f75
movq (%r12,%r13,8), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x98ef
movq %rax, %rbx
movq (%r12,%r13,8), %rax
movq -0x38(%rbp), %rdx
movq -0x50(%rbp), %rcx
movq %rax, (%rdx,%rcx,8)
movq %r15, %rdi
movq %r14, %rsi
movl -0x2c(%rbp), %ecx
movq %rbx, %r8
movl $0x10, %r9d
callq 0xf780
addq $0x2, %r13
cmpl %r13d, -0x30(%rbp)
jg 0x24f2b
movq %rbx, -0x40(%rbp)
xorl %ebx, %ebx
movq -0x38(%rbp), %rdi
xorl %esi, %esi
callq *0x132f7(%rip)          # 0x38288
jmp 0x24f95
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq