// File: /workspace/github_c_makefile_star2_O3/msteveb[P]autosetup/./jimsh0.c
// Function: Jim_StringCoreCommand
static int Jim_StringCoreCommand(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
{
    int len;
    int opt_case = 1;
    int option;
    static const char * const nocase_options[] = {
        "-nocase", NULL
    };
    static const char * const nocase_length_options[] = {
        "-nocase", "-length", NULL
    };

    enum {
        OPT_BYTELENGTH,
        OPT_BYTERANGE,
        OPT_CAT,
        OPT_COMPARE,
        OPT_EQUAL,
        OPT_FIRST,
        OPT_INDEX,
        OPT_IS,
        OPT_LAST,
        OPT_LENGTH,
        OPT_MAP,
        OPT_MATCH,
        OPT_RANGE,
        OPT_REPEAT,
        OPT_REPLACE,
        OPT_REVERSE,
        OPT_TOLOWER,
        OPT_TOTITLE,
        OPT_TOUPPER,
        OPT_TRIM,
        OPT_TRIMLEFT,
        OPT_TRIMRIGHT,
        OPT_COUNT
    };
    static const jim_subcmd_type cmds[OPT_COUNT + 1] = {
        JIM_DEF_SUBCMD("bytelength", "string", 1, 1),
        JIM_DEF_SUBCMD("byterange", "string first last", 3, 3),
        JIM_DEF_SUBCMD("cat", "?...?", 0, -1),
        JIM_DEF_SUBCMD("compare", "?-nocase? ?-length int? string1 string2", 2, 5),
        JIM_DEF_SUBCMD("equal", "?-nocase? ?-length int? string1 string2", 2, 5),
        JIM_DEF_SUBCMD("first", "subString string ?index?", 2, 3),
        JIM_DEF_SUBCMD("index", "string index", 2, 2),
        JIM_DEF_SUBCMD("is", "class ?-strict? str", 2, 3),
        JIM_DEF_SUBCMD("last", "subString string ?index?", 2, 3),
        JIM_DEF_SUBCMD("length","string", 1, 1),
        JIM_DEF_SUBCMD("map", "?-nocase? mapList string", 2, 3),
        JIM_DEF_SUBCMD("match", "?-nocase? pattern string", 2, 3),
        JIM_DEF_SUBCMD("range", "string first last", 3, 3),
        JIM_DEF_SUBCMD("repeat", "string count", 2, 2),
        JIM_DEF_SUBCMD("replace", "string first last ?string?", 3, 4),
        JIM_DEF_SUBCMD("reverse", "string", 1, 1),
        JIM_DEF_SUBCMD("tolower", "string", 1, 1),
        JIM_DEF_SUBCMD("totitle", "string", 1, 1),
        JIM_DEF_SUBCMD("toupper", "string", 1, 1),
        JIM_DEF_SUBCMD("trim", "string ?trimchars?", 1, 2),
        JIM_DEF_SUBCMD("trimleft", "string ?trimchars?", 1, 2),
        JIM_DEF_SUBCMD("trimright", "string ?trimchars?", 1, 2),
        { NULL }
    };
    const jim_subcmd_type *ct = Jim_ParseSubCmd(interp, cmds, argc, argv);
    if (!ct) {
        return JIM_ERR;
    }
    if (ct->function) {

        return ct->function(interp, argc, argv);
    }

    option = ct - cmds;

    switch (option) {
        case OPT_LENGTH:
            Jim_SetResultInt(interp, Jim_Utf8Length(interp, argv[2]));
            return JIM_OK;

        case OPT_BYTELENGTH:
            Jim_SetResultInt(interp, Jim_Length(argv[2]));
            return JIM_OK;

        case OPT_CAT:{
                Jim_Obj *objPtr;
                if (argc == 3) {

                    objPtr = argv[2];
                }
                else {
                    int i;

                    objPtr = Jim_NewStringObj(interp, "", 0);

                    for (i = 2; i < argc; i++) {
                        Jim_AppendObj(interp, objPtr, argv[i]);
                    }
                }
                Jim_SetResult(interp, objPtr);
                return JIM_OK;
            }

        case OPT_COMPARE:
        case OPT_EQUAL:
            {

                long opt_length = -1;
                int n = argc - 4;
                int i = 2;
                while (n > 0) {
                    int subopt;
                    if (Jim_GetEnum(interp, argv[i++], nocase_length_options, &subopt, NULL,
                            JIM_ENUM_ABBREV) != JIM_OK) {
badcompareargs:
                        Jim_SubCmdArgError(interp, ct, argv[0]);
                        return JIM_ERR;
                    }
                    if (subopt == 0) {

                        opt_case = 0;
                        n--;
                    }
                    else {

                        if (n < 2) {
                            goto badcompareargs;
                        }
                        if (Jim_GetLong(interp, argv[i++], &opt_length) != JIM_OK) {
                            return JIM_ERR;
                        }
                        n -= 2;
                    }
                }
                if (n) {
                    goto badcompareargs;
                }
                argv += argc - 2;
                if (opt_length < 0 && option != OPT_COMPARE && opt_case) {

                    Jim_SetResultBool(interp, Jim_StringEqObj(argv[0], argv[1]));
                }
                else {
                    const char *s1 = Jim_String(argv[0]);
                    int l1 = Jim_Utf8Length(interp, argv[0]);
                    const char *s2 = Jim_String(argv[1]);
                    int l2 = Jim_Utf8Length(interp, argv[1]);
                    if (opt_length >= 0) {
                        if (l1 > opt_length) {
                            l1 = opt_length;
                        }
                        if (l2 > opt_length) {
                            l2 = opt_length;
                        }
                    }
                    n = JimStringCompareUtf8(s1, l1, s2, l2, !opt_case);
                    Jim_SetResultInt(interp, option == OPT_COMPARE ? n : n == 0);
                }
                return JIM_OK;
            }

        case OPT_MATCH:
            if (argc != 4 &&
                (argc != 5 ||
                    Jim_GetEnum(interp, argv[2], nocase_options, &opt_case, NULL,
                        JIM_ENUM_ABBREV) != JIM_OK)) {
                Jim_WrongNumArgs(interp, 2, argv, "?-nocase? pattern string");
                return JIM_ERR;
            }
            if (opt_case == 0) {
                argv++;
            }
            Jim_SetResultBool(interp, Jim_StringMatchObj(interp, argv[2], argv[3], !opt_case));
            return JIM_OK;

        case OPT_MAP:{
                Jim_Obj *objPtr;

                if (argc != 4 &&
                    (argc != 5 ||
                        Jim_GetEnum(interp, argv[2], nocase_options, &opt_case, NULL,
                            JIM_ENUM_ABBREV) != JIM_OK)) {
                    Jim_WrongNumArgs(interp, 2, argv, "?-nocase? mapList string");
                    return JIM_ERR;
                }

                if (opt_case == 0) {
                    argv++;
                }
                objPtr = JimStringMap(interp, argv[2], argv[3], !opt_case);
                if (objPtr == NULL) {
                    return JIM_ERR;
                }
                Jim_SetResult(interp, objPtr);
                return JIM_OK;
            }

        case OPT_RANGE:{
                Jim_Obj *objPtr = Jim_StringRangeObj(interp, argv[2], argv[3], argv[4]);
                if (objPtr == NULL) {
                    return JIM_ERR;
                }
                Jim_SetResult(interp, objPtr);
                return JIM_OK;
            }

        case OPT_BYTERANGE:{
                Jim_Obj *objPtr = Jim_StringByteRangeObj(interp, argv[2], argv[3], argv[4]);
                if (objPtr == NULL) {
                    return JIM_ERR;
                }
                Jim_SetResult(interp, objPtr);
                return JIM_OK;
            }

        case OPT_REPLACE:{
                Jim_Obj *objPtr = JimStringReplaceObj(interp, argv[2], argv[3], argv[4], argc == 6 ? argv[5] : NULL);
                if (objPtr == NULL) {
                    return JIM_ERR;
                }
                Jim_SetResult(interp, objPtr);
                return JIM_OK;
            }


        case OPT_REPEAT:{
                Jim_Obj *objPtr;
                jim_wide count;

                if (Jim_GetWideExpr(interp, argv[3], &count) != JIM_OK) {
                    return JIM_ERR;
                }
                objPtr = Jim_NewStringObj(interp, "", 0);
                if (count > 0) {
                    while (count--) {
                        Jim_AppendObj(interp, objPtr, argv[2]);
                    }
                }
                Jim_SetResult(interp, objPtr);
                return JIM_OK;
            }

        case OPT_REVERSE:{
                char *buf, *p;
                const char *str;
                int i;

                str = Jim_GetString(argv[2], &len);
                buf = Jim_Alloc(len + 1);
                assert(buf);
                p = buf + len;
                *p = 0;
                for (i = 0; i < len; ) {
                    int c;
                    int l = utf8_tounicode(str, &c);
                    memcpy(p - l, str, l);
                    p -= l;
                    i += l;
                    str += l;
                }
                Jim_SetResult(interp, Jim_NewStringObjNoAlloc(interp, buf, len));
                return JIM_OK;
            }

        case OPT_INDEX:{
                int idx;
                const char *str;

                if (Jim_GetIndex(interp, argv[3], &idx) != JIM_OK) {
                    return JIM_ERR;
                }
                str = Jim_String(argv[2]);
                len = Jim_Utf8Length(interp, argv[2]);
                idx = JimRelToAbsIndex(len, idx);
                if (idx < 0 || idx >= len || str == NULL) {
                    Jim_SetResultString(interp, "", 0);
                }
                else if (len == Jim_Length(argv[2])) {

                    Jim_SetResultString(interp, str + idx, 1);
                }
                else {
                    int c;
                    int i = utf8_index(str, idx);
                    Jim_SetResultString(interp, str + i, utf8_tounicode(str + i, &c));
                }
                return JIM_OK;
            }

        case OPT_FIRST:
        case OPT_LAST:{
                int idx = 0, l1, l2;
                const char *s1, *s2;

                s1 = Jim_String(argv[2]);
                s2 = Jim_String(argv[3]);
                l1 = Jim_Utf8Length(interp, argv[2]);
                l2 = Jim_Utf8Length(interp, argv[3]);
                if (argc == 5) {
                    if (Jim_GetIndex(interp, argv[4], &idx) != JIM_OK) {
                        return JIM_ERR;
                    }
                    idx = JimRelToAbsIndex(l2, idx);
                    if (idx < 0) {
                        idx = 0;
                    }
                }
                else if (option == OPT_LAST) {
                    idx = l2;
                }
                if (option == OPT_FIRST) {
                    Jim_SetResultInt(interp, JimStringFirst(s1, l1, s2, l2, idx));
                }
                else {
#ifdef JIM_UTF8
                    Jim_SetResultInt(interp, JimStringLastUtf8(s1, l1, s2, idx));
#else
                    Jim_SetResultInt(interp, JimStringLast(s1, l1, s2, idx));
#endif
                }
                return JIM_OK;
            }

        case OPT_TRIM:
                Jim_SetResult(interp, JimStringTrim(interp, argv[2], argc == 4 ? argv[3] : NULL));
                return JIM_OK;
        case OPT_TRIMLEFT:
                Jim_SetResult(interp, JimStringTrimLeft(interp, argv[2], argc == 4 ? argv[3] : NULL));
                return JIM_OK;
        case OPT_TRIMRIGHT:{
                Jim_SetResult(interp, JimStringTrimRight(interp, argv[2], argc == 4 ? argv[3] : NULL));
                return JIM_OK;
        }

        case OPT_TOLOWER:
                Jim_SetResult(interp, JimStringToLower(interp, argv[2]));
                return JIM_OK;
        case OPT_TOUPPER:
                Jim_SetResult(interp, JimStringToUpper(interp, argv[2]));
                return JIM_OK;
        case OPT_TOTITLE:
                Jim_SetResult(interp, JimStringToTitle(interp, argv[2]));
                return JIM_OK;

        case OPT_IS:
            if (argc == 5 && !Jim_CompareStringImmediate(interp, argv[3], "-strict")) {
                Jim_SubCmdArgError(interp, ct, argv[0]);
                return JIM_ERR;
            }
            return JimStringIs(interp, argv[argc - 1], argv[2], argc == 5);
    }
    return JIM_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %rcx
movl %esi, %r12d
movq %rdi, %r14
movl $0x1, -0x40(%rbp)
leaq 0x17f1d(%rip), %rbx     # 0x36360
movq %rbx, %rsi
movl %r12d, %edx
movq %rcx, -0x30(%rbp)
callq 0x11a8f
movl $0x1, %r15d
testq %rax, %rax
je 0x1ee0e
movq %rax, %r13
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x1e487
movq %r14, %rdi
movl %r12d, %esi
movq -0x30(%rbp), %rdx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rax
movq %r13, %rax
subq %rbx, %rax
shrq $0x5, %rax
cmpl $0x15, %eax
ja 0x1ee0b
movq %rax, %rdx
movl %edx, %eax
leaq 0x9012(%rip), %rcx      # 0x274b8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
movq 0x20(%rax), %rcx
movq %r14, %rbx
movq %r14, %rdi
callq 0xb432
jmp 0x1ec91
movq %rdx, -0x50(%rbp)
movl $0x0, -0x48(%rbp)
movq -0x30(%rbp), %r15
movq 0x10(%r15), %rbx
movq (%rbx), %rax
testq %rax, %rax
jne 0x1e4f7
movq 0x8(%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movq (%rbx), %rax
movq %rax, -0x38(%rbp)
movq 0x18(%r15), %rbx
movq (%rbx), %r13
testq %r13, %r13
jne 0x1e514
movq 0x8(%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movq (%rbx), %r13
movq 0x10(%r15), %rbx
cmpq $0x0, (%rbx)
jne 0x1e528
movq 0x8(%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movl 0x14(%rbx), %esi
movq 0x18(%r15), %rbx
cmpq $0x0, (%rbx)
jne 0x1e545
movq 0x8(%rbx), %rax
movq %rbx, %rdi
movl %esi, %r15d
callq *0x18(%rax)
movl %r15d, %esi
movl 0x14(%rbx), %ecx
cmpl $0x5, %r12d
jne 0x1e77d
movl %ecx, %r12d
movl %esi, %ebx
movq -0x30(%rbp), %rax
movq 0x20(%rax), %rsi
leaq -0x48(%rbp), %rdx
movq %r14, %rdi
callq 0x80ce
movl $0x1, %r15d
testl %eax, %eax
jne 0x1ee0e
movl -0x48(%rbp), %eax
xorl %edx, %edx
cmpl $0x80000002, %eax       # imm = 0x80000002
movl $0x0, %r8d
movl %r12d, %ecx
cmovael %r12d, %r8d
addl %eax, %r8d
testl %r8d, %r8d
cmovlel %edx, %r8d
cmpl $0x5, -0x50(%rbp)
movl %ebx, %esi
jne 0x1e795
jmp 0x1ea72
movq %rdx, -0x50(%rbp)
movq %r14, -0x38(%rbp)
leal -0x4(%r12), %r15d
cmpl $0x5, %r12d
jl 0x1e905
movl $0x1, -0x3c(%rbp)
movq $-0x1, %rbx
movl $0x2, %r14d
movslq %r14d, %rax
movq -0x30(%rbp), %rcx
movq (%rcx,%rax,8), %rsi
movq -0x38(%rbp), %rdi
leaq 0x17d54(%rip), %rdx     # 0x36340
leaq -0x5c(%rbp), %rcx
xorl %r8d, %r8d
movl $0x2, %r9d
callq 0x7eac
testl %eax, %eax
jne 0x1e91c
leal 0x1(%r14), %eax
cmpl $0x0, -0x5c(%rbp)
je 0x1e66a
cmpl $0x1, %r15d
je 0x1e91c
movl %r15d, -0x58(%rbp)
cltq
movq -0x30(%rbp), %rcx
movq (%rcx,%rax,8), %rbx
leaq 0x16cc1(%rip), %rax     # 0x352f0
cmpq %rax, 0x8(%rbx)
je 0x1e654
movl $0x1, %r15d
movq -0x38(%rbp), %rdi
movq %rbx, %rsi
movl $0x1, %edx
callq 0xd6c3
testl %eax, %eax
jne 0x1ee0e
movq 0x18(%rbx), %rbx
addl $0x2, %r14d
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
movl %r14d, %eax
movl -0x58(%rbp), %r15d
jmp 0x1e676
movl $0x0, -0x3c(%rbp)
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl %eax, %r14d
addl %ecx, %r15d
jg 0x1e5d6
jmp 0x1e913
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rbx
cmpq $0x0, (%rbx)
jne 0x1e69f
movq 0x8(%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movslq 0x14(%rbx), %rbx
jmp 0x1edc7
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0x237bc
jmp 0x1eb41
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
movq 0x20(%rax), %rcx
cmpl $0x6, %r12d
jne 0x1ea91
movq 0x28(%rax), %r8
jmp 0x1ea94
cmpl $0x4, %r12d
je 0x1ebe3
cmpl $0x5, %r12d
movq -0x30(%rbp), %rbx
jne 0x1e71c
movq 0x10(%rbx), %rsi
leaq 0x17c31(%rip), %rdx     # 0x36330
leaq -0x40(%rbp), %rcx
movq %r14, %rdi
xorl %r8d, %r8d
movl $0x2, %r9d
callq 0x7eac
testl %eax, %eax
je 0x1ec6c
leaq 0xe4af(%rip), %rcx      # 0x2cbd2
jmp 0x1e768
cmpl $0x4, %r12d
je 0x1ebf0
cmpl $0x5, %r12d
movq -0x30(%rbp), %rbx
jne 0x1e761
movq 0x10(%rbx), %rsi
leaq 0x17bec(%rip), %rdx     # 0x36330
leaq -0x40(%rbp), %rcx
movq %r14, %rdi
xorl %r8d, %r8d
movl $0x2, %r9d
callq 0x7eac
testl %eax, %eax
je 0x1ecc1
leaq 0xe483(%rip), %rcx      # 0x2cbeb
movq %r14, %rdi
movl $0x2, %esi
movq %rbx, %rdx
callq 0x7446
jmp 0x1ee0e
xorl %r8d, %r8d
movq -0x50(%rbp), %rax
cmpl $0x5, %eax
je 0x1ea72
cmpl $0x8, %eax
jne 0x1e795
movl %ecx, %r8d
movq -0x38(%rbp), %rdi
movq %r13, %rdx
movl %r8d, %ecx
callq 0x234db
movslq %eax, %rbx
jmp 0x1edc7
cmpl $0x3, %r12d
jne 0x1eaa4
movq -0x30(%rbp), %rax
movq 0x10(%rax), %r15
jmp 0x1eafa
movq %r14, %r12
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rbx
movq (%rbx), %r15
testq %r15, %r15
jne 0x1e7e3
movq 0x8(%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movq (%rbx), %r15
movslq 0x14(%rbx), %r14
leaq 0x1(%r14), %rsi
xorl %edi, %edi
callq *0x18a95(%rip)          # 0x37288
testq %rax, %rax
je 0x1ee32
movb $0x0, (%rax,%r14)
testl %r14d, %r14d
jle 0x1e823
leaq (%r14,%rax), %rcx
decq %rcx
movl %r14d, %edx
xorl %esi, %esi
movb (%r15,%rsi), %dil
movb %dil, (%rcx)
decq %rcx
incq %rsi
cmpl %esi, %edx
jne 0x1e812
movq %r12, %rdi
movq %rax, %rsi
movl %r14d, %edx
movq %r12, %r14
callq 0xaee8
movq %rax, %rbx
incl 0x10(%rax)
movq (%r12), %rsi
jmp 0x1eb4a
movq -0x30(%rbp), %r13
movq 0x18(%r13), %rsi
leaq -0x48(%rbp), %rdx
movq %r14, %rdi
callq 0x80ce
testl %eax, %eax
jne 0x1ee0e
movq 0x10(%r13), %r15
movq (%r15), %rbx
testq %rbx, %rbx
jne 0x1e886
movq 0x8(%r15), %rax
movq %r15, %rdi
callq *0x18(%rax)
movq (%r15), %rbx
movq 0x10(%r13), %r15
cmpq $0x0, (%r15)
je 0x1ee20
movq %r14, %r12
movl 0x14(%r15), %eax
movl -0x48(%rbp), %ecx
xorl %r14d, %r14d
cmpl $0x80000002, %ecx       # imm = 0x80000002
cmovael %eax, %r14d
addl %ecx, %r14d
js 0x1e8b9
cmpl %eax, %r14d
setge %al
testq %rbx, %rbx
sete %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x1ece7
movq %r12, %rdi
callq 0xae38
movq %rax, %r14
leaq 0x189cd(%rip), %rax     # 0x37298
movq %rax, (%r14)
movl $0x0, 0x14(%r14)
movq $0x0, 0x8(%r14)
incl 0x10(%r14)
movq (%r12), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x2, %eax
jge 0x1e8fc
movq %r12, %rdi
callq 0x758c
movq %r14, (%r12)
jmp 0x1ee0b
movq $-0x1, %rbx
movl $0x1, -0x3c(%rbp)
testl %r15d, %r15d
je 0x1eb68
movq -0x30(%rbp), %rax
movq (%rax), %rdx
movq -0x38(%rbp), %rdi
movq %r13, %rsi
callq 0x1198a
movl $0x1, %r15d
jmp 0x1ee0e
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0x238e2
jmp 0x1eb41
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rsi
cmpl $0x4, %r12d
jne 0x1eb1f
movq 0x18(%rax), %rdx
jmp 0x1eb21
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rsi
cmpl $0x4, %r12d
jne 0x1eb2b
movq 0x18(%rax), %rdx
jmp 0x1eb2d
cmpl $0x5, %r12d
jne 0x1e9aa
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rsi
leaq 0xe318(%rip), %rdx      # 0x2ccb2
movq %r14, %rdi
callq 0x73c6
testl %eax, %eax
je 0x1ec55
xorl %ecx, %ecx
cmpl $0x5, %r12d
sete %cl
movslq %r12d, %rax
movq -0x30(%rbp), %rdx
movq -0x8(%rdx,%rax,8), %rsi
movq 0x10(%rdx), %rdx
movq %r14, %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x23983
movq -0x30(%rbp), %r12
movq 0x18(%r12), %rsi
leaq -0x48(%rbp), %rdx
movq %r14, %rdi
callq 0xd7f8
testl %eax, %eax
jne 0x1ee0e
movq %r14, %rdi
callq 0xae38
movq %rax, %r15
leaq 0x18890(%rip), %rax     # 0x37298
movq %rax, (%r15)
movl $0x0, 0x14(%r15)
movq $0x0, 0x8(%r15)
movq -0x48(%rbp), %rbx
testq %rbx, %rbx
jle 0x1eafa
movq 0x10(%r12), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0xaf90
decq %rbx
jne 0x1ea28
jmp 0x1eafa
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0x2384f
jmp 0x1eb41
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rsi
cmpl $0x4, %r12d
jne 0x1eb37
movq 0x18(%rax), %rdx
jmp 0x1eb39
movq -0x38(%rbp), %rdi
movq %r13, %rdx
callq 0x23469
movslq %eax, %rbx
movq %r14, %rdi
callq 0xae38
movq %r14, %r15
jmp 0x1ebac
xorl %r8d, %r8d
movq %r14, %rbx
movq %r14, %rdi
callq 0xb56f
jmp 0x1ec91
movq %r14, %rdi
callq 0xae38
movq %rax, %r15
leaq 0x187e2(%rip), %rax     # 0x37298
movq %rax, (%r15)
movl $0x0, 0x14(%r15)
movq $0x0, 0x8(%r15)
cmpl $0x3, %r12d
movq -0x30(%rbp), %r13
jl 0x1eafa
movl %r12d, %ebx
movq %r14, %r12
movl $0x2, %r14d
movq (%r13,%r14,8), %rdx
movq %r12, %rdi
movq %r15, %rsi
callq 0xaf90
incq %r14
cmpq %r14, %rbx
jne 0x1eadf
movq %r12, %r14
incl 0x10(%r15)
movq (%r14), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x1eb17
movq %r14, %rdi
callq 0x758c
movq %r15, (%r14)
jmp 0x1ee0b
xorl %edx, %edx
movq %r14, %rdi
callq 0x235af
jmp 0x1eb41
xorl %edx, %edx
movq %r14, %rdi
callq 0x23685
jmp 0x1eb41
xorl %edx, %edx
movq %r14, %rdi
callq 0x23561
movq %rax, %rbx
incl 0x10(%rax)
movq (%r14), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x1eb60
movq %r14, %rdi
callq 0x758c
movq %rbx, (%r14)
jmp 0x1ee0b
movslq %r12d, %r14
testq %rbx, %rbx
sets %al
cmpl $0x3, -0x50(%rbp)
setne %cl
cmpl $0x0, -0x3c(%rbp)
setne %dl
andb %al, %cl
andb %dl, %cl
movq -0x30(%rbp), %r13
movq -0x10(%r13,%r14,8), %r12
cmpb $0x1, %cl
jne 0x1ebfd
movq -0x8(%r13,%r14,8), %rsi
movq %r12, %rdi
callq 0xb096
movl %eax, %ebx
movq -0x38(%rbp), %r15
movq %r15, %rdi
callq 0xae38
movq %rax, %r14
leaq 0x1673a(%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 $0x2, %eax
jl 0x1ee00
jmp 0x1ee08
xorl %ecx, %ecx
xorl %eax, %eax
movq -0x30(%rbp), %rbx
jmp 0x1ec7c
xorl %ecx, %ecx
xorl %eax, %eax
movq -0x30(%rbp), %rbx
jmp 0x1ecd1
movq (%r12), %rdi
testq %rdi, %rdi
jne 0x1ec32
movq 0x8(%r12), %rax
movq %r12, %rdi
callq *0x18(%rax)
movq (%r12), %rdi
movq -0x10(%r13,%r14,8), %r12
cmpq $0x0, (%r12)
jne 0x1ec32
movq 0x8(%r12), %rax
movq %rdi, %r15
movq %r12, %rdi
callq *0x18(%rax)
movq %r15, %rdi
movslq 0x14(%r12), %r15
movq %r13, %r12
movq -0x8(%r13,%r14,8), %r13
movq (%r13), %rdx
testq %rdx, %rdx
je 0x1ed4f
movq -0x38(%rbp), %r14
jmp 0x1ed85
movq -0x30(%rbp), %rax
movq (%rax), %rdx
movq %r14, %rdi
movq %r13, %rsi
callq 0x1198a
jmp 0x1ee0e
xorl %ecx, %ecx
cmpl $0x0, -0x40(%rbp)
sete %cl
leal (,%rcx,8), %eax
movq 0x10(%rbx,%rax), %rsi
movq 0x18(%rbx,%rax), %rdx
movq %r14, %rbx
movq %r14, %rdi
callq 0x2323f
testq %rax, %rax
je 0x1ee0e
movq %rax, %r14
incl 0x10(%rax)
movq (%rbx), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x1ecb9
movq %rbx, %rdi
callq 0x758c
movq %r14, (%rbx)
jmp 0x1ee0b
xorl %ecx, %ecx
cmpl $0x0, -0x40(%rbp)
sete %cl
leal (,%rcx,8), %eax
movq 0x10(%rbx,%rax), %rsi
movq 0x18(%rbx,%rax), %rdx
callq 0xb104
movl %eax, %ebx
jmp 0x1edc7
movq 0x10(%r13), %rdi
cmpq $0x0, (%rdi)
jne 0x1ecf8
movq 0x8(%rdi), %rax
callq *0x18(%rax)
movl %r14d, %r15d
movq %r12, %rdi
callq 0xae38
movq %rax, %r14
movl $0x2, %esi
xorl %edi, %edi
callq *0x18575(%rip)          # 0x37288
movb (%rbx,%r15), %cl
movb %cl, (%rax)
movb $0x0, 0x1(%rax)
movq %rax, (%r14)
movl $0x1, 0x14(%r14)
movq $0x0, 0x8(%r14)
incl 0x10(%r14)
movq (%r12), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jle 0x1e8f4
jmp 0x1e8fc
movq %rdi, -0x58(%rbp)
movq 0x8(%r13), %rax
movq %r13, %rdi
callq *0x18(%rax)
movq (%r13), %rdx
movq -0x8(%r12,%r14,8), %r13
cmpq $0x0, (%r13)
jne 0x1ed7d
movq 0x8(%r13), %rax
movq %r13, %rdi
movq %rdx, %r14
callq *0x18(%rax)
movq %r14, %rdx
movq -0x38(%rbp), %r14
movq -0x58(%rbp), %rdi
movl 0x14(%r13), %eax
cltq
cmpq %rax, %rbx
movl %eax, %ecx
cmovll %ebx, %ecx
cmpq %r15, %rbx
movl %r15d, %esi
cmovll %ebx, %esi
testq %rbx, %rbx
cmovsl %eax, %ecx
cmovsl %r15d, %esi
xorl %r8d, %r8d
cmpl $0x0, -0x3c(%rbp)
sete %r8b
callq 0xb391
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
cmpl $0x3, -0x50(%rbp)
cmovel %eax, %ecx
movslq %ecx, %rbx
movq %r14, %rdi
callq 0xae38
movq %r14, %r15
movq %rax, %r14
leaq 0x16514(%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 0x1ee08
movq %r15, %rdi
callq 0x758c
movq %r14, (%r15)
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %r12
movq 0x8(%r15), %rax
movq %r15, %rdi
callq *0x18(%rax)
jmp 0x1e889
leaq 0xde36(%rip), %rdi      # 0x2cc6f
leaq 0xbd6b(%rip), %rsi      # 0x2abab
leaq 0xde2c(%rip), %rcx      # 0x2cc73
movl $0x4c38, %edx           # imm = 0x4C38
callq 0x6220