//
// sub_E08A18 from 0xe08a18 to 0xe08a98 (128 bytes)
//
// 1 xrefs:
// > sub_DE64E8 @ 0xde6b5c
//
// 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:09:34 +0000
//
__int64 __fastcall sub_E08A18(__int64 a1, __int64 a2)
{
unsigned int v2; // w19
__int64 v3; // x3
v2 = 1;
if ( a2 )
{
v3 = *(_QWORD *)(a1 + 1064);
if ( v3 )
{
if ( *(_DWORD *)(a1 + 1056) == 2 )
{
if ( a2 >= v3 )
{
sub_DF16E0(a1, "The requested document is not old enough\n");
*(_BYTE *)(a1 + 36224) = 1;
return 0;
}
}
else if ( a2 <= v3 )
{
sub_DF16E0(a1, "The requested document is not new enough\n");
*(_BYTE *)(a1 + 36224) = 1;
return 0;
}
}
}
return v2;
}