//
// dtls1_get_bitmap from 0x7880d8 to 0x788134 (92 bytes)
//
// 3 xrefs:
// > dtls1_process_buffered_records @ 0x7881d4
// > dtls1_get_record @ 0x78ce04
// > ??> @ 0x5a73c
//
// 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(int a1, int a2, _DWORD *a3)
{
unsigned __int16 *v3; // r12
int v4; // r3
int v5; // lr
unsigned __int16 *result; // r0
v3 = *(unsigned __int16 **)(a1 + 2844);
v4 = *v3;
v5 = *(_DWORD *)(a2 + 36);
result = nullptr;
*a3 = 0;
if ( v5 == v4 )
return v3 + 2;
if ( v5 == v4 + 1 && v3[14] != v4 && (unsigned int)(*(_DWORD *)(a2 + 4) - 21) <= 1 )
{
result = v3 + 8;
*a3 = 1;
}
return result;
}