//
// sub_10004C7D8 from 0x10004c7d8 to 0x10004c808 (48 bytes)
//
// 1 xrefs:
// > PlayerObject::init @ 0x1002186a4
//
// 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_10004C7D8(_QWORD *result, unsigned __int64 a2)
{
unsigned __int64 v2; // x9
v2 = (__int64)(result[1] - *result) >> 2;
if ( a2 > v2 )
return (_QWORD *)sub_10004C808();
if ( a2 < v2 )
result[1] = *result + 4 * a2;
return result;
}