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

  scanning_line = TRUE;
  do
  {
    while( scanning_line )
    {
      if( isend( 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( isdigit( line[lexstart] ) || line[lexstart] == '-' )
          {
            dublvalue = getDublExprs();
            punchOutObject( clc, (WORD16)(( dublvalue >> 12 ) & 07777 ));
            incrementClc();
            punchOutObject( clc, (WORD16)( 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 0x7c08(%rip), %rbx      # 0xd790
movl $0xfff, %r12d           # imm = 0xFFF
movl $0x7000, %r13d          # imm = 0x7000
testb %al, %al
jne 0x5ba6
callq 0x3a5d
callq 0x3b84
movb $0x1, %al
jmp 0x5b94
movslq 0x7c67(%rip), %rax      # 0xd814
movzbl (%rax,%rbx), %ecx
xorl %eax, %eax
testl %ecx, %ecx
je 0x5cfb
cmpl $0xa, %ecx
je 0x5cfb
movsbl %cl, %eax
addl $-0x2b, %eax
je 0x5be9
rorl %eax
cmpl $0x2, %eax
je 0x5be2
cmpl $0x8, %eax
jne 0x5bfe
callq 0x3b84
jmp 0x5cf9
xorl %eax, %eax
jmp 0x5cfb
movslq 0x7c2c(%rip), %rax      # 0xd81c
movb (%rax,%rbx), %al
movb %al, 0x7c27(%rip)       # 0xd820
callq 0x4498
callq 0x21c0
movslq 0x7c0a(%rip), %rcx      # 0xd814
movsbq (%rcx,%rbx), %rcx
cmpq $0x2d, %rcx
je 0x5c27
movq (%rax), %rax
movzwl (%rax,%rcx,2), %eax
andl $0x800, %eax            # imm = 0x800
je 0x5d08
callq 0x5d17
movq %rax, %r14
movswl 0x7b2a(%rip), %ebp      # 0xd760
movl %r14d, %r15d
shrl $0xc, %r15d
movzwl 0x7b1e(%rip), %eax      # 0xd762
orw %bp, %ax
addw 0x7b18(%rip), %ax       # 0xd766
andl %r12d, %r15d
movswl %ax, %esi
movq %rbx, %rdi
movl %r15d, %edx
movl $0x2, %ecx
callq 0x40b8
movl %ebp, %edi
movl %r15d, %esi
callq 0x69fc
movswl 0x7aeb(%rip), %edi      # 0xd760
callq 0x6738
movzwl 0x7adf(%rip), %ebp      # 0xd760
movl %ebp, %eax
andl %r13d, %eax
incl %ebp
andl %r12d, %ebp
movw %bp, 0x7ad2(%rip)       # 0xd764
orl %eax, %ebp
movw %bp, 0x7ac5(%rip)       # 0xd760
movzwl 0x7ac0(%rip), %eax      # 0xd762
orw %bp, %ax
addw 0x7aba(%rip), %ax       # 0xd766
movswl %ax, %esi
andl %r12d, %r14d
movq %rbx, %rdi
movl %r14d, %edx
movl $0x2, %ecx
callq 0x40b8
movl %ebp, %edi
movl %r14d, %esi
callq 0x69fc
movswl 0x7a8d(%rip), %edi      # 0xd760
callq 0x6738
movzwl 0x7a81(%rip), %eax      # 0xd760
movl %eax, %ecx
andl %r13d, %ecx
incl %eax
andl %r12d, %eax
movw %ax, 0x7a74(%rip)       # 0xd764
orl %ecx, %eax
movw %ax, 0x7a67(%rip)       # 0xd760
movb $0x1, %al
cmpb $0x0, 0x7b16(%rip)      # 0xd818
je 0x5b94
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq