// File: /workspace/github_c_makefile_star2_O1/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, %r14
movl %esi, %r12d
movq %rdi, %r15
movl $0x1, -0x2c(%rbp)
leaq 0x18750(%rip), %rbx     # 0x37360
movq %rbx, %rsi
movl %r12d, %edx
movq %r14, %rcx
callq 0x11bb6
movl $0x1, %ecx
testq %rax, %rax
je 0x1f4ca
movq %rax, %r13
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x1ec51
movq %r15, %rdi
movl %r12d, %esi
movq %r14, %rdx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rax
movq %r13, %rcx
subq %rbx, %rcx
shrq $0x5, %rcx
cmpl $0x15, %ecx
ja 0x1f4c8
movl %ecx, %eax
movq %rcx, %rdx
leaq 0x9884(%rip), %rcx      # 0x284f4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%r14), %rsi
movq 0x18(%r14), %rdx
movq 0x20(%r14), %rcx
movq %r15, %rdi
callq 0xb423
movl $0x1, %ecx
testq %rax, %rax
jne 0x1f3ab
jmp 0x1f4ca
movq %rdx, -0x58(%rbp)
movl $0x0, -0x38(%rbp)
movq 0x10(%r14), %rbx
cmpq $0x0, (%rbx)
jne 0x1ecbf
movq 0x8(%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movq (%rbx), %rax
movq %rax, -0x40(%rbp)
movq 0x18(%r14), %rbx
cmpq $0x0, (%rbx)
jne 0x1ecda
movq 0x8(%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movq (%rbx), %rax
movq %rax, -0x48(%rbp)
movq 0x10(%r14), %rbx
cmpq $0x0, (%rbx)
jne 0x1ecf5
movq 0x8(%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movl 0x14(%rbx), %esi
movq 0x18(%r14), %rbx
cmpq $0x0, (%rbx)
jne 0x1ed12
movq 0x8(%rbx), %rax
movq %rbx, %rdi
movl %esi, %r13d
callq *0x18(%rax)
movl %r13d, %esi
movl 0x14(%rbx), %r13d
cmpl $0x5, %r12d
jne 0x1ef28
movl %esi, %ebx
movq 0x20(%r14), %rsi
leaq -0x38(%rbp), %rdx
movq %r15, %rdi
callq 0x80b2
movl $0x1, %ecx
testl %eax, %eax
jne 0x1f4ca
movl -0x38(%rbp), %ecx
xorl %edx, %edx
cmpl $0x80000002, %ecx       # imm = 0x80000002
movl $0x0, %eax
cmovael %r13d, %eax
addl %ecx, %eax
testl %eax, %eax
cmovlel %edx, %eax
movq -0x58(%rbp), %rcx
movl %ebx, %esi
jmp 0x1ef3d
movq %rdx, -0x58(%rbp)
movq %r15, -0x50(%rbp)
leal -0x4(%r12), %edx
movl -0x2c(%rbp), %eax
movl %eax, -0x48(%rbp)
cmpl $0x5, %r12d
jl 0x1f0a8
movq $-0x1, -0x40(%rbp)
movl $0x2, %r15d
movslq %r15d, %rax
movq (%r14,%rax,8), %rsi
movq -0x50(%rbp), %rdi
movl %edx, %ebx
leaq 0x1859c(%rip), %rdx     # 0x37340
leaq -0x5c(%rbp), %rcx
xorl %r8d, %r8d
movl $0x2, %r9d
callq 0x7e97
testl %eax, %eax
jne 0x1f292
movl %ebx, %edx
leal 0x1(%r15), %eax
cmpl $0x0, -0x5c(%rbp)
je 0x1ee0a
cmpl $0x1, %edx
je 0x1f292
cltq
movq (%r14,%rax,8), %rcx
leaq 0x17500(%rip), %rax     # 0x362e0
cmpq %rax, 0x8(%rcx)
je 0x1ee18
movq -0x50(%rbp), %rdi
movq %rcx, -0x40(%rbp)
movq -0x40(%rbp), %rsi
movl $0x1, %edx
callq 0xd6d7
movq -0x40(%rbp), %rcx
movl %ebx, %edx
testl %eax, %eax
je 0x1ee18
xorl %eax, %eax
jmp 0x1ee22
movl $0x0, -0x48(%rbp)
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
jmp 0x1ee36
movq 0x18(%rcx), %rax
movq %rax, -0x40(%rbp)
movb $0x1, %al
testb %al, %al
je 0x1f4db
addl $0x2, %r15d
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
movl %r15d, %eax
movl %eax, %r15d
addl %ecx, %edx
jg 0x1ed90
jmp 0x1f0b0
movq 0x10(%r14), %rbx
cmpq $0x0, (%rbx)
jne 0x1ee5a
movq 0x8(%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movslq 0x14(%rbx), %rbx
jmp 0x1f487
movq 0x10(%r14), %rsi
movq %r15, %rdi
callq 0x24087
jmp 0x1f35b
movq 0x10(%r14), %rsi
movq 0x18(%r14), %rdx
movq 0x20(%r14), %rcx
cmpl $0x6, %r12d
jne 0x1f2b1
movq 0x28(%r14), %r8
jmp 0x1f2b4
cmpl $0x4, %r12d
je 0x1f382
cmpl $0x5, %r12d
jne 0x1eecb
movq 0x10(%r14), %rsi
leaq 0x18482(%rip), %rdx     # 0x37330
leaq -0x2c(%rbp), %rcx
movq %r15, %rdi
xorl %r8d, %r8d
movl $0x2, %r9d
callq 0x7e97
testl %eax, %eax
je 0x1f382
leaq 0xed5e(%rip), %rcx      # 0x2dc30
jmp 0x1ef13
cmpl $0x4, %r12d
je 0x1f3b3
cmpl $0x5, %r12d
jne 0x1ef0c
movq 0x10(%r14), %rsi
leaq 0x18441(%rip), %rdx     # 0x37330
leaq -0x2c(%rbp), %rcx
movq %r15, %rdi
xorl %r8d, %r8d
movl $0x2, %r9d
callq 0x7e97
testl %eax, %eax
je 0x1f3b3
leaq 0xed36(%rip), %rcx      # 0x2dc49
movq %r15, %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x7454
jmp 0x1f2a7
movq -0x58(%rbp), %rcx
cmpl $0x5, %ecx
je 0x1ef49
movl %r13d, %eax
cmpl $0x8, %ecx
jne 0x1f27a
movl %eax, -0x38(%rbp)
cmpl $0x5, %ecx
jne 0x1f27a
movl -0x38(%rbp), %r8d
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rdx
movl %r13d, %ecx
callq 0x23d24
jmp 0x1f28a
cmpl $0x3, %r12d
movq %r15, -0x50(%rbp)
jne 0x1f2c1
movq 0x10(%r14), %r15
jmp 0x1f310
movq 0x10(%r14), %rbx
cmpq $0x0, (%rbx)
jne 0x1ef8d
movq 0x8(%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movslq 0x14(%rbx), %r14
movq (%rbx), %rbx
leaq 0x1(%r14), %rsi
xorl %edi, %edi
callq *0x192e8(%rip)          # 0x38288
testq %rax, %rax
je 0x1f558
movb $0x0, (%rax,%r14)
testl %r14d, %r14d
jle 0x1efd0
leaq (%r14,%rax), %rcx
decq %rcx
movl %r14d, %edx
xorl %esi, %esi
movb (%rbx,%rsi), %dil
movb %dil, (%rcx)
decq %rcx
incq %rsi
cmpl %esi, %edx
jne 0x1efbf
movq %r15, %rdi
movq %rax, %rsi
movl %r14d, %edx
callq 0xaf08
jmp 0x1f35b
movq 0x18(%r14), %rsi
leaq -0x38(%rbp), %rdx
movq %r15, %rdi
callq 0x80b2
movl $0x1, %ecx
testl %eax, %eax
jne 0x1f4ca
movq %r15, %r12
movq 0x10(%r14), %rbx
cmpq $0x0, (%rbx)
jne 0x1f017
movq 0x8(%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movq (%rbx), %r15
movq 0x10(%r14), %rbx
cmpq $0x0, (%rbx)
jne 0x1f02e
movq 0x8(%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movl 0x14(%rbx), %eax
movl -0x38(%rbp), %ecx
xorl %ebx, %ebx
cmpl $0x80000002, %ecx       # imm = 0x80000002
cmovael %eax, %ebx
addl %ecx, %ebx
movl %ebx, -0x38(%rbp)
js 0x1f05c
cmpl %eax, %ebx
setge %al
testq %r15, %r15
sete %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x1f4f1
movq %r12, %rdi
callq 0xae58
movq %rax, %r14
leaq 0x1922a(%rip), %rax     # 0x38298
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 0x1f09f
movq %r12, %rdi
callq 0x759a
movq %r14, (%r12)
jmp 0x1f4c8
movq $-0x1, -0x40(%rbp)
movl -0x48(%rbp), %eax
movl %eax, -0x2c(%rbp)
testl %edx, %edx
jne 0x1f298
movslq %r12d, %r13
cmpq $0x0, -0x40(%rbp)
sets %al
cmpl $0x3, -0x58(%rbp)
setne %cl
movl -0x2c(%rbp), %ebx
testl %ebx, %ebx
setne %dl
andb %al, %cl
andb %dl, %cl
movq -0x10(%r14,%r13,8), %r12
cmpb $0x1, %cl
movq -0x50(%rbp), %r15
jne 0x1f3d2
movq -0x8(%r14,%r13,8), %rsi
movq %r12, %rdi
callq 0xb0b4
movl %eax, %ebx
movq %r15, %rdi
callq 0xae58
movq %rax, %r14
leaq 0x171d1(%rip), %rax     # 0x362e0
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 0x1f4bd
jmp 0x1f4c5
movq 0x10(%r14), %rsi
movq %r15, %rdi
callq 0x241a9
jmp 0x1f35b
movq 0x10(%r14), %rsi
cmpl $0x4, %r12d
jne 0x1f339
movq 0x18(%r14), %rdx
jmp 0x1f33b
movq 0x10(%r14), %rsi
cmpl $0x4, %r12d
jne 0x1f345
movq 0x18(%r14), %rdx
jmp 0x1f347
cmpl $0x5, %r12d
jne 0x1f19c
movq 0x18(%r14), %rsi
leaq 0xeb84(%rip), %rdx      # 0x2dd10
movq %r15, %rdi
callq 0x73d6
testl %eax, %eax
je 0x1f4e6
xorl %ecx, %ecx
cmpl $0x5, %r12d
sete %cl
movslq %r12d, %rax
movq -0x8(%r14,%rax,8), %rsi
movq 0x10(%r14), %rdx
movq %r15, %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x24248
movq 0x18(%r14), %rsi
leaq -0x38(%rbp), %rdx
movq %r15, %rdi
callq 0xd80a
movl $0x1, %ecx
testl %eax, %eax
jne 0x1f4ca
movq %r15, %r13
movq %r15, %rdi
callq 0xae58
movq %rax, %r15
leaq 0x1909f(%rip), %rax     # 0x38298
movq %rax, (%r15)
movl $0x0, 0x14(%r15)
movq $0x0, 0x8(%r15)
cmpq $0x0, -0x38(%rbp)
jle 0x1f242
movq -0x38(%rbp), %rbx
movq %rbx, %rax
subq $0x1, %rax
jb 0x1f23e
movq %r13, %r12
movq 0x10(%r14), %rdx
movq %r12, %rdi
movq %r15, %rsi
callq 0xafb0
decq %rbx
jne 0x1f223
movq $-0x1, %rax
movq %rax, -0x38(%rbp)
incl 0x10(%r15)
movq %r13, %rbx
movq (%r13), %rsi
jmp 0x1f31b
movq 0x10(%r14), %rsi
movq %r15, %rdi
callq 0x24118
jmp 0x1f35b
movq 0x10(%r14), %rsi
cmpl $0x4, %r12d
jne 0x1f351
movq 0x18(%r14), %rdx
jmp 0x1f353
movl -0x38(%rbp), %ecx
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rdx
callq 0x23da4
movslq %eax, %rbx
jmp 0x1f487
movl -0x48(%rbp), %eax
movl %eax, -0x2c(%rbp)
movq (%r14), %rdx
movq -0x50(%rbp), %rdi
movq %r13, %rsi
callq 0x11ab3
movl $0x1, %ecx
jmp 0x1f4ca
xorl %r8d, %r8d
movq %r15, %rdi
callq 0xb563
jmp 0x1f39d
movq %r15, %rdi
callq 0xae58
movq %rax, %r15
leaq 0x18fc5(%rip), %rax     # 0x38298
movq %rax, (%r15)
movl $0x0, 0x14(%r15)
movq $0x0, 0x8(%r15)
cmpl $0x3, %r12d
jl 0x1f310
movl %r12d, %ebx
movl $0x2, %r12d
movq -0x50(%rbp), %r13
movq (%r14,%r12,8), %rdx
movq %r13, %rdi
movq %r15, %rsi
callq 0xafb0
incq %r12
cmpq %r12, %rbx
jne 0x1f2f9
incl 0x10(%r15)
movq -0x50(%rbp), %rbx
movq (%rbx), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x1f331
movq %rbx, %rdi
callq 0x759a
movq %r15, (%rbx)
jmp 0x1f4c8
xorl %edx, %edx
movq %r15, %rdi
callq 0x23e78
jmp 0x1f35b
xorl %edx, %edx
movq %r15, %rdi
callq 0x23f5b
jmp 0x1f35b
xorl %edx, %edx
movq %r15, %rdi
callq 0x23e2a
movq %rax, %rbx
incl 0x10(%rax)
movq (%r15), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x1f37a
movq %r15, %rdi
callq 0x759a
movq %rbx, (%r15)
jmp 0x1f4c8
xorl %ecx, %ecx
cmpl $0x0, -0x2c(%rbp)
sete %cl
movq 0x10(%r14,%rcx,8), %rsi
movq 0x18(%r14,%rcx,8), %rdx
movq %r15, %rdi
callq 0x23aef
testq %rax, %rax
movl $0x1, %ecx
je 0x1f4ca
movq %rax, %r14
jmp 0x1f4a8
xorl %ecx, %ecx
cmpl $0x0, -0x2c(%rbp)
sete %cl
movq 0x10(%r14,%rcx,8), %rsi
movq 0x18(%r14,%rcx,8), %rdx
callq 0xb120
movl %eax, %ebx
jmp 0x1f487
cmpq $0x0, (%r12)
jne 0x1f3e4
movq 0x8(%r12), %rax
movq %r12, %rdi
callq *0x18(%rax)
movq (%r12), %rax
movq %rax, -0x48(%rbp)
movq -0x10(%r14,%r13,8), %r12
cmpq $0x0, (%r12)
jne 0x1f403
movq 0x8(%r12), %rax
movq %r12, %rdi
callq *0x18(%rax)
movslq 0x14(%r12), %r15
movq -0x8(%r14,%r13,8), %r12
cmpq $0x0, (%r12)
jne 0x1f41f
movq 0x8(%r12), %rax
movq %r12, %rdi
callq *0x18(%rax)
movq (%r12), %r12
movq -0x8(%r14,%r13,8), %r14
cmpq $0x0, (%r14)
jne 0x1f438
movq 0x8(%r14), %rax
movq %r14, %rdi
callq *0x18(%rax)
movl 0x14(%r14), %eax
cltq
movq -0x40(%rbp), %rdx
cmpq %rax, %rdx
movl %eax, %ecx
cmovll %edx, %ecx
cmpq %r15, %rdx
movl %r15d, %esi
cmovll %edx, %esi
testq %rdx, %rdx
cmovsl %eax, %ecx
cmovsl %r15d, %esi
xorl %r8d, %r8d
testl %ebx, %ebx
sete %r8b
movq -0x48(%rbp), %rdi
movq %r12, %rdx
callq 0xb384
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
cmpl $0x3, -0x58(%rbp)
cmovel %eax, %ecx
movslq %ecx, %rbx
movq -0x50(%rbp), %r15
movq %r15, %rdi
callq 0xae58
movq %rax, %r14
leaq 0x16e47(%rip), %rax     # 0x362e0
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 0x1f4c5
movq %r15, %rdi
callq 0x759a
movq %r14, (%r15)
xorl %ecx, %ecx
movl %ecx, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl -0x48(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0x1f2a7
movq (%r14), %rdx
movq %r15, %rdi
jmp 0x1f29f
movq 0x10(%r14), %rdi
cmpq $0x0, (%rdi)
jne 0x1f502
movq 0x8(%rdi), %rax
callq *0x18(%rax)
movl %ebx, %ebx
movq %r12, %rdi
callq 0xae58
movq %rax, %r14
movl $0x2, %esi
xorl %edi, %edi
callq *0x18d6c(%rip)          # 0x38288
movb (%r15,%rbx), %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 0x1f097
jmp 0x1f09f
leaq 0xe76e(%rip), %rdi      # 0x2dccd
leaq 0xc69d(%rip), %rsi      # 0x2bc03
leaq 0xe764(%rip), %rcx      # 0x2dcd1
movl $0x4c38, %edx           # imm = 0x4C38
callq 0x6220