//
// dtls1_get_bitmap from 0xfafc34 to 0xfafc94 (96 bytes)
//
// 3 xrefs:
// > dtls1_process_buffered_records @ 0xfafd28
// > dtls1_get_record @ 0xfb452c
// > ??> @ 0xf5ec0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:15:11 +0000
//
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;
}