//
// sub_10011C2E0 from 0x10011c2e0 to 0x10011c310 (48 bytes)
//
// 9 xrefs:
// > PlayLayer::createObjectsFromSetupFinished @ 0x10011c278
// > GJBaseGameLayer::init @ 0x1001dae34
// > GJBaseGameLayer::init @ 0x1001dae40
// > GJBaseGameLayer::addToSection @ 0x1001f3670
// > GJBaseGameLayer::addToSection @ 0x1001f3834
// > GJBaseGameLayer::addToSection @ 0x1001f3998
// > EnterEffectInstance::EnterEffectInstance @ 0x10020a774
// > GameManager::calculateBaseKeyForIcons @ 0x100311e34
// > LevelEditorLayer::init @ 0x100356e90
//
// 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_10011C2E0(_QWORD *result, unsigned __int64 a2)
{
unsigned __int64 v2; // x9
v2 = (__int64)(result[1] - *result) >> 2;
if ( a2 > v2 )
return (_QWORD *)sub_100127F3C();
if ( a2 < v2 )
result[1] = *result + 4 * a2;
return result;
}