// File: /workspace/github_c_makefile_star2_O2/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 0x14182(%rip), %rax     # 0x17c08
leaq 0x13d83(%rip), %rbx     # 0x17810
movb (%rax,%rbx), %al
movb %al, 0x1417a(%rip)      # 0x17c10
movq 0x1415b(%rip), %rax     # 0x17bf8
cmpb $0x2d, (%rax,%rbx)
jne 0x3ad6
callq 0x4164
callq 0x5330
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups %xmm1, 0x80fd(%rip)     # 0xbbb8
movups %xmm0, 0x80e6(%rip)     # 0xbba8
movq 0x20(%rax), %rax
movq %rax, 0x80fb(%rip)      # 0xbbc8
negq 0x80e4(%rip)            # 0xbbb8
jmp 0x3afb
callq 0x5330
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups %xmm0, 0x80bf(%rip)     # 0xbba8
movups %xmm1, 0x80c8(%rip)     # 0xbbb8
movq 0x20(%rax), %rax
movq %rax, 0x80cd(%rip)      # 0xbbc8
movzbl 0x1410e(%rip), %eax     # 0x17c10
movabsq $0x4000000100001200, %r14 # imm = 0x4000000100001200
cmpq $0x3e, %rax
ja 0x3b25
btq %rax, %r14
jae 0x3b25
leaq 0x8089(%rip), %rax      # 0xbba8
popq %rbx
popq %r14
popq %r15
retq
leaq 0x3514(%rip), %r15      # 0x7040
cmpb $0x3e, %al
ja 0x3b39
movzbl %al, %eax
btq %rax, %r14
jb 0x3b18
movq 0x140b8(%rip), %rsi     # 0x17bf8
movzbl (%rsi,%rbx), %eax
leal -0x21(%rax), %ecx
cmpl $0x1c, %ecx
ja 0x3b72
movslq (%r15,%rcx,4), %rax
addq %r15, %rax
jmpq *%rax
callq 0x4164
callq 0x5330
movq %rax, %rcx
movq 0x804f(%rip), %rax      # 0xbbb8
orq 0x10(%rcx), %rax
jmp 0x3bfe
cmpl $0x5e, %eax
jne 0x3c10
callq 0x4164
callq 0x5330
movq %rax, %rcx
movq 0x8029(%rip), %rax      # 0xbbb8
imulq 0x10(%rcx), %rax
jmp 0x3bfe
callq 0x4164
callq 0x5330
movq %rax, %rcx
movq 0x800e(%rip), %rax      # 0xbbb8
andq 0x10(%rcx), %rax
jmp 0x3bfe
callq 0x4164
callq 0x5330
movq %rax, %rcx
movq 0x7ff4(%rip), %rax      # 0xbbb8
cqto
idivq 0x10(%rcx)
jmp 0x3bfe
callq 0x4164
callq 0x5330
movq %rax, %rcx
movq 0x7fd8(%rip), %rax      # 0xbbb8
subq 0x10(%rcx), %rax
jmp 0x3bfe
callq 0x4164
callq 0x5330
movq %rax, %rcx
movq 0x7fbe(%rip), %rax      # 0xbbb8
addq 0x10(%rcx), %rax
movq %rax, 0x7fb3(%rip)      # 0xbbb8
movb 0x14005(%rip), %al      # 0x17c10
jmp 0x3b2c
testl %eax, %eax
je 0x3b18
cmpl $0xa, %eax
je 0x3b18
cmpl $0x5d, %eax
je 0x3b18
leaq 0x7d6f(%rip), %rdi      # 0xb9a0
jmp 0x3c3a
leaq 0x7db6(%rip), %rdi      # 0xb9f0
callq 0x565f
callq 0x56e2
andq $0x0, 0x7f6c(%rip)      # 0xbbb8
jmp 0x3b18