// File: /workspace/github_c_makefile_star2_O2/radekh[P]palbart/palbart-2.5.c
// Function: pseudoOperators
BOOL pseudoOperators( PSEUDO_T val )
{
  int     count;
  int     delim;
  int     index;
  int     ix;
  int     lexstartsave;
  WORD16  newfield;
  WORD16  oldclc;
  int     pack;
  BOOL    status;
  SYM_T  *sym;
  FILE   *temp;
  int     term;
  WORD16  value;
  int	  leaderlen;

  status = TRUE;
  switch( (PSEUDO_T) val )
  {
  case BANK:
    errorSymbol( &no_pseudo_op, "BANK", lexstartprev );
    /* should select a different 32K out of 128K                              */
    break;

  case BINPUNCH:
    /* If there has been data output and this is a mode switch, set up to     */
    /* output data in BIN mode.                                               */
    if( binary_data_output && rim_mode )
    {
      lexstartsave = lexstartprev;
      if( isdone( line[lexstart] ))
        {
	  leaderlen = 8; /* If not specified, the short leader/trailer will be 8. */
	}
      else	
	{
	  leaderlen = (getExpr())->val;      /* BINPUN leaderlen              */
	}


      cp.loc = 00200;           /* Clear the literal tables.                  */
      cp.error = FALSE;
      pz.loc = 00200;
      pz.error = FALSE;
      punchLeader( leaderlen ); /* Generate a short leader/trailer.           */
      checksum = 0;
      binary_data_output = FALSE;
    }
    rim_mode = FALSE;
    break;

  case DECIMAL:
    radix = 10;
    break;

  case DUBL:
    inputDubl();
    break;

  case EJECT:
    page_lineno = LIST_LINES_PER_PAGE;  /* This will force a page break.      */
    status = FALSE;             /* This will force reading of next line       */
    break;

  case ENPUNCH:
    if( pass == 2 )
    {
      objectfile = objectsave;
    }
    break;

  case EXPUNGE:                 /* Erase symbol table                         */
    if( pass == 1 )
    {
      symtab[0] = sym_undefined;
      symbol_top = 0;
      number_of_fixed_symbols = symbol_top;
      fixed_symbols = &symtab[symbol_top - 1];

      /* Enter the pseudo-ops into the symbol table.                          */
      for( ix = 0; ix < DIM( pseudo ); ix++ )
      {
        defineSymbol( pseudo[ix].name, pseudo[ix].val, pseudo[ix].type, 0 );
      }
      number_of_fixed_symbols = symbol_top;
      fixed_symbols = &symtab[symbol_top - 1];
    }
    break;

  case FIELD:
    punchLiteralPool( &cp, clc - 1 );
    punchLiteralPool( &pz, 0 );
    newfield = field >> 12;
    lexstartsave = lexstartprev;
    if( isdone( line[lexstart] ))
    {
      newfield += 1;            /* Blank FIELD directive.                     */
    }
    else
    {
      newfield = (getExpr())->val;      /* FIELD with argument.               */
    }

    if( rim_mode )
    {
      errorMessage( &in_rim_mode, lexstartsave ); /* Can't change fields.     */
    }
    else if( newfield > 7 || newfield < 0 )
    {
      errorMessage( &illegal_field_value, lexstartprev );
    }
    else
    {
      value = (( newfield & 0007 ) << 3 ) | 00300;
      punchObject( value );
      checksum -= value;        /* Field punches are not added to checksum.   */
      field = newfield << 12;
    }

    clc = 0200 | field;
    fieldlc = clc & 07777;

    if( !rim_mode )
    {
      punchOrigin( clc );
    }
    break;

  case FIXMRI:
    if( line[lexterm] == '=' && isalpha( line[lexstart] ))
    {
      lexstartsave = lexstart;
      term = lexterm;
      nextLexeme();           /* Skip symbol.                                 */
      nextLexeme();           /* Skip trailing =                              */
      defineLexeme( lexstartsave, term, getExprs(), MRI );
    }
    else
    {
      errorLexeme( &symbol_syntax, lexstart );
      nextLexeme();           /* Skip symbol.                                 */
      nextLexeme();           /* Skip trailing =                              */
      (void) getExprs();      /* Skip expression.                             */
    }
    break;

  case FIXTAB:
    /* Mark all current symbols as permanent symbols.                         */
    for( ix = 0; ix < symbol_top; ix++ )
    {
      symtab[ix].type = symtab[ix].type | FIXED;
    }
    number_of_fixed_symbols = symbol_top;
    fixed_symbols = &symtab[symbol_top - 1];

    /* Re-sort the symbol table                                               */
    qsort( symtab, symbol_top, sizeof(symtab[0]), compareSymbols );
    break;

  case FLTG:
    inputFltg();
    /* errorSymbol( &no_pseudo_op, "FLTG", lexstartprev ); */
    break;

  case IFDEF:
    if( isalpha( line[lexstart] ))
    {
      sym = evalSymbol();
      nextLexeme();
      if( M_DEFINED_CONDITIONALLY( sym->type ))
      {
        conditionTrue();
      }
      else
      {
        conditionFalse();
      }
    }
    else
    {
      errorLexeme( &label_syntax, lexstart );
    }
    break;

  case IFNDEF:
    if( isalpha( line[lexstart] ))
    {
      sym = evalSymbol();
      nextLexeme();
      if( M_DEFINED_CONDITIONALLY( sym->type ))
      {
        conditionFalse();
      }
      else
      {
        conditionTrue();
      }
    }
    else
    {
      errorLexeme( &label_syntax, lexstart );
    }
    break;

  case IFNZERO:
    if( (getExpr())->val == 0 )
    {
      conditionFalse();
    }
    else
    {
      conditionTrue();
    }
    break;

  case IFZERO:
    if( (getExpr())->val == 0 )
    {
      conditionTrue();
    }
    else
    {
      conditionFalse();
    }
    break;

  case NOPUNCH:
    if( pass == 2 )
    {
      objectfile = NULL;
    }
    break;

  case OCTAL:
    radix = 8;
    break;

  case PAGE:
    punchLiteralPool( &cp, clc - 1 );
    oldclc = clc;
    if( isdone( line[lexstart] ))
    {
      clc = ( clc + 0177 ) & 077600;            /* No argumnet.               */
      fieldlc = clc & 07777;
    }
    else
    {
      value = (getExpr())->val;
      clc = ( field << 12 ) + (( value & 037 ) << 7 );
      fieldlc = clc & 07777;
    }
    testForLiteralCollision( clc );

    if( !rim_mode && clc != oldclc )
    {
      punchOrigin( clc );
    }
    break;

  case PAUSE:
    break;

  case RELOC:
    if( isdone( line[lexstart] ))
    {
       reloc = 0;               /* Blank RELOC directive.                     */
    }
    else
    {
      value = (getExpr())->val; /* RELOC with argument.                       */
      reloc = value - ( clc + reloc );
    }
    break;

  case RIMPUNCH:
    /* If the assembler has output any BIN data, output the literal tables    */
    /* and the checksum for what has been assembled and setup for RIM mode.   */
    if( binary_data_output && !rim_mode )
    {
      lexstartsave = lexstartprev;
      if( isdone( line[lexstart] ))
      {
	leaderlen = 8; /* If not specified, the short leader/trailer will be 8. */
      }
      else	
      {
	leaderlen = (getExpr())->val;      /* BINPUN leaderlen              */
      }

      endOfBinary();
      if (leaderlen != -1)
      {
	punchChecksum();
      }
      punchLeader( leaderlen );         /* Generate a short leader/trailer.           */
    }
    rim_mode = TRUE;
    break;

  case SEGMNT:
    punchLiteralPool( &cp, clc - 1 );
    if( isdone( line[lexstart] ))
    {                           /* No argument.                               */
      clc = ( clc & 06000 ) + 02000;
      fieldlc = clc & 07777;
    }
    else
    {
      getExpr();
      clc = ( val & 003 ) << 10;
      fieldlc = clc & 07777;
    }
    if( !rim_mode )
    {
      punchOrigin( clc );
    }
    testForLiteralCollision( clc );
    break;

  case TEXT:
    delim = line[lexstart];
    pack = 0;
    count = 0;
    index = lexstart + 1;
    while( line[index] != delim && !isend( line[index] ))
    {
      pack = ( pack << 6 ) | ( line[index] & 077 );
      count++;
      if( count > 1 )
      {
        punchOutObject( clc, pack );
        incrementClc();
        count = 0;
        pack = 0;
      }
      index++;
    }

    if( count != 0 )
    {
      punchOutObject( clc, pack << 6 );
      incrementClc();
    }
    else
    {
      punchOutObject( clc, 0 );
      incrementClc();
    }

    if( isend( line[index] ))
    {
      cc = index;
      lexterm = cc;
      errorMessage( &text_string, cc );
    }
    else
    {
      cc = index + 1;
      lexterm = cc;
    }
    nextLexeme();
    break;

  case TITLE:
    delim = line[lexstart];
    ix = lexstart + 1;
    /* Find string delimiter.                                                 */
    do
    {
      if( list_title[ix] == delim && list_title[ix + 1] == delim )
      {
        ix++;
      }
      ix++;
    } while( line[ix] != delim && !isend(line[ix]) );

    if( line[ix] == delim )
    {
      count = 0;
      ix = lexstart + 1;
      do
      {
        if( list_title[ix] == delim && list_title[ix + 1] == delim )
        {
          ix++;
        }
        list_title[count] = line[ix];
        count++;
        ix++;
        list_title[count] = '\0';
      } while( line[ix] != delim && !isend(line[ix]) );

      if( strlen( list_title ) > TITLELEN )
      {
        list_title[TITLELEN] = '\0';
      }

      cc = ix + 1;
      lexterm = cc;
      page_lineno = LIST_LINES_PER_PAGE;/* Force top of page for new titles.  */
      list_title_set = TRUE;
    }
    else
    {
      cc = ix;
      lexterm = cc;
      errorMessage( &text_string, cc );
    }

    nextLexeme();
    break;

  case XLIST:
    if( isdone( line[lexstart] ))
    {
      temp = listfile;          /* Blank XLIST directive.                     */
      listfile = listsave;
      listsave = temp;
    }
    else
    {
      if( (getExpr())->val == 0 )
      {
        if( listfile == NULL )
        {
          listfile = listsave;
          listsave = NULL;
        }
      }
      else
      {
        if( listfile != NULL )
        {
          listsave = listfile;
          listfile = NULL;
        }
      }
    }
    break;

  case ZBLOCK:
    value = (getExpr())->val;
    if( value < 0 )
    {
      errorMessage( &zblock_too_small, lexstartprev );
    }
    else if( value + ( clc & 07777 ) - 1 > 07777 )
    {
      errorMessage( &zblock_too_large, lexstartprev );
    }
    else
    {
      for( ; value > 0; value-- )
      {
        punchOutObject( clc, 0 );
        incrementClc();
      }
    }

    break;

  default:
    break;
  } /* end switch for pseudo-ops                                              */
  return( status );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movb $0x1, %bl
cmpl $0x19, %edi
ja 0x4709
movl %edi, %eax
leaq 0x2231(%rip), %rcx      # 0x6078
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x68aa(%rip), %edx      # 0xa700
leaq 0x6213(%rip), %rdi      # 0xa070
leaq 0x29e6(%rip), %rsi      # 0x684a
callq 0x3af4
jmp 0x4709
movslq 0x687b(%rip), %rax      # 0xa6f0
leaq 0x6814(%rip), %rcx      # 0xa690
movzbl (%rax,%rcx), %eax
cmpq $0x3b, %rax
ja 0x4736
movabsq $0x800800000000401, %rcx # imm = 0x800800000000401
btq %rax, %rcx
jae 0x4736
andw $0x0, 0x65c0(%rip)      # 0xa466
jmp 0x4709
movslq 0x683e(%rip), %rax      # 0xa6f0
leaq 0x67d7(%rip), %rcx      # 0xa690
leaq (%rax,%rcx), %r14
incq %r14
movb -0x1(%r14), %r15b
leal 0x2(%rax), %ebx
movb $0x1, %bpl
xorl %ecx, %ecx
movzbl (%r14), %eax
cmpb %r15b, %al
je 0x3f0f
testl %eax, %eax
je 0x3f0f
cmpl $0xa, %eax
je 0x3f0f
shll $0x6, %ecx
andl $0x3f, %eax
orl %ecx, %eax
testb $0x1, %bpl
jne 0x3f02
movswl 0x656d(%rip), %edi      # 0xa460
movswl %ax, %esi
callq 0x484f
callq 0x4883
xorl %eax, %eax
xorb $0x1, %bpl
incl %ebx
incq %r14
movl %eax, %ecx
jmp 0x3ecc
movswl 0x654a(%rip), %edi      # 0xa460
shll $0x6, %ecx
xorl %eax, %eax
testb $0x1, %bpl
cmovel %ecx, %eax
movswl %ax, %esi
callq 0x484f
callq 0x4883
movzbl (%r14), %eax
cmpl $0xa, %eax
je 0x3f40
testl %eax, %eax
jne 0x46f6
decl %ebx
movl %ebx, 0x67c0(%rip)      # 0xa708
movl %ebx, 0x67aa(%rip)      # 0xa6f8
leaq 0x615b(%rip), %rdi      # 0xa0b0
movl %ebx, %esi
callq 0x4ba7
jmp 0x4702
callq 0x35f2
cmpw $0x0, 0x61a6(%rip)      # 0xa114
jne 0x45bc
jmp 0x4380
movslq 0x6770(%rip), %rax      # 0xa6f0
leaq 0x6709(%rip), %rcx      # 0xa690
movzbl (%rax,%rcx), %eax
cmpq $0x3b, %rax
ja 0x475a
movabsq $0x800800000000401, %rcx # imm = 0x800800000000401
btq %rax, %rcx
jae 0x475a
movq 0x6390(%rip), %rax      # 0xa340
movq 0x6391(%rip), %rcx      # 0xa348
movq %rcx, 0x6382(%rip)      # 0xa340
movq %rax, 0x6383(%rip)      # 0xa348
jmp 0x4709
callq 0x4f6f
jmp 0x4709
movw $0xa, 0x66ad(%rip)      # 0xa68a
jmp 0x4709
movl $0x37, 0x6228(%rip)     # 0xa214
xorl %ebx, %ebx
jmp 0x4709
movslq 0x66f6(%rip), %rdx      # 0xa6f0
leaq 0x668f(%rip), %rax      # 0xa690
movb (%rdx,%rax), %cl
leal 0x1(%rdx), %edi
leaq 0x6722(%rip), %rdx      # 0xa730
movl %edi, %esi
movslq %esi, %r8
cmpb %cl, (%r8,%rdx)
jne 0x4029
cmpb %cl, 0x1(%r8,%rdx)
leaq 0x1(%r8), %rsi
cmovel %esi, %r8d
movl %r8d, %esi
movslq %esi, %rsi
movzbl 0x1(%rsi,%rax), %r8d
cmpb %cl, %r8b
je 0x4661
incq %rsi
testl %r8d, %r8d
je 0x4049
cmpl $0xa, %r8d
jne 0x4010
movl %esi, 0x66b9(%rip)      # 0xa708
movl %esi, 0x66a3(%rip)      # 0xa6f8
leaq 0x6054(%rip), %rdi      # 0xa0b0
callq 0x4ba7
jmp 0x46ef
callq 0x2170
movq (%rax), %rax
movslq 0x667b(%rip), %rsi      # 0xa6f0
leaq 0x6614(%rip), %rcx      # 0xa690
movsbq (%rsi,%rcx), %rcx
testb $0x4, 0x1(%rax,%rcx,2)
je 0x4170
callq 0x3da9
movq %rax, %r14
callq 0x3476
movl (%r14), %eax
movl 0x614e(%rip), %ecx      # 0xa1f0
cmpl $0x1, %ecx
sete %dl
testb %dl, %al
jne 0x4380
andl $0x1, %eax
xorl $0x2, %ecx
orl %eax, %ecx
je 0x4380
jmp 0x45bc
cmpb $0x0, 0x607e(%rip)      # 0xa148
je 0x411e
cmpb $0x0, 0x6079(%rip)      # 0xa14c
jne 0x411e
movslq 0x6614(%rip), %rax      # 0xa6f0
leaq 0x65ad(%rip), %rcx      # 0xa690
movzbl (%rax,%rcx), %eax
cmpq $0x3b, %rax
ja 0x4809
movabsq $0x800800000000401, %rcx # imm = 0x800800000000401
btq %rax, %rcx
jae 0x4809
pushq $0x8
popq %rbp
callq 0x3560
cmpl $-0x1, %ebp
je 0x4117
callq 0x2eb0
movl %ebp, %edi
callq 0x2e7c
movb $0x1, 0x6027(%rip)      # 0xa14c
jmp 0x4709
cmpl $0x2, 0x60bf(%rip)      # 0xa1f0
jne 0x4709
movq 0x617a(%rip), %rax      # 0xa2b8
movq %rax, 0x616b(%rip)      # 0xa2b0
jmp 0x4709
callq 0x2170
movq (%rax), %rax
movslq 0x6597(%rip), %rsi      # 0xa6f0
leaq 0x6530(%rip), %rcx      # 0xa690
movsbq (%rsi,%rcx), %rcx
testb $0x4, 0x1(%rax,%rcx,2)
jne 0x458e
leaq 0x5df9(%rip), %rdi      # 0x9f70
callq 0x3bcc
jmp 0x4709
callq 0x4c66
jmp 0x4709
cmpb $0x0, 0x5fb6(%rip)      # 0xa148
je 0x4206
cmpb $0x0, 0x5fb1(%rip)      # 0xa14c
je 0x4206
movslq 0x654c(%rip), %rax      # 0xa6f0
leaq 0x64e5(%rip), %rcx      # 0xa690
movzbl (%rax,%rcx), %eax
cmpq $0x3b, %rax
ja 0x481a
movabsq $0x800800000000401, %rcx # imm = 0x800800000000401
btq %rax, %rcx
jae 0x481a
pushq $0x8
popq %rdi
movw $0x80, %ax
movw %ax, 0x628f(%rip)       # 0xa46a
xorl %ebp, %ebp
movb %bpl, 0x6284(%rip)      # 0xa468
movw %ax, 0x6383(%rip)       # 0xa56e
movb %bpl, 0x637a(%rip)      # 0xa56c
callq 0x2e7c
andw $0x0, 0x6011(%rip)      # 0xa210
movb %bpl, 0x5f42(%rip)      # 0xa148
movb $0x0, 0x5f3f(%rip)      # 0xa14c
jmp 0x4709
callq 0x35f2
movzwl 0x5ef5(%rip), %r14d     # 0xa114
testw %r14w, %r14w
js 0x45f1
movzwl 0x6230(%rip), %eax      # 0xa460
andl $0xfff, %eax            # imm = 0xFFF
addl %r14d, %eax
cmpw $0x1000, %ax            # imm = 0x1000
jbe 0x4250
movl 0x64bc(%rip), %esi      # 0xa700
leaq 0x5e05(%rip), %rdi      # 0xa050
jmp 0x45fe
testw %r14w, %r14w
jle 0x4709
movswl 0x61ff(%rip), %edi      # 0xa460
xorl %esi, %esi
callq 0x484f
callq 0x4883
decl %r14d
jmp 0x4250
cmpl $0x1, 0x5f77(%rip)      # 0xa1f0
jne 0x4709
movq 0x5f72(%rip), %rax      # 0xa1f8
movq 0x5eb3(%rip), %rcx      # 0xa140
movq %rcx, 0x10(%rax)
movups 0x5e98(%rip), %xmm0     # 0xa130
movups %xmm0, (%rax)
andl $0x0, 0x5f5e(%rip)      # 0xa200
andl $0x0, 0x5f5b(%rip)      # 0xa204
addq $-0x18, %rax
movq %rax, 0x5f54(%rip)      # 0xa208
xorl %r14d, %r14d
leaq 0x4e22(%rip), %r15      # 0x90e0
cmpq $0x270, %r14            # imm = 0x270
je 0x45c6
leaq (%r14,%r15), %rdi
addq $0x4, %rdi
movswl 0x8(%rdi), %esi
movl -0x4(%rdi), %edx
xorl %ecx, %ecx
callq 0x2a76
addq $0x18, %r14
jmp 0x42be
movzwl 0x6172(%rip), %eax      # 0xa460
decl %eax
movswl %ax, %esi
leaq 0x616e(%rip), %rdi      # 0xa468
callq 0x37c2
leaq 0x6266(%rip), %rdi      # 0xa56c
xorl %esi, %esi
callq 0x37c2
movl 0x63ed(%rip), %ebp      # 0xa700
movslq 0x63d6(%rip), %rax      # 0xa6f0
leaq 0x636f(%rip), %rcx      # 0xa690
movzbl (%rax,%rcx), %eax
cmpq $0x3b, %rax
ja 0x478d
movabsq $0x800800000000401, %rcx # imm = 0x800800000000401
btq %rax, %rcx
jae 0x478d
movswl 0x6117(%rip), %r14d     # 0xa462
sarl $0xc, %r14d
incl %r14d
cmpb $0x0, 0x5df3(%rip)      # 0xa14c
je 0x4608
leaq 0x5d5a(%rip), %rdi      # 0xa0c0
movl %ebp, %esi
jmp 0x4620
callq 0x35f2
cmpw $0x0, 0x5d9a(%rip)      # 0xa114
je 0x45bc
callq 0x582e
jmp 0x4709
cmpl $0x2, 0x5e5f(%rip)      # 0xa1f0
jne 0x4709
andq $0x0, 0x5f11(%rip)      # 0xa2b0
jmp 0x4709
movq 0x5e4d(%rip), %rax      # 0xa1f8
xorl %ecx, %ecx
movl 0x5e4d(%rip), %edx      # 0xa200
movslq %edx, %rsi
cmpq %rsi, %rcx
jge 0x43c7
orb $0x2, (%rax)
incq %rcx
addq $0x18, %rax
jmp 0x43ad
movl %esi, 0x5e37(%rip)      # 0xa204
movq 0x5e24(%rip), %rdi      # 0xa1f8
imulq $0x18, %rsi, %rax
addq %rdi, %rax
addq $-0x18, %rax
movq %rax, 0x5e22(%rip)      # 0xa208
leaq 0x140f(%rip), %rcx      # 0x57fc
pushq $0x18
popq %rdx
callq 0x2070
jmp 0x4709
movslq 0x62f7(%rip), %r15      # 0xa6f8
leaq 0x6288(%rip), %r12      # 0xa690
cmpb $0x3d, (%r15,%r12)
movslq 0x62dc(%rip), %r14      # 0xa6f0
jne 0x442e
callq 0x2170
movq (%rax), %rax
movsbq (%r14,%r12), %rcx
testb $0x4, 0x1(%rax,%rcx,2)
jne 0x4714
leaq 0x5b6b(%rip), %rdi      # 0x9fa0
movl %r14d, %esi
callq 0x3bcc
callq 0x3476
callq 0x3476
callq 0x3c5a
jmp 0x4709
movzwl 0x6008(%rip), %eax      # 0xa460
decl %eax
movswl %ax, %esi
leaq 0x6004(%rip), %rdi      # 0xa468
callq 0x37c2
movzwl 0x5fef(%rip), %r14d     # 0xa460
movslq 0x6278(%rip), %rax      # 0xa6f0
leaq 0x6211(%rip), %rcx      # 0xa690
movzbl (%rax,%rcx), %eax
cmpq $0x3b, %rax
ja 0x479f
movabsq $0x800800000000401, %rcx # imm = 0x800800000000401
btq %rax, %rcx
jae 0x479f
leal 0x7f(%r14), %eax
movl %eax, %ecx
andl $0x7f80, %ecx           # imm = 0x7F80
andl $0xf80, %eax            # imm = 0xF80
movw %cx, 0x5fa7(%rip)       # 0xa460
movw %ax, 0x5fa4(%rip)       # 0xa464
movswl %cx, %edi
callq 0x5479
cmpb $0x0, 0x5c7d(%rip)      # 0xa14c
jne 0x4709
movzwl 0x5f84(%rip), %eax      # 0xa460
cmpw %r14w, %ax
je 0x4709
movswl %ax, %edi
jmp 0x4657
movw $0x8, 0x6193(%rip)      # 0xa68a
jmp 0x4709
movzwl 0x5f5d(%rip), %eax      # 0xa460
decl %eax
movswl %ax, %esi
leaq 0x5f59(%rip), %rdi      # 0xa468
callq 0x37c2
movslq 0x61d5(%rip), %rax      # 0xa6f0
leaq 0x616e(%rip), %rcx      # 0xa690
movzbl (%rax,%rcx), %eax
cmpq $0x3b, %rax
ja 0x47c3
movabsq $0x800800000000401, %rcx # imm = 0x800800000000401
btq %rax, %rcx
jae 0x47c3
movzwl 0x5f15(%rip), %eax      # 0xa460
movl $0xc00, %edx            # imm = 0xC00
andl %edx, %eax
addl $0x400, %eax            # imm = 0x400
movw %ax, 0x5f02(%rip)       # 0xa460
movl %eax, %ecx
andl %edx, %ecx
movw %cx, 0x5efb(%rip)       # 0xa464
cmpb $0x0, 0x5bdc(%rip)      # 0xa14c
jne 0x4581
movzwl %ax, %edi
callq 0x385b
movzwl 0x5edf(%rip), %eax      # 0xa460
movswl %ax, %edi
callq 0x5479
jmp 0x4709
callq 0x3da9
movq %rax, %r14
callq 0x3476
movl (%r14), %eax
movl 0x5c4c(%rip), %ecx      # 0xa1f0
cmpl $0x1, %ecx
sete %dl
testb %dl, %al
jne 0x45bc
andl $0x1, %eax
xorl $0x2, %ecx
orl %eax, %ecx
jne 0x4380
callq 0x5809
jmp 0x4709
movslq 0x5c33(%rip), %rax      # 0xa200
movl %eax, 0x5c31(%rip)      # 0xa204
movq 0x5c1e(%rip), %rcx      # 0xa1f8
imulq $0x18, %rax, %rax
addq %rcx, %rax
addq $-0x18, %rax
movq %rax, 0x5c1c(%rip)      # 0xa208
jmp 0x4709
movl 0x6109(%rip), %esi      # 0xa700
leaq 0x5a42(%rip), %rdi      # 0xa040
callq 0x4ba7
jmp 0x4709
cmpw $0x8, %r14w
jb 0x47de
movl 0x60e7(%rip), %esi      # 0xa700
leaq 0x5a60(%rip), %rdi      # 0xa080
callq 0x4ba7
movzwl 0x5e36(%rip), %eax      # 0xa462
orl $0x80, %eax
movw %ax, 0x5e28(%rip)       # 0xa460
movl %eax, %ecx
andl $0xfff, %ecx            # imm = 0xFFF
movw %cx, 0x5e1d(%rip)       # 0xa464
cmpb $0x0, 0x5afe(%rip)      # 0xa14c
jne 0x4709
movswl %ax, %edi
callq 0x385b
jmp 0x4709
leaq 0x60c9(%rip), %rsi      # 0xa731
movslq %edi, %r8
cmpb %cl, (%r8,%rdx)
jne 0x4686
movslq %edi, %r8
cmpb %cl, 0x1(%r8,%rdx)
leaq 0x1(%r8), %r14
cmovnel %edi, %r14d
movslq %r14d, %r8
jmp 0x4689
movl %edi, %r14d
movb (%r8,%rax), %dil
movb %dil, -0x1(%rsi)
movslq %r14d, %rdi
movb $0x0, (%rsi)
movzbl 0x1(%rdi,%rax), %r8d
cmpb %cl, %r8b
je 0x46b3
cmpl $0xa, %r8d
je 0x46b3
incq %rdi
incq %rsi
testl %r8d, %r8d
jne 0x4668
leaq 0x6076(%rip), %rdi      # 0xa730
callq 0x2090
cmpq $0x40, %rax
jb 0x46cc
movb $0x0, 0x60a3(%rip)      # 0xa76f
addl $0x2, %r14d
movl %r14d, 0x6031(%rip)     # 0xa708
movl %r14d, 0x601a(%rip)     # 0xa6f8
movl $0x37, 0x5b2c(%rip)     # 0xa214
movb $0x1, 0x5f99(%rip)      # 0xa688
callq 0x3476
jmp 0x4709
movl %ebx, 0x600c(%rip)      # 0xa708
movl %ebx, 0x5ff6(%rip)      # 0xa6f8
callq 0x3476
movb $0x1, %bl
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x3476
callq 0x3476
callq 0x3c5a
movswl %ax, %edx
pushq $0x5
popq %rcx
movl %r14d, %edi
movl %r15d, %esi
callq 0x3b91
jmp 0x4709
callq 0x35f2
movl 0x59d3(%rip), %eax      # 0xa114
movzwl 0x5d18(%rip), %ecx      # 0xa460
addw 0x5d17(%rip), %cx       # 0xa466
subl %ecx, %eax
movw %ax, 0x5d0e(%rip)       # 0xa466
jmp 0x4709
callq 0x35f2
cmpw $0x0, 0x59ad(%rip)      # 0xa114
movq 0x5bd2(%rip), %rax      # 0xa340
je 0x482b
testq %rax, %rax
je 0x4709
movq %rax, 0x5bc8(%rip)      # 0xa348
andq $0x0, 0x5bb8(%rip)      # 0xa340
jmp 0x4709
callq 0x35f2
movzwl 0x597a(%rip), %r14d     # 0xa114
jmp 0x4352
callq 0x35f2
movl 0x596a(%rip), %eax      # 0xa114
movzwl 0x5cb1(%rip), %edx      # 0xa462
shll $0xc, %edx
andl $0x1f, %eax
shll $0x7, %eax
movl %eax, %ecx
orl %edx, %ecx
jmp 0x44b2
callq 0x35f2
movw $0x400, 0x5c8f(%rip)    # imm = 0x400
movw $0x400, %ax             # imm = 0x400
movw $0x400, %cx             # imm = 0x400
jmp 0x4562
movl %r14d, %eax
orl $0x18, %eax
shll $0x3, %eax
movzwl %ax, %ebp
movl %ebp, %edi
callq 0x5761
subw %bp, 0x5a18(%rip)       # 0xa210
shll $0xc, %r14d
movw %r14w, 0x5c5e(%rip)     # 0xa462
jmp 0x4625
callq 0x35f2
movswl 0x58ff(%rip), %ebp      # 0xa114
jmp 0x4108
callq 0x35f2
movswl 0x58ee(%rip), %edi      # 0xa114
jmp 0x41d0
testq %rax, %rax
jne 0x4709
movq 0x5b0d(%rip), %rax      # 0xa348
movq %rax, 0x5afe(%rip)      # 0xa340
andq $0x0, 0x5afe(%rip)      # 0xa348
jmp 0x4709