//
// sub_1002E75B0 from 0x1002e75b0 to 0x1002e75d4 (36 bytes)
//
// 28 xrefs:
// > sub_10002F8E8 @ 0x10002fa88
// > sub_100030518 @ 0x10003069c
// > HardStreak::addPoint @ 0x100066838
// > sub_100149A08 @ 0x100149a30
// > PlayLayer::removeCheckpoint @ 0x10014a16c
// > PlayLayer::removeCheckpoint @ 0x10014a1f4
// > sub_10014A22C @ 0x10014a24c
// > sub_100155224 @ 0x10015526c
// > sub_100155224 @ 0x10015535c
// > sub_100155224 @ 0x100155368
// > sub_100155224 @ 0x10015542c
// > EditorUI::ccTouchEnded @ 0x100162304
// > EditorUI::spriteFromObjectString @ 0x100184d64
// > MusicDownloadManager::limitDownloadedSongs @ 0x1001d4aac
// > SFXSearchResult::updateObjects @ 0x1001e52d8
// > SFXSearchResult::updateObjects @ 0x1001e5718
// > sub_1001FCD10 @ 0x1001fce8c
// > cocos2d::CCDirector::replaceScene @ 0x1002075e0
// > cocos2d::CCDirector::popScene @ 0x100207684
// > cocos2d::CCDirector::popSceneWithTransition @ 0x100207728
// > cocos2d::CCDirector::popToSceneStackLevel @ 0x1002077f8
// > cocos2d::CCDirector::popToSceneStackLevel @ 0x10020784c
// > cocos2d::CCDirector::popToSceneStackLevel @ 0x10020787c
// > GJBaseGameLayer::claimParticle @ 0x1002a16e0
// > GJBaseGameLayer::claimCustomParticle @ 0x1002a1e60
// > LevelEditorLayer::handleAction @ 0x1003fbc94
// > LevelEditorLayer::handleAction @ 0x1003fbf64
// > EditorUI::createLoop @ 0x10047ad64
//
// 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 11:02:51 +0000
//
__int64 __fastcall sub_1002E75B0(__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;
}