// File: /workspace/github_c_makefile_star2_O0/GregorR[P]lstg/ImageBuilder/imageBuilder.c
// Function: RawClassCommand
void RawClassCommand(void)
{
  struct object  *nClass,
                 *supClass,
                 *instClass;
  int             instsize;

  /*
     read the class 
   */
  readIdentifier();
  nClass = lookupGlobal(tokenBuffer, 1);
  printf("Class %s\n", tokenBuffer);

  if(!nClass)
  {
    nClass = newClass(tokenBuffer);
    nClass->data[nameInClass] = newSymbol(tokenBuffer);
    addGlobalName(tokenBuffer, nClass);
  }

  /*
     now read the instance class 
   */
  readIdentifier();
  instClass = lookupGlobal(tokenBuffer, 1);
  if(!instClass)
  {
    sysError("can't find instance class", tokenBuffer);
  }
  nClass->class = instClass;

  /*
     now read the super class 
   */
  readIdentifier();
  supClass = lookupGlobal(tokenBuffer, 1);
  if(!supClass)
  {
    sysError("can't find super class", tokenBuffer);
  }
  nClass->data[parentClassInClass] = supClass;

  /*
     rest are instance variables 
   */
  litTop = 0;

  /*
     Now parse the new instance variables 
   */
  while(*p)
  {
    if(!isIdentifierChar(*p))
    {
      sysError("looking for var", p);
    }
    readIdentifier();
    addLiteral(newSymbol(tokenBuffer));
  }

  /*
     That's the total of our instance variables 
   */
  instsize = litTop;

  /*
     Add on size of superclass space 
   */
  if(supClass != nilObject)
  {
    instsize += integerValue(supClass->data[instanceSizeInClass]);
  }

  nClass->data[instanceSizeInClass] = newInteger(instsize);
  nClass->data[variablesInClass] = buildLiteralArray();
  /*
     make a tree for new methods 
   */
  nClass->data[methodsInClass] = newDictionary();
}

// Assembly:
subq $0x28, %rsp
callq 0x18a0
leaq 0x2cd00(%rip), %rdi     # 0x31260
movl $0x1, %esi
callq 0x1470
movq %rax, 0x20(%rsp)
leaq 0x2006(%rip), %rdi      # 0x657c
leaq 0x2cce3(%rip), %rsi     # 0x31260
movb $0x0, %al
callq 0x1080
cmpq $0x0, 0x20(%rsp)
jne 0x45c6
leaq 0x2cccd(%rip), %rdi     # 0x31260
callq 0x1ca0
movq %rax, 0x20(%rsp)
leaq 0x2ccbc(%rip), %rdi     # 0x31260
callq 0x1b40
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x20(%rsp), %rsi
leaq 0x2cc9f(%rip), %rdi     # 0x31260
callq 0x13f0
callq 0x18a0
leaq 0x2cc8e(%rip), %rdi     # 0x31260
movl $0x1, %esi
callq 0x1470
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
jne 0x45fc
leaq 0x1f96(%rip), %rdi      # 0x6586
leaq 0x2cc69(%rip), %rsi     # 0x31260
callq 0x1250
movq 0x10(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x8(%rax)
callq 0x18a0
leaq 0x2cc4a(%rip), %rdi     # 0x31260
movl $0x1, %esi
callq 0x1470
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x18(%rsp)
jne 0x4640
leaq 0x1f6c(%rip), %rdi      # 0x65a0
leaq 0x2cc25(%rip), %rsi     # 0x31260
callq 0x1250
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x18(%rax)
movl $0x0, 0x36aac(%rip)     # 0x3b104
movq 0x5ae1(%rip), %rax      # 0xa140
cmpb $0x0, (%rax)
je 0x46a6
movq 0x5ad5(%rip), %rax      # 0xa140
movsbl (%rax), %edi
callq 0x1790
cmpl $0x0, %eax
jne 0x468b
movq 0x5ac1(%rip), %rsi      # 0xa140
leaq 0x1f31(%rip), %rdi      # 0x65b7
callq 0x1250
callq 0x18a0
leaq 0x2cbc9(%rip), %rdi     # 0x31260
callq 0x1b40
movq %rax, %rdi
callq 0x2040
jmp 0x4658
movl 0x36a58(%rip), %eax     # 0x3b104
movl %eax, 0xc(%rsp)
movq 0x18(%rsp), %rax
cmpq 0x4a74(%rip), %rax      # 0x9130
je 0x46d6
movq 0x18(%rsp), %rax
movq 0x28(%rax), %rcx
sarq %rcx
movslq 0xc(%rsp), %rax
addq %rcx, %rax
movl %eax, 0xc(%rsp)
movslq 0xc(%rsp), %rcx
shlq %rcx
orq $0x1, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x28(%rax)
callq 0x2090
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x30(%rax)
callq 0x1d80
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x20(%rax)
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)