LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/GregorR[P]lstg/source/memory.c
// Function: gcialloc
struct object  *gcialloc(int sz)
{
  int             trueSize;
  struct object  *result;

  trueSize = (sz + BytesPerWord - 1) / BytesPerWord;
  result = gcalloc(trueSize);
  SETSIZE(result, sz);
  result->size |= FLAG_BIN;
  return result;
}

// Assembly:
pushq %rbx
movl %edi, %ebx
leal 0x7(%rbx), %eax
leal 0xe(%rbx), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
movl %ecx, %edi
andl $-0x8, %ecx
movl $0xfffffff0, %eax       # imm = 0xFFFFFFF0
subl %ecx, %eax
cltq
addq 0x40c18(%rip), %rax     # 0x45a18
sarl $0x3, %edi
movq %rax, 0x40c0e(%rip)     # 0x45a18
cmpq 0x40bff(%rip), %rax     # 0x45a10
jae 0x4e1a
callq 0x4a29
jmp 0x4e1f
shll $0x2, %edi
movl %edi, (%rax)
leal 0x2(,%rbx,4), %ecx
movl %ecx, (%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/GregorR[P]lstg/source/memory.c
// Function: fileIn
int fileIn(FILE * fp)
{
  int             i;

  /*
     use the currently unused space for the indir pointers 
   */
  if(inSpaceOne)
  {
    indirArray = (struct object * *) spaceTwo;
    indirSize = spaceTwoSize;
  }
  else
  {
    indirArray = (struct object * *) spaceOne;
    indirSize = spaceOneSize;
  }
  indirtop = 0;

  /*
     read in the method from the image file 
   */
  nilObject     = objectRead(fp);
  trueObject    = objectRead(fp);
  falseObject   = objectRead(fp);
  globalsObject = objectRead(fp);
  SmallIntClass = objectRead(fp);
  IntegerClass  = objectRead(fp);
  ArrayClass    = objectRead(fp);
  BlockClass    = objectRead(fp);
  ContextClass  = objectRead(fp);
  StringClass   = objectRead(fp);
  initialMethod = objectRead(fp);
  for(i = 0; i < 3; i++)
  {
    binaryMessages[i] = objectRead(fp);
  }
  badMethodSym = objectRead(fp);

  /*
     clean up after ourselves 
   */
  memoryClear((char *) indirArray, indirSize * sizeof(struct object));
  return indirtop;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x40baf(%rip), %rax     # 0x459e8
cmpb $0x0, 0x40be0(%rip)     # 0x45a20
leaq 0x40b91(%rip), %rcx     # 0x459d8
cmovneq %rax, %rcx
leaq 0x40b9e(%rip), %rax     # 0x459f0
leaq 0x40b87(%rip), %rdx     # 0x459e0
cmovneq %rax, %rdx
movq (%rcx), %rax
movq %rax, 0x41d19(%rip)     # 0x46b80
movq (%rdx), %rax
movq %rax, 0x41d17(%rip)     # 0x46b88
movl $0x0, 0x41d15(%rip)     # 0x46b90
callq 0x4f94
leaq 0x40ab1(%rip), %rcx     # 0x45938
movq %rax, (%rcx)
movq %rbx, %rdi
callq 0x4f94
leaq 0x40aa7(%rip), %rcx     # 0x45940
movq %rax, (%rcx)
movq %rbx, %rdi
callq 0x4f94
leaq 0x40a9d(%rip), %rcx     # 0x45948
movq %rax, (%rcx)
movq %rbx, %rdi
callq 0x4f94
leaq 0x40aeb(%rip), %rcx     # 0x459a8
movq %rax, (%rcx)
movq %rbx, %rdi
callq 0x4f94
leaq 0x40a91(%rip), %rcx     # 0x45960
movq %rax, (%rcx)
movq %rbx, %rdi
callq 0x4f94
leaq 0x40ab7(%rip), %rcx     # 0x45998
movq %rax, (%rcx)
movq %rbx, %rdi
callq 0x4f94
leaq 0x40a5d(%rip), %rcx     # 0x45950
movq %rax, (%rcx)
movq %rbx, %rdi
callq 0x4f94
leaq 0x40a53(%rip), %rcx     # 0x45958
movq %rax, (%rcx)
movq %rbx, %rdi
callq 0x4f94
leaq 0x40a59(%rip), %rcx     # 0x45970
movq %rax, (%rcx)
movq %rbx, %rdi
callq 0x4f94
leaq 0x40a77(%rip), %rcx     # 0x459a0
movq %rax, (%rcx)
movq %rbx, %rdi
callq 0x4f94
leaq 0x40a75(%rip), %rcx     # 0x459b0
movq %rax, (%rcx)
xorl %r14d, %r14d
leaq 0x40a38(%rip), %r15     # 0x45980
movq %rbx, %rdi
callq 0x4f94
movq %rax, (%r15,%r14,8)
incq %r14
cmpq $0x3, %r14
jne 0x4f48
movq %rbx, %rdi
callq 0x4f94
leaq 0x409fc(%rip), %rcx     # 0x45968
movq %rax, (%rcx)
movq 0x41c0a(%rip), %rdi     # 0x46b80
movq 0x41c0b(%rip), %rdx     # 0x46b88
shlq $0x4, %rdx
xorl %esi, %esi
callq 0x2140
movl 0x41c02(%rip), %eax     # 0x46b90
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/GregorR[P]lstg/source/memory.c
// Function: fileOut
int fileOut(FILE * fp)
{
  int             i;

  /*
     use the currently unused space for the indir pointers 
   */
  if(inSpaceOne)
  {
    indirArray = (struct object * *) spaceTwo;
    indirSize = spaceTwoSize;
  }
  else
  {
    indirArray = (struct object * *) spaceOne;
    indirSize = spaceOneSize;
  }
  indirtop = 0;

  /*
     write out the roots of the image file 
   */
  objectWrite(fp, nilObject);
  objectWrite(fp, trueObject);
  objectWrite(fp, falseObject);
  objectWrite(fp, globalsObject);
  objectWrite(fp, SmallIntClass);
  objectWrite(fp, IntegerClass);
  objectWrite(fp, ArrayClass);
  objectWrite(fp, BlockClass);
  objectWrite(fp, ContextClass);
  objectWrite(fp, StringClass);
  objectWrite(fp, initialMethod);
  for(i = 0; i < 3; i++)
  {
    objectWrite(fp, binaryMessages[i]);
  }
  objectWrite(fp, badMethodSym);
  printf("%d objects written in image\n", indirtop);

  /*
     clean up after ourselves 
   */
  memoryClear((char *) indirArray, indirSize * sizeof(struct object));
  return indirtop;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
leaq 0x408ce(%rip), %rax     # 0x459e8
leaq 0x408b7(%rip), %rcx     # 0x459d8
cmpb $0x0, 0x408f8(%rip)     # 0x45a20
cmovneq %rax, %rcx
movq %rdi, %rbx
movq (%rcx), %rax
movq %rax, 0x41a47(%rip)     # 0x46b80
leaq 0x408b0(%rip), %rax     # 0x459f0
leaq 0x40899(%rip), %rcx     # 0x459e0
cmovneq %rax, %rcx
movq (%rcx), %rax
movq %rax, 0x41a33(%rip)     # 0x46b88
movl $0x0, 0x41a31(%rip)     # 0x46b90
leaq 0x407d2(%rip), %rax     # 0x45938
movq (%rax), %rsi
callq 0x528c
leaq 0x407cb(%rip), %rax     # 0x45940
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x528c
leaq 0x407c1(%rip), %rax     # 0x45948
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x528c
leaq 0x4080f(%rip), %rax     # 0x459a8
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x528c
leaq 0x407b5(%rip), %rax     # 0x45960
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x528c
leaq 0x407db(%rip), %rax     # 0x45998
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x528c
leaq 0x40781(%rip), %rax     # 0x45950
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x528c
leaq 0x40777(%rip), %rax     # 0x45958
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x528c
leaq 0x4077d(%rip), %rax     # 0x45970
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x528c
leaq 0x4079b(%rip), %rax     # 0x459a0
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x528c
leaq 0x40799(%rip), %rax     # 0x459b0
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x528c
xorl %r14d, %r14d
leaq 0x40754(%rip), %r15     # 0x45980
movq (%r15,%r14,8), %rsi
movq %rbx, %rdi
callq 0x528c
incq %r14
cmpq $0x3, %r14
jne 0x522c
leaq 0x40720(%rip), %rax     # 0x45968
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x528c
movl 0x41937(%rip), %esi     # 0x46b90
leaq 0x2175(%rip), %rdi      # 0x73d5
xorl %eax, %eax
callq 0x2130
movq 0x41912(%rip), %rdi     # 0x46b80
movq 0x41913(%rip), %rdx     # 0x46b88
shlq $0x4, %rdx
xorl %esi, %esi
callq 0x2140
movl 0x4190a(%rip), %eax     # 0x46b90
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/GregorR[P]lstg/source/memory.c
// Function: objectWrite
static void objectWrite(FILE * fp, struct object *obj)
{
  int             i,
                  size;

  if(obj == 0)
  {
    sysError("writing out a null object", 0);
  }

  if(IS_SMALLINT(obj))
  {                             /* SmallInt */
    int             val;

    writeWord(fp, 2);
    val = HTONL(integerValue(obj));
    (void) fwrite(&val, sizeof(val), 1, fp);
    return;
  }

  /*
     see if already written 
   */
  for(i = 0; i < indirtop; i++)
  {
    if(obj == indirArray[i])
    {
      if(i == 0)
      {
        writeWord(fp, 5);
      }
      else
      {
        writeWord(fp, 4);
        writeWord(fp, i);
      }
      return;
    }
  }

  /*
     not written, do it now 
   */
  indirArray[indirtop++] = obj;

  /*
     byte objects 
   */
  if(obj->size & FLAG_BIN)
  {
    struct byteObject *bobj = (struct byteObject *) obj;

    size = SIZE(obj);
    writeWord(fp, 3);
    writeWord(fp, size);
    for(i = 0; i < size; i++)
      writeWord(fp, bobj->bytes[i]);
    objectWrite(fp, obj->class);
    return;
  }

  /*
     ordinary objects 
   */
  size = SIZE(obj);
  writeWord(fp, 1);
  writeWord(fp, size);
  objectWrite(fp, obj->class);
  for(i = 0; i < size; i++)
  {
    objectWrite(fp, obj->data[i]);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x220c(%rip), %r15      # 0x74b0
testq %r14, %r14
jne 0x52b3
movq %r15, %rdi
xorl %esi, %esi
callq 0x4340
testb $0x1, %r14b
jne 0x538e
movslq 0x418cc(%rip), %rax     # 0x46b90
testq %rax, %rax
jle 0x52e1
movq 0x418b0(%rip), %rcx     # 0x46b80
xorl %r12d, %r12d
cmpq %r14, (%rcx,%r12,8)
je 0x5348
incq %r12
cmpq %r12, %rax
jne 0x52d3
movq 0x41898(%rip), %rcx     # 0x46b80
leal 0x1(%rax), %edx
movl %edx, 0x4189f(%rip)     # 0x46b90
movq %r14, (%rcx,%rax,8)
movl (%r14), %ebp
movl %ebp, %r12d
shrl $0x2, %r12d
testb $0x2, %bpl
je 0x53ba
movl $0x3, %edi
movq %rbx, %rsi
callq 0x2180
movq %rbx, %rdi
movl %r12d, %esi
callq 0x572c
cmpl $0x4, %ebp
jb 0x533f
xorl %r13d, %r13d
movzbl 0x10(%r14,%r13), %esi
movq %rbx, %rdi
callq 0x572c
incq %r13
cmpq %r13, %r12
jne 0x5329
movq 0x8(%r14), %r14
jmp 0x52a4
testq %r12, %r12
je 0x5373
movl $0x4, %edi
movq %rbx, %rsi
callq 0x2180
movq %rbx, %rdi
movl %r12d, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x572c
movl $0x5, %edi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2180
movl $0x2, %edi
movq %rbx, %rsi
callq 0x2180
shrq %r14
leaq 0x4(%rsp), %rdi
movl %r14d, (%rdi)
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x2340
jmp 0x53fe
movl $0x1, %edi
movq %rbx, %rsi
callq 0x2180
movq %rbx, %rdi
movl %r12d, %esi
callq 0x572c
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x528c
cmpl $0x4, %ebp
jb 0x53fe
movl %r12d, %r15d
xorl %r12d, %r12d
movq 0x10(%r14,%r12,8), %rsi
movq %rbx, %rdi
callq 0x528c
incq %r12
cmpq %r12, %r15
jne 0x53e9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/GregorR[P]lstg/source/memory.c
// Function: addStaticRoot
void addStaticRoot(struct object **objp)
{
  LstUInt         i;

  for(i = 0; i < staticRootTop; ++i)
  {
    if(objp == staticRoots[i])
    {
      return;
    }
  }
  if(staticRootTop >= STATICROOTLIMIT)
  {
    sysError("addStaticRoot: too many static references",
             0);
  }
  staticRoots[staticRootTop++] = objp;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0x407b9(%rip), %eax     # 0x45bd0
testl %eax, %eax
je 0x5431
leaq 0x407be(%rip), %rcx     # 0x45be0
movl %eax, %edx
cmpq %rbx, (%rcx)
je 0x5460
addq $0x8, %rcx
decl %edx
jne 0x5424
cmpl $0x1f4, %eax            # imm = 0x1F4
jb 0x5446
leaq 0x1fb3(%rip), %rdi      # 0x73f2
xorl %esi, %esi
callq 0x4340
movl 0x40784(%rip), %eax     # 0x45bd0
leal 0x1(%rax), %ecx
movl %ecx, 0x4077b(%rip)     # 0x45bd0
leaq 0x40784(%rip), %rcx     # 0x45be0
movq %rbx, (%rcx,%rax,8)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/GregorR[P]lstg/source/memory.c
// Function: exchangeObjects
void
exchangeObjects(struct object *array1, struct object *array2, LstUInt size)
{
  LstUInt         x;

  /*
   * Convert our memory spaces
   */
  walk(memoryPointer, memoryTop, array1, array2, size);
  walk(staticPointer, staticTop, array1, array2, size);

  /*
   * Fix up the root pointers, too
   */
  for(x = 0; x < rootTop; x++)
  {
    map(&rootStack[x], array1, array2, size);
  }
  for(x = 0; x < staticRootTop; x++)
  {
    map(staticRoots[x], array1, array2, size);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movq 0x405a2(%rip), %rdi     # 0x45a18
movq 0x405b3(%rip), %rsi     # 0x45a30
movq %r15, %rdx
movq %r14, %rcx
movl %ebx, %r8d
callq 0x5549
movq 0x40576(%rip), %rdi     # 0x45a08
movq 0x40567(%rip), %rsi     # 0x45a00
movq %r15, %rdx
movq %r14, %rcx
movl %ebx, %r8d
callq 0x5549
movl 0x40523(%rip), %ecx     # 0x459d0
movl %ebx, %eax
testq %rcx, %rcx
je 0x54f5
xorl %edx, %edx
leaq 0x40583(%rip), %rsi     # 0x45a40
testl %ebx, %ebx
jle 0x54ed
movq (%rsi,%rdx,8), %rdi
xorl %r8d, %r8d
movq 0x10(%r15,%r8,8), %r9
movq 0x10(%r14,%r8,8), %r10
cmpq %rdi, %r9
je 0x54e6
cmpq %rdi, %r10
je 0x54e9
incq %r8
cmpq %r8, %rax
jne 0x54c8
jmp 0x54ed
movq %r10, %r9
movq %r9, (%rsi,%rdx,8)
incq %rdx
cmpq %rcx, %rdx
jne 0x54bd
movl 0x406d5(%rip), %ecx     # 0x45bd0
testq %rcx, %rcx
je 0x5543
xorl %edx, %edx
leaq 0x406d7(%rip), %rsi     # 0x45be0
testl %ebx, %ebx
jle 0x553b
movq (%rsi,%rdx,8), %rdi
movq (%rdi), %r8
xorl %r9d, %r9d
movq 0x10(%r15,%r9,8), %r10
movq 0x10(%r14,%r9,8), %r11
cmpq %r8, %r10
je 0x5535
cmpq %r8, %r11
je 0x5538
incq %r9
cmpq %r9, %rax
jne 0x5517
jmp 0x553b
movq %r11, %r10
movq %r10, (%rdi)
incq %rdx
cmpq %rcx, %rdx
jne 0x5509
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/GregorR[P]lstg/source/memory.c
// Function: walk
static void
walk(struct object *base, struct object *top,
     struct object *array1, struct object *array2, LstUInt size)
{
  struct object  *op,
                 *opnext;
  LstUInt         x,
                  sz;

  for(op = base; op < top; op = opnext)
  {
    /*
     * Re-map the class pointer, in case that's the
     * object which has been remapped.
     */
    map(&op->class, array1, array2, size);

    /*
     * Skip our argument arrays, since otherwise things
     * get rather circular.
     */
    sz = SIZE(op);
    if((op == array1) || (op == array2))
    {
      opnext = WORDSUP(op, sz + 2);
      continue;
    }

    /*
     * Don't have to worry about instance variables
     * if it's a binary format.
     */
    if(op->size & FLAG_BIN)
    {
      LstUInt         trueSize;

      /*
       * Skip size/class, and enough words to
       * contain the binary bytes.
       */
      trueSize = (sz + BytesPerWord - 1) / BytesPerWord;
      opnext = WORDSUP(op, trueSize + 2);
      continue;
    }

    /*
     * For each instance variable slot, fix up the pointer
     * if needed.
     */
    for(x = 0; x < sz; ++x)
    {
      map(&op->data[x], array1, array2, size);
    }

    /*
     * Walk past this object
     */
    opnext = WORDSUP(op, sz + 2);
  }
}

// Assembly:
cmpq %rsi, %rdi
jae 0x5615
pushq %r15
pushq %r14
pushq %rbx
movl %r8d, %eax
testl %r8d, %r8d
jle 0x558b
movq 0x8(%rdi), %r9
xorl %r10d, %r10d
movq 0x10(%rdx,%r10,8), %r11
movq 0x10(%rcx,%r10,8), %rbx
cmpq %r9, %r11
je 0x5584
cmpq %r9, %rbx
je 0x5587
incq %r10
cmpq %r10, %rax
jne 0x5566
jmp 0x558b
movq %rbx, %r11
movq %r11, 0x8(%rdi)
movl (%rdi), %r10d
movl %r10d, %r9d
shrl $0x2, %r9d
cmpq %rdx, %rdi
setne %r11b
cmpq %rcx, %rdi
setne %bl
testb %bl, %r11b
jne 0x55ad
shll $0x3, %r9d
jmp 0x5600
testb $0x2, %r10b
jne 0x55f8
cmpl $0x4, %r10d
jb 0x55a7
xorl %r10d, %r10d
testl %r8d, %r8d
jle 0x55ee
movq 0x10(%rdi,%r10,8), %r11
xorl %ebx, %ebx
movq 0x10(%rdx,%rbx,8), %r14
movq 0x10(%rcx,%rbx,8), %r15
cmpq %r11, %r14
je 0x55e6
cmpq %r11, %r15
je 0x55e9
incq %rbx
cmpq %rbx, %rax
jne 0x55c8
jmp 0x55ee
movq %r15, %r14
movq %r14, 0x10(%rdi,%r10,8)
incq %r10
cmpq %r9, %r10
jne 0x55bc
jmp 0x55a7
addl $0x7, %r9d
andl $-0x8, %r9d
addl $0x10, %r9d
addq %r9, %rdi
cmpq %rsi, %rdi
jb 0x555a
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/GregorR[P]lstg/source/memory.c
// Function: lstNewString
struct object *lstNewString(const char *str)
{
  struct byteObject *stringObject;
  struct object *returnObject;
  LstUInt i;
  LstUInt l;

  l = strlen(str);

  stringObject = (struct byteObject *)gcialloc(l);
  returnObject = (struct object *)stringObject;
  returnObject->class = StringClass;

  for(i = 0; i < l; i++)
      stringObject->bytes[i] = str[i];

  return returnObject;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x2100
movq %rax, %r14
movl %r14d, %edi
callq 0x4ddd
leaq 0x4036c(%rip), %rcx     # 0x459a0
movq (%rcx), %rcx
movq %rcx, 0x8(%rax)
testl %r14d, %r14d
je 0x5656
movl %r14d, %ecx
xorl %edx, %edx
movb (%rbx,%rdx), %sil
movb %sil, 0x10(%rax,%rdx)
incq %rdx
cmpq %rdx, %rcx
jne 0x5645
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/GregorR[P]lstg/source/memory.c
// Function: lstGetString
void lstGetString(char *to, int size, struct object *from)
{
  int             i;
  int             fsize = SIZE(from);
  struct byteObject *bobj = (struct byteObject *) from;

  if(fsize > size)
  {
	  sysError("error converting text into unix string", (void *)(INT_PTR)fsize);
  }
  for(i = 0; i < fsize; i++)
  {
    to[i] = bobj->bytes[i];
  }
  to[i] = '\0';                 /* put null terminator at end */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rdi, %rbx
movl (%rdx), %ebp
movl %ebp, %r15d
shrl $0x2, %r15d
cmpl %esi, %r15d
jle 0x5688
leaq 0x1d9c(%rip), %rdi      # 0x741c
movq %r15, %rsi
callq 0x4340
cmpl $0x4, %ebp
jae 0x5691
xorl %eax, %eax
jmp 0x56a6
movl %r15d, %ecx
xorl %eax, %eax
movb 0x10(%r14,%rax), %dl
movb %dl, (%rbx,%rax)
incq %rax
cmpq %rax, %rcx
jne 0x5696
movb $0x0, (%rbx,%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/GregorR[P]lstg/source/memory.c
// Function: lstNewBinary
struct object *lstNewBinary(void *p, LstUInt l)
{
  struct byteObject *stringObject = (struct byteObject *) gcialloc(l);

  stringObject->class = StringClass; // TODO should use ByteArrayClass

  memcpy(stringObject->bytes, p, l);

  return (struct object *) stringObject;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
movl %esi, %edi
callq 0x4ddd
movq %rax, %r15
leaq 0x402d0(%rip), %rax     # 0x459a0
movq (%rax), %rax
movq %rax, 0x8(%r15)
leaq 0x10(%r15), %rdi
movl %ebx, %edx
movq %r14, %rsi
callq 0x21f0
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/GregorR[P]lstg/source/memory.c
// Function: readWord
static unsigned int readWord(FILE * fp)
{
  int             i;
  unsigned int    value;

  i = fgetc(fp);
  if(i == EOF)
  {
    sysError("unexpected end of file reading image file", 0);
  }

  value = i == 255 ? 255 + readWord(fp) : i;
  return value;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
xorl %ebp, %ebp
movq %r14, %rdi
callq 0x2160
cmpl $0xff, %eax
jne 0x570e
addl $0xff, %ebp
jmp 0x56f7
movl %eax, %ebx
cmpl $-0x1, %eax
jne 0x5723
leaq 0x1d6a(%rip), %rdi      # 0x7486
xorl %esi, %esi
callq 0x4340
addl %ebp, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/GregorR[P]lstg/source/memory.c
// Function: writeWord
static void writeWord(FILE * fp, int i)
{
  if(i < 0)
  {
	  sysError("trying to write out negative value", (void *)(INT_PTR)i);
  }
  if(i >= 255)
  {
    fputc(255, fp);
    writeWord(fp, i - 255);
  }
  else
  {
    fputc(i, fp);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movslq %esi, %r14
leaq 0x1d8c(%rip), %r15      # 0x74ca
testl %r14d, %r14d
jns 0x574e
movq %r15, %rdi
movq %r14, %rsi
callq 0x4340
cmpl $0xff, %r14d
jl 0x576d
movl $0xff, %edi
movq %rbx, %rsi
callq 0x2180
addq $-0xff, %r14
jmp 0x573e
movl %r14d, %edi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x2180
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/GregorR[P]lstg/source/rss_dynload.c
// Function: rss_dlOpen
RSS_DL_Handle rss_dlOpen(const char *pathname, RSS_DL_Mode mode)
{
  int dlMode;
  RSS_DL_Handle h = (RSS_DL_Handle)malloc(sizeof(struct RSS_DL_Handle_Struct));
  if(!h)
    return 0;

  dlMode = mode == RSS_DL_LAZY ? RTLD_LAZY : RTLD_NOW;
  /*h->handle = dlopen(pathname, dlMode | RTLD_LOCAL);*/
  h->handle = dlopen(pathname, dlMode | RTLD_GLOBAL);

  if(!h->handle)
  {
    free(h);
    h = 0;
  }

  return h;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %r14
movl $0x8, %edi
callq 0x2220
testq %rax, %rax
je 0x5da6
movq %rax, %rbx
cmpl $0x1, %ebp
movl $0x102, %esi            # imm = 0x102
sbbl $0x0, %esi
movq %r14, %rdi
callq 0x21b0
movq %rax, (%rbx)
testq %rax, %rax
jne 0x5da8
movq %rbx, %rdi
callq 0x2060
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/GregorR[P]lstg/source/rss_dynload.c
// Function: rss_dlClose
int rss_dlClose(RSS_DL_Handle handle)
{
  int result = -1;

  if(!handle)
    return -1;

  if(handle->handle)
    result = dlclose(handle->handle);

  free(handle);
  return result;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x5dcc
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x5dd3
callq 0x2360
movl %eax, %ebp
jmp 0x5dd8
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x5de0
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq %rbx, %rdi
callq 0x2060
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/GregorR[P]lstg/source/rss_queue.c
// Function: rss_queueCreate
RSS_Queue rss_queueCreate(int initialSize)
{
  RSS_Queue q;

  q = (RSS_Queue)malloc(sizeof(struct RSS_Queue_Struct));
  if(!q)
    return 0;

  q->maxSize    = 0;
  q->size       = 0;
  q->firstIndex = 0;
  q->lastIndex  = 0;
  q->queue      = 0;

  if(!rss_queueResize(q, initialSize ? initialSize : 100))
  {
    free(q);
    q = 0;
  }

  return q;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %edi, %ebp
movl $0x18, %edi
callq 0x2220
testq %rax, %rax
je 0x5e5b
movq %rax, %rbx
testl %ebp, %ebp
movl $0x64, %esi
cmovnel %ebp, %esi
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rax, %rdi
callq 0x5e67
testl %eax, %eax
jne 0x5e5d
movq %rbx, %rdi
callq 0x2060
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/GregorR[P]lstg/source/rss_queue.c
// Function: rss_queueResize
static int rss_queueResize(RSS_Queue queue, int newSize)
{
  void **newQueue;
  int    i;

  if(!queue)
    return 0;

  newQueue = (void **)malloc(newSize * sizeof(void *));
  if(!newQueue)
    return 0;

  if(queue->queue)
  {
    for(i = 0; i < queue->size; i++)
      newQueue[i] = queue->queue[(queue->firstIndex + i) % queue->maxSize];

    free(queue->queue);
  }

  queue->queue      = newQueue;
  queue->firstIndex = 0;
  queue->lastIndex  = queue->size;
  queue->maxSize    = newSize;

  return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
movslq %esi, %rdi
shlq $0x3, %rdi
callq 0x2220
testq %rax, %rax
je 0x5ede
movq %rax, %r15
movq 0x10(%r14), %rdi
testq %rdi, %rdi
je 0x5ec0
movslq 0x4(%r14), %rcx
testq %rcx, %rcx
jle 0x5ebb
movl (%r14), %esi
movl 0x8(%r14), %r8d
xorl %r9d, %r9d
leal (%r8,%r9), %eax
cltd
idivl %esi
movslq %edx, %rax
movq (%rdi,%rax,8), %rax
movq %rax, (%r15,%r9,8)
incq %r9
cmpq %r9, %rcx
jne 0x5ea1
callq 0x2060
movq %r15, 0x10(%r14)
movl $0x0, 0x8(%r14)
movl 0x4(%r14), %eax
movl %eax, 0xc(%r14)
movl %ebx, (%r14)
movl $0x1, %eax
jmp 0x5ee0
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/GregorR[P]lstg/source/rss_queue.c
// Function: rss_queueRelease
void rss_queueRelease(RSS_Queue queue)
{
  if(!queue)
    return;

  if(queue->queue)
    free(queue->queue);

  free(queue);
}

// Assembly:
testq %rdi, %rdi
je 0x5f06
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x5efd
callq 0x2060
movq %rbx, %rdi
popq %rbx
jmp 0x2060
retq
// File: /workspace/github_c_makefile_star2_O1/GregorR[P]lstg/source/rss_queue.c
// Function: rss_queueGet
void *rss_queueGet(RSS_Queue queue)
{
  void *element;

  if(!queue)
    return 0;

  if(queue->size <= 0)
    return 0;

  element = queue->queue[queue->firstIndex];
  queue->firstIndex++;
  if(queue->firstIndex >= queue->maxSize)
    queue->firstIndex -= queue->maxSize;

  queue->size--;

  return element;
}

// Assembly:
testq %rdi, %rdi
je 0x5f40
movl 0x4(%rdi), %ecx
testl %ecx, %ecx
jle 0x5f40
movq 0x10(%rdi), %rax
movslq 0x8(%rdi), %rdx
movq (%rax,%rdx,8), %rax
incl %edx
movl %edx, 0x8(%rdi)
subl (%rdi), %edx
jl 0x5f3a
movl %edx, 0x8(%rdi)
decl %ecx
movl %ecx, 0x4(%rdi)
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/GregorR[P]lstg/source/rss_queue.c
// Function: rss_queuePut
int rss_queuePut(RSS_Queue queue, void *element)
{
  if(!queue)
    return 0;

  if(queue->size >= queue->maxSize)
  {
    if(!rss_queueResize(queue, queue->maxSize + (queue->maxSize / 2) + 1))
      return 0;
  }

  queue->queue[queue->lastIndex] = element;
  queue->lastIndex++;
  if(queue->lastIndex >= queue->maxSize)
    queue->lastIndex -= queue->maxSize;

  queue->size++;

  return 1;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
xorl %ebp, %ebp
testq %rdi, %rdi
je 0x5f96
movq %rsi, %r14
movq %rdi, %rbx
movl (%rdi), %eax
cmpl %eax, 0x4(%rdi)
jl 0x5f75
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
leal (%rax,%rcx), %esi
incl %esi
movq %rbx, %rdi
callq 0x5e67
testl %eax, %eax
je 0x5f96
movq 0x10(%rbx), %rax
movslq 0xc(%rbx), %rcx
movq %r14, (%rax,%rcx,8)
leal 0x1(%rcx), %eax
movl %eax, 0xc(%rbx)
subl (%rbx), %eax
jl 0x5f8e
movl %eax, 0xc(%rbx)
incl 0x4(%rbx)
movl $0x1, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/deepika9294[P]Threading-Library/one-one/test/matrix.c
// Function: init
void init(matrix *t, int c) {
    t->mat = (int **)malloc(sizeof(int *) * t->r);
    for(int i = 0; i < t->r; i++ ) {
        t->mat[i] = (int *)malloc(sizeof(int) * t->c); 
    }
    // initialising the matrix with c
    for(int i = 0; i < t->r; i++) {
        for(int j = 0; j < t->c; j++) {
            t->mat[i][j] = c;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movslq 0x8(%rdi), %r12
leaq (,%r12,8), %rdi
callq 0x10e0
movq %rax, (%r14)
testq %r12, %r12
jle 0x186e
movslq 0xc(%r14), %r15
shlq $0x2, %r15
xorl %r13d, %r13d
movq %r15, %rdi
callq 0x10e0
movq (%r14), %rcx
movq %rax, (%rcx,%r13,8)
incq %r13
cmpq %r13, %r12
jne 0x1857
cmpl $0x0, 0x8(%r14)
jle 0x18a2
xorl %eax, %eax
cmpl $0x0, 0xc(%r14)
jle 0x1896
movq (%r14), %rcx
movq (%rcx,%rax,8), %rcx
xorl %edx, %edx
movl %ebx, (%rcx,%rdx,4)
incq %rdx
movslq 0xc(%r14), %rsi
cmpq %rsi, %rdx
jl 0x1887
incq %rax
movslq 0x8(%r14), %rcx
cmpq %rcx, %rax
jl 0x1877
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/deepika9294[P]Threading-Library/one-one/test/matrix.c
// Function: print_matrix
void print_matrix(matrix *t) {
    printf("\n");
    // t->mat[5][5] = 34;
    for(int i = 0; i < t->r; i++) {
        for(int j = 0; j < t->c; j++) {
            // printf("%d ", t->mat[i][j]);
            if(t->mat[i][j] != 80){
                final_check = 0;
            }
        }
        // printf("\n");
    }
    if(final_check == 1) {
        printf(GREEN "**PASSED** : MATRIX TEST with rows=%d, columns=%d\n" NONE, t->r, t->c);
    }
    else {
        printf(RED "**FAILED** : MATRIX TEST with rows=%d, columns=%d\n" NONE, t->r, t->c);

    }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0xa, %edi
callq 0x1040
movslq 0x8(%rbx), %rsi
testq %rsi, %rsi
jle 0x1976
movl 0xc(%rbx), %eax
xorl %ecx, %ecx
testl %eax, %eax
jle 0x196e
movq (%rbx), %rdx
movq (%rdx,%rcx,8), %rdx
xorl %edi, %edi
cmpl $0x50, (%rdx,%rdi,4)
je 0x1966
movl $0x0, 0x2742(%rip)      # 0x40a8
incq %rdi
cmpq %rdi, %rax
jne 0x1956
incq %rcx
cmpq %rsi, %rcx
jne 0x1949
cmpl $0x1, 0x272b(%rip)      # 0x40a8
movl 0xc(%rbx), %edx
leaq 0x6ba(%rip), %rax       # 0x2041
leaq 0x6f3(%rip), %rdi       # 0x2081
cmoveq %rax, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x10b0
// File: /workspace/github_c_makefile_star2_O1/deepika9294[P]Threading-Library/one-one/test/matrix.c
// Function: partial_multiply
void* partial_multiply(void *arg) {
    int sum;
    rows *temp = (rows *)arg; 
    int start = temp->row_start;
    int end = temp->row_end + 1;
    // printf("D %d %d \n", start, end);
    for(int i = start; i < end; i++) {
        for(int j = 0; j < b.c; j++) {
            sum = 0;
            for( int k = 0; k < a.c; k++) {
                sum += a.mat[i][k] * b.mat[k][j];

            }
            res.mat[i][j] = sum;
        }
    }
}

// Assembly:
movslq (%rdi), %rax
movl 0x4(%rdi), %ecx
cmpl %ecx, %eax
jg 0x1a67
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
movq 0x26fc(%rip), %rdx      # 0x40f0
incl %ecx
cmpl $0x0, 0x26df(%rip)      # 0x40dc
jle 0x1a5a
movq 0x26da(%rip), %rsi      # 0x40e0
movq 0x26c3(%rip), %rdi      # 0x40d0
movq (%rdx,%rax,8), %r8
xorl %r9d, %r9d
movslq 0x26d1(%rip), %r10      # 0x40ec
testq %r10, %r10
jle 0x1a44
movq (%rsi,%rax,8), %rbx
xorl %r14d, %r14d
xorl %r11d, %r11d
movq (%rdi,%r14,8), %r15
movl (%r15,%r9,4), %r15d
imull (%rbx,%r14,4), %r15d
addl %r15d, %r11d
incq %r14
cmpq %r14, %r10
jne 0x1a2a
jmp 0x1a47
xorl %r11d, %r11d
movl %r11d, (%r8,%r9,4)
incq %r9
movslq 0x2687(%rip), %r10      # 0x40dc
cmpq %r10, %r9
jl 0x1a14
incq %rax
cmpl %eax, %ecx
jne 0x19f6
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/tudurom[P]windowchef/client.c
// Function: main.cold.2
static void
version(void)
{

	fprintf(stderr, "%s %s\n", __NAME_CLIENT__, __THIS_VERSION__);
	fprintf(stderr, "Copyright (c) 2016-2019 Tudor Ioan Roman\n");
	fprintf(stderr, "Released under the ISC License\n");

	exit(EXIT_SUCCESS);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x3e40(%rip), %r14      # 0x5ff0
movq (%r14), %rdi
leaq 0xeaf(%rip), %rsi       # 0x3069
leaq 0xeaf(%rip), %rdx       # 0x3070
leaq 0xea0(%rip), %rcx       # 0x3068
xorl %eax, %eax
callq 0x2150
movq (%r14), %rcx
leaq 0xe9b(%rip), %rdi       # 0x3074
pushq $0x29
popq %rsi
pushq $0x1
popq %rbx
movq %rbx, %rdx
callq 0x2140
movq (%r14), %rcx
leaq 0xead(%rip), %rdi       # 0x309e
pushq $0x1f
popq %rsi
movq %rbx, %rdx
callq 0x2140
xorl %edi, %edi
callq 0x2060
// File: /workspace/github_c_makefile_star2_O1/tudurom[P]windowchef/client.c
// Function: fn_offset
static bool
fn_offset(uint32_t *data, int argc, char **argv)
{
	int i = 0;
	do {
		errno = 0;
		int c = strtol(argv[i], NULL, 10);
		if (c >= 0)
			data[i] = IPC_MUL_PLUS;
		else
			data[i] = IPC_MUL_MINUS;
		data[i + 2] = abs(c);
		i++;
	} while (i < argc && errno == 0);

	if (errno != 0)
		return false;
	else
		return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
callq 0x20f0
movq %rax, %r15
cmpl $0x2, %ebp
movl $0x1, %r12d
cmovgel %ebp, %r12d
decl %r12d
xorl %r13d, %r13d
movl $0x0, (%r15)
movq (%rbx,%r13,8), %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x20d0
movl %eax, %ecx
shrl $0x1f, %ecx
movl %ecx, (%r14,%r13,4)
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
movl %ecx, 0x8(%r14,%r13,4)
cmpq %r13, %r12
je 0x25e3
incq %r13
cmpl $0x0, (%r15)
je 0x25a9
cmpl $0x0, (%r15)
sete %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/tudurom[P]windowchef/client.c
// Function: fn_naturals
static bool
fn_naturals(uint32_t *data, int argc, char **argv)
{
	int i = 0;
	do {
		errno = 0;
		data[i] = strtol(argv[i], NULL, 10);
		i++;
	} while (i < argc && errno == 0);

	if (errno != 0)
		return false;
	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
callq 0x20f0
movq %rax, %r15
cmpl $0x2, %ebp
movl $0x1, %r12d
cmovgel %ebp, %r12d
decl %r12d
xorl %r13d, %r13d
movl $0x0, (%r15)
movq (%rbx,%r13,8), %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x20d0
movl %eax, (%r14,%r13,4)
cmpq %r13, %r12
je 0x2650
incq %r13
cmpl $0x0, (%r15)
je 0x2627
cmpl $0x0, (%r15)
sete %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/tudurom[P]windowchef/client.c
// Function: fn_hack
static bool
fn_hack(uint32_t *data, int argc, char **argv)
{
	int i = 0, j = 0;
	unsigned long d;
	do {
		errno = 0;
		d = strtoul(argv[i], NULL, 10);
		if (i % 2 == 0) {
			data[j] = d << 16U;
		} else {
			data[j] |= d;
			j++;
		}
		i++;
	} while (i < argc && errno == 0);

	if (i % 2 == 1 || errno != 0)
		return false;
	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r15
callq 0x20f0
movq %rax, %r14
cmpl $0x2, %ebp
movl $0x1, %r12d
cmovgel %ebp, %r12d
decl %r12d
incq %r12
xorl %eax, %eax
xorl %ebp, %ebp
movq %rax, %r13
movl $0x0, (%r14)
movq (%rbx,%rax,8), %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x2160
movslq %ebp, %rcx
testb $0x1, %r13b
jne 0x26c4
shll $0x10, %eax
movl %eax, (%r15,%rcx,4)
jmp 0x26cc
orl %eax, (%r15,%rcx,4)
incl %ecx
movl %ecx, %ebp
leaq 0x1(%r13), %rax
cmpq %rax, %r12
je 0x26db
cmpl $0x0, (%r14)
je 0x2698
testb $0x1, %r13b
jne 0x26e5
xorl %eax, %eax
jmp 0x26ec
cmpl $0x0, (%r14)
sete %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/tudurom[P]windowchef/client.c
// Function: fn_position
static bool
fn_position(uint32_t *data, int argc, char **argv)
{
	char *pos = argv[0];
	enum position snap_pos;

	if (strcasecmp(pos, "topleft") == 0)
		snap_pos = TOP_LEFT;
	else if (strcasecmp(pos, "topright") == 0)
		snap_pos = TOP_RIGHT;
	else if (strcasecmp(pos, "bottomleft") == 0)
		snap_pos = BOTTOM_LEFT;
	else if (strcasecmp(pos, "bottomright") == 0)
		snap_pos = BOTTOM_RIGHT;
	else if (strcasecmp(pos, "middle") == 0 ||
			strcasecmp(pos, "center") == 0 ||
			strcasecmp(pos, "centre") == 0)
		snap_pos = CENTER;
	else if (strcasecmp(pos, "left") == 0)
		snap_pos = LEFT;
	else if (strcasecmp(pos, "bottom") == 0)
		snap_pos = BOTTOM;
	else if (strcasecmp(pos, "top") == 0)
		snap_pos = TOP;
	else if (strcasecmp(pos, "right") == 0)
		snap_pos = RIGHT;
	else if (strcasecmp(pos, "all") == 0)
		snap_pos = ALL;
	else
		return false;

	(void)(argc);
	data[0] = snap_pos;

	return true;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdx), %r14
leaq 0xbdd(%rip), %rsi       # 0x32e9
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x280a
leaq 0xbce(%rip), %rsi       # 0x32f1
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2811
leaq 0xbc0(%rip), %rsi       # 0x32fa
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2818
leaq 0xbb4(%rip), %rsi       # 0x3305
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x281c
leaq 0xba9(%rip), %rsi       # 0x3311
movq %r14, %rdi
callq 0x2070
movl $0x4, %ebp
testl %eax, %eax
je 0x2821
leaq 0xb94(%rip), %rsi       # 0x3318
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2821
leaq 0xb84(%rip), %rsi       # 0x331f
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2821
leaq 0xb52(%rip), %rsi       # 0x3300
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x282a
leaq 0xb65(%rip), %rsi       # 0x3326
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2831
leaq 0xb59(%rip), %rsi       # 0x332d
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2838
leaq 0xb24(%rip), %rsi       # 0x330b
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x283f
leaq 0xb37(%rip), %rsi       # 0x3331
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2846
xorl %eax, %eax
jmp 0x2825
movl $0x2, %ebp
jmp 0x2821
movl $0x3, %ebp
jmp 0x2821
xorl %ebp, %ebp
jmp 0x2821
movl $0x1, %ebp
movl %ebp, (%rbx)
movb $0x1, %al
popq %rbx
popq %r14
popq %rbp
retq
movl $0x5, %ebp
jmp 0x2821
movl $0x6, %ebp
jmp 0x2821
movl $0x7, %ebp
jmp 0x2821
movl $0x8, %ebp
jmp 0x2821
movl $0x9, %ebp
jmp 0x2821
// File: /workspace/github_c_makefile_star2_O1/tudurom[P]windowchef/client.c
// Function: fn_direction
static bool
fn_direction(uint32_t *data, int argc, char **argv)
{
	char *pos = argv[0];
	enum direction dir_sel;

	if (strcasecmp(pos, "up") == 0 || strcasecmp(pos, "north") == 0)
		dir_sel = NORTH;
	else if (strcasecmp(pos, "down") == 0 || strcasecmp(pos, "south") == 0)
		dir_sel = SOUTH;
	else if (strcasecmp(pos, "left") == 0 || strcasecmp(pos, "west") == 0)
		dir_sel = WEST;
	else if (strcasecmp(pos, "right") == 0 || strcasecmp(pos, "east") == 0)
		dir_sel = EAST;
	else
		return false;

	(void)(argc);
	data[0] = dir_sel;

	return true;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdx), %r14
leaq 0x9be(%rip), %rsi       # 0x321c
movq %r14, %rdi
callq 0x2070
xorl %ebp, %ebp
testl %eax, %eax
je 0x290c
leaq 0xabe(%rip), %rsi       # 0x3335
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x290c
leaq 0xaad(%rip), %rsi       # 0x333b
movq %r14, %rdi
callq 0x2070
movl $0x1, %ebp
testl %eax, %eax
je 0x290c
leaq 0xa9a(%rip), %rsi       # 0x3340
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x290c
leaq 0xa47(%rip), %rsi       # 0x3300
movq %r14, %rdi
callq 0x2070
movl $0x3, %ebp
testl %eax, %eax
je 0x290c
leaq 0xa75(%rip), %rsi       # 0x3346
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x290c
leaq 0xa27(%rip), %rsi       # 0x330b
movq %r14, %rdi
callq 0x2070
movl $0x2, %ebp
testl %eax, %eax
je 0x290c
leaq 0xa4f(%rip), %rsi       # 0x334b
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x290c
xorl %eax, %eax
jmp 0x2910
movl %ebp, (%rbx)
movb $0x1, %al
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/tudurom[P]windowchef/client.c
// Function: fn_hex
static bool
fn_hex(uint32_t *data, int argc, char **argv)
{
	int i = 0;
	do {
		errno = 0;
		data[i] = strtol(argv[i], NULL, 16);
		i++;
	} while (i < argc && errno == 0);

	if (errno != 0)
		return false;
	else
		return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
callq 0x20f0
movq %rax, %r15
cmpl $0x2, %ebp
movl $0x1, %r12d
cmovgel %ebp, %r12d
decl %r12d
xorl %r13d, %r13d
movl $0x0, (%r15)
movq (%rbx,%r13,8), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x20d0
movl %eax, (%r14,%r13,4)
cmpq %r13, %r12
je 0x296c
incq %r13
cmpl $0x0, (%r15)
je 0x2943
cmpl $0x0, (%r15)
sete %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/tudurom[P]windowchef/client.c
// Function: fn_config
static bool
fn_config(uint32_t *data, int argc, char **argv) {
	char *key;
	bool status;
	int i;

	key = argv[0];

	i = 0;
	while (i < NR_IPC_CONFIGS && strcmp(key, configs[i].key) != 0)
		i++;

	if (i < NR_IPC_CONFIGS) {
		if (configs[i].argc != argc - 1)
			errx(EXIT_FAILURE, "too many or not enough arguments. Want: %d", configs[i].argc);
		data[0] = configs[i].config;
		status = (configs[i].handler)(data + 1, argc - 1, argv + 1);

		if (status == false)
			errx(EXIT_FAILURE, "malformed input");
	} else {
		errx(EXIT_FAILURE, "no such config key");
	}
	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movq (%rdx), %r15
movl $0x10, %r12d
leaq 0x320b(%rip), %r13      # 0x5bb0
movq -0x10(%r12,%r13), %rsi
movq %r15, %rdi
callq 0x2100
testl %eax, %eax
je 0x29d6
addq $0x18, %r12
cmpq $0x1f0, %r12            # imm = 0x1F0
jne 0x29a5
leaq 0x9c1(%rip), %rsi       # 0x338b
movl $0x1, %edi
xorl %eax, %eax
callq 0x2110
movl -0x4(%r12,%r13), %edx
decl %ebp
cmpl %ebp, %edx
jne 0x2a12
movl -0x8(%r12,%r13), %eax
movl %eax, (%r14)
addq $0x4, %r14
addq $0x8, %rbx
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq *(%r12,%r13)
testb %al, %al
je 0x2a25
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x937(%rip), %rsi       # 0x3350
movl $0x1, %edi
xorl %eax, %eax
callq 0x2110
leaq 0x94f(%rip), %rsi       # 0x337b
jmp 0x29ca
// File: /workspace/github_c_makefile_star2_O1/tudurom[P]windowchef/client.c
// Function: fn_bool
static bool
fn_bool(uint32_t *data, int argc, char **argv) {
	int i = 0;
	char *arg;
	do {
		arg = argv[i];
		if (strcasecmp(argv[i], "true")       == 0
					|| strcasecmp(arg, "yes") == 0
					|| strcasecmp(arg, "t")   == 0
					|| strcasecmp(arg, "y")   == 0
					|| strcasecmp(arg, "1")   == 0)
				data[i] = true;
		else
			data[i] = false;
		i++;
	} while (i < argc);

	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %r14d
movq %rdi, %r15
cmpl $0x2, %esi
movl $0x1, %eax
cmovll %eax, %r14d
xorl %r13d, %r13d
leaq 0xa30(%rip), %r12       # 0x34c4
movq (%rbx,%r13,8), %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0x2070
movl $0x1, %ecx
testl %eax, %eax
je 0x2b0a
movq %rbp, %rdi
leaq 0xa13(%rip), %rsi       # 0x34c9
callq 0x2070
movl $0x1, %ecx
testl %eax, %eax
je 0x2b0a
movq %rbp, %rdi
leaq 0x835(%rip), %rsi       # 0x3303
callq 0x2070
movl $0x1, %ecx
testl %eax, %eax
je 0x2b0a
movq %rbp, %rdi
leaq 0x8b6(%rip), %rsi       # 0x339c
callq 0x2070
movl $0x1, %ecx
testl %eax, %eax
je 0x2b0a
movq %rbp, %rdi
leaq 0x9cf(%rip), %rsi       # 0x34cd
callq 0x2070
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
movl %ecx, (%r15,%r13,4)
incq %r13
cmpq %r13, %r14
jne 0x2a94
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/tudurom[P]windowchef/client.c
// Function: fn_pac
static bool
fn_pac(uint32_t *data, int argc, char **argv)
{
	for (int i = 0; i < argc; i++) {
		char *pac = argv[i];
		if (strcasecmp(pac, "nothing") == 0)
			data[i] = POINTER_ACTION_NOTHING;
		else if (strcasecmp(pac, "focus") == 0)
			data[i] = POINTER_ACTION_FOCUS;
		else if (strcasecmp(pac, "move") == 0)
			data[i] = POINTER_ACTION_MOVE;
		else if (strcasecmp(pac, "resize_corner") == 0)
			data[i] = POINTER_ACTION_RESIZE_CORNER;
		else if (strcasecmp(pac, "resize_side") == 0)
			data[i] = POINTER_ACTION_RESIZE_SIDE;
		else
			return false;
	}

	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, (%rsp)
testl %esi, %esi
setle %bpl
jle 0x2bfd
movq %rdi, %r14
movl %esi, %r15d
movq %r15, %r12
negq %r12
movl $0x1, %ebx
movq (%rsp), %rax
movq -0x8(%rax,%rbx,8), %r13
movq %r13, %rdi
leaq 0x965(%rip), %rsi       # 0x34cf
callq 0x2070
testl %eax, %eax
je 0x2bc6
movq %r13, %rdi
leaq 0x6b2(%rip), %rsi       # 0x322f
callq 0x2070
testl %eax, %eax
je 0x2bca
movq %r13, %rdi
leaq 0x553(%rip), %rsi       # 0x30e3
callq 0x2070
testl %eax, %eax
je 0x2bd1
movq %r13, %rdi
leaq 0x934(%rip), %rsi       # 0x34d7
callq 0x2070
testl %eax, %eax
je 0x2bd8
movq %r13, %rdi
leaq 0x92f(%rip), %rsi       # 0x34e5
callq 0x2070
movl $0x4, %ecx
testl %eax, %eax
je 0x2bdd
jmp 0x2bfd
xorl %ecx, %ecx
jmp 0x2bdd
movl $0x1, %ecx
jmp 0x2bdd
movl $0x2, %ecx
jmp 0x2bdd
movl $0x3, %ecx
movl %ecx, -0x4(%r14,%rbx,4)
cmpq %r15, %rbx
setae %bpl
leaq (%r12,%rbx), %rax
incq %rax
incq %rbx
cmpq $0x1, %rax
jne 0x2b57
andb $0x1, %bpl
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/tudurom[P]windowchef/client.c
// Function: fn_mod
static bool
fn_mod(uint32_t *data, int argc, char **argv)
{
	(void)(argc);
	if (strcasecmp(argv[0], "alt") == 0)
		data[0] = XCB_MOD_MASK_1;
	else if (strcasecmp(argv[0], "super") == 0)
		data[0] = XCB_MOD_MASK_4;
	else
		return false;

	return true;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdx), %r14
leaq 0x8ce(%rip), %rsi       # 0x34f1
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2c46
leaq 0x8bf(%rip), %rsi       # 0x34f5
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2c4d
xorl %eax, %eax
jmp 0x2c56
movl $0x8, %eax
jmp 0x2c52
movl $0x40, %eax
movl %eax, (%rbx)
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/tudurom[P]windowchef/client.c
// Function: fn_button
static bool
fn_button(uint32_t *data, int argc, char **argv)
{
	char *btn = argv[0];
	(void)(argc);

	if (strcasecmp(btn, "left") == 0)
		data[0] = 1;
	else if (strcasecmp(btn, "middle") == 0)
		data[0] = 2;
	else if (strcasecmp(btn, "right") == 0)
		data[0] = 3;
	else if (strcasecmp(btn, "none") == 0)
		data[0] = UINT32_MAX;
	else if (strcasecmp(btn, "any") == 0)
		data[0] = 0;
	else
		return false;

	return true;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdx), %r14
leaq 0x691(%rip), %rsi       # 0x3300
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2ccd
leaq 0x68f(%rip), %rsi       # 0x3311
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2cd4
leaq 0x676(%rip), %rsi       # 0x330b
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2cdb
leaq 0x853(%rip), %rsi       # 0x34fb
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2ce2
leaq 0x845(%rip), %rsi       # 0x3500
movq %r14, %rdi
callq 0x2070
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
jne 0x2ceb
jmp 0x2ce7
movl $0x1, %eax
jmp 0x2ce7
movl $0x2, %eax
jmp 0x2ce7
movl $0x3, %eax
jmp 0x2ce7
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, (%rbx)
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/KhuramAli[P]JAM-Benchmark/spsc_queue_lockfree_boost/code04.cpp
// Function: main
int main()
{
	std::thread t1{produce};
	std::thread t2{consume};
	t1.join();
	t2.join();
	q.consume_all([](int i) {sum += i;});
	std::cout << sum << '\n';
}

// Assembly:
subq $0x18, %rsp
leaq -0x113(%rip), %rsi      # 0x121c
leaq 0x10(%rsp), %rdi
callq 0x14a2
leaq -0xa2(%rip), %rsi       # 0x129e
leaq 0x8(%rsp), %rdi
callq 0x14a2
leaq 0x10(%rsp), %rdi
callq 0x10b0
leaq 0x8(%rsp), %rdi
callq 0x10b0
movq 0x2d33(%rip), %rdx      # 0x4098
movq 0x2d6c(%rip), %rcx      # 0x40d8
xorl %edi, %edi
movq %rdx, %rsi
subq %rcx, %rsi
movl $0x65, %eax
cmovaeq %rdi, %rax
addq %rax, %rsi
je 0x1445
addq %rdx, %rax
cmpq $0x66, %rax
jb 0x1408
leaq 0x2d02(%rip), %rdx      # 0x4098
leaq (%rdx,%rcx,4), %rdi
addq $0x48, %rdi
cmpq $0x65, %rcx
je 0x13c8
shlq $0x2, %rcx
movl 0x2ec9(%rip), %r8d      # 0x4278
addl 0x48(%rcx,%rdx), %r8d
addq $0x4, %rcx
cmpq $0x194, %rcx            # imm = 0x194
jne 0x13af
movl %r8d, 0x2eb0(%rip)      # 0x4278
leaq (%rdi,%rsi,4), %rcx
addq $-0x194, %rcx           # imm = 0xFE6C
leaq 0x2d06(%rip), %rsi      # 0x40e0
cmpq %rsi, %rcx
je 0x1402
movl 0x2e93(%rip), %ecx      # 0x4278
leaq -0x194(,%rax,4), %rsi
xorl %edi, %edi
addl 0x48(%rdi,%rdx), %ecx
addq $0x4, %rdi
cmpq %rdi, %rsi
jne 0x13ef
movl %ecx, 0x2e76(%rip)      # 0x4278
addq $-0x65, %rax
jmp 0x143e
movl 0x2e6a(%rip), %edx      # 0x4278
leaq (,%rax,4), %rsi
shlq $0x2, %rcx
leaq 0x2c77(%rip), %rdi      # 0x4098
addl 0x48(%rcx,%rdi), %edx
addq $0x4, %rcx
cmpq %rcx, %rsi
jne 0x1421
movl %edx, 0x2e44(%rip)      # 0x4278
xorl %ecx, %ecx
cmpq $0x65, %rax
cmoveq %rcx, %rax
movq %rax, 0x2c93(%rip)      # 0x40d8
movl 0x2e2d(%rip), %esi      # 0x4278
movq 0x2b86(%rip), %rdi      # 0x3fd8
callq 0x10c0
leaq 0x7(%rsp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x1090
cmpq $0x0, 0x8(%rsp)
jne 0x149d
cmpq $0x0, 0x10(%rsp)
jne 0x149d
xorl %eax, %eax
addq $0x18, %rsp
retq
jmp 0x148d
cmpq $0x0, 0x8(%rsp)
jne 0x149d
cmpq $0x0, 0x10(%rsp)
jne 0x149d
movq %rax, %rdi
callq 0x10d0
callq 0x1030