//
// sub_9B93B0 from 0x9b93b0 to 0x9b94d8 (296 bytes)
//
// 2 xrefs:
// > dtls_get_message @ 0x9ba708
// > dtls_get_message @ 0x9ba890
//
// 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:07:00 +0000
//
int __fastcall sub_9B93B0(_DWORD *a1, unsigned __int8 *a2)
{
unsigned int v2; // r5
unsigned int v4; // r3
int v7; // r3
int v8; // r2
int v9; // r3
v2 = *((_DWORD *)a2 + 1);
if ( v2 < *((_DWORD *)a2 + 4) + *((_DWORD *)a2 + 3) )
goto LABEL_5;
v4 = a1[79];
if ( v4 < 0x454C )
v4 = 17740;
if ( v2 <= v4 )
{
v7 = a1[27];
if ( *(_DWORD *)(v7 + 344) )
{
if ( *(_DWORD *)(v7 + 336) == v2 )
{
return 0;
}
else
{
ERR_put_error(20, 288, 152, "ssl/statem/statem_dtls.c", 440);
return 47;
}
}
else if ( BUF_MEM_grow_clean(a1[22], v2 + 12) )
{
v8 = a1[26];
v9 = a1[27];
*(_DWORD *)(v8 + 520) = v2;
*(_DWORD *)(v9 + 336) = v2;
*(_DWORD *)(v8 + 524) = *a2;
*(_BYTE *)(v9 + 332) = *a2;
*(_WORD *)(a1[27] + 340) = *((_WORD *)a2 + 4);
return 0;
}
else
{
ERR_put_error(20, 288, 7, "ssl/statem/statem_dtls.c", 426);
return 80;
}
}
else
{
LABEL_5:
ERR_put_error(20, 288, 152, "ssl/statem/statem_dtls.c", 416);
return 47;
}
}