LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movq 0x40a3a(%rip), %rdi     # 0x45a18
movq 0x40a4b(%rip), %rsi     # 0x45a30
movq %r15, %rdx
movq %r14, %rcx
movl %ebx, %r8d
callq 0x507e
movq 0x40a0e(%rip), %rdi     # 0x45a08
movq 0x409ff(%rip), %rsi     # 0x45a00
movq %r15, %rdx
movq %r14, %rcx
movl %ebx, %r8d
callq 0x507e
movl 0x409ba(%rip), %r13d    # 0x459d0
leaq 0x40a23(%rip), %r12     # 0x45a40
xorl %ebp, %ebp
cmpq %r13, %rbp
jae 0x503d
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x5139
incq %rbp
addq $0x8, %r12
jmp 0x501f
movl 0x40b8c(%rip), %r12d    # 0x45bd0
shlq $0x3, %r12
xorl %r13d, %r13d
leaq 0x40b8e(%rip), %rbp     # 0x45be0
cmpq %r13, %r12
je 0x506f
movq (%r13,%rbp), %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x5139
addq $0x8, %r13
jmp 0x5052
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %ebx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbp
movq %rsi, 0x8(%rsp)
cmpq %r12, %rbp
jae 0x512a
leaq 0x8(%rbp), %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x5139
movl (%rbp), %eax
movl %eax, %r13d
shrl $0x2, %r13d
cmpq %r15, %rbp
setne %cl
cmpq %r14, %rbp
setne %dl
testb %dl, %cl
jne 0x50da
shll $0x3, %r13d
jmp 0x511e
testb $0x2, %al
jne 0x5106
movq %rbp, 0x10(%rsp)
addq $0x10, %rbp
movq %r13, %r12
subq $0x1, %r12
jb 0x5110
movq %rbp, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x5139
addq $0x8, %rbp
jmp 0x50ea
addl $0x7, %r13d
andl $-0x8, %r13d
jmp 0x511e
shll $0x3, %r13d
movq 0x8(%rsp), %r12
movq 0x10(%rsp), %rbp
addl $0x10, %r13d
addq %r13, %rbp
jmp 0x50a0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4987
leaq 0x40818(%rip), %rcx     # 0x459a0
movq (%rcx), %rcx
movq %rcx, 0x8(%rax)
movl %r14d, %ecx
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x51a7
movb (%rbx,%rdx), %sil
movb %sil, 0x10(%rax,%rdx)
incq %rdx
jmp 0x5194
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r14
movl (%rdx), %r15d
shrl $0x2, %r15d
cmpl %esi, %r15d
jle 0x51d5
leaq 0x225f(%rip), %rdi      # 0x742c
movq %r15, %rsi
callq 0x3fac
xorl %eax, %eax
cmpq %rax, %r15
je 0x51e9
movb 0x10(%rbx,%rax), %cl
movb %cl, (%r14,%rax)
incq %rax
jmp 0x51d7
movb $0x0, (%r14,%r15)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4987
movq %rax, %r15
leaq 0x40791(%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_O2/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 0x524d
addl $0xff, %ebp
jmp 0x5236
movl %eax, %ebx
cmpl $-0x1, %eax
jne 0x5262
leaq 0x223b(%rip), %rdi      # 0x7496
xorl %esi, %esi
callq 0x3fac
addl %ebp, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq %esi, %r14
testl %r14d, %r14d
js 0x5299
cmpl $0xff, %r14d
jb 0x52a8
movl $0xff, %edi
movq %rbx, %rsi
callq 0x2180
addq $-0xff, %r14
jmp 0x5275
leaq 0x223a(%rip), %rdi      # 0x74da
movq %r14, %rsi
callq 0x3fac
movl %r14d, %edi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2180
nop
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x8
popq %rdi
callq 0x2220
testq %rax, %rax
je 0x58a4
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 0x58a6
movq %rbx, %rdi
callq 0x2060
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x58ca
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x58cf
callq 0x2360
movl %eax, %ebp
jmp 0x58d2
pushq $-0x1
popq %rbp
jmp 0x58da
pushq $-0x1
popq %rbp
movq %rbx, %rdi
callq 0x2060
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1
popq %rdi
pushq $0x18
popq %rsi
callq 0x2190
testq %rax, %rax
je 0x5944
movq %rax, %rbx
testl %ebp, %ebp
pushq $0x64
popq %rsi
cmovnel %ebp, %esi
movq %rax, %rdi
callq 0x5950
testl %eax, %eax
jne 0x5946
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_O2/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 0x59bf
movq %rax, %r15
movq 0x10(%r14), %rdi
testq %rdi, %rdi
je 0x59a6
movl 0x4(%r14), %ecx
xorl %esi, %esi
testl %ecx, %ecx
cmovlel %esi, %ecx
cmpq %rsi, %rcx
je 0x59a1
movl 0x8(%r14), %eax
addl %esi, %eax
cltd
idivl (%r14)
movslq %edx, %rax
movq (%rdi,%rax,8), %rax
movq %rax, (%r15,%rsi,8)
incq %rsi
jmp 0x5982
callq 0x2060
movq %r15, 0x10(%r14)
andl $0x0, 0x8(%r14)
movl 0x4(%r14), %eax
movl %eax, 0xc(%r14)
movl %ebx, (%r14)
pushq $0x1
popq %rax
jmp 0x59c1
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x59e2
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
callq 0x2060
movq %rbx, %rdi
popq %rbx
jmp 0x2060
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x5a1a
movl 0x4(%rdi), %ecx
testl %ecx, %ecx
jle 0x5a1a
movq 0x10(%rdi), %rax
movslq 0x8(%rdi), %rdx
movq (%rax,%rdx,8), %rax
incl %edx
movl %edx, 0x8(%rdi)
subl (%rdi), %edx
jl 0x5a14
movl %edx, 0x8(%rdi)
decl %ecx
movl %ecx, 0x4(%rdi)
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x5a71
movq %rsi, %r14
movq %rdi, %rbx
movl (%rdi), %ecx
cmpl %ecx, 0x4(%rdi)
jl 0x5a50
pushq $0x2
popq %rsi
movl %ecx, %eax
cltd
idivl %esi
leal (%rcx,%rax), %esi
incl %esi
movq %rbx, %rdi
callq 0x5950
testl %eax, %eax
je 0x5a71
movl (%rbx), %ecx
movq 0x10(%rbx), %rax
movslq 0xc(%rbx), %rdx
movq %r14, (%rax,%rdx,8)
leal 0x1(%rdx), %eax
xorl %edx, %edx
cmpl %ecx, %eax
cmovgel %ecx, %edx
subl %edx, %eax
movl %eax, 0xc(%rbx)
incl 0x4(%rbx)
pushq $0x1
popq %rbp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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), %r15
movq %r15, %rdi
shlq $0x3, %rdi
callq 0x10e0
movq %rax, (%r14)
xorl %r12d, %r12d
testl %r15d, %r15d
movl $0x0, %r13d
cmovgl %r15d, %r13d
cmpq %r12, %r13
je 0x1810
movslq 0xc(%r14), %rdi
shlq $0x2, %rdi
callq 0x10e0
movq (%r14), %rcx
movq %rax, (%rcx,%r12,8)
incq %r12
jmp 0x17f2
xorl %eax, %eax
movslq %r15d, %rcx
cmpq %rcx, %rax
jge 0x183d
xorl %ecx, %ecx
movslq 0xc(%r14), %rdx
cmpq %rdx, %rcx
jge 0x1834
movq (%r14), %rdx
movq (%rdx,%rax,8), %rdx
movl %ebx, (%rdx,%rcx,4)
incq %rcx
jmp 0x181c
incq %rax
movl 0x8(%r14), %r15d
jmp 0x1812
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0xa
popq %rdi
callq 0x1040
movl 0x8(%rbx), %esi
xorl %eax, %eax
testl %esi, %esi
movl $0x0, %ecx
cmovgl %esi, %ecx
xorl %edx, %edx
cmpq %rcx, %rdx
je 0x1909
movl 0xc(%rbx), %edi
testl %edi, %edi
cmovlel %eax, %edi
xorl %r8d, %r8d
cmpq %r8, %rdi
je 0x1904
movq (%rbx), %r9
movq (%r9,%rdx,8), %r9
cmpl $0x50, (%r9,%r8,4)
je 0x18ff
andl $0x0, 0x27a9(%rip)      # 0x40a8
incq %r8
jmp 0x18e5
incq %rdx
jmp 0x18d5
cmpl $0x1, 0x2798(%rip)      # 0x40a8
movl 0xc(%rbx), %edx
leaq 0x727(%rip), %rax       # 0x2041
leaq 0x760(%rip), %rdi       # 0x2081
cmoveq %rax, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x10b0
// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movslq (%rdi), %rax
movslq 0x4(%rdi), %rcx
cmpq %rcx, %rax
jg 0x19da
movq 0x2774(%rip), %rdx      # 0x40f0
xorl %esi, %esi
movslq 0x2757(%rip), %rdi      # 0x40dc
cmpq %rdi, %rsi
jge 0x19d5
movl 0x275c(%rip), %edi      # 0x40ec
movq 0x2749(%rip), %r8       # 0x40e0
movq 0x2732(%rip), %r9       # 0x40d0
xorl %r10d, %r10d
testl %edi, %edi
cmovlel %r10d, %edi
xorl %r11d, %r11d
cmpq %r10, %rdi
je 0x19c8
movq (%r8,%rax,8), %rbx
movq (%r9,%r10,8), %r14
movl (%r14,%rsi,4), %r14d
imull (%rbx,%r10,4), %r14d
addl %r14d, %r11d
incq %r10
jmp 0x19aa
movq (%rdx,%rax,8), %rdi
movl %r11d, (%rdi,%rsi,4)
incq %rsi
jmp 0x197e
incq %rax
jmp 0x1970
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
movslq %ebp, %r12
pushq $0x1
popq %r13
pushq $0xa
popq %rbp
andl $0x0, (%r15)
movq -0x8(%rbx,%r13,8), %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x20d0
movl %eax, %ecx
shrl $0x1f, %ecx
movl %eax, %edx
negl %edx
cmovsl %eax, %edx
movl %ecx, -0x4(%r14,%r13,4)
movl %edx, 0x4(%r14,%r13,4)
movl (%r15), %eax
cmpq %r12, %r13
jge 0x2586
incq %r13
testl %eax, %eax
je 0x254f
testl %eax, %eax
sete %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
movslq %ebp, %r12
pushq $0x1
popq %r13
pushq $0xa
popq %rbp
andl $0x0, (%r15)
movq -0x8(%rbx,%r13,8), %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x20d0
movl %eax, -0x4(%r14,%r13,4)
movl (%r15), %eax
cmpq %r12, %r13
jge 0x25e5
incq %r13
testl %eax, %eax
je 0x25bf
testl %eax, %eax
sete %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
movslq %ebp, %r12
xorl %eax, %eax
xorl %ebp, %ebp
movq %rax, %r13
andl $0x0, (%r14)
movq (%rbx,%rax,8), %rdi
xorl %esi, %esi
pushq $0xa
popq %rdx
callq 0x2160
movslq %ebp, %rcx
testb $0x1, %r13b
jne 0x2642
shll $0x10, %eax
movl %eax, (%r15,%rcx,4)
jmp 0x264a
orl %eax, (%r15,%rcx,4)
incl %ecx
movl %ecx, %ebp
leaq 0x1(%r13), %rax
cmpq %r12, %rax
jge 0x2659
cmpl $0x0, (%r14)
je 0x261b
testb $0x1, %r13b
jne 0x2663
xorl %eax, %eax
jmp 0x266a
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_O2/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 0xc59(%rip), %rsi       # 0x32e3
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2786
leaq 0xc4a(%rip), %rsi       # 0x32eb
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x278a
leaq 0xc3c(%rip), %rsi       # 0x32f4
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x278e
leaq 0xc30(%rip), %rsi       # 0x32ff
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2792
leaq 0xc25(%rip), %rsi       # 0x330b
movq %r14, %rdi
callq 0x2070
pushq $0x4
popq %rbp
testl %eax, %eax
je 0x2795
leaq 0xc12(%rip), %rsi       # 0x3312
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2795
leaq 0xc02(%rip), %rsi       # 0x3319
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2795
leaq 0xbd0(%rip), %rsi       # 0x32fa
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x279e
leaq 0xbe3(%rip), %rsi       # 0x3320
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x27a2
leaq 0xbd7(%rip), %rsi       # 0x3327
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x27a6
leaq 0xba2(%rip), %rsi       # 0x3305
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x27aa
leaq 0xbb5(%rip), %rsi       # 0x332b
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x27ae
xorl %eax, %eax
jmp 0x2799
pushq $0x2
jmp 0x2794
pushq $0x3
jmp 0x2794
xorl %ebp, %ebp
jmp 0x2795
pushq $0x1
popq %rbp
movl %ebp, (%rbx)
movb $0x1, %al
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x5
jmp 0x2794
pushq $0x6
jmp 0x2794
pushq $0x7
jmp 0x2794
pushq $0x8
jmp 0x2794
pushq $0x9
jmp 0x2794
// File: /workspace/github_c_makefile_star2_O2/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 0xa53(%rip), %rsi       # 0x3216
movq %r14, %rdi
callq 0x2070
xorl %ebp, %ebp
testl %eax, %eax
je 0x2867
leaq 0xb53(%rip), %rsi       # 0x332f
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2867
leaq 0xb46(%rip), %rsi       # 0x3335
movq %r14, %rdi
callq 0x2070
pushq $0x1
popq %rbp
testl %eax, %eax
je 0x2867
leaq 0xb35(%rip), %rsi       # 0x333a
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2867
leaq 0xae2(%rip), %rsi       # 0x32fa
movq %r14, %rdi
callq 0x2070
pushq $0x3
popq %rbp
testl %eax, %eax
je 0x2867
leaq 0xb12(%rip), %rsi       # 0x3340
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2867
leaq 0xac4(%rip), %rsi       # 0x3305
movq %r14, %rdi
callq 0x2070
pushq $0x2
popq %rbp
testl %eax, %eax
je 0x2867
leaq 0xaee(%rip), %rsi       # 0x3345
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2867
xorl %eax, %eax
jmp 0x286b
movl %ebp, (%rbx)
movb $0x1, %al
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
movslq %ebp, %r12
pushq $0x1
popq %r13
pushq $0x10
popq %rbp
andl $0x0, (%r15)
movq -0x8(%rbx,%r13,8), %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x20d0
movl %eax, -0x4(%r14,%r13,4)
movl (%r15), %eax
cmpq %r12, %r13
jge 0x28bb
incq %r13
testl %eax, %eax
je 0x2895
testl %eax, %eax
sete %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
xorl %ecx, %ecx
leaq 0x32c2(%rip), %r12      # 0x5bb0
leaq 0x18(%rcx), %r13
cmpq $0x1f8, %r13            # imm = 0x1F8
je 0x294b
movq (%rcx,%r12), %rsi
movq %r15, %rdi
callq 0x2100
movq %r13, %rcx
testl %eax, %eax
jne 0x28ee
movl -0xc(%r13,%r12), %edx
decl %ebp
cmpl %ebp, %edx
jne 0x295c
movl -0x10(%r13,%r12), %eax
movl %eax, (%r14)
addq $0x4, %r14
addq $0x8, %rbx
movq %r14, %rdi
movl %edx, %esi
movq %rbx, %rdx
callq *-0x8(%r13,%r12)
testb %al, %al
je 0x296d
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa33(%rip), %rsi       # 0x3385
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x2110
leaq 0x9e7(%rip), %rsi       # 0x334a
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x2110
leaq 0xa01(%rip), %rsi       # 0x3375
jmp 0x2952
// File: /workspace/github_c_makefile_star2_O2/tudurom[P]windowchef/client.c
// Function: fn_gap
static bool
fn_gap(uint32_t *data, int argc, char **argv)
{
	(void)(argc);
	bool status = true;

	status = status && fn_position(data, 1, argv);
	status = status && fn_naturals(data + 1, 1, argv + 1);

	return status;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
callq 0x2679
testb %al, %al
je 0x29a6
addq $0x4, %r14
addq $0x8, %rbx
pushq $0x1
popq %rsi
movq %r14, %rdi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x259a
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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
movq %rdi, %r14
movslq %esi, %r13
xorl %r12d, %r12d
pushq $0x1
popq %r15
movq (%rbx,%r12,8), %rbp
movq %rbp, %rdi
leaq 0xae5(%rip), %rsi       # 0x34be
callq 0x2070
movl %r15d, %ecx
testl %eax, %eax
je 0x2a3d
movq %rbp, %rdi
leaq 0xad4(%rip), %rsi       # 0x34c3
callq 0x2070
movl %r15d, %ecx
testl %eax, %eax
je 0x2a3d
movq %rbp, %rdi
leaq 0x8f8(%rip), %rsi       # 0x32fd
callq 0x2070
movl %r15d, %ecx
testl %eax, %eax
je 0x2a3d
movq %rbp, %rdi
leaq 0x97b(%rip), %rsi       # 0x3396
callq 0x2070
movl %r15d, %ecx
testl %eax, %eax
je 0x2a3d
movq %rbp, %rdi
leaq 0xa96(%rip), %rsi       # 0x34c7
callq 0x2070
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
movl %ecx, (%r14,%r12,4)
incq %r12
cmpq %r13, %r12
jl 0x29cb
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_O2/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, %r14
movq %rdi, %r15
xorl %ebp, %ebp
testl %esi, %esi
movl $0x0, %r13d
movl %esi, 0x4(%rsp)
cmovgl %esi, %r13d
leaq 0xa45(%rip), %r12       # 0x34c9
cmpq %rbp, %r13
je 0x2b01
movq (%r14,%rbp,8), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2070
testl %eax, %eax
je 0x2af6
movq %rbx, %rdi
leaq 0x783(%rip), %rsi       # 0x3229
callq 0x2070
pushq $0x1
popq %rcx
testl %eax, %eax
je 0x2af8
movq %rbx, %rdi
leaq 0x621(%rip), %rsi       # 0x30dd
callq 0x2070
pushq $0x2
popq %rcx
testl %eax, %eax
je 0x2af8
movq %rbx, %rdi
leaq 0x9ff(%rip), %rsi       # 0x34d1
callq 0x2070
pushq $0x3
popq %rcx
testl %eax, %eax
je 0x2af8
movq %rbx, %rdi
leaq 0x9f7(%rip), %rsi       # 0x34df
callq 0x2070
pushq $0x4
popq %rcx
testl %eax, %eax
je 0x2af8
jmp 0x2b01
xorl %ecx, %ecx
movl %ecx, (%r15,%rbp,4)
incq %rbp
jmp 0x2a84
movslq 0x4(%rsp), %rax
cmpq %rax, %rbp
setge %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x787(%rip), %rsi       # 0x32fa
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2bd1
leaq 0x785(%rip), %rsi       # 0x330b
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2bd5
leaq 0x76c(%rip), %rsi       # 0x3305
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2bd9
leaq 0x949(%rip), %rsi       # 0x34f5
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
je 0x2bdd
leaq 0x93b(%rip), %rsi       # 0x34fa
movq %r14, %rdi
callq 0x2070
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
jne 0x2be4
jmp 0x2be0
pushq $0x1
jmp 0x2bdf
pushq $0x2
jmp 0x2bdf
pushq $0x3
jmp 0x2bdf
pushq $-0x1
popq %rax
movl %eax, (%rbx)
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq -0x8c(%rip), %rsi       # 0x121c
leaq 0x8(%rsp), %rdi
callq 0x13ce
leaq -0x66(%rip), %rsi       # 0x1253
movq %rsp, %rdi
callq 0x13ce
leaq 0x8(%rsp), %rdi
callq 0x10b0
movq %rsp, %rdi
callq 0x10b0
movq 0x2dbe(%rip), %rcx      # 0x4098
movq 0x2df7(%rip), %rax      # 0x40d8
xorl %edx, %edx
movq %rcx, %r15
subq %rax, %r15
pushq $0x65
popq %r14
cmovaeq %rdx, %r14
addq %r14, %r15
je 0x1357
addq %rcx, %r14
leaq 0x2d98(%rip), %rcx      # 0x4098
leaq (%rcx,%rax,4), %rbx
addq $0x48, %rbx
cmpq $0x66, %r14
jb 0x133a
leaq 0x2f5f(%rip), %rsi      # 0x4274
movq %rbx, %rdi
callq 0x13b4
leaq (%rbx,%r15,4), %rsi
addq $-0x194, %rsi           # imm = 0xFE6C
leaq 0x2db1(%rip), %rdi      # 0x40e0
callq 0x13b4
addq $-0x65, %r14
jmp 0x1350
leaq (%rbx,%r15,4), %rsi
movq %rbx, %rdi
callq 0x13b4
xorl %eax, %eax
cmpq $0x65, %r14
cmoveq %rax, %r14
movq %r14, 0x2d81(%rip)      # 0x40d8
movl 0x2f1b(%rip), %esi      # 0x4278
movq 0x2c74(%rip), %rdi      # 0x3fd8
callq 0x10c0
pushq $0xa
popq %rsi
movq %rax, %rdi
callq 0x1090
movq %rsp, %rdi
callq 0x1434
leaq 0x8(%rsp), %rdi
callq 0x1434
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
jmp 0x13a2
movq %rax, %rbx
movq %rsp, %rdi
callq 0x1434
leaq 0x8(%rsp), %rdi
callq 0x1434
movq %rbx, %rdi
callq 0x10d0
// File: /workspace/github_c_makefile_star2_O2/Tarsnap[P]kivaloo/lbs-dynamodb-init/main.c
// Function: request
static char *
request(const char * key_id, const char * key_secret, const char * region,
    struct sock_addr * const * sas_ddb, const char * reqtype, const char * req)
{
	struct request_cookie C;

	/* Send the request and wait for it to complete. */
	C.done = 0;
	if (dynamodb_request(sas_ddb, key_id, key_secret, region, reqtype,
	    (const uint8_t *)req, strlen(req), 4096,
	    callback_reqdone, &C) == NULL) {
		warnp("Failure sending DynamoDB request");
		goto err0;
	}
	if (events_spin(&C.done)) {
		warnp("Failure running event loop");
		goto err0;
	}

	/* Did the request fail? */
	if (C.status == 0)
		goto err0;

	/* Did we get a non-200 HTTP response? */
	if (C.status != 200) {
		warn0("DynamoDB returned failure response:");
		fprintf(stderr, "%s\n", C.body);
		free(C.body);
		goto err0;
	}

	/* Success! */
	return (C.body);

err0:
	/* Failure! */
	return (NULL);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
leaq 0x8(%rsp), %rax
andl $0x0, (%rax)
movq %r9, %rdi
callq 0x2140
leaq 0xfc(%rip), %r10        # 0x349c
movq %r15, %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq %r12, %rcx
movq %r14, %r8
movq %rbx, %r9
leaq 0x8(%rsp), %r11
pushq %r11
pushq %r10
pushq $0x1000                 # imm = 0x1000
pushq %rax
callq 0x773b
addq $0x20, %rsp
testq %rax, %rax
je 0x33f3
leaq 0x8(%rsp), %rdi
callq 0x3b03
testl %eax, %eax
je 0x3416
callq 0x2040
cmpl $0x0, (%rax)
je 0x342c
movq %rax, %r14
leaq 0xb007(%rip), %rdi      # 0xe3f8
jmp 0x3407
callq 0x2040
cmpl $0x0, (%rax)
je 0x3435
movq %rax, %r14
leaq 0xafd0(%rip), %rdi      # 0xe3d7
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x6ab1
andl $0x0, (%r14)
jmp 0x3449
movl 0xc(%rsp), %eax
testl %eax, %eax
je 0x3447
cmpl $0xc8, %eax
jne 0x345b
movq 0x10(%rsp), %rbx
jmp 0x3449
leaq 0xafc5(%rip), %rdi      # 0xe3f8
jmp 0x343c
leaq 0xaf9b(%rip), %rdi      # 0xe3d7
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x6c40
jmp 0x3449
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xafb1(%rip), %rdi      # 0xe413
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x6c40
callq 0x2040
andl $0x0, (%rax)
movq 0x12b66(%rip), %rax     # 0x15fe0
movq (%rax), %rdi
movq 0x10(%rsp), %rdx
leaq 0xbbb1(%rip), %rsi      # 0xf03a
xorl %eax, %eax
callq 0x24a0
movq 0x10(%rsp), %rdi
callq 0x23d0
jmp 0x3449
// File: /workspace/github_c_makefile_star2_O2/Tarsnap[P]kivaloo/lbs-dynamodb-init/main.c
// Function: callback_reqdone
static int
callback_reqdone(void * cookie, struct http_response * res)
{
	struct request_cookie * C = cookie;
	size_t i;

	/* This request has completed. */
	C->done = 1;

	/* Do we have a response? */
	if (res == NULL) {
		warn0("DynamoDB request failed");
		C->status = 0;
		goto done;
	}

	/* Sanity-check response body. */
	for (i = 0; i < res->bodylen; i++) {
		if (res->body[i] == '\0') {
			warn0("DynamoDB response contains NUL byte!");
			C->status = 0;
			free(res->body);
			goto done;
		}
	}

	/* Record status and duplicate response body. */
	C->status = res->status;
	if ((C->body = malloc(res->bodylen + 1)) == NULL)
		goto err0;
	memcpy(C->body, res->body, res->bodylen);
	C->body[res->bodylen] = '\0';

done:
	/* Success! */
	return (0);

err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movl $0x1, (%rdi)
testq %rsi, %rsi
je 0x34f5
movq %rsi, %r14
movq 0x18(%rsi), %r15
xorl %eax, %eax
cmpq %rax, %r15
je 0x3513
movq 0x20(%r14), %rcx
cmpb $0x0, (%rcx,%rax)
leaq 0x1(%rax), %rax
jne 0x34bb
leaq 0xaf7a(%rip), %rdi      # 0xe44f
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x6c40
callq 0x2040
andl $0x0, (%rax)
andl $0x0, 0x4(%rbx)
movq 0x20(%r14), %rdi
callq 0x23d0
jmp 0x3549
leaq 0xaf3b(%rip), %rdi      # 0xe437
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x6c40
callq 0x2040
andl $0x0, (%rax)
andl $0x0, 0x4(%rbx)
jmp 0x3549
movl (%r14), %eax
movl %eax, 0x4(%rbx)
leaq 0x1(%r15), %rdi
callq 0x2440
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x3546
movq %rax, %r12
movq 0x20(%r14), %rsi
movq %rax, %rdi
movq %r15, %rdx
callq 0x2250
movb $0x0, (%r12,%r15)
xorl %ebp, %ebp
jmp 0x3549
pushq $-0x1
popq %rbp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_1/exercise_1_10/copy_io_esc_replace.c
// Function: main
int main(void)
{
  char c;
  while ((c = getchar()) != EOF)
  {
    if (c == '\t')
    {
      putchar('\\');
      putchar('t');
    }
    else if (c == '\b')
    {
      putchar('\\');
      putchar('b');
    }
    else if (c == '\\')
    {
      putchar('\\');
      putchar('\\');
    }
    else
    {
      putchar(c);
    }
  }

  return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
pushq $0x5c
popq %rbx
pushq $0x62
popq %rbp
pushq $0x74
popq %r14
callq 0x1040
shll $0x18, %eax
cmpl $0x8000000, %eax        # imm = 0x8000000
je 0x118f
cmpl $0x9000000, %eax        # imm = 0x9000000
je 0x1183
cmpl $0x5c000000, %eax       # imm = 0x5C000000
je 0x119a
cmpl $0xff000000, %eax       # imm = 0xFF000000
je 0x11ac
sarl $0x18, %eax
jmp 0x11a3
movl %ebx, %edi
callq 0x1030
movl %r14d, %eax
jmp 0x11a3
movl %ebx, %edi
callq 0x1030
movl %ebp, %eax
jmp 0x11a3
movl %ebx, %edi
callq 0x1030
movl %ebx, %eax
movl %eax, %edi
callq 0x1030
jmp 0x115a
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/inolen[P]gdb_server/./sh4.h
// Function: sh4_SWAPB
INSTR(SWAPB) {
  const int nbits = 8;
  const uint32_t mask = (1u << nbits) - 1;
  I32 v = LOAD_REG_I32(i->rm);
  I32 tmp = AND_IMM_I32(XOR_I32(v, LSHR_I32(v, nbits)), mask);
  I32 res = XOR_I32(v, OR_I32(tmp, SHL_I32(tmp, nbits)));
  STORE_REG_I32(i->rn, res);
  NEXT_INSTR();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movzwl 0xa(%rsi), %eax
movl 0x20(%rdi,%rax,4), %eax
movl %eax, %ecx
shrl $0x8, %ecx
xorl %eax, %ecx
movzbl %cl, %ecx
imull $0x101, %ecx, %ecx      # imm = 0x101
xorl %eax, %ecx
movzwl 0xc(%rsi), %eax
movl %ecx, 0x20(%rdi,%rax,4)
addl $0x2, 0x4(%rdi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/inolen[P]gdb_server/./sh4.h
// Function: sh4_SWAPW
INSTR(SWAPW) {
  const int nbits = 16;
  const uint32_t mask = (1u << nbits) - 1;
  I32 v = LOAD_REG_I32(i->rm);
  I32 tmp = AND_IMM_I32(XOR_I32(v, LSHR_I32(v, nbits)), mask);
  I32 res = XOR_I32(v, OR_I32(tmp, SHL_I32(tmp, nbits)));
  STORE_REG_I32(i->rn, res);
  NEXT_INSTR();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movzwl 0xa(%rsi), %eax
movl 0x20(%rdi,%rax,4), %eax
movl %eax, %ecx
shrl $0x10, %ecx
movzwl %ax, %edx
xorl %ecx, %edx
imull $0x10001, %edx, %ecx    # imm = 0x10001
xorl %eax, %ecx
movzwl 0xc(%rsi), %eax
movl %ecx, 0x20(%rdi,%rax,4)
addl $0x2, 0x4(%rdi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/inolen[P]gdb_server/./sh4.h
// Function: sh4_CMPSTR
INSTR(CMPSTR) {
  // if any diff is zero, the bytes match
  I32 rm = LOAD_REG_I32(i->rm);
  I32 rn = LOAD_REG_I32(i->rn);
  I32 diff = XOR_I32(rn, rm);
  I32 b4_eq = CMPEQ_IMM_I32(AND_I32(diff, 0xff000000), 0);
  I32 b3_eq = CMPEQ_IMM_I32(AND_I32(diff, 0x00ff0000), 0);
  I32 b2_eq = CMPEQ_IMM_I32(AND_I32(diff, 0x0000ff00), 0);
  I32 b1_eq = CMPEQ_IMM_I32(AND_I32(diff, 0x000000ff), 0);
  I32 r = OR_I32(OR_I32(OR_I32(b1_eq, b2_eq), b3_eq), b4_eq);
  STORE_T_I32(r);
  NEXT_INSTR();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movzwl 0xa(%rsi), %eax
movzwl 0xc(%rsi), %ecx
movl 0x20(%rdi,%rcx,4), %ecx
xorl 0x20(%rdi,%rax,4), %ecx
cmpl $0x1000000, %ecx        # imm = 0x1000000
setb %al
testl $0xff0000, %ecx         # imm = 0xFF0000
sete %dl
testw $0xff00, %cx            # imm = 0xFF00
sete %sil
testb %cl, %cl
sete %cl
orb %sil, %cl
orb %al, %dl
orb %cl, %dl
movl 0x14c(%rdi), %eax
andl $-0x2, %eax
movzbl %dl, %ecx
orl %eax, %ecx
movl %ecx, 0x14c(%rdi)
addl $0x2, 0x4(%rdi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/inolen[P]gdb_server/./sh4.h
// Function: sh4_SHAD
INSTR(SHAD) {
  // when Rm >= 0, Rn << Rm
  // when Rm < 0, Rn >> Rm
  // when shifting right > 32, Rn = (Rn >= 0 ? 0 : -1)
  I32 rn = LOAD_REG_I32(i->rn);
  I32 rm = LOAD_REG_I32(i->rm);
  STORE_REG_I32(i->rn, ASHD_I32(rn, rm));
  NEXT_INSTR();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movzwl 0xc(%rsi), %eax
movl 0x20(%rdi,%rax,4), %edx
movzwl 0xa(%rsi), %ecx
movl 0x20(%rdi,%rcx,4), %esi
movl %esi, %ecx
andl $0x1f, %ecx
testl %esi, %esi
js 0x44af
shll %cl, %edx
jmp 0x44bc
testl %ecx, %ecx
je 0x44b9
negb %cl
sarl %cl, %edx
jmp 0x44bc
sarl $0x1f, %edx
movl %edx, 0x20(%rdi,%rax,4)
addl $0x2, 0x4(%rdi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/inolen[P]gdb_server/./sh4.h
// Function: sh4_SHLD
INSTR(SHLD) {
  // when Rm >= 0, Rn << Rm
  // when Rm < 0, Rn >> Rm
  // when shifting right >= 32, Rn = 0
  I32 rn = LOAD_REG_I32(i->rn);
  I32 rm = LOAD_REG_I32(i->rm);
  STORE_REG_I32(i->rn, LSHD_I32(rn, rm));
  NEXT_INSTR();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movzwl 0xc(%rsi), %eax
movl 0x20(%rdi,%rax,4), %edx
movzwl 0xa(%rsi), %ecx
movl 0x20(%rdi,%rcx,4), %esi
movl %esi, %ecx
andl $0x1f, %ecx
testl %esi, %esi
js 0x4542
shll %cl, %edx
jmp 0x454e
testl %ecx, %ecx
je 0x454c
negb %cl
sarl %cl, %edx
jmp 0x454e
xorl %edx, %edx
movl %edx, 0x20(%rdi,%rax,4)
addl $0x2, 0x4(%rdi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/inolen[P]gdb_server/./sh4.h
// Function: sh4_arg_mask
static void ARG_MASK(const char *sig, char arg, uint16_t *mask,
                     uint16_t *shift) {
  int len = (int)strlen(sig);
  if (mask) {
    *mask = 0;
  }
  if (shift) {
    *shift = 0;
  }
  for (int i = 0; i < len; i++) {
    if ((!arg && sig[i] == '1') || (arg && sig[i] == arg)) {
      if (mask) {
        *mask |= (1 << (len - i - 1));
      }
      if (shift) {
        *shift = (uint16_t)(len - i - 1);
      }
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %r12
callq 0x30a0
movq %rax, %rcx
testq %r14, %r14
je 0x503d
andw $0x0, (%r14)
testq %rbx, %rbx
je 0x5046
andw $0x0, (%rbx)
xorl %eax, %eax
testl %ecx, %ecx
movl $0x0, %edx
cmovgl %ecx, %edx
decl %ecx
pushq $0x1
popq %rsi
cmpq %rax, %rdx
je 0x508e
movb (%r12,%rax), %dil
testb %r15b, %r15b
je 0x506c
cmpb %r15b, %dil
je 0x5072
jmp 0x5087
cmpb $0x31, %dil
jne 0x5087
testq %r14, %r14
je 0x507f
movl %esi, %edi
shll %cl, %edi
orw %di, (%r14)
testq %rbx, %rbx
je 0x5087
movw %cx, (%rbx)
incq %rax
decl %ecx
jmp 0x5057
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/inolen[P]gdb_server/./gdb_server.h
// Function: gdb_server_create
gdb_server_t *gdb_server_create(gdb_target_t *target, int port) {
  if (!target) {
    return NULL;
  }

  gdb_server_t *sv = GDB_SERVER_MALLOC(sizeof(gdb_server_t));
  memset(sv, 0, sizeof(*sv));
  sv->target = target;
  sv->listen = INVALID_SOCKET;
  sv->client = INVALID_SOCKET;

  if (gdb_server_create_listen(sv, port) == -1) {
    GDB_SERVER_FREE(sv);
    sv = NULL;
  }

  return sv;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
testq %rdi, %rdi
je 0x51fa
movl %esi, %r15d
movq %rdi, %r14
pushq $0x1
popq %rdi
movl $0x40020, %esi          # imm = 0x40020
callq 0x3100
movq %rax, %rbx
movq %r14, (%rax)
orl $-0x1, 0xc(%rax)
pushq $0x2
popq %rdi
pushq $0x1
popq %rsi
xorl %edx, %edx
callq 0x31e0
movl %eax, %r14d
movl %eax, 0x8(%rbx)
cmpl $-0x1, %eax
je 0x51c0
leaq -0x1c(%rbp), %rcx
movl $0x1, (%rcx)
pushq $0x1
popq %rsi
pushq $0x2
popq %rdx
pushq $0x4
popq %r8
movl %r14d, %edi
callq 0x3070
cmpl $-0x1, %eax
je 0x51c9
leaq -0x2c(%rbp), %rsi
andq $0x0, 0x8(%rsi)
movw $0x2, (%rsi)
movl %r15d, %eax
rolw $0x8, %ax
movw %ax, 0x2(%rsi)
andl $0x0, 0x4(%rsi)
pushq $0x10
popq %rdx
movl %r14d, %edi
callq 0x3190
cmpl $-0x1, %eax
je 0x51d2
pushq $0x1
popq %rsi
movl %r14d, %edi
callq 0x3160
cmpl $-0x1, %eax
je 0x51db
leaq 0x2d06(%rip), %rdi      # 0x7eba
movl %r15d, %esi
xorl %eax, %eax
callq 0x30c0
jmp 0x51fc
leaq 0x3026(%rip), %rdi      # 0x81ed
jmp 0x51e2
leaq 0x2ff1(%rip), %rdi      # 0x81c1
jmp 0x51e2
leaq 0x2fce(%rip), %rdi      # 0x81a7
jmp 0x51e2
leaq 0x2fa6(%rip), %rdi      # 0x8188
callq 0x3050
pushq $0x2
popq %rsi
movl %r14d, %edi
callq 0x3090
movq %rbx, %rdi
callq 0x3030
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/inolen[P]gdb_server/./gdb_server.h
// Function: gdb_server_send_packet
static int gdb_server_send_packet(gdb_server_t *sv, const char *data) {
  uint8_t cs = packet_data_checksum(data);

  // make sure the data won't overflow our buffer
  int length = (int)strlen(data);
  if (length > GDB_MAX_DATA_SIZE) {
    return -1;
  }

  snprintf(sv->conn.last_sent, sizeof(sv->conn.last_sent), "%c%s%c%02x",
           GDB_PACKET_BEGIN, data, GDB_PACKET_END, cs);

  return gdb_server_send_raw(sv, sv->conn.last_sent);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x5e85
movl %eax, %r15d
movq %r14, %rdi
callq 0x30a0
cmpl $0x1fffb, %eax          # imm = 0x1FFFB
jle 0x527b
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20015(%rbx), %r12
movzbl %r15b, %eax
movl %eax, (%rsp)
leaq 0x2d0d(%rip), %rdx      # 0x7f9d
pushq $0x24
popq %rcx
pushq $0x23
popq %r9
movl $0x20000, %esi          # imm = 0x20000
movq %r12, %rdi
movq %r14, %r8
xorl %eax, %eax
callq 0x30d0
movq %rbx, %rdi
movq %r12, %rsi
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x5eb2