// File: /workspace/github_c_makefile_star2_O3/AK6DN[P]dec-utilities-for-pdp/macro8x/macro8x.c
// Function: getExpr
SYM_T *getExpr()
{
  delimiter = line[lexterm];

  if( line[lexstart] == '-' )
  {
    nextLexBlank();
    sym_getexpr = *(eval());
    sym_getexpr.val = ( - sym_getexpr.val );
  }
  else
  {
    sym_getexpr = *(eval());
  }


  if( is_blank( delimiter ))
  {
    return( &sym_getexpr );
  }

  /* Here we assume the current lexeme is the operator separating the         */
  /* previous operator from the next, if any.                                 */
  while( TRUE )
  {
    /* assert line[lexstart] == delimiter                                     */
    if( is_blank( delimiter ))
    {
      return( &sym_getexpr );
    }

    switch( line[lexstart] )
    {
    case '+':                   /* add                                        */
      nextLexBlank();           /* skip over the operator                     */
      sym_getexpr.val += (eval())->val;
      break;

    case '-':                   /* subtract                                   */
      nextLexBlank();           /* skip over the operator                     */
      sym_getexpr.val -= (eval())->val;
      break;

    case '^':                   /* multiply                                   */
      nextLexBlank();           /* skip over the operator                     */
      sym_getexpr.val *= (eval())->val;
      break;

    case '%':                   /* divide                                     */
      nextLexBlank();           /* skip over the operator                     */
      sym_getexpr.val /= (eval())->val;
      break;

    case '&':                   /* and                                        */
      nextLexBlank();           /* skip over the operator                     */
      sym_getexpr.val &= (eval())->val;
      break;

    case '!':                   /* or                                         */
      nextLexBlank();           /* skip over the operator                     */
      sym_getexpr.val |= (eval())->val;
      break;

    default:
      if( is_end( line[lexstart] ))
      {
        return( &sym_getexpr );
      }

      switch( line[lexstart] )
      {
      case '/':
      case ';':
      case ')':
      case ']':
      case '<':
      case ':':
      case ',':
        break;

      case '=':
        errorMessage( &illegal_equals, lexstart );
        moveToEndOfLine();
        sym_getexpr.val = 0;
        break;

      default:
        errorMessage( &illegal_expression, lexstart );
        moveToEndOfLine();
        sym_getexpr.val = 0;
        break;
      }
      return( &sym_getexpr );
    }
  } /* end while                                                              */
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq 0x15014(%rip), %rax     # 0x18c18
leaq 0x14c15(%rip), %rbx     # 0x18820
movb (%rax,%rbx), %al
movb %al, 0x1500c(%rip)      # 0x18c20
movq 0x14fed(%rip), %rax     # 0x18c08
cmpb $0x2d, (%rax,%rbx)
jne 0x3c54
callq 0x43d7
callq 0x586a
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups %xmm1, 0x8f8f(%rip)     # 0xcbc8
movups %xmm0, 0x8f78(%rip)     # 0xcbb8
movq 0x20(%rax), %rax
movq %rax, 0x8f8d(%rip)      # 0xcbd8
negq 0x8f76(%rip)            # 0xcbc8
jmp 0x3c79
callq 0x586a
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups %xmm0, 0x8f51(%rip)     # 0xcbb8
movups %xmm1, 0x8f5a(%rip)     # 0xcbc8
movq 0x20(%rax), %rax
movq %rax, 0x8f5f(%rip)      # 0xcbd8
movzbl 0x14fa0(%rip), %eax     # 0x18c20
movabsq $0x4000000100001200, %r14 # imm = 0x4000000100001200
cmpq $0x3e, %rax
ja 0x3ca3
btq %rax, %r14
jae 0x3ca3
leaq 0x8f1b(%rip), %rax      # 0xcbb8
popq %rbx
popq %r14
popq %r15
retq
leaq 0x4396(%rip), %r15      # 0x8040
cmpb $0x3e, %al
ja 0x3cb7
movzbl %al, %eax
btq %rax, %r14
jb 0x3c96
movq 0x14f4a(%rip), %rsi     # 0x18c08
movzbl (%rsi,%rbx), %eax
cmpl $0x5c, %eax
jg 0x3cf9
leal -0x21(%rax), %ecx
cmpl $0x1c, %ecx
ja 0x3d97
movslq (%r15,%rcx,4), %rax
addq %r15, %rax
jmpq *%rax
callq 0x43d7
callq 0x586a
movq %rax, %rcx
movq 0x8ed8(%rip), %rax      # 0xcbc8
orq 0x10(%rcx), %rax
jmp 0x3d85
cmpl $0x5e, %eax
jne 0x3daa
callq 0x43d7
callq 0x586a
movq %rax, %rcx
movq 0x8eb2(%rip), %rax      # 0xcbc8
imulq 0x10(%rcx), %rax
jmp 0x3d85
callq 0x43d7
callq 0x586a
movq %rax, %rcx
movq 0x8e97(%rip), %rax      # 0xcbc8
subq 0x10(%rcx), %rax
jmp 0x3d85
callq 0x43d7
callq 0x586a
movq %rax, %rcx
movq 0x8e7d(%rip), %rax      # 0xcbc8
cqto
idivq 0x10(%rcx)
jmp 0x3d85
callq 0x43d7
callq 0x586a
movq %rax, %rcx
movq 0x8e61(%rip), %rax      # 0xcbc8
andq 0x10(%rcx), %rax
jmp 0x3d85
callq 0x43d7
callq 0x586a
movq %rax, %rcx
movq 0x8e47(%rip), %rax      # 0xcbc8
addq 0x10(%rcx), %rax
movq %rax, 0x8e3c(%rip)      # 0xcbc8
movb 0x14e8e(%rip), %al      # 0x18c20
jmp 0x3caa
testl %eax, %eax
je 0x3c96
cmpl $0xa, %eax
je 0x3c96
jmp 0x3db3
cmpl $0x5d, %eax
je 0x3c96
leaq 0x8bf6(%rip), %rdi      # 0xc9b0
callq 0x5cac
movq 0x14e6a(%rip), %rax     # 0x18c30
movzbl (%rax,%rbx), %ecx
testl %ecx, %ecx
je 0x3e0b
cmpl $0xa, %ecx
je 0x3e0b
incq %rax
movq %rax, 0x14e53(%rip)     # 0x18c30
jmp 0x3dc6
leaq 0x8c1a(%rip), %rdi      # 0xca00
callq 0x5cac
movq 0x14e3e(%rip), %rax     # 0x18c30
movzbl (%rax,%rbx), %ecx
testl %ecx, %ecx
je 0x3e0b
cmpl $0xa, %ecx
je 0x3e0b
incq %rax
movq %rax, 0x14e27(%rip)     # 0x18c30
jmp 0x3df2
movq %rax, 0x14df6(%rip)     # 0x18c08
movq %rax, 0x14dff(%rip)     # 0x18c18
movq %rax, 0x14e08(%rip)     # 0x18c28
movq $0x0, 0x8d9d(%rip) # 0xcbc8
jmp 0x3c96