//
// PromoInterstitial::onClick from 0x1002d4950 to 0x1002d49cf (127 bytes)
//
// 1 xrefs:
// > PromoInterstitial::setup @ 0x1002d4634
//
// 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 PromoInterstitial::onClick(PromoInterstitial *a1, cocos2d::CCObject *a2)
{
cocos2d::CCApplication *v2; // rax
std::array *longStorage; // rsi
PlatformToolbox::logEvent("gjl_store");
v2 = cocos2d::CCApplication::sharedApplication();
if ( (a1->m_marketLink.m_data.m_short.sizex2 & 1) != 0 )
longStorage = (std::array *)a1->m_marketLink.m_data.m_long.longStorage;
else
longStorage = &a1->m_marketLink.m_data.m_short.shortStorage;
((void (__fastcall *)(cocos2d::CCApplication *, std::array *))v2->openURL)(v2, longStorage);
GameManager::sharedState()->m_unkBool7 = 0;
if ( a1->m_showAdBanner && GameManager::sharedState()->m_playLayer )
AdToolbox::enableBanner();
((void (__fastcall *)(PromoInterstitial *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}