//
// sub_10000EC70 from 0x10000ec70 to 0x10000eca0 (48 bytes)
//
// 21 xrefs:
// > GJEffectManager::init @ 0x10000eb9c
// > GJEffectManager::init @ 0x10000ebac
// > GJEffectManager::init @ 0x10000ebd4
// > PlayLayer::processCreateObjectsFromSetup @ 0x1001163e8
// > GJBaseGameLayer::init @ 0x1001dadd8
// > GJBaseGameLayer::init @ 0x1001dade8
// > GJBaseGameLayer::init @ 0x1001dadf8
// > GJBaseGameLayer::addToSection @ 0x1001f35e8
// > GJBaseGameLayer::addToSection @ 0x1001f35f8
// > GJBaseGameLayer::addToSection @ 0x1001f3660
// > GJBaseGameLayer::addToSection @ 0x1001f37b4
// > GJBaseGameLayer::addToSection @ 0x1001f37c4
// > GJBaseGameLayer::addToSection @ 0x1001f3824
// > GJBaseGameLayer::addToSection @ 0x1001f38f0
// > GJBaseGameLayer::addToSection @ 0x1001f3900
// > GJBaseGameLayer::addToSection @ 0x1001f3910
// > GJBaseGameLayer::addToSection @ 0x1001f3988
// > LevelEditorLayer::init @ 0x100356db4
// > LevelEditorLayer::init @ 0x100356e6c
// > LevelEditorLayer::createObjectsFromSetup @ 0x100357e70
// > LevelEditorLayer::createObjectsFromString @ 0x100359814
//
// 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_10000EC70(_QWORD *result, unsigned __int64 a2)
{
unsigned __int64 v2; // x9
v2 = (__int64)(result[1] - *result) >> 3;
if ( a2 > v2 )
return (_QWORD *)sub_1000180B8();
if ( a2 < v2 )
result[1] = *result + 8 * a2;
return result;
}