//
// sub_100054FAC from 0x100054fac to 0x100054fdc (48 bytes)
//
// 2 xrefs:
// > sub_100195110 @ 0x1001951b4
// > PlayerObject::init @ 0x1002b5164
//
// 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:57:45 +0000
//
_QWORD *__fastcall sub_100054FAC(_QWORD *result, unsigned __int64 a2)
{
unsigned __int64 v2; // x9
v2 = (__int64)(result[1] - *result) >> 2;
if ( a2 > v2 )
return (_QWORD *)sub_100054FDC();
if ( a2 < v2 )
result[1] = *result + 4 * a2;
return result;
}