//
// sub_100197D4C from 0x100197d4c to 0x100197d7c (48 bytes)
//
// 3 xrefs:
// > sub_100197B10 @ 0x100197c70
// > GJBaseGameLayer::resetRecord @ 0x10029d94c
// > sub_10029E420 @ 0x10029e510
//
// 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:57 +0000
//
_QWORD *__fastcall sub_100197D4C(_QWORD *result, unsigned __int64 a2)
{
unsigned __int64 v2; // x9
v2 = (__int64)(result[1] - *result) >> 4;
if ( a2 > v2 )
return (_QWORD *)sub_1001A2DCC();
if ( a2 < v2 )
result[1] = *result + 16 * a2;
return result;
}