LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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
xorl %ebx, %ebx
movl $0x1, %eax
xorl %r10d, %r10d
xorl %r8d, %r8d
xorl %ecx, %ecx
xorl %edx, %edx
movslq %ecx, %r14
movzbl (%rdi,%r14), %r11d
movslq %edx, %r9
testl %r11d, %r11d
je 0x12d8
testl %r8d, %r8d
je 0x1239
testl %ebx, %ebx
jne 0x12b0
cmpl $0x2a, %r11d
je 0x1266
cmpl $0x2f, %r11d
jne 0x127b
movl %r8d, %r11d
testl %r10d, %r10d
jne 0x122d
movl %eax, %r11d
cmpb $0x2a, 0x1(%rdi,%r14)
cmovel %r11d, %r8d
jmp 0x1281
testl %ebx, %ebx
sete %bpl
cmpb $0x22, %r11b
sete %r15b
testl %ebx, %ebx
je 0x1259
cmpb $0x22, %r11b
jne 0x1262
xorl %r8d, %r8d
movb $0x22, %r11b
jmp 0x1294
andb %r15b, %bpl
movzbl %bpl, %ebx
jmp 0x120e
movl %eax, %ebx
jmp 0x12b0
cmpb $0x2f, 0x1(%rdi,%r14)
jne 0x1274
addl $0x2, %ecx
xorl %r8d, %r8d
movslq %ecx, %r14
movb (%rdi,%r14), %r11b
cmpb $0x2f, %r11b
jne 0x12cb
cmpb $0x2f, 0x1(%rdi,%r14)
movl %eax, %ebx
je 0x128e
movl %r10d, %ebx
movb $0x2f, %r11b
movl %ebx, %r10d
movl %r10d, %ebp
movl %r8d, %r14d
xorl %ebx, %ebx
movl %r10d, %r8d
orl %r14d, %r8d
movl $0x0, %r10d
movl $0x0, %r8d
jne 0x12be
leal 0x1(%r9), %edx
movb %r11b, (%rsi,%r9)
movl %r10d, %ebp
movl %r8d, %r14d
incl %ecx
movl %ebp, %r10d
movl %r14d, %r8d
jmp 0x11f5
xorl %ebx, %ebx
cmpb $0xa, %r11b
je 0x1291
movl %r10d, %ebx
jmp 0x1291
movb $0x0, (%rsi,%r9)
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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)
pushq $0x10
popq %rax
subl %ebp, %eax
leaq (%rsp,%rax), %rdi
movl %ebp, %edx
callq 0x1110
shlb $0x4, %bl
movb %bl, (%r14)
pushq $0xf
popq %rax
subl %ebp, %eax
orb $0x1, (%rsp,%rax)
movq 0x3d28(%rip), %rbx      # 0x4fa0
movl $0x100, %edi            # imm = 0x100
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1100
movq 0x3d59(%rip), %rsi      # 0x4fe8
movq %rbx, %rdi
movq %rbx, %rdx
callq 0x12bf
movq %rbx, %rdi
movq %rbx, %rsi
callq 0x12d6
movq 0x3d4c(%rip), %rsi      # 0x4ff8
movq %rbx, %rdi
callq 0x1310
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/aes256otrsv3/ref/OTR.c
// Function: mul2
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
cmpq $0xf, %rcx
je 0x12fa
movb (%rdi,%rcx), %dl
movb 0x1(%rdi,%rcx), %r8b
shrb $0x7, %r8b
addb %dl, %dl
orb %r8b, %dl
movb %dl, (%rsi,%rcx)
incq %rcx
jmp 0x12db
shrl $0x7, %eax
movb 0xf(%rdi), %cl
addb %cl, %cl
leaq 0x1cf7(%rip), %rdx      # 0x3000
xorb (%rax,%rdx), %cl
movb %cl, 0xf(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/aes256otrsv3/ref/OTR.c
// Function: mul7
static void mul7(uint8 *in, uint8 *out) /*7X = 2(2X) + 2X + X */
{
	uint8	tmp[BLOCK];
	mul2(in, tmp);
	xor(in, tmp, out); 
	mul2(tmp, tmp); 
	xor(out, tmp, out);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsp, %r15
movq %r15, %rsi
callq 0x12d6
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x12bf
movq %r15, %rdi
movq %r15, %rsi
callq 0x12d6
movq %rbx, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x12bf
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 $0x48, %rsp
movl %esi, %ebp
movq %rdi, %rbx
vxorps %xmm0, %xmm0, %xmm0
leaq 0x30(%rsp), %r14
vmovaps %xmm0, (%r14)
movl %esi, %eax
andl $0xf, %eax
pushq $0x10
popq %r13
movl %eax, 0xc(%rsp)
cmovnel %eax, %r13d
subl %r13d, %ebp
shrl $0x4, %ebp
movq 0x363c(%rip), %rax      # 0x4fc0
vmovaps (%rax), %xmm0
leaq 0x20(%rsp), %r15
vmovaps %xmm0, (%r15)
leaq 0x10(%rsp), %r12
subl $0x1, %ebp
jb 0x19d9
movq %r15, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x12bf
movl $0x100, %edi            # imm = 0x100
movq %r12, %rsi
movq %r12, %rdx
callq 0x1100
movq %r14, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x12bf
movq %r15, %rdi
movq %r15, %rsi
callq 0x12d6
addq $0x10, %rbx
jmp 0x1997
movl %r13d, %r14d
pushq $0x10
popq %rax
subq %r14, %rax
xorl %edx, %edx
movl 0xc(%rsp), %ebp
testl %ebp, %ebp
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 %ebp, %ebp
je 0x1a38
movb $-0x80, 0x10(%rsp,%r14)
leaq 0x10(%rsp), %rsi
leaq 0x30(%rsp), %rdi
movq %rdi, %rdx
callq 0x12bf
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
callq 0x1310
jmp 0x1a57
leaq 0x10(%rsp), %rsi
leaq 0x30(%rsp), %rdi
movq %rdi, %rdx
callq 0x12bf
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
callq 0x165d
leaq 0x20(%rsp), %rsi
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
movq %rbx, %rdx
callq 0x12bf
movq 0x3575(%rip), %rdx      # 0x4fe8
movl $0x100, %edi            # imm = 0x100
movq %rbx, %rsi
callq 0x1100
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r12
pushq %rbx
subq $0x30, %rsp
vxorps %xmm0, %xmm0, %xmm0
leaq 0x10(%rsp), %r14
vmovaps %xmm0, (%r14)
movl %esi, %ebp
movq %rdi, %rbx
movl %esi, %r15d
andl $0xf, %r15d
pushq $0x10
popq %r12
cmovnel %r15d, %r12d
subl %r12d, %ebp
shrl $0x4, %ebp
subl $0x1, %ebp
jb 0x1aee
movq %r14, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x12bf
movl $0x100, %edi            # imm = 0x100
movq %r14, %rsi
movq %r14, %rdx
callq 0x1100
addq $0x10, %rbx
jmp 0x1ac5
movl %r12d, %r14d
pushq $0x10
popq %rax
subq %r14, %rax
xorl %edx, %edx
testl %r15d, %r15d
cmovneq %rax, %rdx
leaq (%rsp,%r14), %rdi
xorl %esi, %esi
callq 0x1030
movq %rsp, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x1110
testl %r15d, %r15d
je 0x1b46
movb $-0x80, (%rsp,%r14)
movq %rsp, %rdi
leaq 0x10(%rsp), %rdx
movq %rdx, %rsi
callq 0x12bf
movq 0x3486(%rip), %rdi      # 0x4fc0
leaq 0x20(%rsp), %rsi
callq 0x12d6
jmp 0x1b67
movq %rsp, %rdi
leaq 0x10(%rsp), %rdx
movq %rdx, %rsi
callq 0x12bf
movq 0x3463(%rip), %rdi      # 0x4fc0
leaq 0x20(%rsp), %rsi
callq 0x1b9f
leaq 0x20(%rsp), %rsi
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
movq %rbx, %rdx
callq 0x12bf
movq 0x3465(%rip), %rdx      # 0x4fe8
movl $0x100, %edi            # imm = 0x100
movq %rbx, %rsi
callq 0x1100
xorl %eax, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x1be6
movq %r8, %rdi
movl %r9d, %esi
callq 0x10e0
jmp 0x1bf5
vxorps %xmm0, %xmm0, %xmm0
movq 0x33f7(%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 0x33cb(%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_O2/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, %ebp
movq %rdx, %r12
movl %esi, %r13d
movq %rdi, %r14
movq 0x60(%rsp), %rbx
movl 0x50(%rsp), %r15d
testl %r9d, %r9d
je 0x1c65
movq %r8, %rdi
movl %r9d, %esi
callq 0x10e0
jmp 0x1c74
vxorps %xmm0, %xmm0, %xmm0
movq 0x3378(%rip), %rax      # 0x4fe8
vmovaps %xmm0, (%rax)
movq %r14, %rdi
movl %r13d, %esi
movq %r12, %rdx
movl %ebp, %ecx
movl %r15d, %r8d
movq %rbx, %r9
callq 0x1080
movl %r15d, %r14d
movq 0x334c(%rip), %rsi      # 0x4fe0
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0x1110
movq %r15, %rdi
movq 0x58(%rsp), %rsi
movq %r14, %rdx
callq 0x10c0
testl %eax, %eax
je 0x1ccb
movl %ebp, %ecx
xorl %edx, %edx
pushq $0x1
popq %rax
cmpq %rdx, %rcx
je 0x1ccd
movb $0x0, (%rbx,%rdx)
incq %rdx
jmp 0x1cbd
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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, %r14
movq %r8, %r15
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
movq 0x50(%rsp), %rdi
callq 0x1040
leaq (%rbx,%rbp), %rax
subq $0x8, %rsp
pushq $0xc
popq %rsi
movq 0x50(%rsp), %rdi
movq %r12, %rdx
movl %ebx, %ecx
movq %r15, %r8
movl %r14d, %r9d
pushq %rax
pushq %rbp
pushq $0x10
callq 0x10d0
addq $0x20, %rsp
addq $0x10, %rbx
movq %rbx, (%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_O2/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
pushq $0xc
popq %rsi
movq %r13, %rdi
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_O2/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
pushq $0x18
popq %rdi
callq 0x1070
testq %rax, %rax
je 0x11a3
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
popq %rcx
retq
leaq 0xe5a(%rip), %rdi       # 0x2004
callq 0x11af
// File: /workspace/github_c_makefile_star2_O2/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 0x11ef
movq %rdi, %rax
movq 0x10(%rdi), %rdi
andq $0x0, 0x10(%rax)
testq %rdi, %rdi
je 0x11ed
movq 0x10(%rdi), %rbx
callq 0x1030
movq %rbx, %rdi
jmp 0x11da
popq %rbx
retq
leaq 0xe23(%rip), %rdi       # 0x2019
leaq 0xe27(%rip), %rsi       # 0x2024
leaq 0xe28(%rip), %rcx       # 0x202c
pushq $0x17
popq %rdx
callq 0x1060
// File: /workspace/github_c_makefile_star2_O2/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 0x12a3
movq %rsi, %rax
movq 0x10(%rsi), %rsi
cmpl %edi, (%rsi)
jne 0x1287
movq 0x10(%rsi), %rcx
movq %rcx, 0x10(%rax)
movq %rsi, %rdi
popq %rax
jmp 0x1030
leaq 0xd6f(%rip), %rdi       # 0x2019
leaq 0xd73(%rip), %rsi       # 0x2024
leaq 0xdae(%rip), %rcx       # 0x2066
pushq $0x44
popq %rdx
callq 0x1060
// File: /workspace/github_c_makefile_star2_O2/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 0x12e8
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 0xd8d(%rip), %rdi       # 0x207d
leaq 0xd2d(%rip), %rsi       # 0x2024
leaq 0xd8a(%rip), %rcx       # 0x2088
pushq $0x50
popq %rdx
callq 0x1060
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x18
popq %rdi
callq 0x1070
testq %rax, %rax
je 0x1334
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 0xcc9(%rip), %rdi       # 0x2004
callq 0x11af
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x18
popq %rdi
callq 0x1070
testq %rax, %rax
je 0x1367
movq 0x8(%rbx), %rcx
movq %rax, 0x10(%rcx)
movq %rax, 0x8(%rbx)
movq %rcx, 0x8(%rax)
movq %rbx, 0x10(%rax)
popq %rbx
retq
leaq 0xc96(%rip), %rdi       # 0x2004
callq 0x11af
// File: /workspace/github_c_makefile_star2_O2/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 0x13c4
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x13bf
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x13bf
andq $0x0, 0x10(%rax)
testq %rcx, %rcx
je 0x13b7
movq %rcx, %rdx
movq %rcx, 0x8(%rax)
movq 0x10(%rcx), %rcx
movq %rax, 0x10(%rdx)
movq %rdx, %rax
jmp 0x139e
movq %rdi, 0x8(%rax)
movq %rax, 0x10(%rdi)
movq %rdi, %rax
popq %rcx
retq
leaq 0xc4e(%rip), %rdi       # 0x2019
leaq 0xc52(%rip), %rsi       # 0x2024
leaq 0xcc4(%rip), %rcx       # 0x209d
movl $0x91, %edx
callq 0x1060
// File: /workspace/github_c_makefile_star2_O2/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 0x141c
movq %rdi, %rbx
leaq 0xccb(%rip), %r14       # 0x20c1
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
je 0x140d
movl (%rbx), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x1050
jmp 0x13f6
pushq $0xa
popq %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1040
leaq 0xbf6(%rip), %rdi       # 0x2019
leaq 0xbfa(%rip), %rsi       # 0x2024
leaq 0xc7f(%rip), %rcx       # 0x20b0
movl $0xaa, %edx
callq 0x1060
// File: /workspace/github_c_makefile_star2_O2/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 0x1459
movq 0x10(%rdi), %r14
callq 0x1030
movq %r14, %rdi
jmp 0x1446
andq $0x0, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x147c
pushq $-0x1
popq %rax
movq 0x10(%rdi), %rdi
incl %eax
testq %rdi, %rdi
jne 0x146f
popq %rcx
retq
leaq 0xb96(%rip), %rdi       # 0x2019
leaq 0xb9a(%rip), %rsi       # 0x2024
leaq 0xc37(%rip), %rcx       # 0x20c8
movl $0xc1, %edx
callq 0x1060
// File: /workspace/github_c_makefile_star2_O2/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
cmpl $0xa, %ebp
je 0x14c4
movl %ebp, %edi
movq %rax, %rsi
callq 0x1306
incl %ebp
jmp 0x14b1
movq %rbx, %rdi
callq 0x13e3
movq %rbx, %rdi
callq 0x1381
movq %rbx, %rdi
callq 0x13e3
movq %rbx, %rdi
callq 0x13e3
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/arachsys[P]init/reap.c
// Function: main
int main(void) {
  signal(SIGCHLD, SIG_IGN);
  while (1)
    pause();
  return EXIT_SUCCESS;
}

// Assembly:
pushq %rax
pushq $0x11
popq %rdi
pushq $0x1
popq %rsi
callq 0x1030
callq 0x1040
jmp 0x1158
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x2ca9(%rip), %rsi      # 0x4060
callq 0x1200
testq %rax, %rax
je 0x140a
movq %rax, %r14
xorl %ebp, %ebp
testq %r12, %r12
cmovgq %r12, %rbp
pushq $0x8
popq %r12
pushq $0x1
popq %r13
subq $0x1, %rbp
jb 0x13fe
movq %r14, %rdi
callq 0x1180
testl %eax, %eax
jne 0x142b
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x10a0
addq $0x8, %r15
jmp 0x13d5
movq %r14, %rdi
callq 0x10e0
xorl %eax, %eax
jmp 0x141c
leaq 0x2c52(%rip), %rdi      # 0x4063
movq %rbx, %rsi
callq 0x33e1
pushq $-0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x5bc6(%rip), %rax      # 0x6ff8
movq (%rax), %rdi
leaq 0x2c31(%rip), %rsi      # 0x406d
movq %rbx, %rdx
xorl %eax, %eax
callq 0x1170
movq %r14, %rdi
callq 0x10e0
jmp 0x1419
// File: /workspace/github_c_makefile_star2_O2/stanfordnlp[P]GloVe/src/common.c
// Function: inithashtable
HASHREC ** inithashtable(void) {
    int i;
    HASHREC **ht;
    ht = (HASHREC **) malloc( sizeof(HASHREC *) * TSIZE );
    for (i = 0; i < TSIZE; i++) ht[i] = (HASHREC *) NULL;
    return ht;
}

// Assembly:
pushq %rax
movl $0x800000, %edi         # imm = 0x800000
callq 0x11b0
xorl %ecx, %ecx
cmpq $0x100000, %rcx         # imm = 0x100000
je 0x320f
andq $0x0, (%rax,%rcx,8)
incq %rcx
jmp 0x31fc
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorl %ecx, %ecx
movl %ecx, %ebp
movq %r14, %rdi
callq 0x1110
cmpl $0xd, %eax
je 0x3222
movslq %ebp, %r15
testl %ebp, %ebp
je 0x3254
cmpl $-0x1, %eax
je 0x3282
cmpl $0x9, %eax
je 0x3282
cmpl $0x20, %eax
je 0x3282
cmpl $0xa, %eax
je 0x3277
cmpl $0x3e6, %ebp            # imm = 0x3E6
jg 0x3222
jmp 0x326d
movl $0x0, %ecx
cmpl $0x9, %eax
je 0x3220
cmpl $0x20, %eax
je 0x3220
cmpl $-0x1, %eax
je 0x32d7
cmpl $0xa, %eax
je 0x32d7
incl %ebp
movb %al, (%rbx,%r15)
movl %ebp, %ecx
jmp 0x3220
pushq $0xa
popq %rdi
movq %r14, %rsi
callq 0x11c0
movb $0x0, (%rbx,%r15)
xorl %eax, %eax
cmpl $0x3e7, %r15d           # imm = 0x3E7
jne 0x32dd
movb 0x3e6(%rbx), %cl
testb %cl, %cl
jns 0x32dd
xorl %eax, %eax
cmpb $-0x41, %cl
jbe 0x32ac
addq $0x3e6, %rbx            # imm = 0x3E6
jmp 0x32da
cmpb $-0x21, 0x3e5(%rbx)
jbe 0x32be
addq $0x3e5, %rbx            # imm = 0x3E5
jmp 0x32da
movb 0x3e4(%rbx), %cl
andb $-0x8, %cl
xorl %eax, %eax
cmpb $-0x10, %cl
jne 0x32dd
addq $0x3e4, %rbx            # imm = 0x3E4
jmp 0x32da
pushq $0x1
popq %rax
movb $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rdi, %rbx
movslq %esi, %r12
leal -0x2(%r12), %r13d
pushq $0x1
popq %r15
pushq $-0x1
popq %rbp
cmpq %r12, %r15
jge 0x332d
movq (%r14,%r15,8), %rsi
movq %rbx, %rdi
callq 0x31a4
testl %eax, %eax
je 0x3325
incq %r15
decl %r13d
jmp 0x3308
testl %r13d, %r13d
je 0x333e
movl %r15d, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1c3d(%rip), %rdi      # 0x4f82
movq %rbx, %rsi
xorl %eax, %eax
callq 0x10f0
pushq $0x1
popq %rdi
callq 0x1230
// File: /workspace/github_c_makefile_star2_O2/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
cmpq $0x100000, %r15         # imm = 0x100000
je 0x3395
movq (%rbx,%r15,8), %r14
testq %r14, %r14
je 0x3390
movq (%r14), %rdi
movq 0x10(%r14), %r12
callq 0x1030
movq %r14, %rdi
callq 0x1030
movq %r12, %r14
jmp 0x3372
incq %r15
jmp 0x3365
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/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
movl %esi, %r14d
movq %rdi, %rbx
xorl %r15d, %r15d
testl %esi, %esi
cmovlel %r15d, %r14d
cmpq %r15, %r14
je 0x33d4
movq (%rbx,%r15,8), %rdi
testq %rdi, %rdi
je 0x33cf
callq 0x10e0
incq %r15
jmp 0x33bc
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/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 0x3bfe(%rip), %r15      # 0x6ff8
movq (%r15), %rdi
leaq 0x1b98(%rip), %rsi      # 0x4f9c
xorl %eax, %eax
callq 0x1170
movq (%r15), %rbx
callq 0x1050
movq %rax, %r14
movl (%rax), %edx
leaq 0x1b94(%rip), %rsi      # 0x4fb3
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1170
movl (%r14), %edi
movq %rsp, %rbx
movl $0x3e8, %edx            # imm = 0x3E8
movq %rbx, %rsi
callq 0x10c0
movq (%r15), %rdi
leaq 0x1b78(%rip), %rsi      # 0x4fbe
movq %rbx, %rdx
xorl %eax, %eax
callq 0x1170
movl (%r14), %eax
addq $0x3f0, %rsp            # imm = 0x3F0
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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
cmpq $0x2, %r15
je 0x11ec
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
jmp 0x11bb
xorl %eax, %eax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x8346(%rip), %rax      # 0xefa8
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 0x68b0
movl 0x8(%rbx), %eax
pushq $0x19
popq %rcx
xorl %edx, %edx
divl %ecx
movl %eax, 0xc(%rbx)
movl %r15d, 0x18(%rbx)
movl %ebp, 0x14(%rbx)
pushq $-0x1
popq %rcx
bzhiq %rax, %rcx, %rax
movq %rax, 0x50(%rbx)
movq %rbx, %rdi
callq 0x6080
movq %rbx, %rdi
callq 0x69d0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
addq $0x38, %rbx
movq %rbx, %rdi
callq 0x6780
movq %r14, %rdi
callq 0x6630
movq %r15, %rdi
callq 0x6980
// File: /workspace/github_c_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x30, %rsp
movl 0x8(%rdi), %eax
cmpl $0x19, %eax
je 0x6d2e
cmpl $0x640, %eax            # imm = 0x640
je 0x6d2a
cmpl $0x64, %eax
je 0x6d1a
cmpl $0xc8, %eax
je 0x6d1e
cmpl $0x190, %eax            # imm = 0x190
je 0x6d22
cmpl $0x320, %eax            # imm = 0x320
je 0x6d26
cmpl $0x32, %eax
jne 0x6d3d
pushq $0xe
jmp 0x6d30
pushq $0x10
jmp 0x6d30
pushq $0x12
jmp 0x6d30
pushq $0x14
jmp 0x6d30
pushq $0x16
jmp 0x6d30
pushq $0x18
jmp 0x6d30
pushq $0xc
popq %rax
movl %eax, 0x10(%rdi)
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x6890
movq %rax, %rbx
leaq 0x42d1(%rip), %rsi      # 0xb020
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x6950
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x6460
xorl %ebp, %ebp
movq 0x8251(%rip), %rsi      # 0xefc8
movq 0x8242(%rip), %rdx      # 0xefc0
movq %rbx, %rdi
callq 0x6390
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x65b0
testb %bpl, %bpl
jne 0x6d9d
jmp 0x6da5
movq %rax, %r14
movq %rbx, %rdi
callq 0x6520
movq %r14, %rdi
callq 0x6980
nop
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x20, %rdi
pushq $0x19
popq %rsi
callq 0x63e0
movq 0x20(%rbx), %r12
andl $0x0, (%r12)
pushq $0x1
popq %r14
xorl %edx, %edx
pushq $0x2
popq %r13
cmpl $0x1a, %r13d
je 0x6e1d
movl %edx, %r15d
leal -0x1(%r13), %eax
imull %r13d, %eax
shrl %eax
xorl %edx, %edx
divl 0xc(%rbx)
movl %edx, %ebp
movl %r14d, %edi
movl %r15d, %esi
callq 0x6aa0
movl %eax, %eax
movl %ebp, (%r12,%rax,4)
leal (%r15,%r15,2), %eax
leal (%rax,%r14,2), %eax
xorl %edx, %edx
pushq $0x5
popq %rcx
divl %ecx
incl %r13d
movl %r15d, %r14d
jmp 0x6ddb
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x6e48
movq %rax, 0x40(%rbx)
leaq 0x38(%rbx), %r14
xorl %r12d, %r12d
movb $0x1, %r15b
pushq $-0x1
popq %rbp
pushq $0x1
popq %r13
cmpl $0xff, %r12d
je 0x6eba
xorl %eax, %eax
xorl %ecx, %ecx
cmpl $0x7, %ecx
je 0x6ea2
leal (%r15,%r15), %edx
movzbl %dl, %esi
xorb $0x71, %dl
testb %r15b, %r15b
movzbl %dl, %edx
cmovnsl %esi, %edx
testb $0x1, %r15b
shlxl %ecx, %ebp, %esi
notb %sil
shlxq %rsi, %r13, %rsi
movl $0x0, %edi
cmovneq %rsi, %rdi
xorq %rdi, %rax
incl %ecx
movl %edx, %r15d
jmp 0x6e66
andq 0x50(%rbx), %rax
movq %rax, (%rsp)
movq %r14, %rdi
movq %rsp, %rsi
callq 0x65e0
incl %r12d
jmp 0x6e59
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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 0x80cf(%rip), %rax      # 0xefa8
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 0x68b0
movl 0x8(%rbx), %eax
movl 0x10(%rbx), %ecx
pushq $0x19
popq %rsi
xorl %edx, %edx
divl %esi
movl %eax, 0xc(%rbx)
movl %ecx, 0x18(%rbx)
andl $0x0, 0x14(%rbx)
pushq $-0x1
popq %rcx
bzhiq %rax, %rcx, %rax
movq %rax, 0x50(%rbx)
movq %rbx, %rdi
callq 0x6080
movq %rbx, %rdi
callq 0x69d0
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
addq $0x38, %rbx
movq %rbx, %rdi
callq 0x6780
movq %r14, %rdi
callq 0x6630
movq %r15, %rdi
callq 0x6980
nop
// File: /workspace/github_c_makefile_star2_O2/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:
movl %edi, %eax
pushq $0x5
popq %rcx
cltd
idivl %ecx
movl %esi, %eax
leal 0x5(%rdx), %esi
testl %edx, %edx
cmovnsl %edx, %esi
cltd
idivl %ecx
leal 0x5(%rdx), %eax
testl %edx, %edx
cmovnsl %edx, %eax
leal (%rax,%rax,4), %eax
addl %esi, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/riverkeyakv2/ref/Keccak-f.cpp
// Function: KeccakF::ROL(unsigned long long&, int) const
void KeccakF::ROL(LaneValue& L, int offset) const
{
    offset %= (int)laneSize;
    if (offset < 0) offset += laneSize;

    if (offset != 0) {
        L &= mask;
        L = (((LaneValue)L) << offset) ^ (((LaneValue)L) >> (laneSize-offset));
    }
    L &= mask;
}

// Assembly:
movl %edx, %eax
movl 0xc(%rdi), %ecx
cltd
idivl %ecx
movl %edx, %r8d
sarl $0x1f, %r8d
andl %ecx, %r8d
movq (%rsi), %rax
addl %edx, %r8d
je 0x700d
andq 0x50(%rdi), %rax
shlxq %r8, %rax, %rdx
subl %r8d, %ecx
shrxq %rcx, %rax, %rax
xorq %rdx, %rax
movq %rax, (%rsi)
andq 0x50(%rdi), %rax
movq %rax, (%rsi)
retq
nop
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/riverkeyakv2/ref/Keccak-f.cpp
// Function: KeccakF::fromBytesToLanes(unsigned char const*, std::vector<unsigned long long, std::allocator<unsigned long long>>&) const
void KeccakF::fromBytesToLanes(const UINT8 *in, vector<LaneValue>& out) const
{
    out.resize(25);
    if ((laneSize == 1) || (laneSize == 2) || (laneSize == 4) || (laneSize == 8)) {
        for(unsigned int i=0; i<25; i++)
            out[i] = (in[i*laneSize/8] >> ((i*laneSize) % 8)) & mask;
    }
    else if ((laneSize == 16) || (laneSize == 32) || (laneSize == 64)) {
        for(unsigned int i=0; i<25; i++) {
            out[i] = 0;
            for(unsigned int j=0; j<(laneSize/8); j++)
                out[i] |= LaneValue((UINT8)(in[i*laneSize/8+j])) << (8*j);
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x19
popq %rsi
movq %rdx, %rdi
callq 0x63b0
movl 0xc(%r14), %eax
leal -0x1(%rax), %ecx
cmpl $0x3f, %ecx
ja 0x70db
movl $0x8b, %edx
btq %rcx, %rdx
jae 0x707f
movq (%r15), %rcx
xorl %edx, %edx
xorl %esi, %esi
cmpq $0x19, %rsi
je 0x70db
movl %edx, %edi
shrl $0x3, %edi
movzbl (%rbx,%rdi), %edi
movl %edx, %r8d
andb $0x7, %r8b
shrxl %r8d, %edi, %edi
andl 0x50(%r14), %edi
movq %rdi, (%rcx,%rsi,8)
incq %rsi
addl %eax, %edx
jmp 0x7051
movabsq $-0x7fffffff7fff8000, %rdx # imm = 0x8000000080008000
btq %rcx, %rdx
jae 0x70db
movq (%r15), %rcx
movl %eax, %edx
andl $-0x8, %edx
xorl %esi, %esi
xorl %edi, %edi
cmpq $0x19, %rdi
je 0x70db
movl %esi, %r8d
shrl $0x3, %r8d
addq %rbx, %r8
andq $0x0, (%rcx,%rdi,8)
xorl %r9d, %r9d
xorl %r10d, %r10d
cmpq %r9, %rdx
je 0x70d4
movzbl (%r8), %r11d
shlxq %r9, %r11, %r11
orq %r11, %r10
movq %r10, (%rcx,%rdi,8)
incq %r8
addq $0x8, %r9
jmp 0x70b6
incq %rdi
addl %eax, %esi
jmp 0x709b
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/riverkeyakv2/ref/Keccak-f.cpp
// Function: KeccakF::fromLanesToBytes(std::vector<unsigned long long, std::allocator<unsigned long long>> const&, unsigned char*) const
void KeccakF::fromLanesToBytes(const vector<LaneValue>& in, UINT8 *out) const
{
    if ((laneSize == 1) || (laneSize == 2) || (laneSize == 4) || (laneSize == 8)) {
        for(unsigned int i=0; i<(25*laneSize+7)/8; i++)
            out[i] = 0;
        for(unsigned int i=0; i<25; i++)
            out[i*laneSize/8] |= in[i] << ((i*laneSize) % 8);
    }
    else if ((laneSize == 16) || (laneSize == 32) || (laneSize == 64)) {
        for(unsigned int i=0; i<25; i++)
            for(unsigned int j=0; j<(laneSize/8); j++)
                out[i*(laneSize/8)+j] = (UINT8)((in[i] >> (8*j)) & 0xFF);
    }
}

// Assembly:
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
cmpl $0x3f, %ecx
ja 0x7195
movl $0x8b, %r8d
btq %rcx, %r8
jae 0x7146
xorl %ecx, %ecx
imull $0x19, %eax, %eax
addl $0x7, %eax
shrl $0x3, %eax
cmpq %rax, %rcx
jae 0x7119
movb $0x0, (%rdx,%rcx)
incq %rcx
movl 0xc(%rdi), %eax
jmp 0x70ff
xorl %eax, %eax
cmpq $0x19, %rax
je 0x7195
movq (%rsi), %rcx
movl 0xc(%rdi), %r8d
imull %eax, %r8d
movl %r8d, %r9d
andb $0x7, %r9b
shlxq %r9, (%rcx,%rax,8), %rcx
shrl $0x3, %r8d
orb %cl, (%rdx,%r8)
incq %rax
jmp 0x711b
movabsq $-0x7fffffff7fff8000, %r8 # imm = 0x8000000080008000
btq %rcx, %r8
jae 0x7195
xorl %ecx, %ecx
cmpq $0x19, %rcx
je 0x7195
xorl %r8d, %r8d
xorl %r9d, %r9d
movl %eax, %r10d
shrl $0x3, %r10d
cmpq %r10, %r9
jae 0x7190
movq (%rsi), %rax
shrxq %r8, (%rax,%rcx,8), %rax
imull %ecx, %r10d
addl %r9d, %r10d
movb %al, (%rdx,%r10)
incq %r9
movl 0xc(%rdi), %eax
addq $0x8, %r8
jmp 0x7164
incq %rcx
jmp 0x7158
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/riverkeyakv2/ref/Keccak-f.cpp
// Function: KeccakF::operator()(unsigned char*) const
void KeccakF::operator()(UINT8 * state) const
{
    vector<LaneValue> A(25);
    fromBytesToLanes(state, A);
    forward(A);
    fromLanesToBytes(A, state);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x8(%rsp), %r15
pushq $0x19
popq %rsi
leaq 0x7(%rsp), %rdx
movq %r15, %rdi
callq 0x60c0
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x66f0
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x61e0
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x67a0
movq %r15, %rdi
callq 0x6780
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6780
movq %rbx, %rdi
callq 0x6980
nop
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/riverkeyakv2/ref/Keccak-f.cpp
// Function: KeccakF::getDescription[abi:cxx11]() const
string KeccakF::getDescription() const
{
    stringstream a;
    if ((nrRounds == nominalNrRounds) && (startRoundIndex == 0))
        a << "Keccak-f[" << dec << width;
    else if ((startRoundIndex + nrRounds) == nominalNrRounds)
        a << "Keccak-p[" << dec << width << ", " << nrRounds;
    else {
        a << "Keccak-f[" << dec << width;
        a << ", " << dec << nrRounds << " rounds " << startRoundIndex << "-" << (startRoundIndex+nrRounds-1);
    }
    a << "]";
    return a.str();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6a50
movl 0x18(%r14), %edx
movl 0x10(%r14), %eax
movl 0x14(%r14), %ecx
movl %edx, %esi
xorl %eax, %esi
orl %ecx, %esi
jne 0x72e9
leaq 0x18(%rsp), %rdi
leaq 0x3d96(%rip), %rsi      # 0xb05c
callq 0x61c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movl 0x8(%r14), %ecx
jmp 0x73d2
addl %edx, %ecx
leaq 0x18(%rsp), %r15
cmpl %eax, %ecx
jne 0x733c
leaq 0x3d6b(%rip), %rsi      # 0xb066
movq %r15, %rdi
callq 0x61c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movl 0x8(%r14), %esi
movq %rax, %rdi
callq 0x6a10
leaq 0x3d45(%rip), %rsi      # 0xb070
movq %rax, %rdi
callq 0x61c0
movl 0x18(%r14), %ecx
jmp 0x73d2
leaq 0x3d19(%rip), %rsi      # 0xb05c
movq %r15, %rdi
callq 0x61c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movl 0x8(%r14), %esi
movq %rax, %rdi
callq 0x6a10
leaq 0x3cfd(%rip), %rsi      # 0xb070
movq %r15, %rdi
callq 0x61c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movl 0x18(%r14), %esi
movq %rax, %rdi
callq 0x6a10
leaq 0x3cd0(%rip), %rsi      # 0xb073
movq %rax, %rdi
callq 0x61c0
movl 0x14(%r14), %esi
movq %rax, %rdi
callq 0x68e0
leaq 0x3cc7(%rip), %rsi      # 0xb085
movq %rax, %rdi
callq 0x61c0
movl 0x14(%r14), %ecx
movl 0x18(%r14), %edx
addl %edx, %ecx
decl %ecx
movl %ecx, %esi
movq %rax, %rdi
callq 0x6a10
leaq 0x18(%rsp), %rdi
leaq 0x3c94(%rip), %rsi      # 0xb07c
callq 0x61c0
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x66e0
leaq 0x8(%rsp), %rdi
callq 0x6a70
movq %rbx, %rax
addq $0x190, %rsp            # imm = 0x190
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6a70
movq %rbx, %rdi
callq 0x6980
nop