//
// COMP_CTX_new from 0xd81400 to 0xd81484 (132 bytes)
//
// 5 xrefs:
// > ssl3_change_cipher_state @ 0xd5ec74
// > ssl3_change_cipher_state @ 0xd5ed80
// > tls1_change_cipher_state @ 0xd60c08
// > tls1_change_cipher_state @ 0xd60e84
// > ??> @ 0xc6f30
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
_QWORD *__fastcall COMP_CTX_new(__int64 a1)
{
_QWORD *v2; // x0
_QWORD *v3; // x19
unsigned int (*v4)(void); // x1
v2 = (_QWORD *)CRYPTO_zalloc(48, "crypto/comp/comp_lib.c", 21);
v3 = v2;
if ( !v2 )
return v3;
v4 = *(unsigned int (**)(void))(a1 + 16);
*v2 = a1;
if ( !v4 || v4() )
return v3;
CRYPTO_free(v3, "crypto/comp/comp_lib.c", 25);
return nullptr;
}