//
// COMP_CTX_new from 0xfff760 to 0xfff7e4 (132 bytes)
//
// 5 xrefs:
// > ssl3_change_cipher_state @ 0xfdcfc8
// > ssl3_change_cipher_state @ 0xfdd0d4
// > tls1_change_cipher_state @ 0xfdef5c
// > tls1_change_cipher_state @ 0xfdf1d8
// > ??> @ 0x102dc0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:15:53 +0000
//
_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;
}