//
// GJShopLayer::onVideoAd from 0xa7c9c8 to 0xa7ca18 (80 bytes)
//
// 1 xrefs:
// > ??> @ 0xaebe0
//
// 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 13:00:29 +0000
//
__int64 __fastcall GJShopLayer::onVideoAd(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x19
AdToolbox *v3; // x0
if ( !*(_BYTE *)(this + 504) )
{
v2 = this;
this = AdToolbox::hasCachedRewardedVideo((AdToolbox *)this);
if ( (_BYTE)this )
{
*(_BYTE *)(v2 + 504) = (unsigned __int8)&dword_0 + 1;
v3 = (AdToolbox *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 1));
*((_QWORD *)v3 + 162) = v2 + 424;
return AdToolbox::showRewardedVideo(v3);
}
}
return this;
}