//
// sub_10000F100 from 0x10000f100 to 0x10000f130 (48 bytes)
//
// 21 xrefs:
// > GJEffectManager::init @ 0x10000f02c
// > GJEffectManager::init @ 0x10000f03c
// > GJEffectManager::init @ 0x10000f064
// > PlayLayer::processCreateObjectsFromSetup @ 0x10013efe0
// > GJBaseGameLayer::init @ 0x100275290
// > GJBaseGameLayer::init @ 0x1002752a0
// > GJBaseGameLayer::init @ 0x1002752b0
// > GJBaseGameLayer::addToSection @ 0x10028f870
// > GJBaseGameLayer::addToSection @ 0x10028f880
// > GJBaseGameLayer::addToSection @ 0x10028f8e8
// > GJBaseGameLayer::addToSection @ 0x10028fa3c
// > GJBaseGameLayer::addToSection @ 0x10028fa4c
// > GJBaseGameLayer::addToSection @ 0x10028faac
// > GJBaseGameLayer::addToSection @ 0x10028fb78
// > GJBaseGameLayer::addToSection @ 0x10028fb88
// > GJBaseGameLayer::addToSection @ 0x10028fb98
// > GJBaseGameLayer::addToSection @ 0x10028fc10
// > LevelEditorLayer::init @ 0x1003f68d8
// > LevelEditorLayer::init @ 0x1003f6990
// > LevelEditorLayer::createObjectsFromSetup @ 0x1003f7aa8
// > LevelEditorLayer::createObjectsFromString @ 0x1003f96d4
//
// 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:15 +0000
//
_QWORD *__fastcall sub_10000F100(_QWORD *result, unsigned __int64 a2)
{
unsigned __int64 v2; // x9
v2 = (__int64)(result[1] - *result) >> 3;
if ( a2 > v2 )
return (_QWORD *)sub_100018B0C();
if ( a2 < v2 )
result[1] = *result + 8 * a2;
return result;
}