//
// dtls1_get_bitmap from 0x99ccdc to 0x99cd38 (92 bytes)
//
// 3 xrefs:
// > dtls1_process_buffered_records @ 0x99cdd8
// > dtls1_get_record @ 0x9a1a08
// > ??> @ 0x741bc
//
// 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
//
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;
}