// File: /workspace/github_c_makefile_star2_O1/msteveb[P]autosetup/./jimsh0.c
// Function: JimExprOpBin
static int JimExprOpBin(Jim_Interp *interp, struct JimExprNode *node)
{
    int rc = JIM_OK;
    double dA, dB, dC = 0;
    jim_wide wA, wB, wC = 0;
    Jim_Obj *A, *B;

    if ((rc = JimExprGetTerm(interp, node->left, &A)) != JIM_OK) {
        return rc;
    }
    if ((rc = JimExprGetTerm(interp, node->right, &B)) != JIM_OK) {
        Jim_DecrRefCount(interp, A);
        return rc;
    }

    if ((A->typePtr != &doubleObjType || A->bytes) &&
        (B->typePtr != &doubleObjType || B->bytes) &&
        JimGetWideNoErr(interp, A, &wA) == JIM_OK && JimGetWideNoErr(interp, B, &wB) == JIM_OK) {



        switch (node->type) {
            case JIM_EXPROP_POW:
            case JIM_EXPROP_FUNC_POW:
                if (wA == 0 && wB < 0) {
                    Jim_SetResultString(interp, "exponentiation of zero by negative power", -1);
                    rc = JIM_ERR;
                    goto done;
                }
                wC = JimPowWide(wA, wB);
                goto intresult;
            case JIM_EXPROP_ADD:
                wC = wA + wB;
                goto intresult;
            case JIM_EXPROP_SUB:
                wC = wA - wB;
                goto intresult;
            case JIM_EXPROP_MUL:
                wC = wA * wB;
                goto intresult;
            case JIM_EXPROP_DIV:
                if (wB == 0) {
                    Jim_SetResultString(interp, "Division by zero", -1);
                    rc = JIM_ERR;
                    goto done;
                }
                else {
                    if (wB < 0) {
                        wB = -wB;
                        wA = -wA;
                    }
                    wC = wA / wB;
                    if (wA % wB < 0) {
                        wC--;
                    }
                    goto intresult;
                }
            case JIM_EXPROP_LT:
                wC = wA < wB;
                goto intresult;
            case JIM_EXPROP_GT:
                wC = wA > wB;
                goto intresult;
            case JIM_EXPROP_LTE:
                wC = wA <= wB;
                goto intresult;
            case JIM_EXPROP_GTE:
                wC = wA >= wB;
                goto intresult;
            case JIM_EXPROP_NUMEQ:
                wC = wA == wB;
                goto intresult;
            case JIM_EXPROP_NUMNE:
                wC = wA != wB;
                goto intresult;
        }
    }
    if (Jim_GetDouble(interp, A, &dA) == JIM_OK && Jim_GetDouble(interp, B, &dB) == JIM_OK) {
        switch (node->type) {
#ifndef JIM_MATH_FUNCTIONS
            case JIM_EXPROP_POW:
            case JIM_EXPROP_FUNC_POW:
            case JIM_EXPROP_FUNC_ATAN2:
            case JIM_EXPROP_FUNC_HYPOT:
            case JIM_EXPROP_FUNC_FMOD:
                Jim_SetResultString(interp, "unsupported", -1);
                rc = JIM_ERR;
                goto done;
#else
            case JIM_EXPROP_POW:
            case JIM_EXPROP_FUNC_POW:
                dC = pow(dA, dB);
                goto doubleresult;
            case JIM_EXPROP_FUNC_ATAN2:
                dC = atan2(dA, dB);
                goto doubleresult;
            case JIM_EXPROP_FUNC_HYPOT:
                dC = hypot(dA, dB);
                goto doubleresult;
            case JIM_EXPROP_FUNC_FMOD:
                dC = fmod(dA, dB);
                goto doubleresult;
#endif
            case JIM_EXPROP_ADD:
                dC = dA + dB;
                goto doubleresult;
            case JIM_EXPROP_SUB:
                dC = dA - dB;
                goto doubleresult;
            case JIM_EXPROP_MUL:
                dC = dA * dB;
                goto doubleresult;
            case JIM_EXPROP_DIV:
                if (dB == 0) {
#ifdef INFINITY
                    dC = dA < 0 ? -INFINITY : INFINITY;
#else
                    dC = (dA < 0 ? -1.0 : 1.0) * strtod("Inf", NULL);
#endif
                }
                else {
                    dC = dA / dB;
                }
                goto doubleresult;
            case JIM_EXPROP_LT:
                wC = dA < dB;
                goto intresult;
            case JIM_EXPROP_GT:
                wC = dA > dB;
                goto intresult;
            case JIM_EXPROP_LTE:
                wC = dA <= dB;
                goto intresult;
            case JIM_EXPROP_GTE:
                wC = dA >= dB;
                goto intresult;
            case JIM_EXPROP_NUMEQ:
                wC = dA == dB;
                goto intresult;
            case JIM_EXPROP_NUMNE:
                wC = dA != dB;
                goto intresult;
        }
    }
    else {



        int i = Jim_StringCompareObj(interp, A, B, 0);

        switch (node->type) {
            case JIM_EXPROP_LT:
                wC = i < 0;
                goto intresult;
            case JIM_EXPROP_GT:
                wC = i > 0;
                goto intresult;
            case JIM_EXPROP_LTE:
                wC = i <= 0;
                goto intresult;
            case JIM_EXPROP_GTE:
                wC = i >= 0;
                goto intresult;
            case JIM_EXPROP_NUMEQ:
                wC = i == 0;
                goto intresult;
            case JIM_EXPROP_NUMNE:
                wC = i != 0;
                goto intresult;
        }
    }

    rc = JIM_ERR;
done:
    Jim_DecrRefCount(interp, A);
    Jim_DecrRefCount(interp, B);
    return rc;
intresult:
    Jim_SetResultInt(interp, wC);
    goto done;
doubleresult:
    Jim_SetResult(interp, Jim_NewDoubleObj(interp, dC));
    goto done;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r13
movq %rdi, %rbx
movq 0x10(%rsi), %rsi
callq 0xfb9b
movl %eax, %r12d
testl %eax, %eax
jne 0x19d1c
movq (%rbx), %r14
incl 0x10(%r14)
testl %r12d, %r12d
jne 0x1a08e
movq 0x18(%r13), %rsi
movq %rbx, %rdi
callq 0xfb9b
movl %eax, %r12d
testl %eax, %eax
jne 0x19d3e
movq (%rbx), %rcx
incl 0x10(%rcx)
testl %r12d, %r12d
je 0x19d56
movl 0x10(%r14), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%r14)
movq %r14, %rsi
jmp 0x1a081
movq 0x8(%r14), %rax
leaq 0x1c5cf(%rip), %r12     # 0x36330
cmpq %r12, %rax
movq %rcx, -0x38(%rbp)
jne 0x19d74
cmpq $0x0, (%r14)
je 0x19e3b
cmpq %r12, 0x8(%rcx)
jne 0x19d84
cmpq $0x0, (%rcx)
je 0x19e3b
leaq 0x1c555(%rip), %r15     # 0x362e0
cmpq %r15, %rax
je 0x19daa
xorl %r12d, %r12d
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xd6d7
movq -0x38(%rbp), %rcx
testl %eax, %eax
je 0x19daa
jmp 0x19db5
movq 0x18(%r14), %rax
movq %rax, -0x30(%rbp)
movb $0x1, %r12b
testb %r12b, %r12b
leaq 0x1c571(%rip), %r12     # 0x36330
je 0x19e3b
cmpq %r15, 0x8(%rcx)
je 0x19de2
xorl %r15d, %r15d
movq %rbx, %rdi
movq -0x38(%rbp), %rsi
xorl %edx, %edx
callq 0xd6d7
movq -0x38(%rbp), %rcx
testl %eax, %eax
je 0x19de2
jmp 0x19de9
movq 0x18(%rcx), %rdx
movb $0x1, %r15b
testb %r15b, %r15b
je 0x19e3b
movl (%r13), %ecx
leal -0x14(%rcx), %eax
cmpl $0x16, %eax
ja 0x19e14
leaq 0xe4e3(%rip), %rcx      # 0x282e4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
imulq -0x30(%rbp), %rdx
jmp 0x1a00d
cmpl $0x4e, %ecx
jne 0x19e3b
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
jne 0x1a002
testq %rdx, %rdx
jns 0x1a002
leaq 0x130f0(%rip), %rsi     # 0x2cf26
jmp 0x1a194
leaq -0x48(%rbp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe057
testl %eax, %eax
jne 0x19e62
leaq -0x40(%rbp), %rdx
movq %rbx, %rdi
movq -0x38(%rbp), %rsi
callq 0xe057
testl %eax, %eax
je 0x19ea0
xorl %r15d, %r15d
movq %r14, %rsi
movq -0x38(%rbp), %rdx
xorl %ecx, %ecx
callq 0xb302
movl %eax, %edx
movl (%r13), %eax
addl $-0x1d, %eax
cmpl $0x5, %eax
ja 0x19f2f
leaq 0xe4b4(%rip), %rcx      # 0x28340
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
shrl $0x1f, %edx
movl $0x6, %r15d
jmp 0x19f0c
movq %r12, %rdx
movl (%r13), %eax
movl $0x1, %r12d
leal -0x14(%rax), %ecx
cmpl $0x16, %ecx
ja 0x19f33
leaq 0xe49c(%rip), %rax      # 0x28358
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
movq -0x38(%rbp), %rsi
jmpq *%rcx
movsd -0x48(%rbp), %xmm0
mulsd -0x40(%rbp), %xmm0
jmp 0x1a11d
xorl %eax, %eax
testl %edx, %edx
sete %al
jmp 0x19f03
xorl %eax, %eax
testl %edx, %edx
setle %al
jmp 0x19f03
xorl %eax, %eax
testl %edx, %edx
setns %al
jmp 0x19f03
xorl %eax, %eax
testl %edx, %edx
setg %al
jmp 0x19f03
xorl %eax, %eax
testl %edx, %edx
setne %al
movl $0x6, %r15d
movq %rax, %rdx
movq -0x38(%rbp), %rsi
testl %r15d, %r15d
je 0x19f24
cmpl $0x6, %r15d
je 0x1a00d
jmp 0x1a08e
movl $0x1, %r12d
jmp 0x1a059
xorl %edx, %edx
jmp 0x19f0c
addl $-0x44, %eax
cmpl $0xc, %eax
movq -0x38(%rbp), %rsi
ja 0x1a059
movl $0x1c01, %ecx           # imm = 0x1C01
btl %eax, %ecx
jae 0x1a059
leaq 0x13008(%rip), %rsi     # 0x2cf60
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7516
movq %rax, %r13
incl 0x10(%rax)
movq (%rbx), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
jmp 0x1a045
xorl %eax, %eax
cmpq %rdx, -0x30(%rbp)
setg %al
jmp 0x1a00a
xorl %eax, %eax
cmpq %rdx, -0x30(%rbp)
setl %al
jmp 0x1a00a
movq -0x30(%rbp), %rax
subq %rdx, %rax
jmp 0x1a00a
testq %rdx, %rdx
je 0x1a18d
movq -0x30(%rbp), %rcx
movq %rcx, %rax
negq %rax
testq %rdx, %rdx
cmovnsq %rcx, %rax
movq %rdx, %rcx
negq %rcx
cmovsq %rdx, %rcx
cqto
idivq %rcx
sarq $0x3f, %rdx
addq %rax, %rdx
jmp 0x1a00d
xorl %eax, %eax
cmpq %rdx, -0x30(%rbp)
setle %al
jmp 0x1a00a
addq -0x30(%rbp), %rdx
jmp 0x1a00d
xorl %eax, %eax
cmpq %rdx, -0x30(%rbp)
setne %al
jmp 0x1a00a
xorl %eax, %eax
cmpq %rdx, -0x30(%rbp)
sete %al
jmp 0x1a00a
xorl %eax, %eax
cmpq %rdx, -0x30(%rbp)
setge %al
jmp 0x1a00a
movq %rdx, %rsi
callq 0x1abff
movq %rax, %rdx
movq %rbx, %rdi
movq %rdx, %r15
callq 0xae58
movq %rax, %r13
leaq 0x1c2be(%rip), %rax     # 0x362e0
movq %rax, 0x8(%r13)
movq $0x0, (%r13)
movq %r15, 0x18(%r13)
incl 0x10(%r13)
movq (%rbx), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
xorl %r12d, %r12d
cmpl $0x2, %eax
jge 0x1a052
movq %rbx, %rdi
callq 0x759a
movq %r13, (%rbx)
movq -0x38(%rbp), %rsi
movl 0x10(%r14), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%r14)
cmpl $0x1, %eax
jg 0x1a078
movq %rbx, %rdi
movq %r14, %rsi
callq 0x759a
movq -0x38(%rbp), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
cmpl $0x2, %eax
jge 0x1a08e
movq %rbx, %rdi
callq 0x759a
movl %r12d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movsd -0x48(%rbp), %xmm0
addsd -0x40(%rbp), %xmm0
jmp 0x1a11d
movsd -0x40(%rbp), %xmm0
cmpeqsd -0x48(%rbp), %xmm0
jmp 0x1a158
movsd -0x40(%rbp), %xmm0
xorl %edx, %edx
ucomisd -0x48(%rbp), %xmm0
jmp 0x1a185
movsd -0x40(%rbp), %xmm0
xorl %edx, %edx
ucomisd -0x48(%rbp), %xmm0
jmp 0x1a171
movsd -0x40(%rbp), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
movsd -0x48(%rbp), %xmm2
jne 0x1a1be
jp 0x1a1be
xorl %eax, %eax
ucomisd %xmm2, %xmm1
seta %al
leaq 0xdf14(%rip), %rcx      # 0x28020
movsd (%rcx,%rax,8), %xmm0
jmp 0x1a11d
movsd -0x48(%rbp), %xmm0
subsd -0x40(%rbp), %xmm0
movsd %xmm0, -0x30(%rbp)
movq %rdx, %r15
movq %rbx, %rdi
callq 0xae58
movq %rax, %r13
movq %r15, 0x8(%rax)
movq $0x0, (%rax)
movsd -0x30(%rbp), %xmm0
movsd %xmm0, 0x18(%rax)
incl 0x10(%rax)
jmp 0x1a036
movsd -0x40(%rbp), %xmm0
cmpneqsd -0x48(%rbp), %xmm0
movq %xmm0, %rdx
andl $0x1, %edx
jmp 0x1a00d
movsd -0x48(%rbp), %xmm0
xorl %edx, %edx
ucomisd -0x40(%rbp), %xmm0
seta %dl
jmp 0x1a00d
movsd -0x48(%rbp), %xmm0
xorl %edx, %edx
ucomisd -0x40(%rbp), %xmm0
setae %dl
jmp 0x1a00d
leaq 0x12dbb(%rip), %rsi     # 0x2cf4f
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7516
movq %rax, %r13
incl 0x10(%rax)
movq (%rbx), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
movl $0x1, %r12d
jmp 0x1a045
divsd %xmm0, %xmm2
movsd %xmm2, -0x30(%rbp)
jmp 0x1a122