// File: /workspace/github_c_makefile_star2_O3/msteveb[P]autosetup/./jimsh0.c
// Function: JimStringIs
static int JimStringIs(Jim_Interp *interp, Jim_Obj *strObjPtr, Jim_Obj *strClass, int strict)
{
    static const char * const strclassnames[] = {
        "integer", "alpha", "alnum", "ascii", "digit",
        "double", "lower", "upper", "space", "xdigit",
        "control", "print", "graph", "punct", "boolean",
        NULL
    };
    enum {
        STR_IS_INTEGER, STR_IS_ALPHA, STR_IS_ALNUM, STR_IS_ASCII, STR_IS_DIGIT,
        STR_IS_DOUBLE, STR_IS_LOWER, STR_IS_UPPER, STR_IS_SPACE, STR_IS_XDIGIT,
        STR_IS_CONTROL, STR_IS_PRINT, STR_IS_GRAPH, STR_IS_PUNCT, STR_IS_BOOLEAN,
    };
    int strclass;
    int len;
    int i;
    const char *str;
    int (*isclassfunc)(int c) = NULL;

    if (Jim_GetEnum(interp, strClass, strclassnames, &strclass, "class", JIM_ERRMSG | JIM_ENUM_ABBREV) != JIM_OK) {
        return JIM_ERR;
    }

    str = Jim_GetString(strObjPtr, &len);
    if (len == 0) {
        Jim_SetResultBool(interp, !strict);
        return JIM_OK;
    }

    switch (strclass) {
        case STR_IS_INTEGER:
            {
                jim_wide w;
                Jim_SetResultBool(interp, JimGetWideNoErr(interp, strObjPtr, &w) == JIM_OK);
                return JIM_OK;
            }

        case STR_IS_DOUBLE:
            {
                double d;
                Jim_SetResultBool(interp, Jim_GetDouble(interp, strObjPtr, &d) == JIM_OK && errno != ERANGE);
                return JIM_OK;
            }

        case STR_IS_BOOLEAN:
            {
                int b;
                Jim_SetResultBool(interp, Jim_GetBoolean(interp, strObjPtr, &b) == JIM_OK);
                return JIM_OK;
            }

        case STR_IS_ALPHA: isclassfunc = isalpha; break;
        case STR_IS_ALNUM: isclassfunc = isalnum; break;
        case STR_IS_ASCII: isclassfunc = jim_isascii; break;
        case STR_IS_DIGIT: isclassfunc = isdigit; break;
        case STR_IS_LOWER: isclassfunc = islower; break;
        case STR_IS_UPPER: isclassfunc = isupper; break;
        case STR_IS_SPACE: isclassfunc = isspace; break;
        case STR_IS_XDIGIT: isclassfunc = isxdigit; break;
        case STR_IS_CONTROL: isclassfunc = iscntrl; break;
        case STR_IS_PRINT: isclassfunc = isprint; break;
        case STR_IS_GRAPH: isclassfunc = isgraph; break;
        case STR_IS_PUNCT: isclassfunc = ispunct; break;
        default:
            return JIM_ERR;
    }

    for (i = 0; i < len; i++) {
        if (!isclassfunc(UCHAR(str[i]))) {
            Jim_SetResultBool(interp, 0);
            return JIM_OK;
        }
    }
    Jim_SetResultBool(interp, 1);
    return JIM_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %r12d
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x12c9c(%rip), %rax     # 0x36640
leaq 0x9377(%rip), %r8       # 0x2cd22
leaq -0x34(%rbp), %rcx
movq %rdx, %rsi
movq %rax, %rdx
movl $0x3, %r9d
callq 0x7eac
movl $0x1, %r14d
testl %eax, %eax
jne 0x23c05
movq %rbx, -0x30(%rbp)
movq (%r15), %r13
testq %r13, %r13
jne 0x239e7
movq 0x8(%r15), %rax
movq %r15, %rdi
callq *0x18(%rax)
movq (%r15), %r13
movl 0x14(%r15), %ebx
testq %rbx, %rbx
je 0x23a7c
movl -0x34(%rbp), %eax
cmpq $0xe, %rax
ja 0x23c05
leaq 0x3bb4(%rip), %rcx      # 0x275bc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x118d8(%rip), %rbx     # 0x352f0
cmpq %rbx, 0x8(%r15)
movq -0x30(%rbp), %r13
je 0x23a36
xorl %r12d, %r12d
movq %r13, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0xd6c3
testl %eax, %eax
jne 0x23a3c
movl $0x1, %r12d
movq %r13, %rdi
callq 0xae38
movq %rax, %r14
movq %rbx, 0x8(%rax)
movq $0x0, (%rax)
movq %r12, 0x18(%rax)
incl 0x10(%rax)
movq (%r13), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x23a73
movq %r13, %rdi
callq 0x758c
movq %r14, (%r13)
jmp 0x23c02
xorl %ebx, %ebx
testl %r12d, %r12d
sete %bl
movq -0x30(%rbp), %r15
movq %r15, %rdi
callq 0xae38
movq %rax, %r14
leaq 0x11856(%rip), %rax     # 0x352f0
movq %rax, 0x8(%r14)
movq $0x0, (%r14)
movq %rbx, 0x18(%r14)
incl 0x10(%r14)
movq (%r15), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x23ac6
movq %r15, %rdi
callq 0x758c
movq %r14, (%r15)
jmp 0x23c02
leaq -0x40(%rbp), %rdx
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe195
movl %eax, %r15d
xorl $0x1, %r15d
movq %rbx, %rdi
callq 0xae38
movq %rax, %r14
leaq 0x117f6(%rip), %rax     # 0x352f0
movq %rax, 0x8(%r14)
movq $0x0, (%r14)
movq %r15, 0x18(%r14)
jmp 0x23be2
movq 0x134bb(%rip), %r14     # 0x36fd0
jmp 0x23b9d
movq 0x13447(%rip), %r14     # 0x36f68
jmp 0x23b9d
movq 0x134c6(%rip), %r14     # 0x36ff0
jmp 0x23b9d
movq 0x134a5(%rip), %r14     # 0x36fd8
jmp 0x23b9d
movq 0x1345c(%rip), %r14     # 0x36f98
jmp 0x23b9d
leaq 0x16d(%rip), %r14       # 0x23cb2
jmp 0x23b9d
movq 0x1347a(%rip), %r14     # 0x36fc8
jmp 0x23b9d
movq 0x13469(%rip), %r14     # 0x36fc0
jmp 0x23b9d
leaq -0x40(%rbp), %rdx
movq -0x30(%rbp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0xe040
testl %eax, %eax
je 0x23c5d
xorl %ebx, %ebx
jmp 0x23c6a
movq 0x1341e(%rip), %r14     # 0x36fa0
jmp 0x23b9d
movq 0x133f5(%rip), %r14     # 0x36f80
jmp 0x23b9d
movq 0x133fc(%rip), %r14     # 0x36f90
jmp 0x23b9d
movq 0x1340b(%rip), %r14     # 0x36fa8
testl %ebx, %ebx
jle 0x23bb9
xorl %r15d, %r15d
movzbl (%r13,%r15), %edi
callq *%r14
testl %eax, %eax
je 0x23c17
incq %r15
cmpq %r15, %rbx
jne 0x23ba4
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
callq 0xae38
movq %rax, %r14
leaq 0x11721(%rip), %rax     # 0x352f0
movq %rax, 0x8(%r14)
movq $0x0, (%r14)
movq $0x1, 0x18(%r14)
incl 0x10(%r14)
movq (%rbx), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x23bff
movq %rbx, %rdi
callq 0x758c
movq %r14, (%rbx)
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
callq 0xae38
movq %rax, %r15
leaq 0x116c3(%rip), %rax     # 0x352f0
movq %rax, 0x8(%r15)
xorl %r14d, %r14d
movq %r14, (%r15)
movq %r14, 0x18(%r15)
incl 0x10(%r15)
movq (%rbx), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x23c58
movq %rbx, %rdi
callq 0x758c
movq %r15, (%rbx)
jmp 0x23c05
callq 0x6080
xorl %ebx, %ebx
cmpl $0x22, (%rax)
setne %bl
movq %r12, %rdi
callq 0xae38
movq %rax, %r14
leaq 0x11674(%rip), %rax     # 0x352f0
movq %rax, 0x8(%r14)
movq $0x0, (%r14)
movq %rbx, 0x18(%r14)
incl 0x10(%r14)
movq (%r12), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x23ca9
movq %r12, %rdi
callq 0x758c
movq %r14, (%r12)
jmp 0x23c02