//
// sub_1001994D4 from 0x1001994d4 to 0x100199518 (68 bytes)
//
// 2 xrefs:
// > sub_100199398 @ 0x100199434
// > sub_10019960C @ 0x10019976c
//
// 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 10:59:58 +0000
//
_QWORD *__fastcall sub_1001994D4(_QWORD *result, unsigned __int64 a2)
{
unsigned __int64 v2; // x8
v2 = 0x8E38E38E38E38E39LL * ((__int64)(result[1] - *result) >> 3);
if ( a2 > v2 )
return (_QWORD *)sub_1001A3770();
if ( a2 < v2 )
result[1] = *result + 72 * a2;
return result;
}