// File: /workspace/github_c_makefile_star2_O3/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 $0x18, %rsp
movq %rsi, %r13
movq %rdi, %rbx
movq 0x10(%rsi), %rsi
callq 0xfb5a
movl %eax, %r12d
testl %eax, %eax
jne 0x19a81
movq (%rbx), %r15
incl 0x10(%r15)
movq 0x18(%r13), %rsi
movq %rbx, %rdi
callq 0xfb5a
testl %eax, %eax
je 0x198a1
movl %eax, %r12d
movl 0x10(%r15), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%r15)
movq %r15, %r14
jmp 0x19a71
movq (%rbx), %r14
incl 0x10(%r14)
movq 0x8(%r15), %rax
leaq 0x1ba8d(%rip), %rcx     # 0x35340
cmpq %rcx, %rax
jne 0x198be
cmpq $0x0, (%r15)
je 0x19915
movq 0x8(%r14), %rcx
leaq 0x1ba77(%rip), %rdx     # 0x35340
cmpq %rdx, %rcx
jne 0x198d4
cmpq $0x0, (%r14)
je 0x19915
leaq 0x1ba15(%rip), %r12     # 0x352f0
cmpq %r12, %rax
je 0x198f5
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0xd6c3
testl %eax, %eax
jne 0x19915
movq 0x8(%r14), %rcx
movq 0x18(%r15), %rdi
cmpq %r12, %rcx
je 0x19974
movq %rdi, %r12
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xd6c3
movq %r12, %rdi
testl %eax, %eax
je 0x19974
leaq -0x38(%rbp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe040
testl %eax, %eax
jne 0x1993b
leaq -0x30(%rbp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe040
testl %eax, %eax
je 0x1999e
movq %r15, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xb312
movl %eax, %r12d
movl (%r13), %eax
addl $-0x1d, %eax
cmpl $0x5, %eax
ja 0x19a93
leaq 0xd9ba(%rip), %rcx      # 0x2731c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
shrl $0x1f, %r12d
jmp 0x19a06
movq 0x18(%r14), %r12
movl (%r13), %ecx
leal -0x14(%rcx), %eax
cmpl $0x16, %eax
ja 0x19a9b
leaq 0xd931(%rip), %rcx      # 0x272c0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
imulq %rdi, %r12
jmp 0x19a06
movl (%r13), %eax
movl $0x1, %r12d
leal -0x14(%rax), %ecx
cmpl $0x16, %ecx
ja 0x19ac7
leaq 0xd979(%rip), %rax      # 0x27334
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movsd -0x38(%rbp), %xmm0
mulsd -0x30(%rbp), %xmm0
jmp 0x19c4e
xorl %eax, %eax
testl %r12d, %r12d
sete %al
jmp 0x19a03
xorl %eax, %eax
testl %r12d, %r12d
setle %al
jmp 0x19a03
xorl %eax, %eax
testl %r12d, %r12d
setns %al
jmp 0x19a03
xorl %eax, %eax
testl %r12d, %r12d
setg %al
jmp 0x19a03
xorl %eax, %eax
testl %r12d, %r12d
setne %al
movq %rax, %r12
movq %rbx, %rdi
callq 0xae38
movq %rax, %r13
leaq 0x1b8d8(%rip), %rax     # 0x352f0
movq %rax, 0x8(%r13)
movq $0x0, (%r13)
movq %r12, 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 0x19a48
movq %rbx, %rdi
callq 0x758c
movq %r13, (%rbx)
movl 0x10(%r15), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%r15)
cmpl $0x1, %eax
jg 0x19a66
movq %rbx, %rdi
movq %r15, %rsi
callq 0x758c
movl 0x10(%r14), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%r14)
cmpl $0x2, %eax
jge 0x19a81
movq %rbx, %rdi
movq %r14, %rsi
callq 0x758c
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %r12d
jmp 0x19a4b
cmpl $0x4e, %ecx
jne 0x19915
testq %rdi, %rdi
sete %al
testq %r12, %r12
sets %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x19b91
leaq 0x12406(%rip), %rsi     # 0x2bec8
jmp 0x19ba5
addl $-0x44, %eax
cmpl $0xc, %eax
ja 0x19a4b
movl $0x1c01, %ecx           # imm = 0x1C01
btl %eax, %ecx
jae 0x19a4b
leaq 0x1241a(%rip), %rsi     # 0x2bf02
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7508
movq %rax, %r13
incl 0x10(%rax)
movq (%rbx), %rsi
movl 0x10(%rsi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rsi)
jmp 0x19a3b
xorl %eax, %eax
cmpq %r12, %rdi
jmp 0x199f6
xorl %eax, %eax
cmpq %r12, %rdi
setl %al
jmp 0x19a03
subq %r12, %rdi
movq %rdi, %r12
jmp 0x19a06
testq %r12, %r12
je 0x19b9e
movq %rdi, %rax
negq %rax
testq %r12, %r12
cmovnsq %rdi, %rax
movq %r12, %rcx
negq %rcx
cmovsq %r12, %rcx
cqto
idivq %rcx
movq %rdx, %r12
sarq $0x3f, %r12
addq %rax, %r12
jmp 0x19a06
xorl %eax, %eax
cmpq %r12, %rdi
jmp 0x199e2
addq %rdi, %r12
jmp 0x19a06
xorl %eax, %eax
cmpq %r12, %rdi
jmp 0x19a00
xorl %eax, %eax
cmpq %r12, %rdi
jmp 0x199d8
xorl %eax, %eax
cmpq %r12, %rdi
setge %al
jmp 0x19a03
movq %r12, %rsi
callq 0x1a664
jmp 0x19a03
leaq 0x1234c(%rip), %rsi     # 0x2bef1
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x7508
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 0x19a3b
movsd -0x38(%rbp), %xmm0
addsd -0x30(%rbp), %xmm0
jmp 0x19c4e
movsd -0x30(%rbp), %xmm0
cmpeqsd -0x38(%rbp), %xmm0
jmp 0x19c8c
movsd -0x30(%rbp), %xmm0
xorl %r12d, %r12d
ucomisd -0x38(%rbp), %xmm0
jmp 0x19cbd
movsd -0x30(%rbp), %xmm0
xorl %r12d, %r12d
ucomisd -0x38(%rbp), %xmm0
jmp 0x19ca7
movsd -0x30(%rbp), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
movsd -0x38(%rbp), %xmm2
jne 0x19cc6
jp 0x19cc6
xorl %eax, %eax
ucomisd %xmm2, %xmm1
seta %al
leaq 0xd3e3(%rip), %rcx      # 0x27020
movsd (%rcx,%rax,8), %xmm0
jmp 0x19c4e
movsd -0x38(%rbp), %xmm0
subsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
movq %rbx, %rdi
callq 0xae38
movq %rax, %r13
leaq 0x1b6db(%rip), %rax     # 0x35340
movq %rax, 0x8(%r13)
movq $0x0, (%r13)
movsd -0x40(%rbp), %xmm0
movsd %xmm0, 0x18(%r13)
jmp 0x19a28
movsd -0x30(%rbp), %xmm0
cmpneqsd -0x38(%rbp), %xmm0
movq %xmm0, %r12
andl $0x1, %r12d
jmp 0x19a06
movsd -0x38(%rbp), %xmm0
xorl %r12d, %r12d
ucomisd -0x30(%rbp), %xmm0
seta %r12b
jmp 0x19a06
movsd -0x38(%rbp), %xmm0
xorl %r12d, %r12d
ucomisd -0x30(%rbp), %xmm0
setae %r12b
jmp 0x19a06
divsd %xmm0, %xmm2
movsd %xmm2, -0x40(%rbp)
jmp 0x19c53