//
// DTLS_RECORD_LAYER_new from 0x99b594 to 0x99b63c (168 bytes)
//
// 2 xrefs:
// > dtls1_new @ 0x9cab60
// > ??> @ 0x73f0c
//
// 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:06:45 +0000
//
int __fastcall DTLS_RECORD_LAYER_new(int a1)
{
int v2; // r0
_DWORD *v3; // r4
int v4; // r3
int v5; // r0
int v6; // r2
bool v7; // zf
v2 = CRYPTO_malloc(92, "ssl/record/rec_layer_d1.c", 22);
v3 = (_DWORD *)v2;
if ( !v2 )
return 0;
*(_DWORD *)(a1 + 2288) = v2;
*(_DWORD *)(v2 + 32) = pqueue_new();
v3[10] = pqueue_new();
v4 = pqueue_new();
v5 = v3[8];
v3[12] = v4;
if ( v5 )
{
v6 = v3[10];
v7 = v6 == 0;
if ( v6 )
v7 = v4 == 0;
if ( !v7 )
return 1;
}
((void (*)(void))pqueue_free)();
pqueue_free(v3[10]);
pqueue_free(v3[12]);
CRYPTO_free(v3, "ssl/record/rec_layer_d1.c", 36);
*(_DWORD *)(a1 + 2288) = 0;
return 0;
}