//
// sub_10024A398 from 0x10024a398 to 0x10024a3bc (36 bytes)
//
// 27 xrefs:
// > GJGroundLayer::loadGroundSprites @ 0x10002c1a8
// > GJMGLayer::loadGroundSprites @ 0x10002cdbc
// > PlayLayer::getLastCheckpoint @ 0x10012076c
// > PlayLayer::removeCheckpoint @ 0x100120ec0
// > PlayLayer::removeCheckpoint @ 0x100120f44
// > PlayLayer::loadLastCheckpoint @ 0x100120f9c
// > BoomScrollLayer::setupDynamicScrolling @ 0x10012b82c
// > BoomScrollLayer::setupDynamicScrolling @ 0x10012b91c
// > BoomScrollLayer::setupDynamicScrolling @ 0x10012b928
// > BoomScrollLayer::setupDynamicScrolling @ 0x10012b9ec
// > MusicDownloadManager::limitDownloadedSongs @ 0x100156024
// > SFXSearchResult::updateObjects @ 0x10015d22c
// > SFXSearchResult::updateObjects @ 0x10015d3ec
// > CCTextInputNode::updateBlinkLabelToChar @ 0x10016d220
// > cocos2d::CCDirector::replaceScene @ 0x100176060
// > cocos2d::CCDirector::popScene @ 0x100176104
// > cocos2d::CCDirector::popSceneWithTransition @ 0x1001761a8
// > cocos2d::CCDirector::popToSceneStackLevel @ 0x100176278
// > cocos2d::CCDirector::popToSceneStackLevel @ 0x1001762cc
// > cocos2d::CCDirector::popToSceneStackLevel @ 0x1001762fc
// > GJBaseGameLayer::claimParticle @ 0x1002048d8
// > GJBaseGameLayer::claimCustomParticle @ 0x100204ebc
// > LevelEditorLayer::handleAction @ 0x10035bd00
// > LevelEditorLayer::handleAction @ 0x10035bfd8
// > EditorUI::spriteFromObjectString @ 0x1003eaa44
// > EditorUI::createLoop @ 0x1003f381c
// > EditorUI::ccTouchEnded @ 0x1003f9808
//
// 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
//
__int64 __fastcall sub_10024A398(__int64 a1)
{
__int64 v1; // x8
v1 = *(_QWORD *)(a1 + 56);
if ( *(_DWORD *)v1 )
return *(_QWORD *)(*(_QWORD *)(v1 + 16) + 8LL * (unsigned int)(*(_DWORD *)v1 - 1));
else
return 0;
}