//
// COMP_CTX_new from 0x7d9904 to 0x7d996c (104 bytes)
//
// 5 xrefs:
// > ssl3_change_cipher_state @ 0x7b8124
// > ssl3_change_cipher_state @ 0x7b8228
// > tls1_change_cipher_state @ 0x7ba26c
// > tls1_change_cipher_state @ 0x7ba52c
// > ??> @ 0x5dcec
//
// 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
//
_DWORD *__fastcall COMP_CTX_new(int a1)
{
_DWORD *result; // r0
_DWORD *v3; // r4
int (*v4)(void); // r3
int v5; // r5
result = (_DWORD *)CRYPTO_zalloc(24, "crypto/comp/comp_lib.c", 21);
v3 = result;
if ( result )
{
v4 = *(int (**)(void))(a1 + 8);
*result = a1;
if ( v4 )
{
v5 = v4();
result = v3;
if ( !v5 )
{
CRYPTO_free(v3, "crypto/comp/comp_lib.c", 25);
return nullptr;
}
}
}
return result;
}