//
// sub_1004F100C from 0x1004f100c to 0x1004f1048 (60 bytes)
//
// 6 xrefs:
// > sub_1004F04E0 @ 0x1004f0a2c
// > sub_1004F1728 @ 0x1004f182c
// > sub_1004F1728 @ 0x1004f1858
// > sub_1004F1728 @ 0x1004f1888
// > sub_1004F1728 @ 0x1004f18c4
// > sub_10052DA34 @ 0x10052db38
//
// 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:06:45 +0000
//
__int64 __fastcall sub_1004F100C(__int64 a1)
{
unsigned __int64 v2; // x20
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 8);
if ( v2 >= *(_QWORD *)(a1 + 16) )
{
result = sub_1004F222C();
}
else
{
sub_1004F21A8();
result = v2 + 60;
}
*(_QWORD *)(a1 + 8) = result;
return result;
}