//
// MenuLayer::onFreeLevels from 0x3f9928 to 0x3f995a (50 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:19 +0000
//
int __fastcall MenuLayer::onFreeLevels(MenuLayer *this, cocos2d::CCObject *a2)
{
GameManager *v2; // r0
bool v3; // r1
int v4; // r0
GameManager *v5; // r0
GameManager *v6; // r0
v2 = (GameManager *)GameManager::sharedState(this);
GameManager::setGameVariable(v2, "0053", 1);
v4 = PromoInterstitial::create(nullptr, v3);
v5 = (GameManager *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 656))(v4);
v6 = (GameManager *)GameManager::sharedState(v5);
return GameManager::reportAchievementWithID(v6, "geometry.ach.moreGames", 100, 0);
}