//
// sub_100016D14 from 0x100016d14 to 0x100016d50 (60 bytes)
//
// 1 xrefs:
// > GJEffectManager::saveToState @ 0x100016a40
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
_QWORD *__fastcall sub_100016D14(_QWORD *result, unsigned __int64 a2)
{
unsigned __int64 v2; // x8
v2 = 0xF0F0F0F0F0F0F0F1LL * ((__int64)(result[1] - *result) >> 2);
if ( a2 > v2 )
return (_QWORD *)sub_10001FA0C();
if ( a2 < v2 )
result[1] = *result + 68 * a2;
return result;
}