//
// COMP_CTX_new from 0x9ee504 to 0x9ee56c (104 bytes)
//
// 5 xrefs:
// > ssl3_change_cipher_state @ 0x9ccd28
// > ssl3_change_cipher_state @ 0x9cce2c
// > tls1_change_cipher_state @ 0x9cee70
// > tls1_change_cipher_state @ 0x9cf130
// > ??> @ 0x7776c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:07:28 +0000
//
_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;
}