// File: /workspace/github_c_makefile_star2_O0/radekh[P]palbart/palbart-2.5.c
// Function: getArgs
void getArgs( int argc, char *argv[] )
{
  int  len;
  int  ix, jx;

  /* Set the defaults                                                         */
  errorfile = NULL;
  infile = NULL;
  listfile = NULL;
  listsave = NULL;
  objectfile = NULL;
  objectsave = NULL;

  for( ix = 1; ix < argc; ix++ )
  {
    if( argv[ix][0] == '-' )
    {
      for( jx = 1; argv[ix][jx] != 0; jx++ )
      {
        switch( argv[ix][jx] )
        {
        case 'd':
          symtab_print = TRUE;
          break;

        case 'r':
          rim_mode = TRUE;
          break;

        case 'l':
          literals_on = TRUE;
          break;

        case 'p':
          print_permanent_symbols = TRUE;
          break;

        case 'x':
          xref = TRUE;
          break;

        case 'v':
          fprintf( stderr, "%s\n", release );
          fflush( stderr );
          exit( -1 );
          break;

        default:
          fprintf( stderr, "%s: unknown flag: %s\n", argv[0], argv[ix] );
        case 'h':
          fprintf( stderr, " -d -- dump symbol table\n" );
          fprintf( stderr, " -h -- show this help\n" );
          fprintf( stderr, " -l -- generate literals\n" );
          fprintf( stderr, " -r -- output rim format file\n" );
          fprintf( stderr, " -p -- output permanent symbols to file\n" );
          fprintf( stderr, " -v -- display version\n" );
          fprintf( stderr, " -x -- output cross reference to file\n" );
          fflush( stderr );
          exit( -1 );
        } /* end switch                                                       */
      } /* end for                                                            */
    }
    else
    {
      if( pathname != NULL )
      {
        fprintf( stderr, "%s: too many input files\n", argv[0] );
        exit( -1 );
      }
      pathname = &argv[ix][0];
    }
  } /* end for                                                                */

  if( pathname == NULL )
  {
    fprintf( stderr, "%s:  no input file specified\n", argv[0] );
    exit( -1 );
  }

  len = strlen( pathname );
  if( len > NAMELEN - 5 )
  {
    fprintf( stderr, "%s: pathname \"%s\" too long\n", argv[0], pathname );
    exit( -1 );
  }

  /* Now open the input file.                                                 */
  if(( infile = fopen( pathname, "r" )) == NULL )
  {
    fprintf( stderr, "%s: cannot open \"%s\"\n", argv[0], pathname );
    exit( -1 );
  }

  /* Now make the pathnames                                                   */
  /* Find last '.', if it exists.                                             */
  jx = len - 1;
  while( pathname[jx] != '.'  && pathname[jx] != '/'
      && pathname[jx] != '\\' && jx >= 0 )
  {
    jx--;
  }

  switch( pathname[jx] )
  {
  case '.':
    break;

  case '/':
  case '\\':
    jx = len;
    break;

  default:
    break;
  }

  /* Add the pathname extensions.                                             */
  strncpy( objectpathname, pathname, jx );
  objectpathname[jx] = '\0';
  strcat( objectpathname, rim_mode ? ".rim" : ".bin" );

  strncpy( listpathname, pathname, jx );
  listpathname[jx] = '\0';
  strcat( listpathname, ".lst" );

  strncpy( errorpathname, pathname, jx );
  errorpathname[jx] = '\0';
  strcat( errorpathname, ".err" );

  strncpy( permpathname, pathname, jx );
  permpathname[jx] = '\0';
  strcat( permpathname, ".prm" );

  /* Extract the filename from the path.                                      */
  if( isalpha( pathname[0] ) && pathname[1] == ':' && pathname[2] != '\\' )
  {
    pathname[1] = '\\';         /* MS-DOS style pathname                      */
  }

  jx = len - 1;
  while( pathname[jx] != '/' && pathname[jx] != '\\' && jx >= 0 )
  {
    jx--;
  }
  strcpy( filename, &pathname[jx + 1] );

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq $0x0, 0x9a36(%rip) # 0xb250
movq $0x0, 0x9a6b(%rip) # 0xb290
movq $0x0, 0x9b80(%rip) # 0xb3b0
movq $0x0, 0x9b7d(%rip) # 0xb3b8
movq $0x0, 0x9ada(%rip) # 0xb320
movq $0x0, 0x9ad7(%rip) # 0xb328
movl $0x1, -0x18(%rbp)
movl -0x18(%rbp), %eax
cmpl -0x4(%rbp), %eax
jge 0x1aa2
movq -0x10(%rbp), %rax
movslq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x1a4c
movl $0x1, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movslq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x1c(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0x1a4a
movq -0x10(%rbp), %rax
movslq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x1c(%rbp), %rcx
movsbl (%rax,%rcx), %eax
addl $-0x64, %eax
movl %eax, %ecx
movq %rcx, -0x28(%rbp)
subl $0x14, %eax
ja 0x194e
movq -0x28(%rbp), %rax
leaq 0x5733(%rip), %rcx      # 0x7004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x1, 0x98dc(%rip)      # 0xb1bd
jmp 0x1a3a
movb $0x1, 0x98cf(%rip)      # 0xb1bc
jmp 0x1a3a
movb $0x1, 0x98c1(%rip)      # 0xb1ba
jmp 0x1a3a
movb $0x1, 0x98b6(%rip)      # 0xb1bb
jmp 0x1a3a
movb $0x1, 0x98ad(%rip)      # 0xb1be
jmp 0x1a3a
movq 0x86db(%rip), %rax      # 0x9ff8
movq (%rax), %rdi
movq 0x87a9(%rip), %rdx      # 0xa0d0
leaq 0x5cfa(%rip), %rsi      # 0x7628
movb $0x0, %al
callq 0x1100
movq 0x86bc(%rip), %rax      # 0x9ff8
movq (%rax), %rdi
callq 0x1120
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1160
movq 0x86a3(%rip), %rax      # 0x9ff8
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movq -0x10(%rbp), %rax
movslq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
leaq 0x5ca4(%rip), %rsi      # 0x7616
movb $0x0, %al
callq 0x1100
movq 0x8678(%rip), %rax      # 0x9ff8
movq (%rax), %rdi
leaq 0x5ca2(%rip), %rsi      # 0x762c
movb $0x0, %al
callq 0x1100
movq 0x8660(%rip), %rax      # 0x9ff8
movq (%rax), %rdi
leaq 0x5ca4(%rip), %rsi      # 0x7646
movb $0x0, %al
callq 0x1100
movq 0x8648(%rip), %rax      # 0x9ff8
movq (%rax), %rdi
leaq 0x5ca3(%rip), %rsi      # 0x765d
movb $0x0, %al
callq 0x1100
movq 0x8630(%rip), %rax      # 0x9ff8
movq (%rax), %rdi
leaq 0x5ca5(%rip), %rsi      # 0x7677
movb $0x0, %al
callq 0x1100
movq 0x8618(%rip), %rax      # 0x9ff8
movq (%rax), %rdi
leaq 0x5cac(%rip), %rsi      # 0x7696
movb $0x0, %al
callq 0x1100
movq 0x8600(%rip), %rax      # 0x9ff8
movq (%rax), %rdi
leaq 0x5cbd(%rip), %rsi      # 0x76bf
movb $0x0, %al
callq 0x1100
movq 0x85e8(%rip), %rax      # 0x9ff8
movq (%rax), %rdi
leaq 0x5cbd(%rip), %rsi      # 0x76d7
movb $0x0, %al
callq 0x1100
movq 0x85d0(%rip), %rax      # 0x9ff8
movq (%rax), %rdi
callq 0x1120
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1160
jmp 0x1a3c
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x1883
jmp 0x1a92
cmpq $0x0, 0x976c(%rip)      # 0xb1c0
je 0x1a7f
movq 0x859b(%rip), %rax      # 0x9ff8
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
leaq 0x5c90(%rip), %rsi      # 0x76fe
movb $0x0, %al
callq 0x1100
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1160
movq -0x10(%rbp), %rax
movslq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x972e(%rip)      # 0xb1c0
jmp 0x1a94
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x1858
cmpq $0x0, 0x9716(%rip)      # 0xb1c0
jne 0x1ad5
movq 0x8545(%rip), %rax      # 0x9ff8
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
leaq 0x5c54(%rip), %rsi      # 0x7718
movb $0x0, %al
callq 0x1100
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1160
movq 0x96e4(%rip), %rdi      # 0xb1c0
callq 0x1090
movl %eax, -0x14(%rbp)
cmpl $0x7b, -0x14(%rbp)
jle 0x1b1a
movq 0x8507(%rip), %rax      # 0x9ff8
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movq 0x96be(%rip), %rcx      # 0xb1c0
leaq 0x5c2d(%rip), %rsi      # 0x7736
movb $0x0, %al
callq 0x1100
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1160
movq 0x969f(%rip), %rdi      # 0xb1c0
leaq 0x5710(%rip), %rsi      # 0x7238
callq 0x1130
movq %rax, 0x975c(%rip)      # 0xb290
cmpq $0x0, %rax
jne 0x1b6a
movq 0x84b7(%rip), %rax      # 0x9ff8
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movq 0x966e(%rip), %rcx      # 0xb1c0
leaq 0x5bf9(%rip), %rsi      # 0x7752
movb $0x0, %al
callq 0x1100
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1160
movl -0x14(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x1c(%rbp)
movq 0x9646(%rip), %rax      # 0xb1c0
movslq -0x1c(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x2e, %ecx
movb %al, -0x29(%rbp)
je 0x1bc8
movq 0x962d(%rip), %rax      # 0xb1c0
movslq -0x1c(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x2f, %ecx
movb %al, -0x29(%rbp)
je 0x1bc8
movq 0x9614(%rip), %rax      # 0xb1c0
movslq -0x1c(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x5c, %ecx
movb %al, -0x29(%rbp)
je 0x1bc8
cmpl $0x0, -0x1c(%rbp)
setge %al
movb %al, -0x29(%rbp)
movb -0x29(%rbp), %al
testb $0x1, %al
jne 0x1bd1
jmp 0x1bdc
movl -0x1c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x1b73
movq 0x95dd(%rip), %rax      # 0xb1c0
movslq -0x1c(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movl %eax, -0x30(%rbp)
subl $0x2e, %eax
je 0x1c09
jmp 0x1bf5
movl -0x30(%rbp), %eax
subl $0x2f, %eax
je 0x1c0b
jmp 0x1bff
movl -0x30(%rbp), %eax
subl $0x5c, %eax
je 0x1c0b
jmp 0x1c13
jmp 0x1c15
movl -0x14(%rbp), %eax
movl %eax, -0x1c(%rbp)
jmp 0x1c15
jmp 0x1c15
movq 0x95a4(%rip), %rsi      # 0xb1c0
movslq -0x1c(%rbp), %rdx
leaq 0x9679(%rip), %rdi      # 0xb2a0
callq 0x1030
movslq -0x1c(%rbp), %rcx
leaq 0x9669(%rip), %rax      # 0xb2a0
movb $0x0, (%rax,%rcx)
movzbl 0x957a(%rip), %ecx      # 0xb1bc
leaq 0x5b24(%rip), %rsi      # 0x776d
leaq 0x5b18(%rip), %rax      # 0x7768
cmpl $0x0, %ecx
cmovneq %rax, %rsi
leaq 0x9642(%rip), %rdi      # 0xb2a0
callq 0x1140
movq 0x9556(%rip), %rsi      # 0xb1c0
movslq -0x1c(%rbp), %rdx
leaq 0x96bb(%rip), %rdi      # 0xb330
callq 0x1030
movslq -0x1c(%rbp), %rcx
leaq 0x96ab(%rip), %rax      # 0xb330
movb $0x0, (%rax,%rcx)
leaq 0x96a0(%rip), %rdi      # 0xb330
leaq 0x5adb(%rip), %rsi      # 0x7772
callq 0x1140
movq 0x951d(%rip), %rsi      # 0xb1c0
movslq -0x1c(%rbp), %rdx
leaq 0x9522(%rip), %rdi      # 0xb1d0
callq 0x1030
movslq -0x1c(%rbp), %rcx
leaq 0x9512(%rip), %rax      # 0xb1d0
movb $0x0, (%rax,%rcx)
leaq 0x9507(%rip), %rdi      # 0xb1d0
leaq 0x5aa7(%rip), %rsi      # 0x7777
callq 0x1140
movq 0x94e4(%rip), %rsi      # 0xb1c0
movslq -0x1c(%rbp), %rdx
leaq 0x96e9(%rip), %rdi      # 0xb3d0
callq 0x1030
movslq -0x1c(%rbp), %rcx
leaq 0x96d9(%rip), %rax      # 0xb3d0
movb $0x0, (%rax,%rcx)
leaq 0x96ce(%rip), %rdi      # 0xb3d0
leaq 0x5a73(%rip), %rsi      # 0x777c
callq 0x1140
callq 0x1170
movq (%rax), %rax
movq 0x94a3(%rip), %rcx      # 0xb1c0
movsbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x1d5c
movq 0x9488(%rip), %rax      # 0xb1c0
movsbl 0x1(%rax), %eax
cmpl $0x3a, %eax
jne 0x1d5c
movq 0x9478(%rip), %rax      # 0xb1c0
movsbl 0x2(%rax), %eax
cmpl $0x5c, %eax
je 0x1d5c
movq 0x9468(%rip), %rax      # 0xb1c0
movb $0x5c, 0x1(%rax)
movl -0x14(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x1c(%rbp)
movq 0x9454(%rip), %rax      # 0xb1c0
movslq -0x1c(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x2f, %ecx
movb %al, -0x31(%rbp)
je 0x1da1
movq 0x943b(%rip), %rax      # 0xb1c0
movslq -0x1c(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x5c, %ecx
movb %al, -0x31(%rbp)
je 0x1da1
cmpl $0x0, -0x1c(%rbp)
setge %al
movb %al, -0x31(%rbp)
movb -0x31(%rbp), %al
testb $0x1, %al
jne 0x1daa
jmp 0x1db5
movl -0x1c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x1d65
movq 0x9404(%rip), %rsi      # 0xb1c0
movl -0x1c(%rbp), %eax
addl $0x1, %eax
cltq
addq %rax, %rsi
leaq 0x9682(%rip), %rdi      # 0xb450
callq 0x1050
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)