//
// ossl_statem_app_data_allowed from 0xd480c0 to 0xd48120 (96 bytes)
//
// 3 xrefs:
// > dtls1_read_bytes @ 0xd30e28
// > ssl3_read_bytes @ 0xd3391c
// > ??> @ 0x44838
//
// 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
//
__int64 __fastcall ossl_statem_app_data_allowed(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x2
result = 0;
if ( (*(_DWORD *)(a1 + 72) & 0xFFFFFFFD) != 0 )
{
v3 = *(_QWORD *)(a1 + 144);
result = *(unsigned int *)(v3 + 264);
if ( (_DWORD)result )
{
result = *(unsigned int *)(v3 + 256);
if ( (_DWORD)result )
{
if ( *(_DWORD *)(a1 + 56) )
return (*(_DWORD *)(a1 + 92) == 20) | (unsigned int)(*(_DWORD *)(a1 + 92) == 0);
else
return *(_DWORD *)(a1 + 92) == 12;
}
}
}
return result;
}