// File: /workspace/github_c_makefile_star2_O3/msteveb[P]autosetup/./jimsh0.c
// Function: JimInfoFrame
static int JimInfoFrame(Jim_Interp *interp, Jim_Obj *levelObjPtr, Jim_Obj **objPtrPtr)
{
    long level;

    if (Jim_GetLong(interp, levelObjPtr, &level) == JIM_OK) {
        Jim_EvalFrame *frame = JimGetEvalFrameByProcLevel(interp, level);
        if (frame) {
            Jim_Obj *listObj = Jim_NewListObj(interp, NULL, 0);

            Jim_ListAppendElement(interp, listObj, Jim_NewStringObj(interp, "type", -1));
            Jim_ListAppendElement(interp, listObj, Jim_NewStringObj(interp, "source", -1));
            if (frame->scriptObj) {
                ScriptObj *script = JimGetScript(interp, frame->scriptObj);
                Jim_ListAppendElement(interp, listObj, Jim_NewStringObj(interp, "line", -1));
                Jim_ListAppendElement(interp, listObj, Jim_NewIntObj(interp, script->linenr));
                Jim_ListAppendElement(interp, listObj, Jim_NewStringObj(interp, "file", -1));
                Jim_ListAppendElement(interp, listObj, script->fileNameObj);
            }
#ifndef JIM_NO_INTROSPECTION
            {
                Jim_Obj *cmdObj = Jim_NewListObj(interp, frame->argv, frame->argc);

                Jim_ListAppendElement(interp, listObj, Jim_NewStringObj(interp, "cmd", -1));
                Jim_ListAppendElement(interp, listObj, cmdObj);
            }
#endif
            {
                Jim_Obj *procNameObj = JimProcForEvalFrame(interp, frame);
                if (procNameObj) {
                    Jim_ListAppendElement(interp, listObj, Jim_NewStringObj(interp, "proc", -1));
                    Jim_ListAppendElement(interp, listObj, procNameObj);
                 }
            }
            Jim_ListAppendElement(interp, listObj, Jim_NewStringObj(interp, "level", -1));
            Jim_ListAppendElement(interp, listObj, Jim_NewIntObj(interp, interp->framePtr->level - frame->framePtr->level));

            *objPtrPtr = listObj;
            return JIM_OK;
        }
    }
    Jim_SetResultFormatted(interp, "bad level \"%#s\"", levelObjPtr);
    return JIM_ERR;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
leaq 0x10a65(%rip), %rax     # 0x352f0
cmpq %rax, 0x8(%rsi)
je 0x248a9
movq %r14, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0xd6c3
testl %eax, %eax
jne 0x24ac2
movl 0x18(%r15), %esi
movq %r14, %rdi
callq 0x1b792
testq %rax, %rax
je 0x24ac2
movq %rax, %r12
movq %rbx, -0x30(%rbp)
movq %r14, %rdi
callq 0xae38
movq %rax, %r15
leaq 0x10a91(%rip), %rax     # 0x35368
movq %rax, 0x8(%r15)
movq $0x0, (%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r15)
leaq 0x6278(%rip), %rsi      # 0x2ab69
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7508
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x7683
leaq 0x720a(%rip), %rsi      # 0x2bb1d
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7508
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x7683
movq 0x30(%r12), %rsi
testq %rsi, %rsi
je 0x249ca
movq %r14, %rdi
callq 0xb679
movq %rax, %r13
leaq 0x60dd(%rip), %rsi      # 0x2aa2b
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7508
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x7683
movslq 0x20(%r13), %rbx
movq %r14, %rdi
callq 0xae38
leaq 0x10974(%rip), %rcx     # 0x352f0
movq %rcx, 0x8(%rax)
movq $0x0, (%rax)
movq %rbx, 0x18(%rax)
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x7683
leaq 0x6f2f(%rip), %rsi      # 0x2b8cf
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7508
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x7683
movq 0x8(%r13), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x7683
movq 0x20(%r12), %rsi
movl 0x28(%r12), %edx
movq %r14, %rdi
callq 0x762e
movq %rax, %r13
leaq 0x77fc(%rip), %rsi      # 0x2c1e2
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7508
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x7683
movq %r14, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x7683
movq 0x108(%r14), %rdi
movq %r12, %rsi
callq 0x1b8f1
testq %rax, %rax
je 0x24a56
movq %rax, %r13
leaq 0x86f0(%rip), %rsi      # 0x2d11d
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7508
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x7683
movq %r14, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x7683
leaq 0x8035(%rip), %rsi      # 0x2ca92
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7508
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x7683
movq 0x58(%r14), %rax
movslq 0x8(%rax), %rbx
movq (%r12), %rax
movslq 0x8(%rax), %rax
subq %rax, %rbx
movq %r14, %rdi
callq 0xae38
leaq 0x10856(%rip), %rcx     # 0x352f0
movq %rcx, 0x8(%rax)
movq $0x0, (%rax)
movq %rbx, 0x18(%rax)
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x7683
movq -0x30(%rbp), %rax
movq %r15, (%rax)
xorl %eax, %eax
jmp 0x24adb
leaq 0x7fcf(%rip), %rsi      # 0x2ca98
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x6923
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq