// File: /workspace/github_c_makefile_star2_O1/msteveb[P]autosetup/./jimsh0.c
// Function: Jim_ReturnCoreCommand
static int Jim_ReturnCoreCommand(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
{
    int i;
    Jim_Obj *stackTraceObj = NULL;
    Jim_Obj *errorCodeObj = NULL;
    int returnCode = JIM_OK;
    long level = 1;

    for (i = 1; i < argc - 1; i += 2) {
        if (Jim_CompareStringImmediate(interp, argv[i], "-code")) {
            if (Jim_GetReturnCode(interp, argv[i + 1], &returnCode) == JIM_ERR) {
                return JIM_ERR;
            }
        }
        else if (Jim_CompareStringImmediate(interp, argv[i], "-errorinfo")) {
            stackTraceObj = argv[i + 1];
        }
        else if (Jim_CompareStringImmediate(interp, argv[i], "-errorcode")) {
            errorCodeObj = argv[i + 1];
        }
        else if (Jim_CompareStringImmediate(interp, argv[i], "-level")) {
            if (Jim_GetLong(interp, argv[i + 1], &level) != JIM_OK || level < 0) {
                Jim_SetResultFormatted(interp, "bad level \"%#s\"", argv[i + 1]);
                return JIM_ERR;
            }
        }
        else {
            break;
        }
    }

    if (i != argc - 1 && i != argc) {
        Jim_WrongNumArgs(interp, 1, argv,
            "?-code code? ?-errorinfo stacktrace? ?-level level? ?result?");
    }


    if (stackTraceObj && returnCode == JIM_ERR) {
        JimSetStackTrace(interp, stackTraceObj);
    }

    if (errorCodeObj && returnCode == JIM_ERR) {
        Jim_SetGlobalVariableStr(interp, "errorCode", errorCodeObj);
    }
    interp->returnCode = returnCode;
    interp->returnLevel = level;

    if (i == argc - 1) {
        Jim_SetResult(interp, argv[i]);
    }
    return level == 0 ? returnCode : JIM_RETURN;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r14
movq %rdi, %rbx
movl $0x0, -0x2c(%rbp)
leal -0x1(%rsi), %r12d
cmpl $0x3, %esi
jl 0x1e988
movq %rsi, -0x50(%rbp)
movl $0x1, %r15d
xorl %r13d, %r13d
movq $0x0, -0x40(%rbp)
movl $0x1, %eax
movq %rax, -0x38(%rbp)
movq (%r14,%r15,8), %rsi
movq %rbx, %rdi
leaq 0xe5a2(%rip), %rdx      # 0x2ce3f
callq 0x73d6
testl %eax, %eax
je 0x1e8c4
movq 0x8(%r14,%r15,8), %rsi
movq %rbx, %rdi
leaq -0x2c(%rbp), %rdx
callq 0xfac8
testl %eax, %eax
je 0x1e975
jmp 0x1ea7b
movq (%r14,%r15,8), %rsi
movq %rbx, %rdi
leaq 0xf207(%rip), %rdx      # 0x2dad9
callq 0x73d6
testl %eax, %eax
je 0x1e8e9
movq 0x8(%r14,%r15,8), %rax
movq %rax, -0x40(%rbp)
jmp 0x1e975
movq (%r14,%r15,8), %rsi
movq %rbx, %rdi
leaq 0xf1ed(%rip), %rdx      # 0x2dae4
callq 0x73d6
testl %eax, %eax
je 0x1e907
movq 0x8(%r14,%r15,8), %r13
jmp 0x1e975
movq (%r14,%r15,8), %rsi
movq %rbx, %rdi
leaq 0xf1da(%rip), %rdx      # 0x2daef
callq 0x73d6
testl %eax, %eax
je 0x1e982
movq %r13, -0x48(%rbp)
movq 0x8(%r14,%r15,8), %r13
leaq 0x179b2(%rip), %rax     # 0x362e0
cmpq %rax, 0x8(%r13)
je 0x1e94c
movq %rbx, %rdi
movq %r13, %rsi
movl $0x1, %edx
callq 0xd6d7
testl %eax, %eax
je 0x1e94c
xorl %ecx, %ecx
jmp 0x1e952
movq 0x18(%r13), %rax
movb $0x1, %cl
movq -0x48(%rbp), %r13
testb %cl, %cl
movq -0x38(%rbp), %rcx
cmovneq %rax, %rcx
movq %rcx, -0x38(%rbp)
je 0x1ea65
cmpq $0x0, -0x38(%rbp)
js 0x1ea65
addq $0x2, %r15
cmpl %r15d, %r12d
jg 0x1e88f
movq -0x50(%rbp), %rsi
jmp 0x1e9a2
movl $0x1, %r15d
movl $0x1, %eax
movq %rax, -0x38(%rbp)
movq $0x0, -0x40(%rbp)
xorl %r13d, %r13d
cmpl %r12d, %r15d
sete %al
cmpl %esi, %r15d
sete %cl
orb %al, %cl
jne 0x1e9c9
leaq 0xf14d(%rip), %rcx      # 0x2db06
movq %rbx, %rdi
movl $0x1, %esi
movq %r14, %rdx
callq 0x7454
movq -0x40(%rbp), %rsi
testq %rsi, %rsi
je 0x1e9e0
cmpl $0x1, -0x2c(%rbp)
jne 0x1e9e0
movq %rbx, %rdi
callq 0x1be8f
testq %r13, %r13
je 0x1ea0d
cmpl $0x1, -0x2c(%rbp)
jne 0x1ea0d
movq %r13, %rdx
movq 0x58(%rbx), %r13
movq 0x60(%rbx), %rax
movq %rax, 0x58(%rbx)
leaq 0xdfec(%rip), %rsi      # 0x2c9ed
movq %rbx, %rdi
callq 0xc40a
movq %r13, 0x58(%rbx)
movl -0x2c(%rbp), %r13d
movl %r13d, 0x28(%rbx)
movq -0x38(%rbp), %rax
movl %eax, 0x2c(%rbx)
cmpl %r12d, %r15d
jne 0x1ea48
movl %r15d, %eax
movq (%r14,%rax,8), %r14
incl 0x10(%r14)
movq (%rbx), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x1ea45
movq %rbx, %rdi
callq 0x759a
movq %r14, (%rbx)
cmpq $0x0, -0x38(%rbp)
movl $0x2, %eax
cmovel %r13d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%r14,%r15,8), %rdx
leaq 0xf085(%rip), %rsi      # 0x2daf6
movq %rbx, %rdi
xorl %eax, %eax
callq 0x692d
movl $0x1, %eax
jmp 0x1ea56