// File: /workspace/github_c_makefile_star2_O1/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 0x1125e(%rip), %rax     # 0x362e0
cmpq %rax, 0x8(%rsi)
je 0x250a0
movq %r14, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0xd6d7
testl %eax, %eax
je 0x250a0
xorl %eax, %eax
jmp 0x250a6
movl 0x18(%r15), %esi
movb $0x1, %al
testb %al, %al
je 0x252bf
movq %r14, %rdi
callq 0x1bd78
testq %rax, %rax
je 0x252bf
movq %rax, %r12
movq %rbx, -0x30(%rbp)
movq %r14, %rdi
callq 0xae58
movq %rax, %r15
leaq 0x11280(%rip), %rax     # 0x36358
movq %rax, 0x8(%r15)
movq $0x0, (%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r15)
leaq 0x6acf(%rip), %rsi      # 0x2bbc1
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7516
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x7695
leaq 0x7a67(%rip), %rsi      # 0x2cb7b
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7516
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x7695
movq 0x30(%r12), %rsi
testq %rsi, %rsi
je 0x251cb
movq %r14, %rdi
callq 0xb66b
movq %rax, %r13
leaq 0x6934(%rip), %rsi      # 0x2ba83
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7516
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x7695
movslq 0x20(%r13), %rbx
movq %r14, %rdi
callq 0xae58
leaq 0x11163(%rip), %rcx     # 0x362e0
movq %rcx, 0x8(%rax)
movq $0x0, (%rax)
movq %rbx, 0x18(%rax)
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x7695
leaq 0x778c(%rip), %rsi      # 0x2c92d
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7516
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x7695
movq 0x8(%r13), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x7695
movq 0x20(%r12), %rsi
movl 0x28(%r12), %edx
movq %r14, %rdi
callq 0x7640
movq %rax, %r13
leaq 0x8059(%rip), %rsi      # 0x2d240
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7516
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x7695
movq %r14, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x7695
movq %r14, %rdi
movq %r12, %rsi
callq 0x1bed2
testq %rax, %rax
je 0x25253
movq %rax, %r13
leaq 0x8f55(%rip), %rsi      # 0x2e17f
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7516
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x7695
movq %r14, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x7695
leaq 0x8896(%rip), %rsi      # 0x2daf0
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7516
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x7695
movq 0x58(%r14), %rax
movslq 0x8(%rax), %rbx
movq (%r12), %rax
movslq 0x8(%rax), %rax
subq %rax, %rbx
movq %r14, %rdi
callq 0xae58
leaq 0x11049(%rip), %rcx     # 0x362e0
movq %rcx, 0x8(%rax)
movq $0x0, (%rax)
movq %rbx, 0x18(%rax)
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x7695
movq -0x30(%rbp), %rax
movq %r15, (%rax)
xorl %eax, %eax
jmp 0x252d8
leaq 0x8830(%rip), %rsi      # 0x2daf6
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x692d
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq