// File: /workspace/github_c_makefile_star2_O0/msteveb[P]autosetup/./jimsh0.c
// Function: JimTraceCallback
static int JimTraceCallback(Jim_Interp *interp, const char *type, int argc, Jim_Obj *const *argv)
{
    JimPanic((interp->traceCmdObj == NULL, "xtrace invoked with no object"));

    int ret;
    Jim_Obj *nargv[7];
    Jim_Obj *traceCmdObj = interp->traceCmdObj;
    Jim_Obj *resultObj = Jim_GetResult(interp);
    ScriptObj *script = NULL;



    if (interp->evalFrame->scriptObj) {
        script = JimGetScript(interp, interp->evalFrame->scriptObj);
    }

    nargv[0] = traceCmdObj;
    nargv[1] = Jim_NewStringObj(interp, type, -1);
    nargv[2] = script ? script->fileNameObj : interp->emptyObj;
    nargv[3] = Jim_NewIntObj(interp, script ? script->linenr : 1);
    nargv[4] = resultObj;
    nargv[5] = argv[0];
    nargv[6] = Jim_NewListObj(interp, argv + 1, argc - 1);


    interp->traceCmdObj = NULL;

    Jim_IncrRefCount(resultObj);
    ret = Jim_EvalObjVector(interp, 7, nargv);
    Jim_DecrRefCount(interp, resultObj);

    if (ret == JIM_OK || ret == JIM_RETURN) {

        interp->traceCmdObj = traceCmdObj;
        Jim_SetEmptyResult(interp);
        ret = JIM_OK;
    }
    else {

        Jim_DecrRefCount(interp, traceCmdObj);
    }
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq 0x1a8(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x70(%rbp)
movq $0x0, -0x78(%rbp)
movq -0x8(%rbp), %rax
movq 0x108(%rax), %rax
cmpq $0x0, 0x30(%rax)
je 0x24cba
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x108(%rax), %rax
movq 0x30(%rax), %rsi
callq 0xd380
movq %rax, -0x78(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7990
movq %rax, -0x58(%rbp)
cmpq $0x0, -0x78(%rbp)
je 0x24cf0
movq -0x78(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x88(%rbp)
jmp 0x24d02
movq -0x8(%rbp), %rax
movq 0x128(%rax), %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x90(%rbp)
cmpq $0x0, -0x78(%rbp)
je 0x24d2e
movq -0x78(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x94(%rbp)
jmp 0x24d3b
movl $0x1, %eax
movl %eax, -0x94(%rbp)
jmp 0x24d3b
movq -0x90(%rbp), %rdi
movl -0x94(%rbp), %eax
movslq %eax, %rsi
callq 0x8d60
movq %rax, -0x48(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
addq $0x8, %rsi
movl -0x14(%rbp), %edx
subl $0x1, %edx
callq 0x7b50
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq $0x0, 0x1a8(%rax)
movq -0x70(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rax)
movq -0x8(%rbp), %rdi
leaq -0x60(%rbp), %rdx
movl $0x7, %esi
callq 0x12aa0
movl %eax, -0x24(%rbp)
movq -0x70(%rbp), %rcx
movl 0x10(%rcx), %eax
addl $-0x1, %eax
movl %eax, 0x10(%rcx)
cmpl $0x0, %eax
jg 0x24dd2
movq -0x8(%rbp), %rdi
movq -0x70(%rbp), %rsi
callq 0x7a10
cmpl $0x0, -0x24(%rbp)
je 0x24dde
cmpl $0x2, -0x24(%rbp)
jne 0x24e42
movq -0x68(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x1a8(%rax)
movq -0x8(%rbp), %rax
movq 0x128(%rax), %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rax)
movq -0x8(%rbp), %rax
movq (%rax), %rcx
movl 0x10(%rcx), %eax
addl $-0x1, %eax
movl %eax, 0x10(%rcx)
cmpl $0x0, %eax
jg 0x24e2e
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq (%rax), %rsi
callq 0x7a10
movq -0x80(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
movl $0x0, -0x24(%rbp)
jmp 0x24e63
movq -0x68(%rbp), %rcx
movl 0x10(%rcx), %eax
addl $-0x1, %eax
movl %eax, 0x10(%rcx)
cmpl $0x0, %eax
jg 0x24e61
movq -0x8(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x7a10
jmp 0x24e63
movl -0x24(%rbp), %eax
addq $0xa0, %rsp
popq %rbp
retq
nop