// File: /workspace/github_c_makefile_star2_O0/msteveb[P]autosetup/./jimsh0.c
// Function: JimParseExprOperator
static int JimParseExprOperator(struct JimParserCtx *pc)
{
    int i;
    const struct Jim_ExprOperator *bestOp = NULL;
    int bestLen = 0;


    for (i = 0; i < (signed)JIM_EXPR_OPERATORS_NUM; i++) {
        const struct Jim_ExprOperator *op = &Jim_ExprOperators[i];

        if (op->name[0] != pc->p[0]) {
            continue;
        }

        if (op->namelen > bestLen && strncmp(op->name, pc->p, op->namelen) == 0) {
            bestOp = op;
            bestLen = op->namelen;
        }
    }
    if (bestOp == NULL) {
        return JIM_ERR;
    }


    if (bestOp->attr & OP_FUNC) {
        const char *p = pc->p + bestLen;
        int len = pc->len - bestLen;

        while (len && isspace(UCHAR(*p))) {
            len--;
            p++;
        }
        if (*p != '(') {
            pc->errmsg = "function requires parentheses";
            return JIM_ERR;
        }
    }
    pc->tend = pc->p + bestLen - 1;
    pc->p += bestLen;
    pc->len -= bestLen;

    pc->tt = (bestOp - Jim_ExprOperators) + JIM_TT_EXPR_OP;
    return JIM_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq $0x0, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movl $0x0, -0x14(%rbp)
cmpl $0x2a, -0x14(%rbp)
jge 0x221ee
movslq -0x14(%rbp), %rcx
leaq 0x24d49(%rip), %rax     # 0x46ec0
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
movsbl (%rcx), %ecx
cmpl %ecx, %eax
je 0x2219c
jmp 0x221e0
movq -0x30(%rbp), %rax
movzbl 0x13(%rax), %eax
cmpl -0x24(%rbp), %eax
jle 0x221de
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x30(%rbp), %rax
movzbl 0x13(%rax), %eax
movl %eax, %edx
callq 0x60b0
cmpl $0x0, %eax
jne 0x221de
movq -0x30(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x30(%rbp), %rax
movzbl 0x13(%rax), %eax
movl %eax, -0x24(%rbp)
jmp 0x221e0
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x22162
cmpq $0x0, -0x20(%rbp)
jne 0x22201
movl $0x1, -0x4(%rbp)
jmp 0x22311
movq -0x20(%rbp), %rax
movzbl 0x12(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x222a9
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x24(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
subl -0x24(%rbp), %eax
movl %eax, -0x3c(%rbp)
xorl %eax, %eax
cmpl $0x0, -0x3c(%rbp)
movb %al, -0x3d(%rbp)
je 0x22263
callq 0x64f0
movq (%rax), %rax
movq -0x38(%rbp), %rcx
movzbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x2000, %eax           # imm = 0x2000
cmpl $0x0, %eax
setne %al
movb %al, -0x3d(%rbp)
movb -0x3d(%rbp), %al
testb $0x1, %al
jne 0x2226c
jmp 0x22283
movl -0x3c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x3c(%rbp)
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
jmp 0x22234
movq -0x38(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x28, %eax
je 0x222a7
movq -0x10(%rbp), %rax
leaq 0x19f89(%rip), %rcx     # 0x3c223
movq %rcx, 0x40(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x22311
jmp 0x222a9
movq -0x10(%rbp), %rax
movq (%rax), %rcx
movslq -0x24(%rbp), %rax
addq %rax, %rcx
addq $-0x1, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movl -0x24(%rbp), %edx
movq -0x10(%rbp), %rax
movq (%rax), %rcx
movslq %edx, %rdx
addq %rdx, %rcx
movq %rcx, (%rax)
movl -0x24(%rbp), %edx
movq -0x10(%rbp), %rax
movl 0x8(%rax), %ecx
subl %edx, %ecx
movl %ecx, 0x8(%rax)
movq -0x20(%rbp), %rax
leaq 0x24bd0(%rip), %rcx     # 0x46ec0
subq %rcx, %rax
movl $0x18, %ecx
cqto
idivq %rcx
addq $0x14, %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x24(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)