//
// WorldSelectLayer::onFreeLevels from 0xaa5814 to 0xaa5880 (108 bytes)
//
// 3 xrefs:
// > ??> @ 0x70a98
// > WorldSelectLayer::setupWorlds @ 0xaa7dac
// > ??> @ 0x1542d10
//
// 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 13:00:50 +0000
//
__int64 __fastcall WorldSelectLayer::onFreeLevels(WorldSelectLayer *this, cocos2d::CCObject *a2)
{
GameManager *v2; // x0
GJMoreGamesLayer *v3; // x0
cocos2d::CCDirector *v4; // x19
__int64 v5; // x0
v2 = (GameManager *)GameManager::sharedState(this);
v3 = (GJMoreGamesLayer *)GameManager::reportAchievementWithID(v2, "geometry.ach.moreGames", 100, 0);
v4 = (cocos2d::CCDirector *)GJMoreGamesLayer::create(v3);
v5 = cocos2d::CCDirector::sharedDirector(v4);
(*(void (__fastcall **)(_QWORD, cocos2d::CCDirector *, __int64))(**(_QWORD **)(v5 + 272) + 464LL))(
*(_QWORD *)(v5 + 272),
v4,
100);
return (*(__int64 (__fastcall **)(cocos2d::CCDirector *, _QWORD))(*(_QWORD *)v4 + 1328LL))(v4, 0);
}