//
// dtls1_get_bitmap from 0xd318e0 to 0xd31940 (96 bytes)
//
// 3 xrefs:
// > dtls1_process_buffered_records @ 0xd319d4
// > dtls1_get_record @ 0xd361d8
// > ??> @ 0xbc928
//
// 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
//
unsigned __int16 *__fastcall dtls1_get_bitmap(__int64 a1, __int64 a2, _DWORD *a3)
{
unsigned __int16 *v3; // x0
__int64 v4; // x4
int v5; // w3
v3 = *(unsigned __int16 **)(a1 + 4392);
*a3 = 0;
v4 = *(_QWORD *)(a2 + 56);
v5 = *v3;
if ( v4 == (unsigned __int16)v5 )
return v3 + 4;
if ( v4 != v5 + 1 || v3[20] == v5 || (unsigned int)(*(_DWORD *)(a2 + 4) - 21) > 1 )
return nullptr;
*a3 = 1;
return v3 + 12;
}