//
// MenuLayer::tryShowAd from 0x6ea6a8 to 0x6ea6fc (84 bytes)
//
// 3 xrefs:
// > ??> @ 0xe2d80
// > MenuLayer::tryShowAd @ 0x6ea6e8
// > ??> @ 0x1546cf0
//
// 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::tryShowAd(MenuLayer *this, float a2)
{
GameManager *v3; // x0
__int64 result; // x0
GameManager *v5; // x0
v3 = (GameManager *)GameManager::sharedState(this);
result = (unsigned __int8)GameManager::shouldShowInterstitial(v3, 180, 140, 0);
if ( (_BYTE)result )
{
v5 = (GameManager *)GameManager::sharedState((GameManager *)result);
GameManager::showInterstitial(v5);
return cocos2d::CCNode::unschedule(this, MenuLayer::tryShowAd, 0);
}
return result;
}