// File: /workspace/github_c_makefile_star2_O3/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, -0x3c(%rbp)
leal -0x1(%rsi), %r12d
cmpl $0x3, %esi
jl 0x1e18b
movq %rsi, -0x48(%rbp)
movl $0x1, %r15d
xorl %edx, %edx
movq $0x0, -0x30(%rbp)
movl $0x1, %eax
movq %rax, -0x38(%rbp)
movq %rdx, %r13
movq (%r14,%r15,8), %rsi
movq %rbx, %rdi
leaq 0xdd42(%rip), %rdx      # 0x2bde1
callq 0x73c6
testl %eax, %eax
je 0x1e0c9
movq 0x8(%r14,%r15,8), %rsi
movq %rbx, %rdi
leaq -0x3c(%rbp), %rdx
callq 0xfa93
testl %eax, %eax
movq %r13, %rdx
je 0x1e174
jmp 0x1e297
movq (%r14,%r15,8), %rsi
movq %rbx, %rdi
leaq 0xe9a4(%rip), %rdx      # 0x2ca7b
callq 0x73c6
testl %eax, %eax
je 0x1e0f1
movq 0x8(%r14,%r15,8), %rax
movq %rax, -0x30(%rbp)
movq %r13, %rdx
jmp 0x1e174
movq (%r14,%r15,8), %rsi
movq %rbx, %rdi
leaq 0xe987(%rip), %rdx      # 0x2ca86
callq 0x73c6
testl %eax, %eax
je 0x1e10f
movq 0x8(%r14,%r15,8), %rdx
jmp 0x1e174
movq (%r14,%r15,8), %rsi
movq %rbx, %rdi
leaq 0xe974(%rip), %rdx      # 0x2ca91
callq 0x73c6
testl %eax, %eax
je 0x1e2ab
movq 0x8(%r14,%r15,8), %rcx
leaq 0x171ba(%rip), %rax     # 0x352f0
cmpq %rax, 0x8(%rcx)
movq %r13, %rdx
je 0x1e163
movq %rbx, %rdi
movq %rcx, -0x38(%rbp)
movq -0x38(%rbp), %rsi
movl $0x1, %edx
callq 0xd6c3
movq -0x38(%rbp), %rcx
movq %r13, %rdx
testl %eax, %eax
jne 0x1e281
movq 0x18(%rcx), %rcx
movq %rcx, -0x38(%rbp)
testq %rcx, %rcx
js 0x1e281
addq $0x2, %r15
cmpl %r15d, %r12d
jg 0x1e08e
movq -0x30(%rbp), %r8
movq -0x48(%rbp), %rsi
jmp 0x1e19f
movl $0x1, %r15d
movl $0x1, %eax
movq %rax, -0x38(%rbp)
xorl %r8d, %r8d
xorl %edx, %edx
cmpl %r12d, %r15d
sete %al
cmpl %esi, %r15d
sete %cl
orb %al, %cl
jne 0x1e1d4
leaq 0xe8f2(%rip), %rcx      # 0x2caa8
movq %rbx, %rdi
movl $0x1, %esi
movq %r8, -0x30(%rbp)
movq %rdx, %r13
movq %r14, %rdx
callq 0x7446
movq %r13, %rdx
movq -0x30(%rbp), %r8
testq %r8, %r8
setne %al
movl -0x3c(%rbp), %r13d
cmpl $0x1, %r13d
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x1e1ff
movq %r8, %rsi
movq %rbx, %rdi
movq %rdx, -0x30(%rbp)
callq 0x1b8ae
movq -0x30(%rbp), %rdx
cmpl $0x1, %r13d
sete %al
testq %rdx, %rdx
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x1e23a
movq 0x58(%rbx), %rax
movq %rax, -0x30(%rbp)
movq 0x60(%rbx), %rax
movq %rax, 0x58(%rbx)
leaq 0xd765(%rip), %rsi      # 0x2b98f
movq %rbx, %rdi
callq 0xc425
movq -0x30(%rbp), %rax
movq %rax, 0x58(%rbx)
movl %r13d, 0x28(%rbx)
movq -0x38(%rbp), %rax
movl %eax, 0x2c(%rbx)
cmpl %r12d, %r15d
jne 0x1e271
movl %r12d, %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 0x1e26e
movq %rbx, %rdi
callq 0x758c
movq %r14, (%rbx)
cmpq $0x0, -0x38(%rbp)
movl $0x2, %eax
cmovel %r13d, %eax
jmp 0x1e29c
movq 0x8(%r14,%r15,8), %rdx
leaq 0xe80b(%rip), %rsi      # 0x2ca98
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6923
movl $0x1, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, %rdx
jmp 0x1e181