// File: /workspace/github_c_makefile_star2_O2/msteveb[P]autosetup/./jimsh0.c
// Function: SetListFromAny
static int SetListFromAny(Jim_Interp *interp, struct Jim_Obj *objPtr)
{
    struct JimParserCtx parser;
    const char *str;
    int strLen;
    Jim_Obj *fileNameObj;
    int linenr;

    if (objPtr->typePtr == &listObjType) {
        return JIM_OK;
    }


    if (Jim_IsDict(objPtr) && objPtr->bytes == NULL) {
        Jim_Dict *dict = objPtr->internalRep.dictValue;


        objPtr->typePtr = &listObjType;
        objPtr->internalRep.listValue.len = dict->len;
        objPtr->internalRep.listValue.maxLen = dict->maxLen;
        objPtr->internalRep.listValue.ele = dict->table;


        Jim_Free(dict->ht);


        Jim_Free(dict);
        return JIM_OK;
    }


    fileNameObj = Jim_GetSourceInfo(interp, objPtr, &linenr);
    Jim_IncrRefCount(fileNameObj);


    str = Jim_GetString(objPtr, &strLen);

    Jim_FreeIntRep(interp, objPtr);
    objPtr->typePtr = &listObjType;
    objPtr->internalRep.listValue.len = 0;
    objPtr->internalRep.listValue.maxLen = 0;
    objPtr->internalRep.listValue.ele = NULL;


    if (strLen) {
        JimParserInit(&parser, str, strLen, linenr);
        while (!parser.eof) {
            Jim_Obj *elementPtr;

            JimParseList(&parser);
            if (parser.tt != JIM_TT_STR && parser.tt != JIM_TT_ESC)
                continue;
            elementPtr = JimParserGetTokenObj(interp, &parser);
            Jim_SetSourceInfo(interp, elementPtr, fileNameObj, parser.tline);
            ListAppendElement(objPtr, elementPtr);
        }
    }
    Jim_DecrRefCount(interp, fileNameObj);
    return JIM_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, -0x78(%rbp)
movq 0x8(%rsi), %rax
leaq 0x23f0e(%rip), %r14     # 0x31408
cmpq %r14, %rax
je 0xd839
movq %rsi, %r15
leaq 0x23f23(%rip), %rcx     # 0x31430
cmpq %rcx, %rax
jne 0xd51c
cmpq $0x0, (%r15)
je 0xd848
leaq -0x7c(%rbp), %rdx
movq -0x78(%rbp), %rdi
movq %r15, %rsi
callq 0xb377
movq %rax, %r12
incl 0x10(%rax)
leaq -0x80(%rbp), %rsi
movq %r15, %rdi
callq 0x7fc7
movq %rax, %rbx
movq 0x8(%r15), %rax
testq %rax, %rax
je 0xd55c
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xd55c
movq -0x78(%rbp), %rdi
movq %r15, %rsi
callq *%rax
movq %r14, 0x8(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r15)
movl -0x80(%rbp), %eax
testl %eax, %eax
je 0xd81b
movl -0x7c(%rbp), %ecx
leaq -0x70(%rbp), %rdx
movq %rbx, (%rdx)
movl %eax, 0x8(%rdx)
movups %xmm0, 0x10(%rdx)
movups %xmm0, 0x20(%rdx)
movl %ecx, 0xc(%rdx)
movabsq $0x2000000001, %rax     # imm = 0x2000000001
movq %rax, 0x30(%rdx)
movl %ecx, 0x38(%rdx)
callq 0x64e0
movq %rax, %rbx
pushq $0x2
popq %r13
xorl %eax, %eax
movq %r15, -0x90(%rbp)
movq %rbx, -0x88(%rbp)
testl %eax, %eax
jne 0xd81b
movq (%rbx), %rcx
movq -0x70(%rbp), %rax
movb (%rax), %sil
movzbl %sil, %edx
movzwl (%rcx,%rdx,2), %r9d
btl $0xd, %r9d
jb 0xd662
cmpl $0x7b, %edx
je 0xd6b6
cmpl $0x22, %edx
jne 0xd6c5
incq %rax
movq %rax, -0x70(%rbp)
movl -0x68(%rbp), %ecx
movl -0x64(%rbp), %edx
decl %ecx
movl %ecx, -0x68(%rbp)
movq %rax, -0x60(%rbp)
movl %edx, -0x50(%rbp)
movl $0x1, -0x4c(%rbp)
pushq $0x1
popq %rsi
movl %esi, %r14d
testl %ecx, %ecx
je 0xd71d
movzbl (%rax), %esi
cmpl $0xa, %esi
je 0xd64f
cmpl $0x5c, %esi
je 0xd635
cmpl $0x22, %esi
jne 0xd654
jmp 0xd7f6
movl $0x2, -0x4c(%rbp)
decl %ecx
movl %ecx, -0x68(%rbp)
je 0xd80f
incq %rax
movl %r13d, %r14d
jmp 0xd654
incl %edx
movl %edx, -0x64(%rbp)
incq %rax
movq %rax, -0x70(%rbp)
decl %ecx
movl %ecx, -0x68(%rbp)
jmp 0xd616
movq %rax, -0x60(%rbp)
movl -0x68(%rbp), %edx
movl -0x64(%rbp), %edi
movl %edi, -0x50(%rbp)
movl %edi, %r8d
btl $0xd, %r9d
jae 0xd699
leal 0x1(%r8), %r9d
cmpb $0xa, %sil
cmovel %r9d, %edi
cmovel %r9d, %r8d
decl %edx
movzbl 0x1(%rax), %esi
incq %rax
movzwl (%rcx,%rsi,2), %r9d
jmp 0xd672
movl %edi, -0x64(%rbp)
movq %rax, -0x70(%rbp)
movl %edx, -0x68(%rbp)
decq %rax
movq %rax, -0x58(%rbp)
movl $0x6, -0x4c(%rbp)
jmp 0xd7ee
leaq -0x70(%rbp), %rdi
callq 0x15f10
movl -0x4c(%rbp), %r14d
jmp 0xd724
movl -0x68(%rbp), %edx
testl %edx, %edx
je 0xd7d2
movq %rax, -0x60(%rbp)
movl -0x64(%rbp), %esi
movl %esi, -0x50(%rbp)
movl $0x1, -0x4c(%rbp)
pushq $0x1
popq %rsi
movl %esi, %r14d
testl %edx, %edx
je 0xd71d
movzbl (%rax), %esi
testb $0x20, 0x1(%rcx,%rsi,2)
jne 0xd71d
cmpb $0x5c, %sil
jne 0xd70f
decl %edx
movl %edx, -0x68(%rbp)
je 0xd720
movl $0x2, -0x4c(%rbp)
incq %rax
movl %r13d, %r14d
incq %rax
movq %rax, -0x70(%rbp)
decl %edx
movl %edx, -0x68(%rbp)
jmp 0xd6e7
decq %rax
movq %rax, -0x58(%rbp)
leal -0x3(%r14), %eax
cmpl $-0x2, %eax
jb 0xd7ee
movq %r12, %r13
movq -0x60(%rbp), %r15
movl -0x58(%rbp), %r12d
subl %r15d, %r12d
incl %r12d
testl %r12d, %r12d
movl $0x0, %eax
cmovlel %eax, %r12d
leal 0x1(%r12), %esi
xorl %edi, %edi
callq *0x25b2d(%rip)          # 0x33288
movq %rax, %rbx
cmpl $0x2, %r14d
jne 0xd777
movq %rbx, %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x16227
movl %eax, %r12d
jmp 0xd78d
movl %r12d, %r14d
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x6320
movb $0x0, (%rbx,%r14)
movq -0x78(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movl %r12d, %edx
callq 0xa654
movq %rax, %rbx
movl -0x50(%rbp), %ecx
movq %r14, %rdi
movq %rax, %rsi
movq %r13, %r12
movq %r13, %rdx
callq 0xb3cf
movq -0x90(%rbp), %rdi
movq %rbx, %rsi
callq 0xd88d
movq -0x88(%rbp), %rbx
pushq $0x2
popq %r13
jmp 0xd7ee
movq %rax, -0x58(%rbp)
movq %rax, -0x60(%rbp)
movl -0x64(%rbp), %eax
movl %eax, -0x50(%rbp)
movabsq $0x100000007, %rax      # imm = 0x100000007
movq %rax, -0x4c(%rbp)
movl -0x48(%rbp), %eax
jmp 0xd5b8
leaq -0x1(%rax), %rdx
movq %rdx, -0x58(%rbp)
incq %rax
movq %rax, -0x70(%rbp)
decl %ecx
movl %ecx, -0x68(%rbp)
jmp 0xd724
movq %rax, -0x58(%rbp)
movl %r13d, %r14d
jmp 0xd731
movl 0x10(%r12), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%r12)
cmpl $0x1, %eax
jg 0xd839
movq -0x78(%rbp), %rdi
movq %r12, %rsi
callq 0x73bf
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%r15), %rbx
movq %r14, 0x8(%r15)
movl 0x20(%rbx), %eax
movl %eax, 0x20(%r15)
movl 0x24(%rbx), %eax
movl %eax, 0x24(%r15)
movq 0x18(%rbx), %rax
movq %rax, 0x18(%r15)
movq (%rbx), %rdi
xorl %esi, %esi
callq *0x25a17(%rip)          # 0x33288
movq 0x25a10(%rip), %rax     # 0x33288
movq %rbx, %rdi
xorl %esi, %esi
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rax