//
// PromoInterstitial::onClick from 0x1002c15b0 to 0x1002c162f (127 bytes)
//
// 1 xrefs:
// > PromoInterstitial::setup @ 0x1002c1294
//
// This function is hookable on this platform (idp: pc, 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:28:05 +0000
//
__int64 __fastcall PromoInterstitial::onClick(__int64 a1, __int64 a2)
{
__int64 v3; // rax
__int64 v4; // rsi
__int64 v5; // rdi
__int64 v6; // rdx
__int64 v7; // rdx
unsigned __int64 v8; // xmm0_8
__int64 v9; // rax
__int64 v10; // rax
PlatformToolbox::logEvent("gjl_store");
v3 = cocos2d::CCApplication::sharedApplication("gjl_store", a2);
if ( (*(_BYTE *)(a1 + 680) & 1) != 0 )
v4 = *(_QWORD *)(a1 + 696);
else
v4 = a1 + 681;
v5 = v3;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 104LL))(v3, v4);
v8 = GameManager::sharedState(v5, v4, v6).u64[0];
*(_BYTE *)(v9 + 1027) = 0;
if ( *(_BYTE *)(a1 + 704) == 1 )
{
v8 = GameManager::sharedState(v5, v4, v7).u64[0];
if ( *(_QWORD *)(v10 + 544) )
AdToolbox::enableBanner();
}
return (*(__int64 (__fastcall **)(__int64, __int64, double))(*(_QWORD *)a1 + 528LL))(a1, 1, *(double *)&v8);
}