LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/deepika9294[P]Threading-Library/many-one/queue.c
// Function: dequeue
dthread* dequeue(queue *t) {
    //check if the queue is empty
     if(t->count == 0 ) {
        return NULL;
     }
    dthread *td = t->head->td;
    t->head = t->head->next;
    t->count = t->count - 1;
    //check if the new head is null or not , if yes then change the tail
    if(t->head == NULL) {
        t->tail = NULL;
    }
    return(td);
}

// Assembly:
movl 0x10(%rdi), %ecx
testl %ecx, %ecx
je 0x183f
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rdx
movq (%rdx), %rax
movq 0x8(%rdx), %rdx
movq %rdx, (%rdi)
decl %ecx
movl %ecx, 0x10(%rdi)
testq %rdx, %rdx
jne 0x183d
movq $0x0, 0x8(%rdi)
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/deepika9294[P]Threading-Library/many-one/queue.c
// Function: show
void show(queue *t) {
    node *ptr;
    if(t->head == NULL) {
        printf("\nEmpty");
        return;
    }
    ptr = t->head;
    while(ptr != NULL) {
        printf("\nTID: %ld", ptr->td->tid);
        ptr = ptr->next;
    }
    printf("\nTOTAL: %d",t->count);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq (%rdi), %r15
testq %r15, %r15
je 0x1892
movq %rdi, %rbx
leaq 0x7be(%rip), %r14       # 0x201c
movq (%r15), %rax
movq (%rax), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x1080
movq 0x8(%r15), %r15
testq %r15, %r15
jne 0x185e
movl 0x10(%rbx), %esi
leaq 0x7a5(%rip), %rdi       # 0x2026
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1080
leaq 0x77c(%rip), %rdi       # 0x2015
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1080
// File: /workspace/github_c_makefile_star2_O1/deepika9294[P]Threading-Library/many-one/queue.c
// Function: get_node_by_tid
dthread* get_node_by_tid(queue *t, dthread_t tid) {
    node *temp;
    dthread *td;
    if(t->head == NULL) {
        return NULL;
    }
    temp = t->head;
    while(temp != NULL) {
        if(tid == temp->td->tid) {
            return temp->td;
        }
        else {
            temp = temp->next;
        }
    }
    return NULL;
}

// Assembly:
movq (%rdi), %rcx
testq %rcx, %rcx
je 0x18cb
pushq %rbp
movq %rsp, %rbp
movq (%rcx), %rax
cmpq %rsi, (%rax)
je 0x18c9
movq 0x8(%rcx), %rcx
testq %rcx, %rcx
jne 0x18b6
xorl %eax, %eax
popq %rbp
retq
xorl %eax, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O1/deepika9294[P]Threading-Library/many-one/test/methods.c
// Function: deadlock
void* deadlock(void *args) {
    
    int d  = dthread_join(t1[2], NULL);

    check = testing(d,EDEADLK);
    if(check == 0) {
        printf(RED "**FAILED**: Deadlock Join test\n" NONE);
    }
    else {
        printf(GREEN "**PASSED**: Deadlock join test\n" NONE);
    }
    return (void *)(intptr_t)(d);

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0x27ff(%rip), %rdi      # 0x4100
xorl %esi, %esi
callq 0x166e
movl %eax, %ebx
cmpl $0x23, %eax
leaq 0x74a(%rip), %rax       # 0x205e
leaq 0x716(%rip), %rdi       # 0x2031
cmoveq %rax, %rdi
xorl %eax, %eax
callq 0x1080
movslq %ebx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/deepika9294[P]Threading-Library/many-one/test/methods.c
// Function: exit_control
void* exit_control(void *args) {
    counter++;
    dthread_exit(NULL);
    counter++;
    return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
incl 0x27f4(%rip)            # 0x4140
xorl %edi, %edi
callq 0x16d5
incl 0x27e7(%rip)            # 0x4140
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_1/exercise_1_23/c_remove_comments.c
// Function: main
int main(void)
{
  /**
   * This is multiline
   * block
   * comment.
  */

  char str[MAXSTR];
  char no_com_str[MAXSTR];

  get_str(str, MAXSTR);

  remove_comments(str, no_com_str);

  printf("%s", no_com_str);

  return 0;
}

// Assembly:
pushq %rbx
subq $0x4e20, %rsp           # imm = 0x4E20
xorl %ebx, %ebx
callq 0x1040
cmpl $-0x1, %eax
je 0x1174
movb %al, (%rsp,%rbx)
incq %rbx
cmpq $0x270f, %rbx           # imm = 0x270F
jne 0x1156
movl $0x270f, %ebx           # imm = 0x270F
movl %ebx, %eax
movb $0x0, (%rsp,%rax)
movq %rsp, %rdi
leaq 0x2710(%rsp), %rbx
movq %rbx, %rsi
callq 0x11f3
leaq 0xe70(%rip), %rdi       # 0x2004
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1030
xorl %eax, %eax
addq $0x4e20, %rsp           # imm = 0x4E20
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_1/exercise_1_23/c_remove_comments.c
// Function: get_str
int get_str(char str[], int limit)
{
  int c, i = 0;

  while (i < limit - 1 && (c = getchar()) != EOF)
  {
    str[i++] = c;
  }
  str[i] = '\0';

  return i;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
cmpl $0x2, %esi
jl 0x11de
movl %esi, %ebp
decl %ebp
movl %ebp, %r15d
xorl %r14d, %r14d
callq 0x1040
cmpl $-0x1, %eax
je 0x11de
movb %al, (%rbx,%r14)
incq %r14
cmpq %r14, %r15
jne 0x11c5
movl %ebp, %r14d
movl %r14d, %eax
movb $0x0, (%rbx,%rax)
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_1/exercise_1_23/c_remove_comments.c
// Function: remove_comments
void remove_comments(char str[], char no_com_str[])
{
  int in_quote = FALSE;
  int line_comment = FALSE;
  int block_comment = FALSE;

  int i = 0, j = 0;
  while (str[i] != '\0')
  {
    if (!block_comment)
    {
      if (!in_quote && str[i] == '"')
    {
      in_quote = TRUE;
    }
    else if (in_quote && str[i] == '"')
    {
      in_quote = FALSE;
    }
    }

    if (!in_quote)
    {
      if (str[i] == '/' && str[i + 1] == '*' && !line_comment)
      {
        block_comment = TRUE;
      }

      if (str[i] == '*' && str[i + 1] == '/')
      {
        block_comment = FALSE;
        i += 2;
      }

      if (str[i] == '/' && str[i + 1] == '/')
      {
        line_comment = TRUE;
      }

      if (str[i] == '\n')
      {
        line_comment = FALSE;
      }

      if (line_comment || block_comment)
      {
        ++i;
      }
      else if (!line_comment || !block_comment)
      {
        no_com_str[j++] = str[i++];
      }
    }
    else
    {
      no_com_str[j++] = str[i++];
    }
  }

  no_com_str[j] = '\0';
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
movb (%rdi), %bl
xorl %eax, %eax
testb %bl, %bl
je 0x12d3
movl $0x1, %ecx
movq %rdi, %r14
xorl %edx, %edx
xorl %r8d, %r8d
xorl %r10d, %r10d
xorl %r9d, %r9d
xorl %r11d, %r11d
movl %r11d, %ebp
testl %r11d, %r11d
setne %r11b
cmpb $0x22, %bl
sete %r15b
xorb %r11b, %r15b
testl %r10d, %r10d
movzbl %r15b, %r11d
cmovnel %ebp, %r11d
testl %r11d, %r11d
je 0x1244
movl %r10d, %ebp
jmp 0x12ac
cmpb $0x2f, %bl
jne 0x125e
testl %r9d, %r9d
movl $0x1, %ebp
cmovnel %r10d, %ebp
cmpb $0x2a, 0x1(%r14)
cmovel %ebp, %r10d
cmpb $0x2a, %bl
jne 0x1277
cmpb $0x2f, 0x1(%r14)
cmovel %eax, %r10d
leal 0x2(%r8), %ebx
cmovnel %r8d, %ebx
movl %ebx, %r8d
movslq %r8d, %r14
movb (%rdi,%r14), %bl
cmpb $0x2f, %bl
jne 0x128d
cmpb $0x2f, 0x1(%rdi,%r14)
cmovel %ecx, %r9d
xorl %ebp, %ebp
cmpb $0xa, %bl
movl %r9d, %r14d
cmovel %ebp, %r14d
movl %r14d, %r9d
orl %r10d, %r9d
movl $0x0, %r9d
je 0x12ac
movl %r14d, %r9d
jmp 0x12b8
movslq %edx, %r10
incl %edx
movb %bl, (%rsi,%r10)
movl %ebp, %r10d
movslq %r8d, %r8
leaq (%rdi,%r8), %r14
incq %r14
incq %r8
movb (%r14), %bl
testb %bl, %bl
jne 0x121b
movslq %edx, %rax
movb $0x0, (%rsi,%rax)
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/aes256otrsv3/ref/OTR.c
// Function: Setup
int Setup(const uint8 *skey)
{
	uint8 cst[16] = {0};

	KeySchedule(KeyLen, ENC, skey);
	Encryption(KeyLen, cst, Q); // Q = E(0)
	return SUCCESS;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rdx
vxorps %xmm0, %xmm0, %xmm0
movq %rsp, %rbx
vmovaps %xmm0, (%rbx)
movl $0x100, %edi            # imm = 0x100
xorl %esi, %esi
callq 0x1090
movq 0x3d9e(%rip), %rdx      # 0x4fc0
movl $0x100, %edi            # imm = 0x100
movq %rbx, %rsi
callq 0x1100
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/aes256otrsv3/ref/OTR.c
// Function: nEnc
int nEnc(const uint8 *nonce, uint32 nonce_len, uint32 t_len){
	uint8 tmp[BLOCK]={0};

	memcpy(&tmp[BLOCK-nonce_len],nonce,nonce_len);
	tmp[0]=(uint8)((t_len*8)%(BLOCK*8)<<1);
	tmp[BLOCK-nonce_len-1] |= 0x01;
	Encryption(KeyLen, tmp, L);
	if(ADP==Seri){
		xor(L, TA, L); 
		mul2(L,L); /* L <- 2(E(Format(tau,N)) + TA)*/
	}
	mul3(L, Ls); 
	return SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %rsi
vxorps %xmm0, %xmm0, %xmm0
movq %rsp, %r14
vmovaps %xmm0, (%r14)
movl $0x10, %eax
subl %ebp, %eax
leaq (%rsp,%rax), %rdi
movl %ebp, %edx
callq 0x1110
shlb $0x4, %bl
movb %bl, (%r14)
movl $0xf, %eax
subl %ebp, %eax
orb $0x1, (%rsp,%rax)
movq 0x3d24(%rip), %rbx      # 0x4fa0
movl $0x100, %edi            # imm = 0x100
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1100
movq 0x3d55(%rip), %rax      # 0x4fe8
vmovdqa (%rax), %xmm0
vpxor (%rbx), %xmm0, %xmm0
vmovdqa %xmm0, (%rbx)
movzbl (%rbx), %eax
movw $0x7fff, %cx            # imm = 0x7FFF
kmovd %ecx, %k1
vmovdqu8 0x1(%rbx), %xmm1 {%k1} {z}
vpaddw %xmm0, %xmm0, %xmm0
vpsrlw $0x7, %xmm1, %xmm1
vpternlogd $0xd8, 0x1d38(%rip){1to4}, %xmm0, %xmm1 # 0x3000
vmovdqu8 %xmm1, (%rbx) {%k1}
shrl $0x7, %eax
movb 0xf(%rbx), %cl
addb %cl, %cl
leaq 0x1d27(%rip), %rdx      # 0x3004
xorb (%rax,%rdx), %cl
movb %cl, 0xf(%rbx)
movq 0x3d0e(%rip), %rsi      # 0x4ff8
movq %rbx, %rdi
callq 0x12fd
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/aes256otrsv3/ref/OTR.c
// Function: mul2twice
static void mul2(uint8 *in, uint8 *out)
{
	int i, t = in[0] >> 7;
    for(i = 0; i < 15; i++)
        out[i] = (in[i] << 1) | (in[i + 1] >> 7);
    out[15] = (in[15] << 1) ^ cst_mul[t];
}

// Assembly:
movzbl (%rdi), %eax
xorl %ecx, %ecx
movb (%rdi,%rcx), %dl
movb 0x1(%rdi,%rcx), %r8b
shrb $0x7, %r8b
addb %dl, %dl
orb %r8b, %dl
movb %dl, (%rsi,%rcx)
leaq 0x1(%rcx), %rdx
movq %rdx, %rcx
cmpq $0xf, %rdx
jne 0x1e73
shrl $0x7, %eax
movb 0xf(%rdi), %cl
addb %cl, %cl
leaq 0x1161(%rip), %rdx      # 0x3004
xorb (%rax,%rdx), %cl
movb %cl, 0xf(%rsi)
movzbl (%rsi), %eax
movw $0x7fff, %cx            # imm = 0x7FFF
kmovd %ecx, %k1
vmovdqu8 (%rsi), %xmm0 {%k1} {z}
vmovdqu8 0x1(%rsi), %xmm1 {%k1} {z}
vpsrlw $0x7, %xmm1, %xmm1
vpaddw %xmm0, %xmm0, %xmm0
vpternlogd $0xe4, 0x1128(%rip){1to4}, %xmm1, %xmm0 # 0x3000
vmovdqu8 %xmm0, (%rsi) {%k1}
shrl $0x7, %eax
movb 0xf(%rsi), %cl
addb %cl, %cl
xorb (%rax,%rdx), %cl
movb %cl, 0xf(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/aes256otrsv3/ref/OTR.c
// Function: AFunc
int AFunc(
		  const uint8 *header,
		  uint32 h_len)
{
	uint32 i,j = 0;
	uint32 m, last;
	uint8 ASum[BLOCK]={0}, tmp[BLOCK], Qt[BLOCK];

	last = h_len % BLOCK;
	if(last == 0) last = BLOCK;
	m = (h_len-last) / BLOCK; /*header = m blocks + last bytes*/

	memcpy(Qt,Q,BLOCK);
	/* XE */
	for(i = 0; i < m; i++, j=j+BLOCK){
		xor(Qt,header+j,tmp);
		Encryption(KeyLen,tmp,tmp);
		xor(ASum,tmp,ASum);
		mul2(Qt,Qt);
	}
	/* last block */
	ozp(last,header+j,tmp);
	xor(ASum,tmp,ASum);

	if(last != BLOCK ){/*partial block*/
		mul3(Qt,Qt);
	}
	else{/*integral block*/
		mul3twice(Qt,Qt);
	}
	xor(ASum,Qt,ASum);
	Encryption(KeyLen,ASum,TA);
    return SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %esi, %ebp
movq %rdi, %rbx
vxorps %xmm0, %xmm0, %xmm0
vmovaps %xmm0, 0x30(%rsp)
movl %esi, %eax
andl $0xf, %eax
movl $0x10, %ecx
movl %eax, 0x4c(%rsp)
cmovnel %eax, %ecx
movl %ecx, 0x48(%rsp)
subl %ecx, %ebp
movq 0x344d(%rip), %rax      # 0x4fc0
vmovdqa (%rax), %xmm0
vmovdqa %xmm0, 0x10(%rsp)
cmpl $0x10, %ebp
jae 0x1b8a
xorl %r13d, %r13d
jmp 0x1c35
shrl $0x4, %ebp
cmpl $0x1, %ebp
adcl $0x0, %ebp
leaq 0x11(%rsp), %r15
xorl %r13d, %r13d
leaq 0x20(%rsp), %r14
movw $0x7fff, %ax            # imm = 0x7FFF
kmovd %eax, %k1
kmovw %k1, 0xe(%rsp)
leaq 0x144f(%rip), %r12      # 0x3004
vmovups (%rbx,%r13), %xmm0
vxorps 0x10(%rsp), %xmm0, %xmm0
vmovaps %xmm0, 0x20(%rsp)
movl $0x100, %edi            # imm = 0x100
movq %r14, %rsi
movq %r14, %rdx
callq 0x1100
vmovaps 0x20(%rsp), %xmm0
vxorps 0x30(%rsp), %xmm0, %xmm0
vmovaps %xmm0, 0x30(%rsp)
movzbl 0x10(%rsp), %eax
vmovdqa 0x10(%rsp), %xmm0
kmovw 0xe(%rsp), %k1
vmovdqu8 (%r15), %xmm1 {%k1} {z}
vpsrlw $0x7, %xmm1, %xmm1
vpaddw %xmm0, %xmm0, %xmm0
vpternlogd $0xe4, 0x13ec(%rip){1to4}, %xmm1, %xmm0 # 0x3000
vmovdqu8 %xmm0, 0x10(%rsp) {%k1}
shrl $0x7, %eax
movb 0x1f(%rsp), %cl
addb %cl, %cl
xorb (%rax,%r12), %cl
movb %cl, 0x1f(%rsp)
addq $0x10, %r13
decl %ebp
jne 0x1bb5
addq %r13, %rbx
movl 0x48(%rsp), %r14d
movl $0x10, %eax
subq %r14, %rax
xorl %edx, %edx
movl 0x4c(%rsp), %ebp
testl %ebp, %ebp
cmovneq %rax, %rdx
leaq (%rsp,%r14), %rdi
addq $0x20, %rdi
xorl %esi, %esi
callq 0x1030
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x1110
testl %ebp, %ebp
je 0x1c9b
movb $-0x80, 0x20(%rsp,%r14)
vmovaps 0x20(%rsp), %xmm0
vxorps 0x30(%rsp), %xmm0, %xmm0
vmovaps %xmm0, 0x30(%rsp)
leaq 0x10(%rsp), %rdi
movq %rdi, %rsi
callq 0x12fd
jmp 0x1ccf
vmovaps 0x20(%rsp), %xmm0
vxorps 0x30(%rsp), %xmm0, %xmm0
vmovaps %xmm0, 0x30(%rsp)
leaq 0x10(%rsp), %rbx
leaq 0x50(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1e6e
vmovaps (%r14), %xmm0
vxorps (%rbx), %xmm0, %xmm0
vmovaps %xmm0, (%rbx)
vmovaps 0x10(%rsp), %xmm0
leaq 0x30(%rsp), %rsi
vxorps (%rsi), %xmm0, %xmm0
vmovaps %xmm0, (%rsi)
movq 0x32ff(%rip), %rdx      # 0x4fe8
movl $0x100, %edi            # imm = 0x100
callq 0x1100
xorl %eax, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/aes256otrsv3/ref/OTR.c
// Function: AFuncS
int AFuncS(
		  const uint8 *header,
		  uint32 h_len)
{
	uint32 i,j = 0;
	uint32 m, last;
	uint8 tmp[BLOCK], chain[BLOCK]={0}, Qt[BLOCK];

	last = h_len % BLOCK;
	if(last == 0) last = BLOCK;
	m = (h_len-last) / BLOCK; /*header = m blocks + last bytes*/

	/* CBC */
	for(i = 0; i < m; i++, j=j+BLOCK){
		xor(chain,header+j,chain);
		Encryption(KeyLen,chain,chain);
	}
	/* last block */
	ozp(last,header+j,tmp);
	xor(tmp,chain,chain);
	if(last != BLOCK ){/*partial block*/
		mul2(Q,Qt);
	}
	else{/*integral block*/
		mul2twice(Q,Qt);
	}
	xor(chain,Qt,chain);
	Encryption(KeyLen,chain,TA);
    return SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
vxorps %xmm0, %xmm0, %xmm0
vmovaps %xmm0, (%rsp)
movl %esi, %ebp
movq %rdi, %rbx
movl %esi, %r15d
andl $0xf, %r15d
movl $0x10, %r12d
cmovnel %r15d, %r12d
subl %r12d, %ebp
cmpl $0x10, %ebp
jae 0x1d3e
xorl %r13d, %r13d
jmp 0x1d75
shrl $0x4, %ebp
cmpl $0x1, %ebp
adcl $0x0, %ebp
xorl %r13d, %r13d
movq %rsp, %r14
vmovups (%rbx,%r13), %xmm0
vxorps (%rsp), %xmm0, %xmm0
vmovaps %xmm0, (%rsp)
movl $0x100, %edi            # imm = 0x100
movq %r14, %rsi
movq %r14, %rdx
callq 0x1100
addq $0x10, %r13
decl %ebp
jne 0x1d4d
addq %r13, %rbx
movl %r12d, %r14d
movl $0x10, %eax
subq %r14, %rax
xorl %edx, %edx
testl %r15d, %r15d
cmovneq %rax, %rdx
leaq (%rsp,%r14), %rdi
addq $0x10, %rdi
xorl %esi, %esi
callq 0x1030
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x1110
testl %r15d, %r15d
je 0x1e1a
movb $-0x80, 0x10(%rsp,%r14)
vmovaps (%rsp), %xmm0
vxorps 0x10(%rsp), %xmm0, %xmm0
vmovaps %xmm0, (%rsp)
movq 0x31f3(%rip), %rax      # 0x4fc0
movzbl (%rax), %ecx
vmovdqa (%rax), %xmm0
movw $0x7fff, %dx            # imm = 0x7FFF
kmovd %edx, %k1
vmovdqu8 0x1(%rax), %xmm1 {%k1} {z}
vpsrlw $0x7, %xmm1, %xmm1
vpaddw %xmm0, %xmm0, %xmm0
vpternlogd $0xe4, 0x1206(%rip){1to4}, %xmm1, %xmm0 # 0x3000
vmovdqu8 %xmm0, 0x20(%rsp) {%k1}
shrl $0x7, %ecx
movb 0xf(%rax), %al
addb %al, %al
leaq 0x11f3(%rip), %rdx      # 0x3004
xorb (%rcx,%rdx), %al
movb %al, 0x2f(%rsp)
jmp 0x1e3b
vmovdqa (%rsp), %xmm0
vpxor 0x10(%rsp), %xmm0, %xmm0
vmovdqa %xmm0, (%rsp)
movq 0x318f(%rip), %rdi      # 0x4fc0
leaq 0x20(%rsp), %rsi
callq 0x1e6e
vmovaps 0x20(%rsp), %xmm0
movq %rsp, %rsi
vxorps (%rsi), %xmm0, %xmm0
vmovaps %xmm0, (%rsi)
movq 0x3195(%rip), %rdx      # 0x4fe8
movl $0x100, %edi            # imm = 0x100
callq 0x1100
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/aes256otrsv3/ref/OTR.c
// Function: AE_Encrypt
int AE_Encrypt(
	      const uint8 *nonce,
		  uint32 nonce_len,
		  const uint8 *plaintext,
		  uint32 pl_len,
		  const uint8 *header,
		  uint32 h_len,
		  uint32 t_len,
		  uint8 *ciphertext,
		  uint8 *tag)
{
	if(ADP==Para)
	{
		if(h_len==0){
			memset(TA,0,BLOCK);
		}
		else{
			AFunc(header,h_len);
		}
		EFunc(nonce,nonce_len,plaintext,pl_len,t_len,ciphertext);
		xorp(t_len,TE,TA,tag);
	}
	else if(ADP==Seri)
	{
		if(h_len==0){
			memset(TA,0,BLOCK);
		}
		else{
			AFuncS(header,h_len);
		}
			EFunc(nonce,nonce_len,plaintext,pl_len,t_len,ciphertext);
			memcpy(tag,TE,t_len);
	}
	return SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdx, %r15
movl %esi, %r13d
movq %rdi, %rbx
movq 0x48(%rsp), %r12
movl 0x40(%rsp), %r14d
testl %r9d, %r9d
je 0x1f1f
movq %r8, %rdi
movl %r9d, %esi
callq 0x10e0
jmp 0x1f2e
vxorps %xmm0, %xmm0, %xmm0
movq 0x30be(%rip), %rax      # 0x4fe8
vmovaps %xmm0, (%rax)
movq %rbx, %rdi
movl %r13d, %esi
movq %r15, %rdx
movl %ebp, %ecx
movl %r14d, %r8d
movq %r12, %r9
callq 0x1070
movl %r14d, %edx
movq 0x3092(%rip), %rsi      # 0x4fe0
movq 0x50(%rsp), %rdi
callq 0x1110
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/aes256otrsv3/ref/OTR.c
// Function: AE_Decrypt
int AE_Decrypt(
	      const uint8 *nonce,
		  uint32 nonce_len,
		  const uint8 *ciphertext,
		  uint32 ci_len,
		  const uint8 *header,
		  uint32 h_len,
		  uint32 t_len,
  		  const uint8 *tag,
		  uint8 *plaintext)
{
	uint32 i;
	uint8 loctag[BLOCK];

	if(ADP==Para)
	{
		if(h_len==0){
			memset(TA,0,BLOCK);
		}
		else{
			AFunc(header,h_len);
		}
			DFunc(nonce,nonce_len,ciphertext,ci_len,t_len,plaintext);
			xorp(t_len,TE,TA,loctag);
	}
	else if(ADP==Seri)
	{
		if(h_len==0){
			memset(TA,0,BLOCK);
		}
		else{
			AFuncS(header,h_len);
		}
			DFunc(nonce,nonce_len,ciphertext,ci_len,t_len,plaintext);
			memcpy(loctag,TE,t_len);
	}

	if(memcmp(loctag,tag,t_len)!=0){/*verfication failure*/
		for(i=0; i<ci_len; i++)plaintext[i] = 0;/* zeroing wrong plaintext*/
		return TAG_UNMATCH;
	}
	return TAG_MATCH;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %ebx
movq %rdx, %r12
movl %esi, %r13d
movq %rdi, %r14
movq 0x60(%rsp), %r15
movl 0x50(%rsp), %ebp
testl %r9d, %r9d
je 0x1f9d
movq %r8, %rdi
movl %r9d, %esi
callq 0x10e0
jmp 0x1fac
vxorps %xmm0, %xmm0, %xmm0
movq 0x3040(%rip), %rax      # 0x4fe8
vmovaps %xmm0, (%rax)
movq %r14, %rdi
movl %r13d, %esi
movq %r12, %rdx
movl %ebx, %ecx
movl %ebp, %r8d
movq %r15, %r9
callq 0x1080
movl %ebp, %r14d
movq 0x3014(%rip), %rsi      # 0x4fe0
movq %rsp, %r12
movq %r12, %rdi
movq %r14, %rdx
callq 0x1110
movq %r12, %rdi
movq 0x58(%rsp), %rsi
movq %r14, %rdx
callq 0x10c0
testl %eax, %eax
je 0x2005
movl $0x1, %ebp
testl %ebx, %ebx
je 0x2007
movl %ebx, %edx
movq %r15, %rdi
xorl %esi, %esi
callq 0x1030
jmp 0x2007
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/aes256otrsv3/ref/encrypt.c
// Function: crypto_aead_encrypt
int crypto_aead_encrypt(
	unsigned char *c,unsigned long long *clen,
	const unsigned char *m,unsigned long long mlen,
	const unsigned char *ad,unsigned long long adlen,
	const unsigned char *nsec,
	const unsigned char *npub,
	const unsigned char *k
	)
{
	Setup(k);
	AE_Encrypt(npub, CRYPTO_NPUBBYTES, m, (uint32)mlen, ad, (uint32)adlen, CRYPTO_ABYTES, c, c+mlen);

	*clen = mlen + CRYPTO_ABYTES;

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
movq 0x50(%rsp), %rdi
callq 0x1040
leaq (%r15,%rbp), %rax
subq $0x8, %rsp
movq 0x50(%rsp), %rdi
movl $0xc, %esi
movq %r12, %rdx
movl %r15d, %ecx
movq %r14, %r8
movl %ebx, %r9d
pushq %rax
pushq %rbp
pushq $0x10
callq 0x10d0
addq $0x20, %rsp
addq $0x10, %r15
movq %r15, (%r13)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/aes256otrsv3/ref/encrypt.c
// Function: crypto_aead_decrypt
int crypto_aead_decrypt(
	unsigned char *m,unsigned long long *mlen,
	unsigned char *nsec,
	const unsigned char *c,unsigned long long clen,
	const unsigned char *ad,unsigned long long adlen,
	const unsigned char *npub,
	const unsigned char *k
	)
{
	int		rc;

	*mlen = clen - CRYPTO_ABYTES;

	Setup(k);
	rc = AE_Decrypt(npub, CRYPTO_NPUBBYTES, c, (uint32)*mlen, ad, (uint32)adlen, CRYPTO_ABYTES, c+*mlen, m);

	if(rc == TAG_UNMATCH)
		return -1;
	else
		return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %rcx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq 0x48(%rsp), %r13
movl 0x40(%rsp), %ebp
movq 0x50(%rsp), %rdi
addq $-0x10, %r8
movq %r8, (%rsi)
callq 0x1040
movq (%r15), %rcx
movq %rcx, %rax
addq %r14, %rax
subq $0x8, %rsp
movq %r13, %rdi
movl $0xc, %esi
movq %r14, %rdx
movq %rbx, %r8
movl %ebp, %r9d
pushq %r12
pushq %rax
pushq $0x10
callq 0x1060
addq $0x20, %rsp
xorl %ecx, %ecx
cmpl $0x1, %eax
sete %cl
negl %ecx
movl %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/mcxiaoke[P]dsaac/ch3/list_double/dlist.c
// Function: createList
List createList()
{
    List head;
    head=(List)malloc(sizeof(Node));
    if(head==NULL)
    {
        fatal("memory alloc failed!");
    }
    head->next=NULL;
    head->prev=NULL;
    return head;
}

// Assembly:
pushq %rax
movl $0x18, %edi
callq 0x1070
testq %rax, %rax
je 0x11a5
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
popq %rcx
retq
leaq 0xf2d(%rip), %rdi       # 0x20d9
leaq 0xe51(%rip), %rsi       # 0x2004
xorl %eax, %eax
callq 0x1050
xorl %edi, %edi
callq 0x1080
// File: /workspace/github_c_makefile_star2_O1/mcxiaoke[P]dsaac/ch3/list_double/dlist.c
// Function: destroyList
void destroyList(List list)
{
    assert(list!=NULL);
    Node* tmp;
    Node* p=list->next;
    list->next=NULL;
    while(p!=NULL)
    {
        tmp=p->next;
        free(p);
        p=tmp;
    }
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x1207
movq %rdi, %rax
movq 0x10(%rdi), %rdi
movq $0x0, 0x10(%rax)
testq %rdi, %rdi
je 0x1205
movq 0x10(%rdi), %rbx
callq 0x1030
movq %rbx, %rdi
testq %rbx, %rbx
jne 0x11f4
popq %rbx
retq
leaq 0xe0b(%rip), %rdi       # 0x2019
leaq 0xe0f(%rip), %rsi       # 0x2024
leaq 0xe10(%rip), %rcx       # 0x202c
movl $0x17, %edx
callq 0x1060
// File: /workspace/github_c_makefile_star2_O1/mcxiaoke[P]dsaac/ch3/list_double/dlist.c
// Function: delete
void delete(int value, List list)
{
    assert(list!=NULL);
    Node* prev=list;
    while(prev!=NULL && prev->next->value != value)
    {
        prev=prev->next;
    }
    Node* current=prev->next;
    prev->next=current->next;
    free(current);
}

// Assembly:
pushq %rax
testq %rsi, %rsi
je 0x12c1
movq %rsi, %rax
movq 0x10(%rsi), %rsi
cmpl %edi, (%rsi)
jne 0x12a5
movq 0x10(%rsi), %rcx
movq %rcx, 0x10(%rax)
movq %rsi, %rdi
popq %rax
jmp 0x1030
leaq 0xd51(%rip), %rdi       # 0x2019
leaq 0xd55(%rip), %rsi       # 0x2024
leaq 0xd90(%rip), %rcx       # 0x2066
movl $0x44, %edx
callq 0x1060
// File: /workspace/github_c_makefile_star2_O1/mcxiaoke[P]dsaac/ch3/list_double/dlist.c
// Function: delete2
void delete2(Node* node)
{
    assert(node!=NULL);
    if(node->next==NULL||node->prev==NULL)
    {
        free(node);
        node=NULL;
    }
    else
    {
        node->prev->next=node->next;
        free(node);
        node=NULL;
    }
}

// Assembly:
testq %rdi, %rdi
je 0x1308
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x1030
movq 0x8(%rdi), %rcx
testq %rcx, %rcx
je 0x1030
movq %rax, 0x10(%rcx)
jmp 0x1030
pushq %rax
leaq 0xd6d(%rip), %rdi       # 0x207d
leaq 0xd0d(%rip), %rsi       # 0x2024
leaq 0xd6a(%rip), %rcx       # 0x2088
movl $0x50, %edx
callq 0x1060
// File: /workspace/github_c_makefile_star2_O1/mcxiaoke[P]dsaac/ch3/list_double/dlist.c
// Function: insert
Node* insert(int value, Node* node, List list)
{
    Node* newNode=(Node*)malloc(sizeof(Node));
    if(newNode==NULL)
    {
        fatal("memory alloc failed!");
    }
    newNode->value=value;
    newNode->prev=node;
    newNode->next=node->next;
    node->next=newNode;
    return newNode;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
movl $0x18, %edi
callq 0x1070
testq %rax, %rax
je 0x1358
movl %ebp, (%rax)
movq %rbx, 0x8(%rax)
movq 0x10(%rbx), %rcx
movq %rcx, 0x10(%rax)
movq %rax, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0xd7a(%rip), %rdi       # 0x20d9
leaq 0xc9e(%rip), %rsi       # 0x2004
xorl %eax, %eax
callq 0x1050
xorl %edi, %edi
callq 0x1080
// File: /workspace/github_c_makefile_star2_O1/mcxiaoke[P]dsaac/ch3/list_double/dlist.c
// Function: insertBefore
void insertBefore(int value, Node* node, List list)
{
    Node* newNode=(Node*)malloc(sizeof(Node));
    if(newNode==NULL)
    {
        fatal("memory alloc failed!");
    }
    Node* prev=node->prev;
    prev->next=newNode;
    node->prev=newNode;
    newNode->prev=prev;
    newNode->next=node;
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
movl $0x18, %edi
callq 0x1070
testq %rax, %rax
je 0x139d
movq 0x8(%rbx), %rcx
movq %rax, 0x10(%rcx)
movq %rax, 0x8(%rbx)
movq %rcx, 0x8(%rax)
movq %rbx, 0x10(%rax)
popq %rbx
retq
leaq 0xd35(%rip), %rdi       # 0x20d9
leaq 0xc59(%rip), %rsi       # 0x2004
xorl %eax, %eax
callq 0x1050
xorl %edi, %edi
callq 0x1080
// File: /workspace/github_c_makefile_star2_O1/mcxiaoke[P]dsaac/ch3/list_double/dlist.c
// Function: reverse
List reverse(List list)
{
    assert(list!=NULL);
    Node* cur;
    Node* next;
    Node* tmp;
    cur=list->next;
    if(cur!=NULL && cur->next!=NULL)
    {
        next=cur->next;
        cur->next=NULL;
        while(next!=NULL)
        {
            cur->prev=next;
            tmp=next->next;
            next->next=cur;
            cur=next;
            next=tmp;
        }
        cur->prev=list;
        list->next=cur;

    }
    return list;
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x140b
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x1406
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x1406
movq $0x0, 0x10(%rax)
movq %rcx, %rdx
movq %rcx, 0x8(%rax)
movq 0x10(%rcx), %rcx
movq %rax, 0x10(%rdx)
movq %rdx, %rax
testq %rcx, %rcx
jne 0x13e7
movq %rdi, 0x8(%rdx)
movq %rdx, 0x10(%rdi)
movq %rdi, %rax
popq %rcx
retq
leaq 0xc07(%rip), %rdi       # 0x2019
leaq 0xc0b(%rip), %rsi       # 0x2024
leaq 0xc7d(%rip), %rcx       # 0x209d
movl $0x91, %edx
callq 0x1060
// File: /workspace/github_c_makefile_star2_O1/mcxiaoke[P]dsaac/ch3/list_double/dlist.c
// Function: print
void print(List list)
{
    assert(list!=NULL);
    Node* node=list->next;
    while(node!=NULL)
    {
        printf("%d -> ", node->value);
        node=node->next;
    }
    printf("\n");
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x146a
movq 0x10(%rdi), %r14
testq %r14, %r14
je 0x1459
leaq 0xc7e(%rip), %rbx       # 0x20c1
movl (%r14), %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1050
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x1443
movl $0xa, %edi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1040
leaq 0xba8(%rip), %rdi       # 0x2019
leaq 0xbac(%rip), %rsi       # 0x2024
leaq 0xc31(%rip), %rcx       # 0x20b0
movl $0xaa, %edx
callq 0x1060
// File: /workspace/github_c_makefile_star2_O1/mcxiaoke[P]dsaac/ch3/list_double/dlist.c
// Function: clear
void clear(List list)
{
    Node* node=list->next;
    Node* tmp;
    while(node!=NULL)
    {
        tmp=node->next;
        free(node);
        node=tmp;
    }
    list->next=NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x14aa
movq 0x10(%rdi), %r14
callq 0x1030
movq %r14, %rdi
testq %r14, %r14
jne 0x1499
movq $0x0, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/mcxiaoke[P]dsaac/ch3/list_double/dlist.c
// Function: length
int length(List list)
{
    assert(list!=NULL);
    int len=0;
    Node* node=list->next;
    while(node!=NULL)
    {
        len++;
        node=node->next;
    }
    return len;
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x14d2
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq 0x10(%rdi), %rdi
incl %eax
testq %rdi, %rdi
jne 0x14c5
popq %rcx
retq
leaq 0xb40(%rip), %rdi       # 0x2019
leaq 0xb44(%rip), %rsi       # 0x2024
leaq 0xbe1(%rip), %rcx       # 0x20c8
movl $0xc1, %edx
callq 0x1060
// File: /workspace/github_c_makefile_star2_O1/mcxiaoke[P]dsaac/ch3/list_double/dlist.c
// Function: main
int main(int argc, char **argv)
{
    List list=createList();
    int i;
    Node* lastNode=list;
    for(i=0; i<10; i++)
    {
        Node* node=(Node*)malloc(sizeof(Node));
        if(node==NULL)
        {
            fatal("memory allocate failed.");
        }
        //Node* current=insert(rand()%100, lastNode, list);
        Node* current=insert(i, lastNode, list);
        lastNode=current;
    }
    print(list);
    print(reverse(list));
    print(sort(list));
    return 0;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
xorl %ebp, %ebp
callq 0x118c
movq %rax, %rbx
movl %ebp, %edi
movq %rax, %rsi
callq 0x1328
incl %ebp
cmpl $0xa, %ebp
jne 0x1507
movq %rbx, %rdi
callq 0x142a
movq %rbx, %rdi
callq 0x13c7
movq %rbx, %rdi
callq 0x142a
movq %rbx, %rdi
callq 0x142a
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/arachsys[P]init/reap.c
// Function: main
int main(void) {
  signal(SIGCHLD, SIG_IGN);
  while (1)
    pause();
  return EXIT_SUCCESS;
}

// Assembly:
pushq %rax
movl $0x1, %esi
movl $0x11, %edi
callq 0x1030
callq 0x1040
jmp 0x115c
// File: /workspace/github_c_makefile_star2_O1/stanfordnlp[P]GloVe/src/common.c
// Function: log_file_loading_error
int log_file_loading_error(char *file_description, char *file_name) {
    fprintf(stderr, "Unable to open %s %s.\n", file_description, file_name);
    fprintf(stderr, "Errno: %d\n", errno);
    char error[MAX_STRING_LENGTH];
    STRERROR(errno, error, MAX_STRING_LENGTH);
    fprintf(stderr, "Error description: %s\n", error);
    return errno;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x3f0, %rsp            # imm = 0x3F0
movq %rsi, %rcx
movq %rdi, %rdx
movq 0x56db(%rip), %r15      # 0x6ff8
movq (%r15), %rdi
leaq 0x3655(%rip), %rsi      # 0x4f7c
xorl %eax, %eax
callq 0x1180
movq (%r15), %rbx
callq 0x1050
movq %rax, %r14
movl (%rax), %edx
leaq 0x3651(%rip), %rsi      # 0x4f93
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1180
movl (%r14), %edi
movq %rsp, %rbx
movl $0x3e8, %edx            # imm = 0x3E8
movq %rbx, %rsi
callq 0x10c0
movq (%r15), %rdi
leaq 0x3635(%rip), %rsi      # 0x4f9e
movq %rbx, %rdx
xorl %eax, %eax
callq 0x1180
movl (%r14), %eax
addq $0x3f0, %rsp            # imm = 0x3F0
popq %rbx
popq %r14
popq %r15
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/stanfordnlp[P]GloVe/src/glove.c
// Function: load_init_file
int load_init_file(char *file_name, real *array, long long array_size) {
    FILE *fin;
    long long a;
    fin = fopen(file_name, "rb");
    if (fin == NULL) {
        log_file_loading_error("init file", file_name);
        return -1;
    }
    for (a = 0; a < array_size; a++) {
        if (feof(fin)) {
            fprintf(stderr, "EOF reached before data fully loaded in %s.\n", file_name);
            fclose(fin);
            return -1;
        }
        fread(&array[a], sizeof(real), 1, fin);
    }
    fclose(fin);
    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x25ac(%rip), %rsi      # 0x4040
callq 0x1210
testq %rax, %rax
je 0x1adc
movq %rax, %r14
testq %r15, %r15
jle 0x1ad0
movq %r14, %rdi
callq 0x1190
testl %eax, %eax
jne 0x1afc
movl $0x8, %esi
movl $0x1, %edx
movq %r12, %rdi
movq %r14, %rcx
callq 0x10a0
addq $0x8, %r12
decq %r15
jne 0x1aa6
movq %r14, %rdi
callq 0x10e0
xorl %eax, %eax
jmp 0x1af0
leaq 0x2560(%rip), %rdi      # 0x4043
movq %rbx, %rsi
callq 0x1904
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x54f5(%rip), %rax      # 0x6ff8
movq (%rax), %rdi
leaq 0x2540(%rip), %rsi      # 0x404d
movq %rbx, %rdx
xorl %eax, %eax
callq 0x1180
movq %r14, %rdi
callq 0x10e0
jmp 0x1aeb
// File: /workspace/github_c_makefile_star2_O1/stanfordnlp[P]GloVe/src/common.c
// Function: get_word
int get_word(char *word, FILE *fin) {
    int i = 0, ch;
    for ( ; ; ) {
        ch = fgetc(fin);
        if (ch == '\r') continue;
        if (i == 0 && ((ch == '\n') || (ch == EOF))) {
            word[i] = 0;
            return 1;
        }
        if (i == 0 && ((ch == ' ') || (ch == '\t'))) continue; // skip leading space
        if ((ch == EOF) || (ch == ' ') || (ch == '\t') || (ch == '\n')) {
            if (ch == '\n') ungetc(ch, fin); // return the newline next time as document ender
            break;
        }
        if (i < MAX_STRING_LENGTH - 1)
          word[i++] = ch; // don't allow words to exceed MAX_STRING_LENGTH
    }
    word[i] = 0; //null terminate
    // avoid truncation destroying a multibyte UTF-8 char except if only thing on line (so the i > x tests won't overwrite word[0])
    // see https://en.wikipedia.org/wiki/UTF-8#Description
    if (i == MAX_STRING_LENGTH - 1 && (word[i-1] & 0x80) == 0x80) {
        if ((word[i-1] & 0xC0) == 0xC0) {
            word[i-1] = '\0';
        } else if (i > 2 && (word[i-2] & 0xE0) == 0xE0) {
            word[i-2] = '\0';
        } else if (i > 3 && (word[i-3] & 0xF8) == 0xF0) {
            word[i-3] = '\0';
        }
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
xorl %ebp, %ebp
movq %r14, %rdi
callq 0x1120
cmpl $0xd, %eax
je 0x342d
testl %ebp, %ebp
je 0x344f
cmpl $0x9, %eax
jg 0x3460
cmpl $-0x1, %eax
je 0x349c
cmpl $0x9, %eax
jne 0x3476
jmp 0x349c
cmpl $0x9, %eax
jg 0x346c
cmpl $-0x1, %eax
je 0x3488
cmpl $0x9, %eax
jne 0x3476
jmp 0x342b
cmpl $0x20, %eax
je 0x349c
cmpl $0xa, %eax
jne 0x3476
jmp 0x348f
cmpl $0xa, %eax
je 0x3488
cmpl $0x20, %eax
je 0x342b
cmpl $0x3e6, %ebp            # imm = 0x3E6
jg 0x342d
movslq %ebp, %rcx
incl %ebp
movb %al, (%rbx,%rcx)
jmp 0x342d
movl $0x1, %eax
jmp 0x34f0
movl $0xa, %edi
movq %r14, %rsi
callq 0x11d0
movslq %ebp, %rax
movb $0x0, (%rbx,%rax)
xorl %eax, %eax
cmpl $0x3e7, %ebp            # imm = 0x3E7
jne 0x34f3
movb 0x3e6(%rbx), %cl
testb %cl, %cl
jns 0x34f3
xorl %eax, %eax
cmpb $-0x41, %cl
jbe 0x34c7
addq $0x3e6, %rbx            # imm = 0x3E6
jmp 0x34f0
cmpb $-0x21, 0x3e5(%rbx)
jbe 0x34d9
addq $0x3e5, %rbx            # imm = 0x3E5
jmp 0x34f0
movb 0x3e4(%rbx), %cl
andb $-0x8, %cl
xorl %eax, %eax
cmpb $-0x10, %cl
jne 0x34f3
addq $0x3e4, %rbx            # imm = 0x3E4
movb $0x0, (%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stanfordnlp[P]GloVe/src/common.c
// Function: find_arg
int find_arg(char *str, int argc, char **argv) {
    int i;
    for (i = 1; i < argc; i++) {
        if (!scmp(str, argv[i])) {
            if (i == argc - 1) {
                printf("No argument given for %s\n", str);
                exit(1);
            }
            return i;
        }
    }
    return -1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x2, %esi
jl 0x3555
movq %rdi, %rcx
movb (%rdi), %r8b
movl %esi, %r9d
leaq 0x1(%rdi), %r10
movl $0x1, %edi
movq (%rdx,%rdi,8), %r11
testb %r8b, %r8b
je 0x353b
movq %r10, %r14
movl %r8d, %ebx
cmpb (%r11), %bl
jne 0x353e
incq %r11
movb (%r14), %bl
incq %r14
testb %bl, %bl
jne 0x3527
jmp 0x353e
movl %r8d, %ebx
cmpb (%r11), %bl
je 0x354d
incq %rdi
cmpq %r9, %rdi
jne 0x3518
jmp 0x3555
decl %esi
movl %edi, %eax
cmpl %edi, %esi
je 0x355d
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x19fe(%rip), %rdi      # 0x4f62
movq %rcx, %rsi
xorl %eax, %eax
callq 0x10f0
movl $0x1, %edi
callq 0x1240
// File: /workspace/github_c_makefile_star2_O1/stanfordnlp[P]GloVe/src/common.c
// Function: free_table
void free_table(HASHREC **ht) {
    int i;
    HASHREC* current;
    HASHREC* tmp;
    for (i = 0; i < TSIZE; i++) {
        current = ht[i];
        while (current != NULL) {
            tmp = current;
            current = current->next;
            free(tmp->word);
            free(tmp);
        }
    }
    free(ht);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r15d, %r15d
movq (%rbx,%r15,8), %r14
testq %r14, %r14
je 0x35ab
movq (%r14), %rdi
movq 0x10(%r14), %r12
callq 0x1030
movq %r14, %rdi
callq 0x1030
movq %r12, %r14
testq %r12, %r12
jne 0x358f
incq %r15
cmpq $0x100000, %r15         # imm = 0x100000
jne 0x3586
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O1/stanfordnlp[P]GloVe/src/common.c
// Function: free_fid
void free_fid(FILE **fid, const int num) {
    int i;
    for(i = 0; i < num; i++) {
        if(fid[i] != NULL)
            fclose(fid[i]);
    }
    free(fid);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
testl %esi, %esi
jle 0x35f2
movl %esi, %r14d
xorl %r15d, %r15d
movq (%rbx,%r15,8), %rdi
testq %rdi, %rdi
je 0x35ea
callq 0x10e0
incq %r15
cmpq %r15, %r14
jne 0x35dc
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O1/zpole[P]IICV/src/test_gauss_elimination.c
// Function: main
int
main(int argc VL_UNUSED, char**argv VL_UNUSED)
{
  double A [] = { 1, 12, 3, 4 };
  double b [] = { 1, -2 } ;
  double x [2] ;
  double c [2] ;
  int i ;

  vl_solve_linear_system_2 (x, A, b) ;

  c[0] = A[0] * x[0] + A[2] * x[1] ;
  c[1] = A[1] * x[0] + A[3] * x[1] ;

  for (i = 0 ; i < 2 ; ++i) {
    VL_PRINTF("[A x]_%-4d = %4g, b_%-4d = %4g\n", i+1, c[i], i+1, b[i]) ;
  }

  return 0 ;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movaps 0xec4(%rip), %xmm0      # 0x2020
leaq 0x30(%rsp), %rbx
movaps %xmm0, 0x10(%rbx)
movaps 0xea4(%rip), %xmm0      # 0x2010
movaps %xmm0, (%rbx)
movaps 0xeba(%rip), %xmm0      # 0x2030
leaq 0x10(%rsp), %rdx
movaps %xmm0, (%rdx)
leaq 0x20(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1040
movapd (%r14), %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
mulpd 0x10(%rbx), %xmm1
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
mulpd (%rbx), %xmm0
addpd %xmm1, %xmm0
movapd %xmm0, (%rsp)
xorl %r15d, %r15d
leaq 0xe85(%rip), %rbx       # 0x2040
callq 0x1030
movq %rax, %rcx
leaq 0x1(%r15), %r14
movsd (%rsp,%r15,8), %xmm0
movsd 0x10(%rsp,%r15,8), %xmm1
movq %rbx, %rdi
movl %r14d, %esi
movl %r14d, %edx
movb $0x2, %al
callq *%rcx
movq %r14, %r15
cmpq $0x1, %r14
je 0x11bb
xorl %eax, %eax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/riverkeyakv2/ref/Keccak-f.cpp
// Function: KeccakF::KeccakF(unsigned int, int, unsigned int)
KeccakF::KeccakF(unsigned int aWidth, int aStartRoundIndex, unsigned int aNrRounds)
{
    width = aWidth;
    initializeNominalNumberOfRounds();
    laneSize = width/25;
    nrRounds = aNrRounds;
    startRoundIndex = aStartRoundIndex;
    mask = (LaneValue(~0)) >> (64-laneSize);
    initializeRhoOffsets();
    initializeRoundConstants();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %r15d
movl %edx, %ebp
movq %rdi, %rbx
movq 0x95ce(%rip), %rax      # 0xefa0
addq $0x10, %rax
movq %rax, (%rdi)
leaq 0x20(%rdi), %r14
vxorps %xmm0, %xmm0, %xmm0
vmovups %ymm0, 0x20(%rdi)
vmovups %ymm0, 0x30(%rdi)
movl %esi, 0x8(%rdi)
vzeroupper
callq 0x55d0
movl 0x8(%rbx), %eax
imulq $0x51eb851f, %rax, %rax # imm = 0x51EB851F
shrq $0x23, %rax
movl %eax, 0xc(%rbx)
movl %r15d, 0x18(%rbx)
movl %ebp, 0x14(%rbx)
movq $-0x1, %rcx
bzhiq %rax, %rcx, %rax
movq %rax, 0x50(%rbx)
movq %rbx, %rdi
callq 0x5050
movq %rbx, %rdi
callq 0x56b0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x5a51
movq 0x48(%rbx), %rsi
subq %rdi, %rsi
callq 0x5060
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5770
movq %r15, %rdi
callq 0x5680
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/riverkeyakv2/ref/Keccak-f.cpp
// Function: KeccakF::initializeNominalNumberOfRounds()
void KeccakF::initializeNominalNumberOfRounds()
{
    switch(width) {
    case 25:
        nominalNrRounds = 12;
        break;
    case 50:
        nominalNrRounds = 14;
        break;
    case 100:
        nominalNrRounds = 16;
        break;
    case 200:
        nominalNrRounds = 18;
        break;
    case 400:
        nominalNrRounds = 20;
        break;
    case 800:
        nominalNrRounds = 22;
        break;
    case 1600:
        nominalNrRounds = 24;
        break;
    default:
        throw(KeccakException("The width must be 25 times a power of two between 1 and 64."));
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl 0x8(%rdi), %eax
cmpl $0xc7, %eax
jle 0x5a94
cmpl $0x31f, %eax            # imm = 0x31F
jg 0x5aaa
cmpl $0xc8, %eax
je 0x5acd
cmpl $0x190, %eax            # imm = 0x190
jne 0x5ae7
movl $0x14, %eax
jmp 0x5ad9
cmpl $0x19, %eax
je 0x5ac6
cmpl $0x32, %eax
je 0x5abf
cmpl $0x64, %eax
jne 0x5ae7
movl $0x10, %eax
jmp 0x5ad9
cmpl $0x320, %eax            # imm = 0x320
je 0x5ad4
cmpl $0x640, %eax            # imm = 0x640
jne 0x5ae7
movl $0x18, %eax
jmp 0x5ad9
movl $0xe, %eax
jmp 0x5ad9
movl $0xc, %eax
jmp 0x5ad9
movl $0x12, %eax
jmp 0x5ad9
movl $0x16, %eax
movl %eax, 0x10(%rdi)
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x55b0
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x55a0(%rip), %rsi      # 0xb0a4
leaq 0x55d4(%rip), %rdx      # 0xb0df
leaq 0x8(%rsp), %rdi
callq 0x5160
movq %rbx, %rax
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
movb $0x1, %bpl
movq %rbx, %rdi
callq 0x5170
xorl %ebp, %ebp
movq 0x9480(%rip), %rsi      # 0xefc0
movq 0x9471(%rip), %rdx      # 0xefb8
movq %rbx, %rdi
callq 0x5270
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5b71
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5060
jmp 0x5b71
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x5b7e
movq %rbx, %rdi
callq 0x5380
movq %r14, %rdi
callq 0x5680
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/riverkeyakv2/ref/Keccak-f.cpp
// Function: KeccakF::initializeRhoOffsets()
void KeccakF::initializeRhoOffsets()
{
    rhoOffsets.resize(25);
    rhoOffsets[index(0, 0)] = 0;
    unsigned int x = 1;
    unsigned int y = 0;
    for(unsigned int t=0; t<24; t++) {
        rhoOffsets[index(x, y)] = ((t+1)*(t+2)/2) % laneSize;
        unsigned int newX = (0*x + 1*y)%5;
        unsigned int newY = (2*x + 3*y)%5;
        x = newX;
        y = newY;
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
addq $0x20, %rdi
movl $0x19, %esi
callq 0x52a0
movq 0x20(%rbx), %rcx
movl $0x0, (%rcx)
xorl %esi, %esi
movl $0x1, %r9d
movl $0x2, %edi
movl $0xcccccccd, %r8d       # imm = 0xCCCCCCCD
leal -0x1(%rdi), %eax
imull %edi, %eax
shrl %eax
xorl %edx, %edx
divl 0xc(%rbx)
leal (%rsi,%rsi,4), %eax
addl %r9d, %eax
movl %edx, (%rcx,%rax,4)
leal (%rsi,%rsi,2), %eax
leal (%rax,%r9,2), %eax
movq %rax, %rdx
imulq %r8, %rdx
shrq $0x22, %rdx
leal (%rdx,%rdx,4), %edx
subl %edx, %eax
incl %edi
movl %esi, %r9d
movl %eax, %esi
cmpl $0x1a, %edi
jne 0x5bb5
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/riverkeyakv2/ref/Keccak-f.cpp
// Function: KeccakF::initializeRoundConstants()
void KeccakF::initializeRoundConstants()
{
    roundConstants.clear();
    UINT8 LFSRstate = 0x01;
    for(unsigned int i=0; i<255; i++) {
        LaneValue c = 0;
        for(unsigned int j=0; j<7; j++) {
            unsigned int bitPosition = (1<<j)-1; //2^j-1
            if (LFSR86540(LFSRstate))
                c ^= (LaneValue)1<<bitPosition;
        }
        roundConstants.push_back(c & mask);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x38(%rdi), %rax
cmpq %rax, 0x40(%rdi)
je 0x5c0c
movq %rax, 0x40(%rbx)
leaq 0x38(%rbx), %r14
movb $0x1, %r15b
xorl %r12d, %r12d
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl $0x1, %r13d
xorl %ecx, %ecx
xorl %eax, %eax
movl %r15d, %edx
leal (%rdx,%rdx), %esi
movzbl %sil, %edi
xorb $0x71, %sil
testb %r15b, %r15b
movzbl %sil, %r15d
cmovnsl %edi, %r15d
testb $0x1, %dl
shlxl %ecx, %ebp, %edx
notb %dl
shlxq %rdx, %r13, %rdx
movl $0x0, %esi
cmovneq %rdx, %rsi
xorq %rsi, %rax
incl %ecx
cmpl $0x7, %ecx
jne 0x5c25
andq 0x50(%rbx), %rax
movq %rax, (%rsp)
movq 0x40(%rbx), %rsi
cmpq 0x48(%rbx), %rsi
je 0x5c7f
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x40(%rbx)
jmp 0x5c8a
movq %r14, %rdi
movq %rsp, %rdx
callq 0x5100
incl %r12d
cmpl $0xff, %r12d
jne 0x5c21
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/riverkeyakv2/ref/Keccak-f.cpp
// Function: KeccakF::KeccakF(unsigned int)
KeccakF::KeccakF(unsigned int aWidth)
{
    width = aWidth;
    initializeNominalNumberOfRounds();
    laneSize = width/25;
    nrRounds = nominalNrRounds;
    startRoundIndex = 0;
    mask = (LaneValue(~0)) >> (64-laneSize);
    initializeRhoOffsets();
    initializeRoundConstants();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x92eb(%rip), %rax      # 0xefa0
addq $0x10, %rax
movq %rax, (%rdi)
leaq 0x20(%rdi), %r14
vxorps %xmm0, %xmm0, %xmm0
vmovups %ymm0, 0x20(%rdi)
vmovups %ymm0, 0x30(%rdi)
movl %esi, 0x8(%rdi)
vzeroupper
callq 0x55d0
movl 0x8(%rbx), %eax
movl 0x10(%rbx), %ecx
imulq $0x51eb851f, %rax, %rax # imm = 0x51EB851F
shrq $0x23, %rax
movl %eax, 0xc(%rbx)
movl %ecx, 0x18(%rbx)
movl $0x0, 0x14(%rbx)
movq $-0x1, %rcx
bzhiq %rax, %rcx, %rax
movq %rax, 0x50(%rbx)
movq %rbx, %rdi
callq 0x5050
movq %rbx, %rdi
callq 0x56b0
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x5d35
movq 0x48(%rbx), %rsi
subq %rdi, %rsi
callq 0x5060
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5785
movq %r15, %rdi
callq 0x5680
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/riverkeyakv2/ref/Keccak-f.cpp
// Function: KeccakF::index(int, int)
unsigned int KeccakF::index(int x, int y)
{
    x %= 5;
    if (x<0) x += 5;
    y %= 5;
    if (y<0) y += 5;

    return(x + (5*y));
}

// Assembly:
movslq %edi, %rax
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x21, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,4), %ecx
movl %eax, %edx
subl %ecx, %edx
negl %ecx
testl %edx, %edx
leal 0x5(%rax,%rcx), %ecx
cmovnsl %edx, %ecx
movslq %esi, %rax
imulq $0x66666667, %rax, %rdx # imm = 0x66666667
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x21, %rdx
addl %esi, %edx
leal (%rdx,%rdx,4), %edx
movl %eax, %esi
subl %edx, %esi
negl %edx
testl %esi, %esi
leal 0x5(%rax,%rdx), %eax
cmovnsl %esi, %eax
leal (%rax,%rax,4), %eax
addl %ecx, %eax
retq