//
// ossl_statem_app_data_allowed from 0xfc6414 to 0xfc6474 (96 bytes)
//
// 3 xrefs:
// > dtls1_read_bytes @ 0xfaf17c
// > ssl3_read_bytes @ 0xfb1c70
// > ??> @ 0x61840
//
// 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:24 +0000
//
__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;
}