//
// PromoInterstitial::onClose from 0x5453de to 0x545412 (52 bytes)
//
// 2 xrefs:
// > PromoInterstitial::keyBackClicked @ 0x545428
// > PromoInterstitial::onClick @ 0x545462
//
// 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:52:22 +0000
//
int __fastcall PromoInterstitial::onClose(PromoInterstitial *this, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
AdToolbox *v4; // r0
int v5; // r1
int v6; // r2
int v7; // r3
v3 = (GameManager *)GameManager::sharedState(this);
*((_BYTE *)v3 + 815) = 0;
if ( *((_BYTE *)this + 540) )
{
v4 = (AdToolbox *)GameManager::sharedState(v3);
v7 = *((_DWORD *)v4 + 101);
if ( v7 )
AdToolbox::enableBanner(v4, v5, v6, v7);
}
return (*(int (__fastcall **)(PromoInterstitial *, int))(*(_DWORD *)this + 264))(this, 1);
}