// File: /workspace/github_c_makefile_star2_O1/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 0x11b75(%rip), %rbx     # 0x17820
movl $0xfff, %ebp            # imm = 0xFFF
movl $0x7000, %r13d          # imm = 0x7000
testb %al, %al
jne 0x5cc8
callq 0x37ea
callq 0x3ab5
movb $0x1, %al
jmp 0x5cb6
movq 0x11f39(%rip), %rax     # 0x17c08
movzbl (%rax,%rbx), %ecx
xorl %eax, %eax
testl %ecx, %ecx
je 0x5e11
cmpl $0xa, %ecx
je 0x5e11
movsbl %cl, %eax
addl $-0x2b, %eax
je 0x5d0b
rorl %eax
cmpl $0x2, %eax
je 0x5d04
cmpl $0x8, %eax
jne 0x5d20
callq 0x3ab5
jmp 0x5e0f
xorl %eax, %eax
jmp 0x5e11
movq 0x11f06(%rip), %rax     # 0x17c18
movb (%rax,%rbx), %al
movb %al, 0x11f05(%rip)      # 0x17c20
callq 0x43c9
callq 0x21a0
movq 0x11edc(%rip), %rcx     # 0x17c08
movsbq (%rcx,%rbx), %rcx
cmpq $0x2d, %rcx
je 0x5d49
movq (%rax), %rax
movzwl (%rax,%rcx,2), %eax
andl $0x800, %eax            # imm = 0x800
je 0x5e1e
callq 0x5e2d
movq %rax, %r14
movq 0x10258(%rip), %r15     # 0x15fb0
movl %r14d, %r12d
shrl $0xc, %r12d
andl %ebp, %r12d
movq 0x1024f(%rip), %rsi     # 0x15fb8
orq %r15, %rsi
movq %rbx, %rdi
movq %r12, %rdx
movl $0x2, %ecx
callq 0x3f6b
movq %r15, %rdi
movq %r12, %rsi
callq 0x6b33
movq 0x10222(%rip), %rdi     # 0x15fb0
callq 0x6843
movq 0x10216(%rip), %rax     # 0x15fb0
movq %rax, %r15
andq %r13, %r15
incl %eax
andl %ebp, %eax
orq %rax, %r15
movq %r15, 0x10202(%rip)     # 0x15fb0
movq %rax, 0x1020b(%rip)     # 0x15fc0
andl $0xfff, %r14d           # imm = 0xFFF
movq 0x101f5(%rip), %rsi     # 0x15fb8
orq %r15, %rsi
movq %rbx, %rdi
movq %r14, %rdx
movl $0x2, %ecx
callq 0x3f6b
movq %r15, %rdi
movq %r14, %rsi
callq 0x6b33
movq 0x101c8(%rip), %rdi     # 0x15fb0
callq 0x6843
movq 0x101bc(%rip), %rax     # 0x15fb0
movq %rax, %rcx
andq %r13, %rcx
incl %eax
andl %ebp, %eax
orq %rax, %rcx
movq %rcx, 0x101a8(%rip)     # 0x15fb0
movq %rax, 0x101b1(%rip)     # 0x15fc0
movb $0x1, %al
cmpb $0x0, 0x11df8(%rip)     # 0x17c10
je 0x5cb6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq