//
// sub_839354 from 0x839354 to 0x839392 (62 bytes)
//
// 1 xrefs:
// > sub_81F2D4 @ 0x81f89c
//
// 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:02:14 +0000
//
int __fastcall sub_839354(size_t a1, int a2)
{
int v2; // r2
if ( !a2 )
return 1;
v2 = *(_DWORD *)(a1 + 632);
if ( !v2 )
return 1;
if ( *(_DWORD *)(a1 + 628) == 2 )
{
if ( a2 >= v2 )
{
sub_8280FC(a1, "The requested document is not old enough\n");
LABEL_6:
*(_BYTE *)(a1 + 34796) = 1;
return 0;
}
}
else if ( a2 <= v2 )
{
sub_8280FC(a1, "The requested document is not new enough\n");
goto LABEL_6;
}
return 1;
}