//
// MenuLayer::tryShowAd from 0x3f95c0 to 0x3f95f8 (56 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
//
GameManager *__fastcall MenuLayer::tryShowAd(MenuLayer *this, float a2)
{
GameManager *v3; // r0
GameManager *result; // r0
GameManager *v5; // r0
v3 = (GameManager *)GameManager::sharedState(this);
result = (GameManager *)GameManager::shouldShowInterstitial(v3, 180, 140, 0);
if ( result )
{
v5 = (GameManager *)GameManager::sharedState(result);
GameManager::showInterstitial(v5);
return (GameManager *)cocos2d::CCNode::unschedule(this, MenuLayer::tryShowAd, 0);
}
return result;
}