//
// sub_1007FF000 from 0x1007ff000 to 0x1007ff01e (30 bytes)
//
// 50 xrefs:
// > EditorUI::createLoop @ 0x1000169d7
// > EditorUI::createLoop @ 0x100016b16
// > HardStreak::addPoint @ 0x100064dfc
// > CCTextInputNode::updateBlinkLabelToChar @ 0x100069163
// > PlayLayer::createCheckpoint @ 0x1000891cc
// > PlayLayer::getLastCheckpoint @ 0x10008a4e6
// > PlayLayer::removeCheckpoint @ 0x10008ad69
// > PlayLayer::removeCheckpoint @ 0x10008aded
// > PlayLayer::loadLastCheckpoint @ 0x10008ae51
// > PlayLayer::resetLevel @ 0x10008cd61
// > LevelEditorLayer::handleAction @ 0x1000b243d
// > LevelEditorLayer::handleAction @ 0x1000b281f
// > GJBaseGameLayer::claimParticle @ 0x10013cd5b
// > GJBaseGameLayer::claimCustomParticle @ 0x10013d8fa
// > cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild @ 0x100156d92
// > cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0x100156ee6
// > cocos2d::CCSpriteBatchNode::atlasIndexForChild @ 0x100156f42
// > cocos2d::CCKeyboardDispatcher::dispatchKeyboardMSG @ 0x1001e6417
// > sub_1001E6620 @ 0x1001e6657
// > sub_1001E6870 @ 0x1001e6974
// > BoomScrollLayer::setupDynamicScrolling @ 0x10038eecb
// > BoomScrollLayer::setupDynamicScrolling @ 0x10038efb2
// > BoomScrollLayer::setupDynamicScrolling @ 0x10038efc1
// > BoomScrollLayer::setupDynamicScrolling @ 0x10038f093
// > cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x10041a580
// > cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x10041a5c2
// > cocos2d::CCDirector::replaceScene @ 0x100478c6e
// > cocos2d::CCDirector::checkSceneReference @ 0x100478d17
// > cocos2d::CCDirector::popScene @ 0x100478d57
// > cocos2d::CCDirector::popSceneWithTransition @ 0x100478e02
// > cocos2d::CCDirector::popToSceneStackLevel @ 0x100478f20
// > cocos2d::CCDirector::popToSceneStackLevel @ 0x100478f6d
// > cocos2d::CCDirector::popToSceneStackLevel @ 0x100478f95
// > cocos2d::CCTMXMapInfo::startElement @ 0x1004c9bd9
// > cocos2d::CCTMXMapInfo::startElement @ 0x1004c9ccb
// > cocos2d::CCTMXMapInfo::startElement @ 0x1004c9f77
// > cocos2d::CCTMXMapInfo::startElement @ 0x1004ca832
// > cocos2d::CCTMXMapInfo::startElement @ 0x1004ca846
// > cocos2d::CCTMXMapInfo::startElement @ 0x1004cb787
// > cocos2d::CCTMXMapInfo::startElement @ 0x1004cb82f
// > cocos2d::CCTMXMapInfo::startElement @ 0x1004cb840
// > cocos2d::CCTMXMapInfo::startElement @ 0x1004cb8dc
// > cocos2d::CCTMXMapInfo::endElement @ 0x1004cca75
// > EditorUI::ccTouchEnded @ 0x10060b18e
// > EditorUI::spriteFromObjectString @ 0x100638ab0
// > MusicDownloadManager::limitDownloadedSongs @ 0x10064e96d
// > SFXSearchResult::updateObjects @ 0x10066996f
// > SFXSearchResult::updateObjects @ 0x100669f11
// > GJGroundLayer::loadGroundSprites @ 0x1006be343
// > GJMGLayer::loadGroundSprites @ 0x1006bf3e3
//
// This function is hookable on this platform (idp: pc, 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 12:36:36 +0000
//
__int64 __fastcall sub_1007FF000(__int64 a1)
{
__int64 v1; // rcx
v1 = *(_QWORD *)(a1 + 56);
if ( *(_DWORD *)v1 )
return *(_QWORD *)(*(_QWORD *)(v1 + 16) + 8LL * (unsigned int)(*(_DWORD *)v1 - 1));
else
return 0;
}