// File: /workspace/github_c_makefile_star2_O3/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 $0x2a8, %rsp            # imm = 0x2A8
movq %rsi, %r12
incl 0x10(%rsi)
movq %rdi, %r13
movq 0x8(%rsi), %rax
leaq 0x27b5a(%rip), %rcx     # 0x35450
cmpq %rcx, %rax
je 0xd921
leaq 0x278e6(%rip), %rcx     # 0x351e8
cmpq %rcx, %rax
je 0xd92b
leaq 0x27902(%rip), %rcx     # 0x35210
cmpq %rcx, %rax
je 0xd937
leaq 0x128(%r13), %rax
movl $0x1, %ebx
jmp 0xd949
movq 0x18(%r12), %r15
jmp 0xdfc3
leaq 0x18(%r12), %rax
movl 0x20(%r12), %ebx
jmp 0xd949
movq %r13, %rdi
movq %r12, %rsi
callq 0xb679
movl 0x1c(%rax), %ebx
addq $0x8, %rax
movq %r13, -0x78(%rbp)
movq (%rax), %rax
movq %rax, -0x88(%rbp)
incl 0x10(%rax)
movq (%r12), %rax
testq %rax, %rax
jne 0xd972
movq 0x8(%r12), %rax
movq %r12, %rdi
callq *0x18(%rax)
movq (%r12), %rax
movq %r12, -0x80(%rbp)
movl 0x14(%r12), %ecx
leaq -0x2b8(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq $0x14, -0x8(%rdx)
leaq -0x70(%rbp), %rdx
movq %rax, (%rdx)
movl %ecx, 0x8(%rdx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdx)
movups %xmm0, 0x20(%rdx)
movl %ebx, 0xc(%rdx)
movabsq $0x2000000001, %rax     # imm = 0x2000000001
movq %rax, 0x30(%rdx)
movl %ebx, 0x38(%rdx)
movq %rdx, %rbx
callq 0x64e0
movq %rax, %r13
movq $0x0, -0x30(%rbp)
movq -0x70(%rbp), %r15
movl -0x64(%rbp), %eax
movl -0x68(%rbp), %r8d
leal -0x1(%r8), %ecx
xorl %r12d, %r12d
movq (%r13), %rsi
movzbl (%r15,%r12), %edx
testb $0x20, 0x1(%rsi,%rdx,2)
jne 0xd9fb
cmpl $0x5c, %edx
jne 0xda1a
cmpb $0xa, 0x1(%r15,%r12)
je 0xda05
jmp 0xda29
cmpl $0xa, %edx
jne 0xda05
incl %eax
movl %eax, -0x64(%rbp)
leaq (%r15,%r12), %rdx
incq %rdx
movq %rdx, -0x70(%rbp)
movl %ecx, -0x68(%rbp)
decl %ecx
incq %r12
jmp 0xd9dc
cmpl $0x23, %edx
jne 0xda29
movq %rbx, %rdi
callq 0x17fe0
jmp 0xd9ca
movl %eax, -0x50(%rbp)
leaq (%r15,%r12), %r14
movq %r14, -0x60(%rbp)
cmpl %r12d, %r8d
jne 0xda50
movq %r14, -0x58(%rbp)
movabsq $0x100000007, %rax      # imm = 0x100000007
movq %rax, -0x4c(%rbp)
jmp 0xdbeb
movzbl (%r14), %edx
cmpl $0x65, %edx
jg 0xdafb
leal -0x22(%rdx), %esi
cmpl $0x2c, %esi
ja 0xdc18
leaq 0x19648(%rip), %rdi     # 0x270b8
movslq (%rdi,%rsi,4), %rdx
addq %rdi, %rdx
jmpq *%rdx
movl $0xe, -0x4c(%rbp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0xd4a0
movq -0x70(%rbp), %rbx
movsbl (%rbx), %esi
movl $0x8, %edx
leaq 0x1e470(%rip), %rdi     # 0x2bf0e
callq 0x6290
testq %rax, %rax
setne %al
movq -0x60(%rbp), %rdi
cmpq %rdi, %rbx
sete %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0xdbd0
leaq -0xd8(%rbp), %rsi
callq 0x6120
movq -0xd8(%rbp), %rbx
movq -0x60(%rbp), %rdi
cmpq %rdi, %rbx
je 0xdbc6
movq -0x70(%rbp), %rax
cmpq %rax, %rbx
jbe 0xdbcd
movl $0xf, -0x4c(%rbp)
movq %rbx, -0x70(%rbp)
jmp 0xdbd0
cmpl $0x73, %edx
jg 0xdb4d
addl $-0x66, %edx
cmpl $0x9, %edx
ja 0xdb87
leaq 0x1965d(%rip), %rcx     # 0x2716c
movslq (%rcx,%rdx,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r8, -0x90(%rbp)
xorl %ebx, %ebx
leaq 0x28708(%rip), %rax     # 0x36230
movq (%rbx,%rax), %rdi
movl $0x3, %edx
movq %r14, %rsi
callq 0x60b0
testl %eax, %eax
je 0xdb91
addq $0x8, %rbx
cmpq $0x30, %rbx
jne 0xdb21
leaq -0x70(%rbp), %rbx
jmp 0xdb7b
cmpl $0x74, %edx
je 0xdb7b
cmpl $0x79, %edx
je 0xdb7b
cmpl $0x7b, %edx
jne 0xdb87
leaq (%r15,%r12), %rcx
incq %rcx
movq %rcx, -0x60(%rbp)
movl %eax, -0x50(%rbp)
movl $0x1, -0x4c(%rbp)
movq %rbx, %rdi
callq 0x18039
jmp 0xdbeb
movq %rbx, %rdi
callq 0x197c4
testl %eax, %eax
je 0xdbeb
movq %rbx, %rdi
callq 0x1967c
jmp 0xdbe3
leaq (%r15,%r12), %rax
addq $0x3, %rax
movq %rax, -0x70(%rbp)
movq -0x90(%rbp), %rax
subl %r12d, %eax
addl $-0x3, %eax
movl %eax, -0x68(%rbp)
leaq (%r15,%r12), %rax
addq $0x2, %rax
movq %rax, -0x58(%rbp)
movl $0xf, -0x4c(%rbp)
leaq -0x70(%rbp), %rbx
jmp 0xdbeb
movl $0x1, %eax
jmp 0xdbdf
movq %rax, %rbx
leaq -0x1(%rbx), %rax
movq %rax, -0x58(%rbp)
subl %ebx, %edi
addl %edi, -0x68(%rbp)
xorl %eax, %eax
leaq -0x70(%rbp), %rbx
testl %eax, %eax
jne 0xdf1c
movq -0x60(%rbp), %rsi
movl -0x58(%rbp), %edx
subl %esi, %edx
incl %edx
movl -0x4c(%rbp), %ecx
movl -0x50(%rbp), %r8d
leaq -0x2c8(%rbp), %rdi
callq 0x17b02
cmpl $0x0, -0x48(%rbp)
je 0xd9c2
jmp 0xdca7
cmpl $0x5b, %edx
jne 0xdb87
leaq (%r15,%r12), %rcx
incq %rcx
movq %rcx, -0x60(%rbp)
movl %eax, -0x50(%rbp)
movl $0x5, -0x4c(%rbp)
movq %rbx, %rdi
callq 0x180df
jmp 0xdbeb
movl $0xb, %eax
jmp 0xdc8d
leaq (%r15,%r12), %rcx
incq %rcx
movq %rcx, -0x60(%rbp)
movl %eax, -0x50(%rbp)
movq %rbx, %rdi
callq 0x1820f
movl %eax, -0x4c(%rbp)
jmp 0xdbeb
movq %rbx, %rdi
callq 0x17dd5
testl %eax, %eax
jne 0xdb87
cmpl $0x11, -0x4c(%rbp)
jne 0xdbeb
jmp 0xdf11
movl $0xc, %eax
jmp 0xdc8d
movl $0xd, %eax
movl %eax, -0x4c(%rbp)
movq %r14, -0x58(%rbp)
leaq (%r15,%r12), %rax
incq %rax
movq %rax, -0x70(%rbp)
movl %ecx, -0x68(%rbp)
jmp 0xdbeb
cmpl $0x1, -0x2bc(%rbp)
jg 0xdcf2
leaq 0x1e175(%rip), %rsi     # 0x2be2c
movq -0x78(%rbp), %r13
movq %r13, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7508
movq %rax, %r14
incl 0x10(%rax)
movq (%r13), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
movq -0x80(%rbp), %r12
jg 0xdcec
movq %r13, %rdi
callq 0x758c
movq %r14, (%r13)
jmp 0xdd09
movl -0x3c(%rbp), %esi
movq -0x78(%rbp), %r13
movq %r13, %rdi
callq 0x10945
testl %eax, %eax
movq -0x80(%rbp), %r12
je 0xdd4a
movq -0x2c8(%rbp), %rdi
leaq -0x2b8(%rbp), %rax
cmpq %rax, %rdi
je 0xdd24
xorl %esi, %esi
callq *0x29564(%rip)          # 0x37288
movq -0x88(%rbp), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0xe008
movq %r13, %rdi
callq 0x758c
jmp 0xe008
leaq -0xd8(%rbp), %r14
movq $0x0, (%r14)
movq -0x2c8(%rbp), %rax
movq %rax, 0x10(%r14)
movq %rax, 0x8(%r14)
movq %r12, 0x28(%r14)
movq -0x88(%rbp), %rax
movq %rax, 0x30(%r14)
movslq -0x2bc(%rbp), %rax
leaq (%rax,%rax,4), %rax
leaq -0x28(,%rax,8), %rsi
xorl %edi, %edi
callq *0x294f7(%rip)          # 0x37288
movq %rax, %r15
movq %rax, 0x38(%r14)
movslq -0x2bc(%rbp), %rax
leaq (%rax,%rax,4), %rax
leaq -0x28(,%rax,8), %rdx
movq %r15, %rdi
xorl %esi, %esi
callq 0x6240
movq %r15, 0x40(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r14)
movq %r13, %rdi
movq %r14, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0x1a900
testl %eax, %eax
jne 0xde45
movslq -0xc0(%rbp), %rax
testq %rax, %rax
je 0xddfe
leaq -0x1(%rax), %rcx
movl %ecx, -0xc0(%rbp)
movq -0xb8(%rbp), %rcx
movq -0x8(%rcx,%rax,8), %rbx
jmp 0xde00
xorl %ebx, %ebx
cmpl $0x0, -0xd8(%rbp)
je 0xde9e
leaq 0x1e112(%rip), %rsi     # 0x2bf26
movq %r13, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7508
movq %rax, %r14
incl 0x10(%rax)
movq (%r13), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0xde41
movq %r13, %rdi
callq 0x758c
movq %r14, (%r13)
movq -0xb8(%rbp), %rdi
xorl %r15d, %r15d
xorl %esi, %esi
callq *0x29431(%rip)          # 0x37288
movq -0xa0(%rbp), %rsi
movq -0x98(%rbp), %rax
subq %rsi, %rax
shrq $0x3, %rax
imull $0xcccccccd, %eax, %edx # imm = 0xCCCCCCCD
movq %r13, %rdi
callq 0x1af64
movq -0x2c8(%rbp), %rdi
leaq -0x2b8(%rbp), %rax
cmpq %rax, %rdi
je 0xdf7a
xorl %esi, %esi
callq *0x293ef(%rip)          # 0x37288
jmp 0xdf7a
movq -0xb8(%rbp), %rdi
xorl %esi, %esi
callq *0x293db(%rip)          # 0x37288
movl $0x18, %esi
xorl %edi, %edi
callq *0x293ce(%rip)          # 0x37288
movq %rax, %r15
movl $0x1, 0x14(%rax)
movq %rbx, (%rax)
movq -0xa0(%rbp), %rax
movq %rax, 0x8(%r15)
movq -0x98(%rbp), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
imull $0xcccccccd, %ecx, %eax # imm = 0xCCCCCCCD
movl %eax, 0x10(%r15)
cmpl %eax, -0x2bc(%rbp)
jg 0xde7a
leaq 0x1e047(%rip), %rdi     # 0x2bf40
leaq 0x1ccab(%rip), %rsi     # 0x2abab
leaq 0x1e05b(%rip), %rcx     # 0x2bf62
movl $0x3b0d, %edx           # imm = 0x3B0D
callq 0x6220
leaq 0x1df25(%rip), %rax     # 0x2be3d
movq %rax, -0x30(%rbp)
movq -0x2c8(%rbp), %rdi
leaq -0x2b8(%rbp), %rax
cmpq %rax, %rdi
je 0xdf37
xorl %esi, %esi
callq *0x29351(%rip)          # 0x37288
leaq 0x1decc(%rip), %rsi     # 0x2be0a
xorl %r15d, %r15d
movq -0x78(%rbp), %r13
movq %r13, %rdi
movq -0x80(%rbp), %r12
movq %r12, %rdx
xorl %eax, %eax
callq 0x6923
movq -0x30(%rbp), %rcx
testq %rcx, %rcx
je 0xdf7a
movq (%r13), %rsi
leaq 0x1d0fa(%rip), %rdx     # 0x2b064
xorl %r15d, %r15d
movq %r13, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0xafd1
movq -0x88(%rbp), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x1, %eax
jg 0xdf97
movq %r13, %rdi
callq 0x758c
movq 0x8(%r12), %rax
testq %rax, %rax
je 0xdfb2
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xdfb2
movq %r13, %rdi
movq %r12, %rsi
callq *%rax
movq %r15, 0x18(%r12)
leaq 0x27492(%rip), %rax     # 0x35450
movq %rax, 0x8(%r12)
testq %r15, %r15
je 0xe008
incl 0x14(%r15)
movq (%r15), %rsi
movq %r13, %rdi
callq 0xfb5a
movl %eax, %r14d
movq 0x8(%r12), %rax
testq %rax, %rax
je 0xdff5
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xdff5
movq %r13, %rdi
movq %r12, %rsi
callq *%rax
leaq 0x27454(%rip), %rax     # 0x35450
movq %rax, 0x8(%r12)
movq %r15, 0x18(%r12)
jmp 0xe00e
movl $0x1, %r14d
movl 0x10(%r12), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%r12)
cmpl $0x1, %eax
jg 0xe02b
movq %r13, %rdi
movq %r12, %rsi
callq 0x758c
movl %r14d, %eax
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq