//
// ossl_statem_app_data_allowed from 0x9b44cc to 0x9b4534 (104 bytes)
//
// 3 xrefs:
// > dtls1_read_bytes @ 0x99c194
// > ssl3_read_bytes @ 0x99ef28
// > ??> @ 0x7407c
//
// 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:58 +0000
//
int __fastcall ossl_statem_app_data_allowed(_DWORD *a1)
{
int v2; // r3
int result; // r0
int v4; // r0
bool v5; // zf
if ( (a1[11] & 0xFFFFFFFD) == 0 )
return 0;
v2 = a1[26];
result = *(_DWORD *)(v2 + 252);
if ( result )
{
result = *(_DWORD *)(v2 + 244);
if ( result )
{
v4 = a1[16];
if ( a1[7] )
{
v5 = v4 == 0;
if ( v4 )
return v4 == 20;
return v5;
}
else
{
return v4 == 12;
}
}
}
return result;
}