//
// PromoInterstitial::onClose from 0x915ac8 to 0x915b38 (112 bytes)
//
// 5 xrefs:
// > PromoInterstitial::keyBackClicked @ 0x915b68
// > PromoInterstitial::onClick @ 0x915bc0
// > ??> @ 0x4ff60
// > PromoInterstitial::setup @ 0x915f88
// > ??> @ 0x1541b18
//
// 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:57:19 +0000
//
__int64 __fastcall PromoInterstitial::onClose(PromoInterstitial *this, cocos2d::CCObject *a2)
{
AdToolbox *v4; // x0
*(_BYTE *)(GameManager::sharedState(this) + 1027) = 0;
if ( !*((_BYTE *)this + 704) )
return (*(__int64 (__fastcall **)(PromoInterstitial *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
v4 = *(AdToolbox **)(GameManager::sharedState((GameManager *)*((unsigned __int8 *)this + 704)) + 544);
if ( !v4 )
return (*(__int64 (__fastcall **)(PromoInterstitial *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
AdToolbox::enableBanner(v4);
return (*(__int64 (__fastcall **)(PromoInterstitial *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}