//
// sub_10068BF6C from 0x10068bf6c to 0x10068bff0 (132 bytes)
//
// 1 xrefs:
// > sub_10066E798 @ 0x10066e938
//
// 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 11:11:29 +0000
//
__int64 __fastcall sub_10068BF6C(size_t a1, __int64 a2)
{
__int64 v3; // x8
__int64 v4; // x19
if ( !a2 )
return 1;
v3 = *(_QWORD *)(a1 + 1056);
if ( !v3 )
return 1;
v4 = 1;
if ( *(_DWORD *)(a1 + 1048) == 2 )
{
if ( v3 <= a2 )
{
sub_10067860C(a1, "The requested document is not old enough\n");
LABEL_10:
*(_BYTE *)(a1 + 35768) = 1;
return 0;
}
}
else if ( v3 >= a2 )
{
sub_10067860C(a1, "The requested document is not new enough\n");
goto LABEL_10;
}
return v4;
}