LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/EncryptManager.cpp
// Function: EncryptManager::EncryptFinal(char*, int&)
bool EncryptManager::EncryptFinal(char* ciphertext,int32_t &len){

	int local_len;
	
	if(!EVP_EncryptFinal(ctx, (unsigned char*)ciphertext + len, &local_len)){
		perror("Error in EVP_EncryptFinal");
		return false;
	}
  	len += local_len;
	//EVP_CIPHER_CTX_free(ctx);
	return true;

}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq (%rdi), %rdi
movslq (%rdx), %rax
addq %rax, %rsi
leaq 0x4(%rsp), %rdx
callq 0x4830
movl %eax, %ebp
testl %eax, %eax
je 0x8101
movl 0x4(%rsp), %eax
addl %eax, (%rbx)
testl %ebp, %ebp
setne %al
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x3426(%rip), %rdi      # 0xb52e
callq 0x43b0
jmp 0x80f5
nop
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/DecryptManager.cpp
// Function: DecryptManager::DecryptManager()
DecryptManager::DecryptManager(){
	
	this->ctx = EVP_CIPHER_CTX_new();
  	if(!EVP_DecryptInit(ctx, EVP_aes_128_cbc(), this->key, this->IV)){
  		perror("Error In EVP_DecryptInit");
  	}

	incrementIV();

}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x4280
movq %rax, %r14
movq %rax, (%rbx)
callq 0x4230
leaq 0x8472(%rip), %rdx      # 0x105a0
leaq 0x847b(%rip), %rcx      # 0x105b0
movq %r14, %rdi
movq %rax, %rsi
callq 0x4100
testl %eax, %eax
je 0x8150
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xa21c
leaq 0x33f1(%rip), %rdi      # 0xb548
callq 0x43b0
jmp 0x8144
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/DecryptManager.cpp
// Function: DecryptManager::DecryptUpdate(Chunk&, EncryptedChunk&)
bool DecryptManager::DecryptUpdate(Chunk &c, EncryptedChunk& ec){
	
	c.setPlainText(new char[ec.size + AES_BLOCK]);


    if(!EVP_DecryptUpdate(this->ctx, (unsigned char*)c.getPlainText(), &c.size, (unsigned char*)ec.getCipherText(), ec.size)){
    	perror("Error in EVP_DecryptUpdate");
    	return false;
    }

    return true;


}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movslq 0x10(%rdx), %rdi
addq $0x10, %rdi
callq 0x4030
movq %rbx, %rdi
movq %rax, %rsi
callq 0xa3d4
movq (%r15), %r15
movq %rbx, %rdi
callq 0xa446
movq %rax, %r12
addq $0x10, %rbx
movq %r14, %rdi
callq 0xa516
movl 0x10(%r14), %r8d
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %rax, %rcx
callq 0x4260
movl %eax, %ebx
testl %eax, %eax
je 0x821d
testl %ebx, %ebx
setne %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x333d(%rip), %rdi      # 0xb561
callq 0x43b0
jmp 0x820c
nop
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/DecryptManager.cpp
// Function: DecryptManager::DecryptUpdate(char*&, int&, char const*, int)
bool DecryptManager::DecryptUpdate(char *& plaintext,int32_t& plaintext_len,const char* ciphertext,int ciphertext_len){
    plaintext = new char[ciphertext_len + AES_BLOCK];


    if(!EVP_DecryptUpdate(this->ctx, (unsigned char*)plaintext, &plaintext_len, (unsigned char*)ciphertext, ciphertext_len)){
    	perror("Error in EVP_DecryptUpdate");
    	return false;
    }

    return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %r8d, %ebx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
leal 0x10(%rbx), %eax
movslq %eax, %rdi
callq 0x4030
movq %rax, (%r12)
movq (%r13), %rdi
movq %rax, %rsi
movq %r15, %rdx
movq %r14, %rcx
movl %ebx, %r8d
callq 0x4260
movl %eax, %ebx
testl %eax, %eax
je 0x827d
testl %ebx, %ebx
setne %al
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x32dd(%rip), %rdi      # 0xb561
callq 0x43b0
jmp 0x826e
nop
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/DecryptManager.cpp
// Function: DecryptManager::DecryptFinal(char*, int&)
bool DecryptManager::DecryptFinal(char* plaintext,int32_t &plaintext_len){
	int len;
	
	if(!EVP_DecryptFinal(ctx, (unsigned char*)plaintext + plaintext_len, &len)){
		perror("Error in EVP_DecryptFinal");
		return false;
	}
  	
  	plaintext_len += len;
	//EVP_CIPHER_CTX_free(ctx);
	return true;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq (%rdi), %rdi
movslq (%rdx), %rax
addq %rax, %rsi
leaq 0x4(%rsp), %rdx
callq 0x4060
movl %eax, %ebp
testl %eax, %eax
je 0x82bd
movl 0x4(%rsp), %eax
addl %eax, (%rbx)
testl %ebp, %ebp
setne %al
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x32b8(%rip), %rdi      # 0xb57c
callq 0x43b0
jmp 0x82b1
nop
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/HMACManager.cpp
// Function: HMACManager::HMACManager()
HMACManager::HMACManager(){
  this->mdctx = HMAC_CTX_new();
 // size_t key_hmac_size = HMAC_KEY_SIZE;


    if(!HMAC_Init_ex(mdctx, this->hmac_key, HMAC_KEY_SIZE, EVP_sha256(), NULL)){
      perror("Error In HMAC_Init_ex");
    }

}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x4550
movq %rax, %r14
movq %rax, (%rbx)
callq 0x4780
leaq 0x82aa(%rip), %rsi      # 0x105c0
movq %r14, %rdi
movl $0x10, %edx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x41f0
testl %eax, %eax
je 0x8335
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x325a(%rip), %rdi      # 0xb596
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x43b0
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/HMACManager.cpp
// Function: HMACManager::HMACFinal(enum_nonce)
char* HMACManager::HMACFinal(enum_nonce en){
	int hash_size = EVP_MD_size(EVP_sha256());
	char *digest = new char [HASH_SIZE];

  if(nonce != 0){
    Chunk c;
    c.size = sizeof(uint32_t);
    c.setInt(nonce[en]);

    if(!HMACUpdate(c)){
      return NULL;
    }

    nonce[en]++;
  }
  
	if(!HMAC_Final(mdctx, (unsigned char*)digest, (unsigned int*)&hash_size)){
		perror("Error in HMAC_Final");
		return NULL;
	}

//	HMAC_CTX_free(mdctx);
	return digest;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %esi, %ebp
movq %rdi, %r14
callq 0x4780
movq %rax, %rdi
callq 0x4190
movl %eax, 0x4(%rsp)
movl $0x20, %edi
callq 0x4030
movq %rax, %rbx
leaq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0xa378
movl $0x4, 0x10(%r12)
movl %ebp, %eax
leaq 0x811a(%rip), %rcx      # 0x10574
leaq (%rcx,%rax,4), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0xa44c
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x83a2
testb %al, %al
je 0x84a9
incl (%r15)
leaq 0x8(%rsp), %rdi
callq 0xa38c
movq (%r14), %rdi
leaq 0x4(%rsp), %rdx
movq %rbx, %rsi
callq 0x40e0
testl %eax, %eax
jne 0x84b5
leaq 0x310a(%rip), %rdi      # 0xb5ac
callq 0x43b0
jmp 0x84b3
leaq 0x8(%rsp), %rdi
callq 0xa38c
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xa38c
movq %rbx, %rdi
callq 0x47d0
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/RSAVerifyManager.cpp
// Function: RSAVerifyManager::RSAVerifyManager(char const*)
RSAVerifyManager::RSAVerifyManager(const char *pubkey_path){
	
	this->mdctx = EVP_MD_CTX_new();
  if(!this->mdctx){
    perror("ERRORE new");
  }

	//size_t key_hmac_size = sizeof(KEY_HMAC);
  FILE* pubkey_file = fopen(pubkey_path, "r");
  if(!pubkey_file){ cerr << "Error: cannot open file '" << pubkey_path << "' (missing?)\n"; exit(1); }
  this->pubkey = PEM_read_PUBKEY(pubkey_file, NULL, NULL, NULL);
  fclose(pubkey_file);
  if(!this->pubkey){ cerr << "Error: PEM_read_PUBKEY returned NULL\n"; exit(1); }


  if(!EVP_VerifyInit(this->mdctx,EVP_sha256())){
  	perror("Error In RSA_Init_ex");
  }

  shouldFree = true;

}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
callq 0x44d0
movq %rax, (%rbx)
testq %rax, %rax
je 0x8581
leaq 0x2dfa(%rip), %rsi      # 0xb329
movq %r14, %rdi
callq 0x4510
testq %rax, %rax
je 0x859d
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4820
movq %rax, 0x8(%rbx)
movq %r15, %rdi
callq 0x4430
cmpq $0x0, 0x8(%rbx)
je 0x85c7
movq (%rbx), %r14
callq 0x4780
movq %r14, %rdi
movq %rax, %rsi
callq 0x4870
testl %eax, %eax
je 0x858f
movb $0x1, 0x10(%rbx)
popq %rbx
popq %r14
popq %r15
retq
leaq 0x3038(%rip), %rdi      # 0xb5c0
callq 0x43b0
jmp 0x8528
leaq 0x305b(%rip), %rdi      # 0xb5f1
callq 0x43b0
jmp 0x8577
movq 0x7a44(%rip), %rdi      # 0xffe8
leaq 0x2ca0(%rip), %rsi      # 0xb24b
callq 0x4420
movq %rax, %rdi
movq %r14, %rsi
callq 0x4420
leaq 0x2ca3(%rip), %rsi      # 0xb265
movq %rax, %rdi
jmp 0x85d5
movq 0x7a1a(%rip), %rdi      # 0xffe8
leaq 0x2ff6(%rip), %rsi      # 0xb5cb
callq 0x4420
movl $0x1, %edi
callq 0x4560
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/RSAVerifyManager.cpp
// Function: RSAVerifyManager::RSAVerifyManager(PublicKey&)
RSAVerifyManager::RSAVerifyManager(PublicKey &pubClass){
  
  this->mdctx = EVP_MD_CTX_new();
  if(!this->mdctx){
    perror("ERRORE new");
  }

  this->pubkey = pubClass.getKey();
  if(!EVP_VerifyInit(this->mdctx,EVP_sha256())){
      perror("Error In RSA_Init_ex");
    }

  shouldFree = false;

}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0x44d0
movq %rax, (%rbx)
testq %rax, %rax
je 0x862a
movq %r14, %rdi
callq 0xa35c
movq %rax, 0x8(%rbx)
movq (%rbx), %r14
callq 0x4780
movq %r14, %rdi
movq %rax, %rsi
callq 0x4870
testl %eax, %eax
je 0x8638
movb $0x0, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x2f8f(%rip), %rdi      # 0xb5c0
callq 0x43b0
jmp 0x85fb
leaq 0x2fb2(%rip), %rdi      # 0xb5f1
callq 0x43b0
jmp 0x861e
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/RSAVerifyManager.cpp
// Function: RSAVerifyManager::~RSAVerifyManager()
RSAVerifyManager::~RSAVerifyManager(){
  EVP_MD_CTX_free(mdctx);
  CRYPTO_cleanup_all_ex_data();
  if(shouldFree)
    EVP_PKEY_free(this->pubkey);

}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x4800
cmpb $0x1, 0x10(%rbx)
jne 0x8739
movq 0x8(%rbx), %rdi
callq 0x4270
popq %rbx
retq
movq %rax, %rdi
callq 0x7425
nop
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/RSASignManager.cpp
// Function: RSASignManager::RSASignManager(char const*)
RSASignManager::RSASignManager(const char *key_path){
	
  this->mdctx = NULL;
  this->prvkey = NULL;

	this->mdctx = EVP_MD_CTX_new();
	//size_t key_hmac_size = sizeof(KEY_HMAC);
  this->privkeyPath = string(key_path);
  
  if(!EVP_SignInit(mdctx,EVP_sha256())){
  		perror("Error In RSA_Init_ex");
  }

}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r15
movq %rdi, %r14
leaq 0x10(%rdi), %rbx
leaq 0x20(%rdi), %r12
movq %r12, 0x10(%rdi)
movq $0x0, 0x18(%rdi)
movb $0x0, 0x20(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
callq 0x44d0
movq %rax, (%r14)
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %r15, %rsi
callq 0x691a
leaq 0x8(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4570
movq (%r15), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x87b7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4450
movq (%r14), %r14
callq 0x4780
movq %r14, %rdi
movq %rax, %rsi
callq 0x4870
testl %eax, %eax
je 0x87da
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x2e10(%rip), %rdi      # 0xb5f1
callq 0x43b0
jmp 0x87ce
jmp 0x87ea
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x8801
movq (%r12), %rsi
incq %rsi
callq 0x4450
movq %r14, %rdi
callq 0x47d0
nop
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/RSASignManager.cpp
// Function: RSASignManager::RSAFinal(unsigned int&)
char* RSASignManager::RSAFinal(uint32_t& len){

  FILE* prvkey_file = fopen(this->privkeyPath.c_str(), "r");
  cout<<this->privkeyPath.c_str()<<endl;


  if(!prvkey_file){ cerr << "Error: cannot open file '" << this->privkeyPath << "' (missing?)\n"; exit(1); }
  this->prvkey = PEM_read_PrivateKey(prvkey_file, NULL, NULL, NULL);
  fclose(prvkey_file);
  if(!this->prvkey){ cerr << "Error: PEM_read_PrivateKey returned NULL\n"; exit(1); }
  

	char *signature = new char [EVP_PKEY_size(this->prvkey)];
  unsigned int signature_len;


	if(!EVP_SignFinal(mdctx,(unsigned char*)signature, &signature_len, this->prvkey)){
		perror("Error in RSA_Final");
		return NULL;
	}

  len = signature_len;

  //distruggere chiave privata
  EVP_PKEY_free(this->prvkey);
  this->prvkey = NULL;

	return signature;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
leaq 0x2a8e(%rip), %rsi      # 0xb329
callq 0x4510
movq %rax, %r15
movq 0x10(%rbx), %r12
testq %r12, %r12
je 0x88c8
movq %r12, %rdi
callq 0x41c0
movq 0x7705(%rip), %rdi      # 0xffc0
movq %r12, %rsi
movq %rax, %rdx
callq 0x44e0
jmp 0x88e6
movq 0x76f1(%rip), %rax      # 0xffc0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
leaq (%rax,%rcx), %rdi
movl 0x20(%rax,%rcx), %esi
orl $0x1, %esi
callq 0x4760
movq 0x76d3(%rip), %r12      # 0xffc0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x4410
movsbl %al, %esi
movq %r12, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x42f0
testq %r15, %r15
je 0x89a5
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4310
movq %rax, 0x8(%rbx)
movq %r15, %rdi
callq 0x4430
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x89d3
callq 0x47b0
movslq %eax, %rdi
callq 0x4030
movq %rax, %r15
movq (%rbx), %rdi
movq 0x8(%rbx), %rcx
leaq 0x4(%rsp), %rdx
movq %rax, %rsi
callq 0x40a0
testl %eax, %eax
je 0x8994
movl 0x4(%rsp), %eax
movl %eax, (%r14)
movq 0x8(%rbx), %rdi
callq 0x4270
movq $0x0, 0x8(%rbx)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x2cc7(%rip), %rdi      # 0xb662
callq 0x43b0
xorl %r15d, %r15d
jmp 0x8985
addq $0x10, %rbx
movq 0x7638(%rip), %rdi      # 0xffe8
leaq 0x2894(%rip), %rsi      # 0xb24b
callq 0x4420
movq %rax, %rdi
movq %rbx, %rsi
callq 0x43e0
leaq 0x2897(%rip), %rsi      # 0xb265
movq %rax, %rdi
jmp 0x89e1
movq 0x760e(%rip), %rdi      # 0xffe8
leaq 0x2c57(%rip), %rsi      # 0xb638
callq 0x4420
movl $0x1, %edi
callq 0x4560
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/RSASignManager.cpp
// Function: RSASignManager::~RSASignManager()
RSASignManager::~RSASignManager(){
  if(this->prvkey != NULL){
    EVP_PKEY_free(this->prvkey);
  }

  if(this->mdctx != NULL){
    EVP_MD_CTX_free(this->mdctx);
  }

  CRYPTO_cleanup_all_ex_data();
  
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x8a02
callq 0x4270
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x8a0f
callq 0x4800
movq 0x10(%rbx), %rdi
addq $0x20, %rbx
cmpq %rbx, %rdi
je 0x8a28
movq (%rbx), %rsi
incq %rsi
popq %rbx
jmp 0x4450
popq %rbx
retq
movq %rax, %rdi
callq 0x7425
nop
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/SendReceiveFile.cpp
// Function: checkValidityFilename(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool checkValidityFilename(string filename){
	if(filename.find('/') != string::npos){
		cout << "filename not correct " << endl;
		return false;
	}
	else{
		cout << "filename correct " << endl;
		return true;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl $0x2f, %esi
xorl %edx, %edx
callq 0x45e0
movq %rax, %rbx
movq 0x7572(%rip), %rdi      # 0xffc0
cmpq $-0x1, %rax
je 0x8a62
leaq 0x2c2d(%rip), %rsi      # 0xb688
movl $0x15, %edx
jmp 0x8a6e
leaq 0x2c35(%rip), %rsi      # 0xb69e
movl $0x11, %edx
callq 0x44e0
cmpq $-0x1, %rbx
sete %bl
movq 0x753f(%rip), %r14      # 0xffc0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4410
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x42f0
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/CertificateManager.cpp
// Function: CertificateManager::verifyCertificate(x509_st*)
bool CertificateManager::verifyCertificate(X509* certificate){

	if(!certificate)
		return false;

	int ret;

	X509_STORE_CTX* certvfy_ctx = X509_STORE_CTX_new();
	if(!certvfy_ctx) { cerr << "Error: X509_STORE_CTX_new returned NULL\n" << ERR_error_string(ERR_get_error(), NULL) << "\n"; exit(1); }
	ret = X509_STORE_CTX_init(certvfy_ctx, store, certificate, NULL);
	if(ret != 1) { cerr << "Error: X509_STORE_CTX_init returned " << ret << "\n" << ERR_error_string(ERR_get_error(), NULL) << "\n"; exit(1); }
	ret = X509_verify_cert(certvfy_ctx);
	
	X509_STORE_CTX_free(certvfy_ctx);

	if(ret != 1) { 
		cerr << "Error: X509_verify_cert returned " << ret << "\n" << ERR_error_string(ERR_get_error(), NULL) << endl; 
		return false;
	} else {
		return true;
	}


}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x9a5f
movq %rsi, %r14
movq %rdi, %r15
callq 0x4380
testq %rax, %rax
je 0x9a6c
movq %rax, %rbx
movq (%r15), %rsi
movq %rax, %rdi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x4290
cmpl $0x1, %eax
jne 0x9aa8
movq %rbx, %rdi
callq 0x4350
movl %eax, %ebp
movq %rbx, %rdi
callq 0x46f0
cmpl $0x1, %ebp
sete %al
je 0x9a61
movq 0x662d(%rip), %rbx      # 0xffe8
leaq 0x1f22(%rip), %rsi      # 0xb8e4
movl $0x21, %edx
movq %rbx, %rdi
callq 0x44e0
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4790
movq %rax, %rbx
leaq 0x188e(%rip), %rsi      # 0xb271
movl $0x1, %edx
movq %rax, %rdi
callq 0x44e0
callq 0x4600
movq %rax, %rdi
xorl %esi, %esi
callq 0x4160
testq %rax, %rax
je 0x9a1f
movq %rax, %r14
movq %rax, %rdi
callq 0x41c0
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x44e0
jmp 0x9a38
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq %rbx, %rdi
addq %rax, %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x4760
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4410
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x42f0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x6575(%rip), %rdi      # 0xffe8
leaq 0x1e1c(%rip), %rsi      # 0xb896
callq 0x4420
movq %rax, %rbx
callq 0x4600
movq %rax, %rdi
xorl %esi, %esi
callq 0x4160
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4420
leaq 0x17ce(%rip), %rsi      # 0xb271
movq %rax, %rdi
jmp 0x9afc
movl %eax, %ebp
movq 0x6537(%rip), %rdi      # 0xffe8
leaq 0x1e07(%rip), %rsi      # 0xb8bf
callq 0x4420
movq %rax, %rdi
movl %ebp, %esi
callq 0x4790
leaq 0x17a3(%rip), %rbx      # 0xb271
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4420
movq %rax, %r14
callq 0x4600
movq %rax, %rdi
xorl %esi, %esi
callq 0x4160
movq %r14, %rdi
movq %rax, %rsi
callq 0x4420
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4420
movl $0x1, %edi
callq 0x4560
nop
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/CertificateManager.cpp
// Function: CertificateManager::extractCommonName(x509_st*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool CertificateManager::extractCommonName(X509* certificate,string &string_name){

	if(!certificate)
		return false;

	X509_NAME* name = X509_get_subject_name(certificate);
	int len;
	
	len = X509_NAME_get_text_by_NID(name,NID_commonName,NULL,0);				//i get the length of the commonname
	if(len == -1)
		return false;

	len++;																		//terminator char

	char *tmp = new char[len];

	if(X509_NAME_get_text_by_NID(name,NID_commonName,tmp,len) == -1)
		return false;

	string_name = (string)tmp;
	delete[] tmp;

	return true;

}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
testq %rsi, %rsi
je 0x9bcc
movq %rdx, %rbx
movq %rsi, %rdi
callq 0x4470
movq %rax, %r12
xorl %r15d, %r15d
movq %rax, %rdi
movl $0xd, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4520
cmpl $-0x1, %eax
je 0x9bcf
incl %eax
movslq %eax, %r15
movq %r15, %rdi
callq 0x4030
movq %rax, %r14
movq %r12, %rdi
movl $0xd, %esi
movq %rax, %rdx
movl %r15d, %ecx
callq 0x4520
cmpl $-0x1, %eax
setne %r15b
je 0x9bcf
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq %r14, %rdi
callq 0x41c0
movq %r14, %rdx
addq %rax, %rdx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x6a9e
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4570
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x9bbf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4450
movq %r14, %rdi
callq 0x45c0
movb $0x1, %r15b
jmp 0x9bcf
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/RSAEncryptManager.cpp
// Function: RSAEncryptManager::RSAEncryptManager(evp_pkey_st*)
RSAEncryptManager::RSAEncryptManager(EVP_PKEY *pubkey){
  
  this->mdctx = NULL;

  this->mdctx = EVP_CIPHER_CTX_new();
  //size_t key_hmac_size = sizeof(KEY_HMAC);
  this->pubkey = pubkey;
  
  unsigned char* key = new unsigned char[EVP_PKEY_size(pubkey)];
  unsigned char *iv = new unsigned char[EVP_CIPHER_iv_length(EVP_aes_128_cbc())];

  int key_len;


  if(!EVP_SealInit(mdctx,EVP_aes_128_cbc(),&key,&key_len,iv,&pubkey,1)){
      perror("Error In RSA_Init_ex");
  }

}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq %rsi, 0x10(%rsp)
leaq 0x20(%rdi), %r12
movq %r12, 0x10(%rdi)
xorl %eax, %eax
movq %rax, 0x18(%rdi)
movb $0x0, 0x20(%rdi)
movq %rax, (%rdi)
callq 0x4280
movq %rax, (%rbx)
movq 0x10(%rsp), %rdi
movq %rdi, 0x8(%rbx)
callq 0x47b0
movslq %eax, %rdi
callq 0x4030
movq %rax, 0x18(%rsp)
callq 0x4230
movq %rax, %rdi
callq 0x4840
movslq %eax, %rdi
callq 0x4030
movq %rax, %r14
movq (%rbx), %r15
callq 0x4230
movl $0x1, (%rsp)
leaq 0x18(%rsp), %rdx
leaq 0x24(%rsp), %rcx
leaq 0x10(%rsp), %r9
movq %r15, %rdi
movq %rax, %rsi
movq %r14, %r8
callq 0x48a0
testl %eax, %eax
je 0x9c87
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x1963(%rip), %rdi      # 0xb5f1
callq 0x43b0
jmp 0x9c7b
jmp 0x9c9b
jmp 0x9c9b
jmp 0x9c9b
movq %rax, %r14
movq 0x10(%rbx), %rdi
cmpq %r12, %rdi
je 0x9cb3
movq (%r12), %rsi
incq %rsi
callq 0x4450
movq %r14, %rdi
callq 0x47d0
nop
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/RSAEncryptManager.cpp
// Function: RSAEncryptManager::RSAFinal(EncryptedChunk&)
bool RSAEncryptManager::RSAFinal(EncryptedChunk& ec){

  int len;

  if(!EVP_SealFinal(this->mdctx, (unsigned char*)ec.getCipherText() + ec.size, &len)){
    perror("Error in RSA_Final");
    return false;
  }

  ec.size += len;
  return true;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq (%rdi), %r14
movq %rsi, %rdi
callq 0xa516
movslq 0x10(%rbx), %rsi
addq %rax, %rsi
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x44a0
movl %eax, %ebp
testl %eax, %eax
je 0x9d63
movl 0xc(%rsp), %eax
addl %eax, 0x10(%rbx)
testl %ebp, %ebp
setne %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x18f8(%rip), %rdi      # 0xb662
callq 0x43b0
jmp 0x9d55
nop
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/RSADecryptManager.cpp
// Function: RSADecryptManager::RSADecryptManager(char const*, unsigned int)
RSADecryptManager::RSADecryptManager(const char *privkey_path,uint32_t key_len){
  
  this->mdctx = NULL;

  this->mdctx = EVP_CIPHER_CTX_new();
  //size_t key_hmac_size = sizeof(KEY_HMAC);
  
  FILE* privkey_file = fopen(privkey_path, "r");
  if(!privkey_file){ 
    cerr << "Error: cannot open file '" << privkey_path << "' (missing?)\n"; 
    exit(1); 
  }

  this->privkey = PEM_read_PrivateKey(privkey_file, NULL, NULL, NULL);
  fclose(privkey_file);

  if(!this->privkey){ 
    cerr << "Error: PEM_read_PUBKEY returned NULL\n"; 
    exit(1); 
  }

  this->key = new unsigned char[key_len];
  this->iv = new unsigned char[EVP_CIPHER_iv_length(EVP_aes_128_cbc())];

  if(!EVP_OpenInit(this->mdctx,EVP_aes_128_cbc(),key,key_len,iv,this->privkey)){
      perror("Error In RSA_Init_ex");
  }

}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
movq $0x0, (%rdi)
callq 0x4280
movq %rax, (%r14)
leaq 0x155f(%rip), %rsi      # 0xb329
movq %r15, %rdi
callq 0x4510
testq %rax, %rax
je 0x9e6f
movq %rax, %r12
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4310
movq %rax, 0x8(%r14)
movq %r12, %rdi
callq 0x4430
cmpq $0x0, 0x8(%r14)
je 0x9e99
movl %ebx, %edi
callq 0x4030
movq %rax, 0x18(%r14)
callq 0x4230
movq %rax, %rdi
callq 0x4840
movslq %eax, %rdi
callq 0x4030
movq %rax, 0x10(%r14)
movq (%r14), %r15
callq 0x4230
movq 0x18(%r14), %rdx
movq 0x8(%r14), %r9
movq 0x10(%r14), %r8
movq %r15, %rdi
movq %rax, %rsi
movl %ebx, %ecx
callq 0x43f0
testl %eax, %eax
je 0x9e58
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x1792(%rip), %rdi      # 0xb5f1
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x43b0
movq 0x6172(%rip), %rdi      # 0xffe8
leaq 0x13ce(%rip), %rsi      # 0xb24b
callq 0x4420
movq %rax, %rdi
movq %r15, %rsi
callq 0x4420
leaq 0x13d1(%rip), %rsi      # 0xb265
movq %rax, %rdi
jmp 0x9ea7
movq 0x6148(%rip), %rdi      # 0xffe8
leaq 0x1724(%rip), %rsi      # 0xb5cb
callq 0x4420
movl $0x1, %edi
callq 0x4560
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/RSADecryptManager.cpp
// Function: RSADecryptManager::RSAFinal(Chunk&)
bool RSADecryptManager::RSAFinal(Chunk& c){

  int len;

  if(!EVP_OpenFinal(this->mdctx, (unsigned char*)c.getPlainText() + c.size, &len)){
    perror("Error in RSA_Final");
    return false;
  }

  c.size += len;
  return true;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq (%rdi), %r14
movq %rsi, %rdi
callq 0xa446
movslq 0x10(%rbx), %rsi
addq %rax, %rsi
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x44c0
movl %eax, %ebp
testl %eax, %eax
je 0x9f5d
movl 0xc(%rsp), %eax
addl %eax, 0x10(%rbx)
testl %ebp, %ebp
setne %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x16fe(%rip), %rdi      # 0xb662
callq 0x43b0
jmp 0x9f4f
nop
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/DHManager.cpp
// Function: DHManager::DHManager(char const*)
DHManager::DHManager(const char *path){

	FILE* dh_params = fopen(path, "r");
	if(!dh_params){ cerr << "Error: cannot open file '" << path << "' (missing?)\n"; exit(1); }
	this->session = PEM_read_DHparams(dh_params, NULL, NULL, NULL);
	fclose(dh_params);
	if(!this->session){ cerr << "Error: PEM_read_DHparams returned NULL\n"; exit(1); }

	int res;

	if(DH_check(this->session,&res) != 1){
		cout<<"Errore"<<endl;
	} 

	if(res != 0){
		cerr<<"Error in DH params"<<endl;
		exit(-1);
	}

}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1393(%rip), %rsi      # 0xb329
movq %r14, %rdi
callq 0x4510
testq %rax, %rax
je 0xa031
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x41a0
movq %rax, (%rbx)
movq %r15, %rdi
callq 0x4430
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xa05b
leaq 0xc(%rsp), %rsi
callq 0x42a0
cmpl $0x1, %eax
je 0xa020
movq 0x5fdb(%rip), %rbx      # 0xffc0
leaq 0x1956(%rip), %rsi      # 0xb942
movl $0x6, %edx
movq %rbx, %rdi
callq 0x44e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4410
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x42f0
cmpl $0x0, 0xc(%rsp)
jne 0xa078
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x5fb0(%rip), %rdi      # 0xffe8
leaq 0x120c(%rip), %rsi      # 0xb24b
callq 0x4420
movq %rax, %rdi
movq %r14, %rsi
callq 0x4420
leaq 0x120f(%rip), %rsi      # 0xb265
movq %rax, %rdi
jmp 0xa069
movq 0x5f86(%rip), %rdi      # 0xffe8
leaq 0x18b1(%rip), %rsi      # 0xb91a
callq 0x4420
movl $0x1, %edi
callq 0x4560
movq 0x5f69(%rip), %rdi      # 0xffe8
leaq 0x18c3(%rip), %rsi      # 0xb949
callq 0x4420
movq %rax, %rdi
callq 0x41e0
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x4560
nop
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/DHManager.cpp
// Function: DHManager::generatePublicKey(int&)
char * DHManager::generatePublicKey(int &len){
	if(DH_generate_key(this->session) != 1){
		cerr<<"Error in DH_generate_key"<<endl;
		return NULL;
	}

	BIGNUM *pub_key;
	DH_get0_key(this->session,(const BIGNUM**)&pub_key,NULL);

	unsigned char *return_value = new unsigned char[BN_num_bytes(pub_key)];


	len = BN_bn2bin(pub_key,return_value);
	if(len <= 0){
		delete[] return_value;
		return NULL;
	}

	return (char*)return_value;

}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
callq 0x4140
cmpl $0x1, %eax
jne 0xa108
movq (%r14), %rdi
leaq 0x8(%rsp), %r15
movq %r15, %rsi
xorl %edx, %edx
callq 0x42c0
movq (%r15), %rdi
callq 0x44f0
leal 0x7(%rax), %ecx
addl $0xe, %eax
testl %ecx, %ecx
cmovnsl %ecx, %eax
sarl $0x3, %eax
movslq %eax, %rdi
callq 0x4030
movq %rax, %r14
movq (%r15), %rdi
movq %rax, %rsi
callq 0x4580
movl %eax, (%rbx)
testl %eax, %eax
jg 0xa14d
movq %r14, %rdi
callq 0x45c0
jmp 0xa14a
movq 0x5ed9(%rip), %rbx      # 0xffe8
leaq 0x1846(%rip), %rsi      # 0xb95c
movl $0x18, %edx
movq %rbx, %rdi
callq 0x44e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4410
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x42f0
xorl %r14d, %r14d
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/DHManager.cpp
// Function: DHManager::computeSimmetricKey(char const*, unsigned int, int&)
char * DHManager::computeSimmetricKey(const char *received_data,uint32_t len,int &key_len){

	BIGNUM *opponent_pubkey = BN_bin2bn((const unsigned char*)received_data,len,NULL);
	unsigned char* key = new unsigned char[DH_size(this->session)];
	key_len = DH_compute_key(key,opponent_pubkey,this->session);

	BN_free(opponent_pubkey);

	if(key_len <=0)
		return NULL;

	return (char*)key;

}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdi, %r14
xorl %r13d, %r13d
movq %rsi, %rdi
movl %edx, %esi
xorl %edx, %edx
callq 0x4130
movq %rax, %r15
movq (%r14), %rdi
callq 0x4320
movslq %eax, %rdi
callq 0x4030
movq %rax, %r12
movq (%r14), %rdx
movq %rax, %rdi
movq %r15, %rsi
callq 0x44b0
movl %eax, (%rbx)
movq %r15, %rdi
callq 0x4630
cmpl $0x0, (%rbx)
cmovleq %r13, %r12
movq %r12, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/HashManager.cpp
// Function: HashManager::HashFinal()
char* HashManager::HashFinal(){
  unsigned int hash_size = EVP_MD_size(EVP_sha256());
  char *digest = new char [HASH_SIZE];

  if(!EVP_DigestFinal(mdctx, (unsigned char*) digest,&hash_size)){
    perror("Error in EVP_DigestFinal");
    return NULL;
  }

  return digest;

}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
callq 0x4780
movq %rax, %rdi
callq 0x4190
leaq 0xc(%rsp), %r15
movl %eax, (%r15)
movl $0x20, %edi
callq 0x4030
movq %rax, %rbx
movq (%r14), %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x4670
testl %eax, %eax
je 0xa2e7
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x16b9(%rip), %rdi      # 0xb9a7
callq 0x43b0
xorl %ebx, %ebx
jmp 0xa2da
nop
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/Chunk.cpp
// Function: Chunk::clean()
void Chunk::clean(){
	if(plaintext != NULL && shouldFree){
		delete[] plaintext;
		plaintext = NULL;
		shouldFree = false;
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0xa3d2
cmpb $0x1, (%rbx)
jne 0xa3d2
callq 0x45c0
movq $0x0, 0x8(%rbx)
movb $0x0, (%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/library/Chunk.cpp
// Function: EncryptedChunk::clean()
void EncryptedChunk::clean(){
	if(ciphertext != NULL && shouldFree){
		delete[] ciphertext;
		ciphertext = NULL;
		shouldFree = false;
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0xa4da
cmpb $0x1, (%rbx)
jne 0xa4da
callq 0x45c0
movq $0x0, 0x8(%rbx)
movb $0x0, (%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/iZhangHui[P]CppPrimer/CH12_DynamicMemory/exercises/ex12_10.cc
// Function: main
int main(int argc, char const *argv[])
{
	shared_ptr<int> p(new int(42));

	cout << p.use_count() << endl;
	process(shared_ptr<int>(p));
	cout << p.use_count() << endl;

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x28, %rsp
movl $0x4, %edi
callq 0x10a0
movl $0x2a, (%rax)
leaq -0x10(%rbp), %rbx
movq %rax, -0x8(%rbx)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1478
movq (%rbx), %rax
testq %rax, %rax
je 0x12f8
movl 0x8(%rax), %eax
movslq %eax, %rsi
jmp 0x12fa
xorl %esi, %esi
movq 0x2cd7(%rip), %rdi      # 0x3fd8
callq 0x1080
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1090
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1060
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, -0x28(%rbp)
movq %rax, -0x20(%rbp)
testq %rax, %rax
je 0x135a
movq 0x2c84(%rip), %rcx      # 0x3fd0
cmpb $0x0, (%rcx)
je 0x1356
incl 0x8(%rax)
jmp 0x135a
lock
incl 0x8(%rax)
leaq -0x28(%rbp), %rdi
callq 0x124c
movq -0x20(%rbp), %rdi
testq %rdi, %rdi
je 0x1371
callq 0x140c
movq -0x10(%rbp), %rax
testq %rax, %rax
je 0x1382
movl 0x8(%rax), %eax
movslq %eax, %rsi
jmp 0x1384
xorl %esi, %esi
movq 0x2c4d(%rip), %rdi      # 0x3fd8
callq 0x1080
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1090
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1060
movq -0x10(%rbp), %rdi
testq %rdi, %rdi
je 0x13c8
callq 0x140c
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %rbp
retq
movq %rax, %rbx
movq -0x20(%rbp), %rdi
testq %rdi, %rdi
je 0x13e7
callq 0x140c
jmp 0x13e7
movq %rax, %rbx
movq -0x10(%rbp), %rdi
testq %rdi, %rdi
je 0x13f5
callq 0x140c
movq %rbx, %rdi
callq 0x1100
// File: /workspace/github_cpp_makefile_star2_O1/aempirei[P]Chat-Art/include/ansi.hh
// Function: ansi::esc(std::__cxx11::list<int, std::allocator<int>> const&, char)
std::string esc(const std::list<int>& args, char mode) {

		std::stringstream ss;
		auto iter = args.begin();

		ss << start;

		if(iter != args.end()) {
			ss << *iter;

			for(iter++; iter != args.end(); iter++) {
				ss << ';' << *iter;

			}
		}

		ss << mode;

		return ss.str();
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2120
movq (%r15), %r13
leaq 0x20(%rsp), %r14
movq 0x5c12(%rip), %rsi      # 0x8208
movq 0x5c13(%rip), %rdx      # 0x8210
movq %r14, %rdi
callq 0x21f0
cmpq %r15, %r13
je 0x2647
movl 0x10(%r13), %esi
movq %r14, %rdi
callq 0x22f0
leaq 0xf(%rsp), %r12
movq (%r13), %r13
cmpq %r15, %r13
je 0x2647
movb $0x3b, 0xf(%rsp)
movl $0x1, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x21f0
movl 0x10(%r13), %esi
movq %rax, %rdi
callq 0x22f0
jmp 0x261b
leaq 0xf(%rsp), %rsi
movb %bpl, (%rsi)
movl $0x1, %edx
movq %r14, %rdi
callq 0x21f0
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x22a0
movq 0x5938(%rip), %rsi      # 0x7fa8
leaq 0x10(%rsp), %rdi
callq 0x2140
leaq 0x90(%rsp), %rdi
callq 0x20b0
movq %rbx, %rax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x269e
movq %rax, %rbx
movq 0x5900(%rip), %rsi      # 0x7fa8
leaq 0x10(%rsp), %rdi
callq 0x2140
leaq 0x90(%rsp), %rdi
callq 0x20b0
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O1/aempirei[P]Chat-Art/include/geometry.hh
// Function: geometry::to_string[abi:cxx11]() const
std::string geometry::to_string() const {

	char buf[128];
	char modebuf[128];

	switch(mode) {

		case geometry::BGCOLOR: 
		case geometry::FGCOLOR: 

			snprintf(modebuf, sizeof(modebuf), " color %3d %3d %3d   # %s%s", color[0], color[1], color[2],
					base ? "bold " : "", ansi::color_name[code]
					);
			break;

		case geometry::SYMBOL:

			snprintf(modebuf, sizeof(modebuf), " ratio %2d %2d size %d %d   # (%c)",
					ratio, ratio_max - ratio,
					(int)size[1], (int)size[0], base + code
				);
			break;

		case geometry::NOP:
		default:
			*modebuf = '\0';
	}



	snprintf(buf, sizeof(buf), "mcb %2d %2d %2d%s", mode, code, base, modebuf);

	return std::string(buf);

}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rsi, %r14
movq %rdi, %rbx
movl 0x18(%rsi), %eax
leal -0x1(%rax), %ecx
cmpl $0x2, %ecx
jae 0x2756
movl 0x8(%r14), %ecx
movl 0xc(%r14), %r8d
movl 0x10(%r14), %r9d
cmpl $0x0, 0x20(%r14)
leaq 0x2ca1(%rip), %rax      # 0x53ca
leaq 0x2953(%rip), %r10      # 0x5083
cmoveq %rax, %r10
movslq 0x1c(%r14), %r11
leaq 0x5a71(%rip), %r15      # 0x81b0
leaq 0x2921(%rip), %rdx      # 0x5067
movq %rsp, %rdi
movl $0x80, %esi
xorl %eax, %eax
pushq (%r15,%r11,8)
jmp 0x278a
cmpl $0x3, %eax
jne 0x2797
movl 0x14(%r14), %ecx
movl $0x3f, %r8d
subl %ecx, %r8d
movl (%r14), %r10d
movl 0x4(%r14), %r9d
movl 0x1c(%r14), %r11d
addl 0x20(%r14), %r11d
leaq 0x290b(%rip), %rdx      # 0x5089
movq %rsp, %rdi
movl $0x80, %esi
xorl %eax, %eax
pushq %r11
pushq %r10
callq 0x22b0
addq $0x10, %rsp
jmp 0x279b
movb $0x0, (%rsp)
movl 0x18(%r14), %ecx
movl 0x1c(%r14), %r8d
movl 0x20(%r14), %r9d
subq $0x8, %rsp
leaq 0x8(%rsp), %r10
leaq 0x28f5(%rip), %rdx      # 0x50ac
leaq 0x88(%rsp), %r14
movl $0x80, %esi
movq %r14, %rdi
xorl %eax, %eax
pushq %r10
callq 0x22b0
addq $0x10, %rsp
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq %r14, %rdi
callq 0x20e0
leaq (%rsp,%rax), %rdx
addq $0x80, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x43fe
movq %rbx, %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/aempirei[P]Chat-Art/include/pnm.hh
// Function: pnm::pnm(_IO_FILE*)
pnm::pnm(FILE *fp) {

	const unsigned int expected_mv = 255;

	unsigned int w;
	unsigned int h;
	unsigned int mv;

	if(fscanf(fp, "P6 %u %u %u", &w, &h, &mv) == 3) {

		int ch = fgetc(fp);

		if(isspace(ch) && mv == expected_mv) {

			data = new rgb_t[w * h];

			if(fread(data, sizeof(rgb_t), w * h, fp) == w * h) {
				width = w;
				height = h;
			} else {
				free();
			}
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x2890(%rip), %rsi      # 0x50be
leaq 0x8(%rsp), %rdx
leaq 0x4(%rsp), %rcx
leaq 0xc(%rsp), %r8
movq %r14, %rdi
xorl %eax, %eax
callq 0x2320
cmpl $0x3, %eax
jne 0x28c5
movq %r14, %rdi
callq 0x2290
movl %eax, %edi
callq 0x2070
testl %eax, %eax
je 0x28c5
cmpl $0xff, 0xc(%rsp)
jne 0x28c5
movl 0x4(%rsp), %r15d
imull 0x8(%rsp), %r15d
leaq (%r15,%r15,2), %rdi
callq 0x2030
movq %rax, 0x10(%rbx)
movl $0x3, %esi
movq %rax, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq 0x2260
movl 0x8(%rsp), %ecx
movl 0x4(%rsp), %edx
movl %edx, %esi
imull %ecx, %esi
cmpq %rsi, %rax
jne 0x28af
movq %rcx, (%rbx)
movq %rdx, 0x8(%rbx)
jmp 0x28c5
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x28c5
callq 0x2220
movq $0x0, 0x10(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/aempirei[P]Chat-Art/include/pnm.hh
// Function: pnm::free()
bool pnm::free() {
	if(data != NULL) {
		delete data;
		data = NULL;
		return true;
	}
	return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %rbx
testq %rbx, %rbx
je 0x28f0
movq %rdi, %r14
movq %rbx, %rdi
callq 0x2220
movq $0x0, 0x10(%r14)
testq %rbx, %rbx
setne %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/aempirei[P]Chat-Art/include/tile.hh
// Function: tile::set_status(geometry::mode_type, int, int)
tile& tile::set_status(geometry::mode_type my_mode, int my_code, int my_base) {
	geo.mode = my_mode;
	geo.code = my_code;
	geo.base = my_base;
	return *this;
}

// Assembly:
movq %rdi, %rax
movl %esi, 0x20(%rdi)
movl %edx, 0x24(%rdi)
movl %ecx, 0x28(%rdi)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/aempirei[P]Chat-Art/include/tile.hh
// Function: tile::move(long, long)
const pos_t& tile::move(ssize_t lines, ssize_t columns) {

	pos[1] += lines * geo.size[1];
	pos[0] += columns * geo.size[0];

	sum(rgb_sum);
	mean(rgb_mean);
	stdev(rgb_stdev);

	set_color_lum();

	return pos;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
imull 0xc(%rdi), %esi
addl %esi, 0x30(%rdi)
leaq 0x2c(%rdi), %r14
imull 0x8(%rdi), %edx
addl %edx, 0x2c(%rdi)
leaq 0x40(%rdi), %rsi
callq 0x2a10
movslq 0x8(%rbx), %rax
movslq 0xc(%rbx), %rcx
imulq %rax, %rcx
movl $0xd, %esi
movslq 0xc(%rbx,%rsi,4), %rax
xorl %edx, %edx
divq %rcx
andl $-0x2, %eax
movl %eax, (%rbx,%rsi,4)
incq %rsi
cmpq $0x10, %rsi
jne 0x29d7
leaq 0x4c(%rbx), %rsi
movq %rbx, %rdi
callq 0x2aba
movq %rbx, %rdi
callq 0x2bb6
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/aempirei[P]Chat-Art/include/tile.hh
// Function: tile::sum(int (&) [3]) const
const rgb_sum_t& tile::sum(rgb_sum_t& v) const {

	v[0] = v[1] = v[2] = 0;

	for(int y = 0; y < geo.size[1]; y++) {
		for(int x = 0; x < geo.size[0]; x++) {

			const rgb_t& w = *pixel(y,x);

			for(int i = 0; i < 3; i++)
				v[i] += w[i];
		}
	}

	return v;
}

// Assembly:
movq %rsi, %rax
movl $0x0, 0x8(%rsi)
movq $0x0, (%rsi)
cmpl $0x0, 0xc(%rdi)
jle 0x2a8c
pushq %rbx
movq (%rdi), %rcx
xorl %edx, %edx
cmpl $0x0, 0x8(%rdi)
jle 0x2a7f
movq (%rcx), %r8
movq 0x10(%rcx), %rsi
leaq (%r8,%r8,2), %r8
xorl %r9d, %r9d
movslq 0x30(%rdi), %r11
movslq 0x2c(%rdi), %r10
addq %rdx, %r11
imulq %r8, %r11
leaq (%r10,%r10,2), %r10
addq %rsi, %r10
addq %r11, %r10
xorl %r11d, %r11d
movzbl (%r10,%r11), %ebx
addl %ebx, (%rax,%r11,4)
incq %r11
cmpq $0x3, %r11
jne 0x2a5d
incq %r9
movslq 0x8(%rdi), %r10
addq $0x3, %rsi
cmpq %r10, %r9
jl 0x2a41
incq %rdx
movslq 0xc(%rdi), %rsi
cmpq %rsi, %rdx
jl 0x2a2d
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/aempirei[P]Chat-Art/include/tile.hh
// Function: tile::stdev(int (&) [3]) const
const rgb_sum_t& tile::stdev(rgb_sum_t& v) const {

	v[0] = v[1] = v[2] = 0;

	for(int y = 0; y < geo.size[1]; y++) {
		for(int x = 0; x < geo.size[0]; x++) {

			const rgb_t& w = *pixel(y,x);

			for(int i = 0; i < 3; i++) {
				int32_t xx = w[i] - rgb_mean[i];
				v[i] += xx * xx;
			}
		}
	}

	for(int i = 0; i < 3; i++)
		v[i] = (int32_t)rint(sqrt((double)v[i] / n()));

	return v;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl $0x0, 0x8(%rsi)
movq $0x0, (%rsi)
cmpl $0x0, 0xc(%rdi)
jle 0x2b45
movq (%r14), %rax
xorl %ecx, %ecx
cmpl $0x0, 0x8(%r14)
jle 0x2b39
movq (%rax), %rsi
movq 0x10(%rax), %rdx
leaq (%rsi,%rsi,2), %rsi
xorl %edi, %edi
movslq 0x30(%r14), %r9
movslq 0x2c(%r14), %r8
addq %rcx, %r9
imulq %rsi, %r9
leaq (%r8,%r8,2), %r8
addq %rdx, %r8
addq %r9, %r8
xorl %r9d, %r9d
movzbl (%r8,%r9), %r10d
subl 0x34(%r14,%r9,4), %r10d
imull %r10d, %r10d
addl %r10d, (%rbx,%r9,4)
incq %r9
cmpq $0x3, %r9
jne 0x2b0e
incq %rdi
movslq 0x8(%r14), %r8
addq $0x3, %rdx
cmpq %r8, %rdi
jl 0x2af2
incq %rcx
movslq 0xc(%r14), %rdx
cmpq %rdx, %rcx
jl 0x2ade
xorl %r15d, %r15d
xorps %xmm0, %xmm0
cvtsi2sdl (%rbx,%r15,4), %xmm0
movslq 0x8(%r14), %rax
movslq 0xc(%r14), %rcx
imulq %rax, %rcx
movq %rcx, %xmm1
punpckldq 0x24a6(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x24ae(%rip), %xmm1     # 0x5020
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
ucomisd 0x24a6(%rip), %xmm0     # 0x5030
jb 0x2b92
sqrtsd %xmm0, %xmm0
jmp 0x2b97
callq 0x2160
callq 0x2230
cvttsd2si %xmm0, %eax
movl %eax, (%rbx,%r15,4)
incq %r15
cmpq $0x3, %r15
jne 0x2b48
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/aempirei[P]Chat-Art/include/tile.hh
// Function: tile::set_color_lum()
void tile::set_color_lum() {
	geo.ratio = 0;
	for(int i = 0; i < 3; i++) {
		uint8_t level = (uint8_t)(rgb_sum[i] / n()) >> geometry::ratio_shift;
		geo.color[i] = rgb_mean[i] & mean_mask;
		if(level > geo.ratio)
			geo.ratio = level;
	}
}

// Assembly:
movl $0x0, 0x1c(%rdi)
movslq 0x8(%rdi), %rax
movslq 0xc(%rdi), %rcx
imulq %rax, %rcx
movq $-0x3, %rsi
movslq 0x4c(%rdi,%rsi,4), %rax
xorl %edx, %edx
divq %rcx
shrl $0x2, %eax
movl 0x40(%rdi,%rsi,4), %edx
andl $-0x2, %edx
movl %edx, 0x1c(%rdi,%rsi,4)
andl $0x3f, %eax
cmpl 0x1c(%rdi), %eax
jle 0x2bf3
movl %eax, 0x1c(%rdi)
incq %rsi
jne 0x2bd0
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/aempirei[P]Chat-Art/calibration.cc
// Function: try_code(pnm const&, unsigned int, int, int, int)
bool try_code(const pnm& snapshot, code_t code, int x0, int y, int dx) {

	const rgb_t *c[2] = { NULL, NULL };

	for(int column = 0; column < code_sz; column++) {

		size_t x = x0 + column * dx;

		if(x >= snapshot.width)
			return false;

		const rgb_t *pixel = snapshot.pixel(y, x);

		int bit = BIT_ISSET(code, column);

		if(c[bit] == NULL) {

			c[bit] = pixel;

			if(c[0] != NULL && c[1] != NULL && rgb::equals(*c[0], *c[1]))
				return false;

		} else if(!rgb::equals(*pixel, *c[bit])) { 
			return false;
		}
	}

	return true;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
xorps %xmm0, %xmm0
movaps %xmm0, -0x10(%rsp)
movq (%rdi), %r9
movslq %edx, %rdx
cmpq %rdx, %r9
jbe 0x2f03
movslq %ecx, %rax
movslq %r8d, %rcx
imulq %r9, %rax
leaq (%rax,%rax,2), %rax
leaq (%rdx,%rdx,2), %r8
addq 0x10(%rdi), %r8
addq %rax, %r8
leaq (%rcx,%rcx,2), %rdi
xorl %eax, %eax
xorl %r10d, %r10d
xorl %ebx, %ebx
btl %r10d, %esi
setb %bl
movq -0x10(%rsp,%rbx,8), %r11
testq %r11, %r11
je 0x2ea4
movb (%r8), %bl
cmpb (%r11), %bl
jne 0x2f05
movb 0x1(%r8), %bl
cmpb 0x1(%r11), %bl
jne 0x2f05
movb 0x2(%r8), %bl
cmpb 0x2(%r11), %bl
je 0x2ee6
jmp 0x2f05
movq %r8, -0x10(%rsp,%rbx,8)
movq -0x10(%rsp), %r11
movq -0x8(%rsp), %rbx
testq %r11, %r11
setne %bpl
testq %rbx, %rbx
setne %r14b
andb %bpl, %r14b
cmpb $0x1, %r14b
jne 0x2ee6
movb (%r11), %bpl
cmpb (%rbx), %bpl
jne 0x2ee6
movb 0x1(%r11), %bpl
cmpb 0x1(%rbx), %bpl
jne 0x2ee6
movb 0x2(%r11), %r11b
cmpb 0x2(%rbx), %r11b
je 0x2f05
cmpq $0x1f, %r10
setae %al
je 0x2f05
addq %rdi, %r8
addq %rcx, %rdx
incq %r10
cmpq %rdx, %r9
ja 0x2e73
jmp 0x2f05
xorl %eax, %eax
andb $0x1, %al
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/aempirei[P]Chat-Art/calibration.cc
// Function: find_code(pnm const&, int, unsigned int, int*, int*)
bool find_code(const pnm& snapshot, int y0, code_t code, pos_t pos, int *tile_width) {

	size_t max_tile_width = snapshot.width / code_sz;

	for(int dx = max_tile_width; dx > 0; dx--) {

		size_t tile_columns = snapshot.width / dx;
		size_t x_offset = snapshot.width % dx;

		for(size_t column = 0; column + code_sz - 1 < tile_columns; column++) {

			for(size_t y = y0; y < snapshot.height; y++) {

				int x0 = column * dx + x_offset;

				if(try_code(snapshot, code, x0, y, dx)) {

					while(try_code(snapshot, code, x0 - 1, y, dx))
						x0--;

					pos[0] = x0;
					pos[1] = y;

					*tile_width = dx;

					return true;
				}
			}
		}
	}

	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r8, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
movq (%rdi), %rcx
movq %rcx, %r13
shrq $0x5, %r13
testl %r13d, %r13d
setg %al
jle 0x3046
movl %edx, %ebp
movq %rdi, %r12
movslq %esi, %rdx
movq %rdx, 0x20(%rsp)
movq 0x8(%rdi), %r14
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
movq %rcx, 0x28(%rsp)
movq %r14, 0x40(%rsp)
movb %al, 0xe(%rsp)
movq %rcx, %rax
xorl %edx, %edx
divq %r13
movq %rdx, 0x30(%rsp)
movq %rax, 0x38(%rsp)
cmpq $0x20, %rax
jb 0x3027
movq $0x0, 0x10(%rsp)
cmpq 0x20(%rsp), %r14
jbe 0x300a
movq 0x10(%rsp), %rax
movl %eax, %r15d
imull %r13d, %r15d
addl 0x30(%rsp), %r15d
movq 0x20(%rsp), %rbx
movl %r15d, 0x1c(%rsp)
movq %r12, %rdi
movl %ebp, %esi
movl %r15d, %edx
movl %ebx, %ecx
movl %r13d, %r8d
callq 0x2e36
testb %al, %al
je 0x3002
movb %al, 0xf(%rsp)
movl %r15d, %r14d
leal -0x1(%r14), %r15d
movq %r12, %rdi
movl %ebp, %esi
movl %r15d, %edx
movl %ebx, %ecx
movl %r13d, %r8d
callq 0x2e36
testb %al, %al
jne 0x2fc1
movq 0x48(%rsp), %rax
movl %r14d, (%rax)
movl %ebx, 0x4(%rax)
movq 0x50(%rsp), %rax
movl %r13d, (%rax)
cmpb $0x0, 0xf(%rsp)
movq 0x40(%rsp), %r14
movl 0x1c(%rsp), %r15d
jne 0x3042
incq %rbx
cmpq %r14, %rbx
jne 0x2fa7
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rax
addq $0x20, %rcx
cmpq 0x38(%rsp), %rcx
movq %rax, 0x10(%rsp)
jb 0x2f85
leaq -0x1(%r13), %rcx
cmpq $0x2, %r13
setge %al
movq %rcx, %r13
movq 0x28(%rsp), %rcx
jge 0x2f5c
jmp 0x3046
movb 0xe(%rsp), %al
andb $0x1, %al
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq