//
// sub_1002017A4 from 0x1002017a4 to 0x1002017d4 (48 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::resetRecord @ 0x100201660
//
// 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_1002017A4(_QWORD *result, unsigned __int64 a2)
{
unsigned __int64 v2; // x9
v2 = (__int64)(result[1] - *result) >> 4;
if ( a2 > v2 )
return (_QWORD *)sub_1002123E4();
if ( a2 < v2 )
result[1] = *result + 16 * a2;
return result;
}