LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/thegenemyers[P]DAMASKER/datander.c
// Function: Clean_Exit
void Clean_Exit(int val)
{ char *command;

  command = CommandBuffer("",SORT_PATH);
  sprintf(command,"rm -r %s",SORT_PATH);
  if (system(command) != 0)
    { fprintf(stderr,"%s: Command Failed:\n%*s      %s\n",
                     Prog_Name,(int) strlen(Prog_Name),"",command);
      exit (1);
    }
  exit (val);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebp
movq 0x20c9c(%rip), %rsi     # 0x241c8
leaq 0x1ada1(%rip), %rdi     # 0x1e2d4
callq 0x35ac
movq %rax, %rbx
movq 0x20c86(%rip), %rdx     # 0x241c8
leaq 0x19aff(%rip), %rsi     # 0x1d048
movq %rax, %rdi
xorl %eax, %eax
callq 0x22d0
movq %rbx, %rdi
callq 0x2130
testl %eax, %eax
jne 0x3566
movl %ebp, %edi
callq 0x22e0
movq 0x20a8b(%rip), %rax     # 0x23ff8
movq (%rax), %r14
leaq 0x20ce9(%rip), %rax     # 0x24260
movq (%rax), %r15
movq %r15, %rdi
callq 0x2120
leaq 0x19ef8(%rip), %rsi     # 0x1d481
leaq 0x1ad44(%rip), %r8      # 0x1e2d4
movq %r14, %rdi
movq %r15, %rdx
movl %eax, %ecx
movq %rbx, %r9
xorl %eax, %eax
callq 0x2200
movl $0x1, %edi
callq 0x22e0
// File: /workspace/github_c_makefile_star2_O3/thegenemyers[P]DAMASKER/datander.c
// Function: CommandBuffer
static char *CommandBuffer(char *bname, char *spath)
{ static char *cat = NULL;
  static int   max = -1;
  int len;

  len = 2*(strlen(bname) + strlen(spath)) + 200;
  if (len > max)
    { max = ((int) (1.2*len)) + 100;
      if ((cat = (char *) realloc(cat,max+1)) == NULL)
        { fprintf(stderr,"%s: Out of memory (Making path name)\n",Prog_Name);
          Clean_Exit(1);
        }
    }
  return (cat);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
callq 0x2120
movq %rax, %r14
movq %rbx, %rdi
callq 0x2120
addl %r14d, %eax
leal 0xc8(,%rax,2), %ecx
movq 0x20c04(%rip), %rax     # 0x241d8
cmpl 0x20bce(%rip), %ecx     # 0x241a8
jle 0x360f
cvtsi2sd %ecx, %xmm0
mulsd 0x19a20(%rip), %xmm0    # 0x1d008
cvttsd2si %xmm0, %ecx
leal 0x64(%rcx), %edx
movl %edx, 0x20bb3(%rip)     # 0x241a8
addl $0x65, %ecx
movslq %ecx, %rsi
movq %rax, %rdi
callq 0x2270
movq %rax, 0x20bce(%rip)     # 0x241d8
testq %rax, %rax
je 0x3617
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x2340
// File: /workspace/github_c_makefile_star2_O3/thegenemyers[P]DAMASKER/tandem.c
// Function: Set_Filter_Params
int Set_Filter_Params(int kmer, int binshift, int hitmin, int nthreads)
{ if (kmer <= 1)
    return (1);

  Kmer     = kmer;
  Binshift = binshift;
  Hitmin   = hitmin;

  Kshift = 2*Kmer;
  if (Kmer == 32)
    Kmask = 0xffffffffffffffffllu;
  else
    Kmask = (0x1llu << Kshift) - 1;

  NTHREADS = 1;
  NSHIFT   = 0;
  while (2*NTHREADS <= nthreads)
    { NTHREADS *= 2;
      NSHIFT   += 1;
    }

  return (0);
}

// Assembly:
movl $0x1, %eax
cmpl $0x2, %edi
jl 0x40a4
movl %ecx, %r8d
movl %edi, 0x201a9(%rip)     # 0x241e0
movl %esi, 0x201a7(%rip)     # 0x241e4
movl %edx, 0x201a5(%rip)     # 0x241e8
leal (%rdi,%rdi), %ecx
movl %ecx, 0x201a0(%rip)     # 0x241ec
movq $-0x1, %rax
movq $-0x1, %rdx
shlq %cl, %rdx
cmpl $0x20, %edi
notq %rdx
cmoveq %rax, %rdx
movq %rdx, 0x20182(%rip)     # 0x241f0
movl $0x1, 0x20180(%rip)     # 0x241f8
xorl %eax, %eax
movl $0x0, %ecx
cmpl $0x2, %r8d
jl 0x409e
xorl %ecx, %ecx
movl $0x2, %esi
movl %esi, %edx
incl %ecx
leal (%rdx,%rdx), %esi
cmpl %r8d, %esi
jle 0x408c
movl %edx, 0x2015a(%rip)     # 0x241f8
movl %ecx, 0x20158(%rip)     # 0x241fc
retq
// File: /workspace/github_c_makefile_star2_O3/thegenemyers[P]DAMASKER/tandem.c
// Function: Diagonal_Span
void Diagonal_Span(Path *path, int *mind, int *maxd)
{ uint16 *points;
  int     i, tlen;
  int     dd, low, hgh;

  points = path->trace;
  tlen   = path->tlen;

  dd = path->abpos - path->bbpos;
  low = hgh = dd;

  dd = path->aepos - path->bepos;
  if (dd < low)
    low = dd;
  else if (dd > hgh)
    hgh = dd;

  dd = (path->abpos/MR_tspace)*MR_tspace - path->bbpos;
  tlen -= 2;
  for (i = 1; i < tlen; i += 2)
    { dd += MR_tspace - points[i];
      if (dd < low)
        low = dd;
      else if (dd > hgh)
        hgh = dd;
    }

  *mind = (low >> Binshift)-1;
  *maxd = (hgh >> Binshift)+1;
}

// Assembly:
pushq %rbp
pushq %rbx
movq %rdx, %r8
movl 0x10(%rdi), %ecx
movl 0x14(%rdi), %ebp
movl %ecx, %eax
subl %ebp, %eax
movl 0x18(%rdi), %r9d
subl 0x1c(%rdi), %r9d
cmpl %eax, %r9d
movl %eax, %r10d
cmovgl %r9d, %r10d
movl 0x8(%rdi), %r11d
cmovgel %eax, %r9d
cmpl $0x4, %r11d
jl 0x4116
movq (%rdi), %rdi
movl 0x20123(%rip), %ebx     # 0x24200
addl $-0x2, %r11d
movl %ecx, %eax
cltd
idivl %ebx
addl %edx, %ebp
subl %ebp, %ecx
movl $0x1, %eax
movzwl (%rdi,%rax,2), %edx
movl %ebx, %ebp
subl %edx, %ebp
addl %ebp, %ecx
cmpl %r10d, %ecx
movl %r10d, %edx
cmovgl %ecx, %edx
cmpl %r9d, %ecx
cmovll %ecx, %r9d
cmovgel %edx, %r10d
addq $0x2, %rax
cmpq %r11, %rax
jb 0x40ef
movb 0x200c8(%rip), %cl      # 0x241e4
sarl %cl, %r9d
sarl %cl, %r10d
decl %r9d
movl %r9d, (%rsi)
incl %r10d
movl %r10d, (%r8)
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/thegenemyers[P]DAMASKER/tandem.c
// Function: count_thread
static void *count_thread(void *arg)
{ Merge_Arg  *data  = (Merge_Arg *) arg;
  int64      *kptr  = data->kptr;
  KmerPos    *asort = MG_alist;
  int         aend  = data->aend;

  uint64 ca, da;
  int    ia;
  int    ar, nr;
  int    ap, np;

  ia = data->abeg;
  da = asort[ia].code;
  while (ia < aend)
    { ca = da;
      ar = asort[ia].read;
      ap = asort[ia].rpos;
      kptr[ap & BMASK] += 1;
      while ((da = asort[++ia].code) == ca)
        { np = asort[ia].rpos;
          if ((nr = asort[ia].read) == ar)
            asort[ia].code = np - ap;
          else
            { asort[ia].code = 0;
              ar = nr;
            }
          ap = np;
          kptr[ap & BMASK] += 1;
        }
      asort[ia].code = 0;
    }
            
  return (NULL);
}

// Assembly:
movl (%rdi), %eax
movl 0x4(%rdi), %ecx
cmpl %ecx, %eax
jge 0x518d
pushq %rbp
pushq %r14
pushq %rbx
movq 0x8(%rdi), %rdx
movq 0x1f0f7(%rip), %rsi     # 0x24208
movslq %eax, %rdi
shlq $0x4, %rdi
movq (%rsi,%rdi), %r8
xorl %edi, %edi
cltq
movq %rax, %r9
shlq $0x4, %r9
addq %rsi, %r9
addq $0x10, %r9
movl -0x8(%r9), %r10d
movl -0x4(%r9), %r11d
movzbl %r10b, %ebx
incq (%rdx,%rbx,8)
incl %eax
movq (%r9), %rbx
cmpq %r8, %rbx
jne 0x517b
movl 0x8(%r9), %ebp
movl 0xc(%r9), %r14d
movl %ebp, %ebx
subl %r10d, %ebx
cmpl %r11d, %r14d
cmovnel %edi, %ebx
movslq %ebx, %r10
movq %r10, (%r9)
movzbl %bpl, %r10d
incq (%rdx,%r10,8)
movq 0x10(%r9), %rbx
addq $0x10, %r9
incl %eax
movl %ebp, %r10d
movl %r14d, %r11d
jmp 0x5143
movq $0x0, (%r9)
movq %rbx, %r8
cmpl %ecx, %eax
jl 0x511e
popq %rbx
popq %r14
popq %rbp
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/thegenemyers[P]DAMASKER/tandem.c
// Function: tuple_thread
static void *tuple_thread(void *arg)
{ Tuple_Arg  *data  = (Tuple_Arg *) arg;
  int         tnum  = data->tnum;
  int64      *kptr  = data->kptr;
  KmerPos    *list  = TA_list;
  int         i, m, n, x, p;
  uint64      c;
  char       *s;

  c  = TA_block->nreads;
  i  = (c * tnum) >> NSHIFT;
  n  = TA_block->reads[i].boff;
  s  = ((char *) (TA_block->bases)) + n;
  n -= Kmer*i;

  for (m = (c * (tnum+1)) >> NSHIFT; i < m; i++)
    { c = p = 0;
      for (x = 1; x < Kmer; x++)
        c = (c << 2) | s[p++];
      while ((x = s[p]) != 4)
        { c = ((c << 2) | x) & Kmask;
          list[n].read = i;
          list[n].rpos = ++p;
          list[n].code = c;
          n += 1;
          kptr[c & BMASK] += 1;
        }
      s += (p+1);
    }

  return (NULL);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movslq (%rdi), %rax
movq 0x1e335(%rip), %rsi     # 0x24220
movslq 0x30(%rsi), %r8
movq %r8, %rdx
imulq %rax, %rdx
movb 0x1e300(%rip), %cl      # 0x241fc
shrq %cl, %rdx
incq %rax
imulq %r8, %rax
shrq %cl, %rax
cmpl %eax, %edx
jge 0x600e
movq 0x8(%rdi), %rcx
movq 0x1e30c(%rip), %r14     # 0x24228
movl 0x1e2be(%rip), %edi     # 0x241e0
movq 0x60(%rsi), %r8
movslq %edx, %r9
leaq (%r9,%r9,4), %r9
movq 0x10(%r8,%r9,8), %r8
movl %edi, %r10d
imull %edx, %r10d
movslq %r8d, %r9
subl %r10d, %r8d
addq 0x58(%rsi), %r9
movq 0x1e2a6(%rip), %r10     # 0x241f0
cmpl $0x2, %edi
movl $0x1, %r11d
cmovgel %edi, %r11d
leal -0x1(%rdi), %ebx
leal -0x1(%r11), %esi
addq $0xc, %r14
movq %r14, -0x8(%rsp)
incq %rsi
movq %rsi, -0x10(%rsp)
cmpl $0x2, %edi
jl 0x5f94
xorl %esi, %esi
xorl %r15d, %r15d
movq %r15, %r12
shlq $0x2, %r12
movsbq (%r9,%rsi), %r15
incq %rsi
orq %r12, %r15
cmpq %rsi, %rbx
jne 0x5f79
movl %ebx, %ebp
jmp 0x5f99
xorl %ebp, %ebp
xorl %r15d, %r15d
movl %ebp, %esi
movb (%r9,%rsi), %sil
cmpb $0x4, %sil
je 0x5ffc
movslq %r8d, %r12
shlq $0x4, %r12
addq -0x8(%rsp), %r12
movq -0x10(%rsp), %r14
leaq (%r9,%r14), %r13
movl %r11d, %ebp
shlq $0x2, %r15
movsbq %sil, %r14
orq %r15, %r14
andq %r10, %r14
movl %edx, (%r12)
movl %ebp, -0x4(%r12)
movq %r14, -0xc(%r12)
movzbl %r14b, %esi
incq (%rcx,%rsi,8)
movb (%r13), %sil
addq $0x10, %r12
incl %r8d
incq %r13
incl %ebp
movq %r14, %r15
cmpb $0x4, %sil
jne 0x5fbd
decl %ebp
movl %ebp, %esi
addq %rsi, %r9
incq %r9
incl %edx
cmpl %eax, %edx
jne 0x5f6f
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Joy-Division[P]tools-mgs/dat-merge.c
// Function: main
int main(int argc, char** argv) {
	FILE *f = NULL;
	FILE *o = NULL;
	
	uint32_t numvfsfiles;
	vfsfile* vfsfiles;
	
	unsigned int i;
	
	if( argc < 2 ) {
		printf("Not enough args!\nUse: %s dat-file\n", argv[0]);
		return 1;
	}
	
	if( !(f = fopen( argv[1], "rb" ))) {
		printf("Couldnt open file %s\n", argv[1]);
		return 1;
	}
	
	fread(&numvfsfiles, 4, 1, f);
	vfsfiles = malloc(sizeof(vfsfile)*numvfsfiles);
	fread(vfsfiles, sizeof(vfsfile)*numvfsfiles, 1, f);
	
	for(i = 0; i < numvfsfiles; i++) {
		printf("File %s offset %08x size %08x sectors\n", vfsfiles[i].name, vfsfiles[i].offset, vfsfiles[i].size);
		fseek(f, vfsfiles[i].offset*0x800, SEEK_SET);
		if( !(o = fopen(vfsfiles[i].name, "wb" ))) {
			printf("Couldnt open files %s\n", vfsfiles[i].name);
			return 1;
		}
		writeFile(f, vfsfiles[i].size*0x800, o);
		fclose(o);
	}
	
	free(vfsfiles);
	fclose(f);
	
	printf("Done.\n");
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
cmpl $0x1, %edi
jg 0x12ae
movq (%r14), %rsi
leaq 0xda9(%rip), %rdi       # 0x2052
jmp 0x13c0
movq 0x8(%r14), %rdi
leaq 0xdbc(%rip), %rsi       # 0x2075
callq 0x10a0
testq %rax, %rax
je 0x13a9
movq %rax, %rbx
leaq 0x14(%rsp), %r14
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rax, %rcx
callq 0x1050
movl (%r14), %r14d
leaq (,%r14,8), %rax
leaq (%rax,%rax,2), %r15
movq %r15, %rdi
callq 0x1080
movl $0x1, %edx
movq %rax, 0x8(%rsp)
movq %rax, %rdi
movq %r15, %rsi
movq %rbx, %rcx
callq 0x1050
testq %r14, %r14
je 0x1387
leaq 0xd6f(%rip), %r12       # 0x208e
leaq 0xd8f(%rip), %r13       # 0x20b5
movq 0x8(%rsp), %r15
movl 0x10(%r15), %edx
movl 0x14(%r15), %ecx
movq %r12, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x1070
movl 0x10(%r15), %esi
shll $0xb, %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x1090
movq %r15, %rdi
movq %r13, %rsi
callq 0x10a0
testq %rax, %rax
je 0x13b6
movq %rax, %rbp
movl 0x14(%r15), %esi
shll $0xb, %esi
movq %rbx, %rdi
movq %rax, %rdx
callq 0x11cc
movq %rbp, %rdi
callq 0x1060
addq $0x18, %r15
decq %r14
jne 0x132b
movq 0x8(%rsp), %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x1060
leaq 0xd2f(%rip), %rdi       # 0x20cf
callq 0x1040
xorl %eax, %eax
jmp 0x13cc
movq 0x8(%r14), %rsi
leaq 0xcc4(%rip), %rdi       # 0x2078
jmp 0x13c0
leaq 0xcfb(%rip), %rdi       # 0x20b8
movq %r15, %rsi
xorl %eax, %eax
callq 0x1070
movl $0x1, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/liuhaotian[P]xmppsh/libstrophe/examples/bot.c
// Function: main
int main(int argc, char **argv)
{
    xmpp_ctx_t *ctx;
    xmpp_conn_t *conn;
    xmpp_log_t *log;
    char *jid, *pass;

    /* take a jid and password on the command line */
    if (argc != 3) {
	fprintf(stderr, "Usage: bot <jid> <pass>\n\n");
	return 1;
    }
    
    jid = argv[1];
    pass = argv[2];

    /* init library */
    xmpp_initialize();

    /* create a context */
    log = xmpp_get_default_logger(XMPP_LEVEL_DEBUG); /* pass NULL instead to silence output */
    ctx = xmpp_ctx_new(NULL, log);

    /* create a connection */
    conn = xmpp_conn_new(ctx);

    /* setup authentication information */
    xmpp_conn_set_jid(conn, jid);
    xmpp_conn_set_pass(conn, pass);

    /* initiate connection */
    xmpp_connect_client(conn, NULL, 0, conn_handler, ctx);

    /* enter the event loop - 
       our connect handler will trigger an exit */
    xmpp_run(ctx);

    /* release our connection and context */
    xmpp_conn_release(conn);
    xmpp_ctx_free(ctx);

    /* final shutdown of the library */
    xmpp_shutdown();

    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
cmpl $0x3, %edi
jne 0x2947
movq 0x8(%rsi), %r15
movq 0x10(%rsi), %r12
callq 0x4c38
xorl %ebx, %ebx
xorl %edi, %edi
callq 0x4c90
xorl %edi, %edi
movq %rax, %rsi
callq 0x4ff9
movq %rax, %r14
movq %rax, %rdi
callq 0x4010
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
callq 0x464d
movq %r13, %rdi
movq %r12, %rsi
callq 0x4689
leaq -0x86(%rip), %rcx       # 0x2889
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r14, %r8
callq 0x46c8
movq %r14, %rdi
callq 0x5642
movq %r13, %rdi
callq 0x441c
movq %r14, %rdi
callq 0x5062
callq 0x4c44
movl %ebx, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
callq 0x2436
movl $0x1, %ebx
jmp 0x293b
nop
// File: /workspace/github_c_makefile_star2_O3/maandree[P]libkeccak/./libkeccak.h
// Function: libkeccak_state_destroy
inline void
libkeccak_state_destroy(volatile struct libkeccak_state *state)
{
	if (state) {
		libkeccak_state_wipe(state);
		free(state->M);
		state->M = NULL;
	}
}

// Assembly:
testq %rdi, %rdi
je 0x6bbe
pushq %rbx
movq %rdi, %rbx
callq 0x2120
movq 0x118(%rbx), %rdi
callq 0x2040
movq $0x0, 0x118(%rbx)
popq %rbx
retq
nop
// File: /workspace/github_c_makefile_star2_O3/maandree[P]libkeccak/hmac/libkeccak_hmac_copy.c
// Function: libkeccak_hmac_copy
int
libkeccak_hmac_copy(struct libkeccak_hmac_state *restrict dest, const struct libkeccak_hmac_state *restrict src)
{
	size_t size;

	dest->key_opad = NULL;
	dest->key_ipad = NULL;

	if (libkeccak_state_copy(&dest->sponge, &src->sponge) < 0)
		return -1;

	dest->key_length = src->key_length;
	dest->leftover = src->leftover;

	size = (src->key_length + 7) >> 3;
	dest->key_opad = malloc(2 * size);
	if (!dest->key_opad) {
		libkeccak_state_destroy(&dest->sponge);
		return -1;
	}
	dest->key_ipad = dest->key_opad + size;

	memcpy(dest->key_opad, src->key_opad, size);
	memcpy(dest->key_ipad, src->key_ipad, size);

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rdi), %r15
addq $0x18, %rsi
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %r15, %rdi
callq 0x20b0
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %eax, %eax
js 0x70fd
movq 0x10(%r14), %r12
movq %r12, 0x10(%rbx)
movb 0x148(%r14), %al
movb %al, 0x148(%rbx)
addq $0x7, %r12
shrq $0x3, %r12
leaq (%r12,%r12), %rdi
callq 0x2160
movq %rax, (%rbx)
testq %rax, %rax
je 0x70de
movq %rax, %r15
addq %r12, %r15
movq %r15, 0x8(%rbx)
movq (%r14), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x2130
movq 0x8(%r14), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x2130
xorl %ebp, %ebp
jmp 0x70fd
movq %r15, %rdi
callq 0x2120
movq 0x130(%rbx), %rdi
callq 0x2040
movq $0x0, 0x130(%rbx)
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/maandree[P]libkeccak/hmac/../libkeccak/hmac.h
// Function: libkeccak_hmac_create
inline struct libkeccak_hmac_state *
libkeccak_hmac_create(const struct libkeccak_spec *restrict spec, const void *restrict key, size_t key_length)
{
	struct libkeccak_hmac_state *state = malloc(sizeof(struct libkeccak_hmac_state));
	if (!state || libkeccak_hmac_initialise(state, spec, key, key_length)) {
		free(state);
		return NULL;
	}
	return state;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movl $0x150, %edi            # imm = 0x150
callq 0x2160
movq %rax, %rbx
testq %rax, %rax
je 0x7186
movq %rax, %r14
addq $0x18, %r14
movq %r14, %rdi
movq %r13, %rsi
callq 0x20d0
testl %eax, %eax
js 0x7186
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x2090
testl %eax, %eax
js 0x7167
xorps %xmm0, %xmm0
movups %xmm0, 0x138(%rbx)
movb $0x0, 0x148(%rbx)
jmp 0x7190
movq %r14, %rdi
callq 0x2120
movq 0x130(%rbx), %rdi
callq 0x2040
movq $0x0, 0x130(%rbx)
movq %rbx, %rdi
callq 0x2040
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/maandree[P]libkeccak/hmac/../libkeccak/hmac.h
// Function: libkeccak_hmac_destroy
inline void
libkeccak_hmac_destroy(volatile struct libkeccak_hmac_state *state)
{
	if (!state)
		return;
	libkeccak_hmac_wipe(state);
	free(state->key_opad);
	state->key_opad = NULL;
	state->key_ipad = NULL;
	state->key_length = 0;
	state->leftover = 0;
	free(state->buffer);
	state->buffer = NULL;
	state->buffer_size = 0;
}

// Assembly:
testq %rdi, %rdi
je 0x71ef
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x20a0
movq (%rbx), %rdi
callq 0x2040
xorl %r14d, %r14d
movq %r14, (%rbx)
movq %r14, 0x8(%rbx)
movq %r14, 0x10(%rbx)
movb $0x0, 0x148(%rbx)
movq 0x138(%rbx), %rdi
callq 0x2040
movq %r14, 0x138(%rbx)
movq %r14, 0x140(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/maandree[P]libkeccak/hmac/../libkeccak/hmac.h
// Function: libkeccak_hmac_duplicate
inline struct libkeccak_hmac_state *
libkeccak_hmac_duplicate(const struct libkeccak_hmac_state *src)
{
	struct libkeccak_hmac_state *dest = malloc(sizeof(struct libkeccak_hmac_state));
	if (!dest || libkeccak_hmac_copy(dest, src)) {
		libkeccak_hmac_free(dest);
		return NULL;
	}
	return dest;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x150, %edi            # imm = 0x150
callq 0x2160
testq %rax, %rax
je 0x744f
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq 0x20f0
testl %eax, %eax
je 0x7451
movq %rbx, %rdi
callq 0x20a0
movq (%rbx), %rdi
callq 0x2040
xorl %r14d, %r14d
movq %r14, (%rbx)
movq %r14, 0x8(%rbx)
movq %r14, 0x10(%rbx)
movb $0x0, 0x148(%rbx)
movq 0x138(%rbx), %rdi
callq 0x2040
movq %r14, 0x138(%rbx)
movq %r14, 0x140(%rbx)
movq %rbx, %rdi
callq 0x2040
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/maandree[P]libkeccak/hmac/../libkeccak/hmac.h
// Function: libkeccak_hmac_fast_destroy
inline void
libkeccak_hmac_fast_destroy(struct libkeccak_hmac_state *state)
{
	if (!state)
		return;
	free(state->key_opad);
	state->key_opad = NULL;
	state->key_ipad = NULL;
	state->key_length = 0;
	free(state->buffer);
	state->buffer = NULL;
	state->buffer_size = 0;
}

// Assembly:
testq %rdi, %rdi
je 0x7492
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq 0x138(%rbx), %rdi
callq 0x2040
xorps %xmm0, %xmm0
movups %xmm0, 0x138(%rbx)
popq %rbx
retq
nop
// File: /workspace/github_c_makefile_star2_O3/maandree[P]libkeccak/hmac/libkeccak_hmac_fast_update.c
// Function: libkeccak_hmac_fast_update
int
libkeccak_hmac_fast_update(struct libkeccak_hmac_state *restrict state, const void *restrict msg_, size_t msglen)
{
	const unsigned char *restrict msg = msg_;
	void *new;
	size_t i;
	int n, cn;

	if (state->key_ipad) {
		if (libkeccak_fast_update(&state->sponge, state->key_ipad, state->key_length >> 3) < 0)
			return -1;
		if (state->key_length & 7)
			state->leftover = state->key_ipad[state->key_length >> 3];
		state->key_ipad = NULL;
	}

	if (!msg || !msglen)
		return 0;

	if (!(state->key_length & 7))
		return libkeccak_fast_update(&state->sponge, msg, msglen);

	if (msglen != state->buffer_size) {
		new = realloc(state->buffer, msglen);
		if (!new)
			return -1;
		state->buffer = new;
		state->buffer_size = msglen;
	}

	n = (int)(state->key_length & 7);
	cn = 8 - n;
	for (i = 1; i < msglen; i++)
		state->buffer[i] = (unsigned char)((msg[i - 1] >> cn) | (msg[i] << n));
	state->buffer[0] = (unsigned char)((state->leftover & ((1 << n) - 1)) | (msg[0] << n));
	state->leftover = (unsigned char)(msg[msglen - 1] >> cn);

	return libkeccak_fast_update(&state->sponge, state->buffer, msglen);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x8(%rdi), %rsi
testq %rsi, %rsi
je 0x76ee
leaq 0x18(%r14), %rdi
movq 0x10(%r14), %rdx
shrq $0x3, %rdx
callq 0x21b0
testl %eax, %eax
js 0x77cc
movq 0x10(%r14), %rax
testb $0x7, %al
je 0x76e6
movq 0x8(%r14), %rcx
shrq $0x3, %rax
movb (%rcx,%rax), %al
movb %al, 0x148(%r14)
movq $0x0, 0x8(%r14)
testq %r15, %r15
sete %cl
testq %rbx, %rbx
sete %dl
xorl %eax, %eax
orb %cl, %dl
jne 0x77d1
movq 0x10(%r14), %rax
testb $0x7, %al
je 0x77d7
cmpq %rbx, 0x140(%r14)
je 0x7743
movq 0x138(%r14), %rdi
movq %rbx, %rsi
callq 0x2180
testq %rax, %rax
je 0x77cc
movq %rax, 0x138(%r14)
movq %rbx, 0x140(%r14)
movq 0x10(%r14), %rax
andl $0x7, %eax
movl $0x8, %edx
subl %eax, %edx
cmpq $0x2, %rbx
jb 0x7782
movl $0x1, %esi
movzbl -0x1(%r15,%rsi), %edi
movl %edx, %ecx
shrl %cl, %edi
movzbl (%r15,%rsi), %r8d
movl %eax, %ecx
shll %cl, %r8d
orl %edi, %r8d
movq 0x138(%r14), %rcx
movb %r8b, (%rcx,%rsi)
incq %rsi
cmpq %rsi, %rbx
jne 0x7758
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl %eax, %ecx
shll %cl, %esi
movzbl 0x148(%r14), %ecx
notl %esi
andl %ecx, %esi
movzbl (%r15), %edi
movl %eax, %ecx
shll %cl, %edi
orl %esi, %edi
movq 0x138(%r14), %rax
movb %dil, (%rax)
movzbl -0x1(%r15,%rbx), %eax
movl %edx, %ecx
shrl %cl, %eax
movb %al, 0x148(%r14)
movq 0x138(%r14), %rsi
addq $0x18, %r14
movq %r14, %rdi
jmp 0x77e1
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
popq %r14
popq %r15
retq
addq $0x18, %r14
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x21b0
nop
// File: /workspace/github_c_makefile_star2_O3/maandree[P]libkeccak/hmac/../libkeccak/hmac.h
// Function: libkeccak_hmac_initialise
inline int
libkeccak_hmac_initialise(struct libkeccak_hmac_state *restrict state, const struct libkeccak_spec *restrict spec,
                          const void *restrict key, size_t key_length)
{
	if (libkeccak_state_initialise(&state->sponge, spec) < 0)
		return -1;
	if (libkeccak_hmac_set_key(state, key, key_length) < 0) {
		libkeccak_state_destroy(&state->sponge);
		return -1;
	}
	state->leftover = 0;
	state->buffer = NULL;
	state->buffer_size = 0;
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r15
movq %rdx, %r12
movq %rdi, %rbx
leaq 0x18(%rdi), %r14
movq %r14, %rdi
callq 0x20d0
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %eax, %eax
js 0x78b8
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x2090
testl %eax, %eax
js 0x7899
xorps %xmm0, %xmm0
movups %xmm0, 0x138(%rbx)
movb $0x0, 0x148(%rbx)
xorl %ebp, %ebp
jmp 0x78b8
movq %r14, %rdi
callq 0x2120
movq 0x130(%rbx), %rdi
callq 0x2040
movq $0x0, 0x130(%rbx)
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/maandree[P]libkeccak/hmac/../libkeccak/hmac.h
// Function: libkeccak_hmac_marshal
inline size_t
libkeccak_hmac_marshal(const struct libkeccak_hmac_state *restrict state, void *restrict data_)
{
	unsigned char *restrict data = data_;
	size_t written = libkeccak_state_marshal(&state->sponge, data);
	if (data) {
		data += written;
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wcast-align"
#endif
		memcpy(data, &state->key_length, sizeof(state->key_length));
#if defined(__clang__)
# pragma clang diagnostic pop
#endif
		data += sizeof(size_t);
		memcpy(data, state->key_opad, (state->key_length + 7) >> 3);
		data += (state->key_length + 7) >> 3;
		data[0] = (unsigned char)!!state->key_ipad;
		data[1] = state->leftover;
	}
	return written + sizeof(size_t) + ((state->key_length + 7) >> 3) + 2 * sizeof(char);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r12
movq %rdi, %r14
addq $0x18, %rdi
callq 0x2080
movq %rax, %rbx
testq %r12, %r12
je 0x7924
leaq (%r12,%rbx), %r13
movq 0x10(%r14), %r15
movq %r15, (%r12,%rbx)
leaq (%r12,%rbx), %rdi
addq $0x8, %rdi
movq (%r14), %rsi
addq $0x7, %r15
shrq $0x3, %r15
movq %r15, %rdx
callq 0x2130
cmpq $0x0, 0x8(%r14)
setne 0x8(%r15,%r13)
movb 0x148(%r14), %al
movb %al, 0x9(%r15,%r13)
jmp 0x7930
movq 0x10(%r14), %r15
addq $0x7, %r15
shrq $0x3, %r15
leaq (%rbx,%r15), %rax
addq $0xa, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/maandree[P]libkeccak/hmac/libkeccak_hmac_set_key.c
// Function: libkeccak_hmac_set_key
int
libkeccak_hmac_set_key(struct libkeccak_hmac_state *restrict state, const void *restrict key, size_t key_length)
{
	size_t i, size, new_key_length, key_bytes;
	void *new;

	size = (size_t)(state->sponge.r) > key_length ? (size_t)(state->sponge.r) : key_length;
	new_key_length = size;
	size = (size + 7) >> 3;
	key_bytes = (key_length + 7) >> 3;

	if (size != key_bytes) {
		new = realloc(state->key_opad, 2 * size);
		if (!new)
			return -1;
		state->key_opad = new;
		state->key_ipad = state->key_opad + size;
	}

	memcpy(state->key_opad, key, key_bytes);
	if (key_length & 7)
		state->key_opad[(key_bytes >> 3) - 1] &= (unsigned char)((1 << (key_length & 7)) - 1);

	if ((size_t)(state->sponge.r) > key_length)
		__builtin_memset(state->key_opad + key_bytes, 0, size - key_bytes);

	for (i = 0; i < size; i++) {
		state->key_ipad[i] = state->key_opad[i] ^ HMAC_INNER_PAD;
		state->key_opad[i] ^= HMAC_OUTER_PAD;
	}

	state->key_length = new_key_length;

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r15
movq %rdi, (%rsp)
movq (%rdi), %r14
movq 0xe0(%rdi), %rbp
cmpq %rdx, %rbp
movq %rdx, %rax
cmovaq %rbp, %rax
movq %rax, 0x20(%rsp)
leaq 0x7(%rax), %r13
movq %r13, 0x18(%rsp)
shrq $0x3, %r13
leaq 0x7(%rdx), %rbx
movq %rbx, %r12
shrq $0x3, %r12
movq %r13, %rax
subq %r12, %rax
movq %rax, 0x10(%rsp)
je 0x7a17
movq %rsi, 0x8(%rsp)
leaq (,%r13,2), %rsi
movq %r14, %rdi
callq 0x2180
testq %rax, %rax
je 0x7a9c
movq %rax, %r14
movq (%rsp), %rcx
movq %rax, (%rcx)
addq %r13, %rax
movq %rax, 0x8(%rcx)
movq 0x8(%rsp), %rsi
movq %r14, %rdi
movq %r12, %rdx
callq 0x2130
movq %r15, %rcx
andq $0x7, %rcx
je 0x7a3a
movb $-0x1, %al
shlb %cl, %al
notb %al
shrq $0x6, %rbx
andb %al, -0x1(%r14,%rbx)
cmpq %r15, %rbp
jbe 0x7a51
addq %r14, %r12
movq %r12, %rdi
xorl %esi, %esi
movq 0x10(%rsp), %rdx
callq 0x20e0
cmpq $0x8, 0x18(%rsp)
movq (%rsp), %rsi
jb 0x7a82
movq 0x8(%rsi), %rax
cmpq $0x1, %r13
adcq $0x0, %r13
xorl %ecx, %ecx
movb (%r14,%rcx), %dl
xorb $0x36, %dl
movb %dl, (%rax,%rcx)
xorb $0x5c, (%r14,%rcx)
incq %rcx
cmpq %rcx, %r13
jne 0x7a6b
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsi)
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x7a8d
nop
// File: /workspace/github_c_makefile_star2_O3/maandree[P]libkeccak/hmac/libkeccak_hmac_unmarshal.c
// Function: libkeccak_hmac_unmarshal
size_t
libkeccak_hmac_unmarshal(struct libkeccak_hmac_state *restrict state, const void *restrict data_)
{
	const unsigned char *restrict data = data_;
	size_t parsed, size, i;

	state->key_opad = NULL;
	state->key_ipad = NULL;

	parsed = libkeccak_state_unmarshal(state ? &state->sponge : NULL, data);
	if (!parsed)
		return 0;
	data += parsed;

	__builtin_memcpy(&size, data, sizeof(size));
	data += sizeof(size_t);
	if (state)
		size = state->key_length;
	size = (state->key_length + 7) >> 3;

	if (state) {
		state->key_opad = malloc(2 * size);
		if (!state->key_opad) {
			libkeccak_state_destroy(&state->sponge);
			return 0;
		}
		memcpy(state->key_opad, data, size);
		data += size;

		if (data[0]) {
			state->key_ipad = &state->key_opad[size];
			memcpy(state->key_ipad, state->key_opad, size);
			for (i = 0; i < size; i++)
				state->key_ipad[i] ^= (char)(HMAC_OUTER_PAD ^ HMAC_INNER_PAD);
		}

		state->leftover = data[1];
		state->buffer = NULL;
		state->buffer_size = 0;
	}

	return parsed + sizeof(size_t) + size + 2 * sizeof(char);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x18(%rdi), %r12
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %r12, %rdi
callq 0x21f0
movq %rax, (%rsp)
testq %rax, %rax
je 0x7b8a
movq 0x10(%rbx), %r14
addq $0x7, %r14
movq %r14, %r15
shrq $0x3, %r15
leaq (%r15,%r15), %rdi
callq 0x2160
movq %rax, (%rbx)
testq %rax, %rax
je 0x7b6b
movq %rax, %rbp
movq (%rsp), %rax
leaq (%rax,%r13), %r12
addq $0x8, %r12
addq %rax, %r13
movq %rbp, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x2130
cmpb $0x0, 0x8(%r15,%r13)
je 0x7b49
addq %r15, %rbp
movq %rbp, 0x8(%rbx)
movq %rbp, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x2130
cmpq $0x8, %r14
jb 0x7b49
xorl %eax, %eax
movq 0x8(%rbx), %rcx
xorb $0x6a, (%rcx,%rax)
incq %rax
cmpq %rax, %r15
jne 0x7b39
movb 0x1(%r12,%r15), %al
movb %al, 0x148(%rbx)
movq (%rsp), %rax
addq %r15, %rax
addq $0xa, %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x138(%rbx)
jmp 0x7b8c
movq %r12, %rdi
callq 0x2120
movq 0x130(%rbx), %rdi
callq 0x2040
movq $0x0, 0x130(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/maandree[P]libkeccak/hmac/libkeccak_hmac_update.c
// Function: libkeccak_hmac_update
int
libkeccak_hmac_update(struct libkeccak_hmac_state *restrict state, const void *restrict msg_, size_t msglen)
{
	const unsigned char *restrict msg = msg_;
	size_t i;
	int n, cn, r;

	if (state->key_ipad) {
		if (libkeccak_update(&state->sponge, state->key_ipad, state->key_length >> 3) < 0)
			return -1;
		if (state->key_length & 7)
			state->leftover = state->key_ipad[state->key_length >> 3];
		state->key_ipad = NULL;
	}

	if (!msg || !msglen)
		return 0;

	if (!(state->key_length & 7))
		return libkeccak_update(&state->sponge, msg, msglen);

	if (msglen != state->buffer_size) {
		free(state->buffer);
		state->buffer = malloc(state->buffer_size = msglen);
		if (!state->buffer)
			return -1;
	}

	n = (int)(state->key_length & 7);
	cn = 8 - n;
	for (i = 1; i < msglen; i++)
		state->buffer[i] = (unsigned char)((msg[i - 1] >> cn) | (msg[i] << n));
	state->buffer[0] = (unsigned char)((state->leftover & ((1 << n) - 1)) | (msg[0] << n));
	state->leftover = (unsigned char)(msg[msglen - 1] >> cn);

	r = libkeccak_update(&state->sponge, state->buffer, msglen);
	my_explicit_bzero(state->buffer, msglen);
	return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x8(%rdi), %rsi
testq %rsi, %rsi
je 0x7bf0
leaq 0x18(%r14), %rdi
movq 0x10(%r14), %rdx
shrq $0x3, %rdx
callq 0x2170
testl %eax, %eax
js 0x7cf1
movq 0x10(%r14), %rax
testb $0x7, %al
je 0x7be8
movq 0x8(%r14), %rcx
shrq $0x3, %rax
movb (%rcx,%rax), %al
movb %al, 0x148(%r14)
movq $0x0, 0x8(%r14)
testq %r15, %r15
sete %cl
testq %rbx, %rbx
sete %dl
xorl %eax, %eax
orb %cl, %dl
jne 0x7cf6
movq 0x10(%r14), %rax
testb $0x7, %al
je 0x7d01
cmpq %rbx, 0x140(%r14)
je 0x7c4a
movq 0x138(%r14), %rdi
callq 0x2040
movq %rbx, 0x140(%r14)
movq %rbx, %rdi
callq 0x2160
movq %rax, 0x138(%r14)
testq %rax, %rax
je 0x7cf1
movq 0x10(%r14), %rax
andl $0x7, %eax
movl $0x8, %edx
subl %eax, %edx
cmpq $0x2, %rbx
jb 0x7c89
movl $0x1, %esi
movzbl -0x1(%r15,%rsi), %edi
movl %edx, %ecx
shrl %cl, %edi
movzbl (%r15,%rsi), %r8d
movl %eax, %ecx
shll %cl, %r8d
orl %edi, %r8d
movq 0x138(%r14), %rcx
movb %r8b, (%rcx,%rsi)
incq %rsi
cmpq %rsi, %rbx
jne 0x7c5f
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl %eax, %ecx
shll %cl, %esi
movzbl 0x148(%r14), %ecx
notl %esi
andl %ecx, %esi
movzbl (%r15), %edi
movl %eax, %ecx
shll %cl, %edi
orl %esi, %edi
movq 0x138(%r14), %rax
movb %dil, (%rax)
movzbl -0x1(%r15,%rbx), %eax
movl %edx, %ecx
shrl %cl, %eax
movb %al, 0x148(%r14)
leaq 0x18(%r14), %rdi
movq 0x138(%r14), %rsi
movq %rbx, %rdx
callq 0x2170
movl %eax, %ebp
movq 0x138(%r14), %rdi
movq 0x442a(%rip), %rax      # 0xc110
xorl %esi, %esi
movq %rbx, %rdx
callq *%rax
movl %ebp, %eax
jmp 0x7cf6
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
addq $0x18, %r14
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2170
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/maandree[P]libkeccak/spec/../libkeccak/keccak.h
// Function: libkeccak_spec_check
inline int
libkeccak_spec_check(const struct libkeccak_spec *spec)
{
	unsigned long int state_size = (unsigned long int)(spec->capacity + spec->bitrate);
	uint32_t word_size = (uint32_t)(state_size / 25U);

	if (spec->bitrate <= 0)  return LIBKECCAK_SPEC_ERROR_BITRATE_NONPOSITIVE;
	if (spec->bitrate % 8)   return LIBKECCAK_SPEC_ERROR_BITRATE_MOD_8;
	if (spec->capacity <= 0) return LIBKECCAK_SPEC_ERROR_CAPACITY_NONPOSITIVE;
	if (spec->capacity % 8)  return LIBKECCAK_SPEC_ERROR_CAPACITY_MOD_8;
	if (spec->output <= 0)   return LIBKECCAK_SPEC_ERROR_OUTPUT_NONPOSITIVE;
	if (state_size > 1600)   return LIBKECCAK_SPEC_ERROR_STATE_TOO_LARGE;
	if (state_size % 25)     return LIBKECCAK_SPEC_ERROR_STATE_MOD_25;
	if (word_size % 8)       return LIBKECCAK_SPEC_ERROR_WORD_MOD_8;

	if ((word_size & -word_size) != word_size)
		return LIBKECCAK_SPEC_ERROR_WORD_NON_2_POTENT;

	return 0;
}

// Assembly:
movq (%rdi), %r8
movq 0x8(%rdi), %rsi
leaq (%r8,%rsi), %rcx
movabsq $0x47ae147ae147ae15, %rdx # imm = 0x47AE147AE147AE15
movq %rcx, %rax
mulq %rdx
testq %r8, %r8
jle 0x8058
movl $0x2, %eax
testb $0x7, %r8b
je 0x805e
retq
movl $0x1, %eax
retq
testq %rsi, %rsi
jle 0x80be
movl $0x4, %eax
testb $0x7, %sil
jne 0x8057
cmpq $0x0, 0x10(%rdi)
jle 0x80c4
movl $0x6, %eax
cmpq $0x640, %rcx            # imm = 0x640
ja 0x8057
imull $0x5c29, %ecx, %eax     # imm = 0x5C29
movzwl %ax, %esi
movl $0x7, %eax
cmpl $0xa3d, %esi            # imm = 0xA3D
ja 0x8057
subq %rdx, %rcx
shrq %rcx
addq %rdx, %rcx
shrq $0x4, %rcx
movl $0x9, %eax
testb $0x7, %cl
jne 0x8057
leal 0x7f(%rcx), %edx
xorl %eax, %eax
testl %ecx, %edx
setne %al
shll $0x3, %eax
retq
movl $0x3, %eax
retq
movl $0x5, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O3/teodorst[P]app-huffman/huffman_decodification_mpi.c
// Function: main
int main (int argc, char* argv[]) {
	
	MPI_Init (&argc, &argv);

	if (argc == 4) {
		huffman_decompress(argv[INPUT_FILE], argv[OUTPUT_FILE], argv[CODIFICATION]);
	}
	else {
		printf("Bad arguments\n");
		printf("Usage huffman_serial operation[compress/decompress] input_file ouput_file codification_file_name\n");
		MPI_Finalize();
		return 1;
	}
	MPI_Finalize();
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
leaq -0x14(%rbp), %rbx
movl %edi, (%rbx)
leaq -0x10(%rbp), %rax
movq %rsi, (%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10f0
cmpl $0x4, (%rbx)
jne 0x180b
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
callq 0x1359
xorl %ebx, %ebx
jmp 0x1828
leaq 0x184b(%rip), %rdi      # 0x305d
callq 0x1080
leaq 0x184d(%rip), %rdi      # 0x306b
callq 0x1080
movl $0x1, %ebx
callq 0x11a0
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/ikbenlike[P]nngutils/src/tac.c
// Function: parse_arg
struct tac_args *parse_arg(struct tac_args *args, int argc, char **argv){
    args->files = calloc(1, sizeof(char*) * argc);
    args->nfiles = 0;
    for(int i = 1; i < argc; i++){
        if(argv[i][0] == '-'){
            if(!strcmp(argv[i], "-b")){
                args->before = true;
            }
            else if(!strcmp(argv[i], "-r")){
                args->regex = true;
            }
            else if(!strcmp(argv[i], "-s")){
                args->separator = true;
                if(i + 1 < argc){
                    args->sep = argv[++i];
                }
                else {
                    fprintf(stderr, "%s: missing operand after '-s'\n");
                    exit(1);
                }
           }
        }
        else {

        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movl %esi, %r14d
movq %rdi, %r15
movslq %esi, %r12
leaq (,%r12,8), %rsi
movl $0x1, %edi
callq 0x1030
movq %rax, 0x10(%r15)
movl $0x0, 0x18(%r15)
cmpl $0x2, %r12d
jl 0x1227
movl $0x1, %eax
movslq %eax, %rcx
movq (%rbx,%rcx,8), %rcx
cmpb $0x2d, (%rcx)
jne 0x1220
cmpb $0x62, 0x1(%rcx)
jne 0x11e4
cmpb $0x0, 0x2(%rcx)
je 0x1215
cmpb $0x72, 0x1(%rcx)
jne 0x11f0
cmpb $0x0, 0x2(%rcx)
je 0x121b
cmpb $0x73, 0x1(%rcx)
jne 0x1220
cmpb $0x0, 0x2(%rcx)
jne 0x1220
movb $0x1, 0x2(%r15)
incl %eax
cmpl %r14d, %eax
jge 0x1230
movslq %eax, %rcx
movq (%rbx,%rcx,8), %rcx
movq %rcx, 0x8(%r15)
jmp 0x1220
movb $0x1, (%r15)
jmp 0x1220
movb $0x1, 0x1(%r15)
incl %eax
cmpl %r14d, %eax
jl 0x11cc
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x1070
// File: /workspace/github_c_makefile_star2_O3/arachsys[P]containers/console.c
// Function: getconsole
int getconsole(void) {
  int master, null;

  if ((null = open("/dev/null", O_RDWR)) < 0)
    errx(EXIT_FAILURE, "Failed to open /dev/null");

  if (fcntl(STDIN_FILENO, F_GETFD) < 0)
    dup2(null, STDIN_FILENO);
  if (fcntl(STDOUT_FILENO, F_GETFD) < 0)
    dup2(null, STDOUT_FILENO);
  if (fcntl(STDERR_FILENO, F_GETFD) < 0)
    dup2(null, STDERR_FILENO);

  if (null != STDIN_FILENO)
    if (null != STDOUT_FILENO)
      if (null != STDERR_FILENO)
        close(null);

  if ((master = posix_openpt(O_RDWR | O_NOCTTY)) < 0)
    errx(EXIT_FAILURE, "Failed to allocate a console pseudo-terminal");
  grantpt(master);
  unlockpt(master);
  return master;
}

// Assembly:
pushq %rbx
leaq 0x28e8(%rip), %rdi      # 0x5368
movl $0x2, %esi
xorl %eax, %eax
callq 0x23e0
testl %eax, %eax
js 0x2b21
movl %eax, %ebx
xorl %edi, %edi
movl $0x1, %esi
xorl %eax, %eax
callq 0x20e0
testl %eax, %eax
jns 0x2ab1
movl %ebx, %edi
xorl %esi, %esi
callq 0x21c0
movl $0x1, %edi
movl $0x1, %esi
xorl %eax, %eax
callq 0x20e0
testl %eax, %eax
jns 0x2ad2
movl %ebx, %edi
movl $0x1, %esi
callq 0x21c0
movl $0x2, %edi
movl $0x1, %esi
xorl %eax, %eax
callq 0x20e0
testl %eax, %eax
jns 0x2af3
movl %ebx, %edi
movl $0x2, %esi
callq 0x21c0
cmpl $0x3, %ebx
jb 0x2aff
movl %ebx, %edi
callq 0x2210
movl $0x102, %edi            # imm = 0x102
callq 0x2490
testl %eax, %eax
js 0x2b2a
movl %eax, %ebx
movl %eax, %edi
callq 0x2430
movl %ebx, %edi
callq 0x2270
movl %ebx, %eax
popq %rbx
retq
leaq 0x2831(%rip), %rsi      # 0x5359
jmp 0x2b31
leaq 0x2841(%rip), %rsi      # 0x5372
movl $0x1, %edi
xorl %eax, %eax
callq 0x21b0
// File: /workspace/github_c_makefile_star2_O3/arachsys[P]containers/console.c
// Function: setconsole
void setconsole(char *name) {
  int console;
  struct termios termios;

  setsid();

  if ((console = open(name, O_RDWR)) < 0)
    errx(EXIT_FAILURE, "Failed to open console in container");
  ioctl(console, TIOCSCTTY, NULL);

  if (tcgetattr(console, &termios) < 0)
    err(EXIT_FAILURE, "tcgetattr");
  termios.c_iflag |= IGNBRK | IUTF8;
  tcsetattr(console, TCSANOW, &termios);

  dup2(console, STDIN_FILENO);
  dup2(console, STDOUT_FILENO);
  dup2(console, STDERR_FILENO);
  if (console != STDIN_FILENO)
    if (console != STDOUT_FILENO)
      if (console != STDERR_FILENO)
        close(console);
}

// Assembly:
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
callq 0x2230
movq %rbx, %rdi
movl $0x2, %esi
xorl %eax, %eax
callq 0x23e0
testl %eax, %eax
js 0x2bc6
movl %eax, %ebx
movl $0x540e, %esi           # imm = 0x540E
movl %eax, %edi
xorl %edx, %edx
xorl %eax, %eax
callq 0x2200
leaq 0x4(%rsp), %rsi
movl %ebx, %edi
callq 0x23c0
testl %eax, %eax
js 0x2bd9
leaq 0x4(%rsp), %rdx
orl $0x4001, (%rdx)         # imm = 0x4001
movl %ebx, %edi
xorl %esi, %esi
callq 0x23d0
movl %ebx, %edi
xorl %esi, %esi
callq 0x21c0
movl %ebx, %edi
movl $0x1, %esi
callq 0x21c0
movl %ebx, %edi
movl $0x2, %esi
callq 0x21c0
cmpl $0x3, %ebx
jb 0x2bc0
movl %ebx, %edi
callq 0x2210
addq $0x40, %rsp
popq %rbx
retq
leaq 0x27d2(%rip), %rsi      # 0x539f
movl $0x1, %edi
xorl %eax, %eax
callq 0x21b0
leaq 0x27e3(%rip), %rsi      # 0x53c3
movl $0x1, %edi
xorl %eax, %eax
callq 0x2310
// File: /workspace/github_c_makefile_star2_O3/arachsys[P]containers/mount.c
// Function: bindnode
static void bindnode(char *src, char *dst) {
  int fd;

  if ((fd = open(dst, O_WRONLY | O_CREAT, 0600)) >= 0)
    close(fd);
  if (mount(src, dst, NULL, MS_BIND, NULL) < 0)
    errx(EXIT_FAILURE, "Failed to bind %s into new /dev filesystem", src);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
movl $0x41, %esi
movl $0x180, %edx            # imm = 0x180
xorl %eax, %eax
callq 0x23e0
testl %eax, %eax
js 0x3d52
movl %eax, %edi
callq 0x2210
movl $0x1000, %ecx           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x2180
testl %eax, %eax
js 0x3d73
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x1a2f(%rip), %rsi      # 0x57a9
movl $0x1, %edi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x21b0
// File: /workspace/github_c_makefile_star2_O3/arachsys[P]containers/mount.c
// Function: enterroot
void enterroot(void) {
  if (syscall(__NR_pivot_root, ".", "dev/tmp") < 0)
    errx(EXIT_FAILURE, "Failed to pivot into new root filesystem");

  if (chdir("/dev/tmp") >= 0) {
    while (*root == '/')
      root++;
    rmdir(root);
  }

  root = NULL;

  if (chdir("/") < 0 || umount2("/dev/tmp", MNT_DETACH) < 0)
    errx(EXIT_FAILURE, "Failed to detach old root filesystem");
  else
    rmdir("/dev/tmp");
}

// Assembly:
pushq %rax
leaq 0x193f(%rip), %rsi      # 0x56d0
leaq 0x1964(%rip), %rdx      # 0x56fc
movl $0x9b, %edi
xorl %eax, %eax
callq 0x22a0
testq %rax, %rax
js 0x3e21
leaq 0x194b(%rip), %rdi      # 0x56fb
callq 0x2190
testl %eax, %eax
js 0x3ddb
movq 0x44f8(%rip), %rdi      # 0x82b8
cmpb $0x2f, (%rdi)
jne 0x3dd6
cmpb $0x2f, 0x1(%rdi)
leaq 0x1(%rdi), %rdi
je 0x3dc5
movq %rdi, 0x44e2(%rip)      # 0x82b8
callq 0x2160
movq $0x0, 0x44d2(%rip) # 0x82b8
leaq 0x1917(%rip), %rdi      # 0x5704
callq 0x2190
testl %eax, %eax
js 0x3e18
leaq 0x18fe(%rip), %rdi      # 0x56fb
movl $0x2, %esi
callq 0x2120
testl %eax, %eax
js 0x3e18
leaq 0x18e9(%rip), %rdi      # 0x56fb
popq %rax
jmp 0x2160
leaq 0x18e7(%rip), %rsi      # 0x5706
jmp 0x3e28
leaq 0x18aa(%rip), %rsi      # 0x56d2
movl $0x1, %edi
xorl %eax, %eax
callq 0x21b0
// File: /workspace/github_c_makefile_star2_O3/arachsys[P]containers/mount.c
// Function: mountproc
void mountproc(void) {
  mode_t mask;

  mask = umask(0);
  mkdir("proc" , 0755);
  umask(mask);

  if (mount("proc", "proc", "proc", 0, NULL) < 0)
    errx(EXIT_FAILURE, "Failed to mount /proc in new root filesystem");
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
xorl %edi, %edi
callq 0x22c0
movl %eax, %ebx
leaq 0x18e3(%rip), %r14      # 0x572b
movq %r14, %rdi
movl $0x1ed, %esi            # imm = 0x1ED
callq 0x20b0
movl %ebx, %edi
callq 0x22c0
movq %r14, %rdi
movq %r14, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2180
testl %eax, %eax
js 0x3e7b
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x18ae(%rip), %rsi      # 0x5730
movl $0x1, %edi
xorl %eax, %eax
callq 0x21b0
// File: /workspace/github_c_makefile_star2_O3/arachsys[P]containers/mount.c
// Function: mountsys
void mountsys(void) {
  mode_t mask;

  mask = umask(0);
  mkdir("sys" , 0755);
  umask(mask);

  if (mount("sysfs", "sys", "sysfs", 0, NULL) < 0)
    errx(EXIT_FAILURE, "Failed to mount /sys in new root filesystem");
  mount("cgroup2", "sys/fs/cgroup", "cgroup2", 0, NULL);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
xorl %edi, %edi
callq 0x22c0
movl %eax, %ebx
leaq 0x18bb(%rip), %r14      # 0x575d
movq %r14, %rdi
movl $0x1ed, %esi            # imm = 0x1ED
callq 0x20b0
movl %ebx, %edi
callq 0x22c0
leaq 0x18a4(%rip), %rdi      # 0x5761
movq %r14, %rsi
movq %rdi, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2180
testl %eax, %eax
js 0x3ef3
leaq 0x18c3(%rip), %rsi      # 0x579b
leaq 0x18b4(%rip), %rdi      # 0x5793
movq %rdi, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2180
leaq 0x186d(%rip), %rsi      # 0x5767
movl $0x1, %edi
xorl %eax, %eax
callq 0x21b0
nop
// File: /workspace/github_c_makefile_star2_O3/simh[P]simtools/converters/mksimtape/mksimtape.c
// Function: tape_mark
static BOOL tape_mark(VOID)
{	INT n;
	UCHAR sbuf[4] = { 0,0,0,0 };

	n = fwrite(sbuf, 1, 4, stdout);
	if(n != 4) {
		error("Error writing to tape image");
		return(FALSE);
	}

	return(TRUE);
}

// Assembly:
pushq %rax
leaq 0x4(%rsp), %rdi
movl $0x0, (%rdi)
movq 0x29dd(%rip), %rax      # 0x3fd0
movq (%rax), %rcx
movl $0x1, %esi
movl $0x4, %edx
callq 0x1110
cmpl $0x4, %eax
jne 0x160c
popq %rax
retq
leaq 0xabd(%rip), %rdi       # 0x20d0
xorl %eax, %eax
popq %rcx
jmp 0x1130
// File: /workspace/github_c_makefile_star2_O3/CheneyThinker[P]jbyte/src/jbyte_attribute.c
// Function: InnerClasses_attribute
void InnerClasses_attribute(FILE* pReadFile) {
  PRINTF_U2(number_of_classes)
  if (number_of_classes > 0) {
    for (u2 number_of_classes_index = 0; number_of_classes_index < number_of_classes; number_of_classes_index++) {
      PRINTF_U2(inner_class_info_index)
      PRINTF_U2(outer_class_info_index)
      PRINTF_U2(inner_name_index)
      PRINTF_U2(inner_class_access_flags)
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq -0x32(%rbp), %r14
movl $0x1, %esi
movl $0x2, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x1080
movzwl (%r14), %r14d
movl %r14d, %r15d
rolw $0x8, %r15w
movzwl %r15w, %esi
leaq 0x5635(%rip), %rdi      # 0x959d
xorl %eax, %eax
callq 0x10b0
testw %r14w, %r14w
je 0x4057
cmpw $0x2, %r15w
movl $0x1, %r14d
cmovael %r15d, %r14d
leaq 0x5663(%rip), %r15      # 0x95f2
leaq -0x2a(%rbp), %r12
leaq 0x5670(%rip), %r13      # 0x960a
movl $0x1, %esi
movl $0x2, %edx
leaq -0x30(%rbp), %rdi
movq %rbx, %rcx
callq 0x1080
movzwl -0x30(%rbp), %eax
rolw $0x8, %ax
movzwl %ax, %esi
leaq 0x55f4(%rip), %rdi      # 0x95b6
xorl %eax, %eax
callq 0x10b0
movl $0x1, %esi
movl $0x2, %edx
leaq -0x2e(%rbp), %rdi
movq %rbx, %rcx
callq 0x1080
movzwl -0x2e(%rbp), %eax
rolw $0x8, %ax
movzwl %ax, %esi
leaq 0x55e3(%rip), %rdi      # 0x95d4
xorl %eax, %eax
callq 0x10b0
movl $0x1, %esi
movl $0x2, %edx
leaq -0x2c(%rbp), %rdi
movq %rbx, %rcx
callq 0x1080
movzwl -0x2c(%rbp), %eax
rolw $0x8, %ax
movzwl %ax, %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x10b0
movl $0x1, %esi
movl $0x2, %edx
movq %r12, %rdi
movq %rbx, %rcx
callq 0x1080
movzwl -0x2a(%rbp), %eax
rolw $0x8, %ax
movzwl %ax, %esi
movq %r13, %rdi
xorl %eax, %eax
callq 0x10b0
decw %r14w
jne 0x3f9a
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/CheneyThinker[P]jbyte/src/jbyte_attribute.c
// Function: SourceDebugExtension_attribute
void SourceDebugExtension_attribute(FILE* pReadFile, u4 attribute_length) {
  u1 debug_extension[attribute_length];
  for (u4 attribute_length_index = 0; attribute_length_index < attribute_length; attribute_length_index++) {
    fread(&debug_extension[attribute_length_index], 1, sizeof(u1), pReadFile);
    printf("debug_extension[%04x]: %02x\n", attribute_length_index, debug_extension[attribute_length_index]);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %r12d
movq %rsp, %r13
leaq 0xf(%r12), %rax
andq $-0x10, %rax
subq %rax, %r13
movq %r13, %rsp
testl %esi, %esi
je 0x41c5
movq %rdi, %rbx
leaq 0x54dc(%rip), %r14      # 0x966d
xorl %r15d, %r15d
leaq (%r15,%r13), %rdi
movl $0x1, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1080
movzbl (%r13,%r15), %edx
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x10b0
incq %r15
cmpq %r15, %r12
jne 0x4194
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq