//
// MenuLayer::tryShowAd from 0x100391c20 to 0x100391c71 (81 bytes)
//
// 1 xrefs:
// > MenuLayer::tryShowAd @ 0x100391c53
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall MenuLayer::tryShowAd(MenuLayer *a1, float a2)
{
GameManager *v2; // rax
GameManager *v3; // rax
v2 = GameManager::sharedState();
if ( GameManager::shouldShowInterstitial(v2, 180, 140, 0) )
{
v3 = GameManager::sharedState();
GameManager::showInterstitial(v3);
cocos2d::CCNode::unschedule(a1, (cocos2d::SEL_SCHEDULE)(unsigned __int64)MenuLayer::tryShowAd);
}
}