//
// DTLS_RECORD_LAYER_new from 0xd30264 to 0xd30338 (212 bytes)
//
// 2 xrefs:
// > dtls1_new @ 0xd5cdb4
// > ??> @ 0xbcbf8
//
// 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 DTLS_RECORD_LAYER_new(__int64 a1)
{
__int64 v2; // x0
_QWORD *v3; // x19
__int64 v4; // x1
__int64 v5; // x0
v2 = CRYPTO_malloc(128, "ssl/record/rec_layer_d1.c", 22);
v3 = (_QWORD *)v2;
if ( !v2 )
return 0;
*(_QWORD *)(a1 + 3464) = v2;
*(_QWORD *)(v2 + 48) = pqueue_new();
v3[8] = pqueue_new();
v4 = pqueue_new();
v5 = v3[6];
v3[10] = v4;
if ( v5 && v4 && v3[8] )
return 1;
((void (*)(void))pqueue_free)();
pqueue_free(v3[8]);
pqueue_free(v3[10]);
CRYPTO_free(v3, "ssl/record/rec_layer_d1.c", 36);
*(_QWORD *)(a1 + 3464) = 0;
return 0;
}