//
// ssl3_new from 0xd378cc to 0xd37934 (104 bytes)
//
// 3 xrefs:
// > tls1_new @ 0xd5568c
// > dtls1_new @ 0xd5cdd4
// > ??> @ 0x54d20
//
// 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
//
__int64 __fastcall ssl3_new(__int64 a1)
{
__int64 v2; // x0
v2 = CRYPTO_zalloc(1024, "ssl/s3_lib.c", 2799);
if ( !v2 )
return 0;
*(_QWORD *)(a1 + 144) = v2;
if ( !(unsigned int)SSL_SRP_CTX_init(a1) )
return 0;
(*(void (__fastcall **)(__int64))(*(_QWORD *)(a1 + 8) + 24LL))(a1);
return 1;
}