//
// MenuLayer::onFreeLevels from 0x6eacb8 to 0x6ead04 (76 bytes)
//
// 1 xrefs:
// > ??> @ 0x6f178
//
// 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 12:51:45 +0000
//
__int64 __fastcall MenuLayer::onFreeLevels(MenuLayer *this, cocos2d::CCObject *a2)
{
GameManager *v2; // x0
bool v3; // w1
__int64 v4; // x0
GameManager *v5; // x0
GameManager *v6; // x0
v2 = (GameManager *)GameManager::sharedState(this);
GameManager::setGameVariable(v2, "0053", 1);
v4 = PromoInterstitial::create(nullptr, v3);
v5 = (GameManager *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
v6 = (GameManager *)GameManager::sharedState(v5);
return GameManager::reportAchievementWithID(v6, "geometry.ach.moreGames", 100, 0);
}