// File: /workspace/github_c_makefile_star2_O1/msteveb[P]autosetup/./jimsh0.c
// Function: Jim_EvalExpression
int Jim_EvalExpression(Jim_Interp *interp, Jim_Obj *exprObjPtr)
{
    struct ExprTree *expr;
    int retcode = JIM_OK;

    Jim_IncrRefCount(exprObjPtr);
    expr = JimGetExpression(interp, exprObjPtr);
    if (!expr) {
        retcode = JIM_ERR;
        goto done;
    }

#ifdef JIM_OPTIMIZATION
    if (!interp->safeexpr) {
        Jim_Obj *objPtr;


        switch (expr->len) {
            case 1:
                objPtr = JimExprIntValOrVar(interp, expr->expr);
                if (objPtr) {
                    Jim_SetResult(interp, objPtr);
                    goto done;
                }
                break;

            case 2:
                if (expr->expr->type == JIM_EXPROP_NOT) {
                    objPtr = JimExprIntValOrVar(interp, expr->expr->left);

                    if (objPtr && JimIsWide(objPtr)) {
                        Jim_SetResult(interp, JimWideValue(objPtr) ? interp->falseObj : interp->trueObj);
                        goto done;
                    }
                }
                break;

            case 3:
                objPtr = JimExprIntValOrVar(interp, expr->expr->left);
                if (objPtr && JimIsWide(objPtr)) {
                    Jim_Obj *objPtr2 = JimExprIntValOrVar(interp, expr->expr->right);
                    if (objPtr2 && JimIsWide(objPtr2)) {
                        jim_wide wideValueA = JimWideValue(objPtr);
                        jim_wide wideValueB = JimWideValue(objPtr2);
                        int cmpRes;
                        switch (expr->expr->type) {
                            case JIM_EXPROP_LT:
                                cmpRes = wideValueA < wideValueB;
                                break;
                            case JIM_EXPROP_LTE:
                                cmpRes = wideValueA <= wideValueB;
                                break;
                            case JIM_EXPROP_GT:
                                cmpRes = wideValueA > wideValueB;
                                break;
                            case JIM_EXPROP_GTE:
                                cmpRes = wideValueA >= wideValueB;
                                break;
                            case JIM_EXPROP_NUMEQ:
                                cmpRes = wideValueA == wideValueB;
                                break;
                            case JIM_EXPROP_NUMNE:
                                cmpRes = wideValueA != wideValueB;
                                break;
                            default:
                                goto noopt;
                        }
                        Jim_SetResult(interp, cmpRes ? interp->trueObj : interp->falseObj);
                        goto done;
                    }
                }
                break;
        }
    }
noopt:
#endif

    expr->inUse++;


    retcode = JimExprEvalTermNode(interp, expr->expr);


    Jim_FreeIntRep(interp, exprObjPtr);
    exprObjPtr->typePtr = &exprObjType;
    Jim_SetIntRepPtr(exprObjPtr, expr);

done:
    Jim_DecrRefCount(interp, exprObjPtr);

    return retcode;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x298, %rsp            # imm = 0x298
movq %rsi, %rbx
incl 0x10(%rsi)
movq %rdi, %r13
movq 0x8(%rsi), %rax
leaq 0x28b3b(%rip), %r12     # 0x36440
cmpq %r12, %rax
je 0xdfdf
leaq 0x288c3(%rip), %rcx     # 0x361d8
cmpq %rcx, %rax
je 0xd935
leaq 0x288df(%rip), %rcx     # 0x36200
cmpq %rcx, %rax
je 0xd93f
leaq 0x128(%r13), %rax
movl $0x1, %r14d
jmp 0xd952
leaq 0x18(%rbx), %rax
movl 0x20(%rbx), %r14d
jmp 0xd952
movq %r13, %rdi
movq %rbx, %rsi
callq 0xb66b
movl 0x1c(%rax), %r14d
addq $0x8, %rax
movq (%rax), %rax
movq %rax, -0x80(%rbp)
incl 0x10(%rax)
cmpq $0x0, (%rbx)
jne 0xd96c
movq 0x8(%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movl 0x14(%rbx), %eax
movq %rbx, -0x78(%rbp)
movq (%rbx), %rcx
leaq -0x2b0(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq $0x14, -0x8(%rdx)
movq %rcx, -0x70(%rbp)
movl %eax, -0x68(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, -0x50(%rbp)
movups %xmm0, -0x60(%rbp)
movl %r14d, -0x64(%rbp)
movabsq $0x2000000001, %rax     # imm = 0x2000000001
movq %rax, -0x40(%rbp)
movl %r14d, -0x38(%rbp)
cmpl $0x0, -0x48(%rbp)
je 0xda65
cmpl $0x1, -0x2b4(%rbp)
jg 0xda09
leaq 0x1f4bf(%rip), %rsi     # 0x2ce8a
movq %r13, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7516
movq %rax, %r15
incl 0x10(%rax)
movq (%r13), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0xd9f8
movq %r13, %rdi
callq 0x759a
movq %r15, (%r13)
leaq 0x28a3d(%rip), %r12     # 0x36440
movq -0x78(%rbp), %rbx
jmp 0xda27
movl -0x3c(%rbp), %esi
movq %r13, %rdi
callq 0x10a87
testl %eax, %eax
leaq 0x28a23(%rip), %r12     # 0x36440
movq -0x78(%rbp), %rbx
je 0xddc5
movq -0x2c0(%rbp), %rdi
leaq -0x2b0(%rbp), %rax
cmpq %rax, %rdi
je 0xda42
xorl %esi, %esi
callq *0x2a846(%rip)          # 0x38288
movq -0x80(%rbp), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0xdfe5
movq %r13, %rdi
callq 0x759a
jmp 0xdfe5
callq 0x64e0
movq %rax, %r12
leaq -0x70(%rbp), %rbx
movq %r13, -0x88(%rbp)
movq $0x0, -0x30(%rbp)
movl -0x68(%rbp), %eax
movl -0x64(%rbp), %ecx
decl %eax
movq (%r12), %rsi
movq -0x70(%rbp), %r15
movzbl (%r15), %edx
testb $0x20, 0x1(%rsi,%rdx,2)
jne 0xdaa7
cmpl $0x5c, %edx
jne 0xdabd
cmpb $0xa, 0x1(%r15)
jne 0xdabd
cmpl $0xa, %edx
jne 0xdab1
incl %ecx
movl %ecx, -0x64(%rbp)
incq %r15
movq %r15, -0x70(%rbp)
movl %eax, -0x68(%rbp)
jmp 0xda86
cmpl $0x23, %edx
jne 0xdacc
movq %rbx, %rdi
callq 0x184de
jmp 0xda80
movl -0x68(%rbp), %r14d
movl -0x64(%rbp), %eax
movl %eax, -0x50(%rbp)
movq %r15, -0x60(%rbp)
testl %r14d, %r14d
je 0xdb92
movzbl (%r15), %ecx
cmpl $0x65, %ecx
jg 0xdbdd
leal -0x22(%rcx), %edx
cmpl $0x2c, %edx
ja 0xdcb2
leaq 0x1a5b5(%rip), %rsi     # 0x280b8
movslq (%rsi,%rdx,4), %rcx
addq %rsi, %rcx
jmpq *%rcx
movl $0xe, -0x4c(%rbp)
movq %r15, %rdi
movq %rbx, %rsi
callq 0xd4a4
movq -0x70(%rbp), %r14
movsbl (%r14), %esi
movl $0x8, %edx
leaq 0x1f43a(%rip), %rdi     # 0x2cf6c
callq 0x6290
testq %rax, %rax
setne %al
movq -0x60(%rbp), %rdi
cmpq %rdi, %r14
sete %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0xdb7c
leaq -0xd0(%rbp), %rsi
callq 0x6120
movq -0xd0(%rbp), %rax
cmpq -0x60(%rbp), %rax
je 0xdd4d
cmpq -0x70(%rbp), %rax
jbe 0xdb7c
movl $0xf, -0x4c(%rbp)
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
leaq -0x1(%rax), %rcx
movq %rcx, -0x58(%rbp)
movl -0x60(%rbp), %ecx
subl %eax, %ecx
addl %ecx, -0x68(%rbp)
jmp 0xdba4
movq %r15, -0x58(%rbp)
movabsq $0x100000007, %rax      # imm = 0x100000007
movq %rax, -0x4c(%rbp)
xorl %r15d, %r15d
testl %r15d, %r15d
jne 0xdd58
movq -0x60(%rbp), %rsi
movl -0x58(%rbp), %edx
subl %esi, %edx
incl %edx
movl -0x4c(%rbp), %ecx
movl -0x50(%rbp), %r8d
leaq -0x2c0(%rbp), %rdi
callq 0x18041
cmpl $0x0, -0x48(%rbp)
je 0xda78
jmp 0xd9bb
cmpl $0x73, %ecx
jg 0xdc2a
addl $-0x66, %ecx
cmpl $0x9, %ecx
ja 0xdd02
leaq 0x1a577(%rip), %rdx     # 0x2816c
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
jmpq *%rax
xorl %r13d, %r13d
leaq 0x29628(%rip), %rax     # 0x37230
movq (%r13,%rax), %rdi
movl $0x3, %edx
movq %r15, %rsi
callq 0x60b0
testl %eax, %eax
je 0xdc70
addq $0x8, %r13
cmpq $0x30, %r13
jne 0xdc01
jmp 0xdc8f
cmpl $0x74, %ecx
je 0xdc5b
cmpl $0x79, %ecx
je 0xdc5b
cmpl $0x7b, %ecx
jne 0xdd02
incq %r15
movq %r15, -0x60(%rbp)
movl %eax, -0x50(%rbp)
movl $0x1, -0x4c(%rbp)
movq %rbx, %rdi
callq 0x1852d
jmp 0xdba4
movq %rbx, %rdi
callq 0x19c69
testl %eax, %eax
jne 0xdd02
jmp 0xdba4
leaq 0x3(%r15), %rcx
movq %rcx, -0x70(%rbp)
addl $-0x3, %r14d
movl %r14d, -0x68(%rbp)
addq $0x2, %r15
movq %r15, -0x58(%rbp)
movl $0xf, -0x4c(%rbp)
xorl %r15d, %r15d
testl %eax, %eax
movq -0x88(%rbp), %r13
je 0xdba7
movq %rbx, %rdi
callq 0x19c69
testl %eax, %eax
jne 0xdd02
jmp 0xdba7
cmpl $0x5b, %ecx
jne 0xdd02
incq %r15
movq %r15, -0x60(%rbp)
movl %eax, -0x50(%rbp)
movl $0x5, -0x4c(%rbp)
movq %rbx, %rdi
callq 0x185da
jmp 0xdba4
movl $0xb, %eax
jmp 0xdd1e
incq %r15
movq %r15, -0x60(%rbp)
movl %eax, -0x50(%rbp)
movq %rbx, %rdi
callq 0x186e0
movl %eax, -0x4c(%rbp)
jmp 0xdba4
movq %rbx, %rdi
callq 0x18311
testl %eax, %eax
je 0xdd38
movq %rbx, %rdi
callq 0x19b44
movl %eax, %r15d
jmp 0xdba7
movl $0xc, %eax
jmp 0xdd1e
movl $0xd, %eax
movl %eax, -0x4c(%rbp)
movq %r15, -0x58(%rbp)
incq %r15
movq %r15, -0x70(%rbp)
decl %r14d
movl %r14d, -0x68(%rbp)
jmp 0xdba4
cmpl $0x11, -0x4c(%rbp)
jne 0xdba4
leaq 0x1f152(%rip), %rax     # 0x2ce9b
movq %rax, -0x30(%rbp)
movl $0x1, %r15d
jmp 0xdba7
movq -0x2c0(%rbp), %rdi
leaq -0x2b0(%rbp), %rax
cmpq %rax, %rdi
leaq 0x286d0(%rip), %r12     # 0x36440
je 0xdd7a
xorl %esi, %esi
callq *0x2a50e(%rip)          # 0x38288
leaq 0x1f0e7(%rip), %rsi     # 0x2ce68
xorl %r14d, %r14d
movq %r13, %rdi
movq -0x78(%rbp), %rbx
movq %rbx, %rdx
xorl %eax, %eax
callq 0x692d
movq -0x30(%rbp), %rcx
testq %rcx, %rcx
je 0xde80
movq (%r13), %rsi
leaq 0x1e30f(%rip), %rdx     # 0x2c0bc
xorl %r15d, %r15d
movq %r13, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0xafef
xorl %r14d, %r14d
jmp 0xdf9e
leaq -0xd0(%rbp), %r15
movq $0x0, (%r15)
movq -0x2c0(%rbp), %rax
movq %rax, 0x10(%r15)
movq %rax, 0x8(%r15)
movq %rbx, 0x28(%r15)
movq -0x80(%rbp), %rax
movq %rax, 0x30(%r15)
movslq -0x2b4(%rbp), %rax
leaq (%rax,%rax,4), %rax
leaq -0x28(,%rax,8), %rsi
xorl %r12d, %r12d
xorl %edi, %edi
callq *0x2a47c(%rip)          # 0x38288
movq %rax, 0x38(%r15)
movslq -0x2b4(%rbp), %rcx
leaq (%rcx,%rcx,4), %rcx
leaq -0x28(,%rcx,8), %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0x6240
movq 0x38(%r15), %rax
movq %rax, 0x40(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r15)
movq %r13, %rdi
movq %r15, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0x1ae9d
movl $0x0, %r14d
testl %eax, %eax
jne 0xded4
movslq -0xb8(%rbp), %rax
testq %rax, %rax
je 0xde88
leaq -0x1(%rax), %rcx
movl %ecx, -0xb8(%rbp)
movq -0xb0(%rbp), %rcx
movq -0x8(%rcx,%rax,8), %r14
jmp 0xde8b
xorl %r15d, %r15d
jmp 0xdf9e
xorl %r14d, %r14d
cmpl $0x0, -0xd0(%rbp)
je 0xded1
leaq 0x1f0e9(%rip), %rsi     # 0x2cf84
movq %r13, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7516
movq %rax, %r15
incl 0x10(%rax)
movq (%r13), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0xdec8
movq %r13, %rdi
callq 0x759a
movq %r15, (%r13)
xorl %r12d, %r12d
jmp 0xded4
movb $0x1, %r12b
movq -0xb0(%rbp), %rdi
xorl %esi, %esi
callq *0x2a3a5(%rip)          # 0x38288
testb %r12b, %r12b
je 0xdf53
movl $0x18, %esi
xorl %edi, %edi
callq *0x2a393(%rip)          # 0x38288
movq %rax, %r15
movl $0x1, 0x14(%rax)
movq %r14, (%rax)
movq -0x98(%rbp), %rax
movq %rax, 0x8(%r15)
movq -0x90(%rbp), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
imull $0xcccccccd, %ecx, %eax # imm = 0xCCCCCCCD
movl %eax, 0x10(%r15)
cmpl %eax, -0x2b4(%rbp)
leaq 0x2850e(%rip), %r12     # 0x36440
jg 0xdf80
leaq 0x1f063(%rip), %rdi     # 0x2cf9e
leaq 0x1dcc1(%rip), %rsi     # 0x2bc03
leaq 0x1f077(%rip), %rcx     # 0x2cfc0
movl $0x3b0d, %edx           # imm = 0x3B0D
callq 0x6220
movq -0x98(%rbp), %rsi
movq -0x90(%rbp), %rax
subq %rsi, %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %edx # imm = 0xCCCCCCCD
movq %r13, %rdi
callq 0x1b570
xorl %r15d, %r15d
leaq 0x284c0(%rip), %r12     # 0x36440
movq -0x2c0(%rbp), %rdi
movb $0x1, %r14b
leaq -0x2b0(%rbp), %rax
cmpq %rax, %rdi
je 0xdf9e
xorl %esi, %esi
callq *0x2a2ea(%rip)          # 0x38288
movq -0x80(%rbp), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0xdfb8
movq %r13, %rdi
callq 0x759a
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0xdfd2
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xdfd2
movq %r13, %rdi
movq %rbx, %rsi
callq *%rax
movq %r15, 0x18(%rbx)
movq %r12, 0x8(%rbx)
testb %r14b, %r14b
je 0xdfe5
movq 0x18(%rbx), %r14
jmp 0xdfe8
xorl %r14d, %r14d
testq %r14, %r14
je 0xe023
incl 0x14(%r14)
movq (%r14), %rsi
movq %r13, %rdi
callq 0xfb9b
movl %eax, %r15d
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0xe019
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xe019
movq %r13, %rdi
movq %rbx, %rsi
callq *%rax
movq %r12, 0x8(%rbx)
movq %r14, 0x18(%rbx)
jmp 0xe029
movl $0x1, %r15d
movl 0x10(%rbx), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rbx)
cmpl $0x1, %eax
jg 0xe042
movq %r13, %rdi
movq %rbx, %rsi
callq 0x759a
movl %r15d, %eax
addq $0x298, %rsp            # imm = 0x298
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq