// File: /workspace/github_c_makefile_star2_O3/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movb $0x1, %bl
cmpl $0x19, %edi
ja 0x4aae
movl %edi, %eax
leaq 0x2f75(%rip), %rcx      # 0x7078
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x75fe(%rip), %edx      # 0xb710
leaq 0x6f67(%rip), %rdi      # 0xb080
leaq 0x372a(%rip), %rsi      # 0x784a
callq 0x3daa
jmp 0x4aae
movslq 0x75cf(%rip), %rax      # 0xb700
leaq 0x7568(%rip), %rcx      # 0xb6a0
movzbl (%rax,%rcx), %eax
cmpq $0x3b, %rax
ja 0x4b5d
movabsq $0x800800000000401, %rcx # imm = 0x800800000000401
btq %rax, %rcx
jae 0x4b5d
movw $0x0, 0x7313(%rip)      # 0xb476
jmp 0x4aae
movslq 0x7591(%rip), %rbp      # 0xb700
leaq 0x752a(%rip), %r15      # 0xb6a0
movb (%rbp,%r15), %r13b
movb 0x1(%rbp,%r15), %dl
leaq 0x1(%rbp), %r14
cmpb %r13b, %dl
jne 0x47c7
addq %r14, %r15
jmp 0x48eb
callq 0x37f6
cmpw $0x0, 0x6f82(%rip)      # 0xb124
jne 0x495f
jmp 0x45bd
movslq 0x754c(%rip), %rax      # 0xb700
leaq 0x74e5(%rip), %rcx      # 0xb6a0
movzbl (%rax,%rcx), %eax
cmpq $0x3b, %rax
ja 0x4b84
movabsq $0x800800000000401, %rcx # imm = 0x800800000000401
btq %rax, %rcx
jae 0x4b84
movq 0x716c(%rip), %rax      # 0xb350
movq 0x716d(%rip), %rcx      # 0xb358
movq %rcx, 0x715e(%rip)      # 0xb350
movq %rax, 0x715f(%rip)      # 0xb358
jmp 0x4aae
callq 0x5588
jmp 0x4aae
movw $0xa, 0x7489(%rip)      # 0xb69a
jmp 0x4aae
movl $0x37, 0x7004(%rip)     # 0xb224
xorl %ebx, %ebx
jmp 0x4aae
movslq 0x74d2(%rip), %rdx      # 0xb700
leaq 0x746b(%rip), %rax      # 0xb6a0
movb (%rdx,%rax), %cl
leal 0x1(%rdx), %edi
leaq 0x74fe(%rip), %rdx      # 0xb740
movl %edi, %esi
movslq %esi, %r8
cmpb %cl, (%r8,%rdx)
jne 0x425d
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 0x4a0a
incq %rsi
testl %r8d, %r8d
je 0x427d
cmpl $0xa, %r8d
jne 0x4244
movl %esi, 0x7495(%rip)      # 0xb718
movl %esi, 0x747f(%rip)      # 0xb708
leaq 0x6e30(%rip), %rdi      # 0xb0c0
jmp 0x4927
callq 0x2180
movq (%rax), %rax
movslq 0x745c(%rip), %rsi      # 0xb700
leaq 0x73f5(%rip), %rcx      # 0xb6a0
movsbq (%rsi,%rcx), %rcx
testb $0x4, 0x1(%rax,%rcx,2)
je 0x439c
callq 0x4062
movq %rax, %r14
callq 0x3671
movl (%r14), %eax
movl 0x6f2f(%rip), %ecx      # 0xb200
cmpl $0x1, %ecx
sete %dl
testb %dl, %al
jne 0x45bd
andl $0x1, %eax
xorl $0x2, %ecx
orl %eax, %ecx
je 0x45bd
jmp 0x495f
cmpb $0x0, 0x6e5f(%rip)      # 0xb158
je 0x434a
cmpb $0x0, 0x6e5a(%rip)      # 0xb15c
jne 0x434a
movslq 0x73f5(%rip), %rax      # 0xb700
leaq 0x738e(%rip), %rcx      # 0xb6a0
movzbl (%rax,%rcx), %eax
cmpq $0x3b, %rax
ja 0x4c3a
movabsq $0x800800000000401, %rcx # imm = 0x800800000000401
btq %rax, %rcx
jae 0x4c3a
callq 0x3762
movl $0x8, %ebp
callq 0x3062
movl %ebp, %edi
callq 0x302c
movb $0x1, 0x6e0b(%rip)      # 0xb15c
jmp 0x4aae
cmpl $0x2, 0x6ea3(%rip)      # 0xb200
jne 0x4aae
movq 0x6f5e(%rip), %rax      # 0xb2c8
movq %rax, 0x6f4f(%rip)      # 0xb2c0
jmp 0x4aae
callq 0x2180
movq (%rax), %rax
movslq 0x737b(%rip), %rsi      # 0xb700
leaq 0x7314(%rip), %rcx      # 0xb6a0
movsbq (%rsi,%rcx), %rcx
testb $0x4, 0x1(%rax,%rcx,2)
jne 0x4931
leaq 0x6bdd(%rip), %rdi      # 0xaf80
callq 0x3e82
jmp 0x4aae
callq 0x5121
jmp 0x4aae
cmpb $0x0, 0x6d9a(%rip)      # 0xb158
je 0x4435
cmpb $0x0, 0x6d95(%rip)      # 0xb15c
je 0x4435
movslq 0x7330(%rip), %rax      # 0xb700
leaq 0x72c9(%rip), %rcx      # 0xb6a0
movzbl (%rax,%rcx), %eax
cmpq $0x3b, %rax
ja 0x4c5e
movl $0x8, %edi
movabsq $0x800800000000401, %rcx # imm = 0x800800000000401
btq %rax, %rcx
jae 0x4c5e
movw $0x80, %ax
movw %ax, 0x7071(%rip)       # 0xb47a
xorl %ebp, %ebp
movb %bpl, 0x7066(%rip)      # 0xb478
movw %ax, 0x7165(%rip)       # 0xb57e
movb %bpl, 0x715c(%rip)      # 0xb57c
callq 0x302c
movw $0x0, 0x6df2(%rip)      # 0xb220
movb %bpl, 0x6d23(%rip)      # 0xb158
movb $0x0, 0x6d20(%rip)      # 0xb15c
jmp 0x4aae
callq 0x37f6
movzwl 0x6cd6(%rip), %r15d     # 0xb124
testw %r15w, %r15w
js 0x4969
movzwl 0x7011(%rip), %ebp      # 0xb470
movl %ebp, %eax
andl $0xfff, %eax            # imm = 0xFFF
addl %r15d, %eax
movzwl %ax, %eax
cmpl $0x1000, %eax           # imm = 0x1000
jbe 0x4abf
movl 0x7293(%rip), %esi      # 0xb710
leaq 0x6bdc(%rip), %rdi      # 0xb060
jmp 0x4976
cmpl $0x1, 0x6d70(%rip)      # 0xb200
jne 0x4aae
movq 0x6d6b(%rip), %rax      # 0xb208
movq 0x6cac(%rip), %rcx      # 0xb150
movq %rcx, 0x10(%rax)
movups 0x6c91(%rip), %xmm0     # 0xb140
movups %xmm0, (%rax)
xorl %r14d, %r14d
movl %r14d, 0x6d54(%rip)     # 0xb210
movl %r14d, 0x6d51(%rip)     # 0xb214
addq $-0x18, %rax
movq %rax, 0x6d4a(%rip)      # 0xb218
leaq 0x5c1b(%rip), %r15      # 0xa0f0
leaq (%r14,%r15), %rdi
addq $0x4, %rdi
movswl 0x8(%rdi), %esi
movl -0x4(%rdi), %edx
xorl %ecx, %ecx
callq 0x2b74
addq $0x18, %r14
cmpq $0x270, %r14            # imm = 0x270
jne 0x44d5
movslq 0x6d11(%rip), %rax      # 0xb210
movl %eax, 0x6d0f(%rip)      # 0xb214
movq 0x6cfc(%rip), %rcx      # 0xb208
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rax
addq $-0x18, %rax
movq %rax, 0x6cf9(%rip)      # 0xb218
jmp 0x4aae
movzwl 0x6f45(%rip), %eax      # 0xb470
decl %eax
movswl %ax, %esi
leaq 0x6f41(%rip), %rdi      # 0xb478
callq 0x3a33
leaq 0x7039(%rip), %rdi      # 0xb57c
xorl %esi, %esi
callq 0x3a33
movl 0x71c0(%rip), %ebp      # 0xb710
movslq 0x71a9(%rip), %rax      # 0xb700
leaq 0x7142(%rip), %rcx      # 0xb6a0
movzbl (%rax,%rcx), %eax
cmpq $0x3b, %rax
ja 0x4bbe
movabsq $0x800800000000401, %rcx # imm = 0x800800000000401
btq %rax, %rcx
jae 0x4bbe
movswl 0x6eea(%rip), %r14d     # 0xb472
sarl $0xc, %r14d
incl %r14d
cmpb $0x0, 0x6bc6(%rip)      # 0xb15c
je 0x4980
leaq 0x6b2d(%rip), %rdi      # 0xb0d0
movl %ebp, %esi
jmp 0x4998
callq 0x37f6
cmpw $0x0, 0x6b6d(%rip)      # 0xb124
je 0x495f
callq 0x606e
jmp 0x4aae
cmpl $0x2, 0x6c32(%rip)      # 0xb200
jne 0x4aae
movq $0x0, 0x6ce1(%rip) # 0xb2c0
jmp 0x4aae
movslq 0x6c25(%rip), %rsi      # 0xb210
movq 0x6c16(%rip), %rdi      # 0xb208
testq %rsi, %rsi
jle 0x49d9
xorl %eax, %eax
movq %rdi, %rcx
orb $0x2, (%rcx)
incq %rax
movl 0x6c04(%rip), %edx      # 0xb210
movslq %edx, %rsi
addq $0x18, %rcx
cmpq %rsi, %rax
jl 0x4600
jmp 0x49db
movslq 0x70e4(%rip), %r15      # 0xb708
leaq 0x7075(%rip), %r12      # 0xb6a0
cmpb $0x3d, (%r15,%r12)
movslq 0x70c9(%rip), %r14      # 0xb700
jne 0x4651
callq 0x2180
movq (%rax), %rax
movsbq (%r14,%r12), %rcx
testb $0x4, 0x1(%rax,%rcx,2)
jne 0x4b36
leaq 0x1(%rsp), %r12
movq %r12, %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0x3d3a
leaq 0x6945(%rip), %rdi      # 0xafb0
movq %r12, %rsi
movl %r14d, %edx
callq 0x3daa
callq 0x3671
callq 0x3671
callq 0x3f10
jmp 0x4aae
movzwl 0x6ddf(%rip), %eax      # 0xb470
decl %eax
movswl %ax, %esi
leaq 0x6ddb(%rip), %rdi      # 0xb478
callq 0x3a33
movzwl 0x6dc6(%rip), %r14d     # 0xb470
movslq 0x704f(%rip), %rax      # 0xb700
leaq 0x6fe8(%rip), %rcx      # 0xb6a0
movzbl (%rax,%rcx), %eax
cmpq $0x3b, %rax
ja 0x4bd0
movabsq $0x800800000000401, %rcx # imm = 0x800800000000401
btq %rax, %rcx
jae 0x4bd0
leal 0x7f(%r14), %eax
movl %eax, %ecx
andl $0x7f80, %ecx           # imm = 0x7F80
andl $0xf80, %eax            # imm = 0xF80
movw %cx, 0x6d7e(%rip)       # 0xb470
movw %ax, 0x6d7b(%rip)       # 0xb474
movswl %cx, %edi
callq 0x5ca2
cmpb $0x0, 0x6a54(%rip)      # 0xb15c
jne 0x4aae
movzwl 0x6d5b(%rip), %eax      # 0xb470
cmpw %r14w, %ax
je 0x4aae
movswl %ax, %edi
jmp 0x49cf
movw $0x8, 0x6f6a(%rip)      # 0xb69a
jmp 0x4aae
movzwl 0x6d34(%rip), %eax      # 0xb470
decl %eax
movswl %ax, %esi
leaq 0x6d30(%rip), %rdi      # 0xb478
callq 0x3a33
movslq 0x6fac(%rip), %rax      # 0xb700
leaq 0x6f45(%rip), %rcx      # 0xb6a0
movzbl (%rax,%rcx), %eax
cmpq $0x3b, %rax
ja 0x4bf4
movabsq $0x800800000000401, %rcx # imm = 0x800800000000401
btq %rax, %rcx
jae 0x4bf4
movzwl 0x6cec(%rip), %eax      # 0xb470
movl $0xc00, %edx            # imm = 0xC00
andl %edx, %eax
addl $0x400, %eax            # imm = 0x400
movw %ax, 0x6cd9(%rip)       # 0xb470
movl %eax, %ecx
andl %edx, %ecx
movw %cx, 0x6cd2(%rip)       # 0xb474
cmpb $0x0, 0x69b3(%rip)      # 0xb15c
jne 0x47ba
movzwl %ax, %edi
callq 0x3aea
movzwl 0x6cb6(%rip), %eax      # 0xb470
movswl %ax, %edi
callq 0x5ca2
jmp 0x4aae
xorl %ecx, %ecx
xorl %eax, %eax
testb %dl, %dl
je 0x4870
movzbl %dl, %esi
cmpl $0xa, %esi
je 0x4870
movl %eax, %esi
shll $0x6, %esi
andb $0x3f, %dl
movzbl %dl, %eax
orl %esi, %eax
testl %ecx, %ecx
jne 0x47f7
movl $0x1, %ecx
jmp 0x485f
movswl 0x6c72(%rip), %ebp      # 0xb470
movzwl 0x6c6d(%rip), %ecx      # 0xb472
orw %bp, %cx
movswl %ax, %r12d
movswl %cx, %esi
movq %r15, %rdi
movl %r12d, %edx
movl $0x2, %ecx
callq 0x3b06
movl %ebp, %edi
movl %r12d, %esi
callq 0x5f67
movswl 0x6c40(%rip), %edi      # 0xb470
callq 0x5ca2
movzwl 0x6c34(%rip), %eax      # 0xb470
movl %eax, %ecx
andl $0x7000, %ecx           # imm = 0x7000
incl %eax
andl $0xfff, %eax            # imm = 0xFFF
movw %ax, 0x6c22(%rip)       # 0xb474
orl %ecx, %eax
movw %ax, 0x6c15(%rip)       # 0xb470
xorl %eax, %eax
xorl %ecx, %ecx
movb 0x1(%r14,%r15), %dl
incq %r14
cmpb %r13b, %dl
jne 0x47cb
leal -0x1(%r14), %ebp
addq %r14, %r15
testl %ecx, %ecx
je 0x48eb
shll $0x6, %eax
movswl 0x6bea(%rip), %r13d     # 0xb470
movzwl 0x6be5(%rip), %ecx      # 0xb472
orw %r13w, %cx
movswl %cx, %esi
movswl %ax, %r12d
leaq 0x6e01(%rip), %rdi      # 0xb6a0
movl %r12d, %edx
movl $0x2, %ecx
callq 0x3b06
movl %r13d, %edi
movl %r12d, %esi
callq 0x5f67
movswl 0x6bb2(%rip), %edi      # 0xb470
callq 0x5ca2
movzwl 0x6ba6(%rip), %eax      # 0xb470
movl %eax, %ecx
andl $0x7000, %ecx           # imm = 0x7000
incl %eax
andl $0xfff, %eax            # imm = 0xFFF
movw %ax, 0x6b94(%rip)       # 0xb474
orl %ecx, %eax
movw %ax, 0x6b87(%rip)       # 0xb470
jmp 0x48fe
movswl 0x6b7e(%rip), %edi      # 0xb470
xorl %esi, %esi
callq 0x4c96
callq 0x4ccc
movzbl (%r15), %eax
cmpl $0xa, %eax
je 0x490f
testl %eax, %eax
jne 0x4a9a
movl %r14d, 0x6e02(%rip)     # 0xb718
movl %r14d, 0x6deb(%rip)     # 0xb708
leaq 0x679c(%rip), %rdi      # 0xb0c0
movl %r14d, %esi
callq 0x5062
jmp 0x4aa9
callq 0x4062
movq %rax, %r14
callq 0x3671
movl (%r14), %eax
movl 0x68b9(%rip), %ecx      # 0xb200
cmpl $0x1, %ecx
sete %dl
testb %dl, %al
jne 0x495f
andl $0x1, %eax
xorl $0x2, %ecx
orl %eax, %ecx
jne 0x45bd
callq 0x6049
jmp 0x4aae
movl 0x6da1(%rip), %esi      # 0xb710
leaq 0x66da(%rip), %rdi      # 0xb050
callq 0x5062
jmp 0x4aae
cmpw $0x8, %r14w
jb 0x4c0f
movl 0x6d7f(%rip), %esi      # 0xb710
leaq 0x66f8(%rip), %rdi      # 0xb090
callq 0x5062
movzwl 0x6ace(%rip), %eax      # 0xb472
orl $0x80, %eax
movw %ax, 0x6ac0(%rip)       # 0xb470
movl %eax, %ecx
andl $0xfff, %ecx            # imm = 0xFFF
movw %cx, 0x6ab5(%rip)       # 0xb474
cmpb $0x0, 0x6796(%rip)      # 0xb15c
jne 0x4aae
movswl %ax, %edi
callq 0x3aea
jmp 0x4aae
movl %esi, %edx
movl %edx, 0x6833(%rip)      # 0xb214
leaq (%rsi,%rsi,2), %rax
leaq (%rdi,%rax,8), %rax
addq $-0x18, %rax
movq %rax, 0x6824(%rip)      # 0xb218
leaq 0x1641(%rip), %rcx      # 0x603c
movl $0x18, %edx
callq 0x2070
jmp 0x4aae
leaq 0x6d30(%rip), %rsi      # 0xb741
movslq %edi, %r8
cmpb %cl, (%r8,%rdx)
jne 0x4a2f
movslq %edi, %r8
cmpb %cl, 0x1(%r8,%rdx)
leaq 0x1(%r8), %r14
cmovnel %edi, %r14d
movslq %r14d, %r8
jmp 0x4a32
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 0x4a5c
cmpl $0xa, %r8d
je 0x4a5c
incq %rdi
incq %rsi
testl %r8d, %r8d
jne 0x4a11
leaq 0x6cdd(%rip), %rdi      # 0xb740
callq 0x2090
cmpq $0x40, %rax
jb 0x4a75
movb $0x0, 0x6d0a(%rip)      # 0xb77f
addl $0x2, %r14d
movl %r14d, 0x6c98(%rip)     # 0xb718
movl %r14d, 0x6c81(%rip)     # 0xb708
movl $0x37, 0x6793(%rip)     # 0xb224
movb $0x1, 0x6c00(%rip)      # 0xb698
jmp 0x4aa9
addl $0x2, %ebp
movl %ebp, 0x6c75(%rip)      # 0xb718
movl %ebp, 0x6c5f(%rip)      # 0xb708
callq 0x3671
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testw %r15w, %r15w
je 0x4aae
incl %r15d
leaq 0x6bd1(%rip), %r14      # 0xb6a0
movzwl 0x699c(%rip), %eax      # 0xb472
orw %bp, %ax
movswl %ax, %esi
movq %r14, %rdi
xorl %edx, %edx
movl $0x2, %ecx
callq 0x3b06
movswl %bp, %edi
xorl %esi, %esi
callq 0x5f67
movswl 0x6974(%rip), %edi      # 0xb470
callq 0x5ca2
movzwl 0x6968(%rip), %ebp      # 0xb470
movl %ebp, %eax
andl $0x7000, %eax           # imm = 0x7000
incl %ebp
andl $0xfff, %ebp            # imm = 0xFFF
movw %bp, 0x6956(%rip)       # 0xb474
orl %eax, %ebp
movw %bp, 0x6949(%rip)       # 0xb470
decl %r15d
cmpw $0x1, %r15w
ja 0x4acf
jmp 0x4aae
callq 0x3671
callq 0x3671
callq 0x3f10
movswl %ax, %edx
movl %r14d, %edi
movl %r15d, %esi
movl $0x5, %ecx
callq 0x3e47
jmp 0x4aae
callq 0x37f6
movl 0x65bc(%rip), %eax      # 0xb124
movzwl 0x6901(%rip), %ecx      # 0xb470
addw 0x6900(%rip), %cx       # 0xb476
subl %ecx, %eax
movw %ax, 0x68f7(%rip)       # 0xb476
jmp 0x4aae
callq 0x37f6
cmpw $0x0, 0x6593(%rip)      # 0xb124
movq 0x67b8(%rip), %rax      # 0xb350
je 0x4c6f
testq %rax, %rax
je 0x4aae
movq %rax, 0x67aa(%rip)      # 0xb358
movq $0x0, 0x6797(%rip) # 0xb350
jmp 0x4aae
callq 0x37f6
movzwl 0x6559(%rip), %r14d     # 0xb124
jmp 0x458f
callq 0x37f6
movl 0x6549(%rip), %eax      # 0xb124
movzwl 0x6890(%rip), %edx      # 0xb472
shll $0xc, %edx
andl $0x1f, %eax
shll $0x7, %eax
movl %eax, %ecx
orl %edx, %ecx
jmp 0x46eb
callq 0x37f6
movw $0x400, 0x686e(%rip)    # imm = 0x400
movw $0x400, %ax             # imm = 0x400
movw $0x400, %cx             # imm = 0x400
jmp 0x479b
movl %r14d, %eax
orl $0x18, %eax
shll $0x3, %eax
movzwl %ax, %ebp
movl %ebp, %edi
callq 0x5fac
subw %bp, 0x65f7(%rip)       # 0xb220
shll $0xc, %r14d
movw %r14w, 0x683d(%rip)     # 0xb472
jmp 0x499d
callq 0x37f6
movswl 0x64de(%rip), %ebp      # 0xb124
callq 0x3762
cmpl $-0x1, %ebp
jne 0x433e
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x4343
callq 0x37f6
movswl 0x64ba(%rip), %edi      # 0xb124
jmp 0x43fe
testq %rax, %rax
jne 0x4aae
movq 0x66d9(%rip), %rax      # 0xb358
movq %rax, 0x66ca(%rip)      # 0xb350
movq $0x0, 0x66c7(%rip) # 0xb358
jmp 0x4aae