// File: /workspace/github_c_makefile_star2_O3/msteveb[P]autosetup/./jimsh0.c
// Function: JimCatchTryHelper
static int JimCatchTryHelper(Jim_Interp *interp, int istry, int argc, Jim_Obj *const *argv)
{
    static const char * const wrongargs_catchtry[2] = {
        "?-?no?code ... --? script ?resultVarName? ?optionVarName?",
        "?-?no?code ... --? script ?on|trap codes vars script? ... ?finally script?"
    };
    int exitCode = 0;
    int i;
    int sig = 0;
    int ok;
    Jim_Obj *finallyScriptObj = NULL;
    Jim_Obj *msgVarObj = NULL;
    Jim_Obj *optsVarObj = NULL;
    Jim_Obj *handlerScriptObj = NULL;
    Jim_Obj *errorCodeObj;
    int idx;


    jim_wide ignore_mask = (1 << JIM_EXIT) | (1 << JIM_EVAL) | (1 << JIM_SIGNAL);
    static const int max_ignore_code = sizeof(ignore_mask) * 8;

    JimPanic((istry != 0 && istry != 1, "wrong args to JimCatchTryHelper"));

    Jim_SetGlobalVariableStr(interp, "errorCode", Jim_NewStringObj(interp, "NONE", -1));

    for (i = 1; i < argc - 1; i++) {
        const char *arg = Jim_String(argv[i]);
        jim_wide option;
        int ignore;


        if (strcmp(arg, "--") == 0) {
            i++;
            break;
        }
        if (*arg != '-') {
            break;
        }

        if (strncmp(arg, "-no", 3) == 0) {
            arg += 3;
            ignore = 1;
        }
        else {
            arg++;
            ignore = 0;
        }

        if (Jim_StringToWide(arg, &option, 10) != JIM_OK) {
            option = -1;
        }
        if (option < 0) {
            option = Jim_FindByName(arg, jimReturnCodes, jimReturnCodesSize);
        }
        if (option < 0) {
            goto wrongargs;
        }

        if (ignore) {
            ignore_mask |= ((jim_wide)1 << option);
        }
        else {
            ignore_mask &= (~((jim_wide)1 << option));
        }
    }

    idx = i;

    if (argc - idx < 1) {
wrongargs:
        Jim_WrongNumArgs(interp, 1, argv, wrongargs_catchtry[istry]);
        return JIM_ERR;
    }

    if ((ignore_mask & (1 << JIM_SIGNAL)) == 0) {
        sig++;
    }

    interp->signal_level += sig;
    if (Jim_CheckSignal(interp)) {

        exitCode = JIM_SIGNAL;
    }
    else {
        exitCode = Jim_EvalObj(interp, argv[idx]);

        interp->errorFlag = 0;
    }
    interp->signal_level -= sig;

    errorCodeObj = Jim_GetGlobalVariableStr(interp, "errorCode", JIM_NONE);

    idx++;
    if (istry) {
        while (idx < argc) {
            int option;
            int ret;
            static const char * const try_options[] = { "on", "trap", "finally", NULL };
            enum { TRY_ON, TRY_TRAP, TRY_FINALLY, };

            if (Jim_GetEnum(interp, argv[idx], try_options, &option, "handler", JIM_ERRMSG) != JIM_OK) {
                return JIM_ERR;
            }
            switch (option) {
                case TRY_ON:
                case TRY_TRAP:
                    if (idx + 4 > argc) {
                        goto wrongargs;
                    }
                    if (option == TRY_ON) {
                        ret = JimMatchReturnCodes(interp, argv[idx + 1], exitCode);
                        if (ret > JIM_OK) {
                            goto wrongargs;
                        }
                    }
                    else if (errorCodeObj) {
                        int len = Jim_ListLength(interp, argv[idx + 1]);
                        int i;

                        ret = JIM_OK;

                        for (i = 0; i < len; i++) {
                            Jim_Obj *matchObj = Jim_ListGetIndex(interp, argv[idx + 1], i);
                            Jim_Obj *objPtr = Jim_ListGetIndex(interp, errorCodeObj, i);
                            if (Jim_StringCompareObj(interp, matchObj, objPtr, 0) != 0) {
                                ret = -1;
                                break;
                            }
                        }
                    }
                    else {

                        ret = -1;
                    }

                    if (ret == JIM_OK && handlerScriptObj == NULL) {
                        msgVarObj = Jim_ListGetIndex(interp, argv[idx + 2], 0);
                        optsVarObj = Jim_ListGetIndex(interp, argv[idx + 2], 1);
                        handlerScriptObj = argv[idx + 3];
                    }
                    idx += 4;
                    break;
                case TRY_FINALLY:
                    if (idx + 2 != argc) {
                        goto wrongargs;
                    }
                    finallyScriptObj = argv[idx + 1];
                    idx += 2;
                    break;
            }
        }
    }
    else {
        if (argc - idx >= 1) {
            msgVarObj = argv[idx];
            idx++;
            if (argc - idx >= 1) {
                optsVarObj = argv[idx];
                idx++;
            }
        }
    }


    if (exitCode >= 0 && exitCode < max_ignore_code && (((unsigned jim_wide)1 << exitCode) & ignore_mask)) {

        if (finallyScriptObj) {
            Jim_EvalObj(interp, finallyScriptObj);
        }
        return exitCode;
    }

    if (sig && exitCode == JIM_SIGNAL) {

        if (interp->signal_set_result) {
            interp->signal_set_result(interp, interp->sigmask);
        }
        else if (!istry) {
            Jim_SetResultInt(interp, interp->sigmask);
        }
        interp->sigmask = 0;
    }

    ok = 1;
    if (msgVarObj && Jim_Length(msgVarObj)) {
        if (Jim_SetVariable(interp, msgVarObj, Jim_GetResult(interp)) != JIM_OK) {
            ok = 0;
        }
    }
    if (ok && optsVarObj && Jim_Length(optsVarObj)) {
        Jim_Obj *optListObj = Jim_NewListObj(interp, NULL, 0);

        Jim_ListAppendElement(interp, optListObj, Jim_NewStringObj(interp, "-code", -1));
        Jim_ListAppendElement(interp, optListObj,
            Jim_NewIntObj(interp, exitCode == JIM_RETURN ? interp->returnCode : exitCode));
        Jim_ListAppendElement(interp, optListObj, Jim_NewStringObj(interp, "-level", -1));
        Jim_ListAppendElement(interp, optListObj, Jim_NewIntObj(interp, interp->returnLevel));
        if (exitCode == JIM_ERR) {
            Jim_ListAppendElement(interp, optListObj, Jim_NewStringObj(interp, "-errorinfo",
                -1));
            Jim_ListAppendElement(interp, optListObj, interp->stackTrace);

            if (errorCodeObj) {
                Jim_ListAppendElement(interp, optListObj, Jim_NewStringObj(interp, "-errorcode", -1));
                Jim_ListAppendElement(interp, optListObj, errorCodeObj);
            }
        }
        if (Jim_SetVariable(interp, optsVarObj, optListObj) != JIM_OK) {
            ok = 0;
        }
    }
    if (ok && handlerScriptObj) {

        exitCode = Jim_EvalObj(interp, handlerScriptObj);
    }

    if (finallyScriptObj) {

        Jim_Obj *prevResultObj = Jim_GetResult(interp);
        Jim_IncrRefCount(prevResultObj);
        int ret = Jim_EvalObj(interp, finallyScriptObj);
        if (ret == JIM_OK) {
            Jim_SetResult(interp, prevResultObj);
        }
        else {
            exitCode = ret;
        }
        Jim_DecrRefCount(interp, prevResultObj);
    }
    if (!istry) {
        Jim_SetResultInt(interp, exitCode);
        exitCode = JIM_OK;
    }
    return exitCode;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rcx, %r15
movl %edx, %r12d
movl %esi, -0x64(%rbp)
movq %rdi, %r14
leaq 0x7cb2(%rip), %rsi      # 0x2b999
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7508
movq 0x58(%r14), %rbx
movq 0x60(%r14), %rcx
movq %rcx, 0x58(%r14)
leaq 0x7c8b(%rip), %rsi      # 0x2b98f
movq %r14, %rdi
movq %rax, %rdx
callq 0xc425
movq %r14, -0x30(%rbp)
movq %rbx, 0x58(%r14)
cmpl $0x3, %r12d
movq %r15, -0x50(%rbp)
movq %r12, -0x58(%rbp)
jl 0x23e4b
leal -0x1(%r12), %eax
movq %rax, -0x48(%rbp)
movl %eax, %eax
movq %rax, -0x60(%rbp)
movl $0xe0, %ecx
movl $0x1, %r14d
movq %rcx, -0x80(%rbp)
movq (%r15,%r14,8), %r15
movq (%r15), %r13
testq %r13, %r13
jne 0x23d60
movq 0x8(%r15), %rax
movq %r15, %rdi
callq *0x18(%rax)
movq (%r15), %r13
cmpb $0x2d, (%r13)
jne 0x24262
cmpb $0x2d, 0x1(%r13)
jne 0x23d7d
cmpb $0x0, 0x2(%r13)
je 0x2425f
cmpb $0x6e, 0x1(%r13)
jne 0x23d9a
xorl %r12d, %r12d
cmpb $0x6f, 0x2(%r13)
sete %r12b
leaq 0x1(,%r12,2), %rax
jmp 0x23da2
movl $0x1, %eax
xorl %r12d, %r12d
addq %rax, %r13
movq %r13, %rdi
leaq -0x98(%rbp), %rsi
movl $0xa, %edx
callq 0x6460
movq %rax, %r15
movq -0x98(%rbp), %rsi
movq %r13, %rdi
callq 0xa59d
testl %eax, %eax
setne %al
testq %r15, %r15
sets %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x23e16
leaq 0x115fc(%rip), %rbx     # 0x353e0
xorl %r15d, %r15d
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x23dfb
movq %r13, %rsi
callq 0x62e0
testl %eax, %eax
je 0x23e0d
incq %r15
addq $0x8, %rbx
cmpq $0x8, %r15
jne 0x23de7
jmp 0x24281
testq %r15, %r15
js 0x24281
movq -0x80(%rbp), %rcx
movq %rcx, %rax
btrq %r15, %rax
btsq %r15, %rcx
testb %r12b, %r12b
cmoveq %rax, %rcx
incq %r14
cmpq -0x60(%rbp), %r14
movq -0x50(%rbp), %r15
movq -0x58(%rbp), %r12
jne 0x23d43
movq %rcx, -0x80(%rbp)
movq -0x48(%rbp), %r14
jmp 0x23e5a
movl $0x1, %r14d
movl $0xe0, %eax
movq %rax, -0x80(%rbp)
cmpl %r12d, %r14d
jge 0x24281
movq %r14, %r13
xorl %ebx, %ebx
testb $0x20, -0x80(%rbp)
sete %bl
movq -0x30(%rbp), %r14
movl 0x40(%r14), %eax
addl %ebx, %eax
movl %eax, 0x40(%r14)
movq -0x50(%rbp), %r15
je 0x23e93
movl $0x5, %ecx
movq %rcx, -0x48(%rbp)
cmpq $0x0, 0x48(%r14)
jne 0x23eb5
movslq %r13d, %rax
movq (%r15,%rax,8), %rsi
movq %r14, %rdi
callq 0x908a
movq %rax, -0x48(%rbp)
movl $0x0, 0x1b4(%r14)
movl 0x40(%r14), %eax
subl %ebx, %eax
movl %eax, 0x40(%r14)
movq 0x58(%r14), %rbx
movq 0x60(%r14), %rax
movq %rax, 0x58(%r14)
leaq 0x7ac1(%rip), %rsi      # 0x2b98f
movq %r14, %rdi
xorl %edx, %edx
callq 0xc776
movq %rax, -0x90(%rbp)
movq %rbx, 0x58(%r14)
leal 0x1(%r13), %edx
cmpl $0x0, -0x64(%rbp)
movq %r14, %rbx
movq -0x58(%rbp), %r12
je 0x2419c
movq $0x0, -0x40(%rbp)
cmpl %r12d, %edx
movq -0x48(%rbp), %r14
jge 0x241c6
movq $0x0, -0x88(%rbp)
movq $0x0, -0x78(%rbp)
movq $0x0, -0x70(%rbp)
movl %edx, %r13d
movslq %edx, %rax
movq %rax, -0x60(%rbp)
movq (%r15,%rax,8), %rsi
movq %rbx, %rdi
leaq 0x12780(%rip), %rdx     # 0x366c0
leaq -0x9c(%rbp), %rcx
leaq 0x8edd(%rip), %r8       # 0x2ce2b
movl $0x1, %r9d
callq 0x7eac
testl %eax, %eax
jne 0x241ee
movl -0x9c(%rbp), %eax
movl %r13d, %edx
cmpl $0x2, %eax
jae 0x24016
addl $0x4, %edx
cmpl %r12d, %edx
jg 0x24281
testl %eax, %eax
je 0x24021
cmpq $0x0, -0x90(%rbp)
je 0x24186
movl %edx, -0x34(%rbp)
movq -0x60(%rbp), %rax
movq 0x8(%r15,%rax,8), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0xe2fe
movl 0x20(%r12), %r15d
testl %r15d, %r15d
jle 0x240ae
xorl %r12d, %r12d
movq -0x50(%rbp), %rax
movq -0x60(%rbp), %rcx
movq 0x8(%rax,%rcx,8), %rsi
movq %rbx, %rdi
movl %r12d, %edx
callq 0xe803
movq %rax, %r13
movq %rbx, %rdi
movq -0x90(%rbp), %rsi
movl %r12d, %edx
callq 0xe803
movq %r13, %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0xb312
testl %eax, %eax
jne 0x2409c
incl %r12d
cmpl %r12d, %r15d
jne 0x23fbd
xorl %ecx, %ecx
movq $0x0, -0x40(%rbp)
jmp 0x240b0
jne 0x24186
jmp 0x24267
movl %edx, -0x34(%rbp)
movq -0x60(%rbp), %rax
movq 0x8(%r15,%rax,8), %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0xe2fe
movl 0x20(%r13), %r15d
testl %r15d, %r15d
jle 0x240bd
xorl %r12d, %r12d
movq -0x30(%rbp), %r14
movq %r14, %rdi
movq %r13, %rsi
movl %r12d, %edx
callq 0xe803
movq %r14, %rdi
movq -0x48(%rbp), %r14
movq %rax, %rsi
leaq -0x98(%rbp), %rdx
callq 0xfa93
movl -0x98(%rbp), %edx
cmpl %r14d, %edx
movl %ebx, %ecx
movl $0x0, %esi
cmovel %esi, %ecx
movl $0x1, %ebx
testl %eax, %eax
cmovel %ecx, %ebx
jne 0x240d1
cmpl %r14d, %edx
je 0x240d1
incl %r12d
cmpl %r12d, %r15d
jne 0x24044
movq -0x30(%rbp), %rbx
movq $0x0, -0x40(%rbp)
movq -0x50(%rbp), %r15
movq -0x58(%rbp), %r12
jmp 0x240c9
xorl %ecx, %ecx
movq -0x50(%rbp), %r15
movq -0x58(%rbp), %r12
movl -0x34(%rbp), %edx
jmp 0x240f1
movq $0x0, -0x40(%rbp)
movq -0x50(%rbp), %r15
movl -0x34(%rbp), %edx
jmp 0x24186
testl %ebx, %ebx
movq -0x30(%rbp), %rbx
movl $0x0, %eax
movq %rax, -0x40(%rbp)
movq -0x50(%rbp), %r15
movq -0x58(%rbp), %r12
movl -0x34(%rbp), %edx
jg 0x24281
testl %ecx, %ecx
jne 0x24186
cmpq $0x0, -0x70(%rbp)
jne 0x24186
movl %edx, %r13d
movq -0x60(%rbp), %rax
movq 0x10(%r15,%rax,8), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0xe2fe
cmpl $0x0, 0x20(%r12)
jle 0x24134
movq 0x18(%r12), %rax
movq (%rax), %rax
movq %rax, -0x88(%rbp)
jmp 0x2413f
movq $0x0, -0x88(%rbp)
movq -0x60(%rbp), %rax
movq 0x10(%r15,%rax,8), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0xe2fe
cmpl $0x2, 0x20(%r12)
jl 0x2416a
movq 0x18(%r12), %rax
movq 0x8(%rax), %rax
movq %rax, -0x78(%rbp)
jmp 0x24172
movq $0x0, -0x78(%rbp)
movq -0x58(%rbp), %r12
movl %r13d, %edx
movq -0x60(%rbp), %rax
movq 0x18(%r15,%rax,8), %rax
movq %rax, -0x70(%rbp)
cmpl %r12d, %edx
jl 0x23f28
movq -0x78(%rbp), %r15
movq -0x88(%rbp), %r12
jmp 0x2420f
cmpl %r12d, %edx
movq -0x48(%rbp), %r14
jge 0x241d6
movslq %edx, %rax
movq (%r15,%rax,8), %rcx
addl $0x2, %r13d
cmpl %r12d, %r13d
jge 0x241f9
movslq %r13d, %rax
movq (%r15,%rax,8), %r15
movq $0x0, -0x70(%rbp)
jmp 0x24204
movq $0x0, -0x70(%rbp)
xorl %r15d, %r15d
xorl %r12d, %r12d
jmp 0x2420f
movq $0x0, -0x70(%rbp)
xorl %r15d, %r15d
xorl %r12d, %r12d
movq $0x0, -0x40(%rbp)
jmp 0x2420f
movl $0x1, %r14d
jmp 0x242aa
movq $0x0, -0x70(%rbp)
xorl %r15d, %r15d
movq $0x0, -0x40(%rbp)
movq %rcx, %r12
cmpl $0x3f, %r14d
ja 0x24318
movq -0x80(%rbp), %rax
btq %r14, %rax
jae 0x24236
movq -0x40(%rbp), %rsi
testq %rsi, %rsi
je 0x242aa
movq %rbx, %rdi
callq 0x908a
jmp 0x242aa
testb $0x20, %al
jne 0x24318
cmpl $0x5, %r14d
jne 0x24318
movq 0x50(%rbx), %rax
testq %rax, %rax
je 0x242bc
movq 0x48(%rbx), %rsi
movq %rbx, %rdi
callq *%rax
jmp 0x24310
incl %r14d
jmp 0x23e5a
addl $0x2, %edx
cmpl %r12d, %edx
jne 0x24281
movq -0x60(%rbp), %rax
movq 0x8(%r15,%rax,8), %rax
movq %rax, -0x40(%rbp)
jmp 0x2418f
movl -0x64(%rbp), %eax
leaq 0x34d1(%rip), %rdx      # 0x2775c
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
movl $0x1, %r14d
movq -0x30(%rbp), %rdi
movl $0x1, %esi
movq -0x50(%rbp), %rdx
callq 0x7446
movl %r14d, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x0, -0x64(%rbp)
jne 0x24310
movq -0x30(%rbp), %rax
movq 0x48(%rax), %rbx
movq -0x30(%rbp), %rdi
callq 0xae38
movq %rax, %r14
leaq 0x11013(%rip), %rax     # 0x352f0
movq %rax, 0x8(%r14)
movq $0x0, (%r14)
movq %rbx, 0x18(%r14)
movq -0x30(%rbp), %rbx
incl 0x10(%r14)
movq (%rbx), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x2430d
movq %rbx, %rdi
callq 0x758c
movq %r14, (%rbx)
movq $0x0, 0x48(%rbx)
movl $0x1, %r14d
movb $0x1, %bl
testq %r12, %r12
je 0x2435a
cmpq $0x0, (%r12)
jne 0x24337
movq 0x8(%r12), %rax
movq %r12, %rdi
callq *0x18(%rax)
cmpl $0x0, 0x14(%r12)
je 0x2435a
movq -0x30(%rbp), %rdi
movq (%rdi), %rdx
movq %r12, %rsi
callq 0x876e
movl %eax, %r14d
testl %eax, %eax
sete %bl
xorl $0x1, %r14d
testb %bl, %bl
je 0x244f8
testq %r15, %r15
movq -0x30(%rbp), %rbx
movq -0x40(%rbp), %r12
je 0x24508
cmpq $0x0, (%r15)
jne 0x24383
movq 0x8(%r15), %rax
movq %r15, %rdi
callq *0x18(%rax)
cmpl $0x0, 0x14(%r15)
je 0x24502
movq %r15, -0x78(%rbp)
movq %rbx, %rdi
callq 0xae38
movq %rax, %r14
leaq 0x10fc4(%rip), %rax     # 0x35368
movq %rax, 0x8(%r14)
movq $0x0, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r14)
leaq 0x7a23(%rip), %rsi      # 0x2bde1
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7508
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x7683
movq -0x48(%rbp), %rcx
movl %ecx, %eax
cmpl $0x2, %ecx
jne 0x243e7
movl 0x28(%rbx), %eax
movslq %eax, %r12
movq %rbx, %rdi
callq 0xae38
leaq 0x10ef7(%rip), %rbx     # 0x352f0
movq %rbx, 0x8(%rax)
xorl %r15d, %r15d
movq %r15, (%rax)
movq %r12, 0x18(%rax)
movq -0x30(%rbp), %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x7683
leaq 0x8674(%rip), %rsi      # 0x2ca91
movq -0x30(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7508
movq -0x30(%rbp), %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x7683
movq -0x30(%rbp), %rax
movslq 0x2c(%rax), %r12
movq -0x30(%rbp), %rdi
callq 0xae38
movq %rbx, 0x8(%rax)
movq -0x30(%rbp), %rbx
movq %r15, (%rax)
movq %r12, 0x18(%rax)
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x7683
cmpl $0x1, -0x48(%rbp)
jne 0x244e0
leaq 0x8606(%rip), %rsi      # 0x2ca7b
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7508
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x7683
movq 0x188(%rbx), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7683
cmpq $0x0, -0x90(%rbp)
je 0x244e0
leaq 0x85d3(%rip), %rsi      # 0x2ca86
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7508
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x7683
movq %rbx, %rdi
movq %r14, %rsi
movq -0x90(%rbp), %rdx
callq 0x7683
movq %rbx, %rdi
movq -0x78(%rbp), %rsi
movq %r14, %rdx
callq 0x876e
movl %eax, %r14d
xorl $0x1, %r14d
jmp 0x244fc
movq -0x30(%rbp), %rbx
movq -0x40(%rbp), %r12
jmp 0x24508
movl $0x1, %r14d
testl %r14d, %r14d
je 0x24524
movq -0x70(%rbp), %rsi
testq %rsi, %rsi
movq -0x48(%rbp), %rax
je 0x24528
movq %rbx, %rdi
callq 0x908a
jmp 0x24528
movq -0x48(%rbp), %rax
testq %r12, %r12
je 0x24589
movq %rax, %r15
movq (%rbx), %r14
incl 0x10(%r14)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x908a
movl %eax, %r12d
testl %eax, %eax
jne 0x2456c
incl 0x10(%r14)
movq (%rbx), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x24566
movq %rbx, %rdi
callq 0x758c
movq %r14, (%rbx)
movl %r15d, %r12d
movl 0x10(%r14), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%r14)
cmpl $0x1, %eax
jg 0x2458c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x758c
jmp 0x2458c
movl %eax, %r12d
cmpl $0x0, -0x64(%rbp)
je 0x2459a
movl %r12d, %r14d
jmp 0x242aa
movslq %r12d, %rbx
movq -0x30(%rbp), %rdi
callq 0xae38
movq %rax, %r14
leaq 0x10d40(%rip), %rax     # 0x352f0
movq %rax, 0x8(%r14)
movq $0x0, (%r14)
movq %rbx, 0x18(%r14)
movq -0x30(%rbp), %rbx
incl 0x10(%r14)
movq (%rbx), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0x245e0
movq %rbx, %rdi
callq 0x758c
movq %r14, (%rbx)
xorl %r14d, %r14d
jmp 0x242aa