// File: /workspace/github_c_makefile_star2_O2/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 $0x58, %rsp
movq %rdx, %r15
movl %esi, %r12d
movq %rdi, %r13
movl $0x1, -0x44(%rbp)
leaq 0x16b6a(%rip), %rbx     # 0x32360
movq %rbx, %rsi
movl %r12d, %edx
movq %r15, %rcx
callq 0x10775
pushq $0x1
popq %rcx
testq %rax, %rax
je 0x1c01e
movq %rax, %r14
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x1b835
movq %r13, %rdi
movl %r12d, %esi
movq %r15, %rdx
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rax
movq %r13, -0x30(%rbp)
movq %r14, %r13
subq %rbx, %r13
shrq $0x5, %r13
cmpl $0x15, %r13d
ja 0x1c01c
movl %r13d, %eax
leaq 0x7c01(%rip), %rcx      # 0x23458
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
movslq %r12d, %rbx
jmpq *%rax
movq %rbx, -0x58(%rbp)
leaq -0x38(%rbp), %rax
orq $-0x1, (%rax)
addl $-0x4, %r12d
pushq $0x2
popq %rcx
pushq $0x1
popq %rax
movl %eax, -0x40(%rbp)
movl %ecx, %ebx
testl %r12d, %r12d
jle 0x1bddb
movslq %ebx, %rax
movq (%r15,%rax,8), %rsi
movq -0x30(%rbp), %rdi
leaq 0x16aa7(%rip), %rdx     # 0x32340
leaq -0x6c(%rbp), %rcx
xorl %r8d, %r8d
pushq $0x2
popq %r9
callq 0x7b44
testl %eax, %eax
jne 0x1bde1
leal 0x1(%rbx), %eax
cmpl $0x0, -0x6c(%rbp)
je 0x1b8e9
cmpl $0x1, %r12d
je 0x1bde1
cltq
movq (%r15,%rax,8), %rsi
movq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rdx
callq 0xc8cb
testl %eax, %eax
jne 0x1bdf0
addl $0x2, %ebx
pushq $-0x2
popq %rcx
movl %ebx, %eax
jmp 0x1b8f3
movl $0x0, -0x40(%rbp)
pushq $-0x1
popq %rcx
addl %ecx, %r12d
movl %eax, %ebx
jmp 0x1b87e
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rdx
movq 0x20(%r15), %rcx
movq -0x30(%rbp), %r14
movq %r14, %rdi
callq 0xab6b
jmp 0x1be07
andl $0x0, -0x38(%rbp)
movq 0x10(%r15), %rdi
callq 0x7340
movq %rax, %r14
movq 0x18(%r15), %rdi
callq 0x7340
movq %rax, -0x40(%rbp)
movq 0x10(%r15), %rdi
callq 0xa61a
movl %eax, %ebx
movq 0x18(%r15), %rdi
callq 0xa61a
cmpl $0x5, %r12d
jne 0x1ba68
movl %eax, -0x58(%rbp)
movq 0x20(%r15), %rsi
leaq -0x38(%rbp), %rdx
movq -0x30(%rbp), %r12
movq %r12, %rdi
callq 0x7d46
testl %eax, %eax
jne 0x1bdf0
movl -0x38(%rbp), %ecx
xorl %edx, %edx
cmpl $0x80000002, %ecx       # imm = 0x80000002
movl $0x0, %edi
movl -0x58(%rbp), %eax
cmovael %eax, %edi
addl %ecx, %edi
testl %edi, %edi
cmovlel %edx, %edi
cmpl $0x5, %r13d
jne 0x1ba80
jmp 0x1bf0c
movq 0x10(%r15), %rdi
callq 0xa61a
movslq %eax, %rsi
movq -0x30(%rbp), %r14
movq %r14, %rdi
callq 0x8212
jmp 0x1be6e
movq 0x10(%r15), %rdi
leaq -0x38(%rbp), %rbx
movq %rbx, %rsi
callq 0x7fc7
movq %rax, %r14
movslq (%rbx), %rsi
incq %rsi
xorl %edi, %edi
callq *0x178ad(%rip)          # 0x33288
movq %rax, %rbx
movq %rax, %rdi
jmp 0x1bb78
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rdx
movq 0x20(%r15), %rcx
cmpl $0x6, %r12d
jne 0x1bdf8
movq 0x28(%r15), %r8
jmp 0x1bdfb
cmpl $0x3, %r12d
jne 0x1be14
movq 0x10(%r15), %rbx
movq -0x30(%rbp), %r12
jmp 0x1bd1a
cmpl $0x4, %r12d
je 0x1bef5
cmpl $0x5, %r12d
movq -0x30(%rbp), %r13
jne 0x1ba56
movq 0x10(%r15), %rsi
leaq 0x168f5(%rip), %rdx     # 0x32330
leaq -0x44(%rbp), %rcx
pushq $0x2
popq %r9
movq %r13, %rdi
xorl %r8d, %r8d
callq 0x7b44
testl %eax, %eax
je 0x1c05b
leaq 0xd1c5(%rip), %rcx      # 0x28c22
pushq $0x2
popq %rsi
movq %r13, %rdi
jmp 0x1bd69
xorl %edi, %edi
cmpl $0x5, %r13d
je 0x1bf08
cmpl $0x8, %r13d
movq -0x30(%rbp), %r12
jne 0x1ba80
movl %eax, %edi
pushq $-0x1
popq %rsi
cmpl %edi, %ebx
jg 0x1bff0
testl %ebx, %ebx
je 0x1bff0
testl %edi, %edi
je 0x1bff0
movabsq $-0x100000000, %r13     # imm = 0xFFFFFFFF00000000
movslq %edi, %rsi
movslq %ebx, %rbx
movq %rsi, %r12
shlq $0x20, %r12
addq %r13, %r12
decq -0x40(%rbp)
movq %rsi, %r15
subq $0x1, %r15
jb 0x1bf6b
addq -0x40(%rbp), %rsi
movb (%rsi), %al
cmpb (%r14), %al
jne 0x1bae4
movq %r14, %rdi
movq %rbx, %rdx
callq 0x6390
testl %eax, %eax
je 0x1bfe5
addq %r13, %r12
movq %r15, %rsi
jmp 0x1babc
movq 0x10(%r15), %rdi
leaq -0x38(%rbp), %r14
movq %r14, %rsi
callq 0x7fc7
movq %rax, %rbx
movslq (%r14), %rsi
incq %rsi
xorl %edi, %edi
callq *0x1777b(%rip)          # 0x33288
testq %rax, %rax
je 0x1c3ef
movslq -0x38(%rbp), %rcx
movb $0x0, (%rax,%rcx)
addq %rax, %rcx
decq %rcx
xorl %esi, %esi
movq -0x30(%rbp), %r14
movl -0x38(%rbp), %edx
cmpl %edx, %esi
jge 0x1bdcb
movb (%rbx,%rsi), %dl
movb %dl, (%rcx)
incq %rsi
decq %rcx
jmp 0x1bb2a
movq 0x10(%r15), %rdi
leaq -0x38(%rbp), %rbx
movq %rbx, %rsi
callq 0x7fc7
movq %rax, %r14
movslq (%rbx), %rsi
incq %rsi
xorl %edi, %edi
callq *0x17725(%rip)          # 0x33288
movq %rax, %rbx
movzbl (%r14), %edi
callq 0x60e0
incq %r14
movb %al, (%rbx)
leaq 0x1(%rbx), %rdi
movq %r14, %rsi
xorl %edx, %edx
jmp 0x1bda0
movq 0x18(%r15), %rsi
leaq -0x38(%rbp), %rdx
movq -0x30(%rbp), %r12
movq %r12, %rdi
callq 0x7d46
testl %eax, %eax
jne 0x1bdf0
movq 0x10(%r15), %rdi
callq 0x7340
movq %rax, %rbx
movq 0x10(%r15), %rdi
callq 0xa61a
movl -0x38(%rbp), %ecx
xorl %r14d, %r14d
cmpl $0x80000002, %ecx       # imm = 0x80000002
cmovael %eax, %r14d
addl %ecx, %r14d
js 0x1bbdf
cmpl %eax, %r14d
setge %al
testq %rbx, %rbx
sete %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x1c2b4
leaq 0xda5b(%rip), %rsi      # 0x29641
movq %r12, %rdi
xorl %edx, %edx
callq 0x7363
jmp 0x1c041
cmpl $0x5, %r12d
movq -0x30(%rbp), %r13
jne 0x1bc1a
movq 0x18(%r15), %rsi
leaq 0xd0f8(%rip), %rdx      # 0x28d02
movq %r13, %rdi
callq 0x7223
testl %eax, %eax
je 0x1bfda
movq -0x8(%r15,%rbx,8), %r14
movq 0x10(%r15), %rsi
leaq 0x16a16(%rip), %rdx     # 0x32640
leaq 0xd141(%rip), %r8       # 0x28d72
leaq -0x74(%rbp), %rcx
pushq $0x3
popq %r9
movq %r13, %rdi
callq 0x7b44
pushq $0x1
popq %rcx
testl %eax, %eax
jne 0x1c01e
leaq -0x70(%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x7fc7
cmpl $0x0, (%r15)
je 0x1c2d6
movq %rax, %rbx
movl -0x74(%rbp), %eax
cmpq $0xe, %rax
pushq $0x1
popq %rcx
ja 0x1c01e
leaq 0x7831(%rip), %rcx      # 0x234b0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq -0x38(%rbp), %rdx
movq %r13, %rdi
movq %r14, %rsi
callq 0x1733a
jmp 0x1c2f4
movq 0x10(%r15), %rsi
cmpl $0x4, %r12d
jne 0x1be50
movq 0x18(%r15), %rdx
jmp 0x1be52
movq 0x10(%r15), %rsi
cmpl $0x4, %r12d
jne 0x1be60
movq 0x18(%r15), %rdx
jmp 0x1be62
movq 0x18(%r15), %rsi
leaq -0x38(%rbp), %rdx
movq -0x30(%rbp), %r12
movq %r12, %rdi
callq 0xcace
testl %eax, %eax
jne 0x1bdf0
leaq 0xd954(%rip), %rsi      # 0x29641
movq %r12, %rdi
xorl %edx, %edx
callq 0x7363
movq %rax, %rbx
movq -0x38(%rbp), %r14
testq %r14, %r14
jg 0x1bd14
jmp 0x1bd1a
movq 0x10(%r15), %rdx
movq %r12, %rdi
movq %rbx, %rsi
callq 0xa6f6
subq $0x1, %r14
jae 0x1bd05
incl 0x10(%rbx)
jmp 0x1bffe
cmpl $0x4, %r12d
je 0x1bf5e
cmpl $0x5, %r12d
movq -0x30(%rbp), %r14
jne 0x1bd5c
movq 0x10(%r15), %rsi
leaq 0x165ef(%rip), %rdx     # 0x32330
leaq -0x44(%rbp), %rcx
pushq $0x2
popq %r9
movq %r14, %rdi
xorl %r8d, %r8d
callq 0x7b44
testl %eax, %eax
je 0x1c215
leaq 0xced8(%rip), %rcx      # 0x28c3b
pushq $0x2
popq %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x72a5
jmp 0x1bdf0
movq 0x10(%r15), %rdi
leaq -0x38(%rbp), %rbx
movq %rbx, %rsi
callq 0x7fc7
movq %rax, %r14
movslq (%rbx), %rsi
incq %rsi
xorl %edi, %edi
callq *0x174f4(%rip)          # 0x33288
movq %rax, %rbx
pushq $0x1
popq %rdx
movq %rax, %rdi
movq %r14, %rsi
callq 0x203c2
pushq $-0x1
popq %rdx
movq -0x30(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
jmp 0x1bdd1
movq 0x10(%r15), %rsi
cmpl $0x4, %r12d
jne 0x1be95
movq 0x18(%r15), %rbx
jmp 0x1be97
movq %r14, %rdi
movq %rax, %rsi
callq 0xa654
jmp 0x1be6e
je 0x1bf74
movq (%r15), %rdx
movq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x1067e
pushq $0x1
popq %rcx
jmp 0x1c01e
xorl %r8d, %r8d
movq -0x30(%rbp), %r14
movq %r14, %rdi
callq 0xac95
testq %rax, %rax
pushq $0x1
popq %rcx
jne 0x1be6e
jmp 0x1c01e
movq %rbx, %r13
leaq 0xd823(%rip), %rsi      # 0x29641
movq -0x30(%rbp), %r12
movq %r12, %rdi
xorl %edx, %edx
callq 0x7363
movq %rax, %rbx
pushq $0x2
popq %r14
cmpq %r13, %r14
jge 0x1bd1a
movq (%r15,%r14,8), %rdx
movq %r12, %rdi
movq %rbx, %rsi
callq 0xa6f6
incq %r14
jmp 0x1be33
xorl %edx, %edx
movq -0x30(%rbp), %r14
movq %r14, %rdi
callq 0x201f7
jmp 0x1be6e
xorl %edx, %edx
movq -0x30(%rbp), %r14
movq %r14, %rdi
callq 0x202bc
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 0x1be8d
movq %r14, %rdi
callq 0x73bf
movq %rbx, (%r14)
jmp 0x1c01c
xorl %ebx, %ebx
movq -0x30(%rbp), %r15
movq %r15, %rdi
movq %rbx, %rdx
callq 0x201f7
movq %rax, %r14
movq %r15, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x202bc
movq %rax, %rbx
cmpq %rax, %r14
je 0x1bed1
cmpl $0x0, 0x10(%r14)
jne 0x1bed1
movq %r15, %rdi
movq %r14, %rsi
callq 0x73bf
incl 0x10(%rbx)
movq (%r15), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x1beed
movq %r15, %rdi
callq 0x73bf
movq %rbx, (%r15)
jmp 0x1c01c
movq $0x0, -0x60(%rbp)
xorl %eax, %eax
movq -0x30(%rbp), %r13
jmp 0x1c06f
movq -0x30(%rbp), %r12
movl %eax, %r15d
pushq $-0x1
popq %rsi
subl %ebx, %r15d
jl 0x1c039
testl %ebx, %ebx
je 0x1c039
testl %eax, %eax
je 0x1c039
movl %edi, %r13d
movslq %ebx, %rbx
pushq $-0x1
popq %r12
cmpl %r15d, %r13d
jg 0x1c032
movq -0x40(%rbp), %rax
leaq (%rax,%r13), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x6390
testl %eax, %eax
je 0x1c02f
incq %r13
jmp 0x1bf35
xorl %ecx, %ecx
xorl %eax, %eax
movq -0x30(%rbp), %r14
jmp 0x1c225
movq -0x30(%rbp), %r12
pushq $-0x1
popq %rsi
jmp 0x1bff0
movq -0x38(%rbp), %rbx
testq %rbx, %rbx
sets %al
cmpl $0x3, %r13d
setne %cl
cmpl $0x0, -0x40(%rbp)
setne %dl
andb %cl, %dl
andb %al, %dl
movq -0x58(%rbp), %r12
movq -0x10(%r15,%r12,8), %rdi
cmpb $0x1, %dl
jne 0x1c23b
movq -0x8(%r15,%r12,8), %rsi
callq 0xa7f8
movl %eax, %esi
movq -0x30(%rbp), %r14
movq %r14, %rdi
callq 0x8212
movq %rax, %rbx
incl 0x10(%rax)
movq (%r14), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x2, %eax
jl 0x1be85
jmp 0x1be8d
movq (%r15), %rdx
movq %r13, %rdi
jmp 0x1bde8
sarq $0x20, %r12
movq %r12, %rsi
movq -0x30(%rbp), %r12
movq %r12, %rdi
callq 0x8212
movq %rax, %rbx
incl 0x10(%rax)
movq (%r12), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x1c018
movq %r12, %rdi
callq 0x73bf
movq %rbx, (%r12)
xorl %ecx, %ecx
movl %ecx, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r13d, %r12d
movslq %r12d, %rsi
movq -0x30(%rbp), %r12
movq %r12, %rdi
callq 0x8212
movq %rax, %rbx
incl 0x10(%rax)
movq (%r12), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x2, %eax
jl 0x1c010
jmp 0x1c018
xorl %eax, %eax
cmpl $0x0, -0x44(%rbp)
sete %al
movq %rax, -0x60(%rbp)
leal (,%rax,8), %eax
movq 0x10(%r15,%rax), %rsi
movq 0x18(%r15,%rax), %rbx
movq %r13, %rdi
movq %rsi, -0x58(%rbp)
callq 0x8b3c
movl %eax, -0x40(%rbp)
testb $0x1, %al
jne 0x1c1ac
movq %rbx, %rdi
callq 0x7340
movq %rax, -0x50(%rbp)
movq %rbx, %rdi
callq 0xa61a
movl %eax, %r14d
leaq 0xd593(%rip), %rsi      # 0x29641
movq %r13, %rdi
xorl %edx, %edx
callq 0x7363
xorl %edx, %edx
movq %rax, -0x68(%rbp)
testl %r14d, %r14d
je 0x1c1e7
movq %rdx, -0x80(%rbp)
xorl %ebx, %ebx
cmpl -0x40(%rbp), %ebx
jge 0x1c12f
movq %r13, %rdi
movq -0x58(%rbp), %rsi
movl %ebx, %edx
callq 0xd95e
movq %rax, %r15
movq %rax, %rdi
callq 0x7340
movq %rax, %r13
movq %r15, %rdi
callq 0xa61a
movl %eax, %r15d
movl %r14d, %r12d
subl %eax, %r12d
setl %al
testl %r15d, %r15d
sete %cl
orb %al, %cl
jne 0x1c126
movq -0x50(%rbp), %rdi
movl %r15d, %esi
movq %r13, %rdx
movl %r15d, %ecx
movq -0x60(%rbp), %r8
callq 0xaadf
testl %eax, %eax
je 0x1c13c
addl $0x2, %ebx
movq -0x30(%rbp), %r13
jmp 0x1c0cd
movl %r14d, %r12d
movq -0x50(%rbp), %r14
movq -0x80(%rbp), %rdx
jmp 0x1c184
movq -0x80(%rbp), %rdx
testq %rdx, %rdx
movq -0x30(%rbp), %r13
movq -0x50(%rbp), %r14
je 0x1c15e
movl %r14d, %ecx
subl %edx, %ecx
movq %r13, %rdi
movq -0x68(%rbp), %rsi
callq 0x823a
leal 0x1(%rbx), %edx
movq %r13, %rdi
movq -0x58(%rbp), %rsi
callq 0xd95e
movq %r13, %rdi
movq -0x68(%rbp), %rsi
movq %rax, %rdx
callq 0xa6f6
movslq %r15d, %rax
addq %rax, %r14
xorl %edx, %edx
testq %rdx, %rdx
movq %rdx, %rax
cmoveq %r14, %rax
xorl %ecx, %ecx
cmpl %ebx, -0x40(%rbp)
cmoveq %rax, %rdx
sete %cl
subl %ecx, %r12d
addq %rcx, %r14
movq %r14, -0x50(%rbp)
movl %r12d, %r14d
jmp 0x1c0be
leaq 0xcb57(%rip), %rsi      # 0x28d0a
pushq $-0x1
popq %rdx
movq %r13, %rdi
callq 0x7363
movq %rax, %rbx
incl 0x10(%rax)
movq (%r13), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x1c1de
movq %r13, %rdi
callq 0x73bf
movq %rbx, (%r13)
jmp 0x1bdf0
testq %rdx, %rdx
movq -0x68(%rbp), %rbx
je 0x1c201
movq -0x50(%rbp), %rcx
subl %edx, %ecx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x823a
testq %rbx, %rbx
pushq $0x1
popq %rcx
je 0x1c01e
incl 0x10(%rbx)
jmp 0x1c3b9
xorl %ecx, %ecx
cmpl $0x0, -0x44(%rbp)
sete %cl
leal (,%rcx,8), %eax
movq 0x10(%r15,%rax), %rsi
movq 0x18(%r15,%rax), %rdx
callq 0xa85d
movl %eax, %esi
jmp 0x1b9ad
callq 0x7340
movq %rax, -0x50(%rbp)
movq -0x10(%r15,%r12,8), %rdi
callq 0xa61a
movl %eax, %r14d
movq -0x8(%r15,%r12,8), %rdi
callq 0x7340
movq %rax, -0x60(%rbp)
movq -0x8(%r15,%r12,8), %rdi
callq 0xa61a
testq %rbx, %rbx
js 0x1c281
movslq %r14d, %rcx
cmpq %rcx, %rbx
cmovll %ebx, %r14d
movslq %eax, %rcx
cmpq %rcx, %rbx
cmovll %ebx, %eax
xorl %r8d, %r8d
cmpl $0x0, -0x40(%rbp)
sete %r8b
movq -0x50(%rbp), %rdi
movl %r14d, %esi
movq -0x60(%rbp), %rdx
movl %eax, %ecx
callq 0xaadf
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
cmpl $0x3, %r13d
cmovel %eax, %ecx
movslq %ecx, %rsi
jmp 0x1b9a9
movq 0x10(%r15), %rdi
callq 0xa61a
movl %r14d, %eax
addq %rax, %rbx
pushq $0x1
popq %rdx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x7363
jmp 0x1bff8
xorl %esi, %esi
cmpl $0x5, %r12d
setne %sil
jmp 0x1c3ab
leaq -0x38(%rbp), %rdx
movq %r13, %rdi
movq %r14, %rsi
callq 0xd397
xorl $0x1, %eax
movq %r13, %rdi
movq %rax, %rsi
jmp 0x1c3ae
movq 0x16cc7(%rip), %r14     # 0x32fd0
jmp 0x1c386
movq 0x16c56(%rip), %r14     # 0x32f68
jmp 0x1c386
movq 0x16cd5(%rip), %r14     # 0x32ff0
jmp 0x1c386
movq 0x16cb4(%rip), %r14     # 0x32fd8
jmp 0x1c386
movq 0x16c6b(%rip), %r14     # 0x32f98
jmp 0x1c386
leaq 0x40d2(%rip), %r14      # 0x20408
jmp 0x1c386
movq 0x16c89(%rip), %r14     # 0x32fc8
jmp 0x1c386
movq 0x16c78(%rip), %r14     # 0x32fc0
jmp 0x1c386
leaq -0x38(%rbp), %rdx
movq %r13, %rdi
movq %r14, %rsi
callq 0xd267
testl %eax, %eax
je 0x1c3dc
xorl %esi, %esi
jmp 0x1b9a9
movq 0x16c35(%rip), %r14     # 0x32fa0
jmp 0x1c386
movq 0x16c0c(%rip), %r14     # 0x32f80
jmp 0x1c386
movq 0x16c13(%rip), %r14     # 0x32f90
jmp 0x1c386
movq 0x16c22(%rip), %r14     # 0x32fa8
xorl %r15d, %r15d
movslq -0x70(%rbp), %rax
cmpq %rax, %r15
jge 0x1c3a8
movzbl (%rbx,%r15), %edi
callq *%r14
incq %r15
testl %eax, %eax
jne 0x1c389
movq %r13, %rdi
xorl %esi, %esi
jmp 0x1c3ae
pushq $0x1
popq %rsi
movq %r13, %rdi
callq 0x8212
movq %rax, %rbx
incl 0x10(%rax)
movq (%r13), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x1c3d3
movq %r13, %rdi
callq 0x73bf
movq %rbx, (%r13)
jmp 0x1c01c
callq 0x6080
xorl %esi, %esi
cmpl $0x22, (%rax)
setne %sil
jmp 0x1b9a9
leaq 0xc8c9(%rip), %rdi      # 0x28cbf
leaq 0xa7fe(%rip), %rsi      # 0x26bfb
leaq 0xc8bf(%rip), %rcx      # 0x28cc3
movl $0x4c38, %edx           # imm = 0x4C38
callq 0x6220