// File: /workspace/github_c_makefile_star2_O3/AK6DN[P]dec-utilities-for-pdp/macro8x/macro8x.c
// Function: inputDubl
void inputDubl()
{
  WORD32 dublvalue;
  BOOL   scanning_line;

  scanning_line = TRUE;
  do
  {
    while( scanning_line )
    {
      if( is_end( line[lexstart] ))
      {
        scanning_line = FALSE;
      }
      else
      {
        switch( line[lexstart] )
        {
        case '/':
          scanning_line = FALSE;
          break;

        case ';':
          nextLexeme();
          break;

        case '+':
          delimiter = line[lexterm];
          nextLexBlank();
        case '-':
        default:
          if( is_digit( line[lexstart] ) || line[lexstart] == '-' )
          {
            dublvalue = getDublExprs();
            punchOutObject( clc, (WORD32)(( dublvalue >> 12 ) & 07777 ));
            incrementClc();
            punchOutObject( clc, (WORD32)( dublvalue & 07777 ));
            incrementClc();
          }
          else
          {
            return;             /* Non-numeric input, back to assembly.       */
          }
          break;
        } /* end switch                                                       */
      } /* end if                                                             */

      if( error_in_line )
      {
        return;                 /* Error occurred, exit DUBL input mode.      */
      }
    } /* end while( scanning_line )                                           */
    readLine();
    nextLexeme();
    scanning_line = TRUE;
  }
  while( TRUE );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movb $0x1, %al
leaq 0x12aa0(%rip), %rbx     # 0x18820
movl $0xfff, %ebp            # imm = 0xFFF
movl $0x7000, %r13d          # imm = 0x7000
testb %al, %al
jne 0x5d9d
callq 0x381e
callq 0x3ad6
movb $0x1, %al
jmp 0x5d8b
movq 0x12e64(%rip), %rax     # 0x18c08
movzbl (%rax,%rbx), %r14d
xorl %eax, %eax
testl %r14d, %r14d
je 0x5eed
cmpl $0xa, %r14d
je 0x5eed
movsbl %r14b, %eax
addl $-0x2b, %eax
je 0x5de4
rorl %eax
cmpl $0x2, %eax
je 0x5ddd
cmpl $0x8, %eax
jne 0x5e04
callq 0x3ad6
jmp 0x5eeb
xorl %eax, %eax
jmp 0x5eed
movq 0x12e2d(%rip), %rax     # 0x18c18
movb (%rax,%rbx), %al
movb %al, 0x12e2c(%rip)      # 0x18c20
callq 0x43d7
movq 0x12e08(%rip), %rax     # 0x18c08
movb (%rax,%rbx), %r14b
callq 0x21a0
cmpb $0x2d, %r14b
je 0x5e25
movq (%rax), %rax
movsbq %r14b, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x800, %eax            # imm = 0x800
je 0x5efa
callq 0x5f09
movq %rax, %r14
movq 0x1117c(%rip), %r15     # 0x16fb0
movl %r14d, %r12d
shrl $0xc, %r12d
andl %ebp, %r12d
movq 0x11173(%rip), %rsi     # 0x16fb8
orq %r15, %rsi
movq %rbx, %rdi
movq %r12, %rdx
movl $0x2, %ecx
callq 0x3f83
movq %r15, %rdi
movq %r12, %rsi
callq 0x6be8
movq 0x11146(%rip), %rdi     # 0x16fb0
callq 0x68fe
movq 0x1113a(%rip), %rax     # 0x16fb0
movq %rax, %r15
andq %r13, %r15
incl %eax
andl %ebp, %eax
orq %rax, %r15
movq %r15, 0x11126(%rip)     # 0x16fb0
movq %rax, 0x1112f(%rip)     # 0x16fc0
andl $0xfff, %r14d           # imm = 0xFFF
movq 0x11119(%rip), %rsi     # 0x16fb8
orq %r15, %rsi
movq %rbx, %rdi
movq %r14, %rdx
movl $0x2, %ecx
callq 0x3f83
movq %r15, %rdi
movq %r14, %rsi
callq 0x6be8
movq 0x110ec(%rip), %rdi     # 0x16fb0
callq 0x68fe
movq 0x110e0(%rip), %rax     # 0x16fb0
movq %rax, %rcx
andq %r13, %rcx
incl %eax
andl %ebp, %eax
orq %rax, %rcx
movq %rcx, 0x110cc(%rip)     # 0x16fb0
movq %rax, 0x110d5(%rip)     # 0x16fc0
movb $0x1, %al
cmpb $0x0, 0x12d1c(%rip)     # 0x18c10
je 0x5d8b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq